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:v1alpha"
90 const apiName = "discoveryengine"
91 const apiVersion = "v1alpha"
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.Evaluations = NewProjectsLocationsEvaluationsService(s)
177 rs.GroundingConfigs = NewProjectsLocationsGroundingConfigsService(s)
178 rs.Operations = NewProjectsLocationsOperationsService(s)
179 rs.RankingConfigs = NewProjectsLocationsRankingConfigsService(s)
180 rs.SampleQuerySets = NewProjectsLocationsSampleQuerySetsService(s)
181 rs.UserEvents = NewProjectsLocationsUserEventsService(s)
182 return rs
183 }
184
185 type ProjectsLocationsService struct {
186 s *Service
187
188 Collections *ProjectsLocationsCollectionsService
189
190 DataStores *ProjectsLocationsDataStoresService
191
192 Evaluations *ProjectsLocationsEvaluationsService
193
194 GroundingConfigs *ProjectsLocationsGroundingConfigsService
195
196 Operations *ProjectsLocationsOperationsService
197
198 RankingConfigs *ProjectsLocationsRankingConfigsService
199
200 SampleQuerySets *ProjectsLocationsSampleQuerySetsService
201
202 UserEvents *ProjectsLocationsUserEventsService
203 }
204
205 func NewProjectsLocationsCollectionsService(s *Service) *ProjectsLocationsCollectionsService {
206 rs := &ProjectsLocationsCollectionsService{s: s}
207 rs.DataConnector = NewProjectsLocationsCollectionsDataConnectorService(s)
208 rs.DataStores = NewProjectsLocationsCollectionsDataStoresService(s)
209 rs.Engines = NewProjectsLocationsCollectionsEnginesService(s)
210 rs.Operations = NewProjectsLocationsCollectionsOperationsService(s)
211 return rs
212 }
213
214 type ProjectsLocationsCollectionsService struct {
215 s *Service
216
217 DataConnector *ProjectsLocationsCollectionsDataConnectorService
218
219 DataStores *ProjectsLocationsCollectionsDataStoresService
220
221 Engines *ProjectsLocationsCollectionsEnginesService
222
223 Operations *ProjectsLocationsCollectionsOperationsService
224 }
225
226 func NewProjectsLocationsCollectionsDataConnectorService(s *Service) *ProjectsLocationsCollectionsDataConnectorService {
227 rs := &ProjectsLocationsCollectionsDataConnectorService{s: s}
228 rs.Operations = NewProjectsLocationsCollectionsDataConnectorOperationsService(s)
229 return rs
230 }
231
232 type ProjectsLocationsCollectionsDataConnectorService struct {
233 s *Service
234
235 Operations *ProjectsLocationsCollectionsDataConnectorOperationsService
236 }
237
238 func NewProjectsLocationsCollectionsDataConnectorOperationsService(s *Service) *ProjectsLocationsCollectionsDataConnectorOperationsService {
239 rs := &ProjectsLocationsCollectionsDataConnectorOperationsService{s: s}
240 return rs
241 }
242
243 type ProjectsLocationsCollectionsDataConnectorOperationsService struct {
244 s *Service
245 }
246
247 func NewProjectsLocationsCollectionsDataStoresService(s *Service) *ProjectsLocationsCollectionsDataStoresService {
248 rs := &ProjectsLocationsCollectionsDataStoresService{s: s}
249 rs.Branches = NewProjectsLocationsCollectionsDataStoresBranchesService(s)
250 rs.Conversations = NewProjectsLocationsCollectionsDataStoresConversationsService(s)
251 rs.CustomModels = NewProjectsLocationsCollectionsDataStoresCustomModelsService(s)
252 rs.Models = NewProjectsLocationsCollectionsDataStoresModelsService(s)
253 rs.Operations = NewProjectsLocationsCollectionsDataStoresOperationsService(s)
254 rs.Schemas = NewProjectsLocationsCollectionsDataStoresSchemasService(s)
255 rs.ServingConfigs = NewProjectsLocationsCollectionsDataStoresServingConfigsService(s)
256 rs.Sessions = NewProjectsLocationsCollectionsDataStoresSessionsService(s)
257 rs.SiteSearchEngine = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s)
258 rs.SuggestionDenyListEntries = NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s)
259 rs.UserEvents = NewProjectsLocationsCollectionsDataStoresUserEventsService(s)
260 return rs
261 }
262
263 type ProjectsLocationsCollectionsDataStoresService struct {
264 s *Service
265
266 Branches *ProjectsLocationsCollectionsDataStoresBranchesService
267
268 Conversations *ProjectsLocationsCollectionsDataStoresConversationsService
269
270 CustomModels *ProjectsLocationsCollectionsDataStoresCustomModelsService
271
272 Models *ProjectsLocationsCollectionsDataStoresModelsService
273
274 Operations *ProjectsLocationsCollectionsDataStoresOperationsService
275
276 Schemas *ProjectsLocationsCollectionsDataStoresSchemasService
277
278 ServingConfigs *ProjectsLocationsCollectionsDataStoresServingConfigsService
279
280 Sessions *ProjectsLocationsCollectionsDataStoresSessionsService
281
282 SiteSearchEngine *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService
283
284 SuggestionDenyListEntries *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService
285
286 UserEvents *ProjectsLocationsCollectionsDataStoresUserEventsService
287 }
288
289 func NewProjectsLocationsCollectionsDataStoresBranchesService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesService {
290 rs := &ProjectsLocationsCollectionsDataStoresBranchesService{s: s}
291 rs.Documents = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s)
292 rs.Operations = NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s)
293 return rs
294 }
295
296 type ProjectsLocationsCollectionsDataStoresBranchesService struct {
297 s *Service
298
299 Documents *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService
300
301 Operations *ProjectsLocationsCollectionsDataStoresBranchesOperationsService
302 }
303
304 func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService {
305 rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsService{s: s}
306 rs.Chunks = NewProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService(s)
307 return rs
308 }
309
310 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsService struct {
311 s *Service
312
313 Chunks *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService
314 }
315
316 func NewProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService {
317 rs := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService{s: s}
318 return rs
319 }
320
321 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService struct {
322 s *Service
323 }
324
325 func NewProjectsLocationsCollectionsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresBranchesOperationsService {
326 rs := &ProjectsLocationsCollectionsDataStoresBranchesOperationsService{s: s}
327 return rs
328 }
329
330 type ProjectsLocationsCollectionsDataStoresBranchesOperationsService struct {
331 s *Service
332 }
333
334 func NewProjectsLocationsCollectionsDataStoresConversationsService(s *Service) *ProjectsLocationsCollectionsDataStoresConversationsService {
335 rs := &ProjectsLocationsCollectionsDataStoresConversationsService{s: s}
336 return rs
337 }
338
339 type ProjectsLocationsCollectionsDataStoresConversationsService struct {
340 s *Service
341 }
342
343 func NewProjectsLocationsCollectionsDataStoresCustomModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresCustomModelsService {
344 rs := &ProjectsLocationsCollectionsDataStoresCustomModelsService{s: s}
345 return rs
346 }
347
348 type ProjectsLocationsCollectionsDataStoresCustomModelsService struct {
349 s *Service
350 }
351
352 func NewProjectsLocationsCollectionsDataStoresModelsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsService {
353 rs := &ProjectsLocationsCollectionsDataStoresModelsService{s: s}
354 rs.Operations = NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s)
355 return rs
356 }
357
358 type ProjectsLocationsCollectionsDataStoresModelsService struct {
359 s *Service
360
361 Operations *ProjectsLocationsCollectionsDataStoresModelsOperationsService
362 }
363
364 func NewProjectsLocationsCollectionsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresModelsOperationsService {
365 rs := &ProjectsLocationsCollectionsDataStoresModelsOperationsService{s: s}
366 return rs
367 }
368
369 type ProjectsLocationsCollectionsDataStoresModelsOperationsService struct {
370 s *Service
371 }
372
373 func NewProjectsLocationsCollectionsDataStoresOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresOperationsService {
374 rs := &ProjectsLocationsCollectionsDataStoresOperationsService{s: s}
375 return rs
376 }
377
378 type ProjectsLocationsCollectionsDataStoresOperationsService struct {
379 s *Service
380 }
381
382 func NewProjectsLocationsCollectionsDataStoresSchemasService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasService {
383 rs := &ProjectsLocationsCollectionsDataStoresSchemasService{s: s}
384 rs.Operations = NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s)
385 return rs
386 }
387
388 type ProjectsLocationsCollectionsDataStoresSchemasService struct {
389 s *Service
390
391 Operations *ProjectsLocationsCollectionsDataStoresSchemasOperationsService
392 }
393
394 func NewProjectsLocationsCollectionsDataStoresSchemasOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSchemasOperationsService {
395 rs := &ProjectsLocationsCollectionsDataStoresSchemasOperationsService{s: s}
396 return rs
397 }
398
399 type ProjectsLocationsCollectionsDataStoresSchemasOperationsService struct {
400 s *Service
401 }
402
403 func NewProjectsLocationsCollectionsDataStoresServingConfigsService(s *Service) *ProjectsLocationsCollectionsDataStoresServingConfigsService {
404 rs := &ProjectsLocationsCollectionsDataStoresServingConfigsService{s: s}
405 return rs
406 }
407
408 type ProjectsLocationsCollectionsDataStoresServingConfigsService struct {
409 s *Service
410 }
411
412 func NewProjectsLocationsCollectionsDataStoresSessionsService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsService {
413 rs := &ProjectsLocationsCollectionsDataStoresSessionsService{s: s}
414 rs.Answers = NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s)
415 return rs
416 }
417
418 type ProjectsLocationsCollectionsDataStoresSessionsService struct {
419 s *Service
420
421 Answers *ProjectsLocationsCollectionsDataStoresSessionsAnswersService
422 }
423
424 func NewProjectsLocationsCollectionsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsDataStoresSessionsAnswersService {
425 rs := &ProjectsLocationsCollectionsDataStoresSessionsAnswersService{s: s}
426 return rs
427 }
428
429 type ProjectsLocationsCollectionsDataStoresSessionsAnswersService struct {
430 s *Service
431 }
432
433 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService {
434 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineService{s: s}
435 rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s)
436 rs.TargetSites = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s)
437 return rs
438 }
439
440 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineService struct {
441 s *Service
442
443 Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService
444
445 TargetSites *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService
446 }
447
448 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService {
449 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService{s: s}
450 return rs
451 }
452
453 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService struct {
454 s *Service
455 }
456
457 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService {
458 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService{s: s}
459 rs.Operations = NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s)
460 return rs
461 }
462
463 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService struct {
464 s *Service
465
466 Operations *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService
467 }
468
469 func NewProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService(s *Service) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService {
470 rs := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService{s: s}
471 return rs
472 }
473
474 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService struct {
475 s *Service
476 }
477
478 func NewProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService {
479 rs := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService{s: s}
480 return rs
481 }
482
483 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService struct {
484 s *Service
485 }
486
487 func NewProjectsLocationsCollectionsDataStoresUserEventsService(s *Service) *ProjectsLocationsCollectionsDataStoresUserEventsService {
488 rs := &ProjectsLocationsCollectionsDataStoresUserEventsService{s: s}
489 return rs
490 }
491
492 type ProjectsLocationsCollectionsDataStoresUserEventsService struct {
493 s *Service
494 }
495
496 func NewProjectsLocationsCollectionsEnginesService(s *Service) *ProjectsLocationsCollectionsEnginesService {
497 rs := &ProjectsLocationsCollectionsEnginesService{s: s}
498 rs.Conversations = NewProjectsLocationsCollectionsEnginesConversationsService(s)
499 rs.Operations = NewProjectsLocationsCollectionsEnginesOperationsService(s)
500 rs.ServingConfigs = NewProjectsLocationsCollectionsEnginesServingConfigsService(s)
501 rs.Sessions = NewProjectsLocationsCollectionsEnginesSessionsService(s)
502 return rs
503 }
504
505 type ProjectsLocationsCollectionsEnginesService struct {
506 s *Service
507
508 Conversations *ProjectsLocationsCollectionsEnginesConversationsService
509
510 Operations *ProjectsLocationsCollectionsEnginesOperationsService
511
512 ServingConfigs *ProjectsLocationsCollectionsEnginesServingConfigsService
513
514 Sessions *ProjectsLocationsCollectionsEnginesSessionsService
515 }
516
517 func NewProjectsLocationsCollectionsEnginesConversationsService(s *Service) *ProjectsLocationsCollectionsEnginesConversationsService {
518 rs := &ProjectsLocationsCollectionsEnginesConversationsService{s: s}
519 return rs
520 }
521
522 type ProjectsLocationsCollectionsEnginesConversationsService struct {
523 s *Service
524 }
525
526 func NewProjectsLocationsCollectionsEnginesOperationsService(s *Service) *ProjectsLocationsCollectionsEnginesOperationsService {
527 rs := &ProjectsLocationsCollectionsEnginesOperationsService{s: s}
528 return rs
529 }
530
531 type ProjectsLocationsCollectionsEnginesOperationsService struct {
532 s *Service
533 }
534
535 func NewProjectsLocationsCollectionsEnginesServingConfigsService(s *Service) *ProjectsLocationsCollectionsEnginesServingConfigsService {
536 rs := &ProjectsLocationsCollectionsEnginesServingConfigsService{s: s}
537 return rs
538 }
539
540 type ProjectsLocationsCollectionsEnginesServingConfigsService struct {
541 s *Service
542 }
543
544 func NewProjectsLocationsCollectionsEnginesSessionsService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsService {
545 rs := &ProjectsLocationsCollectionsEnginesSessionsService{s: s}
546 rs.Answers = NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s)
547 return rs
548 }
549
550 type ProjectsLocationsCollectionsEnginesSessionsService struct {
551 s *Service
552
553 Answers *ProjectsLocationsCollectionsEnginesSessionsAnswersService
554 }
555
556 func NewProjectsLocationsCollectionsEnginesSessionsAnswersService(s *Service) *ProjectsLocationsCollectionsEnginesSessionsAnswersService {
557 rs := &ProjectsLocationsCollectionsEnginesSessionsAnswersService{s: s}
558 return rs
559 }
560
561 type ProjectsLocationsCollectionsEnginesSessionsAnswersService struct {
562 s *Service
563 }
564
565 func NewProjectsLocationsCollectionsOperationsService(s *Service) *ProjectsLocationsCollectionsOperationsService {
566 rs := &ProjectsLocationsCollectionsOperationsService{s: s}
567 return rs
568 }
569
570 type ProjectsLocationsCollectionsOperationsService struct {
571 s *Service
572 }
573
574 func NewProjectsLocationsDataStoresService(s *Service) *ProjectsLocationsDataStoresService {
575 rs := &ProjectsLocationsDataStoresService{s: s}
576 rs.Branches = NewProjectsLocationsDataStoresBranchesService(s)
577 rs.Conversations = NewProjectsLocationsDataStoresConversationsService(s)
578 rs.Models = NewProjectsLocationsDataStoresModelsService(s)
579 rs.Operations = NewProjectsLocationsDataStoresOperationsService(s)
580 rs.Schemas = NewProjectsLocationsDataStoresSchemasService(s)
581 rs.ServingConfigs = NewProjectsLocationsDataStoresServingConfigsService(s)
582 rs.Sessions = NewProjectsLocationsDataStoresSessionsService(s)
583 rs.SiteSearchEngine = NewProjectsLocationsDataStoresSiteSearchEngineService(s)
584 rs.SuggestionDenyListEntries = NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s)
585 rs.UserEvents = NewProjectsLocationsDataStoresUserEventsService(s)
586 return rs
587 }
588
589 type ProjectsLocationsDataStoresService struct {
590 s *Service
591
592 Branches *ProjectsLocationsDataStoresBranchesService
593
594 Conversations *ProjectsLocationsDataStoresConversationsService
595
596 Models *ProjectsLocationsDataStoresModelsService
597
598 Operations *ProjectsLocationsDataStoresOperationsService
599
600 Schemas *ProjectsLocationsDataStoresSchemasService
601
602 ServingConfigs *ProjectsLocationsDataStoresServingConfigsService
603
604 Sessions *ProjectsLocationsDataStoresSessionsService
605
606 SiteSearchEngine *ProjectsLocationsDataStoresSiteSearchEngineService
607
608 SuggestionDenyListEntries *ProjectsLocationsDataStoresSuggestionDenyListEntriesService
609
610 UserEvents *ProjectsLocationsDataStoresUserEventsService
611 }
612
613 func NewProjectsLocationsDataStoresBranchesService(s *Service) *ProjectsLocationsDataStoresBranchesService {
614 rs := &ProjectsLocationsDataStoresBranchesService{s: s}
615 rs.Documents = NewProjectsLocationsDataStoresBranchesDocumentsService(s)
616 rs.Operations = NewProjectsLocationsDataStoresBranchesOperationsService(s)
617 return rs
618 }
619
620 type ProjectsLocationsDataStoresBranchesService struct {
621 s *Service
622
623 Documents *ProjectsLocationsDataStoresBranchesDocumentsService
624
625 Operations *ProjectsLocationsDataStoresBranchesOperationsService
626 }
627
628 func NewProjectsLocationsDataStoresBranchesDocumentsService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsService {
629 rs := &ProjectsLocationsDataStoresBranchesDocumentsService{s: s}
630 rs.Chunks = NewProjectsLocationsDataStoresBranchesDocumentsChunksService(s)
631 return rs
632 }
633
634 type ProjectsLocationsDataStoresBranchesDocumentsService struct {
635 s *Service
636
637 Chunks *ProjectsLocationsDataStoresBranchesDocumentsChunksService
638 }
639
640 func NewProjectsLocationsDataStoresBranchesDocumentsChunksService(s *Service) *ProjectsLocationsDataStoresBranchesDocumentsChunksService {
641 rs := &ProjectsLocationsDataStoresBranchesDocumentsChunksService{s: s}
642 return rs
643 }
644
645 type ProjectsLocationsDataStoresBranchesDocumentsChunksService struct {
646 s *Service
647 }
648
649 func NewProjectsLocationsDataStoresBranchesOperationsService(s *Service) *ProjectsLocationsDataStoresBranchesOperationsService {
650 rs := &ProjectsLocationsDataStoresBranchesOperationsService{s: s}
651 return rs
652 }
653
654 type ProjectsLocationsDataStoresBranchesOperationsService struct {
655 s *Service
656 }
657
658 func NewProjectsLocationsDataStoresConversationsService(s *Service) *ProjectsLocationsDataStoresConversationsService {
659 rs := &ProjectsLocationsDataStoresConversationsService{s: s}
660 return rs
661 }
662
663 type ProjectsLocationsDataStoresConversationsService struct {
664 s *Service
665 }
666
667 func NewProjectsLocationsDataStoresModelsService(s *Service) *ProjectsLocationsDataStoresModelsService {
668 rs := &ProjectsLocationsDataStoresModelsService{s: s}
669 rs.Operations = NewProjectsLocationsDataStoresModelsOperationsService(s)
670 return rs
671 }
672
673 type ProjectsLocationsDataStoresModelsService struct {
674 s *Service
675
676 Operations *ProjectsLocationsDataStoresModelsOperationsService
677 }
678
679 func NewProjectsLocationsDataStoresModelsOperationsService(s *Service) *ProjectsLocationsDataStoresModelsOperationsService {
680 rs := &ProjectsLocationsDataStoresModelsOperationsService{s: s}
681 return rs
682 }
683
684 type ProjectsLocationsDataStoresModelsOperationsService struct {
685 s *Service
686 }
687
688 func NewProjectsLocationsDataStoresOperationsService(s *Service) *ProjectsLocationsDataStoresOperationsService {
689 rs := &ProjectsLocationsDataStoresOperationsService{s: s}
690 return rs
691 }
692
693 type ProjectsLocationsDataStoresOperationsService struct {
694 s *Service
695 }
696
697 func NewProjectsLocationsDataStoresSchemasService(s *Service) *ProjectsLocationsDataStoresSchemasService {
698 rs := &ProjectsLocationsDataStoresSchemasService{s: s}
699 return rs
700 }
701
702 type ProjectsLocationsDataStoresSchemasService struct {
703 s *Service
704 }
705
706 func NewProjectsLocationsDataStoresServingConfigsService(s *Service) *ProjectsLocationsDataStoresServingConfigsService {
707 rs := &ProjectsLocationsDataStoresServingConfigsService{s: s}
708 return rs
709 }
710
711 type ProjectsLocationsDataStoresServingConfigsService struct {
712 s *Service
713 }
714
715 func NewProjectsLocationsDataStoresSessionsService(s *Service) *ProjectsLocationsDataStoresSessionsService {
716 rs := &ProjectsLocationsDataStoresSessionsService{s: s}
717 rs.Answers = NewProjectsLocationsDataStoresSessionsAnswersService(s)
718 return rs
719 }
720
721 type ProjectsLocationsDataStoresSessionsService struct {
722 s *Service
723
724 Answers *ProjectsLocationsDataStoresSessionsAnswersService
725 }
726
727 func NewProjectsLocationsDataStoresSessionsAnswersService(s *Service) *ProjectsLocationsDataStoresSessionsAnswersService {
728 rs := &ProjectsLocationsDataStoresSessionsAnswersService{s: s}
729 return rs
730 }
731
732 type ProjectsLocationsDataStoresSessionsAnswersService struct {
733 s *Service
734 }
735
736 func NewProjectsLocationsDataStoresSiteSearchEngineService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineService {
737 rs := &ProjectsLocationsDataStoresSiteSearchEngineService{s: s}
738 rs.TargetSites = NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s)
739 return rs
740 }
741
742 type ProjectsLocationsDataStoresSiteSearchEngineService struct {
743 s *Service
744
745 TargetSites *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService
746 }
747
748 func NewProjectsLocationsDataStoresSiteSearchEngineTargetSitesService(s *Service) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService {
749 rs := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService{s: s}
750 return rs
751 }
752
753 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService struct {
754 s *Service
755 }
756
757 func NewProjectsLocationsDataStoresSuggestionDenyListEntriesService(s *Service) *ProjectsLocationsDataStoresSuggestionDenyListEntriesService {
758 rs := &ProjectsLocationsDataStoresSuggestionDenyListEntriesService{s: s}
759 return rs
760 }
761
762 type ProjectsLocationsDataStoresSuggestionDenyListEntriesService struct {
763 s *Service
764 }
765
766 func NewProjectsLocationsDataStoresUserEventsService(s *Service) *ProjectsLocationsDataStoresUserEventsService {
767 rs := &ProjectsLocationsDataStoresUserEventsService{s: s}
768 return rs
769 }
770
771 type ProjectsLocationsDataStoresUserEventsService struct {
772 s *Service
773 }
774
775 func NewProjectsLocationsEvaluationsService(s *Service) *ProjectsLocationsEvaluationsService {
776 rs := &ProjectsLocationsEvaluationsService{s: s}
777 rs.Operations = NewProjectsLocationsEvaluationsOperationsService(s)
778 return rs
779 }
780
781 type ProjectsLocationsEvaluationsService struct {
782 s *Service
783
784 Operations *ProjectsLocationsEvaluationsOperationsService
785 }
786
787 func NewProjectsLocationsEvaluationsOperationsService(s *Service) *ProjectsLocationsEvaluationsOperationsService {
788 rs := &ProjectsLocationsEvaluationsOperationsService{s: s}
789 return rs
790 }
791
792 type ProjectsLocationsEvaluationsOperationsService struct {
793 s *Service
794 }
795
796 func NewProjectsLocationsGroundingConfigsService(s *Service) *ProjectsLocationsGroundingConfigsService {
797 rs := &ProjectsLocationsGroundingConfigsService{s: s}
798 return rs
799 }
800
801 type ProjectsLocationsGroundingConfigsService struct {
802 s *Service
803 }
804
805 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
806 rs := &ProjectsLocationsOperationsService{s: s}
807 return rs
808 }
809
810 type ProjectsLocationsOperationsService struct {
811 s *Service
812 }
813
814 func NewProjectsLocationsRankingConfigsService(s *Service) *ProjectsLocationsRankingConfigsService {
815 rs := &ProjectsLocationsRankingConfigsService{s: s}
816 return rs
817 }
818
819 type ProjectsLocationsRankingConfigsService struct {
820 s *Service
821 }
822
823 func NewProjectsLocationsSampleQuerySetsService(s *Service) *ProjectsLocationsSampleQuerySetsService {
824 rs := &ProjectsLocationsSampleQuerySetsService{s: s}
825 rs.Operations = NewProjectsLocationsSampleQuerySetsOperationsService(s)
826 return rs
827 }
828
829 type ProjectsLocationsSampleQuerySetsService struct {
830 s *Service
831
832 Operations *ProjectsLocationsSampleQuerySetsOperationsService
833 }
834
835 func NewProjectsLocationsSampleQuerySetsOperationsService(s *Service) *ProjectsLocationsSampleQuerySetsOperationsService {
836 rs := &ProjectsLocationsSampleQuerySetsOperationsService{s: s}
837 return rs
838 }
839
840 type ProjectsLocationsSampleQuerySetsOperationsService struct {
841 s *Service
842 }
843
844 func NewProjectsLocationsUserEventsService(s *Service) *ProjectsLocationsUserEventsService {
845 rs := &ProjectsLocationsUserEventsService{s: s}
846 return rs
847 }
848
849 type ProjectsLocationsUserEventsService struct {
850 s *Service
851 }
852
853 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
854 rs := &ProjectsOperationsService{s: s}
855 return rs
856 }
857
858 type ProjectsOperationsService struct {
859 s *Service
860 }
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879 type GoogleApiHttpBody struct {
880
881
882 ContentType string `json:"contentType,omitempty"`
883
884 Data string `json:"data,omitempty"`
885
886
887 Extensions []googleapi.RawMessage `json:"extensions,omitempty"`
888
889
890 googleapi.ServerResponse `json:"-"`
891
892
893
894
895
896 ForceSendFields []string `json:"-"`
897
898
899
900
901 NullFields []string `json:"-"`
902 }
903
904 func (s *GoogleApiHttpBody) MarshalJSON() ([]byte, error) {
905 type NoMethod GoogleApiHttpBody
906 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
907 }
908
909
910
911 type GoogleCloudDiscoveryengineLoggingErrorContext struct {
912
913
914 HttpRequest *GoogleCloudDiscoveryengineLoggingHttpRequestContext `json:"httpRequest,omitempty"`
915
916
917 ReportLocation *GoogleCloudDiscoveryengineLoggingSourceLocation `json:"reportLocation,omitempty"`
918
919
920
921
922
923 ForceSendFields []string `json:"-"`
924
925
926
927
928 NullFields []string `json:"-"`
929 }
930
931 func (s *GoogleCloudDiscoveryengineLoggingErrorContext) MarshalJSON() ([]byte, error) {
932 type NoMethod GoogleCloudDiscoveryengineLoggingErrorContext
933 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
934 }
935
936
937
938 type GoogleCloudDiscoveryengineLoggingErrorLog struct {
939
940 Context *GoogleCloudDiscoveryengineLoggingErrorContext `json:"context,omitempty"`
941
942 ImportPayload *GoogleCloudDiscoveryengineLoggingImportErrorContext `json:"importPayload,omitempty"`
943
944 Message string `json:"message,omitempty"`
945
946
947
948
949
950
951 RequestPayload googleapi.RawMessage `json:"requestPayload,omitempty"`
952
953
954
955
956
957
958
959 ResponsePayload googleapi.RawMessage `json:"responsePayload,omitempty"`
960
961 ServiceContext *GoogleCloudDiscoveryengineLoggingServiceContext `json:"serviceContext,omitempty"`
962
963 Status *GoogleRpcStatus `json:"status,omitempty"`
964
965
966
967
968
969 ForceSendFields []string `json:"-"`
970
971
972
973
974 NullFields []string `json:"-"`
975 }
976
977 func (s *GoogleCloudDiscoveryengineLoggingErrorLog) MarshalJSON() ([]byte, error) {
978 type NoMethod GoogleCloudDiscoveryengineLoggingErrorLog
979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
980 }
981
982
983
984 type GoogleCloudDiscoveryengineLoggingHttpRequestContext struct {
985
986 ResponseStatusCode int64 `json:"responseStatusCode,omitempty"`
987
988
989
990
991
992 ForceSendFields []string `json:"-"`
993
994
995
996
997 NullFields []string `json:"-"`
998 }
999
1000 func (s *GoogleCloudDiscoveryengineLoggingHttpRequestContext) MarshalJSON() ([]byte, error) {
1001 type NoMethod GoogleCloudDiscoveryengineLoggingHttpRequestContext
1002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1003 }
1004
1005
1006
1007
1008
1009 type GoogleCloudDiscoveryengineLoggingImportErrorContext struct {
1010
1011
1012 Document string `json:"document,omitempty"`
1013
1014
1015 GcsPath string `json:"gcsPath,omitempty"`
1016
1017
1018 LineNumber string `json:"lineNumber,omitempty"`
1019
1020 Operation string `json:"operation,omitempty"`
1021
1022
1023 UserEvent string `json:"userEvent,omitempty"`
1024
1025
1026
1027
1028
1029 ForceSendFields []string `json:"-"`
1030
1031
1032
1033
1034 NullFields []string `json:"-"`
1035 }
1036
1037 func (s *GoogleCloudDiscoveryengineLoggingImportErrorContext) MarshalJSON() ([]byte, error) {
1038 type NoMethod GoogleCloudDiscoveryengineLoggingImportErrorContext
1039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1040 }
1041
1042
1043
1044 type GoogleCloudDiscoveryengineLoggingServiceContext struct {
1045
1046
1047 Service string `json:"service,omitempty"`
1048
1049
1050
1051
1052
1053 ForceSendFields []string `json:"-"`
1054
1055
1056
1057
1058 NullFields []string `json:"-"`
1059 }
1060
1061 func (s *GoogleCloudDiscoveryengineLoggingServiceContext) MarshalJSON() ([]byte, error) {
1062 type NoMethod GoogleCloudDiscoveryengineLoggingServiceContext
1063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1064 }
1065
1066
1067
1068 type GoogleCloudDiscoveryengineLoggingSourceLocation struct {
1069
1070
1071 FunctionName string `json:"functionName,omitempty"`
1072
1073
1074
1075
1076
1077 ForceSendFields []string `json:"-"`
1078
1079
1080
1081
1082 NullFields []string `json:"-"`
1083 }
1084
1085 func (s *GoogleCloudDiscoveryengineLoggingSourceLocation) MarshalJSON() ([]byte, error) {
1086 type NoMethod GoogleCloudDiscoveryengineLoggingSourceLocation
1087 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1088 }
1089
1090
1091
1092
1093
1094 type GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata struct {
1095
1096 CreateTime string `json:"createTime,omitempty"`
1097
1098
1099 UpdateTime string `json:"updateTime,omitempty"`
1100
1101
1102
1103
1104
1105 ForceSendFields []string `json:"-"`
1106
1107
1108
1109
1110 NullFields []string `json:"-"`
1111 }
1112
1113 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1114 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSiteMetadata
1115 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1116 }
1117
1118
1119
1120 type GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse struct {
1121
1122 TargetSites []*GoogleCloudDiscoveryengineV1TargetSite `json:"targetSites,omitempty"`
1123
1124
1125
1126
1127
1128 ForceSendFields []string `json:"-"`
1129
1130
1131
1132
1133 NullFields []string `json:"-"`
1134 }
1135
1136 func (s *GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
1137 type NoMethod GoogleCloudDiscoveryengineV1BatchCreateTargetSitesResponse
1138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1139 }
1140
1141
1142
1143
1144 type GoogleCloudDiscoveryengineV1CreateDataStoreMetadata struct {
1145
1146 CreateTime string `json:"createTime,omitempty"`
1147
1148
1149 UpdateTime string `json:"updateTime,omitempty"`
1150
1151
1152
1153
1154
1155 ForceSendFields []string `json:"-"`
1156
1157
1158
1159
1160 NullFields []string `json:"-"`
1161 }
1162
1163 func (s *GoogleCloudDiscoveryengineV1CreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
1164 type NoMethod GoogleCloudDiscoveryengineV1CreateDataStoreMetadata
1165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1166 }
1167
1168
1169
1170
1171 type GoogleCloudDiscoveryengineV1CreateEngineMetadata struct {
1172
1173 CreateTime string `json:"createTime,omitempty"`
1174
1175
1176 UpdateTime string `json:"updateTime,omitempty"`
1177
1178
1179
1180
1181
1182 ForceSendFields []string `json:"-"`
1183
1184
1185
1186
1187 NullFields []string `json:"-"`
1188 }
1189
1190 func (s *GoogleCloudDiscoveryengineV1CreateEngineMetadata) MarshalJSON() ([]byte, error) {
1191 type NoMethod GoogleCloudDiscoveryengineV1CreateEngineMetadata
1192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1193 }
1194
1195
1196
1197 type GoogleCloudDiscoveryengineV1CreateSchemaMetadata struct {
1198
1199 CreateTime string `json:"createTime,omitempty"`
1200
1201
1202 UpdateTime string `json:"updateTime,omitempty"`
1203
1204
1205
1206
1207
1208 ForceSendFields []string `json:"-"`
1209
1210
1211
1212
1213 NullFields []string `json:"-"`
1214 }
1215
1216 func (s *GoogleCloudDiscoveryengineV1CreateSchemaMetadata) MarshalJSON() ([]byte, error) {
1217 type NoMethod GoogleCloudDiscoveryengineV1CreateSchemaMetadata
1218 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1219 }
1220
1221
1222
1223
1224 type GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata struct {
1225
1226 CreateTime string `json:"createTime,omitempty"`
1227
1228
1229 UpdateTime string `json:"updateTime,omitempty"`
1230
1231
1232
1233
1234
1235 ForceSendFields []string `json:"-"`
1236
1237
1238
1239
1240 NullFields []string `json:"-"`
1241 }
1242
1243 func (s *GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1244 type NoMethod GoogleCloudDiscoveryengineV1CreateTargetSiteMetadata
1245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1246 }
1247
1248
1249
1250 type GoogleCloudDiscoveryengineV1DataStore struct {
1251
1252
1253
1254
1255
1256
1257
1258
1259 ContentConfig string `json:"contentConfig,omitempty"`
1260
1261 CreateTime string `json:"createTime,omitempty"`
1262
1263
1264 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
1265
1266
1267
1268 DisplayName string `json:"displayName,omitempty"`
1269
1270
1271 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281 IndustryVertical string `json:"industryVertical,omitempty"`
1282
1283
1284
1285
1286 Name string `json:"name,omitempty"`
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
1302 SolutionTypes []string `json:"solutionTypes,omitempty"`
1303
1304
1305
1306
1307
1308
1309
1310
1311 StartingSchema *GoogleCloudDiscoveryengineV1Schema `json:"startingSchema,omitempty"`
1312
1313
1314
1315
1316
1317 ForceSendFields []string `json:"-"`
1318
1319
1320
1321
1322 NullFields []string `json:"-"`
1323 }
1324
1325 func (s *GoogleCloudDiscoveryengineV1DataStore) MarshalJSON() ([]byte, error) {
1326 type NoMethod GoogleCloudDiscoveryengineV1DataStore
1327 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1328 }
1329
1330
1331
1332
1333 type GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata struct {
1334
1335 CreateTime string `json:"createTime,omitempty"`
1336
1337
1338 UpdateTime string `json:"updateTime,omitempty"`
1339
1340
1341
1342
1343
1344 ForceSendFields []string `json:"-"`
1345
1346
1347
1348
1349 NullFields []string `json:"-"`
1350 }
1351
1352 func (s *GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
1353 type NoMethod GoogleCloudDiscoveryengineV1DeleteDataStoreMetadata
1354 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1355 }
1356
1357
1358
1359
1360 type GoogleCloudDiscoveryengineV1DeleteEngineMetadata struct {
1361
1362 CreateTime string `json:"createTime,omitempty"`
1363
1364
1365 UpdateTime string `json:"updateTime,omitempty"`
1366
1367
1368
1369
1370
1371 ForceSendFields []string `json:"-"`
1372
1373
1374
1375
1376 NullFields []string `json:"-"`
1377 }
1378
1379 func (s *GoogleCloudDiscoveryengineV1DeleteEngineMetadata) MarshalJSON() ([]byte, error) {
1380 type NoMethod GoogleCloudDiscoveryengineV1DeleteEngineMetadata
1381 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1382 }
1383
1384
1385
1386 type GoogleCloudDiscoveryengineV1DeleteSchemaMetadata struct {
1387
1388 CreateTime string `json:"createTime,omitempty"`
1389
1390
1391 UpdateTime string `json:"updateTime,omitempty"`
1392
1393
1394
1395
1396
1397 ForceSendFields []string `json:"-"`
1398
1399
1400
1401
1402 NullFields []string `json:"-"`
1403 }
1404
1405 func (s *GoogleCloudDiscoveryengineV1DeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
1406 type NoMethod GoogleCloudDiscoveryengineV1DeleteSchemaMetadata
1407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1408 }
1409
1410
1411
1412
1413 type GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata struct {
1414
1415 CreateTime string `json:"createTime,omitempty"`
1416
1417
1418 UpdateTime string `json:"updateTime,omitempty"`
1419
1420
1421
1422
1423
1424 ForceSendFields []string `json:"-"`
1425
1426
1427
1428
1429 NullFields []string `json:"-"`
1430 }
1431
1432 func (s *GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
1433 type NoMethod GoogleCloudDiscoveryengineV1DeleteTargetSiteMetadata
1434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1435 }
1436
1437
1438
1439
1440
1441 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata struct {
1442
1443 CreateTime string `json:"createTime,omitempty"`
1444
1445
1446 UpdateTime string `json:"updateTime,omitempty"`
1447
1448
1449
1450
1451
1452 ForceSendFields []string `json:"-"`
1453
1454
1455
1456
1457 NullFields []string `json:"-"`
1458 }
1459
1460 func (s *GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
1461 type NoMethod GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchMetadata
1462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1463 }
1464
1465
1466
1467 type GoogleCloudDiscoveryengineV1DisableAdvancedSiteSearchResponse struct {
1468 }
1469
1470
1471
1472
1473
1474
1475 type GoogleCloudDiscoveryengineV1DocumentProcessingConfig struct {
1476
1477
1478
1479
1480 DefaultParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
1481
1482
1483 Name string `json:"name,omitempty"`
1484
1485
1486
1487
1488
1489
1490
1491 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
1492
1493
1494
1495
1496
1497 ForceSendFields []string `json:"-"`
1498
1499
1500
1501
1502 NullFields []string `json:"-"`
1503 }
1504
1505 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfig) MarshalJSON() ([]byte, error) {
1506 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfig
1507 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1508 }
1509
1510
1511
1512 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig struct {
1513
1514 DigitalParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
1515
1516
1517 OcrParsingConfig *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
1518
1519
1520
1521
1522
1523 ForceSendFields []string `json:"-"`
1524
1525
1526
1527
1528 NullFields []string `json:"-"`
1529 }
1530
1531 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
1532 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfig
1533 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1534 }
1535
1536
1537
1538 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
1539 }
1540
1541
1542
1543 type GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig struct {
1544
1545
1546
1547 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
1548
1549
1550 UseNativeText bool `json:"useNativeText,omitempty"`
1551
1552
1553
1554
1555
1556 ForceSendFields []string `json:"-"`
1557
1558
1559
1560
1561 NullFields []string `json:"-"`
1562 }
1563
1564 func (s *GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
1565 type NoMethod GoogleCloudDiscoveryengineV1DocumentProcessingConfigParsingConfigOcrParsingConfig
1566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1567 }
1568
1569
1570
1571
1572
1573 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata struct {
1574
1575 CreateTime string `json:"createTime,omitempty"`
1576
1577
1578 UpdateTime string `json:"updateTime,omitempty"`
1579
1580
1581
1582
1583
1584 ForceSendFields []string `json:"-"`
1585
1586
1587
1588
1589 NullFields []string `json:"-"`
1590 }
1591
1592 func (s *GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
1593 type NoMethod GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchMetadata
1594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1595 }
1596
1597
1598
1599 type GoogleCloudDiscoveryengineV1EnableAdvancedSiteSearchResponse struct {
1600 }
1601
1602
1603
1604 type GoogleCloudDiscoveryengineV1Engine struct {
1605
1606
1607 ChatEngineConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
1608
1609
1610 ChatEngineMetadata *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
1611
1612 CommonConfig *GoogleCloudDiscoveryengineV1EngineCommonConfig `json:"commonConfig,omitempty"`
1613
1614 CreateTime string `json:"createTime,omitempty"`
1615
1616
1617
1618
1619
1620
1621 DataStoreIds []string `json:"dataStoreIds,omitempty"`
1622
1623
1624 DisplayName string `json:"displayName,omitempty"`
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636 IndustryVertical string `json:"industryVertical,omitempty"`
1637
1638
1639
1640
1641
1642
1643 Name string `json:"name,omitempty"`
1644
1645
1646 SearchEngineConfig *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
1647
1648
1649
1650
1651
1652
1653
1654
1655
1656
1657
1658 SolutionType string `json:"solutionType,omitempty"`
1659
1660
1661 UpdateTime string `json:"updateTime,omitempty"`
1662
1663
1664
1665
1666
1667 ForceSendFields []string `json:"-"`
1668
1669
1670
1671
1672 NullFields []string `json:"-"`
1673 }
1674
1675 func (s *GoogleCloudDiscoveryengineV1Engine) MarshalJSON() ([]byte, error) {
1676 type NoMethod GoogleCloudDiscoveryengineV1Engine
1677 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1678 }
1679
1680
1681
1682 type GoogleCloudDiscoveryengineV1EngineChatEngineConfig struct {
1683
1684
1685
1686
1687
1688 AgentCreationConfig *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
1689
1690
1691
1692
1693
1694
1695
1696
1697
1698 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
1699
1700
1701
1702
1703
1704 ForceSendFields []string `json:"-"`
1705
1706
1707
1708
1709 NullFields []string `json:"-"`
1710 }
1711
1712 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfig) MarshalJSON() ([]byte, error) {
1713 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfig
1714 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1715 }
1716
1717
1718
1719
1720
1721
1722 type GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig struct {
1723
1724
1725
1726 Business string `json:"business,omitempty"`
1727
1728
1729
1730
1731 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
1732
1733
1734
1735 Location string `json:"location,omitempty"`
1736
1737
1738 TimeZone string `json:"timeZone,omitempty"`
1739
1740
1741
1742
1743
1744 ForceSendFields []string `json:"-"`
1745
1746
1747
1748
1749 NullFields []string `json:"-"`
1750 }
1751
1752 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
1753 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineConfigAgentCreationConfig
1754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1755 }
1756
1757
1758
1759 type GoogleCloudDiscoveryengineV1EngineChatEngineMetadata struct {
1760
1761
1762 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
1763
1764
1765
1766
1767
1768 ForceSendFields []string `json:"-"`
1769
1770
1771
1772
1773 NullFields []string `json:"-"`
1774 }
1775
1776 func (s *GoogleCloudDiscoveryengineV1EngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
1777 type NoMethod GoogleCloudDiscoveryengineV1EngineChatEngineMetadata
1778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1779 }
1780
1781
1782
1783 type GoogleCloudDiscoveryengineV1EngineCommonConfig struct {
1784
1785
1786
1787 CompanyName string `json:"companyName,omitempty"`
1788
1789
1790
1791
1792
1793 ForceSendFields []string `json:"-"`
1794
1795
1796
1797
1798 NullFields []string `json:"-"`
1799 }
1800
1801 func (s *GoogleCloudDiscoveryengineV1EngineCommonConfig) MarshalJSON() ([]byte, error) {
1802 type NoMethod GoogleCloudDiscoveryengineV1EngineCommonConfig
1803 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1804 }
1805
1806
1807
1808 type GoogleCloudDiscoveryengineV1EngineSearchEngineConfig struct {
1809
1810
1811
1812
1813
1814
1815 SearchAddOns []string `json:"searchAddOns,omitempty"`
1816
1817
1818
1819
1820
1821
1822
1823
1824
1825 SearchTier string `json:"searchTier,omitempty"`
1826
1827
1828
1829
1830
1831 ForceSendFields []string `json:"-"`
1832
1833
1834
1835
1836 NullFields []string `json:"-"`
1837 }
1838
1839 func (s *GoogleCloudDiscoveryengineV1EngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
1840 type NoMethod GoogleCloudDiscoveryengineV1EngineSearchEngineConfig
1841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1842 }
1843
1844
1845
1846
1847 type GoogleCloudDiscoveryengineV1ImportDocumentsMetadata struct {
1848
1849 CreateTime string `json:"createTime,omitempty"`
1850
1851 FailureCount int64 `json:"failureCount,omitempty,string"`
1852
1853 SuccessCount int64 `json:"successCount,omitempty,string"`
1854
1855 TotalCount int64 `json:"totalCount,omitempty,string"`
1856
1857
1858 UpdateTime string `json:"updateTime,omitempty"`
1859
1860
1861
1862
1863
1864 ForceSendFields []string `json:"-"`
1865
1866
1867
1868
1869 NullFields []string `json:"-"`
1870 }
1871
1872 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
1873 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsMetadata
1874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1875 }
1876
1877
1878
1879
1880
1881 type GoogleCloudDiscoveryengineV1ImportDocumentsResponse struct {
1882
1883
1884 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
1885
1886 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
1887
1888
1889
1890
1891
1892 ForceSendFields []string `json:"-"`
1893
1894
1895
1896
1897 NullFields []string `json:"-"`
1898 }
1899
1900 func (s *GoogleCloudDiscoveryengineV1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
1901 type NoMethod GoogleCloudDiscoveryengineV1ImportDocumentsResponse
1902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1903 }
1904
1905
1906
1907 type GoogleCloudDiscoveryengineV1ImportErrorConfig struct {
1908
1909
1910
1911
1912 GcsPrefix string `json:"gcsPrefix,omitempty"`
1913
1914
1915
1916
1917
1918 ForceSendFields []string `json:"-"`
1919
1920
1921
1922
1923 NullFields []string `json:"-"`
1924 }
1925
1926 func (s *GoogleCloudDiscoveryengineV1ImportErrorConfig) MarshalJSON() ([]byte, error) {
1927 type NoMethod GoogleCloudDiscoveryengineV1ImportErrorConfig
1928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1929 }
1930
1931
1932
1933
1934
1935 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata struct {
1936
1937 CreateTime string `json:"createTime,omitempty"`
1938
1939
1940 UpdateTime string `json:"updateTime,omitempty"`
1941
1942
1943
1944
1945
1946 ForceSendFields []string `json:"-"`
1947
1948
1949
1950
1951 NullFields []string `json:"-"`
1952 }
1953
1954 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
1955 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesMetadata
1956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1957 }
1958
1959
1960
1961
1962 type GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse struct {
1963
1964 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
1965
1966 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
1967
1968 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
1969
1970
1971
1972
1973
1974 ForceSendFields []string `json:"-"`
1975
1976
1977
1978
1979 NullFields []string `json:"-"`
1980 }
1981
1982 func (s *GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
1983 type NoMethod GoogleCloudDiscoveryengineV1ImportSuggestionDenyListEntriesResponse
1984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1985 }
1986
1987
1988
1989
1990 type GoogleCloudDiscoveryengineV1ImportUserEventsMetadata struct {
1991
1992 CreateTime string `json:"createTime,omitempty"`
1993
1994 FailureCount int64 `json:"failureCount,omitempty,string"`
1995
1996 SuccessCount int64 `json:"successCount,omitempty,string"`
1997
1998
1999 UpdateTime string `json:"updateTime,omitempty"`
2000
2001
2002
2003
2004
2005 ForceSendFields []string `json:"-"`
2006
2007
2008
2009
2010 NullFields []string `json:"-"`
2011 }
2012
2013 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
2014 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsMetadata
2015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2016 }
2017
2018
2019
2020
2021
2022 type GoogleCloudDiscoveryengineV1ImportUserEventsResponse struct {
2023
2024
2025 ErrorConfig *GoogleCloudDiscoveryengineV1ImportErrorConfig `json:"errorConfig,omitempty"`
2026
2027 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
2028
2029
2030 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
2031
2032
2033 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
2034
2035
2036
2037
2038
2039 ForceSendFields []string `json:"-"`
2040
2041
2042
2043
2044 NullFields []string `json:"-"`
2045 }
2046
2047 func (s *GoogleCloudDiscoveryengineV1ImportUserEventsResponse) MarshalJSON() ([]byte, error) {
2048 type NoMethod GoogleCloudDiscoveryengineV1ImportUserEventsResponse
2049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2050 }
2051
2052
2053
2054
2055 type GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata struct {
2056
2057 CreateTime string `json:"createTime,omitempty"`
2058
2059 FailureCount int64 `json:"failureCount,omitempty,string"`
2060
2061 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
2062
2063 SuccessCount int64 `json:"successCount,omitempty,string"`
2064
2065
2066 UpdateTime string `json:"updateTime,omitempty"`
2067
2068
2069
2070
2071
2072 ForceSendFields []string `json:"-"`
2073
2074
2075
2076
2077 NullFields []string `json:"-"`
2078 }
2079
2080 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
2081 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsMetadata
2082 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2083 }
2084
2085
2086
2087
2088
2089 type GoogleCloudDiscoveryengineV1PurgeDocumentsResponse struct {
2090
2091
2092 PurgeCount int64 `json:"purgeCount,omitempty,string"`
2093
2094
2095
2096 PurgeSample []string `json:"purgeSample,omitempty"`
2097
2098
2099
2100
2101
2102 ForceSendFields []string `json:"-"`
2103
2104
2105
2106
2107 NullFields []string `json:"-"`
2108 }
2109
2110 func (s *GoogleCloudDiscoveryengineV1PurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
2111 type NoMethod GoogleCloudDiscoveryengineV1PurgeDocumentsResponse
2112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2113 }
2114
2115
2116
2117
2118 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata struct {
2119
2120 CreateTime string `json:"createTime,omitempty"`
2121
2122
2123 UpdateTime string `json:"updateTime,omitempty"`
2124
2125
2126
2127
2128
2129 ForceSendFields []string `json:"-"`
2130
2131
2132
2133
2134 NullFields []string `json:"-"`
2135 }
2136
2137 func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
2138 type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesMetadata
2139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2140 }
2141
2142
2143
2144 type GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse struct {
2145
2146 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
2147
2148 PurgeCount int64 `json:"purgeCount,omitempty,string"`
2149
2150
2151
2152
2153
2154 ForceSendFields []string `json:"-"`
2155
2156
2157
2158
2159 NullFields []string `json:"-"`
2160 }
2161
2162 func (s *GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
2163 type NoMethod GoogleCloudDiscoveryengineV1PurgeSuggestionDenyListEntriesResponse
2164 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2165 }
2166
2167
2168
2169 type GoogleCloudDiscoveryengineV1Schema struct {
2170
2171 JsonSchema string `json:"jsonSchema,omitempty"`
2172
2173
2174
2175
2176 Name string `json:"name,omitempty"`
2177
2178 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
2179
2180
2181
2182
2183
2184 ForceSendFields []string `json:"-"`
2185
2186
2187
2188
2189 NullFields []string `json:"-"`
2190 }
2191
2192 func (s *GoogleCloudDiscoveryengineV1Schema) MarshalJSON() ([]byte, error) {
2193 type NoMethod GoogleCloudDiscoveryengineV1Schema
2194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2195 }
2196
2197
2198
2199 type GoogleCloudDiscoveryengineV1SiteVerificationInfo struct {
2200
2201
2202
2203
2204
2205
2206
2207
2208
2209 SiteVerificationState string `json:"siteVerificationState,omitempty"`
2210
2211 VerifyTime string `json:"verifyTime,omitempty"`
2212
2213
2214
2215
2216
2217 ForceSendFields []string `json:"-"`
2218
2219
2220
2221
2222 NullFields []string `json:"-"`
2223 }
2224
2225 func (s *GoogleCloudDiscoveryengineV1SiteVerificationInfo) MarshalJSON() ([]byte, error) {
2226 type NoMethod GoogleCloudDiscoveryengineV1SiteVerificationInfo
2227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2228 }
2229
2230
2231
2232 type GoogleCloudDiscoveryengineV1TargetSite struct {
2233
2234
2235
2236
2237
2238
2239 ExactMatch bool `json:"exactMatch,omitempty"`
2240
2241 FailureReason *GoogleCloudDiscoveryengineV1TargetSiteFailureReason `json:"failureReason,omitempty"`
2242
2243
2244 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
2245
2246
2247
2248
2249
2250
2251
2252
2253
2254
2255
2256
2257 IndexingStatus string `json:"indexingStatus,omitempty"`
2258
2259
2260
2261
2262 Name string `json:"name,omitempty"`
2263
2264
2265 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
2266
2267 RootDomainUri string `json:"rootDomainUri,omitempty"`
2268
2269
2270 SiteVerificationInfo *GoogleCloudDiscoveryengineV1SiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
2271
2272
2273
2274
2275
2276
2277
2278
2279 Type string `json:"type,omitempty"`
2280
2281 UpdateTime string `json:"updateTime,omitempty"`
2282
2283
2284
2285
2286
2287 ForceSendFields []string `json:"-"`
2288
2289
2290
2291
2292 NullFields []string `json:"-"`
2293 }
2294
2295 func (s *GoogleCloudDiscoveryengineV1TargetSite) MarshalJSON() ([]byte, error) {
2296 type NoMethod GoogleCloudDiscoveryengineV1TargetSite
2297 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2298 }
2299
2300
2301
2302 type GoogleCloudDiscoveryengineV1TargetSiteFailureReason struct {
2303
2304 QuotaFailure *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
2305
2306
2307
2308
2309
2310 ForceSendFields []string `json:"-"`
2311
2312
2313
2314
2315 NullFields []string `json:"-"`
2316 }
2317
2318 func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReason) MarshalJSON() ([]byte, error) {
2319 type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReason
2320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2321 }
2322
2323
2324
2325 type GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure struct {
2326
2327
2328 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
2329
2330
2331
2332
2333
2334 ForceSendFields []string `json:"-"`
2335
2336
2337
2338
2339 NullFields []string `json:"-"`
2340 }
2341
2342 func (s *GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
2343 type NoMethod GoogleCloudDiscoveryengineV1TargetSiteFailureReasonQuotaFailure
2344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2345 }
2346
2347
2348
2349 type GoogleCloudDiscoveryengineV1UpdateSchemaMetadata struct {
2350
2351 CreateTime string `json:"createTime,omitempty"`
2352
2353
2354 UpdateTime string `json:"updateTime,omitempty"`
2355
2356
2357
2358
2359
2360 ForceSendFields []string `json:"-"`
2361
2362
2363
2364
2365 NullFields []string `json:"-"`
2366 }
2367
2368 func (s *GoogleCloudDiscoveryengineV1UpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
2369 type NoMethod GoogleCloudDiscoveryengineV1UpdateSchemaMetadata
2370 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2371 }
2372
2373
2374
2375
2376 type GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata struct {
2377
2378 CreateTime string `json:"createTime,omitempty"`
2379
2380
2381 UpdateTime string `json:"updateTime,omitempty"`
2382
2383
2384
2385
2386
2387 ForceSendFields []string `json:"-"`
2388
2389
2390
2391
2392 NullFields []string `json:"-"`
2393 }
2394
2395 func (s *GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
2396 type NoMethod GoogleCloudDiscoveryengineV1UpdateTargetSiteMetadata
2397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2398 }
2399
2400
2401 type GoogleCloudDiscoveryengineV1alphaAclConfig struct {
2402
2403 IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
2404
2405
2406
2407 Name string `json:"name,omitempty"`
2408
2409
2410 googleapi.ServerResponse `json:"-"`
2411
2412
2413
2414
2415
2416 ForceSendFields []string `json:"-"`
2417
2418
2419
2420
2421 NullFields []string `json:"-"`
2422 }
2423
2424 func (s *GoogleCloudDiscoveryengineV1alphaAclConfig) MarshalJSON() ([]byte, error) {
2425 type NoMethod GoogleCloudDiscoveryengineV1alphaAclConfig
2426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2427 }
2428
2429
2430 type GoogleCloudDiscoveryengineV1alphaAnswer struct {
2431
2432
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445 AnswerSkippedReasons []string `json:"answerSkippedReasons,omitempty"`
2446
2447 AnswerText string `json:"answerText,omitempty"`
2448
2449 Citations []*GoogleCloudDiscoveryengineV1alphaAnswerCitation `json:"citations,omitempty"`
2450
2451 CompleteTime string `json:"completeTime,omitempty"`
2452
2453 CreateTime string `json:"createTime,omitempty"`
2454
2455
2456
2457 Name string `json:"name,omitempty"`
2458
2459 QueryUnderstandingInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo `json:"queryUnderstandingInfo,omitempty"`
2460
2461 References []*GoogleCloudDiscoveryengineV1alphaAnswerReference `json:"references,omitempty"`
2462
2463 RelatedQuestions []string `json:"relatedQuestions,omitempty"`
2464
2465
2466
2467
2468
2469
2470
2471 State string `json:"state,omitempty"`
2472
2473 Steps []*GoogleCloudDiscoveryengineV1alphaAnswerStep `json:"steps,omitempty"`
2474
2475
2476 googleapi.ServerResponse `json:"-"`
2477
2478
2479
2480
2481
2482 ForceSendFields []string `json:"-"`
2483
2484
2485
2486
2487 NullFields []string `json:"-"`
2488 }
2489
2490 func (s *GoogleCloudDiscoveryengineV1alphaAnswer) MarshalJSON() ([]byte, error) {
2491 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswer
2492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2493 }
2494
2495
2496
2497 type GoogleCloudDiscoveryengineV1alphaAnswerCitation struct {
2498
2499 EndIndex int64 `json:"endIndex,omitempty,string"`
2500
2501 Sources []*GoogleCloudDiscoveryengineV1alphaAnswerCitationSource `json:"sources,omitempty"`
2502
2503
2504 StartIndex int64 `json:"startIndex,omitempty,string"`
2505
2506
2507
2508
2509
2510 ForceSendFields []string `json:"-"`
2511
2512
2513
2514
2515 NullFields []string `json:"-"`
2516 }
2517
2518 func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitation) MarshalJSON() ([]byte, error) {
2519 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitation
2520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2521 }
2522
2523
2524 type GoogleCloudDiscoveryengineV1alphaAnswerCitationSource struct {
2525
2526 ReferenceId string `json:"referenceId,omitempty"`
2527
2528
2529
2530
2531
2532 ForceSendFields []string `json:"-"`
2533
2534
2535
2536
2537 NullFields []string `json:"-"`
2538 }
2539
2540 func (s *GoogleCloudDiscoveryengineV1alphaAnswerCitationSource) MarshalJSON() ([]byte, error) {
2541 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerCitationSource
2542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2543 }
2544
2545
2546
2547 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest struct {
2548
2549 AnswerGenerationSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec `json:"answerGenerationSpec,omitempty"`
2550
2551
2552
2553
2554
2555 AsynchronousMode bool `json:"asynchronousMode,omitempty"`
2556
2557 Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
2558
2559 QueryUnderstandingSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec `json:"queryUnderstandingSpec,omitempty"`
2560
2561 RelatedQuestionsSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec `json:"relatedQuestionsSpec,omitempty"`
2562
2563 SafetySpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec `json:"safetySpec,omitempty"`
2564
2565 SearchSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec `json:"searchSpec,omitempty"`
2566
2567
2568
2569
2570 Session string `json:"session,omitempty"`
2571
2572
2573
2574
2575
2576
2577
2578 UserPseudoId string `json:"userPseudoId,omitempty"`
2579
2580
2581
2582
2583
2584 ForceSendFields []string `json:"-"`
2585
2586
2587
2588
2589 NullFields []string `json:"-"`
2590 }
2591
2592 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) MarshalJSON() ([]byte, error) {
2593 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
2594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2595 }
2596
2597
2598
2599 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec struct {
2600
2601
2602
2603 AnswerLanguageCode string `json:"answerLanguageCode,omitempty"`
2604
2605
2606
2607
2608
2609
2610
2611
2612 IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
2613
2614
2615
2616
2617
2618
2619 IgnoreNonAnswerSeekingQuery bool `json:"ignoreNonAnswerSeekingQuery,omitempty"`
2620
2621
2622 IncludeCitations bool `json:"includeCitations,omitempty"`
2623
2624 ModelSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec `json:"modelSpec,omitempty"`
2625
2626 PromptSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec `json:"promptSpec,omitempty"`
2627
2628
2629
2630
2631
2632 ForceSendFields []string `json:"-"`
2633
2634
2635
2636
2637 NullFields []string `json:"-"`
2638 }
2639
2640 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec) MarshalJSON() ([]byte, error) {
2641 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpec
2642 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2643 }
2644
2645
2646
2647 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec struct {
2648
2649
2650 ModelVersion string `json:"modelVersion,omitempty"`
2651
2652
2653
2654
2655
2656 ForceSendFields []string `json:"-"`
2657
2658
2659
2660
2661 NullFields []string `json:"-"`
2662 }
2663
2664 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec) MarshalJSON() ([]byte, error) {
2665 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecModelSpec
2666 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2667 }
2668
2669
2670
2671 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec struct {
2672
2673 Preamble string `json:"preamble,omitempty"`
2674
2675
2676
2677
2678
2679 ForceSendFields []string `json:"-"`
2680
2681
2682
2683
2684 NullFields []string `json:"-"`
2685 }
2686
2687 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec) MarshalJSON() ([]byte, error) {
2688 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestAnswerGenerationSpecPromptSpec
2689 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2690 }
2691
2692
2693
2694 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec struct {
2695
2696 QueryClassificationSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec `json:"queryClassificationSpec,omitempty"`
2697
2698 QueryRephraserSpec *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec `json:"queryRephraserSpec,omitempty"`
2699
2700
2701
2702
2703
2704 ForceSendFields []string `json:"-"`
2705
2706
2707
2708
2709 NullFields []string `json:"-"`
2710 }
2711
2712 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec) MarshalJSON() ([]byte, error) {
2713 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpec
2714 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2715 }
2716
2717
2718
2719 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec struct {
2720
2721
2722
2723
2724
2725
2726 Types []string `json:"types,omitempty"`
2727
2728
2729
2730
2731
2732 ForceSendFields []string `json:"-"`
2733
2734
2735
2736
2737 NullFields []string `json:"-"`
2738 }
2739
2740 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec) MarshalJSON() ([]byte, error) {
2741 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec
2742 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2743 }
2744
2745
2746
2747 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec struct {
2748
2749 Disable bool `json:"disable,omitempty"`
2750
2751
2752 MaxRephraseSteps int64 `json:"maxRephraseSteps,omitempty"`
2753
2754
2755
2756
2757
2758 ForceSendFields []string `json:"-"`
2759
2760
2761
2762
2763 NullFields []string `json:"-"`
2764 }
2765
2766 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec) MarshalJSON() ([]byte, error) {
2767 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
2768 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2769 }
2770
2771
2772
2773 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec struct {
2774
2775 Enable bool `json:"enable,omitempty"`
2776
2777
2778
2779
2780
2781 ForceSendFields []string `json:"-"`
2782
2783
2784
2785
2786 NullFields []string `json:"-"`
2787 }
2788
2789 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec) MarshalJSON() ([]byte, error) {
2790 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestRelatedQuestionsSpec
2791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2792 }
2793
2794
2795
2796 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec struct {
2797
2798
2799 Enable bool `json:"enable,omitempty"`
2800
2801
2802
2803
2804
2805 ForceSendFields []string `json:"-"`
2806
2807
2808
2809
2810 NullFields []string `json:"-"`
2811 }
2812
2813 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec) MarshalJSON() ([]byte, error) {
2814 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSafetySpec
2815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2816 }
2817
2818
2819
2820 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec struct {
2821
2822 SearchParams *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams `json:"searchParams,omitempty"`
2823
2824 SearchResultList *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList `json:"searchResultList,omitempty"`
2825
2826
2827
2828
2829
2830 ForceSendFields []string `json:"-"`
2831
2832
2833
2834
2835 NullFields []string `json:"-"`
2836 }
2837
2838 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec) MarshalJSON() ([]byte, error) {
2839 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpec
2840 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2841 }
2842
2843
2844
2845 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams struct {
2846
2847
2848
2849 BoostSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
2850
2851 CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"`
2852
2853
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864 Filter string `json:"filter,omitempty"`
2865
2866
2867 MaxReturnResults int64 `json:"maxReturnResults,omitempty"`
2868
2869
2870
2871
2872
2873 OrderBy string `json:"orderBy,omitempty"`
2874
2875
2876
2877
2878
2879
2880
2881
2882
2883
2884
2885
2886
2887 SearchResultMode string `json:"searchResultMode,omitempty"`
2888
2889
2890
2891
2892
2893 ForceSendFields []string `json:"-"`
2894
2895
2896
2897
2898 NullFields []string `json:"-"`
2899 }
2900
2901 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams) MarshalJSON() ([]byte, error) {
2902 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchParams
2903 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2904 }
2905
2906
2907
2908 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList struct {
2909
2910 SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult `json:"searchResults,omitempty"`
2911
2912
2913
2914
2915
2916 ForceSendFields []string `json:"-"`
2917
2918
2919
2920
2921 NullFields []string `json:"-"`
2922 }
2923
2924 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList) MarshalJSON() ([]byte, error) {
2925 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultList
2926 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2927 }
2928
2929
2930
2931 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult struct {
2932
2933 ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo `json:"chunkInfo,omitempty"`
2934
2935 UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
2936
2937
2938
2939
2940
2941 ForceSendFields []string `json:"-"`
2942
2943
2944
2945
2946 NullFields []string `json:"-"`
2947 }
2948
2949 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult) MarshalJSON() ([]byte, error) {
2950 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResult
2951 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2952 }
2953
2954
2955
2956 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo struct {
2957
2958 Chunk string `json:"chunk,omitempty"`
2959
2960 Content string `json:"content,omitempty"`
2961
2962
2963
2964
2965
2966 ForceSendFields []string `json:"-"`
2967
2968
2969
2970
2971 NullFields []string `json:"-"`
2972 }
2973
2974 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
2975 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultChunkInfo
2976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2977 }
2978
2979
2980
2981 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo struct {
2982
2983 Document string `json:"document,omitempty"`
2984
2985 DocumentContexts []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext `json:"documentContexts,omitempty"`
2986
2987 ExtractiveAnswers []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer `json:"extractiveAnswers,omitempty"`
2988
2989 ExtractiveSegments []*GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment `json:"extractiveSegments,omitempty"`
2990
2991 Title string `json:"title,omitempty"`
2992
2993 Uri string `json:"uri,omitempty"`
2994
2995
2996
2997
2998
2999 ForceSendFields []string `json:"-"`
3000
3001
3002
3003
3004 NullFields []string `json:"-"`
3005 }
3006
3007 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
3008 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfo
3009 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3010 }
3011
3012
3013
3014 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext struct {
3015
3016 Content string `json:"content,omitempty"`
3017
3018 PageIdentifier string `json:"pageIdentifier,omitempty"`
3019
3020
3021
3022
3023
3024 ForceSendFields []string `json:"-"`
3025
3026
3027
3028
3029 NullFields []string `json:"-"`
3030 }
3031
3032 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext) MarshalJSON() ([]byte, error) {
3033 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoDocumentContext
3034 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3035 }
3036
3037
3038
3039
3040
3041 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer struct {
3042
3043 Content string `json:"content,omitempty"`
3044
3045 PageIdentifier string `json:"pageIdentifier,omitempty"`
3046
3047
3048
3049
3050
3051 ForceSendFields []string `json:"-"`
3052
3053
3054
3055
3056 NullFields []string `json:"-"`
3057 }
3058
3059 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer) MarshalJSON() ([]byte, error) {
3060 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveAnswer
3061 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3062 }
3063
3064
3065
3066
3067
3068 type GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment struct {
3069
3070 Content string `json:"content,omitempty"`
3071
3072 PageIdentifier string `json:"pageIdentifier,omitempty"`
3073
3074
3075
3076
3077
3078 ForceSendFields []string `json:"-"`
3079
3080
3081
3082
3083 NullFields []string `json:"-"`
3084 }
3085
3086 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment) MarshalJSON() ([]byte, error) {
3087 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestSearchSpecSearchResultListSearchResultUnstructuredDocumentInfoExtractiveSegment
3088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3089 }
3090
3091
3092
3093 type GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse struct {
3094
3095
3096
3097
3098 Answer *GoogleCloudDiscoveryengineV1alphaAnswer `json:"answer,omitempty"`
3099
3100 AnswerQueryToken string `json:"answerQueryToken,omitempty"`
3101
3102
3103 Session *GoogleCloudDiscoveryengineV1alphaSession `json:"session,omitempty"`
3104
3105
3106 googleapi.ServerResponse `json:"-"`
3107
3108
3109
3110
3111
3112 ForceSendFields []string `json:"-"`
3113
3114
3115
3116
3117 NullFields []string `json:"-"`
3118 }
3119
3120 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse) MarshalJSON() ([]byte, error) {
3121 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse
3122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3123 }
3124
3125
3126
3127 type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo struct {
3128
3129 QueryClassificationInfo []*GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo `json:"queryClassificationInfo,omitempty"`
3130
3131
3132
3133
3134
3135 ForceSendFields []string `json:"-"`
3136
3137
3138
3139
3140 NullFields []string `json:"-"`
3141 }
3142
3143 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo) MarshalJSON() ([]byte, error) {
3144 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfo
3145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3146 }
3147
3148
3149
3150 type GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo struct {
3151
3152 Positive bool `json:"positive,omitempty"`
3153
3154
3155
3156
3157
3158
3159 Type string `json:"type,omitempty"`
3160
3161
3162
3163
3164
3165 ForceSendFields []string `json:"-"`
3166
3167
3168
3169
3170 NullFields []string `json:"-"`
3171 }
3172
3173 func (s *GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo) MarshalJSON() ([]byte, error) {
3174 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerQueryUnderstandingInfoQueryClassificationInfo
3175 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3176 }
3177
3178
3179 type GoogleCloudDiscoveryengineV1alphaAnswerReference struct {
3180
3181 ChunkInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo `json:"chunkInfo,omitempty"`
3182
3183 UnstructuredDocumentInfo *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo `json:"unstructuredDocumentInfo,omitempty"`
3184
3185
3186
3187
3188
3189 ForceSendFields []string `json:"-"`
3190
3191
3192
3193
3194 NullFields []string `json:"-"`
3195 }
3196
3197 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReference) MarshalJSON() ([]byte, error) {
3198 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReference
3199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3200 }
3201
3202
3203
3204 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo struct {
3205
3206 Chunk string `json:"chunk,omitempty"`
3207
3208 Content string `json:"content,omitempty"`
3209
3210 DocumentMetadata *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata `json:"documentMetadata,omitempty"`
3211
3212 RelevanceScore float64 `json:"relevanceScore,omitempty"`
3213
3214
3215
3216
3217
3218 ForceSendFields []string `json:"-"`
3219
3220
3221
3222
3223 NullFields []string `json:"-"`
3224 }
3225
3226 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) MarshalJSON() ([]byte, error) {
3227 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
3228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3229 }
3230
3231 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo) UnmarshalJSON(data []byte) error {
3232 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfo
3233 var s1 struct {
3234 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
3235 *NoMethod
3236 }
3237 s1.NoMethod = (*NoMethod)(s)
3238 if err := json.Unmarshal(data, &s1); err != nil {
3239 return err
3240 }
3241 s.RelevanceScore = float64(s1.RelevanceScore)
3242 return nil
3243 }
3244
3245
3246
3247 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata struct {
3248
3249 Document string `json:"document,omitempty"`
3250
3251 PageIdentifier string `json:"pageIdentifier,omitempty"`
3252
3253 Title string `json:"title,omitempty"`
3254
3255 Uri string `json:"uri,omitempty"`
3256
3257
3258
3259
3260
3261 ForceSendFields []string `json:"-"`
3262
3263
3264
3265
3266 NullFields []string `json:"-"`
3267 }
3268
3269 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata) MarshalJSON() ([]byte, error) {
3270 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceChunkInfoDocumentMetadata
3271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3272 }
3273
3274
3275
3276 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo struct {
3277
3278 ChunkContents []*GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent `json:"chunkContents,omitempty"`
3279
3280 Document string `json:"document,omitempty"`
3281
3282 Title string `json:"title,omitempty"`
3283
3284 Uri string `json:"uri,omitempty"`
3285
3286
3287
3288
3289
3290 ForceSendFields []string `json:"-"`
3291
3292
3293
3294
3295 NullFields []string `json:"-"`
3296 }
3297
3298 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo) MarshalJSON() ([]byte, error) {
3299 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfo
3300 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3301 }
3302
3303
3304
3305 type GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent struct {
3306
3307 Content string `json:"content,omitempty"`
3308
3309 PageIdentifier string `json:"pageIdentifier,omitempty"`
3310
3311
3312
3313
3314
3315 ForceSendFields []string `json:"-"`
3316
3317
3318
3319
3320 NullFields []string `json:"-"`
3321 }
3322
3323 func (s *GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent) MarshalJSON() ([]byte, error) {
3324 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerReferenceUnstructuredDocumentInfoChunkContent
3325 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3326 }
3327
3328
3329 type GoogleCloudDiscoveryengineV1alphaAnswerStep struct {
3330
3331 Actions []*GoogleCloudDiscoveryengineV1alphaAnswerStepAction `json:"actions,omitempty"`
3332
3333 Description string `json:"description,omitempty"`
3334
3335
3336
3337
3338
3339
3340
3341 State string `json:"state,omitempty"`
3342
3343 Thought string `json:"thought,omitempty"`
3344
3345
3346
3347
3348
3349 ForceSendFields []string `json:"-"`
3350
3351
3352
3353
3354 NullFields []string `json:"-"`
3355 }
3356
3357 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStep) MarshalJSON() ([]byte, error) {
3358 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStep
3359 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3360 }
3361
3362
3363 type GoogleCloudDiscoveryengineV1alphaAnswerStepAction struct {
3364
3365 Observation *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation `json:"observation,omitempty"`
3366
3367 SearchAction *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction `json:"searchAction,omitempty"`
3368
3369
3370
3371
3372
3373 ForceSendFields []string `json:"-"`
3374
3375
3376
3377
3378 NullFields []string `json:"-"`
3379 }
3380
3381 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepAction) MarshalJSON() ([]byte, error) {
3382 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepAction
3383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3384 }
3385
3386
3387 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation struct {
3388
3389
3390 SearchResults []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult `json:"searchResults,omitempty"`
3391
3392
3393
3394
3395
3396 ForceSendFields []string `json:"-"`
3397
3398
3399
3400
3401 NullFields []string `json:"-"`
3402 }
3403
3404 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation) MarshalJSON() ([]byte, error) {
3405 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservation
3406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3407 }
3408
3409 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult struct {
3410
3411
3412 ChunkInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo `json:"chunkInfo,omitempty"`
3413
3414 Document string `json:"document,omitempty"`
3415
3416
3417 SnippetInfo []*GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo `json:"snippetInfo,omitempty"`
3418
3419 Title string `json:"title,omitempty"`
3420
3421 Uri string `json:"uri,omitempty"`
3422
3423
3424
3425
3426
3427 ForceSendFields []string `json:"-"`
3428
3429
3430
3431
3432 NullFields []string `json:"-"`
3433 }
3434
3435 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult) MarshalJSON() ([]byte, error) {
3436 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResult
3437 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3438 }
3439
3440
3441
3442 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo struct {
3443
3444 Chunk string `json:"chunk,omitempty"`
3445
3446 Content string `json:"content,omitempty"`
3447
3448 RelevanceScore float64 `json:"relevanceScore,omitempty"`
3449
3450
3451
3452
3453
3454 ForceSendFields []string `json:"-"`
3455
3456
3457
3458
3459 NullFields []string `json:"-"`
3460 }
3461
3462 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) MarshalJSON() ([]byte, error) {
3463 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
3464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3465 }
3466
3467 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo) UnmarshalJSON(data []byte) error {
3468 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultChunkInfo
3469 var s1 struct {
3470 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
3471 *NoMethod
3472 }
3473 s1.NoMethod = (*NoMethod)(s)
3474 if err := json.Unmarshal(data, &s1); err != nil {
3475 return err
3476 }
3477 s.RelevanceScore = float64(s1.RelevanceScore)
3478 return nil
3479 }
3480
3481
3482
3483 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo struct {
3484
3485 Snippet string `json:"snippet,omitempty"`
3486
3487 SnippetStatus string `json:"snippetStatus,omitempty"`
3488
3489
3490
3491
3492
3493 ForceSendFields []string `json:"-"`
3494
3495
3496
3497
3498 NullFields []string `json:"-"`
3499 }
3500
3501 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo) MarshalJSON() ([]byte, error) {
3502 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionObservationSearchResultSnippetInfo
3503 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3504 }
3505
3506
3507
3508 type GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction struct {
3509
3510 Query string `json:"query,omitempty"`
3511
3512
3513
3514
3515
3516 ForceSendFields []string `json:"-"`
3517
3518
3519
3520
3521 NullFields []string `json:"-"`
3522 }
3523
3524 func (s *GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction) MarshalJSON() ([]byte, error) {
3525 type NoMethod GoogleCloudDiscoveryengineV1alphaAnswerStepActionSearchAction
3526 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3527 }
3528
3529
3530
3531
3532
3533 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata struct {
3534
3535 CreateTime string `json:"createTime,omitempty"`
3536
3537
3538 UpdateTime string `json:"updateTime,omitempty"`
3539
3540
3541
3542
3543
3544 ForceSendFields []string `json:"-"`
3545
3546
3547
3548
3549 NullFields []string `json:"-"`
3550 }
3551
3552 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
3553 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSiteMetadata
3554 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3555 }
3556
3557
3558
3559 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest struct {
3560
3561
3562 Requests []*GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest `json:"requests,omitempty"`
3563
3564
3565
3566
3567
3568 ForceSendFields []string `json:"-"`
3569
3570
3571
3572
3573 NullFields []string `json:"-"`
3574 }
3575
3576 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) MarshalJSON() ([]byte, error) {
3577 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest
3578 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3579 }
3580
3581
3582
3583 type GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse struct {
3584
3585 TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
3586
3587
3588
3589
3590
3591 ForceSendFields []string `json:"-"`
3592
3593
3594
3595
3596 NullFields []string `json:"-"`
3597 }
3598
3599 func (s *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
3600 type NoMethod GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesResponse
3601 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3602 }
3603
3604
3605
3606 type GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest struct {
3607 }
3608
3609
3610
3611 type GoogleCloudDiscoveryengineV1alphaBigQuerySource struct {
3612
3613
3614
3615
3616
3617
3618
3619
3620 DataSchema string `json:"dataSchema,omitempty"`
3621
3622
3623 DatasetId string `json:"datasetId,omitempty"`
3624
3625
3626
3627 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
3628
3629
3630 PartitionDate *GoogleTypeDate `json:"partitionDate,omitempty"`
3631
3632
3633
3634 ProjectId string `json:"projectId,omitempty"`
3635
3636
3637 TableId string `json:"tableId,omitempty"`
3638
3639
3640
3641
3642
3643 ForceSendFields []string `json:"-"`
3644
3645
3646
3647
3648 NullFields []string `json:"-"`
3649 }
3650
3651 func (s *GoogleCloudDiscoveryengineV1alphaBigQuerySource) MarshalJSON() ([]byte, error) {
3652 type NoMethod GoogleCloudDiscoveryengineV1alphaBigQuerySource
3653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3654 }
3655
3656
3657
3658 type GoogleCloudDiscoveryengineV1alphaBigtableOptions struct {
3659
3660
3661
3662 Families map[string]GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily `json:"families,omitempty"`
3663
3664
3665 KeyFieldName string `json:"keyFieldName,omitempty"`
3666
3667
3668
3669
3670
3671 ForceSendFields []string `json:"-"`
3672
3673
3674
3675
3676 NullFields []string `json:"-"`
3677 }
3678
3679 func (s *GoogleCloudDiscoveryengineV1alphaBigtableOptions) MarshalJSON() ([]byte, error) {
3680 type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableOptions
3681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3682 }
3683
3684
3685
3686 type GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn struct {
3687
3688
3689
3690
3691
3692
3693
3694
3695
3696
3697
3698 Encoding string `json:"encoding,omitempty"`
3699
3700
3701
3702
3703 FieldName string `json:"fieldName,omitempty"`
3704
3705
3706 Qualifier string `json:"qualifier,omitempty"`
3707
3708
3709
3710
3711
3712
3713
3714
3715
3716
3717
3718
3719
3720 Type string `json:"type,omitempty"`
3721
3722
3723
3724
3725
3726 ForceSendFields []string `json:"-"`
3727
3728
3729
3730
3731 NullFields []string `json:"-"`
3732 }
3733
3734 func (s *GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn) MarshalJSON() ([]byte, error) {
3735 type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn
3736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3737 }
3738
3739
3740
3741 type GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily struct {
3742
3743
3744 Columns []*GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumn `json:"columns,omitempty"`
3745
3746
3747
3748
3749
3750
3751
3752
3753
3754
3755
3756 Encoding string `json:"encoding,omitempty"`
3757
3758
3759
3760
3761 FieldName string `json:"fieldName,omitempty"`
3762
3763
3764
3765
3766
3767
3768
3769
3770
3771
3772
3773
3774
3775 Type string `json:"type,omitempty"`
3776
3777
3778
3779
3780
3781 ForceSendFields []string `json:"-"`
3782
3783
3784
3785
3786 NullFields []string `json:"-"`
3787 }
3788
3789 func (s *GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily) MarshalJSON() ([]byte, error) {
3790 type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableOptionsBigtableColumnFamily
3791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3792 }
3793
3794
3795
3796 type GoogleCloudDiscoveryengineV1alphaBigtableSource struct {
3797
3798
3799
3800 BigtableOptions *GoogleCloudDiscoveryengineV1alphaBigtableOptions `json:"bigtableOptions,omitempty"`
3801
3802
3803 InstanceId string `json:"instanceId,omitempty"`
3804
3805
3806
3807 ProjectId string `json:"projectId,omitempty"`
3808
3809
3810 TableId string `json:"tableId,omitempty"`
3811
3812
3813
3814
3815
3816 ForceSendFields []string `json:"-"`
3817
3818
3819
3820
3821 NullFields []string `json:"-"`
3822 }
3823
3824 func (s *GoogleCloudDiscoveryengineV1alphaBigtableSource) MarshalJSON() ([]byte, error) {
3825 type NoMethod GoogleCloudDiscoveryengineV1alphaBigtableSource
3826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3827 }
3828
3829
3830
3831 type GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest struct {
3832
3833
3834 AnswerCandidate string `json:"answerCandidate,omitempty"`
3835
3836 Facts []*GoogleCloudDiscoveryengineV1alphaGroundingFact `json:"facts,omitempty"`
3837
3838 GroundingSpec *GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec `json:"groundingSpec,omitempty"`
3839
3840
3841
3842
3843
3844
3845
3846
3847
3848
3849
3850
3851 UserLabels map[string]string `json:"userLabels,omitempty"`
3852
3853
3854
3855
3856
3857 ForceSendFields []string `json:"-"`
3858
3859
3860
3861
3862 NullFields []string `json:"-"`
3863 }
3864
3865 func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest) MarshalJSON() ([]byte, error) {
3866 type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest
3867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3868 }
3869
3870
3871
3872 type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse struct {
3873
3874
3875 CitedChunks []*GoogleCloudDiscoveryengineV1alphaFactChunk `json:"citedChunks,omitempty"`
3876
3877
3878 Claims []*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim `json:"claims,omitempty"`
3879
3880
3881
3882 SupportScore float64 `json:"supportScore,omitempty"`
3883
3884
3885 googleapi.ServerResponse `json:"-"`
3886
3887
3888
3889
3890
3891 ForceSendFields []string `json:"-"`
3892
3893
3894
3895
3896 NullFields []string `json:"-"`
3897 }
3898
3899 func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse) MarshalJSON() ([]byte, error) {
3900 type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse
3901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3902 }
3903
3904 func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse) UnmarshalJSON(data []byte) error {
3905 type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse
3906 var s1 struct {
3907 SupportScore gensupport.JSONFloat64 `json:"supportScore"`
3908 *NoMethod
3909 }
3910 s1.NoMethod = (*NoMethod)(s)
3911 if err := json.Unmarshal(data, &s1); err != nil {
3912 return err
3913 }
3914 s.SupportScore = float64(s1.SupportScore)
3915 return nil
3916 }
3917
3918
3919
3920 type GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim struct {
3921
3922
3923
3924
3925
3926 CitationIndices []int64 `json:"citationIndices,omitempty"`
3927
3928
3929 ClaimText string `json:"claimText,omitempty"`
3930
3931
3932 EndPos int64 `json:"endPos,omitempty"`
3933
3934
3935
3936
3937
3938 GroundingCheckRequired bool `json:"groundingCheckRequired,omitempty"`
3939
3940
3941 StartPos int64 `json:"startPos,omitempty"`
3942
3943
3944
3945
3946
3947 ForceSendFields []string `json:"-"`
3948
3949
3950
3951
3952 NullFields []string `json:"-"`
3953 }
3954
3955 func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim) MarshalJSON() ([]byte, error) {
3956 type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingResponseClaim
3957 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3958 }
3959
3960
3961
3962 type GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec struct {
3963
3964
3965
3966
3967
3968 CitationThreshold float64 `json:"citationThreshold,omitempty"`
3969
3970
3971
3972
3973
3974 ForceSendFields []string `json:"-"`
3975
3976
3977
3978
3979 NullFields []string `json:"-"`
3980 }
3981
3982 func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec) MarshalJSON() ([]byte, error) {
3983 type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
3984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3985 }
3986
3987 func (s *GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec) UnmarshalJSON(data []byte) error {
3988 type NoMethod GoogleCloudDiscoveryengineV1alphaCheckGroundingSpec
3989 var s1 struct {
3990 CitationThreshold gensupport.JSONFloat64 `json:"citationThreshold"`
3991 *NoMethod
3992 }
3993 s1.NoMethod = (*NoMethod)(s)
3994 if err := json.Unmarshal(data, &s1); err != nil {
3995 return err
3996 }
3997 s.CitationThreshold = float64(s1.CitationThreshold)
3998 return nil
3999 }
4000
4001
4002
4003 type GoogleCloudDiscoveryengineV1alphaChunk struct {
4004
4005 ChunkMetadata *GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata `json:"chunkMetadata,omitempty"`
4006
4007 Content string `json:"content,omitempty"`
4008
4009
4010 DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
4011
4012 DocumentMetadata *GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata `json:"documentMetadata,omitempty"`
4013
4014 Id string `json:"id,omitempty"`
4015
4016
4017
4018
4019
4020 Name string `json:"name,omitempty"`
4021
4022 PageSpan *GoogleCloudDiscoveryengineV1alphaChunkPageSpan `json:"pageSpan,omitempty"`
4023
4024
4025
4026 RelevanceScore float64 `json:"relevanceScore,omitempty"`
4027
4028
4029 googleapi.ServerResponse `json:"-"`
4030
4031
4032
4033
4034
4035 ForceSendFields []string `json:"-"`
4036
4037
4038
4039
4040 NullFields []string `json:"-"`
4041 }
4042
4043 func (s *GoogleCloudDiscoveryengineV1alphaChunk) MarshalJSON() ([]byte, error) {
4044 type NoMethod GoogleCloudDiscoveryengineV1alphaChunk
4045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4046 }
4047
4048 func (s *GoogleCloudDiscoveryengineV1alphaChunk) UnmarshalJSON(data []byte) error {
4049 type NoMethod GoogleCloudDiscoveryengineV1alphaChunk
4050 var s1 struct {
4051 RelevanceScore gensupport.JSONFloat64 `json:"relevanceScore"`
4052 *NoMethod
4053 }
4054 s1.NoMethod = (*NoMethod)(s)
4055 if err := json.Unmarshal(data, &s1); err != nil {
4056 return err
4057 }
4058 s.RelevanceScore = float64(s1.RelevanceScore)
4059 return nil
4060 }
4061
4062
4063
4064 type GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata struct {
4065
4066
4067
4068 NextChunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"nextChunks,omitempty"`
4069
4070
4071
4072 PreviousChunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"previousChunks,omitempty"`
4073
4074
4075
4076
4077
4078 ForceSendFields []string `json:"-"`
4079
4080
4081
4082
4083 NullFields []string `json:"-"`
4084 }
4085
4086 func (s *GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata) MarshalJSON() ([]byte, error) {
4087 type NoMethod GoogleCloudDiscoveryengineV1alphaChunkChunkMetadata
4088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4089 }
4090
4091
4092
4093 type GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata struct {
4094
4095
4096
4097 StructData googleapi.RawMessage `json:"structData,omitempty"`
4098
4099 Title string `json:"title,omitempty"`
4100
4101 Uri string `json:"uri,omitempty"`
4102
4103
4104
4105
4106
4107 ForceSendFields []string `json:"-"`
4108
4109
4110
4111
4112 NullFields []string `json:"-"`
4113 }
4114
4115 func (s *GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata) MarshalJSON() ([]byte, error) {
4116 type NoMethod GoogleCloudDiscoveryengineV1alphaChunkDocumentMetadata
4117 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4118 }
4119
4120
4121 type GoogleCloudDiscoveryengineV1alphaChunkPageSpan struct {
4122
4123 PageEnd int64 `json:"pageEnd,omitempty"`
4124
4125 PageStart int64 `json:"pageStart,omitempty"`
4126
4127
4128
4129
4130
4131 ForceSendFields []string `json:"-"`
4132
4133
4134
4135
4136 NullFields []string `json:"-"`
4137 }
4138
4139 func (s *GoogleCloudDiscoveryengineV1alphaChunkPageSpan) MarshalJSON() ([]byte, error) {
4140 type NoMethod GoogleCloudDiscoveryengineV1alphaChunkPageSpan
4141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4142 }
4143
4144
4145
4146 type GoogleCloudDiscoveryengineV1alphaCloudSqlSource struct {
4147
4148
4149 DatabaseId string `json:"databaseId,omitempty"`
4150
4151
4152
4153
4154
4155 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
4156
4157
4158 InstanceId string `json:"instanceId,omitempty"`
4159
4160
4161
4162 Offload bool `json:"offload,omitempty"`
4163
4164
4165
4166 ProjectId string `json:"projectId,omitempty"`
4167
4168
4169 TableId string `json:"tableId,omitempty"`
4170
4171
4172
4173
4174
4175 ForceSendFields []string `json:"-"`
4176
4177
4178
4179
4180 NullFields []string `json:"-"`
4181 }
4182
4183 func (s *GoogleCloudDiscoveryengineV1alphaCloudSqlSource) MarshalJSON() ([]byte, error) {
4184 type NoMethod GoogleCloudDiscoveryengineV1alphaCloudSqlSource
4185 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4186 }
4187
4188
4189
4190 type GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse struct {
4191
4192
4193 QuerySuggestions []*GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion `json:"querySuggestions,omitempty"`
4194
4195
4196
4197
4198 TailMatchTriggered bool `json:"tailMatchTriggered,omitempty"`
4199
4200
4201 googleapi.ServerResponse `json:"-"`
4202
4203
4204
4205
4206
4207 ForceSendFields []string `json:"-"`
4208
4209
4210
4211
4212 NullFields []string `json:"-"`
4213 }
4214
4215 func (s *GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse) MarshalJSON() ([]byte, error) {
4216 type NoMethod GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse
4217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4218 }
4219
4220
4221
4222 type GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion struct {
4223
4224
4225
4226 CompletableFieldPaths []string `json:"completableFieldPaths,omitempty"`
4227
4228 Suggestion string `json:"suggestion,omitempty"`
4229
4230
4231
4232
4233
4234 ForceSendFields []string `json:"-"`
4235
4236
4237
4238
4239 NullFields []string `json:"-"`
4240 }
4241
4242 func (s *GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion) MarshalJSON() ([]byte, error) {
4243 type NoMethod GoogleCloudDiscoveryengineV1alphaCompleteQueryResponseQuerySuggestion
4244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4245 }
4246
4247
4248
4249
4250 type GoogleCloudDiscoveryengineV1alphaCompletionInfo struct {
4251
4252
4253 SelectedPosition int64 `json:"selectedPosition,omitempty"`
4254
4255
4256 SelectedSuggestion string `json:"selectedSuggestion,omitempty"`
4257
4258
4259
4260
4261
4262 ForceSendFields []string `json:"-"`
4263
4264
4265
4266
4267 NullFields []string `json:"-"`
4268 }
4269
4270 func (s *GoogleCloudDiscoveryengineV1alphaCompletionInfo) MarshalJSON() ([]byte, error) {
4271 type NoMethod GoogleCloudDiscoveryengineV1alphaCompletionInfo
4272 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4273 }
4274
4275
4276
4277 type GoogleCloudDiscoveryengineV1alphaConversation struct {
4278
4279 EndTime string `json:"endTime,omitempty"`
4280
4281 Messages []*GoogleCloudDiscoveryengineV1alphaConversationMessage `json:"messages,omitempty"`
4282
4283
4284
4285
4286
4287 Name string `json:"name,omitempty"`
4288
4289 StartTime string `json:"startTime,omitempty"`
4290
4291
4292
4293
4294
4295
4296 State string `json:"state,omitempty"`
4297
4298 UserPseudoId string `json:"userPseudoId,omitempty"`
4299
4300
4301 googleapi.ServerResponse `json:"-"`
4302
4303
4304
4305
4306
4307 ForceSendFields []string `json:"-"`
4308
4309
4310
4311
4312 NullFields []string `json:"-"`
4313 }
4314
4315 func (s *GoogleCloudDiscoveryengineV1alphaConversation) MarshalJSON() ([]byte, error) {
4316 type NoMethod GoogleCloudDiscoveryengineV1alphaConversation
4317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4318 }
4319
4320
4321
4322 type GoogleCloudDiscoveryengineV1alphaConversationContext struct {
4323
4324
4325 ActiveDocument string `json:"activeDocument,omitempty"`
4326
4327
4328 ContextDocuments []string `json:"contextDocuments,omitempty"`
4329
4330
4331
4332
4333
4334 ForceSendFields []string `json:"-"`
4335
4336
4337
4338
4339 NullFields []string `json:"-"`
4340 }
4341
4342 func (s *GoogleCloudDiscoveryengineV1alphaConversationContext) MarshalJSON() ([]byte, error) {
4343 type NoMethod GoogleCloudDiscoveryengineV1alphaConversationContext
4344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4345 }
4346
4347
4348
4349 type GoogleCloudDiscoveryengineV1alphaConversationMessage struct {
4350
4351 CreateTime string `json:"createTime,omitempty"`
4352
4353 Reply *GoogleCloudDiscoveryengineV1alphaReply `json:"reply,omitempty"`
4354
4355 UserInput *GoogleCloudDiscoveryengineV1alphaTextInput `json:"userInput,omitempty"`
4356
4357
4358
4359
4360
4361 ForceSendFields []string `json:"-"`
4362
4363
4364
4365
4366 NullFields []string `json:"-"`
4367 }
4368
4369 func (s *GoogleCloudDiscoveryengineV1alphaConversationMessage) MarshalJSON() ([]byte, error) {
4370 type NoMethod GoogleCloudDiscoveryengineV1alphaConversationMessage
4371 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4372 }
4373
4374
4375
4376 type GoogleCloudDiscoveryengineV1alphaConverseConversationRequest struct {
4377
4378
4379
4380 BoostSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
4381
4382
4383
4384 Conversation *GoogleCloudDiscoveryengineV1alphaConversation `json:"conversation,omitempty"`
4385
4386
4387
4388
4389
4390
4391
4392
4393
4394
4395
4396
4397 Filter string `json:"filter,omitempty"`
4398
4399 Query *GoogleCloudDiscoveryengineV1alphaTextInput `json:"query,omitempty"`
4400
4401 SafeSearch bool `json:"safeSearch,omitempty"`
4402
4403
4404
4405
4406 ServingConfig string `json:"servingConfig,omitempty"`
4407
4408
4409 SummarySpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422 UserLabels map[string]string `json:"userLabels,omitempty"`
4423
4424
4425
4426
4427
4428 ForceSendFields []string `json:"-"`
4429
4430
4431
4432
4433 NullFields []string `json:"-"`
4434 }
4435
4436 func (s *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) MarshalJSON() ([]byte, error) {
4437 type NoMethod GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
4438 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4439 }
4440
4441
4442
4443 type GoogleCloudDiscoveryengineV1alphaConverseConversationResponse struct {
4444
4445 Conversation *GoogleCloudDiscoveryengineV1alphaConversation `json:"conversation,omitempty"`
4446
4447 RelatedQuestions []string `json:"relatedQuestions,omitempty"`
4448
4449 Reply *GoogleCloudDiscoveryengineV1alphaReply `json:"reply,omitempty"`
4450
4451 SearchResults []*GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult `json:"searchResults,omitempty"`
4452
4453
4454 googleapi.ServerResponse `json:"-"`
4455
4456
4457
4458
4459
4460 ForceSendFields []string `json:"-"`
4461
4462
4463
4464
4465 NullFields []string `json:"-"`
4466 }
4467
4468 func (s *GoogleCloudDiscoveryengineV1alphaConverseConversationResponse) MarshalJSON() ([]byte, error) {
4469 type NoMethod GoogleCloudDiscoveryengineV1alphaConverseConversationResponse
4470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4471 }
4472
4473
4474
4475
4476 type GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata struct {
4477
4478 CreateTime string `json:"createTime,omitempty"`
4479
4480
4481 UpdateTime string `json:"updateTime,omitempty"`
4482
4483
4484
4485
4486
4487 ForceSendFields []string `json:"-"`
4488
4489
4490
4491
4492 NullFields []string `json:"-"`
4493 }
4494
4495 func (s *GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
4496 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateDataStoreMetadata
4497 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4498 }
4499
4500
4501
4502
4503 type GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata struct {
4504
4505 CreateTime string `json:"createTime,omitempty"`
4506
4507
4508 UpdateTime string `json:"updateTime,omitempty"`
4509
4510
4511
4512
4513
4514 ForceSendFields []string `json:"-"`
4515
4516
4517
4518
4519 NullFields []string `json:"-"`
4520 }
4521
4522 func (s *GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
4523 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateEngineMetadata
4524 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4525 }
4526
4527
4528
4529 type GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata struct {
4530
4531 CreateTime string `json:"createTime,omitempty"`
4532
4533
4534 UpdateTime string `json:"updateTime,omitempty"`
4535
4536
4537
4538
4539
4540 ForceSendFields []string `json:"-"`
4541
4542
4543
4544
4545 NullFields []string `json:"-"`
4546 }
4547
4548 func (s *GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
4549 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateSchemaMetadata
4550 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4551 }
4552
4553
4554
4555
4556 type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata struct {
4557
4558 CreateTime string `json:"createTime,omitempty"`
4559
4560
4561 UpdateTime string `json:"updateTime,omitempty"`
4562
4563
4564
4565
4566
4567 ForceSendFields []string `json:"-"`
4568
4569
4570
4571
4572 NullFields []string `json:"-"`
4573 }
4574
4575 func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
4576 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteMetadata
4577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4578 }
4579
4580
4581
4582 type GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest struct {
4583
4584
4585
4586 Parent string `json:"parent,omitempty"`
4587
4588 TargetSite *GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSite,omitempty"`
4589
4590
4591
4592
4593
4594 ForceSendFields []string `json:"-"`
4595
4596
4597
4598
4599 NullFields []string `json:"-"`
4600 }
4601
4602 func (s *GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest) MarshalJSON() ([]byte, error) {
4603 type NoMethod GoogleCloudDiscoveryengineV1alphaCreateTargetSiteRequest
4604 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4605 }
4606
4607
4608
4609 type GoogleCloudDiscoveryengineV1alphaCustomAttribute struct {
4610
4611
4612
4613
4614 Numbers []float64 `json:"numbers,omitempty"`
4615
4616
4617
4618
4619
4620 Text []string `json:"text,omitempty"`
4621
4622
4623
4624
4625
4626 ForceSendFields []string `json:"-"`
4627
4628
4629
4630
4631 NullFields []string `json:"-"`
4632 }
4633
4634 func (s *GoogleCloudDiscoveryengineV1alphaCustomAttribute) MarshalJSON() ([]byte, error) {
4635 type NoMethod GoogleCloudDiscoveryengineV1alphaCustomAttribute
4636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4637 }
4638
4639 func (s *GoogleCloudDiscoveryengineV1alphaCustomAttribute) UnmarshalJSON(data []byte) error {
4640 type NoMethod GoogleCloudDiscoveryengineV1alphaCustomAttribute
4641 var s1 struct {
4642 Numbers []gensupport.JSONFloat64 `json:"numbers"`
4643 *NoMethod
4644 }
4645 s1.NoMethod = (*NoMethod)(s)
4646 if err := json.Unmarshal(data, &s1); err != nil {
4647 return err
4648 }
4649 s.Numbers = make([]float64, len(s1.Numbers))
4650 for i := range s1.Numbers {
4651 s.Numbers[i] = float64(s1.Numbers[i])
4652 }
4653 return nil
4654 }
4655
4656
4657
4658 type GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec struct {
4659
4660
4661 EnableSearchAdaptor bool `json:"enableSearchAdaptor,omitempty"`
4662
4663
4664
4665
4666
4667 ForceSendFields []string `json:"-"`
4668
4669
4670
4671
4672 NullFields []string `json:"-"`
4673 }
4674
4675 func (s *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec) MarshalJSON() ([]byte, error) {
4676 type NoMethod GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec
4677 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4678 }
4679
4680
4681
4682 type GoogleCloudDiscoveryengineV1alphaCustomTuningModel struct {
4683
4684 CreateTime string `json:"createTime,omitempty"`
4685
4686 DisplayName string `json:"displayName,omitempty"`
4687
4688
4689
4690
4691
4692
4693
4694
4695
4696
4697 ModelState string `json:"modelState,omitempty"`
4698 ModelVersion int64 `json:"modelVersion,omitempty,string"`
4699
4700
4701
4702
4703 Name string `json:"name,omitempty"`
4704
4705 TrainingStartTime string `json:"trainingStartTime,omitempty"`
4706
4707
4708
4709
4710
4711 ForceSendFields []string `json:"-"`
4712
4713
4714
4715
4716 NullFields []string `json:"-"`
4717 }
4718
4719 func (s *GoogleCloudDiscoveryengineV1alphaCustomTuningModel) MarshalJSON() ([]byte, error) {
4720 type NoMethod GoogleCloudDiscoveryengineV1alphaCustomTuningModel
4721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4722 }
4723
4724
4725
4726 type GoogleCloudDiscoveryengineV1alphaDataStore struct {
4727
4728
4729
4730
4731
4732
4733
4734 AclEnabled bool `json:"aclEnabled,omitempty"`
4735
4736
4737
4738
4739
4740
4741
4742
4743 ContentConfig string `json:"contentConfig,omitempty"`
4744
4745 CreateTime string `json:"createTime,omitempty"`
4746
4747
4748 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
4749
4750
4751
4752 DisplayName string `json:"displayName,omitempty"`
4753
4754
4755 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
4756
4757 IdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfig `json:"idpConfig,omitempty"`
4758
4759
4760
4761
4762
4763
4764
4765
4766
4767 IndustryVertical string `json:"industryVertical,omitempty"`
4768
4769
4770
4771
4772 Name string `json:"name,omitempty"`
4773
4774
4775
4776
4777
4778
4779
4780
4781
4782
4783
4784
4785
4786
4787
4788 SolutionTypes []string `json:"solutionTypes,omitempty"`
4789
4790
4791
4792
4793
4794
4795
4796
4797 StartingSchema *GoogleCloudDiscoveryengineV1alphaSchema `json:"startingSchema,omitempty"`
4798
4799
4800 googleapi.ServerResponse `json:"-"`
4801
4802
4803
4804
4805
4806 ForceSendFields []string `json:"-"`
4807
4808
4809
4810
4811 NullFields []string `json:"-"`
4812 }
4813
4814 func (s *GoogleCloudDiscoveryengineV1alphaDataStore) MarshalJSON() ([]byte, error) {
4815 type NoMethod GoogleCloudDiscoveryengineV1alphaDataStore
4816 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4817 }
4818
4819
4820
4821
4822 type GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata struct {
4823
4824 CreateTime string `json:"createTime,omitempty"`
4825
4826
4827 UpdateTime string `json:"updateTime,omitempty"`
4828
4829
4830
4831
4832
4833 ForceSendFields []string `json:"-"`
4834
4835
4836
4837
4838 NullFields []string `json:"-"`
4839 }
4840
4841 func (s *GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
4842 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteDataStoreMetadata
4843 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4844 }
4845
4846
4847
4848
4849 type GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata struct {
4850
4851 CreateTime string `json:"createTime,omitempty"`
4852
4853
4854 UpdateTime string `json:"updateTime,omitempty"`
4855
4856
4857
4858
4859
4860 ForceSendFields []string `json:"-"`
4861
4862
4863
4864
4865 NullFields []string `json:"-"`
4866 }
4867
4868 func (s *GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
4869 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteEngineMetadata
4870 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4871 }
4872
4873
4874
4875 type GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata struct {
4876
4877 CreateTime string `json:"createTime,omitempty"`
4878
4879
4880 UpdateTime string `json:"updateTime,omitempty"`
4881
4882
4883
4884
4885
4886 ForceSendFields []string `json:"-"`
4887
4888
4889
4890
4891 NullFields []string `json:"-"`
4892 }
4893
4894 func (s *GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
4895 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteSchemaMetadata
4896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4897 }
4898
4899
4900
4901
4902 type GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata struct {
4903
4904 CreateTime string `json:"createTime,omitempty"`
4905
4906
4907 UpdateTime string `json:"updateTime,omitempty"`
4908
4909
4910
4911
4912
4913 ForceSendFields []string `json:"-"`
4914
4915
4916
4917
4918 NullFields []string `json:"-"`
4919 }
4920
4921 func (s *GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
4922 type NoMethod GoogleCloudDiscoveryengineV1alphaDeleteTargetSiteMetadata
4923 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4924 }
4925
4926
4927
4928
4929
4930 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata struct {
4931
4932 CreateTime string `json:"createTime,omitempty"`
4933
4934
4935 UpdateTime string `json:"updateTime,omitempty"`
4936
4937
4938
4939
4940
4941 ForceSendFields []string `json:"-"`
4942
4943
4944
4945
4946 NullFields []string `json:"-"`
4947 }
4948
4949 func (s *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
4950 type NoMethod GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchMetadata
4951 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4952 }
4953
4954
4955
4956 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest struct {
4957 }
4958
4959
4960
4961 type GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchResponse struct {
4962 }
4963
4964
4965
4966 type GoogleCloudDiscoveryengineV1alphaDocument struct {
4967
4968 AclInfo *GoogleCloudDiscoveryengineV1alphaDocumentAclInfo `json:"aclInfo,omitempty"`
4969
4970
4971 Content *GoogleCloudDiscoveryengineV1alphaDocumentContent `json:"content,omitempty"`
4972
4973
4974 DerivedStructData googleapi.RawMessage `json:"derivedStructData,omitempty"`
4975
4976
4977
4978 Id string `json:"id,omitempty"`
4979
4980
4981
4982
4983 IndexTime string `json:"indexTime,omitempty"`
4984
4985
4986 JsonData string `json:"jsonData,omitempty"`
4987
4988
4989
4990
4991 Name string `json:"name,omitempty"`
4992
4993
4994
4995
4996 ParentDocumentId string `json:"parentDocumentId,omitempty"`
4997
4998 SchemaId string `json:"schemaId,omitempty"`
4999
5000
5001 StructData googleapi.RawMessage `json:"structData,omitempty"`
5002
5003
5004 googleapi.ServerResponse `json:"-"`
5005
5006
5007
5008
5009
5010 ForceSendFields []string `json:"-"`
5011
5012
5013
5014
5015 NullFields []string `json:"-"`
5016 }
5017
5018 func (s *GoogleCloudDiscoveryengineV1alphaDocument) MarshalJSON() ([]byte, error) {
5019 type NoMethod GoogleCloudDiscoveryengineV1alphaDocument
5020 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5021 }
5022
5023
5024
5025 type GoogleCloudDiscoveryengineV1alphaDocumentAclInfo struct {
5026
5027 Readers []*GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction `json:"readers,omitempty"`
5028
5029
5030
5031
5032
5033 ForceSendFields []string `json:"-"`
5034
5035
5036
5037
5038 NullFields []string `json:"-"`
5039 }
5040
5041 func (s *GoogleCloudDiscoveryengineV1alphaDocumentAclInfo) MarshalJSON() ([]byte, error) {
5042 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentAclInfo
5043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5044 }
5045
5046
5047
5048
5049
5050
5051
5052
5053
5054
5055
5056
5057 type GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction struct {
5058
5059 Principals []*GoogleCloudDiscoveryengineV1alphaPrincipal `json:"principals,omitempty"`
5060
5061
5062
5063
5064
5065 ForceSendFields []string `json:"-"`
5066
5067
5068
5069
5070 NullFields []string `json:"-"`
5071 }
5072
5073 func (s *GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction) MarshalJSON() ([]byte, error) {
5074 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentAclInfoAccessRestriction
5075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5076 }
5077
5078
5079
5080 type GoogleCloudDiscoveryengineV1alphaDocumentContent struct {
5081
5082
5083
5084
5085
5086
5087
5088 MimeType string `json:"mimeType,omitempty"`
5089
5090
5091
5092
5093
5094
5095 RawBytes string `json:"rawBytes,omitempty"`
5096
5097
5098
5099 Uri string `json:"uri,omitempty"`
5100
5101
5102
5103
5104
5105 ForceSendFields []string `json:"-"`
5106
5107
5108
5109
5110 NullFields []string `json:"-"`
5111 }
5112
5113 func (s *GoogleCloudDiscoveryengineV1alphaDocumentContent) MarshalJSON() ([]byte, error) {
5114 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentContent
5115 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5116 }
5117
5118
5119
5120 type GoogleCloudDiscoveryengineV1alphaDocumentInfo struct {
5121
5122 Id string `json:"id,omitempty"`
5123
5124
5125
5126 Name string `json:"name,omitempty"`
5127
5128
5129 PromotionIds []string `json:"promotionIds,omitempty"`
5130
5131
5132
5133
5134 Quantity int64 `json:"quantity,omitempty"`
5135
5136 Uri string `json:"uri,omitempty"`
5137
5138
5139
5140
5141
5142 ForceSendFields []string `json:"-"`
5143
5144
5145
5146
5147 NullFields []string `json:"-"`
5148 }
5149
5150 func (s *GoogleCloudDiscoveryengineV1alphaDocumentInfo) MarshalJSON() ([]byte, error) {
5151 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentInfo
5152 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5153 }
5154
5155
5156
5157
5158
5159
5160 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig struct {
5161
5162 ChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig `json:"chunkingConfig,omitempty"`
5163
5164
5165
5166
5167 DefaultParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
5168
5169
5170 Name string `json:"name,omitempty"`
5171
5172
5173
5174
5175
5176
5177
5178 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
5179
5180
5181 googleapi.ServerResponse `json:"-"`
5182
5183
5184
5185
5186
5187 ForceSendFields []string `json:"-"`
5188
5189
5190
5191
5192 NullFields []string `json:"-"`
5193 }
5194
5195 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
5196 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
5197 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5198 }
5199
5200
5201
5202 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig struct {
5203
5204 LayoutBasedChunkingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig `json:"layoutBasedChunkingConfig,omitempty"`
5205
5206
5207
5208
5209
5210 ForceSendFields []string `json:"-"`
5211
5212
5213
5214
5215 NullFields []string `json:"-"`
5216 }
5217
5218 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig) MarshalJSON() ([]byte, error) {
5219 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfig
5220 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5221 }
5222
5223
5224
5225 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig struct {
5226
5227
5228 ChunkSize int64 `json:"chunkSize,omitempty"`
5229
5230
5231
5232 IncludeAncestorHeadings bool `json:"includeAncestorHeadings,omitempty"`
5233
5234
5235
5236
5237
5238 ForceSendFields []string `json:"-"`
5239
5240
5241
5242
5243 NullFields []string `json:"-"`
5244 }
5245
5246 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig) MarshalJSON() ([]byte, error) {
5247 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigChunkingConfigLayoutBasedChunkingConfig
5248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5249 }
5250
5251
5252
5253 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig struct {
5254
5255 DigitalParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
5256
5257 LayoutParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig `json:"layoutParsingConfig,omitempty"`
5258
5259
5260 OcrParsingConfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
5261
5262
5263
5264
5265
5266 ForceSendFields []string `json:"-"`
5267
5268
5269
5270
5271 NullFields []string `json:"-"`
5272 }
5273
5274 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
5275 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfig
5276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5277 }
5278
5279
5280
5281 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
5282 }
5283
5284
5285
5286 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigLayoutParsingConfig struct {
5287 }
5288
5289
5290
5291 type GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
5292
5293
5294
5295 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
5296
5297
5298 UseNativeText bool `json:"useNativeText,omitempty"`
5299
5300
5301
5302
5303
5304 ForceSendFields []string `json:"-"`
5305
5306
5307
5308
5309 NullFields []string `json:"-"`
5310 }
5311
5312 func (s *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
5313 type NoMethod GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfigParsingConfigOcrParsingConfig
5314 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5315 }
5316
5317
5318 type GoogleCloudDiscoveryengineV1alphaDoubleList struct {
5319
5320 Values []float64 `json:"values,omitempty"`
5321
5322
5323
5324
5325
5326 ForceSendFields []string `json:"-"`
5327
5328
5329
5330
5331 NullFields []string `json:"-"`
5332 }
5333
5334 func (s *GoogleCloudDiscoveryengineV1alphaDoubleList) MarshalJSON() ([]byte, error) {
5335 type NoMethod GoogleCloudDiscoveryengineV1alphaDoubleList
5336 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5337 }
5338
5339 func (s *GoogleCloudDiscoveryengineV1alphaDoubleList) UnmarshalJSON(data []byte) error {
5340 type NoMethod GoogleCloudDiscoveryengineV1alphaDoubleList
5341 var s1 struct {
5342 Values []gensupport.JSONFloat64 `json:"values"`
5343 *NoMethod
5344 }
5345 s1.NoMethod = (*NoMethod)(s)
5346 if err := json.Unmarshal(data, &s1); err != nil {
5347 return err
5348 }
5349 s.Values = make([]float64, len(s1.Values))
5350 for i := range s1.Values {
5351 s.Values[i] = float64(s1.Values[i])
5352 }
5353 return nil
5354 }
5355
5356
5357
5358 type GoogleCloudDiscoveryengineV1alphaEmbeddingConfig struct {
5359
5360 FieldPath string `json:"fieldPath,omitempty"`
5361
5362
5363
5364
5365
5366 ForceSendFields []string `json:"-"`
5367
5368
5369
5370
5371 NullFields []string `json:"-"`
5372 }
5373
5374 func (s *GoogleCloudDiscoveryengineV1alphaEmbeddingConfig) MarshalJSON() ([]byte, error) {
5375 type NoMethod GoogleCloudDiscoveryengineV1alphaEmbeddingConfig
5376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5377 }
5378
5379
5380
5381
5382
5383 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata struct {
5384
5385 CreateTime string `json:"createTime,omitempty"`
5386
5387
5388 UpdateTime string `json:"updateTime,omitempty"`
5389
5390
5391
5392
5393
5394 ForceSendFields []string `json:"-"`
5395
5396
5397
5398
5399 NullFields []string `json:"-"`
5400 }
5401
5402 func (s *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
5403 type NoMethod GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchMetadata
5404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5405 }
5406
5407
5408
5409 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest struct {
5410 }
5411
5412
5413
5414 type GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchResponse struct {
5415 }
5416
5417
5418
5419 type GoogleCloudDiscoveryengineV1alphaEngine struct {
5420
5421
5422 ChatEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
5423
5424
5425 ChatEngineMetadata *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
5426
5427 CommonConfig *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig `json:"commonConfig,omitempty"`
5428
5429 CreateTime string `json:"createTime,omitempty"`
5430
5431
5432
5433
5434
5435
5436 DataStoreIds []string `json:"dataStoreIds,omitempty"`
5437
5438
5439 DisplayName string `json:"displayName,omitempty"`
5440
5441
5442
5443
5444
5445
5446
5447
5448
5449
5450
5451 IndustryVertical string `json:"industryVertical,omitempty"`
5452
5453
5454
5455 MediaRecommendationEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig `json:"mediaRecommendationEngineConfig,omitempty"`
5456
5457
5458
5459
5460
5461
5462 Name string `json:"name,omitempty"`
5463
5464
5465
5466 RecommendationMetadata *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata `json:"recommendationMetadata,omitempty"`
5467
5468
5469 SearchEngineConfig *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
5470
5471
5472 SimilarDocumentsConfig *GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig `json:"similarDocumentsConfig,omitempty"`
5473
5474
5475
5476
5477
5478
5479
5480
5481
5482
5483
5484 SolutionType string `json:"solutionType,omitempty"`
5485
5486
5487 UpdateTime string `json:"updateTime,omitempty"`
5488
5489
5490 googleapi.ServerResponse `json:"-"`
5491
5492
5493
5494
5495
5496 ForceSendFields []string `json:"-"`
5497
5498
5499
5500
5501 NullFields []string `json:"-"`
5502 }
5503
5504 func (s *GoogleCloudDiscoveryengineV1alphaEngine) MarshalJSON() ([]byte, error) {
5505 type NoMethod GoogleCloudDiscoveryengineV1alphaEngine
5506 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5507 }
5508
5509
5510
5511 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig struct {
5512
5513
5514
5515
5516
5517 AgentCreationConfig *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
5518
5519
5520
5521
5522
5523
5524
5525
5526
5527 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
5528
5529
5530
5531
5532
5533 ForceSendFields []string `json:"-"`
5534
5535
5536
5537
5538 NullFields []string `json:"-"`
5539 }
5540
5541 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
5542 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfig
5543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5544 }
5545
5546
5547
5548
5549
5550
5551 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig struct {
5552
5553
5554
5555 Business string `json:"business,omitempty"`
5556
5557
5558
5559
5560 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
5561
5562
5563
5564 Location string `json:"location,omitempty"`
5565
5566
5567 TimeZone string `json:"timeZone,omitempty"`
5568
5569
5570
5571
5572
5573 ForceSendFields []string `json:"-"`
5574
5575
5576
5577
5578 NullFields []string `json:"-"`
5579 }
5580
5581 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
5582 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineConfigAgentCreationConfig
5583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5584 }
5585
5586
5587
5588 type GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata struct {
5589
5590
5591 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
5592
5593
5594
5595
5596
5597 ForceSendFields []string `json:"-"`
5598
5599
5600
5601
5602 NullFields []string `json:"-"`
5603 }
5604
5605 func (s *GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
5606 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineChatEngineMetadata
5607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5608 }
5609
5610
5611
5612 type GoogleCloudDiscoveryengineV1alphaEngineCommonConfig struct {
5613
5614
5615
5616 CompanyName string `json:"companyName,omitempty"`
5617
5618
5619
5620
5621
5622 ForceSendFields []string `json:"-"`
5623
5624
5625
5626
5627 NullFields []string `json:"-"`
5628 }
5629
5630 func (s *GoogleCloudDiscoveryengineV1alphaEngineCommonConfig) MarshalJSON() ([]byte, error) {
5631 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineCommonConfig
5632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5633 }
5634
5635
5636
5637 type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig struct {
5638
5639
5640
5641
5642
5643
5644 OptimizationObjective string `json:"optimizationObjective,omitempty"`
5645
5646
5647
5648
5649
5650
5651 OptimizationObjectiveConfig *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig `json:"optimizationObjectiveConfig,omitempty"`
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661
5662
5663 TrainingState string `json:"trainingState,omitempty"`
5664
5665
5666
5667
5668
5669 Type string `json:"type,omitempty"`
5670
5671
5672
5673
5674
5675 ForceSendFields []string `json:"-"`
5676
5677
5678
5679
5680 NullFields []string `json:"-"`
5681 }
5682
5683 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig) MarshalJSON() ([]byte, error) {
5684 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfig
5685 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5686 }
5687
5688
5689
5690 type GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig struct {
5691
5692
5693 TargetField string `json:"targetField,omitempty"`
5694
5695
5696 TargetFieldValueFloat float64 `json:"targetFieldValueFloat,omitempty"`
5697
5698
5699
5700
5701
5702 ForceSendFields []string `json:"-"`
5703
5704
5705
5706
5707 NullFields []string `json:"-"`
5708 }
5709
5710 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) MarshalJSON() ([]byte, error) {
5711 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
5712 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5713 }
5714
5715 func (s *GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig) UnmarshalJSON(data []byte) error {
5716 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineMediaRecommendationEngineConfigOptimizationObjectiveConfig
5717 var s1 struct {
5718 TargetFieldValueFloat gensupport.JSONFloat64 `json:"targetFieldValueFloat"`
5719 *NoMethod
5720 }
5721 s1.NoMethod = (*NoMethod)(s)
5722 if err := json.Unmarshal(data, &s1); err != nil {
5723 return err
5724 }
5725 s.TargetFieldValueFloat = float64(s1.TargetFieldValueFloat)
5726 return nil
5727 }
5728
5729
5730
5731 type GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata struct {
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741
5742
5743
5744
5745 DataState string `json:"dataState,omitempty"`
5746
5747
5748 LastTuneTime string `json:"lastTuneTime,omitempty"`
5749
5750
5751
5752
5753
5754
5755
5756
5757
5758 ServingState string `json:"servingState,omitempty"`
5759
5760
5761
5762
5763
5764
5765 TuningOperation string `json:"tuningOperation,omitempty"`
5766
5767
5768
5769
5770
5771 ForceSendFields []string `json:"-"`
5772
5773
5774
5775
5776 NullFields []string `json:"-"`
5777 }
5778
5779 func (s *GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata) MarshalJSON() ([]byte, error) {
5780 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineRecommendationMetadata
5781 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5782 }
5783
5784
5785
5786 type GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig struct {
5787
5788
5789
5790
5791
5792
5793 SearchAddOns []string `json:"searchAddOns,omitempty"`
5794
5795
5796
5797
5798
5799
5800
5801
5802
5803 SearchTier string `json:"searchTier,omitempty"`
5804
5805
5806
5807
5808
5809 ForceSendFields []string `json:"-"`
5810
5811
5812
5813
5814 NullFields []string `json:"-"`
5815 }
5816
5817 func (s *GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
5818 type NoMethod GoogleCloudDiscoveryengineV1alphaEngineSearchEngineConfig
5819 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5820 }
5821
5822
5823
5824 type GoogleCloudDiscoveryengineV1alphaEngineSimilarDocumentsEngineConfig struct {
5825 }
5826
5827
5828
5829
5830 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata struct {
5831
5832 CreateTime string `json:"createTime,omitempty"`
5833
5834
5835
5836
5837
5838 ForceSendFields []string `json:"-"`
5839
5840
5841
5842
5843 NullFields []string `json:"-"`
5844 }
5845
5846 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata) MarshalJSON() ([]byte, error) {
5847 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeMetadata
5848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5849 }
5850
5851
5852
5853 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest struct {
5854
5855 FileDataSource *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource `json:"fileDataSource,omitempty"`
5856
5857 WebsiteDataSource *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource `json:"websiteDataSource,omitempty"`
5858
5859
5860
5861
5862
5863 ForceSendFields []string `json:"-"`
5864
5865
5866
5867
5868 NullFields []string `json:"-"`
5869 }
5870
5871 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest) MarshalJSON() ([]byte, error) {
5872 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
5873 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5874 }
5875
5876
5877
5878 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource struct {
5879
5880 BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"`
5881
5882 GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
5883
5884
5885
5886
5887
5888 ForceSendFields []string `json:"-"`
5889
5890
5891
5892
5893 NullFields []string `json:"-"`
5894 }
5895
5896 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource) MarshalJSON() ([]byte, error) {
5897 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestFileDataSource
5898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5899 }
5900
5901
5902
5903
5904 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource struct {
5905
5906
5907
5908 EstimatorUriPatterns []*GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern `json:"estimatorUriPatterns,omitempty"`
5909
5910
5911
5912
5913
5914 ForceSendFields []string `json:"-"`
5915
5916
5917
5918
5919 NullFields []string `json:"-"`
5920 }
5921
5922 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource) MarshalJSON() ([]byte, error) {
5923 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSource
5924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5925 }
5926
5927
5928
5929 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern struct {
5930
5931
5932 ExactMatch bool `json:"exactMatch,omitempty"`
5933
5934
5935
5936 Exclusive bool `json:"exclusive,omitempty"`
5937
5938 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
5939
5940
5941
5942
5943
5944 ForceSendFields []string `json:"-"`
5945
5946
5947
5948
5949 NullFields []string `json:"-"`
5950 }
5951
5952 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern) MarshalJSON() ([]byte, error) {
5953 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequestWebsiteDataSourceEstimatorUriPattern
5954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5955 }
5956
5957
5958
5959
5960
5961 type GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse struct {
5962
5963 DataSizeBytes int64 `json:"dataSizeBytes,omitempty,string"`
5964
5965 DocumentCount int64 `json:"documentCount,omitempty,string"`
5966
5967
5968
5969
5970
5971 ForceSendFields []string `json:"-"`
5972
5973
5974
5975
5976 NullFields []string `json:"-"`
5977 }
5978
5979 func (s *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse) MarshalJSON() ([]byte, error) {
5980 type NoMethod GoogleCloudDiscoveryengineV1alphaEstimateDataSizeResponse
5981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5982 }
5983
5984
5985 type GoogleCloudDiscoveryengineV1alphaFactChunk struct {
5986
5987
5988 ChunkText string `json:"chunkText,omitempty"`
5989
5990 Index int64 `json:"index,omitempty"`
5991
5992
5993
5994 Source string `json:"source,omitempty"`
5995
5996 SourceMetadata map[string]string `json:"sourceMetadata,omitempty"`
5997
5998
5999
6000
6001
6002 ForceSendFields []string `json:"-"`
6003
6004
6005
6006
6007 NullFields []string `json:"-"`
6008 }
6009
6010 func (s *GoogleCloudDiscoveryengineV1alphaFactChunk) MarshalJSON() ([]byte, error) {
6011 type NoMethod GoogleCloudDiscoveryengineV1alphaFactChunk
6012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6013 }
6014
6015
6016
6017
6018 type GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse struct {
6019
6020
6021 NextPageToken string `json:"nextPageToken,omitempty"`
6022
6023 TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
6024
6025
6026 TotalSize int64 `json:"totalSize,omitempty"`
6027
6028
6029 googleapi.ServerResponse `json:"-"`
6030
6031
6032
6033
6034
6035 ForceSendFields []string `json:"-"`
6036
6037
6038
6039
6040 NullFields []string `json:"-"`
6041 }
6042
6043 func (s *GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse) MarshalJSON() ([]byte, error) {
6044 type NoMethod GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse
6045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6046 }
6047
6048
6049
6050 type GoogleCloudDiscoveryengineV1alphaFhirStoreSource struct {
6051
6052
6053
6054
6055 FhirStore string `json:"fhirStore,omitempty"`
6056
6057
6058
6059 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
6060
6061
6062
6063
6064
6065 ForceSendFields []string `json:"-"`
6066
6067
6068
6069
6070 NullFields []string `json:"-"`
6071 }
6072
6073 func (s *GoogleCloudDiscoveryengineV1alphaFhirStoreSource) MarshalJSON() ([]byte, error) {
6074 type NoMethod GoogleCloudDiscoveryengineV1alphaFhirStoreSource
6075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6076 }
6077
6078
6079
6080 type GoogleCloudDiscoveryengineV1alphaFieldConfig struct {
6081
6082
6083
6084
6085
6086
6087
6088
6089
6090
6091 AdvancedSiteSearchDataSources []string `json:"advancedSiteSearchDataSources,omitempty"`
6092
6093
6094
6095
6096
6097
6098
6099
6100
6101
6102
6103
6104
6105 CompletableOption string `json:"completableOption,omitempty"`
6106
6107
6108
6109
6110
6111
6112
6113
6114
6115
6116
6117
6118
6119
6120
6121
6122
6123 DynamicFacetableOption string `json:"dynamicFacetableOption,omitempty"`
6124
6125
6126 FieldPath string `json:"fieldPath,omitempty"`
6127
6128
6129
6130
6131
6132
6133
6134
6135
6136
6137
6138
6139
6140
6141
6142
6143
6144
6145
6146
6147
6148
6149 FieldType string `json:"fieldType,omitempty"`
6150
6151
6152
6153
6154
6155
6156
6157
6158
6159
6160
6161
6162
6163 IndexableOption string `json:"indexableOption,omitempty"`
6164
6165
6166
6167
6168
6169
6170 KeyPropertyType string `json:"keyPropertyType,omitempty"`
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183
6184
6185 RecsFilterableOption string `json:"recsFilterableOption,omitempty"`
6186
6187
6188
6189
6190
6191
6192
6193
6194
6195
6196
6197
6198 RetrievableOption string `json:"retrievableOption,omitempty"`
6199
6200
6201
6202
6203
6204
6205
6206
6207
6208
6209
6210
6211
6212
6213
6214
6215 SearchableOption string `json:"searchableOption,omitempty"`
6216
6217
6218
6219
6220
6221 ForceSendFields []string `json:"-"`
6222
6223
6224
6225
6226 NullFields []string `json:"-"`
6227 }
6228
6229 func (s *GoogleCloudDiscoveryengineV1alphaFieldConfig) MarshalJSON() ([]byte, error) {
6230 type NoMethod GoogleCloudDiscoveryengineV1alphaFieldConfig
6231 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6232 }
6233
6234
6235
6236 type GoogleCloudDiscoveryengineV1alphaFirestoreSource struct {
6237
6238
6239 CollectionId string `json:"collectionId,omitempty"`
6240
6241
6242 DatabaseId string `json:"databaseId,omitempty"`
6243
6244
6245
6246
6247
6248 GcsStagingDir string `json:"gcsStagingDir,omitempty"`
6249
6250
6251
6252 ProjectId string `json:"projectId,omitempty"`
6253
6254
6255
6256
6257
6258 ForceSendFields []string `json:"-"`
6259
6260
6261
6262
6263 NullFields []string `json:"-"`
6264 }
6265
6266 func (s *GoogleCloudDiscoveryengineV1alphaFirestoreSource) MarshalJSON() ([]byte, error) {
6267 type NoMethod GoogleCloudDiscoveryengineV1alphaFirestoreSource
6268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6269 }
6270
6271
6272
6273 type GoogleCloudDiscoveryengineV1alphaGcsSource struct {
6274
6275
6276
6277
6278
6279
6280
6281
6282
6283
6284
6285
6286 DataSchema string `json:"dataSchema,omitempty"`
6287
6288
6289
6290
6291
6292
6293 InputUris []string `json:"inputUris,omitempty"`
6294
6295
6296
6297
6298
6299 ForceSendFields []string `json:"-"`
6300
6301
6302
6303
6304 NullFields []string `json:"-"`
6305 }
6306
6307 func (s *GoogleCloudDiscoveryengineV1alphaGcsSource) MarshalJSON() ([]byte, error) {
6308 type NoMethod GoogleCloudDiscoveryengineV1alphaGcsSource
6309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6310 }
6311
6312
6313 type GoogleCloudDiscoveryengineV1alphaGroundingFact struct {
6314
6315
6316
6317 Attributes map[string]string `json:"attributes,omitempty"`
6318
6319 FactText string `json:"factText,omitempty"`
6320
6321
6322
6323
6324
6325 ForceSendFields []string `json:"-"`
6326
6327
6328
6329
6330 NullFields []string `json:"-"`
6331 }
6332
6333 func (s *GoogleCloudDiscoveryengineV1alphaGroundingFact) MarshalJSON() ([]byte, error) {
6334 type NoMethod GoogleCloudDiscoveryengineV1alphaGroundingFact
6335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6336 }
6337
6338
6339
6340 type GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec struct {
6341
6342
6343 EnableRefinementAttributes bool `json:"enableRefinementAttributes,omitempty"`
6344
6345
6346 EnableRelatedQuestions bool `json:"enableRelatedQuestions,omitempty"`
6347
6348
6349
6350 MaxRelatedQuestions int64 `json:"maxRelatedQuestions,omitempty"`
6351
6352
6353
6354
6355
6356 ForceSendFields []string `json:"-"`
6357
6358
6359
6360
6361 NullFields []string `json:"-"`
6362 }
6363
6364 func (s *GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec) MarshalJSON() ([]byte, error) {
6365 type NoMethod GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
6366 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6367 }
6368
6369
6370 type GoogleCloudDiscoveryengineV1alphaIdpConfig struct {
6371
6372 ExternalIdpConfig *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig `json:"externalIdpConfig,omitempty"`
6373
6374
6375
6376
6377
6378
6379 IdpType string `json:"idpType,omitempty"`
6380
6381
6382
6383
6384
6385 ForceSendFields []string `json:"-"`
6386
6387
6388
6389
6390 NullFields []string `json:"-"`
6391 }
6392
6393 func (s *GoogleCloudDiscoveryengineV1alphaIdpConfig) MarshalJSON() ([]byte, error) {
6394 type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfig
6395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6396 }
6397
6398
6399
6400 type GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig struct {
6401
6402
6403 WorkforcePoolName string `json:"workforcePoolName,omitempty"`
6404
6405
6406
6407
6408
6409 ForceSendFields []string `json:"-"`
6410
6411
6412
6413
6414 NullFields []string `json:"-"`
6415 }
6416
6417 func (s *GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig) MarshalJSON() ([]byte, error) {
6418 type NoMethod GoogleCloudDiscoveryengineV1alphaIdpConfigExternalIdpConfig
6419 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6420 }
6421
6422
6423
6424
6425 type GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata struct {
6426
6427 CreateTime string `json:"createTime,omitempty"`
6428
6429 FailureCount int64 `json:"failureCount,omitempty,string"`
6430
6431 SuccessCount int64 `json:"successCount,omitempty,string"`
6432
6433 TotalCount int64 `json:"totalCount,omitempty,string"`
6434
6435
6436 UpdateTime string `json:"updateTime,omitempty"`
6437
6438
6439
6440
6441
6442 ForceSendFields []string `json:"-"`
6443
6444
6445
6446
6447 NullFields []string `json:"-"`
6448 }
6449
6450 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
6451 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsMetadata
6452 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6453 }
6454
6455
6456
6457 type GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest struct {
6458
6459
6460
6461
6462
6463
6464
6465
6466
6467
6468
6469 AutoGenerateIds bool `json:"autoGenerateIds,omitempty"`
6470
6471 BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"`
6472
6473 BigtableSource *GoogleCloudDiscoveryengineV1alphaBigtableSource `json:"bigtableSource,omitempty"`
6474
6475 CloudSqlSource *GoogleCloudDiscoveryengineV1alphaCloudSqlSource `json:"cloudSqlSource,omitempty"`
6476
6477 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
6478
6479 FhirStoreSource *GoogleCloudDiscoveryengineV1alphaFhirStoreSource `json:"fhirStoreSource,omitempty"`
6480
6481 FirestoreSource *GoogleCloudDiscoveryengineV1alphaFirestoreSource `json:"firestoreSource,omitempty"`
6482
6483 GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
6484
6485
6486
6487
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500 IdField string `json:"idField,omitempty"`
6501
6502 InlineSource *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource `json:"inlineSource,omitempty"`
6503
6504
6505
6506
6507
6508
6509
6510
6511
6512
6513 ReconciliationMode string `json:"reconciliationMode,omitempty"`
6514
6515 SpannerSource *GoogleCloudDiscoveryengineV1alphaSpannerSource `json:"spannerSource,omitempty"`
6516
6517
6518 UpdateMask string `json:"updateMask,omitempty"`
6519
6520
6521
6522
6523
6524 ForceSendFields []string `json:"-"`
6525
6526
6527
6528
6529 NullFields []string `json:"-"`
6530 }
6531
6532 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest) MarshalJSON() ([]byte, error) {
6533 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
6534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6535 }
6536
6537
6538
6539 type GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource struct {
6540
6541
6542 Documents []*GoogleCloudDiscoveryengineV1alphaDocument `json:"documents,omitempty"`
6543
6544
6545
6546
6547
6548 ForceSendFields []string `json:"-"`
6549
6550
6551
6552
6553 NullFields []string `json:"-"`
6554 }
6555
6556 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource) MarshalJSON() ([]byte, error) {
6557 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsRequestInlineSource
6558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6559 }
6560
6561
6562
6563
6564
6565 type GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse struct {
6566
6567
6568 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
6569
6570 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
6571
6572
6573
6574
6575
6576 ForceSendFields []string `json:"-"`
6577
6578
6579
6580
6581 NullFields []string `json:"-"`
6582 }
6583
6584 func (s *GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
6585 type NoMethod GoogleCloudDiscoveryengineV1alphaImportDocumentsResponse
6586 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6587 }
6588
6589
6590
6591 type GoogleCloudDiscoveryengineV1alphaImportErrorConfig struct {
6592
6593
6594
6595
6596 GcsPrefix string `json:"gcsPrefix,omitempty"`
6597
6598
6599
6600
6601
6602 ForceSendFields []string `json:"-"`
6603
6604
6605
6606
6607 NullFields []string `json:"-"`
6608 }
6609
6610 func (s *GoogleCloudDiscoveryengineV1alphaImportErrorConfig) MarshalJSON() ([]byte, error) {
6611 type NoMethod GoogleCloudDiscoveryengineV1alphaImportErrorConfig
6612 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6613 }
6614
6615
6616
6617
6618
6619 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata struct {
6620
6621 CreateTime string `json:"createTime,omitempty"`
6622
6623
6624 UpdateTime string `json:"updateTime,omitempty"`
6625
6626
6627
6628
6629
6630 ForceSendFields []string `json:"-"`
6631
6632
6633
6634
6635 NullFields []string `json:"-"`
6636 }
6637
6638 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
6639 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesMetadata
6640 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6641 }
6642
6643
6644
6645
6646 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest struct {
6647
6648
6649
6650
6651
6652 GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
6653
6654
6655 InlineSource *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource `json:"inlineSource,omitempty"`
6656
6657
6658
6659
6660
6661 ForceSendFields []string `json:"-"`
6662
6663
6664
6665
6666 NullFields []string `json:"-"`
6667 }
6668
6669 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest) MarshalJSON() ([]byte, error) {
6670 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest
6671 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6672 }
6673
6674
6675
6676 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource struct {
6677
6678
6679 Entries []*GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry `json:"entries,omitempty"`
6680
6681
6682
6683
6684
6685 ForceSendFields []string `json:"-"`
6686
6687
6688
6689
6690 NullFields []string `json:"-"`
6691 }
6692
6693 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource) MarshalJSON() ([]byte, error) {
6694 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequestInlineSource
6695 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6696 }
6697
6698
6699
6700
6701 type GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse struct {
6702
6703 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
6704
6705 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
6706
6707 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
6708
6709
6710
6711
6712
6713 ForceSendFields []string `json:"-"`
6714
6715
6716
6717
6718 NullFields []string `json:"-"`
6719 }
6720
6721 func (s *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
6722 type NoMethod GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesResponse
6723 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6724 }
6725
6726
6727
6728
6729 type GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata struct {
6730
6731 CreateTime string `json:"createTime,omitempty"`
6732
6733 FailureCount int64 `json:"failureCount,omitempty,string"`
6734
6735 SuccessCount int64 `json:"successCount,omitempty,string"`
6736
6737
6738 UpdateTime string `json:"updateTime,omitempty"`
6739
6740
6741
6742
6743
6744 ForceSendFields []string `json:"-"`
6745
6746
6747
6748
6749 NullFields []string `json:"-"`
6750 }
6751
6752 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
6753 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsMetadata
6754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6755 }
6756
6757
6758
6759 type GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest struct {
6760
6761 BigquerySource *GoogleCloudDiscoveryengineV1alphaBigQuerySource `json:"bigquerySource,omitempty"`
6762
6763
6764 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
6765
6766 GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
6767
6768 InlineSource *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource `json:"inlineSource,omitempty"`
6769
6770
6771
6772
6773
6774 ForceSendFields []string `json:"-"`
6775
6776
6777
6778
6779 NullFields []string `json:"-"`
6780 }
6781
6782 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest) MarshalJSON() ([]byte, error) {
6783 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
6784 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6785 }
6786
6787
6788
6789 type GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource struct {
6790
6791
6792 UserEvents []*GoogleCloudDiscoveryengineV1alphaUserEvent `json:"userEvents,omitempty"`
6793
6794
6795
6796
6797
6798 ForceSendFields []string `json:"-"`
6799
6800
6801
6802
6803 NullFields []string `json:"-"`
6804 }
6805
6806 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource) MarshalJSON() ([]byte, error) {
6807 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsRequestInlineSource
6808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6809 }
6810
6811
6812
6813
6814
6815 type GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse struct {
6816
6817
6818 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
6819
6820 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
6821
6822
6823 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
6824
6825
6826 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
6827
6828
6829
6830
6831
6832 ForceSendFields []string `json:"-"`
6833
6834
6835
6836
6837 NullFields []string `json:"-"`
6838 }
6839
6840 func (s *GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
6841 type NoMethod GoogleCloudDiscoveryengineV1alphaImportUserEventsResponse
6842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6843 }
6844
6845
6846 type GoogleCloudDiscoveryengineV1alphaInterval struct {
6847
6848 ExclusiveMaximum float64 `json:"exclusiveMaximum,omitempty"`
6849
6850 ExclusiveMinimum float64 `json:"exclusiveMinimum,omitempty"`
6851
6852 Maximum float64 `json:"maximum,omitempty"`
6853
6854 Minimum float64 `json:"minimum,omitempty"`
6855
6856
6857
6858
6859
6860 ForceSendFields []string `json:"-"`
6861
6862
6863
6864
6865 NullFields []string `json:"-"`
6866 }
6867
6868 func (s *GoogleCloudDiscoveryengineV1alphaInterval) MarshalJSON() ([]byte, error) {
6869 type NoMethod GoogleCloudDiscoveryengineV1alphaInterval
6870 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6871 }
6872
6873 func (s *GoogleCloudDiscoveryengineV1alphaInterval) UnmarshalJSON(data []byte) error {
6874 type NoMethod GoogleCloudDiscoveryengineV1alphaInterval
6875 var s1 struct {
6876 ExclusiveMaximum gensupport.JSONFloat64 `json:"exclusiveMaximum"`
6877 ExclusiveMinimum gensupport.JSONFloat64 `json:"exclusiveMinimum"`
6878 Maximum gensupport.JSONFloat64 `json:"maximum"`
6879 Minimum gensupport.JSONFloat64 `json:"minimum"`
6880 *NoMethod
6881 }
6882 s1.NoMethod = (*NoMethod)(s)
6883 if err := json.Unmarshal(data, &s1); err != nil {
6884 return err
6885 }
6886 s.ExclusiveMaximum = float64(s1.ExclusiveMaximum)
6887 s.ExclusiveMinimum = float64(s1.ExclusiveMinimum)
6888 s.Maximum = float64(s1.Maximum)
6889 s.Minimum = float64(s1.Minimum)
6890 return nil
6891 }
6892
6893
6894
6895 type GoogleCloudDiscoveryengineV1alphaListChunksResponse struct {
6896
6897 Chunks []*GoogleCloudDiscoveryengineV1alphaChunk `json:"chunks,omitempty"`
6898
6899
6900
6901 NextPageToken string `json:"nextPageToken,omitempty"`
6902
6903
6904 googleapi.ServerResponse `json:"-"`
6905
6906
6907
6908
6909
6910 ForceSendFields []string `json:"-"`
6911
6912
6913
6914
6915 NullFields []string `json:"-"`
6916 }
6917
6918 func (s *GoogleCloudDiscoveryengineV1alphaListChunksResponse) MarshalJSON() ([]byte, error) {
6919 type NoMethod GoogleCloudDiscoveryengineV1alphaListChunksResponse
6920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6921 }
6922
6923
6924
6925 type GoogleCloudDiscoveryengineV1alphaListConversationsResponse struct {
6926
6927 Conversations []*GoogleCloudDiscoveryengineV1alphaConversation `json:"conversations,omitempty"`
6928
6929 NextPageToken string `json:"nextPageToken,omitempty"`
6930
6931
6932 googleapi.ServerResponse `json:"-"`
6933
6934
6935
6936
6937
6938 ForceSendFields []string `json:"-"`
6939
6940
6941
6942
6943 NullFields []string `json:"-"`
6944 }
6945
6946 func (s *GoogleCloudDiscoveryengineV1alphaListConversationsResponse) MarshalJSON() ([]byte, error) {
6947 type NoMethod GoogleCloudDiscoveryengineV1alphaListConversationsResponse
6948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6949 }
6950
6951
6952
6953 type GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse struct {
6954
6955 Models []*GoogleCloudDiscoveryengineV1alphaCustomTuningModel `json:"models,omitempty"`
6956
6957
6958 googleapi.ServerResponse `json:"-"`
6959
6960
6961
6962
6963
6964 ForceSendFields []string `json:"-"`
6965
6966
6967
6968
6969 NullFields []string `json:"-"`
6970 }
6971
6972 func (s *GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
6973 type NoMethod GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse
6974 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6975 }
6976
6977
6978
6979 type GoogleCloudDiscoveryengineV1alphaListDataStoresResponse struct {
6980
6981 DataStores []*GoogleCloudDiscoveryengineV1alphaDataStore `json:"dataStores,omitempty"`
6982
6983
6984
6985 NextPageToken string `json:"nextPageToken,omitempty"`
6986
6987
6988 googleapi.ServerResponse `json:"-"`
6989
6990
6991
6992
6993
6994 ForceSendFields []string `json:"-"`
6995
6996
6997
6998
6999 NullFields []string `json:"-"`
7000 }
7001
7002 func (s *GoogleCloudDiscoveryengineV1alphaListDataStoresResponse) MarshalJSON() ([]byte, error) {
7003 type NoMethod GoogleCloudDiscoveryengineV1alphaListDataStoresResponse
7004 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7005 }
7006
7007
7008
7009 type GoogleCloudDiscoveryengineV1alphaListDocumentsResponse struct {
7010
7011 Documents []*GoogleCloudDiscoveryengineV1alphaDocument `json:"documents,omitempty"`
7012
7013
7014
7015 NextPageToken string `json:"nextPageToken,omitempty"`
7016
7017
7018 googleapi.ServerResponse `json:"-"`
7019
7020
7021
7022
7023
7024 ForceSendFields []string `json:"-"`
7025
7026
7027
7028
7029 NullFields []string `json:"-"`
7030 }
7031
7032 func (s *GoogleCloudDiscoveryengineV1alphaListDocumentsResponse) MarshalJSON() ([]byte, error) {
7033 type NoMethod GoogleCloudDiscoveryengineV1alphaListDocumentsResponse
7034 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7035 }
7036
7037
7038
7039 type GoogleCloudDiscoveryengineV1alphaListEnginesResponse struct {
7040
7041 Engines []*GoogleCloudDiscoveryengineV1alphaEngine `json:"engines,omitempty"`
7042
7043 NextPageToken string `json:"nextPageToken,omitempty"`
7044
7045
7046 googleapi.ServerResponse `json:"-"`
7047
7048
7049
7050
7051
7052 ForceSendFields []string `json:"-"`
7053
7054
7055
7056
7057 NullFields []string `json:"-"`
7058 }
7059
7060 func (s *GoogleCloudDiscoveryengineV1alphaListEnginesResponse) MarshalJSON() ([]byte, error) {
7061 type NoMethod GoogleCloudDiscoveryengineV1alphaListEnginesResponse
7062 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7063 }
7064
7065
7066
7067 type GoogleCloudDiscoveryengineV1alphaListSchemasResponse struct {
7068
7069
7070
7071 NextPageToken string `json:"nextPageToken,omitempty"`
7072
7073 Schemas []*GoogleCloudDiscoveryengineV1alphaSchema `json:"schemas,omitempty"`
7074
7075
7076 googleapi.ServerResponse `json:"-"`
7077
7078
7079
7080
7081
7082 ForceSendFields []string `json:"-"`
7083
7084
7085
7086
7087 NullFields []string `json:"-"`
7088 }
7089
7090 func (s *GoogleCloudDiscoveryengineV1alphaListSchemasResponse) MarshalJSON() ([]byte, error) {
7091 type NoMethod GoogleCloudDiscoveryengineV1alphaListSchemasResponse
7092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7093 }
7094
7095
7096
7097 type GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse struct {
7098
7099 NextPageToken string `json:"nextPageToken,omitempty"`
7100
7101 ServingConfigs []*GoogleCloudDiscoveryengineV1alphaServingConfig `json:"servingConfigs,omitempty"`
7102
7103
7104 googleapi.ServerResponse `json:"-"`
7105
7106
7107
7108
7109
7110 ForceSendFields []string `json:"-"`
7111
7112
7113
7114
7115 NullFields []string `json:"-"`
7116 }
7117
7118 func (s *GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) MarshalJSON() ([]byte, error) {
7119 type NoMethod GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse
7120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7121 }
7122
7123
7124
7125 type GoogleCloudDiscoveryengineV1alphaListSessionsResponse struct {
7126
7127 NextPageToken string `json:"nextPageToken,omitempty"`
7128
7129 Sessions []*GoogleCloudDiscoveryengineV1alphaSession `json:"sessions,omitempty"`
7130
7131
7132 googleapi.ServerResponse `json:"-"`
7133
7134
7135
7136
7137
7138 ForceSendFields []string `json:"-"`
7139
7140
7141
7142
7143 NullFields []string `json:"-"`
7144 }
7145
7146 func (s *GoogleCloudDiscoveryengineV1alphaListSessionsResponse) MarshalJSON() ([]byte, error) {
7147 type NoMethod GoogleCloudDiscoveryengineV1alphaListSessionsResponse
7148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7149 }
7150
7151
7152
7153 type GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse struct {
7154
7155
7156 NextPageToken string `json:"nextPageToken,omitempty"`
7157
7158 TargetSites []*GoogleCloudDiscoveryengineV1alphaTargetSite `json:"targetSites,omitempty"`
7159
7160
7161 TotalSize int64 `json:"totalSize,omitempty"`
7162
7163
7164 googleapi.ServerResponse `json:"-"`
7165
7166
7167
7168
7169
7170 ForceSendFields []string `json:"-"`
7171
7172
7173
7174
7175 NullFields []string `json:"-"`
7176 }
7177
7178 func (s *GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse) MarshalJSON() ([]byte, error) {
7179 type NoMethod GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse
7180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7181 }
7182
7183
7184
7185 type GoogleCloudDiscoveryengineV1alphaMediaInfo struct {
7186
7187
7188
7189 MediaProgressDuration string `json:"mediaProgressDuration,omitempty"`
7190
7191
7192
7193
7194 MediaProgressPercentage float64 `json:"mediaProgressPercentage,omitempty"`
7195
7196
7197
7198
7199
7200 ForceSendFields []string `json:"-"`
7201
7202
7203
7204
7205 NullFields []string `json:"-"`
7206 }
7207
7208 func (s *GoogleCloudDiscoveryengineV1alphaMediaInfo) MarshalJSON() ([]byte, error) {
7209 type NoMethod GoogleCloudDiscoveryengineV1alphaMediaInfo
7210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7211 }
7212
7213 func (s *GoogleCloudDiscoveryengineV1alphaMediaInfo) UnmarshalJSON(data []byte) error {
7214 type NoMethod GoogleCloudDiscoveryengineV1alphaMediaInfo
7215 var s1 struct {
7216 MediaProgressPercentage gensupport.JSONFloat64 `json:"mediaProgressPercentage"`
7217 *NoMethod
7218 }
7219 s1.NoMethod = (*NoMethod)(s)
7220 if err := json.Unmarshal(data, &s1); err != nil {
7221 return err
7222 }
7223 s.MediaProgressPercentage = float64(s1.MediaProgressPercentage)
7224 return nil
7225 }
7226
7227
7228 type GoogleCloudDiscoveryengineV1alphaPageInfo struct {
7229
7230
7231
7232
7233
7234
7235
7236
7237 PageCategory string `json:"pageCategory,omitempty"`
7238
7239
7240
7241
7242
7243
7244
7245 PageviewId string `json:"pageviewId,omitempty"`
7246
7247
7248
7249
7250 ReferrerUri string `json:"referrerUri,omitempty"`
7251
7252
7253
7254
7255 Uri string `json:"uri,omitempty"`
7256
7257
7258
7259
7260
7261 ForceSendFields []string `json:"-"`
7262
7263
7264
7265
7266 NullFields []string `json:"-"`
7267 }
7268
7269 func (s *GoogleCloudDiscoveryengineV1alphaPageInfo) MarshalJSON() ([]byte, error) {
7270 type NoMethod GoogleCloudDiscoveryengineV1alphaPageInfo
7271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7272 }
7273
7274
7275
7276 type GoogleCloudDiscoveryengineV1alphaPanelInfo struct {
7277
7278 DisplayName string `json:"displayName,omitempty"`
7279
7280 PanelId string `json:"panelId,omitempty"`
7281
7282
7283 PanelPosition int64 `json:"panelPosition,omitempty"`
7284
7285
7286 TotalPanels int64 `json:"totalPanels,omitempty"`
7287
7288
7289
7290
7291
7292 ForceSendFields []string `json:"-"`
7293
7294
7295
7296
7297 NullFields []string `json:"-"`
7298 }
7299
7300 func (s *GoogleCloudDiscoveryengineV1alphaPanelInfo) MarshalJSON() ([]byte, error) {
7301 type NoMethod GoogleCloudDiscoveryengineV1alphaPanelInfo
7302 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7303 }
7304
7305
7306
7307 type GoogleCloudDiscoveryengineV1alphaPauseEngineRequest struct {
7308 }
7309
7310
7311
7312 type GoogleCloudDiscoveryengineV1alphaPrincipal struct {
7313
7314
7315
7316
7317 GroupId string `json:"groupId,omitempty"`
7318
7319
7320
7321
7322 UserId string `json:"userId,omitempty"`
7323
7324
7325
7326
7327
7328 ForceSendFields []string `json:"-"`
7329
7330
7331
7332
7333 NullFields []string `json:"-"`
7334 }
7335
7336 func (s *GoogleCloudDiscoveryengineV1alphaPrincipal) MarshalJSON() ([]byte, error) {
7337 type NoMethod GoogleCloudDiscoveryengineV1alphaPrincipal
7338 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7339 }
7340
7341
7342
7343 type GoogleCloudDiscoveryengineV1alphaProcessedDocument struct {
7344
7345
7346
7347 Document string `json:"document,omitempty"`
7348
7349 JsonData string `json:"jsonData,omitempty"`
7350
7351
7352 googleapi.ServerResponse `json:"-"`
7353
7354
7355
7356
7357
7358 ForceSendFields []string `json:"-"`
7359
7360
7361
7362
7363 NullFields []string `json:"-"`
7364 }
7365
7366 func (s *GoogleCloudDiscoveryengineV1alphaProcessedDocument) MarshalJSON() ([]byte, error) {
7367 type NoMethod GoogleCloudDiscoveryengineV1alphaProcessedDocument
7368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7369 }
7370
7371
7372
7373 type GoogleCloudDiscoveryengineV1alphaProject struct {
7374
7375 CreateTime string `json:"createTime,omitempty"`
7376
7377
7378
7379
7380 Name string `json:"name,omitempty"`
7381
7382
7383
7384 ProvisionCompletionTime string `json:"provisionCompletionTime,omitempty"`
7385
7386
7387 ServiceTermsMap map[string]GoogleCloudDiscoveryengineV1alphaProjectServiceTerms `json:"serviceTermsMap,omitempty"`
7388
7389
7390 googleapi.ServerResponse `json:"-"`
7391
7392
7393
7394
7395
7396 ForceSendFields []string `json:"-"`
7397
7398
7399
7400
7401 NullFields []string `json:"-"`
7402 }
7403
7404 func (s *GoogleCloudDiscoveryengineV1alphaProject) MarshalJSON() ([]byte, error) {
7405 type NoMethod GoogleCloudDiscoveryengineV1alphaProject
7406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7407 }
7408
7409
7410
7411 type GoogleCloudDiscoveryengineV1alphaProjectServiceTerms struct {
7412
7413 AcceptTime string `json:"acceptTime,omitempty"`
7414
7415
7416 DeclineTime string `json:"declineTime,omitempty"`
7417
7418
7419
7420
7421 Id string `json:"id,omitempty"`
7422
7423
7424
7425
7426
7427
7428
7429
7430
7431
7432
7433 State string `json:"state,omitempty"`
7434
7435
7436 Version string `json:"version,omitempty"`
7437
7438
7439
7440
7441
7442 ForceSendFields []string `json:"-"`
7443
7444
7445
7446
7447 NullFields []string `json:"-"`
7448 }
7449
7450 func (s *GoogleCloudDiscoveryengineV1alphaProjectServiceTerms) MarshalJSON() ([]byte, error) {
7451 type NoMethod GoogleCloudDiscoveryengineV1alphaProjectServiceTerms
7452 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7453 }
7454
7455
7456
7457 type GoogleCloudDiscoveryengineV1alphaProvisionProjectMetadata struct {
7458 }
7459
7460
7461
7462 type GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest struct {
7463
7464
7465
7466 AcceptDataUseTerms bool `json:"acceptDataUseTerms,omitempty"`
7467
7468
7469
7470
7471 DataUseTermsVersion string `json:"dataUseTermsVersion,omitempty"`
7472
7473
7474
7475
7476
7477 ForceSendFields []string `json:"-"`
7478
7479
7480
7481
7482 NullFields []string `json:"-"`
7483 }
7484
7485 func (s *GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest) MarshalJSON() ([]byte, error) {
7486 type NoMethod GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest
7487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7488 }
7489
7490
7491
7492
7493 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata struct {
7494
7495 CreateTime string `json:"createTime,omitempty"`
7496
7497 FailureCount int64 `json:"failureCount,omitempty,string"`
7498
7499 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
7500
7501 SuccessCount int64 `json:"successCount,omitempty,string"`
7502
7503
7504 UpdateTime string `json:"updateTime,omitempty"`
7505
7506
7507
7508
7509
7510 ForceSendFields []string `json:"-"`
7511
7512
7513
7514
7515 NullFields []string `json:"-"`
7516 }
7517
7518 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
7519 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsMetadata
7520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7521 }
7522
7523
7524
7525 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest struct {
7526
7527 ErrorConfig *GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig `json:"errorConfig,omitempty"`
7528
7529
7530 Filter string `json:"filter,omitempty"`
7531
7532
7533 Force bool `json:"force,omitempty"`
7534
7535
7536 GcsSource *GoogleCloudDiscoveryengineV1alphaGcsSource `json:"gcsSource,omitempty"`
7537
7538
7539
7540
7541
7542 ForceSendFields []string `json:"-"`
7543
7544
7545
7546
7547 NullFields []string `json:"-"`
7548 }
7549
7550 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest) MarshalJSON() ([]byte, error) {
7551 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest
7552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7553 }
7554
7555
7556
7557
7558
7559 type GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse struct {
7560
7561
7562 PurgeCount int64 `json:"purgeCount,omitempty,string"`
7563
7564
7565
7566 PurgeSample []string `json:"purgeSample,omitempty"`
7567
7568
7569
7570
7571
7572 ForceSendFields []string `json:"-"`
7573
7574
7575
7576
7577 NullFields []string `json:"-"`
7578 }
7579
7580 func (s *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
7581 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeDocumentsResponse
7582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7583 }
7584
7585
7586
7587 type GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig struct {
7588
7589
7590
7591
7592 GcsPrefix string `json:"gcsPrefix,omitempty"`
7593
7594
7595
7596
7597
7598 ForceSendFields []string `json:"-"`
7599
7600
7601
7602
7603 NullFields []string `json:"-"`
7604 }
7605
7606 func (s *GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig) MarshalJSON() ([]byte, error) {
7607 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeErrorConfig
7608 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7609 }
7610
7611
7612
7613
7614
7615 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata struct {
7616
7617 CreateTime string `json:"createTime,omitempty"`
7618
7619
7620 UpdateTime string `json:"updateTime,omitempty"`
7621
7622
7623
7624
7625
7626 ForceSendFields []string `json:"-"`
7627
7628
7629
7630
7631 NullFields []string `json:"-"`
7632 }
7633
7634 func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
7635 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesMetadata
7636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7637 }
7638
7639
7640
7641 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest struct {
7642 }
7643
7644
7645
7646
7647 type GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse struct {
7648
7649 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
7650
7651 PurgeCount int64 `json:"purgeCount,omitempty,string"`
7652
7653
7654
7655
7656
7657 ForceSendFields []string `json:"-"`
7658
7659
7660
7661
7662 NullFields []string `json:"-"`
7663 }
7664
7665 func (s *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
7666 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesResponse
7667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7668 }
7669
7670
7671
7672
7673 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata struct {
7674
7675 CreateTime string `json:"createTime,omitempty"`
7676
7677 FailureCount int64 `json:"failureCount,omitempty,string"`
7678
7679 SuccessCount int64 `json:"successCount,omitempty,string"`
7680
7681
7682 UpdateTime string `json:"updateTime,omitempty"`
7683
7684
7685
7686
7687
7688 ForceSendFields []string `json:"-"`
7689
7690
7691
7692
7693 NullFields []string `json:"-"`
7694 }
7695
7696 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata) MarshalJSON() ([]byte, error) {
7697 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsMetadata
7698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7699 }
7700
7701
7702
7703 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest struct {
7704
7705
7706
7707
7708
7709
7710
7711
7712
7713
7714
7715
7716 Filter string `json:"filter,omitempty"`
7717
7718
7719
7720
7721
7722 Force bool `json:"force,omitempty"`
7723
7724
7725
7726
7727
7728 ForceSendFields []string `json:"-"`
7729
7730
7731
7732
7733 NullFields []string `json:"-"`
7734 }
7735
7736 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) MarshalJSON() ([]byte, error) {
7737 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
7738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7739 }
7740
7741
7742
7743
7744
7745 type GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse struct {
7746
7747 PurgeCount int64 `json:"purgeCount,omitempty,string"`
7748
7749
7750
7751
7752
7753 ForceSendFields []string `json:"-"`
7754
7755
7756
7757
7758 NullFields []string `json:"-"`
7759 }
7760
7761 func (s *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse) MarshalJSON() ([]byte, error) {
7762 type NoMethod GoogleCloudDiscoveryengineV1alphaPurgeUserEventsResponse
7763 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7764 }
7765
7766
7767 type GoogleCloudDiscoveryengineV1alphaQuery struct {
7768
7769 QueryId string `json:"queryId,omitempty"`
7770
7771 Text string `json:"text,omitempty"`
7772
7773
7774
7775
7776
7777 ForceSendFields []string `json:"-"`
7778
7779
7780
7781
7782 NullFields []string `json:"-"`
7783 }
7784
7785 func (s *GoogleCloudDiscoveryengineV1alphaQuery) MarshalJSON() ([]byte, error) {
7786 type NoMethod GoogleCloudDiscoveryengineV1alphaQuery
7787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7788 }
7789
7790
7791
7792 type GoogleCloudDiscoveryengineV1alphaRankRequest struct {
7793
7794
7795
7796 IgnoreRecordDetailsInResponse bool `json:"ignoreRecordDetailsInResponse,omitempty"`
7797
7798
7799
7800
7801 Model string `json:"model,omitempty"`
7802
7803 Query string `json:"query,omitempty"`
7804
7805 Records []*GoogleCloudDiscoveryengineV1alphaRankingRecord `json:"records,omitempty"`
7806
7807
7808 TopN int64 `json:"topN,omitempty"`
7809
7810
7811
7812
7813
7814 ForceSendFields []string `json:"-"`
7815
7816
7817
7818
7819 NullFields []string `json:"-"`
7820 }
7821
7822 func (s *GoogleCloudDiscoveryengineV1alphaRankRequest) MarshalJSON() ([]byte, error) {
7823 type NoMethod GoogleCloudDiscoveryengineV1alphaRankRequest
7824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7825 }
7826
7827
7828
7829 type GoogleCloudDiscoveryengineV1alphaRankResponse struct {
7830
7831 Records []*GoogleCloudDiscoveryengineV1alphaRankingRecord `json:"records,omitempty"`
7832
7833
7834 googleapi.ServerResponse `json:"-"`
7835
7836
7837
7838
7839
7840 ForceSendFields []string `json:"-"`
7841
7842
7843
7844
7845 NullFields []string `json:"-"`
7846 }
7847
7848 func (s *GoogleCloudDiscoveryengineV1alphaRankResponse) MarshalJSON() ([]byte, error) {
7849 type NoMethod GoogleCloudDiscoveryengineV1alphaRankResponse
7850 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7851 }
7852
7853
7854
7855 type GoogleCloudDiscoveryengineV1alphaRankingRecord struct {
7856
7857
7858 Content string `json:"content,omitempty"`
7859
7860 Id string `json:"id,omitempty"`
7861
7862 Score float64 `json:"score,omitempty"`
7863
7864
7865 Title string `json:"title,omitempty"`
7866
7867
7868
7869
7870
7871 ForceSendFields []string `json:"-"`
7872
7873
7874
7875
7876 NullFields []string `json:"-"`
7877 }
7878
7879 func (s *GoogleCloudDiscoveryengineV1alphaRankingRecord) MarshalJSON() ([]byte, error) {
7880 type NoMethod GoogleCloudDiscoveryengineV1alphaRankingRecord
7881 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7882 }
7883
7884 func (s *GoogleCloudDiscoveryengineV1alphaRankingRecord) UnmarshalJSON(data []byte) error {
7885 type NoMethod GoogleCloudDiscoveryengineV1alphaRankingRecord
7886 var s1 struct {
7887 Score gensupport.JSONFloat64 `json:"score"`
7888 *NoMethod
7889 }
7890 s1.NoMethod = (*NoMethod)(s)
7891 if err := json.Unmarshal(data, &s1); err != nil {
7892 return err
7893 }
7894 s.Score = float64(s1.Score)
7895 return nil
7896 }
7897
7898
7899
7900 type GoogleCloudDiscoveryengineV1alphaRecommendRequest struct {
7901
7902
7903
7904
7905
7906
7907
7908
7909
7910
7911
7912
7913
7914
7915 Filter string `json:"filter,omitempty"`
7916
7917
7918
7919
7920 PageSize int64 `json:"pageSize,omitempty"`
7921
7922
7923
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934
7935
7936
7937 Params googleapi.RawMessage `json:"params,omitempty"`
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 UserEvent *GoogleCloudDiscoveryengineV1alphaUserEvent `json:"userEvent,omitempty"`
7948
7949
7950
7951
7952
7953
7954
7955
7956
7957
7958
7959
7960 UserLabels map[string]string `json:"userLabels,omitempty"`
7961
7962
7963
7964
7965 ValidateOnly bool `json:"validateOnly,omitempty"`
7966
7967
7968
7969
7970
7971 ForceSendFields []string `json:"-"`
7972
7973
7974
7975
7976 NullFields []string `json:"-"`
7977 }
7978
7979 func (s *GoogleCloudDiscoveryengineV1alphaRecommendRequest) MarshalJSON() ([]byte, error) {
7980 type NoMethod GoogleCloudDiscoveryengineV1alphaRecommendRequest
7981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7982 }
7983
7984
7985
7986 type GoogleCloudDiscoveryengineV1alphaRecommendResponse struct {
7987
7988
7989
7990 AttributionToken string `json:"attributionToken,omitempty"`
7991
7992
7993 MissingIds []string `json:"missingIds,omitempty"`
7994
7995
7996 Results []*GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult `json:"results,omitempty"`
7997
7998 ValidateOnly bool `json:"validateOnly,omitempty"`
7999
8000
8001 googleapi.ServerResponse `json:"-"`
8002
8003
8004
8005
8006
8007 ForceSendFields []string `json:"-"`
8008
8009
8010
8011
8012 NullFields []string `json:"-"`
8013 }
8014
8015 func (s *GoogleCloudDiscoveryengineV1alphaRecommendResponse) MarshalJSON() ([]byte, error) {
8016 type NoMethod GoogleCloudDiscoveryengineV1alphaRecommendResponse
8017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8018 }
8019
8020
8021
8022
8023 type GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult struct {
8024
8025 Document *GoogleCloudDiscoveryengineV1alphaDocument `json:"document,omitempty"`
8026
8027 Id string `json:"id,omitempty"`
8028
8029
8030
8031 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
8032
8033
8034
8035
8036
8037 ForceSendFields []string `json:"-"`
8038
8039
8040
8041
8042 NullFields []string `json:"-"`
8043 }
8044
8045 func (s *GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult) MarshalJSON() ([]byte, error) {
8046 type NoMethod GoogleCloudDiscoveryengineV1alphaRecommendResponseRecommendationResult
8047 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8048 }
8049
8050
8051
8052
8053 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata struct {
8054
8055 CreateTime string `json:"createTime,omitempty"`
8056
8057
8058
8059 InvalidUris []string `json:"invalidUris,omitempty"`
8060
8061 PendingCount int64 `json:"pendingCount,omitempty"`
8062
8063
8064 QuotaExceededCount int64 `json:"quotaExceededCount,omitempty"`
8065
8066 SuccessCount int64 `json:"successCount,omitempty"`
8067
8068
8069 UpdateTime string `json:"updateTime,omitempty"`
8070
8071
8072 ValidUrisCount int64 `json:"validUrisCount,omitempty"`
8073
8074
8075
8076
8077
8078 ForceSendFields []string `json:"-"`
8079
8080
8081
8082
8083 NullFields []string `json:"-"`
8084 }
8085
8086 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata) MarshalJSON() ([]byte, error) {
8087 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisMetadata
8088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8089 }
8090
8091
8092
8093 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest struct {
8094
8095
8096
8097 Uris []string `json:"uris,omitempty"`
8098
8099
8100
8101
8102
8103 ForceSendFields []string `json:"-"`
8104
8105
8106
8107
8108 NullFields []string `json:"-"`
8109 }
8110
8111 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest) MarshalJSON() ([]byte, error) {
8112 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
8113 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8114 }
8115
8116
8117
8118 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse struct {
8119
8120 FailedUris []string `json:"failedUris,omitempty"`
8121
8122 FailureSamples []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo `json:"failureSamples,omitempty"`
8123
8124
8125
8126
8127
8128 ForceSendFields []string `json:"-"`
8129
8130
8131
8132
8133 NullFields []string `json:"-"`
8134 }
8135
8136 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse) MarshalJSON() ([]byte, error) {
8137 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponse
8138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8139 }
8140
8141
8142
8143
8144 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo struct {
8145
8146
8147 FailureReasons []*GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason `json:"failureReasons,omitempty"`
8148
8149 Uri string `json:"uri,omitempty"`
8150
8151
8152
8153
8154
8155 ForceSendFields []string `json:"-"`
8156
8157
8158
8159
8160 NullFields []string `json:"-"`
8161 }
8162
8163 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo) MarshalJSON() ([]byte, error) {
8164 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfo
8165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8166 }
8167
8168
8169
8170
8171
8172
8173 type GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason struct {
8174
8175
8176
8177
8178
8179
8180 CorpusType string `json:"corpusType,omitempty"`
8181
8182 ErrorMessage string `json:"errorMessage,omitempty"`
8183
8184
8185
8186
8187
8188 ForceSendFields []string `json:"-"`
8189
8190
8191
8192
8193 NullFields []string `json:"-"`
8194 }
8195
8196 func (s *GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason) MarshalJSON() ([]byte, error) {
8197 type NoMethod GoogleCloudDiscoveryengineV1alphaRecrawlUrisResponseFailureInfoFailureReason
8198 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8199 }
8200
8201
8202 type GoogleCloudDiscoveryengineV1alphaReply struct {
8203
8204 References []*GoogleCloudDiscoveryengineV1alphaReplyReference `json:"references,omitempty"`
8205
8206 Reply string `json:"reply,omitempty"`
8207
8208 Summary *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary `json:"summary,omitempty"`
8209
8210
8211
8212
8213
8214 ForceSendFields []string `json:"-"`
8215
8216
8217
8218
8219 NullFields []string `json:"-"`
8220 }
8221
8222 func (s *GoogleCloudDiscoveryengineV1alphaReply) MarshalJSON() ([]byte, error) {
8223 type NoMethod GoogleCloudDiscoveryengineV1alphaReply
8224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8225 }
8226
8227
8228 type GoogleCloudDiscoveryengineV1alphaReplyReference struct {
8229
8230 AnchorText string `json:"anchorText,omitempty"`
8231
8232 End int64 `json:"end,omitempty"`
8233
8234 Start int64 `json:"start,omitempty"`
8235
8236 Uri string `json:"uri,omitempty"`
8237
8238
8239
8240
8241
8242 ForceSendFields []string `json:"-"`
8243
8244
8245
8246
8247 NullFields []string `json:"-"`
8248 }
8249
8250 func (s *GoogleCloudDiscoveryengineV1alphaReplyReference) MarshalJSON() ([]byte, error) {
8251 type NoMethod GoogleCloudDiscoveryengineV1alphaReplyReference
8252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8253 }
8254
8255
8256
8257 type GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest struct {
8258
8259
8260
8261
8262
8263
8264
8265 ConsentChangeAction string `json:"consentChangeAction,omitempty"`
8266
8267
8268
8269
8270 ServiceTermId string `json:"serviceTermId,omitempty"`
8271
8272
8273 ServiceTermVersion string `json:"serviceTermVersion,omitempty"`
8274
8275
8276
8277
8278
8279 ForceSendFields []string `json:"-"`
8280
8281
8282
8283
8284 NullFields []string `json:"-"`
8285 }
8286
8287 func (s *GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest) MarshalJSON() ([]byte, error) {
8288 type NoMethod GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest
8289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8290 }
8291
8292
8293
8294 type GoogleCloudDiscoveryengineV1alphaResumeEngineRequest struct {
8295 }
8296
8297
8298
8299 type GoogleCloudDiscoveryengineV1alphaSchema struct {
8300
8301 FieldConfigs []*GoogleCloudDiscoveryengineV1alphaFieldConfig `json:"fieldConfigs,omitempty"`
8302
8303 JsonSchema string `json:"jsonSchema,omitempty"`
8304
8305
8306
8307
8308 Name string `json:"name,omitempty"`
8309
8310 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
8311
8312
8313 googleapi.ServerResponse `json:"-"`
8314
8315
8316
8317
8318
8319 ForceSendFields []string `json:"-"`
8320
8321
8322
8323
8324 NullFields []string `json:"-"`
8325 }
8326
8327 func (s *GoogleCloudDiscoveryengineV1alphaSchema) MarshalJSON() ([]byte, error) {
8328 type NoMethod GoogleCloudDiscoveryengineV1alphaSchema
8329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8330 }
8331
8332
8333 type GoogleCloudDiscoveryengineV1alphaSearchInfo struct {
8334
8335
8336
8337
8338
8339
8340 Offset int64 `json:"offset,omitempty"`
8341
8342
8343
8344
8345
8346
8347 OrderBy string `json:"orderBy,omitempty"`
8348
8349
8350
8351
8352
8353
8354 SearchQuery string `json:"searchQuery,omitempty"`
8355
8356
8357
8358
8359
8360 ForceSendFields []string `json:"-"`
8361
8362
8363
8364
8365 NullFields []string `json:"-"`
8366 }
8367
8368 func (s *GoogleCloudDiscoveryengineV1alphaSearchInfo) MarshalJSON() ([]byte, error) {
8369 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchInfo
8370 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8371 }
8372
8373
8374
8375 type GoogleCloudDiscoveryengineV1alphaSearchRequest struct {
8376
8377
8378
8379 BoostSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec `json:"boostSpec,omitempty"`
8380
8381
8382
8383
8384 Branch string `json:"branch,omitempty"`
8385
8386
8387
8388
8389
8390
8391
8392
8393 CanonicalFilter string `json:"canonicalFilter,omitempty"`
8394
8395
8396 ContentSearchSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
8397
8398 CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"`
8399
8400 DataStoreSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec `json:"dataStoreSpecs,omitempty"`
8401
8402
8403
8404
8405
8406
8407
8408 EmbeddingSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec `json:"embeddingSpec,omitempty"`
8409
8410
8411
8412 FacetSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec `json:"facetSpecs,omitempty"`
8413
8414
8415
8416
8417
8418
8419
8420
8421
8422
8423
8424 Filter string `json:"filter,omitempty"`
8425
8426 ImageQuery *GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery `json:"imageQuery,omitempty"`
8427
8428
8429
8430
8431 Offset int64 `json:"offset,omitempty"`
8432
8433
8434
8435
8436
8437
8438 OrderBy string `json:"orderBy,omitempty"`
8439
8440
8441
8442
8443
8444
8445 PageSize int64 `json:"pageSize,omitempty"`
8446
8447
8448
8449
8450 PageToken string `json:"pageToken,omitempty"`
8451
8452
8453
8454
8455
8456
8457
8458
8459
8460 Params googleapi.RawMessage `json:"params,omitempty"`
8461
8462 Query string `json:"query,omitempty"`
8463
8464
8465 QueryExpansionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec `json:"queryExpansionSpec,omitempty"`
8466
8467
8468
8469
8470
8471
8472
8473
8474
8475
8476
8477
8478 RankingExpression string `json:"rankingExpression,omitempty"`
8479
8480
8481 SafeSearch bool `json:"safeSearch,omitempty"`
8482
8483
8484 SpellCorrectionSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec `json:"spellCorrectionSpec,omitempty"`
8485
8486
8487 UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"`
8488
8489
8490
8491
8492
8493
8494
8495
8496
8497
8498
8499
8500 UserLabels map[string]string `json:"userLabels,omitempty"`
8501
8502
8503
8504
8505
8506
8507
8508
8509
8510 UserPseudoId string `json:"userPseudoId,omitempty"`
8511
8512
8513
8514
8515
8516 ForceSendFields []string `json:"-"`
8517
8518
8519
8520
8521 NullFields []string `json:"-"`
8522 }
8523
8524 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequest) MarshalJSON() ([]byte, error) {
8525 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequest
8526 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8527 }
8528
8529
8530
8531 type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec struct {
8532
8533
8534
8535
8536 ConditionBoostSpecs []*GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
8537
8538
8539
8540
8541
8542 ForceSendFields []string `json:"-"`
8543
8544
8545
8546
8547 NullFields []string `json:"-"`
8548 }
8549
8550 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec) MarshalJSON() ([]byte, error) {
8551 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpec
8552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8553 }
8554
8555
8556
8557 type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec struct {
8558
8559
8560
8561
8562
8563
8564
8565
8566
8567
8568
8569
8570
8571
8572 Boost float64 `json:"boost,omitempty"`
8573
8574
8575 BoostControlSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec `json:"boostControlSpec,omitempty"`
8576
8577
8578
8579
8580
8581 Condition string `json:"condition,omitempty"`
8582
8583
8584
8585
8586
8587 ForceSendFields []string `json:"-"`
8588
8589
8590
8591
8592 NullFields []string `json:"-"`
8593 }
8594
8595 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
8596 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec
8597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8598 }
8599
8600 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
8601 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpec
8602 var s1 struct {
8603 Boost gensupport.JSONFloat64 `json:"boost"`
8604 *NoMethod
8605 }
8606 s1.NoMethod = (*NoMethod)(s)
8607 if err := json.Unmarshal(data, &s1); err != nil {
8608 return err
8609 }
8610 s.Boost = float64(s1.Boost)
8611 return nil
8612 }
8613
8614
8615
8616
8617
8618 type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec struct {
8619
8620
8621
8622
8623
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633
8634
8635
8636 AttributeType string `json:"attributeType,omitempty"`
8637
8638
8639
8640 ControlPoints []*GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint `json:"controlPoints,omitempty"`
8641
8642
8643 FieldName string `json:"fieldName,omitempty"`
8644
8645
8646
8647
8648
8649
8650
8651 InterpolationType string `json:"interpolationType,omitempty"`
8652
8653
8654
8655
8656
8657 ForceSendFields []string `json:"-"`
8658
8659
8660
8661
8662 NullFields []string `json:"-"`
8663 }
8664
8665 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec) MarshalJSON() ([]byte, error) {
8666 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpec
8667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8668 }
8669
8670
8671
8672
8673
8674 type GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint struct {
8675
8676
8677
8678
8679 AttributeValue string `json:"attributeValue,omitempty"`
8680
8681
8682 BoostAmount float64 `json:"boostAmount,omitempty"`
8683
8684
8685
8686
8687
8688 ForceSendFields []string `json:"-"`
8689
8690
8691
8692
8693 NullFields []string `json:"-"`
8694 }
8695
8696 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) MarshalJSON() ([]byte, error) {
8697 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
8698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8699 }
8700
8701 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint) UnmarshalJSON(data []byte) error {
8702 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestBoostSpecConditionBoostSpecBoostControlSpecControlPoint
8703 var s1 struct {
8704 BoostAmount gensupport.JSONFloat64 `json:"boostAmount"`
8705 *NoMethod
8706 }
8707 s1.NoMethod = (*NoMethod)(s)
8708 if err := json.Unmarshal(data, &s1); err != nil {
8709 return err
8710 }
8711 s.BoostAmount = float64(s1.BoostAmount)
8712 return nil
8713 }
8714
8715
8716
8717 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec struct {
8718
8719
8720
8721 ChunkSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec `json:"chunkSpec,omitempty"`
8722
8723
8724 ExtractiveContentSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec `json:"extractiveContentSpec,omitempty"`
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736 SearchResultMode string `json:"searchResultMode,omitempty"`
8737
8738
8739 SnippetSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec `json:"snippetSpec,omitempty"`
8740
8741
8742 SummarySpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec `json:"summarySpec,omitempty"`
8743
8744
8745
8746
8747
8748 ForceSendFields []string `json:"-"`
8749
8750
8751
8752
8753 NullFields []string `json:"-"`
8754 }
8755
8756 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec) MarshalJSON() ([]byte, error) {
8757 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec
8758 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8759 }
8760
8761
8762
8763
8764
8765 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec struct {
8766
8767
8768
8769 NumNextChunks int64 `json:"numNextChunks,omitempty"`
8770
8771
8772
8773 NumPreviousChunks int64 `json:"numPreviousChunks,omitempty"`
8774
8775
8776
8777
8778
8779 ForceSendFields []string `json:"-"`
8780
8781
8782
8783
8784 NullFields []string `json:"-"`
8785 }
8786
8787 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec) MarshalJSON() ([]byte, error) {
8788 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecChunkSpec
8789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8790 }
8791
8792
8793
8794
8795 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec struct {
8796
8797
8798
8799
8800
8801
8802
8803 MaxExtractiveAnswerCount int64 `json:"maxExtractiveAnswerCount,omitempty"`
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 MaxExtractiveSegmentCount int64 `json:"maxExtractiveSegmentCount,omitempty"`
8814
8815
8816 NumNextSegments int64 `json:"numNextSegments,omitempty"`
8817
8818
8819
8820 NumPreviousSegments int64 `json:"numPreviousSegments,omitempty"`
8821
8822
8823
8824
8825 ReturnExtractiveSegmentScore bool `json:"returnExtractiveSegmentScore,omitempty"`
8826
8827
8828
8829
8830
8831 ForceSendFields []string `json:"-"`
8832
8833
8834
8835
8836 NullFields []string `json:"-"`
8837 }
8838
8839 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec) MarshalJSON() ([]byte, error) {
8840 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecExtractiveContentSpec
8841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8842 }
8843
8844
8845
8846 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec struct {
8847
8848
8849
8850 MaxSnippetCount int64 `json:"maxSnippetCount,omitempty"`
8851
8852
8853 ReferenceOnly bool `json:"referenceOnly,omitempty"`
8854
8855
8856
8857
8858 ReturnSnippet bool `json:"returnSnippet,omitempty"`
8859
8860
8861
8862
8863
8864 ForceSendFields []string `json:"-"`
8865
8866
8867
8868
8869 NullFields []string `json:"-"`
8870 }
8871
8872 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec) MarshalJSON() ([]byte, error) {
8873 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSnippetSpec
8874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8875 }
8876
8877
8878
8879 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec struct {
8880
8881
8882
8883
8884
8885
8886
8887
8888 IgnoreAdversarialQuery bool `json:"ignoreAdversarialQuery,omitempty"`
8889
8890
8891
8892
8893
8894
8895
8896
8897
8898 IgnoreNonSummarySeekingQuery bool `json:"ignoreNonSummarySeekingQuery,omitempty"`
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909 IncludeCitations bool `json:"includeCitations,omitempty"`
8910
8911
8912
8913 LanguageCode string `json:"languageCode,omitempty"`
8914
8915
8916 ModelPromptSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec `json:"modelPromptSpec,omitempty"`
8917
8918
8919 ModelSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec `json:"modelSpec,omitempty"`
8920
8921
8922
8923
8924
8925
8926 SummaryResultCount int64 `json:"summaryResultCount,omitempty"`
8927
8928
8929
8930
8931
8932 UseSemanticChunks bool `json:"useSemanticChunks,omitempty"`
8933
8934
8935
8936
8937
8938 ForceSendFields []string `json:"-"`
8939
8940
8941
8942
8943 NullFields []string `json:"-"`
8944 }
8945
8946 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec) MarshalJSON() ([]byte, error) {
8947 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpec
8948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8949 }
8950
8951
8952
8953 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec struct {
8954
8955
8956 Preamble string `json:"preamble,omitempty"`
8957
8958
8959
8960
8961
8962 ForceSendFields []string `json:"-"`
8963
8964
8965
8966
8967 NullFields []string `json:"-"`
8968 }
8969
8970 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec) MarshalJSON() ([]byte, error) {
8971 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelPromptSpec
8972 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8973 }
8974
8975
8976
8977 type GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec struct {
8978
8979
8980
8981
8982
8983
8984
8985
8986 Version string `json:"version,omitempty"`
8987
8988
8989
8990
8991
8992 ForceSendFields []string `json:"-"`
8993
8994
8995
8996
8997 NullFields []string `json:"-"`
8998 }
8999
9000 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec) MarshalJSON() ([]byte, error) {
9001 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpecSummarySpecModelSpec
9002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9003 }
9004
9005
9006
9007 type GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec struct {
9008
9009
9010
9011 DataStore string `json:"dataStore,omitempty"`
9012
9013
9014
9015
9016
9017 ForceSendFields []string `json:"-"`
9018
9019
9020
9021
9022 NullFields []string `json:"-"`
9023 }
9024
9025 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec) MarshalJSON() ([]byte, error) {
9026 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestDataStoreSpec
9027 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9028 }
9029
9030
9031
9032
9033 type GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec struct {
9034
9035 EmbeddingVectors []*GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector `json:"embeddingVectors,omitempty"`
9036
9037
9038
9039
9040
9041 ForceSendFields []string `json:"-"`
9042
9043
9044
9045
9046 NullFields []string `json:"-"`
9047 }
9048
9049 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec) MarshalJSON() ([]byte, error) {
9050 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpec
9051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9052 }
9053
9054
9055
9056 type GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector struct {
9057
9058 FieldPath string `json:"fieldPath,omitempty"`
9059
9060 Vector []float64 `json:"vector,omitempty"`
9061
9062
9063
9064
9065
9066 ForceSendFields []string `json:"-"`
9067
9068
9069
9070
9071 NullFields []string `json:"-"`
9072 }
9073
9074 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector) MarshalJSON() ([]byte, error) {
9075 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
9076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9077 }
9078
9079 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector) UnmarshalJSON(data []byte) error {
9080 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestEmbeddingSpecEmbeddingVector
9081 var s1 struct {
9082 Vector []gensupport.JSONFloat64 `json:"vector"`
9083 *NoMethod
9084 }
9085 s1.NoMethod = (*NoMethod)(s)
9086 if err := json.Unmarshal(data, &s1); err != nil {
9087 return err
9088 }
9089 s.Vector = make([]float64, len(s1.Vector))
9090 for i := range s1.Vector {
9091 s.Vector[i] = float64(s1.Vector[i])
9092 }
9093 return nil
9094 }
9095
9096
9097
9098 type GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec struct {
9099
9100
9101
9102
9103
9104
9105
9106
9107
9108
9109
9110
9111
9112
9113
9114
9115
9116
9117 EnableDynamicPosition bool `json:"enableDynamicPosition,omitempty"`
9118
9119
9120
9121
9122
9123
9124
9125
9126
9127
9128
9129
9130
9131
9132
9133
9134
9135 ExcludedFilterKeys []string `json:"excludedFilterKeys,omitempty"`
9136
9137 FacetKey *GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey `json:"facetKey,omitempty"`
9138
9139
9140
9141
9142 Limit int64 `json:"limit,omitempty"`
9143
9144
9145
9146
9147
9148 ForceSendFields []string `json:"-"`
9149
9150
9151
9152
9153 NullFields []string `json:"-"`
9154 }
9155
9156 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec) MarshalJSON() ([]byte, error) {
9157 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpec
9158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9159 }
9160
9161
9162
9163 type GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey struct {
9164
9165
9166 CaseInsensitive bool `json:"caseInsensitive,omitempty"`
9167
9168
9169
9170
9171
9172 Contains []string `json:"contains,omitempty"`
9173
9174
9175
9176 Intervals []*GoogleCloudDiscoveryengineV1alphaInterval `json:"intervals,omitempty"`
9177
9178
9179
9180 Key string `json:"key,omitempty"`
9181
9182
9183
9184
9185
9186
9187
9188 OrderBy string `json:"orderBy,omitempty"`
9189
9190
9191
9192
9193
9194 Prefixes []string `json:"prefixes,omitempty"`
9195
9196
9197
9198
9199
9200 RestrictedValues []string `json:"restrictedValues,omitempty"`
9201
9202
9203
9204
9205
9206 ForceSendFields []string `json:"-"`
9207
9208
9209
9210
9211 NullFields []string `json:"-"`
9212 }
9213
9214 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey) MarshalJSON() ([]byte, error) {
9215 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestFacetSpecFacetKey
9216 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9217 }
9218
9219
9220
9221 type GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery struct {
9222
9223
9224 ImageBytes string `json:"imageBytes,omitempty"`
9225
9226
9227
9228
9229
9230 ForceSendFields []string `json:"-"`
9231
9232
9233
9234
9235 NullFields []string `json:"-"`
9236 }
9237
9238 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery) MarshalJSON() ([]byte, error) {
9239 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestImageQuery
9240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9241 }
9242
9243
9244
9245
9246 type GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec struct {
9247
9248
9249
9250
9251
9252
9253
9254
9255
9256 Condition string `json:"condition,omitempty"`
9257
9258
9259
9260 PinUnexpandedResults bool `json:"pinUnexpandedResults,omitempty"`
9261
9262
9263
9264
9265
9266 ForceSendFields []string `json:"-"`
9267
9268
9269
9270
9271 NullFields []string `json:"-"`
9272 }
9273
9274 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec) MarshalJSON() ([]byte, error) {
9275 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestQueryExpansionSpec
9276 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9277 }
9278
9279
9280
9281 type GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec struct {
9282
9283
9284
9285
9286
9287
9288
9289
9290
9291
9292
9293 Mode string `json:"mode,omitempty"`
9294
9295
9296
9297
9298
9299 ForceSendFields []string `json:"-"`
9300
9301
9302
9303
9304 NullFields []string `json:"-"`
9305 }
9306
9307 func (s *GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec) MarshalJSON() ([]byte, error) {
9308 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchRequestSpellCorrectionSpec
9309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9310 }
9311
9312
9313
9314 type GoogleCloudDiscoveryengineV1alphaSearchResponse struct {
9315
9316 AppliedControls []string `json:"appliedControls,omitempty"`
9317
9318
9319
9320 AttributionToken string `json:"attributionToken,omitempty"`
9321
9322
9323
9324 CorrectedQuery string `json:"correctedQuery,omitempty"`
9325
9326 Facets []*GoogleCloudDiscoveryengineV1alphaSearchResponseFacet `json:"facets,omitempty"`
9327 GeoSearchDebugInfo []*GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo `json:"geoSearchDebugInfo,omitempty"`
9328
9329 GuidedSearchResult *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult `json:"guidedSearchResult,omitempty"`
9330
9331
9332
9333 NextPageToken string `json:"nextPageToken,omitempty"`
9334
9335 QueryExpansionInfo *GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo `json:"queryExpansionInfo,omitempty"`
9336
9337
9338
9339 RedirectUri string `json:"redirectUri,omitempty"`
9340
9341 Results []*GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult `json:"results,omitempty"`
9342
9343
9344 Summary *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary `json:"summary,omitempty"`
9345
9346
9347
9348 TotalSize int64 `json:"totalSize,omitempty"`
9349
9350
9351 googleapi.ServerResponse `json:"-"`
9352
9353
9354
9355
9356
9357 ForceSendFields []string `json:"-"`
9358
9359
9360
9361
9362 NullFields []string `json:"-"`
9363 }
9364
9365 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponse) MarshalJSON() ([]byte, error) {
9366 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponse
9367 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9368 }
9369
9370
9371 type GoogleCloudDiscoveryengineV1alphaSearchResponseFacet struct {
9372
9373 DynamicFacet bool `json:"dynamicFacet,omitempty"`
9374
9375
9376 Key string `json:"key,omitempty"`
9377
9378 Values []*GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue `json:"values,omitempty"`
9379
9380
9381
9382
9383
9384 ForceSendFields []string `json:"-"`
9385
9386
9387
9388
9389 NullFields []string `json:"-"`
9390 }
9391
9392 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseFacet) MarshalJSON() ([]byte, error) {
9393 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseFacet
9394 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9395 }
9396
9397
9398
9399 type GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue struct {
9400
9401 Count int64 `json:"count,omitempty,string"`
9402
9403
9404 Interval *GoogleCloudDiscoveryengineV1alphaInterval `json:"interval,omitempty"`
9405
9406 Value string `json:"value,omitempty"`
9407
9408
9409
9410
9411
9412 ForceSendFields []string `json:"-"`
9413
9414
9415
9416
9417 NullFields []string `json:"-"`
9418 }
9419
9420 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue) MarshalJSON() ([]byte, error) {
9421 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseFacetFacetValue
9422 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9423 }
9424
9425
9426
9427
9428 type GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo struct {
9429
9430 ErrorMessage string `json:"errorMessage,omitempty"`
9431
9432
9433 OriginalAddressQuery string `json:"originalAddressQuery,omitempty"`
9434
9435
9436
9437
9438
9439 ForceSendFields []string `json:"-"`
9440
9441
9442
9443
9444 NullFields []string `json:"-"`
9445 }
9446
9447 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo) MarshalJSON() ([]byte, error) {
9448 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGeoSearchDebugInfo
9449 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9450 }
9451
9452
9453
9454
9455 type GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult struct {
9456
9457 FollowUpQuestions []string `json:"followUpQuestions,omitempty"`
9458
9459 RefinementAttributes []*GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute `json:"refinementAttributes,omitempty"`
9460
9461
9462
9463
9464
9465 ForceSendFields []string `json:"-"`
9466
9467
9468
9469
9470 NullFields []string `json:"-"`
9471 }
9472
9473 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult) MarshalJSON() ([]byte, error) {
9474 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult
9475 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9476 }
9477
9478
9479
9480 type GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute struct {
9481
9482 AttributeKey string `json:"attributeKey,omitempty"`
9483
9484 AttributeValue string `json:"attributeValue,omitempty"`
9485
9486
9487
9488
9489
9490 ForceSendFields []string `json:"-"`
9491
9492
9493
9494
9495 NullFields []string `json:"-"`
9496 }
9497
9498 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute) MarshalJSON() ([]byte, error) {
9499 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute
9500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9501 }
9502
9503
9504
9505
9506 type GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo struct {
9507
9508 ExpandedQuery bool `json:"expandedQuery,omitempty"`
9509
9510
9511
9512 PinnedResultCount int64 `json:"pinnedResultCount,omitempty,string"`
9513
9514
9515
9516
9517
9518 ForceSendFields []string `json:"-"`
9519
9520
9521
9522
9523 NullFields []string `json:"-"`
9524 }
9525
9526 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo) MarshalJSON() ([]byte, error) {
9527 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseQueryExpansionInfo
9528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9529 }
9530
9531
9532
9533 type GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult struct {
9534
9535
9536 Chunk *GoogleCloudDiscoveryengineV1alphaChunk `json:"chunk,omitempty"`
9537
9538
9539 Document *GoogleCloudDiscoveryengineV1alphaDocument `json:"document,omitempty"`
9540
9541 Id string `json:"id,omitempty"`
9542
9543 ModelScores map[string]GoogleCloudDiscoveryengineV1alphaDoubleList `json:"modelScores,omitempty"`
9544
9545
9546
9547
9548
9549 ForceSendFields []string `json:"-"`
9550
9551
9552
9553
9554 NullFields []string `json:"-"`
9555 }
9556
9557 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult) MarshalJSON() ([]byte, error) {
9558 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSearchResult
9559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9560 }
9561
9562
9563
9564 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummary struct {
9565
9566
9567 SafetyAttributes *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes `json:"safetyAttributes,omitempty"`
9568
9569
9570
9571
9572
9573
9574
9575
9576
9577
9578
9579
9580
9581
9582
9583
9584
9585
9586
9587
9588 SummarySkippedReasons []string `json:"summarySkippedReasons,omitempty"`
9589
9590 SummaryText string `json:"summaryText,omitempty"`
9591
9592 SummaryWithMetadata *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata `json:"summaryWithMetadata,omitempty"`
9593
9594
9595
9596
9597
9598 ForceSendFields []string `json:"-"`
9599
9600
9601
9602
9603 NullFields []string `json:"-"`
9604 }
9605
9606 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummary) MarshalJSON() ([]byte, error) {
9607 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummary
9608 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9609 }
9610
9611
9612
9613 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation struct {
9614
9615 EndIndex int64 `json:"endIndex,omitempty,string"`
9616
9617 Sources []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource `json:"sources,omitempty"`
9618
9619
9620 StartIndex int64 `json:"startIndex,omitempty,string"`
9621
9622
9623
9624
9625
9626 ForceSendFields []string `json:"-"`
9627
9628
9629
9630
9631 NullFields []string `json:"-"`
9632 }
9633
9634 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation) MarshalJSON() ([]byte, error) {
9635 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation
9636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9637 }
9638
9639
9640
9641 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata struct {
9642
9643 Citations []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitation `json:"citations,omitempty"`
9644
9645
9646
9647
9648
9649 ForceSendFields []string `json:"-"`
9650
9651
9652
9653
9654 NullFields []string `json:"-"`
9655 }
9656
9657 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata) MarshalJSON() ([]byte, error) {
9658 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata
9659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9660 }
9661
9662
9663
9664 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource struct {
9665
9666
9667
9668 ReferenceIndex int64 `json:"referenceIndex,omitempty,string"`
9669
9670
9671
9672
9673
9674 ForceSendFields []string `json:"-"`
9675
9676
9677
9678
9679 NullFields []string `json:"-"`
9680 }
9681
9682 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource) MarshalJSON() ([]byte, error) {
9683 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationSource
9684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9685 }
9686
9687
9688
9689 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference struct {
9690
9691 ChunkContents []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent `json:"chunkContents,omitempty"`
9692
9693
9694
9695 Document string `json:"document,omitempty"`
9696
9697 Title string `json:"title,omitempty"`
9698
9699 Uri string `json:"uri,omitempty"`
9700
9701
9702
9703
9704
9705 ForceSendFields []string `json:"-"`
9706
9707
9708
9709
9710 NullFields []string `json:"-"`
9711 }
9712
9713 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference) MarshalJSON() ([]byte, error) {
9714 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference
9715 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9716 }
9717
9718
9719
9720 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent struct {
9721
9722 Content string `json:"content,omitempty"`
9723
9724 PageIdentifier string `json:"pageIdentifier,omitempty"`
9725
9726
9727
9728
9729
9730 ForceSendFields []string `json:"-"`
9731
9732
9733
9734
9735 NullFields []string `json:"-"`
9736 }
9737
9738 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent) MarshalJSON() ([]byte, error) {
9739 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReferenceChunkContent
9740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9741 }
9742
9743
9744
9745 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes struct {
9746
9747
9748 Categories []string `json:"categories,omitempty"`
9749
9750
9751 Scores []float64 `json:"scores,omitempty"`
9752
9753
9754
9755
9756
9757 ForceSendFields []string `json:"-"`
9758
9759
9760
9761
9762 NullFields []string `json:"-"`
9763 }
9764
9765 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes) MarshalJSON() ([]byte, error) {
9766 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
9767 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9768 }
9769
9770 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes) UnmarshalJSON(data []byte) error {
9771 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySafetyAttributes
9772 var s1 struct {
9773 Scores []gensupport.JSONFloat64 `json:"scores"`
9774 *NoMethod
9775 }
9776 s1.NoMethod = (*NoMethod)(s)
9777 if err := json.Unmarshal(data, &s1); err != nil {
9778 return err
9779 }
9780 s.Scores = make([]float64, len(s1.Scores))
9781 for i := range s1.Scores {
9782 s.Scores[i] = float64(s1.Scores[i])
9783 }
9784 return nil
9785 }
9786
9787
9788
9789 type GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata struct {
9790
9791 CitationMetadata *GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryCitationMetadata `json:"citationMetadata,omitempty"`
9792
9793 References []*GoogleCloudDiscoveryengineV1alphaSearchResponseSummaryReference `json:"references,omitempty"`
9794
9795 Summary string `json:"summary,omitempty"`
9796
9797
9798
9799
9800
9801 ForceSendFields []string `json:"-"`
9802
9803
9804
9805
9806 NullFields []string `json:"-"`
9807 }
9808
9809 func (s *GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata) MarshalJSON() ([]byte, error) {
9810 type NoMethod GoogleCloudDiscoveryengineV1alphaSearchResponseSummarySummaryWithMetadata
9811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9812 }
9813
9814
9815
9816
9817
9818 type GoogleCloudDiscoveryengineV1alphaServingConfig struct {
9819
9820
9821
9822 BoostControlIds []string `json:"boostControlIds,omitempty"`
9823
9824 CreateTime string `json:"createTime,omitempty"`
9825
9826 CustomFineTuningSpec *GoogleCloudDiscoveryengineV1alphaCustomFineTuningSpec `json:"customFineTuningSpec,omitempty"`
9827
9828
9829
9830 DisplayName string `json:"displayName,omitempty"`
9831
9832
9833
9834
9835
9836 DissociateControlIds []string `json:"dissociateControlIds,omitempty"`
9837
9838
9839
9840
9841
9842
9843 DiversityLevel string `json:"diversityLevel,omitempty"`
9844
9845
9846
9847
9848
9849
9850 EmbeddingConfig *GoogleCloudDiscoveryengineV1alphaEmbeddingConfig `json:"embeddingConfig,omitempty"`
9851
9852
9853
9854 FilterControlIds []string `json:"filterControlIds,omitempty"`
9855
9856 GenericConfig *GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig `json:"genericConfig,omitempty"`
9857
9858 GuidedSearchSpec *GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec `json:"guidedSearchSpec,omitempty"`
9859
9860
9861
9862 IgnoreControlIds []string `json:"ignoreControlIds,omitempty"`
9863
9864 MediaConfig *GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig `json:"mediaConfig,omitempty"`
9865
9866
9867
9868
9869 ModelId string `json:"modelId,omitempty"`
9870
9871
9872
9873 Name string `json:"name,omitempty"`
9874
9875
9876
9877
9878 OnewaySynonymsControlIds []string `json:"onewaySynonymsControlIds,omitempty"`
9879
9880
9881
9882
9883
9884
9885
9886
9887
9888
9889
9890
9891
9892
9893
9894 RankingExpression string `json:"rankingExpression,omitempty"`
9895
9896
9897
9898
9899 RedirectControlIds []string `json:"redirectControlIds,omitempty"`
9900
9901
9902
9903
9904 ReplacementControlIds []string `json:"replacementControlIds,omitempty"`
9905
9906
9907
9908
9909
9910
9911
9912
9913
9914
9915
9916
9917 SolutionType string `json:"solutionType,omitempty"`
9918
9919
9920
9921
9922 SynonymsControlIds []string `json:"synonymsControlIds,omitempty"`
9923
9924 UpdateTime string `json:"updateTime,omitempty"`
9925
9926
9927 googleapi.ServerResponse `json:"-"`
9928
9929
9930
9931
9932
9933 ForceSendFields []string `json:"-"`
9934
9935
9936
9937
9938 NullFields []string `json:"-"`
9939 }
9940
9941 func (s *GoogleCloudDiscoveryengineV1alphaServingConfig) MarshalJSON() ([]byte, error) {
9942 type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfig
9943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9944 }
9945
9946
9947
9948
9949 type GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig struct {
9950
9951
9952 ContentSearchSpec *GoogleCloudDiscoveryengineV1alphaSearchRequestContentSearchSpec `json:"contentSearchSpec,omitempty"`
9953
9954
9955
9956
9957
9958 ForceSendFields []string `json:"-"`
9959
9960
9961
9962
9963 NullFields []string `json:"-"`
9964 }
9965
9966 func (s *GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig) MarshalJSON() ([]byte, error) {
9967 type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfigGenericConfig
9968 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9969 }
9970
9971
9972
9973
9974
9975
9976
9977
9978
9979
9980
9981
9982 type GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig struct {
9983
9984
9985
9986 ContentFreshnessCutoffDays int64 `json:"contentFreshnessCutoffDays,omitempty"`
9987
9988
9989 ContentWatchedPercentageThreshold float64 `json:"contentWatchedPercentageThreshold,omitempty"`
9990
9991
9992 ContentWatchedSecondsThreshold float64 `json:"contentWatchedSecondsThreshold,omitempty"`
9993
9994
9995
9996
9997
9998
9999 DemotionEventType string `json:"demotionEventType,omitempty"`
10000
10001
10002
10003
10004
10005 ForceSendFields []string `json:"-"`
10006
10007
10008
10009
10010 NullFields []string `json:"-"`
10011 }
10012
10013 func (s *GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig) MarshalJSON() ([]byte, error) {
10014 type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig
10015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10016 }
10017
10018 func (s *GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig) UnmarshalJSON(data []byte) error {
10019 type NoMethod GoogleCloudDiscoveryengineV1alphaServingConfigMediaConfig
10020 var s1 struct {
10021 ContentWatchedPercentageThreshold gensupport.JSONFloat64 `json:"contentWatchedPercentageThreshold"`
10022 ContentWatchedSecondsThreshold gensupport.JSONFloat64 `json:"contentWatchedSecondsThreshold"`
10023 *NoMethod
10024 }
10025 s1.NoMethod = (*NoMethod)(s)
10026 if err := json.Unmarshal(data, &s1); err != nil {
10027 return err
10028 }
10029 s.ContentWatchedPercentageThreshold = float64(s1.ContentWatchedPercentageThreshold)
10030 s.ContentWatchedSecondsThreshold = float64(s1.ContentWatchedSecondsThreshold)
10031 return nil
10032 }
10033
10034
10035 type GoogleCloudDiscoveryengineV1alphaSession struct {
10036
10037 EndTime string `json:"endTime,omitempty"`
10038
10039
10040
10041 Name string `json:"name,omitempty"`
10042
10043 StartTime string `json:"startTime,omitempty"`
10044
10045
10046
10047
10048
10049 State string `json:"state,omitempty"`
10050
10051 Turns []*GoogleCloudDiscoveryengineV1alphaSessionTurn `json:"turns,omitempty"`
10052
10053 UserPseudoId string `json:"userPseudoId,omitempty"`
10054
10055
10056 googleapi.ServerResponse `json:"-"`
10057
10058
10059
10060
10061
10062 ForceSendFields []string `json:"-"`
10063
10064
10065
10066
10067 NullFields []string `json:"-"`
10068 }
10069
10070 func (s *GoogleCloudDiscoveryengineV1alphaSession) MarshalJSON() ([]byte, error) {
10071 type NoMethod GoogleCloudDiscoveryengineV1alphaSession
10072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10073 }
10074
10075
10076
10077 type GoogleCloudDiscoveryengineV1alphaSessionTurn struct {
10078
10079 Answer string `json:"answer,omitempty"`
10080
10081 Query *GoogleCloudDiscoveryengineV1alphaQuery `json:"query,omitempty"`
10082
10083
10084
10085
10086
10087 ForceSendFields []string `json:"-"`
10088
10089
10090
10091
10092 NullFields []string `json:"-"`
10093 }
10094
10095 func (s *GoogleCloudDiscoveryengineV1alphaSessionTurn) MarshalJSON() ([]byte, error) {
10096 type NoMethod GoogleCloudDiscoveryengineV1alphaSessionTurn
10097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10098 }
10099
10100
10101
10102
10103 type GoogleCloudDiscoveryengineV1alphaSiteSearchEngine struct {
10104
10105
10106 Name string `json:"name,omitempty"`
10107
10108
10109 googleapi.ServerResponse `json:"-"`
10110
10111
10112
10113
10114
10115 ForceSendFields []string `json:"-"`
10116
10117
10118
10119
10120 NullFields []string `json:"-"`
10121 }
10122
10123 func (s *GoogleCloudDiscoveryengineV1alphaSiteSearchEngine) MarshalJSON() ([]byte, error) {
10124 type NoMethod GoogleCloudDiscoveryengineV1alphaSiteSearchEngine
10125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10126 }
10127
10128
10129
10130 type GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo struct {
10131
10132
10133
10134
10135
10136
10137
10138
10139
10140 SiteVerificationState string `json:"siteVerificationState,omitempty"`
10141
10142 VerifyTime string `json:"verifyTime,omitempty"`
10143
10144
10145
10146
10147
10148 ForceSendFields []string `json:"-"`
10149
10150
10151
10152
10153 NullFields []string `json:"-"`
10154 }
10155
10156 func (s *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
10157 type NoMethod GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo
10158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10159 }
10160
10161
10162
10163 type GoogleCloudDiscoveryengineV1alphaSpannerSource struct {
10164
10165 DatabaseId string `json:"databaseId,omitempty"`
10166
10167
10168
10169 EnableDataBoost bool `json:"enableDataBoost,omitempty"`
10170
10171 InstanceId string `json:"instanceId,omitempty"`
10172
10173
10174
10175 ProjectId string `json:"projectId,omitempty"`
10176
10177
10178 TableId string `json:"tableId,omitempty"`
10179
10180
10181
10182
10183
10184 ForceSendFields []string `json:"-"`
10185
10186
10187
10188
10189 NullFields []string `json:"-"`
10190 }
10191
10192 func (s *GoogleCloudDiscoveryengineV1alphaSpannerSource) MarshalJSON() ([]byte, error) {
10193 type NoMethod GoogleCloudDiscoveryengineV1alphaSpannerSource
10194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10195 }
10196
10197
10198
10199
10200 type GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry struct {
10201
10202
10203 BlockPhrase string `json:"blockPhrase,omitempty"`
10204
10205
10206
10207
10208
10209
10210
10211
10212
10213 MatchOperator string `json:"matchOperator,omitempty"`
10214
10215
10216
10217
10218
10219 ForceSendFields []string `json:"-"`
10220
10221
10222
10223
10224 NullFields []string `json:"-"`
10225 }
10226
10227 func (s *GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry) MarshalJSON() ([]byte, error) {
10228 type NoMethod GoogleCloudDiscoveryengineV1alphaSuggestionDenyListEntry
10229 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10230 }
10231
10232
10233
10234 type GoogleCloudDiscoveryengineV1alphaTargetSite struct {
10235
10236
10237
10238
10239
10240
10241 ExactMatch bool `json:"exactMatch,omitempty"`
10242
10243 FailureReason *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason `json:"failureReason,omitempty"`
10244
10245
10246 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
10247
10248
10249
10250
10251
10252
10253
10254
10255
10256
10257
10258
10259 IndexingStatus string `json:"indexingStatus,omitempty"`
10260
10261
10262
10263
10264 Name string `json:"name,omitempty"`
10265
10266
10267 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
10268
10269 RootDomainUri string `json:"rootDomainUri,omitempty"`
10270
10271
10272 SiteVerificationInfo *GoogleCloudDiscoveryengineV1alphaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
10273
10274
10275
10276
10277
10278
10279
10280
10281 Type string `json:"type,omitempty"`
10282
10283 UpdateTime string `json:"updateTime,omitempty"`
10284
10285
10286 googleapi.ServerResponse `json:"-"`
10287
10288
10289
10290
10291
10292 ForceSendFields []string `json:"-"`
10293
10294
10295
10296
10297 NullFields []string `json:"-"`
10298 }
10299
10300 func (s *GoogleCloudDiscoveryengineV1alphaTargetSite) MarshalJSON() ([]byte, error) {
10301 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSite
10302 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10303 }
10304
10305
10306
10307 type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason struct {
10308
10309 QuotaFailure *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
10310
10311
10312
10313
10314
10315 ForceSendFields []string `json:"-"`
10316
10317
10318
10319
10320 NullFields []string `json:"-"`
10321 }
10322
10323 func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
10324 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReason
10325 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10326 }
10327
10328
10329
10330 type GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure struct {
10331
10332
10333 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
10334
10335
10336
10337
10338
10339 ForceSendFields []string `json:"-"`
10340
10341
10342
10343
10344 NullFields []string `json:"-"`
10345 }
10346
10347 func (s *GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
10348 type NoMethod GoogleCloudDiscoveryengineV1alphaTargetSiteFailureReasonQuotaFailure
10349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10350 }
10351
10352
10353 type GoogleCloudDiscoveryengineV1alphaTextInput struct {
10354
10355 Context *GoogleCloudDiscoveryengineV1alphaConversationContext `json:"context,omitempty"`
10356
10357 Input string `json:"input,omitempty"`
10358
10359
10360
10361
10362
10363 ForceSendFields []string `json:"-"`
10364
10365
10366
10367
10368 NullFields []string `json:"-"`
10369 }
10370
10371 func (s *GoogleCloudDiscoveryengineV1alphaTextInput) MarshalJSON() ([]byte, error) {
10372 type NoMethod GoogleCloudDiscoveryengineV1alphaTextInput
10373 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10374 }
10375
10376
10377
10378
10379 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata struct {
10380
10381 CreateTime string `json:"createTime,omitempty"`
10382
10383
10384 UpdateTime string `json:"updateTime,omitempty"`
10385
10386
10387
10388
10389
10390 ForceSendFields []string `json:"-"`
10391
10392
10393
10394
10395 NullFields []string `json:"-"`
10396 }
10397
10398 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
10399 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelMetadata
10400 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10401 }
10402
10403
10404
10405 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest struct {
10406
10407
10408 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
10409
10410 GcsTrainingInput *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput `json:"gcsTrainingInput,omitempty"`
10411
10412 ModelId string `json:"modelId,omitempty"`
10413
10414
10415 ModelType string `json:"modelType,omitempty"`
10416
10417
10418
10419
10420
10421 ForceSendFields []string `json:"-"`
10422
10423
10424
10425
10426 NullFields []string `json:"-"`
10427 }
10428
10429 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest) MarshalJSON() ([]byte, error) {
10430 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
10431 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10432 }
10433
10434
10435
10436 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput struct {
10437
10438
10439
10440
10441
10442 CorpusDataPath string `json:"corpusDataPath,omitempty"`
10443
10444
10445
10446
10447 QueryDataPath string `json:"queryDataPath,omitempty"`
10448
10449
10450
10451 TestDataPath string `json:"testDataPath,omitempty"`
10452
10453
10454
10455
10456
10457
10458 TrainDataPath string `json:"trainDataPath,omitempty"`
10459
10460
10461
10462
10463
10464 ForceSendFields []string `json:"-"`
10465
10466
10467
10468
10469 NullFields []string `json:"-"`
10470 }
10471
10472 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput) MarshalJSON() ([]byte, error) {
10473 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequestGcsTrainingInput
10474 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10475 }
10476
10477
10478
10479
10480 type GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse struct {
10481
10482
10483 ErrorConfig *GoogleCloudDiscoveryengineV1alphaImportErrorConfig `json:"errorConfig,omitempty"`
10484
10485 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
10486
10487 Metrics map[string]float64 `json:"metrics,omitempty"`
10488
10489 ModelName string `json:"modelName,omitempty"`
10490
10491
10492
10493
10494
10495
10496
10497 ModelStatus string `json:"modelStatus,omitempty"`
10498
10499
10500
10501
10502
10503 ForceSendFields []string `json:"-"`
10504
10505
10506
10507
10508 NullFields []string `json:"-"`
10509 }
10510
10511 func (s *GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
10512 type NoMethod GoogleCloudDiscoveryengineV1alphaTrainCustomModelResponse
10513 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10514 }
10515
10516
10517
10518 type GoogleCloudDiscoveryengineV1alphaTransactionInfo struct {
10519
10520
10521
10522 Cost float64 `json:"cost,omitempty"`
10523
10524 Currency string `json:"currency,omitempty"`
10525
10526
10527
10528
10529
10530
10531
10532
10533 DiscountValue float64 `json:"discountValue,omitempty"`
10534
10535 Tax float64 `json:"tax,omitempty"`
10536
10537 TransactionId string `json:"transactionId,omitempty"`
10538
10539
10540
10541 Value float64 `json:"value,omitempty"`
10542
10543
10544
10545
10546
10547 ForceSendFields []string `json:"-"`
10548
10549
10550
10551
10552 NullFields []string `json:"-"`
10553 }
10554
10555 func (s *GoogleCloudDiscoveryengineV1alphaTransactionInfo) MarshalJSON() ([]byte, error) {
10556 type NoMethod GoogleCloudDiscoveryengineV1alphaTransactionInfo
10557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10558 }
10559
10560 func (s *GoogleCloudDiscoveryengineV1alphaTransactionInfo) UnmarshalJSON(data []byte) error {
10561 type NoMethod GoogleCloudDiscoveryengineV1alphaTransactionInfo
10562 var s1 struct {
10563 Cost gensupport.JSONFloat64 `json:"cost"`
10564 DiscountValue gensupport.JSONFloat64 `json:"discountValue"`
10565 Tax gensupport.JSONFloat64 `json:"tax"`
10566 Value gensupport.JSONFloat64 `json:"value"`
10567 *NoMethod
10568 }
10569 s1.NoMethod = (*NoMethod)(s)
10570 if err := json.Unmarshal(data, &s1); err != nil {
10571 return err
10572 }
10573 s.Cost = float64(s1.Cost)
10574 s.DiscountValue = float64(s1.DiscountValue)
10575 s.Tax = float64(s1.Tax)
10576 s.Value = float64(s1.Value)
10577 return nil
10578 }
10579
10580
10581
10582 type GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata struct {
10583
10584
10585
10586
10587 Engine string `json:"engine,omitempty"`
10588
10589
10590
10591
10592
10593 ForceSendFields []string `json:"-"`
10594
10595
10596
10597
10598 NullFields []string `json:"-"`
10599 }
10600
10601 func (s *GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
10602 type NoMethod GoogleCloudDiscoveryengineV1alphaTuneEngineMetadata
10603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10604 }
10605
10606
10607
10608
10609 type GoogleCloudDiscoveryengineV1alphaTuneEngineRequest struct {
10610 }
10611
10612
10613
10614 type GoogleCloudDiscoveryengineV1alphaTuneEngineResponse struct {
10615 }
10616
10617
10618
10619 type GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata struct {
10620
10621 CreateTime string `json:"createTime,omitempty"`
10622
10623
10624 UpdateTime string `json:"updateTime,omitempty"`
10625
10626
10627
10628
10629
10630 ForceSendFields []string `json:"-"`
10631
10632
10633
10634
10635 NullFields []string `json:"-"`
10636 }
10637
10638 func (s *GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
10639 type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateSchemaMetadata
10640 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10641 }
10642
10643
10644
10645
10646 type GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata struct {
10647
10648 CreateTime string `json:"createTime,omitempty"`
10649
10650
10651 UpdateTime string `json:"updateTime,omitempty"`
10652
10653
10654
10655
10656
10657 ForceSendFields []string `json:"-"`
10658
10659
10660
10661
10662 NullFields []string `json:"-"`
10663 }
10664
10665 func (s *GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
10666 type NoMethod GoogleCloudDiscoveryengineV1alphaUpdateTargetSiteMetadata
10667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10668 }
10669
10670
10671
10672
10673 type GoogleCloudDiscoveryengineV1alphaUserEvent struct {
10674
10675
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686
10687
10688
10689
10690
10691
10692 Attributes map[string]GoogleCloudDiscoveryengineV1alphaCustomAttribute `json:"attributes,omitempty"`
10693
10694
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705
10706 AttributionToken string `json:"attributionToken,omitempty"`
10707
10708
10709
10710 CompletionInfo *GoogleCloudDiscoveryengineV1alphaCompletionInfo `json:"completionInfo,omitempty"`
10711
10712
10713
10714
10715
10716
10717
10718 DirectUserRequest bool `json:"directUserRequest,omitempty"`
10719
10720
10721
10722
10723
10724
10725
10726
10727 Documents []*GoogleCloudDiscoveryengineV1alphaDocumentInfo `json:"documents,omitempty"`
10728
10729
10730 EventTime string `json:"eventTime,omitempty"`
10731
10732
10733
10734
10735
10736
10737
10738
10739
10740 EventType string `json:"eventType,omitempty"`
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751 Filter string `json:"filter,omitempty"`
10752
10753 MediaInfo *GoogleCloudDiscoveryengineV1alphaMediaInfo `json:"mediaInfo,omitempty"`
10754
10755
10756 PageInfo *GoogleCloudDiscoveryengineV1alphaPageInfo `json:"pageInfo,omitempty"`
10757
10758 Panel *GoogleCloudDiscoveryengineV1alphaPanelInfo `json:"panel,omitempty"`
10759
10760
10761 PromotionIds []string `json:"promotionIds,omitempty"`
10762
10763
10764 SearchInfo *GoogleCloudDiscoveryengineV1alphaSearchInfo `json:"searchInfo,omitempty"`
10765
10766
10767
10768
10769
10770
10771 SessionId string `json:"sessionId,omitempty"`
10772
10773
10774
10775 TagIds []string `json:"tagIds,omitempty"`
10776
10777
10778 TransactionInfo *GoogleCloudDiscoveryengineV1alphaTransactionInfo `json:"transactionInfo,omitempty"`
10779
10780 UserInfo *GoogleCloudDiscoveryengineV1alphaUserInfo `json:"userInfo,omitempty"`
10781
10782
10783
10784
10785
10786
10787
10788
10789
10790
10791
10792 UserPseudoId string `json:"userPseudoId,omitempty"`
10793
10794
10795 googleapi.ServerResponse `json:"-"`
10796
10797
10798
10799
10800
10801 ForceSendFields []string `json:"-"`
10802
10803
10804
10805
10806 NullFields []string `json:"-"`
10807 }
10808
10809 func (s *GoogleCloudDiscoveryengineV1alphaUserEvent) MarshalJSON() ([]byte, error) {
10810 type NoMethod GoogleCloudDiscoveryengineV1alphaUserEvent
10811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10812 }
10813
10814
10815 type GoogleCloudDiscoveryengineV1alphaUserInfo struct {
10816
10817
10818
10819
10820
10821
10822 UserAgent string `json:"userAgent,omitempty"`
10823
10824
10825
10826
10827
10828
10829
10830 UserId string `json:"userId,omitempty"`
10831
10832
10833
10834
10835
10836 ForceSendFields []string `json:"-"`
10837
10838
10839
10840
10841 NullFields []string `json:"-"`
10842 }
10843
10844 func (s *GoogleCloudDiscoveryengineV1alphaUserInfo) MarshalJSON() ([]byte, error) {
10845 type NoMethod GoogleCloudDiscoveryengineV1alphaUserInfo
10846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10847 }
10848
10849
10850
10851
10852
10853 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata struct {
10854
10855 CreateTime string `json:"createTime,omitempty"`
10856
10857
10858 UpdateTime string `json:"updateTime,omitempty"`
10859
10860
10861
10862
10863
10864 ForceSendFields []string `json:"-"`
10865
10866
10867
10868
10869 NullFields []string `json:"-"`
10870 }
10871
10872 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
10873 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSiteMetadata
10874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10875 }
10876
10877
10878
10879 type GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse struct {
10880
10881 TargetSites []*GoogleCloudDiscoveryengineV1betaTargetSite `json:"targetSites,omitempty"`
10882
10883
10884
10885
10886
10887 ForceSendFields []string `json:"-"`
10888
10889
10890
10891
10892 NullFields []string `json:"-"`
10893 }
10894
10895 func (s *GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse) MarshalJSON() ([]byte, error) {
10896 type NoMethod GoogleCloudDiscoveryengineV1betaBatchCreateTargetSitesResponse
10897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10898 }
10899
10900
10901
10902
10903 type GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata struct {
10904
10905 CreateTime string `json:"createTime,omitempty"`
10906
10907
10908 UpdateTime string `json:"updateTime,omitempty"`
10909
10910
10911
10912
10913
10914 ForceSendFields []string `json:"-"`
10915
10916
10917
10918
10919 NullFields []string `json:"-"`
10920 }
10921
10922 func (s *GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata) MarshalJSON() ([]byte, error) {
10923 type NoMethod GoogleCloudDiscoveryengineV1betaCreateDataStoreMetadata
10924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10925 }
10926
10927
10928
10929
10930 type GoogleCloudDiscoveryengineV1betaCreateEngineMetadata struct {
10931
10932 CreateTime string `json:"createTime,omitempty"`
10933
10934
10935 UpdateTime string `json:"updateTime,omitempty"`
10936
10937
10938
10939
10940
10941 ForceSendFields []string `json:"-"`
10942
10943
10944
10945
10946 NullFields []string `json:"-"`
10947 }
10948
10949 func (s *GoogleCloudDiscoveryengineV1betaCreateEngineMetadata) MarshalJSON() ([]byte, error) {
10950 type NoMethod GoogleCloudDiscoveryengineV1betaCreateEngineMetadata
10951 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10952 }
10953
10954
10955
10956 type GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata struct {
10957
10958 CreateTime string `json:"createTime,omitempty"`
10959
10960
10961 UpdateTime string `json:"updateTime,omitempty"`
10962
10963
10964
10965
10966
10967 ForceSendFields []string `json:"-"`
10968
10969
10970
10971
10972 NullFields []string `json:"-"`
10973 }
10974
10975 func (s *GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata) MarshalJSON() ([]byte, error) {
10976 type NoMethod GoogleCloudDiscoveryengineV1betaCreateSchemaMetadata
10977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10978 }
10979
10980
10981
10982
10983 type GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata struct {
10984
10985 CreateTime string `json:"createTime,omitempty"`
10986
10987
10988 UpdateTime string `json:"updateTime,omitempty"`
10989
10990
10991
10992
10993
10994 ForceSendFields []string `json:"-"`
10995
10996
10997
10998
10999 NullFields []string `json:"-"`
11000 }
11001
11002 func (s *GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
11003 type NoMethod GoogleCloudDiscoveryengineV1betaCreateTargetSiteMetadata
11004 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11005 }
11006
11007
11008
11009 type GoogleCloudDiscoveryengineV1betaCustomTuningModel struct {
11010
11011 CreateTime string `json:"createTime,omitempty"`
11012
11013 DisplayName string `json:"displayName,omitempty"`
11014
11015
11016
11017
11018
11019
11020
11021
11022
11023
11024 ModelState string `json:"modelState,omitempty"`
11025 ModelVersion int64 `json:"modelVersion,omitempty,string"`
11026
11027
11028
11029
11030 Name string `json:"name,omitempty"`
11031
11032 TrainingStartTime string `json:"trainingStartTime,omitempty"`
11033
11034
11035
11036
11037
11038 ForceSendFields []string `json:"-"`
11039
11040
11041
11042
11043 NullFields []string `json:"-"`
11044 }
11045
11046 func (s *GoogleCloudDiscoveryengineV1betaCustomTuningModel) MarshalJSON() ([]byte, error) {
11047 type NoMethod GoogleCloudDiscoveryengineV1betaCustomTuningModel
11048 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11049 }
11050
11051
11052
11053 type GoogleCloudDiscoveryengineV1betaDataStore struct {
11054
11055
11056
11057
11058
11059
11060
11061
11062 ContentConfig string `json:"contentConfig,omitempty"`
11063
11064 CreateTime string `json:"createTime,omitempty"`
11065
11066
11067 DefaultSchemaId string `json:"defaultSchemaId,omitempty"`
11068
11069
11070
11071 DisplayName string `json:"displayName,omitempty"`
11072
11073
11074 DocumentProcessingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig `json:"documentProcessingConfig,omitempty"`
11075
11076
11077
11078
11079
11080
11081
11082
11083
11084 IndustryVertical string `json:"industryVertical,omitempty"`
11085
11086
11087
11088
11089 Name string `json:"name,omitempty"`
11090
11091
11092
11093
11094
11095
11096
11097
11098
11099
11100
11101
11102
11103
11104
11105 SolutionTypes []string `json:"solutionTypes,omitempty"`
11106
11107
11108
11109
11110
11111
11112
11113
11114 StartingSchema *GoogleCloudDiscoveryengineV1betaSchema `json:"startingSchema,omitempty"`
11115
11116
11117
11118
11119
11120 ForceSendFields []string `json:"-"`
11121
11122
11123
11124
11125 NullFields []string `json:"-"`
11126 }
11127
11128 func (s *GoogleCloudDiscoveryengineV1betaDataStore) MarshalJSON() ([]byte, error) {
11129 type NoMethod GoogleCloudDiscoveryengineV1betaDataStore
11130 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11131 }
11132
11133
11134
11135
11136 type GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata struct {
11137
11138 CreateTime string `json:"createTime,omitempty"`
11139
11140
11141 UpdateTime string `json:"updateTime,omitempty"`
11142
11143
11144
11145
11146
11147 ForceSendFields []string `json:"-"`
11148
11149
11150
11151
11152 NullFields []string `json:"-"`
11153 }
11154
11155 func (s *GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata) MarshalJSON() ([]byte, error) {
11156 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteDataStoreMetadata
11157 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11158 }
11159
11160
11161
11162
11163 type GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata struct {
11164
11165 CreateTime string `json:"createTime,omitempty"`
11166
11167
11168 UpdateTime string `json:"updateTime,omitempty"`
11169
11170
11171
11172
11173
11174 ForceSendFields []string `json:"-"`
11175
11176
11177
11178
11179 NullFields []string `json:"-"`
11180 }
11181
11182 func (s *GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata) MarshalJSON() ([]byte, error) {
11183 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteEngineMetadata
11184 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11185 }
11186
11187
11188
11189 type GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata struct {
11190
11191 CreateTime string `json:"createTime,omitempty"`
11192
11193
11194 UpdateTime string `json:"updateTime,omitempty"`
11195
11196
11197
11198
11199
11200 ForceSendFields []string `json:"-"`
11201
11202
11203
11204
11205 NullFields []string `json:"-"`
11206 }
11207
11208 func (s *GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata) MarshalJSON() ([]byte, error) {
11209 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteSchemaMetadata
11210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11211 }
11212
11213
11214
11215
11216 type GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata struct {
11217
11218 CreateTime string `json:"createTime,omitempty"`
11219
11220
11221 UpdateTime string `json:"updateTime,omitempty"`
11222
11223
11224
11225
11226
11227 ForceSendFields []string `json:"-"`
11228
11229
11230
11231
11232 NullFields []string `json:"-"`
11233 }
11234
11235 func (s *GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata) MarshalJSON() ([]byte, error) {
11236 type NoMethod GoogleCloudDiscoveryengineV1betaDeleteTargetSiteMetadata
11237 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11238 }
11239
11240
11241
11242
11243
11244 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata struct {
11245
11246 CreateTime string `json:"createTime,omitempty"`
11247
11248
11249 UpdateTime string `json:"updateTime,omitempty"`
11250
11251
11252
11253
11254
11255 ForceSendFields []string `json:"-"`
11256
11257
11258
11259
11260 NullFields []string `json:"-"`
11261 }
11262
11263 func (s *GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
11264 type NoMethod GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchMetadata
11265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11266 }
11267
11268
11269
11270 type GoogleCloudDiscoveryengineV1betaDisableAdvancedSiteSearchResponse struct {
11271 }
11272
11273
11274
11275
11276
11277
11278 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig struct {
11279
11280
11281
11282
11283 DefaultParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"defaultParsingConfig,omitempty"`
11284
11285
11286 Name string `json:"name,omitempty"`
11287
11288
11289
11290
11291
11292
11293
11294 ParsingConfigOverrides map[string]GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig `json:"parsingConfigOverrides,omitempty"`
11295
11296
11297
11298
11299
11300 ForceSendFields []string `json:"-"`
11301
11302
11303
11304
11305 NullFields []string `json:"-"`
11306 }
11307
11308 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig) MarshalJSON() ([]byte, error) {
11309 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfig
11310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11311 }
11312
11313
11314
11315 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig struct {
11316
11317 DigitalParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig `json:"digitalParsingConfig,omitempty"`
11318
11319
11320 OcrParsingConfig *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig `json:"ocrParsingConfig,omitempty"`
11321
11322
11323
11324
11325
11326 ForceSendFields []string `json:"-"`
11327
11328
11329
11330
11331 NullFields []string `json:"-"`
11332 }
11333
11334 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig) MarshalJSON() ([]byte, error) {
11335 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfig
11336 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11337 }
11338
11339
11340
11341 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigDigitalParsingConfig struct {
11342 }
11343
11344
11345
11346 type GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig struct {
11347
11348
11349
11350 EnhancedDocumentElements []string `json:"enhancedDocumentElements,omitempty"`
11351
11352
11353 UseNativeText bool `json:"useNativeText,omitempty"`
11354
11355
11356
11357
11358
11359 ForceSendFields []string `json:"-"`
11360
11361
11362
11363
11364 NullFields []string `json:"-"`
11365 }
11366
11367 func (s *GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig) MarshalJSON() ([]byte, error) {
11368 type NoMethod GoogleCloudDiscoveryengineV1betaDocumentProcessingConfigParsingConfigOcrParsingConfig
11369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11370 }
11371
11372
11373
11374
11375
11376 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata struct {
11377
11378 CreateTime string `json:"createTime,omitempty"`
11379
11380
11381 UpdateTime string `json:"updateTime,omitempty"`
11382
11383
11384
11385
11386
11387 ForceSendFields []string `json:"-"`
11388
11389
11390
11391
11392 NullFields []string `json:"-"`
11393 }
11394
11395 func (s *GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata) MarshalJSON() ([]byte, error) {
11396 type NoMethod GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchMetadata
11397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11398 }
11399
11400
11401
11402 type GoogleCloudDiscoveryengineV1betaEnableAdvancedSiteSearchResponse struct {
11403 }
11404
11405
11406
11407 type GoogleCloudDiscoveryengineV1betaEngine struct {
11408
11409
11410 ChatEngineConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig `json:"chatEngineConfig,omitempty"`
11411
11412
11413 ChatEngineMetadata *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata `json:"chatEngineMetadata,omitempty"`
11414
11415 CommonConfig *GoogleCloudDiscoveryengineV1betaEngineCommonConfig `json:"commonConfig,omitempty"`
11416
11417 CreateTime string `json:"createTime,omitempty"`
11418
11419
11420
11421
11422
11423
11424 DataStoreIds []string `json:"dataStoreIds,omitempty"`
11425
11426
11427 DisplayName string `json:"displayName,omitempty"`
11428
11429
11430
11431
11432
11433
11434
11435
11436
11437
11438
11439 IndustryVertical string `json:"industryVertical,omitempty"`
11440
11441
11442
11443
11444
11445
11446 Name string `json:"name,omitempty"`
11447
11448
11449 SearchEngineConfig *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig `json:"searchEngineConfig,omitempty"`
11450
11451
11452
11453
11454
11455
11456
11457
11458
11459
11460
11461 SolutionType string `json:"solutionType,omitempty"`
11462
11463
11464 UpdateTime string `json:"updateTime,omitempty"`
11465
11466
11467
11468
11469
11470 ForceSendFields []string `json:"-"`
11471
11472
11473
11474
11475 NullFields []string `json:"-"`
11476 }
11477
11478 func (s *GoogleCloudDiscoveryengineV1betaEngine) MarshalJSON() ([]byte, error) {
11479 type NoMethod GoogleCloudDiscoveryengineV1betaEngine
11480 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11481 }
11482
11483
11484
11485 type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig struct {
11486
11487
11488
11489
11490
11491 AgentCreationConfig *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig `json:"agentCreationConfig,omitempty"`
11492
11493
11494
11495
11496
11497
11498
11499
11500
11501 DialogflowAgentToLink string `json:"dialogflowAgentToLink,omitempty"`
11502
11503
11504
11505
11506
11507 ForceSendFields []string `json:"-"`
11508
11509
11510
11511
11512 NullFields []string `json:"-"`
11513 }
11514
11515 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig) MarshalJSON() ([]byte, error) {
11516 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfig
11517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11518 }
11519
11520
11521
11522
11523
11524
11525 type GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig struct {
11526
11527
11528
11529 Business string `json:"business,omitempty"`
11530
11531
11532
11533
11534 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
11535
11536
11537
11538 Location string `json:"location,omitempty"`
11539
11540
11541 TimeZone string `json:"timeZone,omitempty"`
11542
11543
11544
11545
11546
11547 ForceSendFields []string `json:"-"`
11548
11549
11550
11551
11552 NullFields []string `json:"-"`
11553 }
11554
11555 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig) MarshalJSON() ([]byte, error) {
11556 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineConfigAgentCreationConfig
11557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11558 }
11559
11560
11561
11562 type GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata struct {
11563
11564
11565 DialogflowAgent string `json:"dialogflowAgent,omitempty"`
11566
11567
11568
11569
11570
11571 ForceSendFields []string `json:"-"`
11572
11573
11574
11575
11576 NullFields []string `json:"-"`
11577 }
11578
11579 func (s *GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata) MarshalJSON() ([]byte, error) {
11580 type NoMethod GoogleCloudDiscoveryengineV1betaEngineChatEngineMetadata
11581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11582 }
11583
11584
11585
11586 type GoogleCloudDiscoveryengineV1betaEngineCommonConfig struct {
11587
11588
11589
11590 CompanyName string `json:"companyName,omitempty"`
11591
11592
11593
11594
11595
11596 ForceSendFields []string `json:"-"`
11597
11598
11599
11600
11601 NullFields []string `json:"-"`
11602 }
11603
11604 func (s *GoogleCloudDiscoveryengineV1betaEngineCommonConfig) MarshalJSON() ([]byte, error) {
11605 type NoMethod GoogleCloudDiscoveryengineV1betaEngineCommonConfig
11606 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11607 }
11608
11609
11610
11611 type GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig struct {
11612
11613
11614
11615
11616
11617
11618 SearchAddOns []string `json:"searchAddOns,omitempty"`
11619
11620
11621
11622
11623
11624
11625
11626
11627
11628 SearchTier string `json:"searchTier,omitempty"`
11629
11630
11631
11632
11633
11634 ForceSendFields []string `json:"-"`
11635
11636
11637
11638
11639 NullFields []string `json:"-"`
11640 }
11641
11642 func (s *GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig) MarshalJSON() ([]byte, error) {
11643 type NoMethod GoogleCloudDiscoveryengineV1betaEngineSearchEngineConfig
11644 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11645 }
11646
11647
11648
11649
11650 type GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata struct {
11651
11652 CreateTime string `json:"createTime,omitempty"`
11653
11654 FailureCount int64 `json:"failureCount,omitempty,string"`
11655
11656 SuccessCount int64 `json:"successCount,omitempty,string"`
11657
11658 TotalCount int64 `json:"totalCount,omitempty,string"`
11659
11660
11661 UpdateTime string `json:"updateTime,omitempty"`
11662
11663
11664
11665
11666
11667 ForceSendFields []string `json:"-"`
11668
11669
11670
11671
11672 NullFields []string `json:"-"`
11673 }
11674
11675 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata) MarshalJSON() ([]byte, error) {
11676 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsMetadata
11677 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11678 }
11679
11680
11681
11682
11683
11684 type GoogleCloudDiscoveryengineV1betaImportDocumentsResponse struct {
11685
11686
11687 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
11688
11689 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
11690
11691
11692
11693
11694
11695 ForceSendFields []string `json:"-"`
11696
11697
11698
11699
11700 NullFields []string `json:"-"`
11701 }
11702
11703 func (s *GoogleCloudDiscoveryengineV1betaImportDocumentsResponse) MarshalJSON() ([]byte, error) {
11704 type NoMethod GoogleCloudDiscoveryengineV1betaImportDocumentsResponse
11705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11706 }
11707
11708
11709
11710 type GoogleCloudDiscoveryengineV1betaImportErrorConfig struct {
11711
11712
11713
11714
11715 GcsPrefix string `json:"gcsPrefix,omitempty"`
11716
11717
11718
11719
11720
11721 ForceSendFields []string `json:"-"`
11722
11723
11724
11725
11726 NullFields []string `json:"-"`
11727 }
11728
11729 func (s *GoogleCloudDiscoveryengineV1betaImportErrorConfig) MarshalJSON() ([]byte, error) {
11730 type NoMethod GoogleCloudDiscoveryengineV1betaImportErrorConfig
11731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11732 }
11733
11734
11735
11736
11737
11738 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata struct {
11739
11740 CreateTime string `json:"createTime,omitempty"`
11741
11742
11743 UpdateTime string `json:"updateTime,omitempty"`
11744
11745
11746
11747
11748
11749 ForceSendFields []string `json:"-"`
11750
11751
11752
11753
11754 NullFields []string `json:"-"`
11755 }
11756
11757 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
11758 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesMetadata
11759 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11760 }
11761
11762
11763
11764
11765 type GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse struct {
11766
11767 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
11768
11769 FailedEntriesCount int64 `json:"failedEntriesCount,omitempty,string"`
11770
11771 ImportedEntriesCount int64 `json:"importedEntriesCount,omitempty,string"`
11772
11773
11774
11775
11776
11777 ForceSendFields []string `json:"-"`
11778
11779
11780
11781
11782 NullFields []string `json:"-"`
11783 }
11784
11785 func (s *GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
11786 type NoMethod GoogleCloudDiscoveryengineV1betaImportSuggestionDenyListEntriesResponse
11787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11788 }
11789
11790
11791
11792
11793 type GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata struct {
11794
11795 CreateTime string `json:"createTime,omitempty"`
11796
11797 FailureCount int64 `json:"failureCount,omitempty,string"`
11798
11799 SuccessCount int64 `json:"successCount,omitempty,string"`
11800
11801
11802 UpdateTime string `json:"updateTime,omitempty"`
11803
11804
11805
11806
11807
11808 ForceSendFields []string `json:"-"`
11809
11810
11811
11812
11813 NullFields []string `json:"-"`
11814 }
11815
11816 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata) MarshalJSON() ([]byte, error) {
11817 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsMetadata
11818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11819 }
11820
11821
11822
11823
11824
11825 type GoogleCloudDiscoveryengineV1betaImportUserEventsResponse struct {
11826
11827
11828 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
11829
11830 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
11831
11832
11833 JoinedEventsCount int64 `json:"joinedEventsCount,omitempty,string"`
11834
11835
11836 UnjoinedEventsCount int64 `json:"unjoinedEventsCount,omitempty,string"`
11837
11838
11839
11840
11841
11842 ForceSendFields []string `json:"-"`
11843
11844
11845
11846
11847 NullFields []string `json:"-"`
11848 }
11849
11850 func (s *GoogleCloudDiscoveryengineV1betaImportUserEventsResponse) MarshalJSON() ([]byte, error) {
11851 type NoMethod GoogleCloudDiscoveryengineV1betaImportUserEventsResponse
11852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11853 }
11854
11855
11856
11857 type GoogleCloudDiscoveryengineV1betaListCustomModelsResponse struct {
11858
11859 Models []*GoogleCloudDiscoveryengineV1betaCustomTuningModel `json:"models,omitempty"`
11860
11861
11862
11863
11864
11865 ForceSendFields []string `json:"-"`
11866
11867
11868
11869
11870 NullFields []string `json:"-"`
11871 }
11872
11873 func (s *GoogleCloudDiscoveryengineV1betaListCustomModelsResponse) MarshalJSON() ([]byte, error) {
11874 type NoMethod GoogleCloudDiscoveryengineV1betaListCustomModelsResponse
11875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11876 }
11877
11878
11879
11880
11881 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata struct {
11882
11883 CreateTime string `json:"createTime,omitempty"`
11884
11885 FailureCount int64 `json:"failureCount,omitempty,string"`
11886
11887 IgnoredCount int64 `json:"ignoredCount,omitempty,string"`
11888
11889 SuccessCount int64 `json:"successCount,omitempty,string"`
11890
11891
11892 UpdateTime string `json:"updateTime,omitempty"`
11893
11894
11895
11896
11897
11898 ForceSendFields []string `json:"-"`
11899
11900
11901
11902
11903 NullFields []string `json:"-"`
11904 }
11905
11906 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata) MarshalJSON() ([]byte, error) {
11907 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsMetadata
11908 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11909 }
11910
11911
11912
11913
11914
11915 type GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse struct {
11916
11917
11918 PurgeCount int64 `json:"purgeCount,omitempty,string"`
11919
11920
11921
11922 PurgeSample []string `json:"purgeSample,omitempty"`
11923
11924
11925
11926
11927
11928 ForceSendFields []string `json:"-"`
11929
11930
11931
11932
11933 NullFields []string `json:"-"`
11934 }
11935
11936 func (s *GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse) MarshalJSON() ([]byte, error) {
11937 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeDocumentsResponse
11938 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11939 }
11940
11941
11942
11943
11944
11945 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata struct {
11946
11947 CreateTime string `json:"createTime,omitempty"`
11948
11949
11950 UpdateTime string `json:"updateTime,omitempty"`
11951
11952
11953
11954
11955
11956 ForceSendFields []string `json:"-"`
11957
11958
11959
11960
11961 NullFields []string `json:"-"`
11962 }
11963
11964 func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata) MarshalJSON() ([]byte, error) {
11965 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesMetadata
11966 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11967 }
11968
11969
11970
11971
11972 type GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse struct {
11973
11974 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
11975
11976 PurgeCount int64 `json:"purgeCount,omitempty,string"`
11977
11978
11979
11980
11981
11982 ForceSendFields []string `json:"-"`
11983
11984
11985
11986
11987 NullFields []string `json:"-"`
11988 }
11989
11990 func (s *GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse) MarshalJSON() ([]byte, error) {
11991 type NoMethod GoogleCloudDiscoveryengineV1betaPurgeSuggestionDenyListEntriesResponse
11992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11993 }
11994
11995
11996
11997 type GoogleCloudDiscoveryengineV1betaSchema struct {
11998
11999 JsonSchema string `json:"jsonSchema,omitempty"`
12000
12001
12002
12003
12004 Name string `json:"name,omitempty"`
12005
12006 StructSchema googleapi.RawMessage `json:"structSchema,omitempty"`
12007
12008
12009
12010
12011
12012 ForceSendFields []string `json:"-"`
12013
12014
12015
12016
12017 NullFields []string `json:"-"`
12018 }
12019
12020 func (s *GoogleCloudDiscoveryengineV1betaSchema) MarshalJSON() ([]byte, error) {
12021 type NoMethod GoogleCloudDiscoveryengineV1betaSchema
12022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12023 }
12024
12025
12026
12027 type GoogleCloudDiscoveryengineV1betaSiteVerificationInfo struct {
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037 SiteVerificationState string `json:"siteVerificationState,omitempty"`
12038
12039 VerifyTime string `json:"verifyTime,omitempty"`
12040
12041
12042
12043
12044
12045 ForceSendFields []string `json:"-"`
12046
12047
12048
12049
12050 NullFields []string `json:"-"`
12051 }
12052
12053 func (s *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo) MarshalJSON() ([]byte, error) {
12054 type NoMethod GoogleCloudDiscoveryengineV1betaSiteVerificationInfo
12055 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12056 }
12057
12058
12059
12060 type GoogleCloudDiscoveryengineV1betaTargetSite struct {
12061
12062
12063
12064
12065
12066
12067 ExactMatch bool `json:"exactMatch,omitempty"`
12068
12069 FailureReason *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason `json:"failureReason,omitempty"`
12070
12071
12072 GeneratedUriPattern string `json:"generatedUriPattern,omitempty"`
12073
12074
12075
12076
12077
12078
12079
12080
12081
12082
12083
12084
12085 IndexingStatus string `json:"indexingStatus,omitempty"`
12086
12087
12088
12089
12090 Name string `json:"name,omitempty"`
12091
12092
12093 ProvidedUriPattern string `json:"providedUriPattern,omitempty"`
12094
12095 RootDomainUri string `json:"rootDomainUri,omitempty"`
12096
12097
12098 SiteVerificationInfo *GoogleCloudDiscoveryengineV1betaSiteVerificationInfo `json:"siteVerificationInfo,omitempty"`
12099
12100
12101
12102
12103
12104
12105
12106
12107 Type string `json:"type,omitempty"`
12108
12109 UpdateTime string `json:"updateTime,omitempty"`
12110
12111
12112
12113
12114
12115 ForceSendFields []string `json:"-"`
12116
12117
12118
12119
12120 NullFields []string `json:"-"`
12121 }
12122
12123 func (s *GoogleCloudDiscoveryengineV1betaTargetSite) MarshalJSON() ([]byte, error) {
12124 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSite
12125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12126 }
12127
12128
12129
12130 type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason struct {
12131
12132 QuotaFailure *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure `json:"quotaFailure,omitempty"`
12133
12134
12135
12136
12137
12138 ForceSendFields []string `json:"-"`
12139
12140
12141
12142
12143 NullFields []string `json:"-"`
12144 }
12145
12146 func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason) MarshalJSON() ([]byte, error) {
12147 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReason
12148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12149 }
12150
12151
12152
12153 type GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure struct {
12154
12155
12156 TotalRequiredQuota int64 `json:"totalRequiredQuota,omitempty,string"`
12157
12158
12159
12160
12161
12162 ForceSendFields []string `json:"-"`
12163
12164
12165
12166
12167 NullFields []string `json:"-"`
12168 }
12169
12170 func (s *GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure) MarshalJSON() ([]byte, error) {
12171 type NoMethod GoogleCloudDiscoveryengineV1betaTargetSiteFailureReasonQuotaFailure
12172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12173 }
12174
12175
12176
12177
12178 type GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata struct {
12179
12180 CreateTime string `json:"createTime,omitempty"`
12181
12182
12183 UpdateTime string `json:"updateTime,omitempty"`
12184
12185
12186
12187
12188
12189 ForceSendFields []string `json:"-"`
12190
12191
12192
12193
12194 NullFields []string `json:"-"`
12195 }
12196
12197 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata) MarshalJSON() ([]byte, error) {
12198 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelMetadata
12199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12200 }
12201
12202
12203
12204
12205 type GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse struct {
12206
12207
12208 ErrorConfig *GoogleCloudDiscoveryengineV1betaImportErrorConfig `json:"errorConfig,omitempty"`
12209
12210 ErrorSamples []*GoogleRpcStatus `json:"errorSamples,omitempty"`
12211
12212 Metrics map[string]float64 `json:"metrics,omitempty"`
12213
12214 ModelName string `json:"modelName,omitempty"`
12215
12216
12217
12218
12219
12220
12221
12222 ModelStatus string `json:"modelStatus,omitempty"`
12223
12224
12225
12226
12227
12228 ForceSendFields []string `json:"-"`
12229
12230
12231
12232
12233 NullFields []string `json:"-"`
12234 }
12235
12236 func (s *GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse) MarshalJSON() ([]byte, error) {
12237 type NoMethod GoogleCloudDiscoveryengineV1betaTrainCustomModelResponse
12238 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12239 }
12240
12241
12242
12243 type GoogleCloudDiscoveryengineV1betaTuneEngineMetadata struct {
12244
12245
12246
12247
12248 Engine string `json:"engine,omitempty"`
12249
12250
12251
12252
12253
12254 ForceSendFields []string `json:"-"`
12255
12256
12257
12258
12259 NullFields []string `json:"-"`
12260 }
12261
12262 func (s *GoogleCloudDiscoveryengineV1betaTuneEngineMetadata) MarshalJSON() ([]byte, error) {
12263 type NoMethod GoogleCloudDiscoveryengineV1betaTuneEngineMetadata
12264 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12265 }
12266
12267
12268
12269 type GoogleCloudDiscoveryengineV1betaTuneEngineResponse struct {
12270 }
12271
12272
12273
12274 type GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata struct {
12275
12276 CreateTime string `json:"createTime,omitempty"`
12277
12278
12279 UpdateTime string `json:"updateTime,omitempty"`
12280
12281
12282
12283
12284
12285 ForceSendFields []string `json:"-"`
12286
12287
12288
12289
12290 NullFields []string `json:"-"`
12291 }
12292
12293 func (s *GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata) MarshalJSON() ([]byte, error) {
12294 type NoMethod GoogleCloudDiscoveryengineV1betaUpdateSchemaMetadata
12295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12296 }
12297
12298
12299
12300
12301 type GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata struct {
12302
12303 CreateTime string `json:"createTime,omitempty"`
12304
12305
12306 UpdateTime string `json:"updateTime,omitempty"`
12307
12308
12309
12310
12311
12312 ForceSendFields []string `json:"-"`
12313
12314
12315
12316
12317 NullFields []string `json:"-"`
12318 }
12319
12320 func (s *GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata) MarshalJSON() ([]byte, error) {
12321 type NoMethod GoogleCloudDiscoveryengineV1betaUpdateTargetSiteMetadata
12322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12323 }
12324
12325
12326
12327 type GoogleLongrunningCancelOperationRequest struct {
12328 }
12329
12330
12331
12332 type GoogleLongrunningListOperationsResponse struct {
12333
12334 NextPageToken string `json:"nextPageToken,omitempty"`
12335
12336
12337 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
12338
12339
12340 googleapi.ServerResponse `json:"-"`
12341
12342
12343
12344
12345
12346 ForceSendFields []string `json:"-"`
12347
12348
12349
12350
12351 NullFields []string `json:"-"`
12352 }
12353
12354 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
12355 type NoMethod GoogleLongrunningListOperationsResponse
12356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12357 }
12358
12359
12360
12361 type GoogleLongrunningOperation struct {
12362
12363
12364
12365 Done bool `json:"done,omitempty"`
12366
12367 Error *GoogleRpcStatus `json:"error,omitempty"`
12368
12369
12370
12371
12372 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
12373
12374
12375
12376 Name string `json:"name,omitempty"`
12377
12378
12379
12380
12381
12382
12383
12384 Response googleapi.RawMessage `json:"response,omitempty"`
12385
12386
12387 googleapi.ServerResponse `json:"-"`
12388
12389
12390
12391
12392
12393 ForceSendFields []string `json:"-"`
12394
12395
12396
12397
12398 NullFields []string `json:"-"`
12399 }
12400
12401 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
12402 type NoMethod GoogleLongrunningOperation
12403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12404 }
12405
12406
12407
12408
12409
12410
12411 type GoogleProtobufEmpty struct {
12412
12413 googleapi.ServerResponse `json:"-"`
12414 }
12415
12416
12417
12418
12419
12420
12421
12422 type GoogleRpcStatus struct {
12423
12424 Code int64 `json:"code,omitempty"`
12425
12426
12427 Details []googleapi.RawMessage `json:"details,omitempty"`
12428
12429
12430
12431 Message string `json:"message,omitempty"`
12432
12433
12434
12435
12436
12437 ForceSendFields []string `json:"-"`
12438
12439
12440
12441
12442 NullFields []string `json:"-"`
12443 }
12444
12445 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
12446 type NoMethod GoogleRpcStatus
12447 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12448 }
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459 type GoogleTypeDate struct {
12460
12461
12462
12463 Day int64 `json:"day,omitempty"`
12464
12465
12466 Month int64 `json:"month,omitempty"`
12467
12468
12469 Year int64 `json:"year,omitempty"`
12470
12471
12472
12473
12474
12475 ForceSendFields []string `json:"-"`
12476
12477
12478
12479
12480 NullFields []string `json:"-"`
12481 }
12482
12483 func (s *GoogleTypeDate) MarshalJSON() ([]byte, error) {
12484 type NoMethod GoogleTypeDate
12485 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12486 }
12487
12488 type ProjectsGetCall struct {
12489 s *Service
12490 name string
12491 urlParams_ gensupport.URLParams
12492 ifNoneMatch_ string
12493 ctx_ context.Context
12494 header_ http.Header
12495 }
12496
12497
12498
12499
12500
12501 func (r *ProjectsService) Get(name string) *ProjectsGetCall {
12502 c := &ProjectsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12503 c.name = name
12504 return c
12505 }
12506
12507
12508
12509
12510 func (c *ProjectsGetCall) Fields(s ...googleapi.Field) *ProjectsGetCall {
12511 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12512 return c
12513 }
12514
12515
12516
12517
12518 func (c *ProjectsGetCall) IfNoneMatch(entityTag string) *ProjectsGetCall {
12519 c.ifNoneMatch_ = entityTag
12520 return c
12521 }
12522
12523
12524 func (c *ProjectsGetCall) Context(ctx context.Context) *ProjectsGetCall {
12525 c.ctx_ = ctx
12526 return c
12527 }
12528
12529
12530
12531 func (c *ProjectsGetCall) Header() http.Header {
12532 if c.header_ == nil {
12533 c.header_ = make(http.Header)
12534 }
12535 return c.header_
12536 }
12537
12538 func (c *ProjectsGetCall) doRequest(alt string) (*http.Response, error) {
12539 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12540 if c.ifNoneMatch_ != "" {
12541 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12542 }
12543 var body io.Reader = nil
12544 c.urlParams_.Set("alt", alt)
12545 c.urlParams_.Set("prettyPrint", "false")
12546 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
12547 urls += "?" + c.urlParams_.Encode()
12548 req, err := http.NewRequest("GET", urls, body)
12549 if err != nil {
12550 return nil, err
12551 }
12552 req.Header = reqHeaders
12553 googleapi.Expand(req.URL, map[string]string{
12554 "name": c.name,
12555 })
12556 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12557 }
12558
12559
12560
12561
12562
12563
12564
12565 func (c *ProjectsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProject, error) {
12566 gensupport.SetOptions(c.urlParams_, opts...)
12567 res, err := c.doRequest("json")
12568 if res != nil && res.StatusCode == http.StatusNotModified {
12569 if res.Body != nil {
12570 res.Body.Close()
12571 }
12572 return nil, gensupport.WrapError(&googleapi.Error{
12573 Code: res.StatusCode,
12574 Header: res.Header,
12575 })
12576 }
12577 if err != nil {
12578 return nil, err
12579 }
12580 defer googleapi.CloseBody(res)
12581 if err := googleapi.CheckResponse(res); err != nil {
12582 return nil, gensupport.WrapError(err)
12583 }
12584 ret := &GoogleCloudDiscoveryengineV1alphaProject{
12585 ServerResponse: googleapi.ServerResponse{
12586 Header: res.Header,
12587 HTTPStatusCode: res.StatusCode,
12588 },
12589 }
12590 target := &ret
12591 if err := gensupport.DecodeResponse(target, res); err != nil {
12592 return nil, err
12593 }
12594 return ret, nil
12595 }
12596
12597 type ProjectsProvisionCall struct {
12598 s *Service
12599 name string
12600 googleclouddiscoveryenginev1alphaprovisionprojectrequest *GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest
12601 urlParams_ gensupport.URLParams
12602 ctx_ context.Context
12603 header_ http.Header
12604 }
12605
12606
12607
12608
12609
12610
12611
12612
12613 func (r *ProjectsService) Provision(name string, googleclouddiscoveryenginev1alphaprovisionprojectrequest *GoogleCloudDiscoveryengineV1alphaProvisionProjectRequest) *ProjectsProvisionCall {
12614 c := &ProjectsProvisionCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12615 c.name = name
12616 c.googleclouddiscoveryenginev1alphaprovisionprojectrequest = googleclouddiscoveryenginev1alphaprovisionprojectrequest
12617 return c
12618 }
12619
12620
12621
12622
12623 func (c *ProjectsProvisionCall) Fields(s ...googleapi.Field) *ProjectsProvisionCall {
12624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12625 return c
12626 }
12627
12628
12629 func (c *ProjectsProvisionCall) Context(ctx context.Context) *ProjectsProvisionCall {
12630 c.ctx_ = ctx
12631 return c
12632 }
12633
12634
12635
12636 func (c *ProjectsProvisionCall) Header() http.Header {
12637 if c.header_ == nil {
12638 c.header_ = make(http.Header)
12639 }
12640 return c.header_
12641 }
12642
12643 func (c *ProjectsProvisionCall) doRequest(alt string) (*http.Response, error) {
12644 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12645 var body io.Reader = nil
12646 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaprovisionprojectrequest)
12647 if err != nil {
12648 return nil, err
12649 }
12650 c.urlParams_.Set("alt", alt)
12651 c.urlParams_.Set("prettyPrint", "false")
12652 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:provision")
12653 urls += "?" + c.urlParams_.Encode()
12654 req, err := http.NewRequest("POST", urls, body)
12655 if err != nil {
12656 return nil, err
12657 }
12658 req.Header = reqHeaders
12659 googleapi.Expand(req.URL, map[string]string{
12660 "name": c.name,
12661 })
12662 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12663 }
12664
12665
12666
12667
12668
12669
12670
12671 func (c *ProjectsProvisionCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12672 gensupport.SetOptions(c.urlParams_, opts...)
12673 res, err := c.doRequest("json")
12674 if res != nil && res.StatusCode == http.StatusNotModified {
12675 if res.Body != nil {
12676 res.Body.Close()
12677 }
12678 return nil, gensupport.WrapError(&googleapi.Error{
12679 Code: res.StatusCode,
12680 Header: res.Header,
12681 })
12682 }
12683 if err != nil {
12684 return nil, err
12685 }
12686 defer googleapi.CloseBody(res)
12687 if err := googleapi.CheckResponse(res); err != nil {
12688 return nil, gensupport.WrapError(err)
12689 }
12690 ret := &GoogleLongrunningOperation{
12691 ServerResponse: googleapi.ServerResponse{
12692 Header: res.Header,
12693 HTTPStatusCode: res.StatusCode,
12694 },
12695 }
12696 target := &ret
12697 if err := gensupport.DecodeResponse(target, res); err != nil {
12698 return nil, err
12699 }
12700 return ret, nil
12701 }
12702
12703 type ProjectsReportConsentChangeCall struct {
12704 s *Service
12705 project string
12706 googleclouddiscoveryenginev1alphareportconsentchangerequest *GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest
12707 urlParams_ gensupport.URLParams
12708 ctx_ context.Context
12709 header_ http.Header
12710 }
12711
12712
12713
12714
12715
12716
12717
12718
12719 func (r *ProjectsService) ReportConsentChange(project string, googleclouddiscoveryenginev1alphareportconsentchangerequest *GoogleCloudDiscoveryengineV1alphaReportConsentChangeRequest) *ProjectsReportConsentChangeCall {
12720 c := &ProjectsReportConsentChangeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12721 c.project = project
12722 c.googleclouddiscoveryenginev1alphareportconsentchangerequest = googleclouddiscoveryenginev1alphareportconsentchangerequest
12723 return c
12724 }
12725
12726
12727
12728
12729 func (c *ProjectsReportConsentChangeCall) Fields(s ...googleapi.Field) *ProjectsReportConsentChangeCall {
12730 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12731 return c
12732 }
12733
12734
12735 func (c *ProjectsReportConsentChangeCall) Context(ctx context.Context) *ProjectsReportConsentChangeCall {
12736 c.ctx_ = ctx
12737 return c
12738 }
12739
12740
12741
12742 func (c *ProjectsReportConsentChangeCall) Header() http.Header {
12743 if c.header_ == nil {
12744 c.header_ = make(http.Header)
12745 }
12746 return c.header_
12747 }
12748
12749 func (c *ProjectsReportConsentChangeCall) doRequest(alt string) (*http.Response, error) {
12750 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12751 var body io.Reader = nil
12752 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphareportconsentchangerequest)
12753 if err != nil {
12754 return nil, err
12755 }
12756 c.urlParams_.Set("alt", alt)
12757 c.urlParams_.Set("prettyPrint", "false")
12758 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+project}:reportConsentChange")
12759 urls += "?" + c.urlParams_.Encode()
12760 req, err := http.NewRequest("POST", urls, body)
12761 if err != nil {
12762 return nil, err
12763 }
12764 req.Header = reqHeaders
12765 googleapi.Expand(req.URL, map[string]string{
12766 "project": c.project,
12767 })
12768 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12769 }
12770
12771
12772
12773
12774
12775
12776
12777 func (c *ProjectsReportConsentChangeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProject, error) {
12778 gensupport.SetOptions(c.urlParams_, opts...)
12779 res, err := c.doRequest("json")
12780 if res != nil && res.StatusCode == http.StatusNotModified {
12781 if res.Body != nil {
12782 res.Body.Close()
12783 }
12784 return nil, gensupport.WrapError(&googleapi.Error{
12785 Code: res.StatusCode,
12786 Header: res.Header,
12787 })
12788 }
12789 if err != nil {
12790 return nil, err
12791 }
12792 defer googleapi.CloseBody(res)
12793 if err := googleapi.CheckResponse(res); err != nil {
12794 return nil, gensupport.WrapError(err)
12795 }
12796 ret := &GoogleCloudDiscoveryengineV1alphaProject{
12797 ServerResponse: googleapi.ServerResponse{
12798 Header: res.Header,
12799 HTTPStatusCode: res.StatusCode,
12800 },
12801 }
12802 target := &ret
12803 if err := gensupport.DecodeResponse(target, res); err != nil {
12804 return nil, err
12805 }
12806 return ret, nil
12807 }
12808
12809 type ProjectsLocationsEstimateDataSizeCall struct {
12810 s *Service
12811 location string
12812 googleclouddiscoveryenginev1alphaestimatedatasizerequest *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest
12813 urlParams_ gensupport.URLParams
12814 ctx_ context.Context
12815 header_ http.Header
12816 }
12817
12818
12819
12820
12821
12822 func (r *ProjectsLocationsService) EstimateDataSize(location string, googleclouddiscoveryenginev1alphaestimatedatasizerequest *GoogleCloudDiscoveryengineV1alphaEstimateDataSizeRequest) *ProjectsLocationsEstimateDataSizeCall {
12823 c := &ProjectsLocationsEstimateDataSizeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12824 c.location = location
12825 c.googleclouddiscoveryenginev1alphaestimatedatasizerequest = googleclouddiscoveryenginev1alphaestimatedatasizerequest
12826 return c
12827 }
12828
12829
12830
12831
12832 func (c *ProjectsLocationsEstimateDataSizeCall) Fields(s ...googleapi.Field) *ProjectsLocationsEstimateDataSizeCall {
12833 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12834 return c
12835 }
12836
12837
12838 func (c *ProjectsLocationsEstimateDataSizeCall) Context(ctx context.Context) *ProjectsLocationsEstimateDataSizeCall {
12839 c.ctx_ = ctx
12840 return c
12841 }
12842
12843
12844
12845 func (c *ProjectsLocationsEstimateDataSizeCall) Header() http.Header {
12846 if c.header_ == nil {
12847 c.header_ = make(http.Header)
12848 }
12849 return c.header_
12850 }
12851
12852 func (c *ProjectsLocationsEstimateDataSizeCall) doRequest(alt string) (*http.Response, error) {
12853 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12854 var body io.Reader = nil
12855 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaestimatedatasizerequest)
12856 if err != nil {
12857 return nil, err
12858 }
12859 c.urlParams_.Set("alt", alt)
12860 c.urlParams_.Set("prettyPrint", "false")
12861 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+location}:estimateDataSize")
12862 urls += "?" + c.urlParams_.Encode()
12863 req, err := http.NewRequest("POST", urls, body)
12864 if err != nil {
12865 return nil, err
12866 }
12867 req.Header = reqHeaders
12868 googleapi.Expand(req.URL, map[string]string{
12869 "location": c.location,
12870 })
12871 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12872 }
12873
12874
12875
12876
12877
12878
12879
12880 func (c *ProjectsLocationsEstimateDataSizeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
12881 gensupport.SetOptions(c.urlParams_, opts...)
12882 res, err := c.doRequest("json")
12883 if res != nil && res.StatusCode == http.StatusNotModified {
12884 if res.Body != nil {
12885 res.Body.Close()
12886 }
12887 return nil, gensupport.WrapError(&googleapi.Error{
12888 Code: res.StatusCode,
12889 Header: res.Header,
12890 })
12891 }
12892 if err != nil {
12893 return nil, err
12894 }
12895 defer googleapi.CloseBody(res)
12896 if err := googleapi.CheckResponse(res); err != nil {
12897 return nil, gensupport.WrapError(err)
12898 }
12899 ret := &GoogleLongrunningOperation{
12900 ServerResponse: googleapi.ServerResponse{
12901 Header: res.Header,
12902 HTTPStatusCode: res.StatusCode,
12903 },
12904 }
12905 target := &ret
12906 if err := gensupport.DecodeResponse(target, res); err != nil {
12907 return nil, err
12908 }
12909 return ret, nil
12910 }
12911
12912 type ProjectsLocationsGetAclConfigCall struct {
12913 s *Service
12914 name string
12915 urlParams_ gensupport.URLParams
12916 ifNoneMatch_ string
12917 ctx_ context.Context
12918 header_ http.Header
12919 }
12920
12921
12922
12923
12924
12925
12926
12927 func (r *ProjectsLocationsService) GetAclConfig(name string) *ProjectsLocationsGetAclConfigCall {
12928 c := &ProjectsLocationsGetAclConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12929 c.name = name
12930 return c
12931 }
12932
12933
12934
12935
12936 func (c *ProjectsLocationsGetAclConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAclConfigCall {
12937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12938 return c
12939 }
12940
12941
12942
12943
12944 func (c *ProjectsLocationsGetAclConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAclConfigCall {
12945 c.ifNoneMatch_ = entityTag
12946 return c
12947 }
12948
12949
12950 func (c *ProjectsLocationsGetAclConfigCall) Context(ctx context.Context) *ProjectsLocationsGetAclConfigCall {
12951 c.ctx_ = ctx
12952 return c
12953 }
12954
12955
12956
12957 func (c *ProjectsLocationsGetAclConfigCall) Header() http.Header {
12958 if c.header_ == nil {
12959 c.header_ = make(http.Header)
12960 }
12961 return c.header_
12962 }
12963
12964 func (c *ProjectsLocationsGetAclConfigCall) doRequest(alt string) (*http.Response, error) {
12965 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12966 if c.ifNoneMatch_ != "" {
12967 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12968 }
12969 var body io.Reader = nil
12970 c.urlParams_.Set("alt", alt)
12971 c.urlParams_.Set("prettyPrint", "false")
12972 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
12973 urls += "?" + c.urlParams_.Encode()
12974 req, err := http.NewRequest("GET", urls, body)
12975 if err != nil {
12976 return nil, err
12977 }
12978 req.Header = reqHeaders
12979 googleapi.Expand(req.URL, map[string]string{
12980 "name": c.name,
12981 })
12982 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12983 }
12984
12985
12986
12987
12988
12989
12990
12991 func (c *ProjectsLocationsGetAclConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAclConfig, error) {
12992 gensupport.SetOptions(c.urlParams_, opts...)
12993 res, err := c.doRequest("json")
12994 if res != nil && res.StatusCode == http.StatusNotModified {
12995 if res.Body != nil {
12996 res.Body.Close()
12997 }
12998 return nil, gensupport.WrapError(&googleapi.Error{
12999 Code: res.StatusCode,
13000 Header: res.Header,
13001 })
13002 }
13003 if err != nil {
13004 return nil, err
13005 }
13006 defer googleapi.CloseBody(res)
13007 if err := googleapi.CheckResponse(res); err != nil {
13008 return nil, gensupport.WrapError(err)
13009 }
13010 ret := &GoogleCloudDiscoveryengineV1alphaAclConfig{
13011 ServerResponse: googleapi.ServerResponse{
13012 Header: res.Header,
13013 HTTPStatusCode: res.StatusCode,
13014 },
13015 }
13016 target := &ret
13017 if err := gensupport.DecodeResponse(target, res); err != nil {
13018 return nil, err
13019 }
13020 return ret, nil
13021 }
13022
13023 type ProjectsLocationsUpdateAclConfigCall struct {
13024 s *Service
13025 name string
13026 googleclouddiscoveryenginev1alphaaclconfig *GoogleCloudDiscoveryengineV1alphaAclConfig
13027 urlParams_ gensupport.URLParams
13028 ctx_ context.Context
13029 header_ http.Header
13030 }
13031
13032
13033
13034
13035
13036
13037
13038
13039 func (r *ProjectsLocationsService) UpdateAclConfig(name string, googleclouddiscoveryenginev1alphaaclconfig *GoogleCloudDiscoveryengineV1alphaAclConfig) *ProjectsLocationsUpdateAclConfigCall {
13040 c := &ProjectsLocationsUpdateAclConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13041 c.name = name
13042 c.googleclouddiscoveryenginev1alphaaclconfig = googleclouddiscoveryenginev1alphaaclconfig
13043 return c
13044 }
13045
13046
13047
13048
13049 func (c *ProjectsLocationsUpdateAclConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateAclConfigCall {
13050 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13051 return c
13052 }
13053
13054
13055 func (c *ProjectsLocationsUpdateAclConfigCall) Context(ctx context.Context) *ProjectsLocationsUpdateAclConfigCall {
13056 c.ctx_ = ctx
13057 return c
13058 }
13059
13060
13061
13062 func (c *ProjectsLocationsUpdateAclConfigCall) Header() http.Header {
13063 if c.header_ == nil {
13064 c.header_ = make(http.Header)
13065 }
13066 return c.header_
13067 }
13068
13069 func (c *ProjectsLocationsUpdateAclConfigCall) doRequest(alt string) (*http.Response, error) {
13070 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13071 var body io.Reader = nil
13072 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaaclconfig)
13073 if err != nil {
13074 return nil, err
13075 }
13076 c.urlParams_.Set("alt", alt)
13077 c.urlParams_.Set("prettyPrint", "false")
13078 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
13079 urls += "?" + c.urlParams_.Encode()
13080 req, err := http.NewRequest("PATCH", urls, body)
13081 if err != nil {
13082 return nil, err
13083 }
13084 req.Header = reqHeaders
13085 googleapi.Expand(req.URL, map[string]string{
13086 "name": c.name,
13087 })
13088 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13089 }
13090
13091
13092
13093
13094
13095
13096
13097 func (c *ProjectsLocationsUpdateAclConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAclConfig, error) {
13098 gensupport.SetOptions(c.urlParams_, opts...)
13099 res, err := c.doRequest("json")
13100 if res != nil && res.StatusCode == http.StatusNotModified {
13101 if res.Body != nil {
13102 res.Body.Close()
13103 }
13104 return nil, gensupport.WrapError(&googleapi.Error{
13105 Code: res.StatusCode,
13106 Header: res.Header,
13107 })
13108 }
13109 if err != nil {
13110 return nil, err
13111 }
13112 defer googleapi.CloseBody(res)
13113 if err := googleapi.CheckResponse(res); err != nil {
13114 return nil, gensupport.WrapError(err)
13115 }
13116 ret := &GoogleCloudDiscoveryengineV1alphaAclConfig{
13117 ServerResponse: googleapi.ServerResponse{
13118 Header: res.Header,
13119 HTTPStatusCode: res.StatusCode,
13120 },
13121 }
13122 target := &ret
13123 if err := gensupport.DecodeResponse(target, res); err != nil {
13124 return nil, err
13125 }
13126 return ret, nil
13127 }
13128
13129 type ProjectsLocationsCollectionsDataConnectorOperationsGetCall struct {
13130 s *Service
13131 name string
13132 urlParams_ gensupport.URLParams
13133 ifNoneMatch_ string
13134 ctx_ context.Context
13135 header_ http.Header
13136 }
13137
13138
13139
13140
13141
13142
13143 func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) Get(name string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
13144 c := &ProjectsLocationsCollectionsDataConnectorOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13145 c.name = name
13146 return c
13147 }
13148
13149
13150
13151
13152 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
13153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13154 return c
13155 }
13156
13157
13158
13159
13160 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
13161 c.ifNoneMatch_ = entityTag
13162 return c
13163 }
13164
13165
13166 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsGetCall {
13167 c.ctx_ = ctx
13168 return c
13169 }
13170
13171
13172
13173 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Header() http.Header {
13174 if c.header_ == nil {
13175 c.header_ = make(http.Header)
13176 }
13177 return c.header_
13178 }
13179
13180 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) doRequest(alt string) (*http.Response, error) {
13181 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13182 if c.ifNoneMatch_ != "" {
13183 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13184 }
13185 var body io.Reader = nil
13186 c.urlParams_.Set("alt", alt)
13187 c.urlParams_.Set("prettyPrint", "false")
13188 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
13189 urls += "?" + c.urlParams_.Encode()
13190 req, err := http.NewRequest("GET", urls, body)
13191 if err != nil {
13192 return nil, err
13193 }
13194 req.Header = reqHeaders
13195 googleapi.Expand(req.URL, map[string]string{
13196 "name": c.name,
13197 })
13198 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13199 }
13200
13201
13202
13203
13204
13205
13206
13207 func (c *ProjectsLocationsCollectionsDataConnectorOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13208 gensupport.SetOptions(c.urlParams_, opts...)
13209 res, err := c.doRequest("json")
13210 if res != nil && res.StatusCode == http.StatusNotModified {
13211 if res.Body != nil {
13212 res.Body.Close()
13213 }
13214 return nil, gensupport.WrapError(&googleapi.Error{
13215 Code: res.StatusCode,
13216 Header: res.Header,
13217 })
13218 }
13219 if err != nil {
13220 return nil, err
13221 }
13222 defer googleapi.CloseBody(res)
13223 if err := googleapi.CheckResponse(res); err != nil {
13224 return nil, gensupport.WrapError(err)
13225 }
13226 ret := &GoogleLongrunningOperation{
13227 ServerResponse: googleapi.ServerResponse{
13228 Header: res.Header,
13229 HTTPStatusCode: res.StatusCode,
13230 },
13231 }
13232 target := &ret
13233 if err := gensupport.DecodeResponse(target, res); err != nil {
13234 return nil, err
13235 }
13236 return ret, nil
13237 }
13238
13239 type ProjectsLocationsCollectionsDataConnectorOperationsListCall struct {
13240 s *Service
13241 name string
13242 urlParams_ gensupport.URLParams
13243 ifNoneMatch_ string
13244 ctx_ context.Context
13245 header_ http.Header
13246 }
13247
13248
13249
13250
13251
13252 func (r *ProjectsLocationsCollectionsDataConnectorOperationsService) List(name string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13253 c := &ProjectsLocationsCollectionsDataConnectorOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13254 c.name = name
13255 return c
13256 }
13257
13258
13259 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13260 c.urlParams_.Set("filter", filter)
13261 return c
13262 }
13263
13264
13265
13266 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13267 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
13268 return c
13269 }
13270
13271
13272
13273 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13274 c.urlParams_.Set("pageToken", pageToken)
13275 return c
13276 }
13277
13278
13279
13280
13281 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13282 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13283 return c
13284 }
13285
13286
13287
13288
13289 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13290 c.ifNoneMatch_ = entityTag
13291 return c
13292 }
13293
13294
13295 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataConnectorOperationsListCall {
13296 c.ctx_ = ctx
13297 return c
13298 }
13299
13300
13301
13302 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Header() http.Header {
13303 if c.header_ == nil {
13304 c.header_ = make(http.Header)
13305 }
13306 return c.header_
13307 }
13308
13309 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) doRequest(alt string) (*http.Response, error) {
13310 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13311 if c.ifNoneMatch_ != "" {
13312 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13313 }
13314 var body io.Reader = nil
13315 c.urlParams_.Set("alt", alt)
13316 c.urlParams_.Set("prettyPrint", "false")
13317 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
13318 urls += "?" + c.urlParams_.Encode()
13319 req, err := http.NewRequest("GET", urls, body)
13320 if err != nil {
13321 return nil, err
13322 }
13323 req.Header = reqHeaders
13324 googleapi.Expand(req.URL, map[string]string{
13325 "name": c.name,
13326 })
13327 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13328 }
13329
13330
13331
13332
13333
13334
13335
13336 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
13337 gensupport.SetOptions(c.urlParams_, opts...)
13338 res, err := c.doRequest("json")
13339 if res != nil && res.StatusCode == http.StatusNotModified {
13340 if res.Body != nil {
13341 res.Body.Close()
13342 }
13343 return nil, gensupport.WrapError(&googleapi.Error{
13344 Code: res.StatusCode,
13345 Header: res.Header,
13346 })
13347 }
13348 if err != nil {
13349 return nil, err
13350 }
13351 defer googleapi.CloseBody(res)
13352 if err := googleapi.CheckResponse(res); err != nil {
13353 return nil, gensupport.WrapError(err)
13354 }
13355 ret := &GoogleLongrunningListOperationsResponse{
13356 ServerResponse: googleapi.ServerResponse{
13357 Header: res.Header,
13358 HTTPStatusCode: res.StatusCode,
13359 },
13360 }
13361 target := &ret
13362 if err := gensupport.DecodeResponse(target, res); err != nil {
13363 return nil, err
13364 }
13365 return ret, nil
13366 }
13367
13368
13369
13370
13371 func (c *ProjectsLocationsCollectionsDataConnectorOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
13372 c.ctx_ = ctx
13373 defer c.PageToken(c.urlParams_.Get("pageToken"))
13374 for {
13375 x, err := c.Do()
13376 if err != nil {
13377 return err
13378 }
13379 if err := f(x); err != nil {
13380 return err
13381 }
13382 if x.NextPageToken == "" {
13383 return nil
13384 }
13385 c.PageToken(x.NextPageToken)
13386 }
13387 }
13388
13389 type ProjectsLocationsCollectionsDataStoresCompleteQueryCall struct {
13390 s *Service
13391 dataStore string
13392 urlParams_ gensupport.URLParams
13393 ifNoneMatch_ string
13394 ctx_ context.Context
13395 header_ http.Header
13396 }
13397
13398
13399
13400
13401
13402
13403
13404 func (r *ProjectsLocationsCollectionsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13405 c := &ProjectsLocationsCollectionsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13406 c.dataStore = dataStore
13407 return c
13408 }
13409
13410
13411
13412
13413
13414
13415 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13416 c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
13417 return c
13418 }
13419
13420
13421
13422 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13423 c.urlParams_.Set("query", query)
13424 return c
13425 }
13426
13427
13428
13429
13430
13431
13432
13433
13434
13435
13436
13437
13438
13439 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13440 c.urlParams_.Set("queryModel", queryModel)
13441 return c
13442 }
13443
13444
13445
13446
13447
13448
13449
13450
13451
13452
13453 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13454 c.urlParams_.Set("userPseudoId", userPseudoId)
13455 return c
13456 }
13457
13458
13459
13460
13461 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13462 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13463 return c
13464 }
13465
13466
13467
13468
13469 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13470 c.ifNoneMatch_ = entityTag
13471 return c
13472 }
13473
13474
13475 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCompleteQueryCall {
13476 c.ctx_ = ctx
13477 return c
13478 }
13479
13480
13481
13482 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Header() http.Header {
13483 if c.header_ == nil {
13484 c.header_ = make(http.Header)
13485 }
13486 return c.header_
13487 }
13488
13489 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
13490 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13491 if c.ifNoneMatch_ != "" {
13492 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13493 }
13494 var body io.Reader = nil
13495 c.urlParams_.Set("alt", alt)
13496 c.urlParams_.Set("prettyPrint", "false")
13497 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}:completeQuery")
13498 urls += "?" + c.urlParams_.Encode()
13499 req, err := http.NewRequest("GET", urls, body)
13500 if err != nil {
13501 return nil, err
13502 }
13503 req.Header = reqHeaders
13504 googleapi.Expand(req.URL, map[string]string{
13505 "dataStore": c.dataStore,
13506 })
13507 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13508 }
13509
13510
13511
13512
13513
13514
13515
13516
13517
13518 func (c *ProjectsLocationsCollectionsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse, error) {
13519 gensupport.SetOptions(c.urlParams_, opts...)
13520 res, err := c.doRequest("json")
13521 if res != nil && res.StatusCode == http.StatusNotModified {
13522 if res.Body != nil {
13523 res.Body.Close()
13524 }
13525 return nil, gensupport.WrapError(&googleapi.Error{
13526 Code: res.StatusCode,
13527 Header: res.Header,
13528 })
13529 }
13530 if err != nil {
13531 return nil, err
13532 }
13533 defer googleapi.CloseBody(res)
13534 if err := googleapi.CheckResponse(res); err != nil {
13535 return nil, gensupport.WrapError(err)
13536 }
13537 ret := &GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse{
13538 ServerResponse: googleapi.ServerResponse{
13539 Header: res.Header,
13540 HTTPStatusCode: res.StatusCode,
13541 },
13542 }
13543 target := &ret
13544 if err := gensupport.DecodeResponse(target, res); err != nil {
13545 return nil, err
13546 }
13547 return ret, nil
13548 }
13549
13550 type ProjectsLocationsCollectionsDataStoresCreateCall struct {
13551 s *Service
13552 parent string
13553 googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
13554 urlParams_ gensupport.URLParams
13555 ctx_ context.Context
13556 header_ http.Header
13557 }
13558
13559
13560
13561
13562
13563
13564
13565 func (r *ProjectsLocationsCollectionsDataStoresService) Create(parent string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsCollectionsDataStoresCreateCall {
13566 c := &ProjectsLocationsCollectionsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13567 c.parent = parent
13568 c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
13569 return c
13570 }
13571
13572
13573
13574
13575
13576
13577 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsCollectionsDataStoresCreateCall {
13578 c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
13579 return c
13580 }
13581
13582
13583
13584
13585
13586
13587 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsCollectionsDataStoresCreateCall {
13588 c.urlParams_.Set("dataStoreId", dataStoreId)
13589 return c
13590 }
13591
13592
13593
13594
13595 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCreateCall {
13596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13597 return c
13598 }
13599
13600
13601 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCreateCall {
13602 c.ctx_ = ctx
13603 return c
13604 }
13605
13606
13607
13608 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Header() http.Header {
13609 if c.header_ == nil {
13610 c.header_ = make(http.Header)
13611 }
13612 return c.header_
13613 }
13614
13615 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
13616 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
13617 var body io.Reader = nil
13618 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
13619 if err != nil {
13620 return nil, err
13621 }
13622 c.urlParams_.Set("alt", alt)
13623 c.urlParams_.Set("prettyPrint", "false")
13624 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
13625 urls += "?" + c.urlParams_.Encode()
13626 req, err := http.NewRequest("POST", urls, body)
13627 if err != nil {
13628 return nil, err
13629 }
13630 req.Header = reqHeaders
13631 googleapi.Expand(req.URL, map[string]string{
13632 "parent": c.parent,
13633 })
13634 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13635 }
13636
13637
13638
13639
13640
13641
13642
13643 func (c *ProjectsLocationsCollectionsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13644 gensupport.SetOptions(c.urlParams_, opts...)
13645 res, err := c.doRequest("json")
13646 if res != nil && res.StatusCode == http.StatusNotModified {
13647 if res.Body != nil {
13648 res.Body.Close()
13649 }
13650 return nil, gensupport.WrapError(&googleapi.Error{
13651 Code: res.StatusCode,
13652 Header: res.Header,
13653 })
13654 }
13655 if err != nil {
13656 return nil, err
13657 }
13658 defer googleapi.CloseBody(res)
13659 if err := googleapi.CheckResponse(res); err != nil {
13660 return nil, gensupport.WrapError(err)
13661 }
13662 ret := &GoogleLongrunningOperation{
13663 ServerResponse: googleapi.ServerResponse{
13664 Header: res.Header,
13665 HTTPStatusCode: res.StatusCode,
13666 },
13667 }
13668 target := &ret
13669 if err := gensupport.DecodeResponse(target, res); err != nil {
13670 return nil, err
13671 }
13672 return ret, nil
13673 }
13674
13675 type ProjectsLocationsCollectionsDataStoresDeleteCall struct {
13676 s *Service
13677 name string
13678 urlParams_ gensupport.URLParams
13679 ctx_ context.Context
13680 header_ http.Header
13681 }
13682
13683
13684
13685
13686
13687
13688
13689
13690
13691 func (r *ProjectsLocationsCollectionsDataStoresService) Delete(name string) *ProjectsLocationsCollectionsDataStoresDeleteCall {
13692 c := &ProjectsLocationsCollectionsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13693 c.name = name
13694 return c
13695 }
13696
13697
13698
13699
13700 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresDeleteCall {
13701 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13702 return c
13703 }
13704
13705
13706 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresDeleteCall {
13707 c.ctx_ = ctx
13708 return c
13709 }
13710
13711
13712
13713 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Header() http.Header {
13714 if c.header_ == nil {
13715 c.header_ = make(http.Header)
13716 }
13717 return c.header_
13718 }
13719
13720 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
13721 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13722 var body io.Reader = nil
13723 c.urlParams_.Set("alt", alt)
13724 c.urlParams_.Set("prettyPrint", "false")
13725 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
13726 urls += "?" + c.urlParams_.Encode()
13727 req, err := http.NewRequest("DELETE", urls, body)
13728 if err != nil {
13729 return nil, err
13730 }
13731 req.Header = reqHeaders
13732 googleapi.Expand(req.URL, map[string]string{
13733 "name": c.name,
13734 })
13735 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13736 }
13737
13738
13739
13740
13741
13742
13743
13744 func (c *ProjectsLocationsCollectionsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
13745 gensupport.SetOptions(c.urlParams_, opts...)
13746 res, err := c.doRequest("json")
13747 if res != nil && res.StatusCode == http.StatusNotModified {
13748 if res.Body != nil {
13749 res.Body.Close()
13750 }
13751 return nil, gensupport.WrapError(&googleapi.Error{
13752 Code: res.StatusCode,
13753 Header: res.Header,
13754 })
13755 }
13756 if err != nil {
13757 return nil, err
13758 }
13759 defer googleapi.CloseBody(res)
13760 if err := googleapi.CheckResponse(res); err != nil {
13761 return nil, gensupport.WrapError(err)
13762 }
13763 ret := &GoogleLongrunningOperation{
13764 ServerResponse: googleapi.ServerResponse{
13765 Header: res.Header,
13766 HTTPStatusCode: res.StatusCode,
13767 },
13768 }
13769 target := &ret
13770 if err := gensupport.DecodeResponse(target, res); err != nil {
13771 return nil, err
13772 }
13773 return ret, nil
13774 }
13775
13776 type ProjectsLocationsCollectionsDataStoresGetCall struct {
13777 s *Service
13778 name string
13779 urlParams_ gensupport.URLParams
13780 ifNoneMatch_ string
13781 ctx_ context.Context
13782 header_ http.Header
13783 }
13784
13785
13786
13787
13788
13789
13790
13791
13792
13793 func (r *ProjectsLocationsCollectionsDataStoresService) Get(name string) *ProjectsLocationsCollectionsDataStoresGetCall {
13794 c := &ProjectsLocationsCollectionsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13795 c.name = name
13796 return c
13797 }
13798
13799
13800
13801
13802 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetCall {
13803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13804 return c
13805 }
13806
13807
13808
13809
13810 func (c *ProjectsLocationsCollectionsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetCall {
13811 c.ifNoneMatch_ = entityTag
13812 return c
13813 }
13814
13815
13816 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetCall {
13817 c.ctx_ = ctx
13818 return c
13819 }
13820
13821
13822
13823 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Header() http.Header {
13824 if c.header_ == nil {
13825 c.header_ = make(http.Header)
13826 }
13827 return c.header_
13828 }
13829
13830 func (c *ProjectsLocationsCollectionsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
13831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13832 if c.ifNoneMatch_ != "" {
13833 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13834 }
13835 var body io.Reader = nil
13836 c.urlParams_.Set("alt", alt)
13837 c.urlParams_.Set("prettyPrint", "false")
13838 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
13839 urls += "?" + c.urlParams_.Encode()
13840 req, err := http.NewRequest("GET", urls, body)
13841 if err != nil {
13842 return nil, err
13843 }
13844 req.Header = reqHeaders
13845 googleapi.Expand(req.URL, map[string]string{
13846 "name": c.name,
13847 })
13848 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13849 }
13850
13851
13852
13853
13854
13855
13856
13857 func (c *ProjectsLocationsCollectionsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
13858 gensupport.SetOptions(c.urlParams_, opts...)
13859 res, err := c.doRequest("json")
13860 if res != nil && res.StatusCode == http.StatusNotModified {
13861 if res.Body != nil {
13862 res.Body.Close()
13863 }
13864 return nil, gensupport.WrapError(&googleapi.Error{
13865 Code: res.StatusCode,
13866 Header: res.Header,
13867 })
13868 }
13869 if err != nil {
13870 return nil, err
13871 }
13872 defer googleapi.CloseBody(res)
13873 if err := googleapi.CheckResponse(res); err != nil {
13874 return nil, gensupport.WrapError(err)
13875 }
13876 ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
13877 ServerResponse: googleapi.ServerResponse{
13878 Header: res.Header,
13879 HTTPStatusCode: res.StatusCode,
13880 },
13881 }
13882 target := &ret
13883 if err := gensupport.DecodeResponse(target, res); err != nil {
13884 return nil, err
13885 }
13886 return ret, nil
13887 }
13888
13889 type ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall struct {
13890 s *Service
13891 name string
13892 urlParams_ gensupport.URLParams
13893 ifNoneMatch_ string
13894 ctx_ context.Context
13895 header_ http.Header
13896 }
13897
13898
13899
13900
13901
13902
13903 func (r *ProjectsLocationsCollectionsDataStoresService) GetDocumentProcessingConfig(name string) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
13904 c := &ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
13905 c.name = name
13906 return c
13907 }
13908
13909
13910
13911
13912 func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
13913 c.urlParams_.Set("fields", googleapi.CombineFields(s))
13914 return c
13915 }
13916
13917
13918
13919
13920 func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
13921 c.ifNoneMatch_ = entityTag
13922 return c
13923 }
13924
13925
13926 func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall {
13927 c.ctx_ = ctx
13928 return c
13929 }
13930
13931
13932
13933 func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Header() http.Header {
13934 if c.header_ == nil {
13935 c.header_ = make(http.Header)
13936 }
13937 return c.header_
13938 }
13939
13940 func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
13941 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
13942 if c.ifNoneMatch_ != "" {
13943 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
13944 }
13945 var body io.Reader = nil
13946 c.urlParams_.Set("alt", alt)
13947 c.urlParams_.Set("prettyPrint", "false")
13948 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
13949 urls += "?" + c.urlParams_.Encode()
13950 req, err := http.NewRequest("GET", urls, body)
13951 if err != nil {
13952 return nil, err
13953 }
13954 req.Header = reqHeaders
13955 googleapi.Expand(req.URL, map[string]string{
13956 "name": c.name,
13957 })
13958 return gensupport.SendRequest(c.ctx_, c.s.client, req)
13959 }
13960
13961
13962
13963
13964
13965
13966
13967 func (c *ProjectsLocationsCollectionsDataStoresGetDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
13968 gensupport.SetOptions(c.urlParams_, opts...)
13969 res, err := c.doRequest("json")
13970 if res != nil && res.StatusCode == http.StatusNotModified {
13971 if res.Body != nil {
13972 res.Body.Close()
13973 }
13974 return nil, gensupport.WrapError(&googleapi.Error{
13975 Code: res.StatusCode,
13976 Header: res.Header,
13977 })
13978 }
13979 if err != nil {
13980 return nil, err
13981 }
13982 defer googleapi.CloseBody(res)
13983 if err := googleapi.CheckResponse(res); err != nil {
13984 return nil, gensupport.WrapError(err)
13985 }
13986 ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
13987 ServerResponse: googleapi.ServerResponse{
13988 Header: res.Header,
13989 HTTPStatusCode: res.StatusCode,
13990 },
13991 }
13992 target := &ret
13993 if err := gensupport.DecodeResponse(target, res); err != nil {
13994 return nil, err
13995 }
13996 return ret, nil
13997 }
13998
13999 type ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall struct {
14000 s *Service
14001 name string
14002 urlParams_ gensupport.URLParams
14003 ifNoneMatch_ string
14004 ctx_ context.Context
14005 header_ http.Header
14006 }
14007
14008
14009
14010
14011
14012
14013
14014
14015 func (r *ProjectsLocationsCollectionsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
14016 c := &ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14017 c.name = name
14018 return c
14019 }
14020
14021
14022
14023
14024 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
14025 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14026 return c
14027 }
14028
14029
14030
14031
14032 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
14033 c.ifNoneMatch_ = entityTag
14034 return c
14035 }
14036
14037
14038 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall {
14039 c.ctx_ = ctx
14040 return c
14041 }
14042
14043
14044
14045 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Header() http.Header {
14046 if c.header_ == nil {
14047 c.header_ = make(http.Header)
14048 }
14049 return c.header_
14050 }
14051
14052 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
14053 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14054 if c.ifNoneMatch_ != "" {
14055 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14056 }
14057 var body io.Reader = nil
14058 c.urlParams_.Set("alt", alt)
14059 c.urlParams_.Set("prettyPrint", "false")
14060 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
14061 urls += "?" + c.urlParams_.Encode()
14062 req, err := http.NewRequest("GET", urls, body)
14063 if err != nil {
14064 return nil, err
14065 }
14066 req.Header = reqHeaders
14067 googleapi.Expand(req.URL, map[string]string{
14068 "name": c.name,
14069 })
14070 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14071 }
14072
14073
14074
14075
14076
14077
14078
14079 func (c *ProjectsLocationsCollectionsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSiteSearchEngine, error) {
14080 gensupport.SetOptions(c.urlParams_, opts...)
14081 res, err := c.doRequest("json")
14082 if res != nil && res.StatusCode == http.StatusNotModified {
14083 if res.Body != nil {
14084 res.Body.Close()
14085 }
14086 return nil, gensupport.WrapError(&googleapi.Error{
14087 Code: res.StatusCode,
14088 Header: res.Header,
14089 })
14090 }
14091 if err != nil {
14092 return nil, err
14093 }
14094 defer googleapi.CloseBody(res)
14095 if err := googleapi.CheckResponse(res); err != nil {
14096 return nil, gensupport.WrapError(err)
14097 }
14098 ret := &GoogleCloudDiscoveryengineV1alphaSiteSearchEngine{
14099 ServerResponse: googleapi.ServerResponse{
14100 Header: res.Header,
14101 HTTPStatusCode: res.StatusCode,
14102 },
14103 }
14104 target := &ret
14105 if err := gensupport.DecodeResponse(target, res); err != nil {
14106 return nil, err
14107 }
14108 return ret, nil
14109 }
14110
14111 type ProjectsLocationsCollectionsDataStoresListCall struct {
14112 s *Service
14113 parent string
14114 urlParams_ gensupport.URLParams
14115 ifNoneMatch_ string
14116 ctx_ context.Context
14117 header_ http.Header
14118 }
14119
14120
14121
14122
14123
14124
14125
14126
14127 func (r *ProjectsLocationsCollectionsDataStoresService) List(parent string) *ProjectsLocationsCollectionsDataStoresListCall {
14128 c := &ProjectsLocationsCollectionsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14129 c.parent = parent
14130 return c
14131 }
14132
14133
14134
14135 func (c *ProjectsLocationsCollectionsDataStoresListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresListCall {
14136 c.urlParams_.Set("filter", filter)
14137 return c
14138 }
14139
14140
14141
14142
14143
14144 func (c *ProjectsLocationsCollectionsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresListCall {
14145 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
14146 return c
14147 }
14148
14149
14150
14151
14152
14153
14154
14155 func (c *ProjectsLocationsCollectionsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresListCall {
14156 c.urlParams_.Set("pageToken", pageToken)
14157 return c
14158 }
14159
14160
14161
14162
14163 func (c *ProjectsLocationsCollectionsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresListCall {
14164 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14165 return c
14166 }
14167
14168
14169
14170
14171 func (c *ProjectsLocationsCollectionsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresListCall {
14172 c.ifNoneMatch_ = entityTag
14173 return c
14174 }
14175
14176
14177 func (c *ProjectsLocationsCollectionsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresListCall {
14178 c.ctx_ = ctx
14179 return c
14180 }
14181
14182
14183
14184 func (c *ProjectsLocationsCollectionsDataStoresListCall) Header() http.Header {
14185 if c.header_ == nil {
14186 c.header_ = make(http.Header)
14187 }
14188 return c.header_
14189 }
14190
14191 func (c *ProjectsLocationsCollectionsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
14192 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14193 if c.ifNoneMatch_ != "" {
14194 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14195 }
14196 var body io.Reader = nil
14197 c.urlParams_.Set("alt", alt)
14198 c.urlParams_.Set("prettyPrint", "false")
14199 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
14200 urls += "?" + c.urlParams_.Encode()
14201 req, err := http.NewRequest("GET", urls, body)
14202 if err != nil {
14203 return nil, err
14204 }
14205 req.Header = reqHeaders
14206 googleapi.Expand(req.URL, map[string]string{
14207 "parent": c.parent,
14208 })
14209 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14210 }
14211
14212
14213
14214
14215
14216
14217
14218 func (c *ProjectsLocationsCollectionsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse, error) {
14219 gensupport.SetOptions(c.urlParams_, opts...)
14220 res, err := c.doRequest("json")
14221 if res != nil && res.StatusCode == http.StatusNotModified {
14222 if res.Body != nil {
14223 res.Body.Close()
14224 }
14225 return nil, gensupport.WrapError(&googleapi.Error{
14226 Code: res.StatusCode,
14227 Header: res.Header,
14228 })
14229 }
14230 if err != nil {
14231 return nil, err
14232 }
14233 defer googleapi.CloseBody(res)
14234 if err := googleapi.CheckResponse(res); err != nil {
14235 return nil, gensupport.WrapError(err)
14236 }
14237 ret := &GoogleCloudDiscoveryengineV1alphaListDataStoresResponse{
14238 ServerResponse: googleapi.ServerResponse{
14239 Header: res.Header,
14240 HTTPStatusCode: res.StatusCode,
14241 },
14242 }
14243 target := &ret
14244 if err := gensupport.DecodeResponse(target, res); err != nil {
14245 return nil, err
14246 }
14247 return ret, nil
14248 }
14249
14250
14251
14252
14253 func (c *ProjectsLocationsCollectionsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse) error) error {
14254 c.ctx_ = ctx
14255 defer c.PageToken(c.urlParams_.Get("pageToken"))
14256 for {
14257 x, err := c.Do()
14258 if err != nil {
14259 return err
14260 }
14261 if err := f(x); err != nil {
14262 return err
14263 }
14264 if x.NextPageToken == "" {
14265 return nil
14266 }
14267 c.PageToken(x.NextPageToken)
14268 }
14269 }
14270
14271 type ProjectsLocationsCollectionsDataStoresPatchCall struct {
14272 s *Service
14273 name string
14274 googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
14275 urlParams_ gensupport.URLParams
14276 ctx_ context.Context
14277 header_ http.Header
14278 }
14279
14280
14281
14282
14283
14284
14285
14286 func (r *ProjectsLocationsCollectionsDataStoresService) Patch(name string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsCollectionsDataStoresPatchCall {
14287 c := &ProjectsLocationsCollectionsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14288 c.name = name
14289 c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
14290 return c
14291 }
14292
14293
14294
14295
14296 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresPatchCall {
14297 c.urlParams_.Set("updateMask", updateMask)
14298 return c
14299 }
14300
14301
14302
14303
14304 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresPatchCall {
14305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14306 return c
14307 }
14308
14309
14310 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresPatchCall {
14311 c.ctx_ = ctx
14312 return c
14313 }
14314
14315
14316
14317 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Header() http.Header {
14318 if c.header_ == nil {
14319 c.header_ = make(http.Header)
14320 }
14321 return c.header_
14322 }
14323
14324 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
14325 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14326 var body io.Reader = nil
14327 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
14328 if err != nil {
14329 return nil, err
14330 }
14331 c.urlParams_.Set("alt", alt)
14332 c.urlParams_.Set("prettyPrint", "false")
14333 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
14334 urls += "?" + c.urlParams_.Encode()
14335 req, err := http.NewRequest("PATCH", urls, body)
14336 if err != nil {
14337 return nil, err
14338 }
14339 req.Header = reqHeaders
14340 googleapi.Expand(req.URL, map[string]string{
14341 "name": c.name,
14342 })
14343 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14344 }
14345
14346
14347
14348
14349
14350
14351
14352 func (c *ProjectsLocationsCollectionsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
14353 gensupport.SetOptions(c.urlParams_, opts...)
14354 res, err := c.doRequest("json")
14355 if res != nil && res.StatusCode == http.StatusNotModified {
14356 if res.Body != nil {
14357 res.Body.Close()
14358 }
14359 return nil, gensupport.WrapError(&googleapi.Error{
14360 Code: res.StatusCode,
14361 Header: res.Header,
14362 })
14363 }
14364 if err != nil {
14365 return nil, err
14366 }
14367 defer googleapi.CloseBody(res)
14368 if err := googleapi.CheckResponse(res); err != nil {
14369 return nil, gensupport.WrapError(err)
14370 }
14371 ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
14372 ServerResponse: googleapi.ServerResponse{
14373 Header: res.Header,
14374 HTTPStatusCode: res.StatusCode,
14375 },
14376 }
14377 target := &ret
14378 if err := gensupport.DecodeResponse(target, res); err != nil {
14379 return nil, err
14380 }
14381 return ret, nil
14382 }
14383
14384 type ProjectsLocationsCollectionsDataStoresTrainCustomModelCall struct {
14385 s *Service
14386 dataStore string
14387 googleclouddiscoveryenginev1alphatraincustommodelrequest *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest
14388 urlParams_ gensupport.URLParams
14389 ctx_ context.Context
14390 header_ http.Header
14391 }
14392
14393
14394
14395
14396
14397
14398
14399 func (r *ProjectsLocationsCollectionsDataStoresService) TrainCustomModel(dataStore string, googleclouddiscoveryenginev1alphatraincustommodelrequest *GoogleCloudDiscoveryengineV1alphaTrainCustomModelRequest) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
14400 c := &ProjectsLocationsCollectionsDataStoresTrainCustomModelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14401 c.dataStore = dataStore
14402 c.googleclouddiscoveryenginev1alphatraincustommodelrequest = googleclouddiscoveryenginev1alphatraincustommodelrequest
14403 return c
14404 }
14405
14406
14407
14408
14409 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
14410 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14411 return c
14412 }
14413
14414
14415 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall {
14416 c.ctx_ = ctx
14417 return c
14418 }
14419
14420
14421
14422 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Header() http.Header {
14423 if c.header_ == nil {
14424 c.header_ = make(http.Header)
14425 }
14426 return c.header_
14427 }
14428
14429 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) doRequest(alt string) (*http.Response, error) {
14430 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14431 var body io.Reader = nil
14432 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatraincustommodelrequest)
14433 if err != nil {
14434 return nil, err
14435 }
14436 c.urlParams_.Set("alt", alt)
14437 c.urlParams_.Set("prettyPrint", "false")
14438 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}:trainCustomModel")
14439 urls += "?" + c.urlParams_.Encode()
14440 req, err := http.NewRequest("POST", urls, body)
14441 if err != nil {
14442 return nil, err
14443 }
14444 req.Header = reqHeaders
14445 googleapi.Expand(req.URL, map[string]string{
14446 "dataStore": c.dataStore,
14447 })
14448 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14449 }
14450
14451
14452
14453
14454
14455
14456
14457 func (c *ProjectsLocationsCollectionsDataStoresTrainCustomModelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
14458 gensupport.SetOptions(c.urlParams_, opts...)
14459 res, err := c.doRequest("json")
14460 if res != nil && res.StatusCode == http.StatusNotModified {
14461 if res.Body != nil {
14462 res.Body.Close()
14463 }
14464 return nil, gensupport.WrapError(&googleapi.Error{
14465 Code: res.StatusCode,
14466 Header: res.Header,
14467 })
14468 }
14469 if err != nil {
14470 return nil, err
14471 }
14472 defer googleapi.CloseBody(res)
14473 if err := googleapi.CheckResponse(res); err != nil {
14474 return nil, gensupport.WrapError(err)
14475 }
14476 ret := &GoogleLongrunningOperation{
14477 ServerResponse: googleapi.ServerResponse{
14478 Header: res.Header,
14479 HTTPStatusCode: res.StatusCode,
14480 },
14481 }
14482 target := &ret
14483 if err := gensupport.DecodeResponse(target, res); err != nil {
14484 return nil, err
14485 }
14486 return ret, nil
14487 }
14488
14489 type ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall struct {
14490 s *Service
14491 name string
14492 googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
14493 urlParams_ gensupport.URLParams
14494 ctx_ context.Context
14495 header_ http.Header
14496 }
14497
14498
14499
14500
14501
14502
14503
14504
14505
14506 func (r *ProjectsLocationsCollectionsDataStoresService) UpdateDocumentProcessingConfig(name string, googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
14507 c := &ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14508 c.name = name
14509 c.googleclouddiscoveryenginev1alphadocumentprocessingconfig = googleclouddiscoveryenginev1alphadocumentprocessingconfig
14510 return c
14511 }
14512
14513
14514
14515
14516
14517 func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
14518 c.urlParams_.Set("updateMask", updateMask)
14519 return c
14520 }
14521
14522
14523
14524
14525 func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
14526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14527 return c
14528 }
14529
14530
14531 func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall {
14532 c.ctx_ = ctx
14533 return c
14534 }
14535
14536
14537
14538 func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Header() http.Header {
14539 if c.header_ == nil {
14540 c.header_ = make(http.Header)
14541 }
14542 return c.header_
14543 }
14544
14545 func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
14546 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14547 var body io.Reader = nil
14548 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocumentprocessingconfig)
14549 if err != nil {
14550 return nil, err
14551 }
14552 c.urlParams_.Set("alt", alt)
14553 c.urlParams_.Set("prettyPrint", "false")
14554 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
14555 urls += "?" + c.urlParams_.Encode()
14556 req, err := http.NewRequest("PATCH", urls, body)
14557 if err != nil {
14558 return nil, err
14559 }
14560 req.Header = reqHeaders
14561 googleapi.Expand(req.URL, map[string]string{
14562 "name": c.name,
14563 })
14564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14565 }
14566
14567
14568
14569
14570
14571
14572
14573 func (c *ProjectsLocationsCollectionsDataStoresUpdateDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
14574 gensupport.SetOptions(c.urlParams_, opts...)
14575 res, err := c.doRequest("json")
14576 if res != nil && res.StatusCode == http.StatusNotModified {
14577 if res.Body != nil {
14578 res.Body.Close()
14579 }
14580 return nil, gensupport.WrapError(&googleapi.Error{
14581 Code: res.StatusCode,
14582 Header: res.Header,
14583 })
14584 }
14585 if err != nil {
14586 return nil, err
14587 }
14588 defer googleapi.CloseBody(res)
14589 if err := googleapi.CheckResponse(res); err != nil {
14590 return nil, gensupport.WrapError(err)
14591 }
14592 ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
14593 ServerResponse: googleapi.ServerResponse{
14594 Header: res.Header,
14595 HTTPStatusCode: res.StatusCode,
14596 },
14597 }
14598 target := &ret
14599 if err := gensupport.DecodeResponse(target, res); err != nil {
14600 return nil, err
14601 }
14602 return ret, nil
14603 }
14604
14605 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall struct {
14606 s *Service
14607 parent string
14608 googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
14609 urlParams_ gensupport.URLParams
14610 ctx_ context.Context
14611 header_ http.Header
14612 }
14613
14614
14615
14616
14617
14618
14619 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
14620 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14621 c.parent = parent
14622 c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
14623 return c
14624 }
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
14636 c.urlParams_.Set("documentId", documentId)
14637 return c
14638 }
14639
14640
14641
14642
14643 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
14644 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14645 return c
14646 }
14647
14648
14649 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall {
14650 c.ctx_ = ctx
14651 return c
14652 }
14653
14654
14655
14656 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
14657 if c.header_ == nil {
14658 c.header_ = make(http.Header)
14659 }
14660 return c.header_
14661 }
14662
14663 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
14664 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
14665 var body io.Reader = nil
14666 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
14667 if err != nil {
14668 return nil, err
14669 }
14670 c.urlParams_.Set("alt", alt)
14671 c.urlParams_.Set("prettyPrint", "false")
14672 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
14673 urls += "?" + c.urlParams_.Encode()
14674 req, err := http.NewRequest("POST", urls, body)
14675 if err != nil {
14676 return nil, err
14677 }
14678 req.Header = reqHeaders
14679 googleapi.Expand(req.URL, map[string]string{
14680 "parent": c.parent,
14681 })
14682 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14683 }
14684
14685
14686
14687
14688
14689
14690
14691 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
14692 gensupport.SetOptions(c.urlParams_, opts...)
14693 res, err := c.doRequest("json")
14694 if res != nil && res.StatusCode == http.StatusNotModified {
14695 if res.Body != nil {
14696 res.Body.Close()
14697 }
14698 return nil, gensupport.WrapError(&googleapi.Error{
14699 Code: res.StatusCode,
14700 Header: res.Header,
14701 })
14702 }
14703 if err != nil {
14704 return nil, err
14705 }
14706 defer googleapi.CloseBody(res)
14707 if err := googleapi.CheckResponse(res); err != nil {
14708 return nil, gensupport.WrapError(err)
14709 }
14710 ret := &GoogleCloudDiscoveryengineV1alphaDocument{
14711 ServerResponse: googleapi.ServerResponse{
14712 Header: res.Header,
14713 HTTPStatusCode: res.StatusCode,
14714 },
14715 }
14716 target := &ret
14717 if err := gensupport.DecodeResponse(target, res); err != nil {
14718 return nil, err
14719 }
14720 return ret, nil
14721 }
14722
14723 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall struct {
14724 s *Service
14725 name string
14726 urlParams_ gensupport.URLParams
14727 ctx_ context.Context
14728 header_ http.Header
14729 }
14730
14731
14732
14733
14734
14735
14736
14737
14738
14739 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
14740 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14741 c.name = name
14742 return c
14743 }
14744
14745
14746
14747
14748 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
14749 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14750 return c
14751 }
14752
14753
14754 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall {
14755 c.ctx_ = ctx
14756 return c
14757 }
14758
14759
14760
14761 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
14762 if c.header_ == nil {
14763 c.header_ = make(http.Header)
14764 }
14765 return c.header_
14766 }
14767
14768 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
14769 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14770 var body io.Reader = nil
14771 c.urlParams_.Set("alt", alt)
14772 c.urlParams_.Set("prettyPrint", "false")
14773 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
14774 urls += "?" + c.urlParams_.Encode()
14775 req, err := http.NewRequest("DELETE", urls, body)
14776 if err != nil {
14777 return nil, err
14778 }
14779 req.Header = reqHeaders
14780 googleapi.Expand(req.URL, map[string]string{
14781 "name": c.name,
14782 })
14783 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14784 }
14785
14786
14787
14788
14789
14790
14791
14792 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
14793 gensupport.SetOptions(c.urlParams_, opts...)
14794 res, err := c.doRequest("json")
14795 if res != nil && res.StatusCode == http.StatusNotModified {
14796 if res.Body != nil {
14797 res.Body.Close()
14798 }
14799 return nil, gensupport.WrapError(&googleapi.Error{
14800 Code: res.StatusCode,
14801 Header: res.Header,
14802 })
14803 }
14804 if err != nil {
14805 return nil, err
14806 }
14807 defer googleapi.CloseBody(res)
14808 if err := googleapi.CheckResponse(res); err != nil {
14809 return nil, gensupport.WrapError(err)
14810 }
14811 ret := &GoogleProtobufEmpty{
14812 ServerResponse: googleapi.ServerResponse{
14813 Header: res.Header,
14814 HTTPStatusCode: res.StatusCode,
14815 },
14816 }
14817 target := &ret
14818 if err := gensupport.DecodeResponse(target, res); err != nil {
14819 return nil, err
14820 }
14821 return ret, nil
14822 }
14823
14824 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall struct {
14825 s *Service
14826 name string
14827 urlParams_ gensupport.URLParams
14828 ifNoneMatch_ string
14829 ctx_ context.Context
14830 header_ http.Header
14831 }
14832
14833
14834
14835
14836
14837
14838
14839
14840
14841 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
14842 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14843 c.name = name
14844 return c
14845 }
14846
14847
14848
14849
14850 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
14851 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14852 return c
14853 }
14854
14855
14856
14857
14858 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
14859 c.ifNoneMatch_ = entityTag
14860 return c
14861 }
14862
14863
14864 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall {
14865 c.ctx_ = ctx
14866 return c
14867 }
14868
14869
14870
14871 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Header() http.Header {
14872 if c.header_ == nil {
14873 c.header_ = make(http.Header)
14874 }
14875 return c.header_
14876 }
14877
14878 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
14879 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
14880 if c.ifNoneMatch_ != "" {
14881 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
14882 }
14883 var body io.Reader = nil
14884 c.urlParams_.Set("alt", alt)
14885 c.urlParams_.Set("prettyPrint", "false")
14886 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
14887 urls += "?" + c.urlParams_.Encode()
14888 req, err := http.NewRequest("GET", urls, body)
14889 if err != nil {
14890 return nil, err
14891 }
14892 req.Header = reqHeaders
14893 googleapi.Expand(req.URL, map[string]string{
14894 "name": c.name,
14895 })
14896 return gensupport.SendRequest(c.ctx_, c.s.client, req)
14897 }
14898
14899
14900
14901
14902
14903
14904
14905 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
14906 gensupport.SetOptions(c.urlParams_, opts...)
14907 res, err := c.doRequest("json")
14908 if res != nil && res.StatusCode == http.StatusNotModified {
14909 if res.Body != nil {
14910 res.Body.Close()
14911 }
14912 return nil, gensupport.WrapError(&googleapi.Error{
14913 Code: res.StatusCode,
14914 Header: res.Header,
14915 })
14916 }
14917 if err != nil {
14918 return nil, err
14919 }
14920 defer googleapi.CloseBody(res)
14921 if err := googleapi.CheckResponse(res); err != nil {
14922 return nil, gensupport.WrapError(err)
14923 }
14924 ret := &GoogleCloudDiscoveryengineV1alphaDocument{
14925 ServerResponse: googleapi.ServerResponse{
14926 Header: res.Header,
14927 HTTPStatusCode: res.StatusCode,
14928 },
14929 }
14930 target := &ret
14931 if err := gensupport.DecodeResponse(target, res); err != nil {
14932 return nil, err
14933 }
14934 return ret, nil
14935 }
14936
14937 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall struct {
14938 s *Service
14939 name string
14940 urlParams_ gensupport.URLParams
14941 ifNoneMatch_ string
14942 ctx_ context.Context
14943 header_ http.Header
14944 }
14945
14946
14947
14948
14949
14950
14951
14952
14953
14954 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) GetProcessedDocument(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
14955 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
14956 c.name = name
14957 return c
14958 }
14959
14960
14961
14962
14963
14964
14965
14966
14967
14968
14969
14970 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentFormat(processedDocumentFormat string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
14971 c.urlParams_.Set("processedDocumentFormat", processedDocumentFormat)
14972 return c
14973 }
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988
14989 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentType(processedDocumentType string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
14990 c.urlParams_.Set("processedDocumentType", processedDocumentType)
14991 return c
14992 }
14993
14994
14995
14996
14997 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
14998 c.urlParams_.Set("fields", googleapi.CombineFields(s))
14999 return c
15000 }
15001
15002
15003
15004
15005 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
15006 c.ifNoneMatch_ = entityTag
15007 return c
15008 }
15009
15010
15011 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall {
15012 c.ctx_ = ctx
15013 return c
15014 }
15015
15016
15017
15018 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Header() http.Header {
15019 if c.header_ == nil {
15020 c.header_ = make(http.Header)
15021 }
15022 return c.header_
15023 }
15024
15025 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) doRequest(alt string) (*http.Response, error) {
15026 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15027 if c.ifNoneMatch_ != "" {
15028 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15029 }
15030 var body io.Reader = nil
15031 c.urlParams_.Set("alt", alt)
15032 c.urlParams_.Set("prettyPrint", "false")
15033 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:getProcessedDocument")
15034 urls += "?" + c.urlParams_.Encode()
15035 req, err := http.NewRequest("GET", urls, body)
15036 if err != nil {
15037 return nil, err
15038 }
15039 req.Header = reqHeaders
15040 googleapi.Expand(req.URL, map[string]string{
15041 "name": c.name,
15042 })
15043 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15044 }
15045
15046
15047
15048
15049
15050
15051
15052 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsGetProcessedDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProcessedDocument, error) {
15053 gensupport.SetOptions(c.urlParams_, opts...)
15054 res, err := c.doRequest("json")
15055 if res != nil && res.StatusCode == http.StatusNotModified {
15056 if res.Body != nil {
15057 res.Body.Close()
15058 }
15059 return nil, gensupport.WrapError(&googleapi.Error{
15060 Code: res.StatusCode,
15061 Header: res.Header,
15062 })
15063 }
15064 if err != nil {
15065 return nil, err
15066 }
15067 defer googleapi.CloseBody(res)
15068 if err := googleapi.CheckResponse(res); err != nil {
15069 return nil, gensupport.WrapError(err)
15070 }
15071 ret := &GoogleCloudDiscoveryengineV1alphaProcessedDocument{
15072 ServerResponse: googleapi.ServerResponse{
15073 Header: res.Header,
15074 HTTPStatusCode: res.StatusCode,
15075 },
15076 }
15077 target := &ret
15078 if err := gensupport.DecodeResponse(target, res); err != nil {
15079 return nil, err
15080 }
15081 return ret, nil
15082 }
15083
15084 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall struct {
15085 s *Service
15086 parent string
15087 googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
15088 urlParams_ gensupport.URLParams
15089 ctx_ context.Context
15090 header_ http.Header
15091 }
15092
15093
15094
15095
15096
15097
15098
15099
15100 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
15101 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15102 c.parent = parent
15103 c.googleclouddiscoveryenginev1alphaimportdocumentsrequest = googleclouddiscoveryenginev1alphaimportdocumentsrequest
15104 return c
15105 }
15106
15107
15108
15109
15110 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
15111 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15112 return c
15113 }
15114
15115
15116 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall {
15117 c.ctx_ = ctx
15118 return c
15119 }
15120
15121
15122
15123 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Header() http.Header {
15124 if c.header_ == nil {
15125 c.header_ = make(http.Header)
15126 }
15127 return c.header_
15128 }
15129
15130 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
15131 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15132 var body io.Reader = nil
15133 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportdocumentsrequest)
15134 if err != nil {
15135 return nil, err
15136 }
15137 c.urlParams_.Set("alt", alt)
15138 c.urlParams_.Set("prettyPrint", "false")
15139 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:import")
15140 urls += "?" + c.urlParams_.Encode()
15141 req, err := http.NewRequest("POST", urls, body)
15142 if err != nil {
15143 return nil, err
15144 }
15145 req.Header = reqHeaders
15146 googleapi.Expand(req.URL, map[string]string{
15147 "parent": c.parent,
15148 })
15149 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15150 }
15151
15152
15153
15154
15155
15156
15157
15158 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15159 gensupport.SetOptions(c.urlParams_, opts...)
15160 res, err := c.doRequest("json")
15161 if res != nil && res.StatusCode == http.StatusNotModified {
15162 if res.Body != nil {
15163 res.Body.Close()
15164 }
15165 return nil, gensupport.WrapError(&googleapi.Error{
15166 Code: res.StatusCode,
15167 Header: res.Header,
15168 })
15169 }
15170 if err != nil {
15171 return nil, err
15172 }
15173 defer googleapi.CloseBody(res)
15174 if err := googleapi.CheckResponse(res); err != nil {
15175 return nil, gensupport.WrapError(err)
15176 }
15177 ret := &GoogleLongrunningOperation{
15178 ServerResponse: googleapi.ServerResponse{
15179 Header: res.Header,
15180 HTTPStatusCode: res.StatusCode,
15181 },
15182 }
15183 target := &ret
15184 if err := gensupport.DecodeResponse(target, res); err != nil {
15185 return nil, err
15186 }
15187 return ret, nil
15188 }
15189
15190 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall struct {
15191 s *Service
15192 parent string
15193 urlParams_ gensupport.URLParams
15194 ifNoneMatch_ string
15195 ctx_ context.Context
15196 header_ http.Header
15197 }
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
15208 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15209 c.parent = parent
15210 return c
15211 }
15212
15213
15214
15215
15216
15217 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
15218 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15219 return c
15220 }
15221
15222
15223
15224
15225
15226
15227
15228 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
15229 c.urlParams_.Set("pageToken", pageToken)
15230 return c
15231 }
15232
15233
15234
15235
15236 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
15237 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15238 return c
15239 }
15240
15241
15242
15243
15244 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
15245 c.ifNoneMatch_ = entityTag
15246 return c
15247 }
15248
15249
15250 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall {
15251 c.ctx_ = ctx
15252 return c
15253 }
15254
15255
15256
15257 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Header() http.Header {
15258 if c.header_ == nil {
15259 c.header_ = make(http.Header)
15260 }
15261 return c.header_
15262 }
15263
15264 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
15265 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15266 if c.ifNoneMatch_ != "" {
15267 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15268 }
15269 var body io.Reader = nil
15270 c.urlParams_.Set("alt", alt)
15271 c.urlParams_.Set("prettyPrint", "false")
15272 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
15273 urls += "?" + c.urlParams_.Encode()
15274 req, err := http.NewRequest("GET", urls, body)
15275 if err != nil {
15276 return nil, err
15277 }
15278 req.Header = reqHeaders
15279 googleapi.Expand(req.URL, map[string]string{
15280 "parent": c.parent,
15281 })
15282 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15283 }
15284
15285
15286
15287
15288
15289
15290
15291
15292
15293 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse, error) {
15294 gensupport.SetOptions(c.urlParams_, opts...)
15295 res, err := c.doRequest("json")
15296 if res != nil && res.StatusCode == http.StatusNotModified {
15297 if res.Body != nil {
15298 res.Body.Close()
15299 }
15300 return nil, gensupport.WrapError(&googleapi.Error{
15301 Code: res.StatusCode,
15302 Header: res.Header,
15303 })
15304 }
15305 if err != nil {
15306 return nil, err
15307 }
15308 defer googleapi.CloseBody(res)
15309 if err := googleapi.CheckResponse(res); err != nil {
15310 return nil, gensupport.WrapError(err)
15311 }
15312 ret := &GoogleCloudDiscoveryengineV1alphaListDocumentsResponse{
15313 ServerResponse: googleapi.ServerResponse{
15314 Header: res.Header,
15315 HTTPStatusCode: res.StatusCode,
15316 },
15317 }
15318 target := &ret
15319 if err := gensupport.DecodeResponse(target, res); err != nil {
15320 return nil, err
15321 }
15322 return ret, nil
15323 }
15324
15325
15326
15327
15328 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse) error) error {
15329 c.ctx_ = ctx
15330 defer c.PageToken(c.urlParams_.Get("pageToken"))
15331 for {
15332 x, err := c.Do()
15333 if err != nil {
15334 return err
15335 }
15336 if err := f(x); err != nil {
15337 return err
15338 }
15339 if x.NextPageToken == "" {
15340 return nil
15341 }
15342 c.PageToken(x.NextPageToken)
15343 }
15344 }
15345
15346 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall struct {
15347 s *Service
15348 name string
15349 googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
15350 urlParams_ gensupport.URLParams
15351 ctx_ context.Context
15352 header_ http.Header
15353 }
15354
15355
15356
15357
15358
15359
15360
15361 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
15362 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15363 c.name = name
15364 c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
15365 return c
15366 }
15367
15368
15369
15370 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
15371 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
15372 return c
15373 }
15374
15375
15376
15377
15378 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
15379 c.urlParams_.Set("updateMask", updateMask)
15380 return c
15381 }
15382
15383
15384
15385
15386 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
15387 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15388 return c
15389 }
15390
15391
15392 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall {
15393 c.ctx_ = ctx
15394 return c
15395 }
15396
15397
15398
15399 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
15400 if c.header_ == nil {
15401 c.header_ = make(http.Header)
15402 }
15403 return c.header_
15404 }
15405
15406 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
15407 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15408 var body io.Reader = nil
15409 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
15410 if err != nil {
15411 return nil, err
15412 }
15413 c.urlParams_.Set("alt", alt)
15414 c.urlParams_.Set("prettyPrint", "false")
15415 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
15416 urls += "?" + c.urlParams_.Encode()
15417 req, err := http.NewRequest("PATCH", urls, body)
15418 if err != nil {
15419 return nil, err
15420 }
15421 req.Header = reqHeaders
15422 googleapi.Expand(req.URL, map[string]string{
15423 "name": c.name,
15424 })
15425 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15426 }
15427
15428
15429
15430
15431
15432
15433
15434 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
15435 gensupport.SetOptions(c.urlParams_, opts...)
15436 res, err := c.doRequest("json")
15437 if res != nil && res.StatusCode == http.StatusNotModified {
15438 if res.Body != nil {
15439 res.Body.Close()
15440 }
15441 return nil, gensupport.WrapError(&googleapi.Error{
15442 Code: res.StatusCode,
15443 Header: res.Header,
15444 })
15445 }
15446 if err != nil {
15447 return nil, err
15448 }
15449 defer googleapi.CloseBody(res)
15450 if err := googleapi.CheckResponse(res); err != nil {
15451 return nil, gensupport.WrapError(err)
15452 }
15453 ret := &GoogleCloudDiscoveryengineV1alphaDocument{
15454 ServerResponse: googleapi.ServerResponse{
15455 Header: res.Header,
15456 HTTPStatusCode: res.StatusCode,
15457 },
15458 }
15459 target := &ret
15460 if err := gensupport.DecodeResponse(target, res); err != nil {
15461 return nil, err
15462 }
15463 return ret, nil
15464 }
15465
15466 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall struct {
15467 s *Service
15468 parent string
15469 googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest
15470 urlParams_ gensupport.URLParams
15471 ctx_ context.Context
15472 header_ http.Header
15473 }
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
15486 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15487 c.parent = parent
15488 c.googleclouddiscoveryenginev1alphapurgedocumentsrequest = googleclouddiscoveryenginev1alphapurgedocumentsrequest
15489 return c
15490 }
15491
15492
15493
15494
15495 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
15496 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15497 return c
15498 }
15499
15500
15501 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall {
15502 c.ctx_ = ctx
15503 return c
15504 }
15505
15506
15507
15508 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
15509 if c.header_ == nil {
15510 c.header_ = make(http.Header)
15511 }
15512 return c.header_
15513 }
15514
15515 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
15516 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15517 var body io.Reader = nil
15518 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgedocumentsrequest)
15519 if err != nil {
15520 return nil, err
15521 }
15522 c.urlParams_.Set("alt", alt)
15523 c.urlParams_.Set("prettyPrint", "false")
15524 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:purge")
15525 urls += "?" + c.urlParams_.Encode()
15526 req, err := http.NewRequest("POST", urls, body)
15527 if err != nil {
15528 return nil, err
15529 }
15530 req.Header = reqHeaders
15531 googleapi.Expand(req.URL, map[string]string{
15532 "parent": c.parent,
15533 })
15534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15535 }
15536
15537
15538
15539
15540
15541
15542
15543 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
15544 gensupport.SetOptions(c.urlParams_, opts...)
15545 res, err := c.doRequest("json")
15546 if res != nil && res.StatusCode == http.StatusNotModified {
15547 if res.Body != nil {
15548 res.Body.Close()
15549 }
15550 return nil, gensupport.WrapError(&googleapi.Error{
15551 Code: res.StatusCode,
15552 Header: res.Header,
15553 })
15554 }
15555 if err != nil {
15556 return nil, err
15557 }
15558 defer googleapi.CloseBody(res)
15559 if err := googleapi.CheckResponse(res); err != nil {
15560 return nil, gensupport.WrapError(err)
15561 }
15562 ret := &GoogleLongrunningOperation{
15563 ServerResponse: googleapi.ServerResponse{
15564 Header: res.Header,
15565 HTTPStatusCode: res.StatusCode,
15566 },
15567 }
15568 target := &ret
15569 if err := gensupport.DecodeResponse(target, res); err != nil {
15570 return nil, err
15571 }
15572 return ret, nil
15573 }
15574
15575 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall struct {
15576 s *Service
15577 name string
15578 urlParams_ gensupport.URLParams
15579 ifNoneMatch_ string
15580 ctx_ context.Context
15581 header_ http.Header
15582 }
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
15593 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15594 c.name = name
15595 return c
15596 }
15597
15598
15599
15600
15601 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
15602 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15603 return c
15604 }
15605
15606
15607
15608
15609 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
15610 c.ifNoneMatch_ = entityTag
15611 return c
15612 }
15613
15614
15615 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall {
15616 c.ctx_ = ctx
15617 return c
15618 }
15619
15620
15621
15622 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Header() http.Header {
15623 if c.header_ == nil {
15624 c.header_ = make(http.Header)
15625 }
15626 return c.header_
15627 }
15628
15629 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) doRequest(alt string) (*http.Response, error) {
15630 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15631 if c.ifNoneMatch_ != "" {
15632 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15633 }
15634 var body io.Reader = nil
15635 c.urlParams_.Set("alt", alt)
15636 c.urlParams_.Set("prettyPrint", "false")
15637 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
15638 urls += "?" + c.urlParams_.Encode()
15639 req, err := http.NewRequest("GET", urls, body)
15640 if err != nil {
15641 return nil, err
15642 }
15643 req.Header = reqHeaders
15644 googleapi.Expand(req.URL, map[string]string{
15645 "name": c.name,
15646 })
15647 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15648 }
15649
15650
15651
15652
15653
15654
15655
15656 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaChunk, error) {
15657 gensupport.SetOptions(c.urlParams_, opts...)
15658 res, err := c.doRequest("json")
15659 if res != nil && res.StatusCode == http.StatusNotModified {
15660 if res.Body != nil {
15661 res.Body.Close()
15662 }
15663 return nil, gensupport.WrapError(&googleapi.Error{
15664 Code: res.StatusCode,
15665 Header: res.Header,
15666 })
15667 }
15668 if err != nil {
15669 return nil, err
15670 }
15671 defer googleapi.CloseBody(res)
15672 if err := googleapi.CheckResponse(res); err != nil {
15673 return nil, gensupport.WrapError(err)
15674 }
15675 ret := &GoogleCloudDiscoveryengineV1alphaChunk{
15676 ServerResponse: googleapi.ServerResponse{
15677 Header: res.Header,
15678 HTTPStatusCode: res.StatusCode,
15679 },
15680 }
15681 target := &ret
15682 if err := gensupport.DecodeResponse(target, res); err != nil {
15683 return nil, err
15684 }
15685 return ret, nil
15686 }
15687
15688 type ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall struct {
15689 s *Service
15690 parent string
15691 urlParams_ gensupport.URLParams
15692 ifNoneMatch_ string
15693 ctx_ context.Context
15694 header_ http.Header
15695 }
15696
15697
15698
15699
15700
15701
15702
15703
15704
15705 func (r *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksService) List(parent string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
15706 c := &ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15707 c.parent = parent
15708 return c
15709 }
15710
15711
15712
15713
15714
15715 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
15716 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
15717 return c
15718 }
15719
15720
15721
15722
15723
15724
15725
15726 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
15727 c.urlParams_.Set("pageToken", pageToken)
15728 return c
15729 }
15730
15731
15732
15733
15734 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
15735 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15736 return c
15737 }
15738
15739
15740
15741
15742 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
15743 c.ifNoneMatch_ = entityTag
15744 return c
15745 }
15746
15747
15748 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall {
15749 c.ctx_ = ctx
15750 return c
15751 }
15752
15753
15754
15755 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Header() http.Header {
15756 if c.header_ == nil {
15757 c.header_ = make(http.Header)
15758 }
15759 return c.header_
15760 }
15761
15762 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) doRequest(alt string) (*http.Response, error) {
15763 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
15764 if c.ifNoneMatch_ != "" {
15765 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
15766 }
15767 var body io.Reader = nil
15768 c.urlParams_.Set("alt", alt)
15769 c.urlParams_.Set("prettyPrint", "false")
15770 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/chunks")
15771 urls += "?" + c.urlParams_.Encode()
15772 req, err := http.NewRequest("GET", urls, body)
15773 if err != nil {
15774 return nil, err
15775 }
15776 req.Header = reqHeaders
15777 googleapi.Expand(req.URL, map[string]string{
15778 "parent": c.parent,
15779 })
15780 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15781 }
15782
15783
15784
15785
15786
15787
15788
15789 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListChunksResponse, error) {
15790 gensupport.SetOptions(c.urlParams_, opts...)
15791 res, err := c.doRequest("json")
15792 if res != nil && res.StatusCode == http.StatusNotModified {
15793 if res.Body != nil {
15794 res.Body.Close()
15795 }
15796 return nil, gensupport.WrapError(&googleapi.Error{
15797 Code: res.StatusCode,
15798 Header: res.Header,
15799 })
15800 }
15801 if err != nil {
15802 return nil, err
15803 }
15804 defer googleapi.CloseBody(res)
15805 if err := googleapi.CheckResponse(res); err != nil {
15806 return nil, gensupport.WrapError(err)
15807 }
15808 ret := &GoogleCloudDiscoveryengineV1alphaListChunksResponse{
15809 ServerResponse: googleapi.ServerResponse{
15810 Header: res.Header,
15811 HTTPStatusCode: res.StatusCode,
15812 },
15813 }
15814 target := &ret
15815 if err := gensupport.DecodeResponse(target, res); err != nil {
15816 return nil, err
15817 }
15818 return ret, nil
15819 }
15820
15821
15822
15823
15824 func (c *ProjectsLocationsCollectionsDataStoresBranchesDocumentsChunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListChunksResponse) error) error {
15825 c.ctx_ = ctx
15826 defer c.PageToken(c.urlParams_.Get("pageToken"))
15827 for {
15828 x, err := c.Do()
15829 if err != nil {
15830 return err
15831 }
15832 if err := f(x); err != nil {
15833 return err
15834 }
15835 if x.NextPageToken == "" {
15836 return nil
15837 }
15838 c.PageToken(x.NextPageToken)
15839 }
15840 }
15841
15842 type ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall struct {
15843 s *Service
15844 name string
15845 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
15846 urlParams_ gensupport.URLParams
15847 ctx_ context.Context
15848 header_ http.Header
15849 }
15850
15851
15852
15853
15854
15855
15856
15857
15858
15859
15860
15861
15862 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
15863 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15864 c.name = name
15865 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
15866 return c
15867 }
15868
15869
15870
15871
15872 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
15873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15874 return c
15875 }
15876
15877
15878 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall {
15879 c.ctx_ = ctx
15880 return c
15881 }
15882
15883
15884
15885 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Header() http.Header {
15886 if c.header_ == nil {
15887 c.header_ = make(http.Header)
15888 }
15889 return c.header_
15890 }
15891
15892 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
15893 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
15894 var body io.Reader = nil
15895 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
15896 if err != nil {
15897 return nil, err
15898 }
15899 c.urlParams_.Set("alt", alt)
15900 c.urlParams_.Set("prettyPrint", "false")
15901 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel")
15902 urls += "?" + c.urlParams_.Encode()
15903 req, err := http.NewRequest("POST", urls, body)
15904 if err != nil {
15905 return nil, err
15906 }
15907 req.Header = reqHeaders
15908 googleapi.Expand(req.URL, map[string]string{
15909 "name": c.name,
15910 })
15911 return gensupport.SendRequest(c.ctx_, c.s.client, req)
15912 }
15913
15914
15915
15916
15917
15918
15919
15920 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
15921 gensupport.SetOptions(c.urlParams_, opts...)
15922 res, err := c.doRequest("json")
15923 if res != nil && res.StatusCode == http.StatusNotModified {
15924 if res.Body != nil {
15925 res.Body.Close()
15926 }
15927 return nil, gensupport.WrapError(&googleapi.Error{
15928 Code: res.StatusCode,
15929 Header: res.Header,
15930 })
15931 }
15932 if err != nil {
15933 return nil, err
15934 }
15935 defer googleapi.CloseBody(res)
15936 if err := googleapi.CheckResponse(res); err != nil {
15937 return nil, gensupport.WrapError(err)
15938 }
15939 ret := &GoogleProtobufEmpty{
15940 ServerResponse: googleapi.ServerResponse{
15941 Header: res.Header,
15942 HTTPStatusCode: res.StatusCode,
15943 },
15944 }
15945 target := &ret
15946 if err := gensupport.DecodeResponse(target, res); err != nil {
15947 return nil, err
15948 }
15949 return ret, nil
15950 }
15951
15952 type ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall struct {
15953 s *Service
15954 name string
15955 urlParams_ gensupport.URLParams
15956 ifNoneMatch_ string
15957 ctx_ context.Context
15958 header_ http.Header
15959 }
15960
15961
15962
15963
15964
15965
15966 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
15967 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
15968 c.name = name
15969 return c
15970 }
15971
15972
15973
15974
15975 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
15976 c.urlParams_.Set("fields", googleapi.CombineFields(s))
15977 return c
15978 }
15979
15980
15981
15982
15983 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
15984 c.ifNoneMatch_ = entityTag
15985 return c
15986 }
15987
15988
15989 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall {
15990 c.ctx_ = ctx
15991 return c
15992 }
15993
15994
15995
15996 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Header() http.Header {
15997 if c.header_ == nil {
15998 c.header_ = make(http.Header)
15999 }
16000 return c.header_
16001 }
16002
16003 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
16004 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16005 if c.ifNoneMatch_ != "" {
16006 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16007 }
16008 var body io.Reader = nil
16009 c.urlParams_.Set("alt", alt)
16010 c.urlParams_.Set("prettyPrint", "false")
16011 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
16012 urls += "?" + c.urlParams_.Encode()
16013 req, err := http.NewRequest("GET", urls, body)
16014 if err != nil {
16015 return nil, err
16016 }
16017 req.Header = reqHeaders
16018 googleapi.Expand(req.URL, map[string]string{
16019 "name": c.name,
16020 })
16021 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16022 }
16023
16024
16025
16026
16027
16028
16029
16030 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
16031 gensupport.SetOptions(c.urlParams_, opts...)
16032 res, err := c.doRequest("json")
16033 if res != nil && res.StatusCode == http.StatusNotModified {
16034 if res.Body != nil {
16035 res.Body.Close()
16036 }
16037 return nil, gensupport.WrapError(&googleapi.Error{
16038 Code: res.StatusCode,
16039 Header: res.Header,
16040 })
16041 }
16042 if err != nil {
16043 return nil, err
16044 }
16045 defer googleapi.CloseBody(res)
16046 if err := googleapi.CheckResponse(res); err != nil {
16047 return nil, gensupport.WrapError(err)
16048 }
16049 ret := &GoogleLongrunningOperation{
16050 ServerResponse: googleapi.ServerResponse{
16051 Header: res.Header,
16052 HTTPStatusCode: res.StatusCode,
16053 },
16054 }
16055 target := &ret
16056 if err := gensupport.DecodeResponse(target, res); err != nil {
16057 return nil, err
16058 }
16059 return ret, nil
16060 }
16061
16062 type ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall struct {
16063 s *Service
16064 name string
16065 urlParams_ gensupport.URLParams
16066 ifNoneMatch_ string
16067 ctx_ context.Context
16068 header_ http.Header
16069 }
16070
16071
16072
16073
16074
16075 func (r *ProjectsLocationsCollectionsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16076 c := &ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16077 c.name = name
16078 return c
16079 }
16080
16081
16082 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16083 c.urlParams_.Set("filter", filter)
16084 return c
16085 }
16086
16087
16088
16089 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16090 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16091 return c
16092 }
16093
16094
16095
16096 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16097 c.urlParams_.Set("pageToken", pageToken)
16098 return c
16099 }
16100
16101
16102
16103
16104 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16105 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16106 return c
16107 }
16108
16109
16110
16111
16112 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16113 c.ifNoneMatch_ = entityTag
16114 return c
16115 }
16116
16117
16118 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall {
16119 c.ctx_ = ctx
16120 return c
16121 }
16122
16123
16124
16125 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Header() http.Header {
16126 if c.header_ == nil {
16127 c.header_ = make(http.Header)
16128 }
16129 return c.header_
16130 }
16131
16132 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
16133 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16134 if c.ifNoneMatch_ != "" {
16135 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16136 }
16137 var body io.Reader = nil
16138 c.urlParams_.Set("alt", alt)
16139 c.urlParams_.Set("prettyPrint", "false")
16140 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
16141 urls += "?" + c.urlParams_.Encode()
16142 req, err := http.NewRequest("GET", urls, body)
16143 if err != nil {
16144 return nil, err
16145 }
16146 req.Header = reqHeaders
16147 googleapi.Expand(req.URL, map[string]string{
16148 "name": c.name,
16149 })
16150 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16151 }
16152
16153
16154
16155
16156
16157
16158
16159 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
16160 gensupport.SetOptions(c.urlParams_, opts...)
16161 res, err := c.doRequest("json")
16162 if res != nil && res.StatusCode == http.StatusNotModified {
16163 if res.Body != nil {
16164 res.Body.Close()
16165 }
16166 return nil, gensupport.WrapError(&googleapi.Error{
16167 Code: res.StatusCode,
16168 Header: res.Header,
16169 })
16170 }
16171 if err != nil {
16172 return nil, err
16173 }
16174 defer googleapi.CloseBody(res)
16175 if err := googleapi.CheckResponse(res); err != nil {
16176 return nil, gensupport.WrapError(err)
16177 }
16178 ret := &GoogleLongrunningListOperationsResponse{
16179 ServerResponse: googleapi.ServerResponse{
16180 Header: res.Header,
16181 HTTPStatusCode: res.StatusCode,
16182 },
16183 }
16184 target := &ret
16185 if err := gensupport.DecodeResponse(target, res); err != nil {
16186 return nil, err
16187 }
16188 return ret, nil
16189 }
16190
16191
16192
16193
16194 func (c *ProjectsLocationsCollectionsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
16195 c.ctx_ = ctx
16196 defer c.PageToken(c.urlParams_.Get("pageToken"))
16197 for {
16198 x, err := c.Do()
16199 if err != nil {
16200 return err
16201 }
16202 if err := f(x); err != nil {
16203 return err
16204 }
16205 if x.NextPageToken == "" {
16206 return nil
16207 }
16208 c.PageToken(x.NextPageToken)
16209 }
16210 }
16211
16212 type ProjectsLocationsCollectionsDataStoresConversationsConverseCall struct {
16213 s *Service
16214 name string
16215 googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
16216 urlParams_ gensupport.URLParams
16217 ctx_ context.Context
16218 header_ http.Header
16219 }
16220
16221
16222
16223
16224
16225
16226
16227
16228
16229
16230 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
16231 c := &ProjectsLocationsCollectionsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16232 c.name = name
16233 c.googleclouddiscoveryenginev1alphaconverseconversationrequest = googleclouddiscoveryenginev1alphaconverseconversationrequest
16234 return c
16235 }
16236
16237
16238
16239
16240 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
16241 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16242 return c
16243 }
16244
16245
16246 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsConverseCall {
16247 c.ctx_ = ctx
16248 return c
16249 }
16250
16251
16252
16253 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Header() http.Header {
16254 if c.header_ == nil {
16255 c.header_ = make(http.Header)
16256 }
16257 return c.header_
16258 }
16259
16260 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
16261 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16262 var body io.Reader = nil
16263 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconverseconversationrequest)
16264 if err != nil {
16265 return nil, err
16266 }
16267 c.urlParams_.Set("alt", alt)
16268 c.urlParams_.Set("prettyPrint", "false")
16269 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:converse")
16270 urls += "?" + c.urlParams_.Encode()
16271 req, err := http.NewRequest("POST", urls, body)
16272 if err != nil {
16273 return nil, err
16274 }
16275 req.Header = reqHeaders
16276 googleapi.Expand(req.URL, map[string]string{
16277 "name": c.name,
16278 })
16279 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16280 }
16281
16282
16283
16284
16285
16286
16287
16288 func (c *ProjectsLocationsCollectionsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConverseConversationResponse, error) {
16289 gensupport.SetOptions(c.urlParams_, opts...)
16290 res, err := c.doRequest("json")
16291 if res != nil && res.StatusCode == http.StatusNotModified {
16292 if res.Body != nil {
16293 res.Body.Close()
16294 }
16295 return nil, gensupport.WrapError(&googleapi.Error{
16296 Code: res.StatusCode,
16297 Header: res.Header,
16298 })
16299 }
16300 if err != nil {
16301 return nil, err
16302 }
16303 defer googleapi.CloseBody(res)
16304 if err := googleapi.CheckResponse(res); err != nil {
16305 return nil, gensupport.WrapError(err)
16306 }
16307 ret := &GoogleCloudDiscoveryengineV1alphaConverseConversationResponse{
16308 ServerResponse: googleapi.ServerResponse{
16309 Header: res.Header,
16310 HTTPStatusCode: res.StatusCode,
16311 },
16312 }
16313 target := &ret
16314 if err := gensupport.DecodeResponse(target, res); err != nil {
16315 return nil, err
16316 }
16317 return ret, nil
16318 }
16319
16320 type ProjectsLocationsCollectionsDataStoresConversationsCreateCall struct {
16321 s *Service
16322 parent string
16323 googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
16324 urlParams_ gensupport.URLParams
16325 ctx_ context.Context
16326 header_ http.Header
16327 }
16328
16329
16330
16331
16332
16333
16334
16335 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
16336 c := &ProjectsLocationsCollectionsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16337 c.parent = parent
16338 c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
16339 return c
16340 }
16341
16342
16343
16344
16345 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
16346 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16347 return c
16348 }
16349
16350
16351 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsCreateCall {
16352 c.ctx_ = ctx
16353 return c
16354 }
16355
16356
16357
16358 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Header() http.Header {
16359 if c.header_ == nil {
16360 c.header_ = make(http.Header)
16361 }
16362 return c.header_
16363 }
16364
16365 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
16366 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16367 var body io.Reader = nil
16368 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
16369 if err != nil {
16370 return nil, err
16371 }
16372 c.urlParams_.Set("alt", alt)
16373 c.urlParams_.Set("prettyPrint", "false")
16374 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
16375 urls += "?" + c.urlParams_.Encode()
16376 req, err := http.NewRequest("POST", urls, body)
16377 if err != nil {
16378 return nil, err
16379 }
16380 req.Header = reqHeaders
16381 googleapi.Expand(req.URL, map[string]string{
16382 "parent": c.parent,
16383 })
16384 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16385 }
16386
16387
16388
16389
16390
16391
16392
16393 func (c *ProjectsLocationsCollectionsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
16394 gensupport.SetOptions(c.urlParams_, opts...)
16395 res, err := c.doRequest("json")
16396 if res != nil && res.StatusCode == http.StatusNotModified {
16397 if res.Body != nil {
16398 res.Body.Close()
16399 }
16400 return nil, gensupport.WrapError(&googleapi.Error{
16401 Code: res.StatusCode,
16402 Header: res.Header,
16403 })
16404 }
16405 if err != nil {
16406 return nil, err
16407 }
16408 defer googleapi.CloseBody(res)
16409 if err := googleapi.CheckResponse(res); err != nil {
16410 return nil, gensupport.WrapError(err)
16411 }
16412 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
16413 ServerResponse: googleapi.ServerResponse{
16414 Header: res.Header,
16415 HTTPStatusCode: res.StatusCode,
16416 },
16417 }
16418 target := &ret
16419 if err := gensupport.DecodeResponse(target, res); err != nil {
16420 return nil, err
16421 }
16422 return ret, nil
16423 }
16424
16425 type ProjectsLocationsCollectionsDataStoresConversationsDeleteCall struct {
16426 s *Service
16427 name string
16428 urlParams_ gensupport.URLParams
16429 ctx_ context.Context
16430 header_ http.Header
16431 }
16432
16433
16434
16435
16436
16437
16438
16439 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
16440 c := &ProjectsLocationsCollectionsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16441 c.name = name
16442 return c
16443 }
16444
16445
16446
16447
16448 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
16449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16450 return c
16451 }
16452
16453
16454 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall {
16455 c.ctx_ = ctx
16456 return c
16457 }
16458
16459
16460
16461 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Header() http.Header {
16462 if c.header_ == nil {
16463 c.header_ = make(http.Header)
16464 }
16465 return c.header_
16466 }
16467
16468 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
16469 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16470 var body io.Reader = nil
16471 c.urlParams_.Set("alt", alt)
16472 c.urlParams_.Set("prettyPrint", "false")
16473 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
16474 urls += "?" + c.urlParams_.Encode()
16475 req, err := http.NewRequest("DELETE", urls, body)
16476 if err != nil {
16477 return nil, err
16478 }
16479 req.Header = reqHeaders
16480 googleapi.Expand(req.URL, map[string]string{
16481 "name": c.name,
16482 })
16483 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16484 }
16485
16486
16487
16488
16489
16490
16491
16492 func (c *ProjectsLocationsCollectionsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
16493 gensupport.SetOptions(c.urlParams_, opts...)
16494 res, err := c.doRequest("json")
16495 if res != nil && res.StatusCode == http.StatusNotModified {
16496 if res.Body != nil {
16497 res.Body.Close()
16498 }
16499 return nil, gensupport.WrapError(&googleapi.Error{
16500 Code: res.StatusCode,
16501 Header: res.Header,
16502 })
16503 }
16504 if err != nil {
16505 return nil, err
16506 }
16507 defer googleapi.CloseBody(res)
16508 if err := googleapi.CheckResponse(res); err != nil {
16509 return nil, gensupport.WrapError(err)
16510 }
16511 ret := &GoogleProtobufEmpty{
16512 ServerResponse: googleapi.ServerResponse{
16513 Header: res.Header,
16514 HTTPStatusCode: res.StatusCode,
16515 },
16516 }
16517 target := &ret
16518 if err := gensupport.DecodeResponse(target, res); err != nil {
16519 return nil, err
16520 }
16521 return ret, nil
16522 }
16523
16524 type ProjectsLocationsCollectionsDataStoresConversationsGetCall struct {
16525 s *Service
16526 name string
16527 urlParams_ gensupport.URLParams
16528 ifNoneMatch_ string
16529 ctx_ context.Context
16530 header_ http.Header
16531 }
16532
16533
16534
16535
16536
16537
16538 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
16539 c := &ProjectsLocationsCollectionsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16540 c.name = name
16541 return c
16542 }
16543
16544
16545
16546
16547 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
16548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16549 return c
16550 }
16551
16552
16553
16554
16555 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
16556 c.ifNoneMatch_ = entityTag
16557 return c
16558 }
16559
16560
16561 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsGetCall {
16562 c.ctx_ = ctx
16563 return c
16564 }
16565
16566
16567
16568 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Header() http.Header {
16569 if c.header_ == nil {
16570 c.header_ = make(http.Header)
16571 }
16572 return c.header_
16573 }
16574
16575 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
16576 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16577 if c.ifNoneMatch_ != "" {
16578 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16579 }
16580 var body io.Reader = nil
16581 c.urlParams_.Set("alt", alt)
16582 c.urlParams_.Set("prettyPrint", "false")
16583 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
16584 urls += "?" + c.urlParams_.Encode()
16585 req, err := http.NewRequest("GET", urls, body)
16586 if err != nil {
16587 return nil, err
16588 }
16589 req.Header = reqHeaders
16590 googleapi.Expand(req.URL, map[string]string{
16591 "name": c.name,
16592 })
16593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16594 }
16595
16596
16597
16598
16599
16600
16601
16602 func (c *ProjectsLocationsCollectionsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
16603 gensupport.SetOptions(c.urlParams_, opts...)
16604 res, err := c.doRequest("json")
16605 if res != nil && res.StatusCode == http.StatusNotModified {
16606 if res.Body != nil {
16607 res.Body.Close()
16608 }
16609 return nil, gensupport.WrapError(&googleapi.Error{
16610 Code: res.StatusCode,
16611 Header: res.Header,
16612 })
16613 }
16614 if err != nil {
16615 return nil, err
16616 }
16617 defer googleapi.CloseBody(res)
16618 if err := googleapi.CheckResponse(res); err != nil {
16619 return nil, gensupport.WrapError(err)
16620 }
16621 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
16622 ServerResponse: googleapi.ServerResponse{
16623 Header: res.Header,
16624 HTTPStatusCode: res.StatusCode,
16625 },
16626 }
16627 target := &ret
16628 if err := gensupport.DecodeResponse(target, res); err != nil {
16629 return nil, err
16630 }
16631 return ret, nil
16632 }
16633
16634 type ProjectsLocationsCollectionsDataStoresConversationsListCall struct {
16635 s *Service
16636 parent string
16637 urlParams_ gensupport.URLParams
16638 ifNoneMatch_ string
16639 ctx_ context.Context
16640 header_ http.Header
16641 }
16642
16643
16644
16645
16646
16647
16648 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) List(parent string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16649 c := &ProjectsLocationsCollectionsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16650 c.parent = parent
16651 return c
16652 }
16653
16654
16655
16656
16657 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16658 c.urlParams_.Set("filter", filter)
16659 return c
16660 }
16661
16662
16663
16664
16665
16666 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16667 c.urlParams_.Set("orderBy", orderBy)
16668 return c
16669 }
16670
16671
16672
16673 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16674 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
16675 return c
16676 }
16677
16678
16679
16680
16681 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16682 c.urlParams_.Set("pageToken", pageToken)
16683 return c
16684 }
16685
16686
16687
16688
16689 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16690 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16691 return c
16692 }
16693
16694
16695
16696
16697 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16698 c.ifNoneMatch_ = entityTag
16699 return c
16700 }
16701
16702
16703 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsListCall {
16704 c.ctx_ = ctx
16705 return c
16706 }
16707
16708
16709
16710 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Header() http.Header {
16711 if c.header_ == nil {
16712 c.header_ = make(http.Header)
16713 }
16714 return c.header_
16715 }
16716
16717 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
16718 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16719 if c.ifNoneMatch_ != "" {
16720 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16721 }
16722 var body io.Reader = nil
16723 c.urlParams_.Set("alt", alt)
16724 c.urlParams_.Set("prettyPrint", "false")
16725 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
16726 urls += "?" + c.urlParams_.Encode()
16727 req, err := http.NewRequest("GET", urls, body)
16728 if err != nil {
16729 return nil, err
16730 }
16731 req.Header = reqHeaders
16732 googleapi.Expand(req.URL, map[string]string{
16733 "parent": c.parent,
16734 })
16735 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16736 }
16737
16738
16739
16740
16741
16742
16743
16744 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListConversationsResponse, error) {
16745 gensupport.SetOptions(c.urlParams_, opts...)
16746 res, err := c.doRequest("json")
16747 if res != nil && res.StatusCode == http.StatusNotModified {
16748 if res.Body != nil {
16749 res.Body.Close()
16750 }
16751 return nil, gensupport.WrapError(&googleapi.Error{
16752 Code: res.StatusCode,
16753 Header: res.Header,
16754 })
16755 }
16756 if err != nil {
16757 return nil, err
16758 }
16759 defer googleapi.CloseBody(res)
16760 if err := googleapi.CheckResponse(res); err != nil {
16761 return nil, gensupport.WrapError(err)
16762 }
16763 ret := &GoogleCloudDiscoveryengineV1alphaListConversationsResponse{
16764 ServerResponse: googleapi.ServerResponse{
16765 Header: res.Header,
16766 HTTPStatusCode: res.StatusCode,
16767 },
16768 }
16769 target := &ret
16770 if err := gensupport.DecodeResponse(target, res); err != nil {
16771 return nil, err
16772 }
16773 return ret, nil
16774 }
16775
16776
16777
16778
16779 func (c *ProjectsLocationsCollectionsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListConversationsResponse) error) error {
16780 c.ctx_ = ctx
16781 defer c.PageToken(c.urlParams_.Get("pageToken"))
16782 for {
16783 x, err := c.Do()
16784 if err != nil {
16785 return err
16786 }
16787 if err := f(x); err != nil {
16788 return err
16789 }
16790 if x.NextPageToken == "" {
16791 return nil
16792 }
16793 c.PageToken(x.NextPageToken)
16794 }
16795 }
16796
16797 type ProjectsLocationsCollectionsDataStoresConversationsPatchCall struct {
16798 s *Service
16799 name string
16800 googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
16801 urlParams_ gensupport.URLParams
16802 ctx_ context.Context
16803 header_ http.Header
16804 }
16805
16806
16807
16808
16809
16810
16811
16812
16813
16814 func (r *ProjectsLocationsCollectionsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
16815 c := &ProjectsLocationsCollectionsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16816 c.name = name
16817 c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
16818 return c
16819 }
16820
16821
16822
16823
16824 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
16825 c.urlParams_.Set("updateMask", updateMask)
16826 return c
16827 }
16828
16829
16830
16831
16832 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
16833 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16834 return c
16835 }
16836
16837
16838 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresConversationsPatchCall {
16839 c.ctx_ = ctx
16840 return c
16841 }
16842
16843
16844
16845 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Header() http.Header {
16846 if c.header_ == nil {
16847 c.header_ = make(http.Header)
16848 }
16849 return c.header_
16850 }
16851
16852 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
16853 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
16854 var body io.Reader = nil
16855 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
16856 if err != nil {
16857 return nil, err
16858 }
16859 c.urlParams_.Set("alt", alt)
16860 c.urlParams_.Set("prettyPrint", "false")
16861 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
16862 urls += "?" + c.urlParams_.Encode()
16863 req, err := http.NewRequest("PATCH", urls, body)
16864 if err != nil {
16865 return nil, err
16866 }
16867 req.Header = reqHeaders
16868 googleapi.Expand(req.URL, map[string]string{
16869 "name": c.name,
16870 })
16871 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16872 }
16873
16874
16875
16876
16877
16878
16879
16880 func (c *ProjectsLocationsCollectionsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
16881 gensupport.SetOptions(c.urlParams_, opts...)
16882 res, err := c.doRequest("json")
16883 if res != nil && res.StatusCode == http.StatusNotModified {
16884 if res.Body != nil {
16885 res.Body.Close()
16886 }
16887 return nil, gensupport.WrapError(&googleapi.Error{
16888 Code: res.StatusCode,
16889 Header: res.Header,
16890 })
16891 }
16892 if err != nil {
16893 return nil, err
16894 }
16895 defer googleapi.CloseBody(res)
16896 if err := googleapi.CheckResponse(res); err != nil {
16897 return nil, gensupport.WrapError(err)
16898 }
16899 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
16900 ServerResponse: googleapi.ServerResponse{
16901 Header: res.Header,
16902 HTTPStatusCode: res.StatusCode,
16903 },
16904 }
16905 target := &ret
16906 if err := gensupport.DecodeResponse(target, res); err != nil {
16907 return nil, err
16908 }
16909 return ret, nil
16910 }
16911
16912 type ProjectsLocationsCollectionsDataStoresCustomModelsListCall struct {
16913 s *Service
16914 dataStore string
16915 urlParams_ gensupport.URLParams
16916 ifNoneMatch_ string
16917 ctx_ context.Context
16918 header_ http.Header
16919 }
16920
16921
16922
16923
16924
16925
16926
16927 func (r *ProjectsLocationsCollectionsDataStoresCustomModelsService) List(dataStore string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
16928 c := &ProjectsLocationsCollectionsDataStoresCustomModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
16929 c.dataStore = dataStore
16930 return c
16931 }
16932
16933
16934
16935
16936 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
16937 c.urlParams_.Set("fields", googleapi.CombineFields(s))
16938 return c
16939 }
16940
16941
16942
16943
16944 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
16945 c.ifNoneMatch_ = entityTag
16946 return c
16947 }
16948
16949
16950 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresCustomModelsListCall {
16951 c.ctx_ = ctx
16952 return c
16953 }
16954
16955
16956
16957 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Header() http.Header {
16958 if c.header_ == nil {
16959 c.header_ = make(http.Header)
16960 }
16961 return c.header_
16962 }
16963
16964 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) doRequest(alt string) (*http.Response, error) {
16965 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
16966 if c.ifNoneMatch_ != "" {
16967 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
16968 }
16969 var body io.Reader = nil
16970 c.urlParams_.Set("alt", alt)
16971 c.urlParams_.Set("prettyPrint", "false")
16972 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}/customModels")
16973 urls += "?" + c.urlParams_.Encode()
16974 req, err := http.NewRequest("GET", urls, body)
16975 if err != nil {
16976 return nil, err
16977 }
16978 req.Header = reqHeaders
16979 googleapi.Expand(req.URL, map[string]string{
16980 "dataStore": c.dataStore,
16981 })
16982 return gensupport.SendRequest(c.ctx_, c.s.client, req)
16983 }
16984
16985
16986
16987
16988
16989
16990
16991 func (c *ProjectsLocationsCollectionsDataStoresCustomModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse, error) {
16992 gensupport.SetOptions(c.urlParams_, opts...)
16993 res, err := c.doRequest("json")
16994 if res != nil && res.StatusCode == http.StatusNotModified {
16995 if res.Body != nil {
16996 res.Body.Close()
16997 }
16998 return nil, gensupport.WrapError(&googleapi.Error{
16999 Code: res.StatusCode,
17000 Header: res.Header,
17001 })
17002 }
17003 if err != nil {
17004 return nil, err
17005 }
17006 defer googleapi.CloseBody(res)
17007 if err := googleapi.CheckResponse(res); err != nil {
17008 return nil, gensupport.WrapError(err)
17009 }
17010 ret := &GoogleCloudDiscoveryengineV1alphaListCustomModelsResponse{
17011 ServerResponse: googleapi.ServerResponse{
17012 Header: res.Header,
17013 HTTPStatusCode: res.StatusCode,
17014 },
17015 }
17016 target := &ret
17017 if err := gensupport.DecodeResponse(target, res); err != nil {
17018 return nil, err
17019 }
17020 return ret, nil
17021 }
17022
17023 type ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall struct {
17024 s *Service
17025 name string
17026 urlParams_ gensupport.URLParams
17027 ifNoneMatch_ string
17028 ctx_ context.Context
17029 header_ http.Header
17030 }
17031
17032
17033
17034
17035
17036
17037 func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
17038 c := &ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17039 c.name = name
17040 return c
17041 }
17042
17043
17044
17045
17046 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
17047 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17048 return c
17049 }
17050
17051
17052
17053
17054 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
17055 c.ifNoneMatch_ = entityTag
17056 return c
17057 }
17058
17059
17060 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall {
17061 c.ctx_ = ctx
17062 return c
17063 }
17064
17065
17066
17067 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Header() http.Header {
17068 if c.header_ == nil {
17069 c.header_ = make(http.Header)
17070 }
17071 return c.header_
17072 }
17073
17074 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
17075 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17076 if c.ifNoneMatch_ != "" {
17077 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17078 }
17079 var body io.Reader = nil
17080 c.urlParams_.Set("alt", alt)
17081 c.urlParams_.Set("prettyPrint", "false")
17082 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
17083 urls += "?" + c.urlParams_.Encode()
17084 req, err := http.NewRequest("GET", urls, body)
17085 if err != nil {
17086 return nil, err
17087 }
17088 req.Header = reqHeaders
17089 googleapi.Expand(req.URL, map[string]string{
17090 "name": c.name,
17091 })
17092 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17093 }
17094
17095
17096
17097
17098
17099
17100
17101 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17102 gensupport.SetOptions(c.urlParams_, opts...)
17103 res, err := c.doRequest("json")
17104 if res != nil && res.StatusCode == http.StatusNotModified {
17105 if res.Body != nil {
17106 res.Body.Close()
17107 }
17108 return nil, gensupport.WrapError(&googleapi.Error{
17109 Code: res.StatusCode,
17110 Header: res.Header,
17111 })
17112 }
17113 if err != nil {
17114 return nil, err
17115 }
17116 defer googleapi.CloseBody(res)
17117 if err := googleapi.CheckResponse(res); err != nil {
17118 return nil, gensupport.WrapError(err)
17119 }
17120 ret := &GoogleLongrunningOperation{
17121 ServerResponse: googleapi.ServerResponse{
17122 Header: res.Header,
17123 HTTPStatusCode: res.StatusCode,
17124 },
17125 }
17126 target := &ret
17127 if err := gensupport.DecodeResponse(target, res); err != nil {
17128 return nil, err
17129 }
17130 return ret, nil
17131 }
17132
17133 type ProjectsLocationsCollectionsDataStoresModelsOperationsListCall struct {
17134 s *Service
17135 name string
17136 urlParams_ gensupport.URLParams
17137 ifNoneMatch_ string
17138 ctx_ context.Context
17139 header_ http.Header
17140 }
17141
17142
17143
17144
17145
17146 func (r *ProjectsLocationsCollectionsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17147 c := &ProjectsLocationsCollectionsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17148 c.name = name
17149 return c
17150 }
17151
17152
17153 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17154 c.urlParams_.Set("filter", filter)
17155 return c
17156 }
17157
17158
17159
17160 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17161 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17162 return c
17163 }
17164
17165
17166
17167 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17168 c.urlParams_.Set("pageToken", pageToken)
17169 return c
17170 }
17171
17172
17173
17174
17175 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17176 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17177 return c
17178 }
17179
17180
17181
17182
17183 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17184 c.ifNoneMatch_ = entityTag
17185 return c
17186 }
17187
17188
17189 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall {
17190 c.ctx_ = ctx
17191 return c
17192 }
17193
17194
17195
17196 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Header() http.Header {
17197 if c.header_ == nil {
17198 c.header_ = make(http.Header)
17199 }
17200 return c.header_
17201 }
17202
17203 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
17204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17205 if c.ifNoneMatch_ != "" {
17206 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17207 }
17208 var body io.Reader = nil
17209 c.urlParams_.Set("alt", alt)
17210 c.urlParams_.Set("prettyPrint", "false")
17211 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
17212 urls += "?" + c.urlParams_.Encode()
17213 req, err := http.NewRequest("GET", urls, body)
17214 if err != nil {
17215 return nil, err
17216 }
17217 req.Header = reqHeaders
17218 googleapi.Expand(req.URL, map[string]string{
17219 "name": c.name,
17220 })
17221 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17222 }
17223
17224
17225
17226
17227
17228
17229
17230 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
17231 gensupport.SetOptions(c.urlParams_, opts...)
17232 res, err := c.doRequest("json")
17233 if res != nil && res.StatusCode == http.StatusNotModified {
17234 if res.Body != nil {
17235 res.Body.Close()
17236 }
17237 return nil, gensupport.WrapError(&googleapi.Error{
17238 Code: res.StatusCode,
17239 Header: res.Header,
17240 })
17241 }
17242 if err != nil {
17243 return nil, err
17244 }
17245 defer googleapi.CloseBody(res)
17246 if err := googleapi.CheckResponse(res); err != nil {
17247 return nil, gensupport.WrapError(err)
17248 }
17249 ret := &GoogleLongrunningListOperationsResponse{
17250 ServerResponse: googleapi.ServerResponse{
17251 Header: res.Header,
17252 HTTPStatusCode: res.StatusCode,
17253 },
17254 }
17255 target := &ret
17256 if err := gensupport.DecodeResponse(target, res); err != nil {
17257 return nil, err
17258 }
17259 return ret, nil
17260 }
17261
17262
17263
17264
17265 func (c *ProjectsLocationsCollectionsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
17266 c.ctx_ = ctx
17267 defer c.PageToken(c.urlParams_.Get("pageToken"))
17268 for {
17269 x, err := c.Do()
17270 if err != nil {
17271 return err
17272 }
17273 if err := f(x); err != nil {
17274 return err
17275 }
17276 if x.NextPageToken == "" {
17277 return nil
17278 }
17279 c.PageToken(x.NextPageToken)
17280 }
17281 }
17282
17283 type ProjectsLocationsCollectionsDataStoresOperationsGetCall struct {
17284 s *Service
17285 name string
17286 urlParams_ gensupport.URLParams
17287 ifNoneMatch_ string
17288 ctx_ context.Context
17289 header_ http.Header
17290 }
17291
17292
17293
17294
17295
17296
17297 func (r *ProjectsLocationsCollectionsDataStoresOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
17298 c := &ProjectsLocationsCollectionsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17299 c.name = name
17300 return c
17301 }
17302
17303
17304
17305
17306 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
17307 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17308 return c
17309 }
17310
17311
17312
17313
17314 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
17315 c.ifNoneMatch_ = entityTag
17316 return c
17317 }
17318
17319
17320 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsGetCall {
17321 c.ctx_ = ctx
17322 return c
17323 }
17324
17325
17326
17327 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Header() http.Header {
17328 if c.header_ == nil {
17329 c.header_ = make(http.Header)
17330 }
17331 return c.header_
17332 }
17333
17334 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
17335 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17336 if c.ifNoneMatch_ != "" {
17337 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17338 }
17339 var body io.Reader = nil
17340 c.urlParams_.Set("alt", alt)
17341 c.urlParams_.Set("prettyPrint", "false")
17342 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
17343 urls += "?" + c.urlParams_.Encode()
17344 req, err := http.NewRequest("GET", urls, body)
17345 if err != nil {
17346 return nil, err
17347 }
17348 req.Header = reqHeaders
17349 googleapi.Expand(req.URL, map[string]string{
17350 "name": c.name,
17351 })
17352 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17353 }
17354
17355
17356
17357
17358
17359
17360
17361 func (c *ProjectsLocationsCollectionsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17362 gensupport.SetOptions(c.urlParams_, opts...)
17363 res, err := c.doRequest("json")
17364 if res != nil && res.StatusCode == http.StatusNotModified {
17365 if res.Body != nil {
17366 res.Body.Close()
17367 }
17368 return nil, gensupport.WrapError(&googleapi.Error{
17369 Code: res.StatusCode,
17370 Header: res.Header,
17371 })
17372 }
17373 if err != nil {
17374 return nil, err
17375 }
17376 defer googleapi.CloseBody(res)
17377 if err := googleapi.CheckResponse(res); err != nil {
17378 return nil, gensupport.WrapError(err)
17379 }
17380 ret := &GoogleLongrunningOperation{
17381 ServerResponse: googleapi.ServerResponse{
17382 Header: res.Header,
17383 HTTPStatusCode: res.StatusCode,
17384 },
17385 }
17386 target := &ret
17387 if err := gensupport.DecodeResponse(target, res); err != nil {
17388 return nil, err
17389 }
17390 return ret, nil
17391 }
17392
17393 type ProjectsLocationsCollectionsDataStoresOperationsListCall struct {
17394 s *Service
17395 name string
17396 urlParams_ gensupport.URLParams
17397 ifNoneMatch_ string
17398 ctx_ context.Context
17399 header_ http.Header
17400 }
17401
17402
17403
17404
17405
17406 func (r *ProjectsLocationsCollectionsDataStoresOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17407 c := &ProjectsLocationsCollectionsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17408 c.name = name
17409 return c
17410 }
17411
17412
17413 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17414 c.urlParams_.Set("filter", filter)
17415 return c
17416 }
17417
17418
17419
17420 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17421 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17422 return c
17423 }
17424
17425
17426
17427 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17428 c.urlParams_.Set("pageToken", pageToken)
17429 return c
17430 }
17431
17432
17433
17434
17435 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17436 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17437 return c
17438 }
17439
17440
17441
17442
17443 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17444 c.ifNoneMatch_ = entityTag
17445 return c
17446 }
17447
17448
17449 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresOperationsListCall {
17450 c.ctx_ = ctx
17451 return c
17452 }
17453
17454
17455
17456 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Header() http.Header {
17457 if c.header_ == nil {
17458 c.header_ = make(http.Header)
17459 }
17460 return c.header_
17461 }
17462
17463 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
17464 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17465 if c.ifNoneMatch_ != "" {
17466 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17467 }
17468 var body io.Reader = nil
17469 c.urlParams_.Set("alt", alt)
17470 c.urlParams_.Set("prettyPrint", "false")
17471 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
17472 urls += "?" + c.urlParams_.Encode()
17473 req, err := http.NewRequest("GET", urls, body)
17474 if err != nil {
17475 return nil, err
17476 }
17477 req.Header = reqHeaders
17478 googleapi.Expand(req.URL, map[string]string{
17479 "name": c.name,
17480 })
17481 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17482 }
17483
17484
17485
17486
17487
17488
17489
17490 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
17491 gensupport.SetOptions(c.urlParams_, opts...)
17492 res, err := c.doRequest("json")
17493 if res != nil && res.StatusCode == http.StatusNotModified {
17494 if res.Body != nil {
17495 res.Body.Close()
17496 }
17497 return nil, gensupport.WrapError(&googleapi.Error{
17498 Code: res.StatusCode,
17499 Header: res.Header,
17500 })
17501 }
17502 if err != nil {
17503 return nil, err
17504 }
17505 defer googleapi.CloseBody(res)
17506 if err := googleapi.CheckResponse(res); err != nil {
17507 return nil, gensupport.WrapError(err)
17508 }
17509 ret := &GoogleLongrunningListOperationsResponse{
17510 ServerResponse: googleapi.ServerResponse{
17511 Header: res.Header,
17512 HTTPStatusCode: res.StatusCode,
17513 },
17514 }
17515 target := &ret
17516 if err := gensupport.DecodeResponse(target, res); err != nil {
17517 return nil, err
17518 }
17519 return ret, nil
17520 }
17521
17522
17523
17524
17525 func (c *ProjectsLocationsCollectionsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
17526 c.ctx_ = ctx
17527 defer c.PageToken(c.urlParams_.Get("pageToken"))
17528 for {
17529 x, err := c.Do()
17530 if err != nil {
17531 return err
17532 }
17533 if err := f(x); err != nil {
17534 return err
17535 }
17536 if x.NextPageToken == "" {
17537 return nil
17538 }
17539 c.PageToken(x.NextPageToken)
17540 }
17541 }
17542
17543 type ProjectsLocationsCollectionsDataStoresSchemasCreateCall struct {
17544 s *Service
17545 parent string
17546 googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
17547 urlParams_ gensupport.URLParams
17548 ctx_ context.Context
17549 header_ http.Header
17550 }
17551
17552
17553
17554
17555
17556
17557 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
17558 c := &ProjectsLocationsCollectionsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17559 c.parent = parent
17560 c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
17561 return c
17562 }
17563
17564
17565
17566
17567
17568 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
17569 c.urlParams_.Set("schemaId", schemaId)
17570 return c
17571 }
17572
17573
17574
17575
17576 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
17577 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17578 return c
17579 }
17580
17581
17582 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasCreateCall {
17583 c.ctx_ = ctx
17584 return c
17585 }
17586
17587
17588
17589 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Header() http.Header {
17590 if c.header_ == nil {
17591 c.header_ = make(http.Header)
17592 }
17593 return c.header_
17594 }
17595
17596 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
17597 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
17598 var body io.Reader = nil
17599 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
17600 if err != nil {
17601 return nil, err
17602 }
17603 c.urlParams_.Set("alt", alt)
17604 c.urlParams_.Set("prettyPrint", "false")
17605 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
17606 urls += "?" + c.urlParams_.Encode()
17607 req, err := http.NewRequest("POST", urls, body)
17608 if err != nil {
17609 return nil, err
17610 }
17611 req.Header = reqHeaders
17612 googleapi.Expand(req.URL, map[string]string{
17613 "parent": c.parent,
17614 })
17615 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17616 }
17617
17618
17619
17620
17621
17622
17623
17624 func (c *ProjectsLocationsCollectionsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17625 gensupport.SetOptions(c.urlParams_, opts...)
17626 res, err := c.doRequest("json")
17627 if res != nil && res.StatusCode == http.StatusNotModified {
17628 if res.Body != nil {
17629 res.Body.Close()
17630 }
17631 return nil, gensupport.WrapError(&googleapi.Error{
17632 Code: res.StatusCode,
17633 Header: res.Header,
17634 })
17635 }
17636 if err != nil {
17637 return nil, err
17638 }
17639 defer googleapi.CloseBody(res)
17640 if err := googleapi.CheckResponse(res); err != nil {
17641 return nil, gensupport.WrapError(err)
17642 }
17643 ret := &GoogleLongrunningOperation{
17644 ServerResponse: googleapi.ServerResponse{
17645 Header: res.Header,
17646 HTTPStatusCode: res.StatusCode,
17647 },
17648 }
17649 target := &ret
17650 if err := gensupport.DecodeResponse(target, res); err != nil {
17651 return nil, err
17652 }
17653 return ret, nil
17654 }
17655
17656 type ProjectsLocationsCollectionsDataStoresSchemasDeleteCall struct {
17657 s *Service
17658 name string
17659 urlParams_ gensupport.URLParams
17660 ctx_ context.Context
17661 header_ http.Header
17662 }
17663
17664
17665
17666
17667
17668
17669 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
17670 c := &ProjectsLocationsCollectionsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17671 c.name = name
17672 return c
17673 }
17674
17675
17676
17677
17678 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
17679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17680 return c
17681 }
17682
17683
17684 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall {
17685 c.ctx_ = ctx
17686 return c
17687 }
17688
17689
17690
17691 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Header() http.Header {
17692 if c.header_ == nil {
17693 c.header_ = make(http.Header)
17694 }
17695 return c.header_
17696 }
17697
17698 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
17699 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17700 var body io.Reader = nil
17701 c.urlParams_.Set("alt", alt)
17702 c.urlParams_.Set("prettyPrint", "false")
17703 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
17704 urls += "?" + c.urlParams_.Encode()
17705 req, err := http.NewRequest("DELETE", urls, body)
17706 if err != nil {
17707 return nil, err
17708 }
17709 req.Header = reqHeaders
17710 googleapi.Expand(req.URL, map[string]string{
17711 "name": c.name,
17712 })
17713 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17714 }
17715
17716
17717
17718
17719
17720
17721
17722 func (c *ProjectsLocationsCollectionsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
17723 gensupport.SetOptions(c.urlParams_, opts...)
17724 res, err := c.doRequest("json")
17725 if res != nil && res.StatusCode == http.StatusNotModified {
17726 if res.Body != nil {
17727 res.Body.Close()
17728 }
17729 return nil, gensupport.WrapError(&googleapi.Error{
17730 Code: res.StatusCode,
17731 Header: res.Header,
17732 })
17733 }
17734 if err != nil {
17735 return nil, err
17736 }
17737 defer googleapi.CloseBody(res)
17738 if err := googleapi.CheckResponse(res); err != nil {
17739 return nil, gensupport.WrapError(err)
17740 }
17741 ret := &GoogleLongrunningOperation{
17742 ServerResponse: googleapi.ServerResponse{
17743 Header: res.Header,
17744 HTTPStatusCode: res.StatusCode,
17745 },
17746 }
17747 target := &ret
17748 if err := gensupport.DecodeResponse(target, res); err != nil {
17749 return nil, err
17750 }
17751 return ret, nil
17752 }
17753
17754 type ProjectsLocationsCollectionsDataStoresSchemasGetCall struct {
17755 s *Service
17756 name string
17757 urlParams_ gensupport.URLParams
17758 ifNoneMatch_ string
17759 ctx_ context.Context
17760 header_ http.Header
17761 }
17762
17763
17764
17765
17766
17767
17768 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
17769 c := &ProjectsLocationsCollectionsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17770 c.name = name
17771 return c
17772 }
17773
17774
17775
17776
17777 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
17778 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17779 return c
17780 }
17781
17782
17783
17784
17785 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
17786 c.ifNoneMatch_ = entityTag
17787 return c
17788 }
17789
17790
17791 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasGetCall {
17792 c.ctx_ = ctx
17793 return c
17794 }
17795
17796
17797
17798 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Header() http.Header {
17799 if c.header_ == nil {
17800 c.header_ = make(http.Header)
17801 }
17802 return c.header_
17803 }
17804
17805 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
17806 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17807 if c.ifNoneMatch_ != "" {
17808 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17809 }
17810 var body io.Reader = nil
17811 c.urlParams_.Set("alt", alt)
17812 c.urlParams_.Set("prettyPrint", "false")
17813 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
17814 urls += "?" + c.urlParams_.Encode()
17815 req, err := http.NewRequest("GET", urls, body)
17816 if err != nil {
17817 return nil, err
17818 }
17819 req.Header = reqHeaders
17820 googleapi.Expand(req.URL, map[string]string{
17821 "name": c.name,
17822 })
17823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17824 }
17825
17826
17827
17828
17829
17830
17831
17832 func (c *ProjectsLocationsCollectionsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSchema, error) {
17833 gensupport.SetOptions(c.urlParams_, opts...)
17834 res, err := c.doRequest("json")
17835 if res != nil && res.StatusCode == http.StatusNotModified {
17836 if res.Body != nil {
17837 res.Body.Close()
17838 }
17839 return nil, gensupport.WrapError(&googleapi.Error{
17840 Code: res.StatusCode,
17841 Header: res.Header,
17842 })
17843 }
17844 if err != nil {
17845 return nil, err
17846 }
17847 defer googleapi.CloseBody(res)
17848 if err := googleapi.CheckResponse(res); err != nil {
17849 return nil, gensupport.WrapError(err)
17850 }
17851 ret := &GoogleCloudDiscoveryengineV1alphaSchema{
17852 ServerResponse: googleapi.ServerResponse{
17853 Header: res.Header,
17854 HTTPStatusCode: res.StatusCode,
17855 },
17856 }
17857 target := &ret
17858 if err := gensupport.DecodeResponse(target, res); err != nil {
17859 return nil, err
17860 }
17861 return ret, nil
17862 }
17863
17864 type ProjectsLocationsCollectionsDataStoresSchemasListCall struct {
17865 s *Service
17866 parent string
17867 urlParams_ gensupport.URLParams
17868 ifNoneMatch_ string
17869 ctx_ context.Context
17870 header_ http.Header
17871 }
17872
17873
17874
17875
17876
17877
17878 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) List(parent string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
17879 c := &ProjectsLocationsCollectionsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
17880 c.parent = parent
17881 return c
17882 }
17883
17884
17885
17886
17887
17888 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
17889 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
17890 return c
17891 }
17892
17893
17894
17895
17896
17897 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
17898 c.urlParams_.Set("pageToken", pageToken)
17899 return c
17900 }
17901
17902
17903
17904
17905 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
17906 c.urlParams_.Set("fields", googleapi.CombineFields(s))
17907 return c
17908 }
17909
17910
17911
17912
17913 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
17914 c.ifNoneMatch_ = entityTag
17915 return c
17916 }
17917
17918
17919 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasListCall {
17920 c.ctx_ = ctx
17921 return c
17922 }
17923
17924
17925
17926 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Header() http.Header {
17927 if c.header_ == nil {
17928 c.header_ = make(http.Header)
17929 }
17930 return c.header_
17931 }
17932
17933 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
17934 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
17935 if c.ifNoneMatch_ != "" {
17936 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
17937 }
17938 var body io.Reader = nil
17939 c.urlParams_.Set("alt", alt)
17940 c.urlParams_.Set("prettyPrint", "false")
17941 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
17942 urls += "?" + c.urlParams_.Encode()
17943 req, err := http.NewRequest("GET", urls, body)
17944 if err != nil {
17945 return nil, err
17946 }
17947 req.Header = reqHeaders
17948 googleapi.Expand(req.URL, map[string]string{
17949 "parent": c.parent,
17950 })
17951 return gensupport.SendRequest(c.ctx_, c.s.client, req)
17952 }
17953
17954
17955
17956
17957
17958
17959
17960 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSchemasResponse, error) {
17961 gensupport.SetOptions(c.urlParams_, opts...)
17962 res, err := c.doRequest("json")
17963 if res != nil && res.StatusCode == http.StatusNotModified {
17964 if res.Body != nil {
17965 res.Body.Close()
17966 }
17967 return nil, gensupport.WrapError(&googleapi.Error{
17968 Code: res.StatusCode,
17969 Header: res.Header,
17970 })
17971 }
17972 if err != nil {
17973 return nil, err
17974 }
17975 defer googleapi.CloseBody(res)
17976 if err := googleapi.CheckResponse(res); err != nil {
17977 return nil, gensupport.WrapError(err)
17978 }
17979 ret := &GoogleCloudDiscoveryengineV1alphaListSchemasResponse{
17980 ServerResponse: googleapi.ServerResponse{
17981 Header: res.Header,
17982 HTTPStatusCode: res.StatusCode,
17983 },
17984 }
17985 target := &ret
17986 if err := gensupport.DecodeResponse(target, res); err != nil {
17987 return nil, err
17988 }
17989 return ret, nil
17990 }
17991
17992
17993
17994
17995 func (c *ProjectsLocationsCollectionsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSchemasResponse) error) error {
17996 c.ctx_ = ctx
17997 defer c.PageToken(c.urlParams_.Get("pageToken"))
17998 for {
17999 x, err := c.Do()
18000 if err != nil {
18001 return err
18002 }
18003 if err := f(x); err != nil {
18004 return err
18005 }
18006 if x.NextPageToken == "" {
18007 return nil
18008 }
18009 c.PageToken(x.NextPageToken)
18010 }
18011 }
18012
18013 type ProjectsLocationsCollectionsDataStoresSchemasPatchCall struct {
18014 s *Service
18015 name string
18016 googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
18017 urlParams_ gensupport.URLParams
18018 ctx_ context.Context
18019 header_ http.Header
18020 }
18021
18022
18023
18024
18025
18026
18027
18028 func (r *ProjectsLocationsCollectionsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
18029 c := &ProjectsLocationsCollectionsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18030 c.name = name
18031 c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
18032 return c
18033 }
18034
18035
18036
18037
18038 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
18039 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
18040 return c
18041 }
18042
18043
18044
18045
18046 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
18047 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18048 return c
18049 }
18050
18051
18052 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasPatchCall {
18053 c.ctx_ = ctx
18054 return c
18055 }
18056
18057
18058
18059 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Header() http.Header {
18060 if c.header_ == nil {
18061 c.header_ = make(http.Header)
18062 }
18063 return c.header_
18064 }
18065
18066 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
18067 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18068 var body io.Reader = nil
18069 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
18070 if err != nil {
18071 return nil, err
18072 }
18073 c.urlParams_.Set("alt", alt)
18074 c.urlParams_.Set("prettyPrint", "false")
18075 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
18076 urls += "?" + c.urlParams_.Encode()
18077 req, err := http.NewRequest("PATCH", urls, body)
18078 if err != nil {
18079 return nil, err
18080 }
18081 req.Header = reqHeaders
18082 googleapi.Expand(req.URL, map[string]string{
18083 "name": c.name,
18084 })
18085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18086 }
18087
18088
18089
18090
18091
18092
18093
18094 func (c *ProjectsLocationsCollectionsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18095 gensupport.SetOptions(c.urlParams_, opts...)
18096 res, err := c.doRequest("json")
18097 if res != nil && res.StatusCode == http.StatusNotModified {
18098 if res.Body != nil {
18099 res.Body.Close()
18100 }
18101 return nil, gensupport.WrapError(&googleapi.Error{
18102 Code: res.StatusCode,
18103 Header: res.Header,
18104 })
18105 }
18106 if err != nil {
18107 return nil, err
18108 }
18109 defer googleapi.CloseBody(res)
18110 if err := googleapi.CheckResponse(res); err != nil {
18111 return nil, gensupport.WrapError(err)
18112 }
18113 ret := &GoogleLongrunningOperation{
18114 ServerResponse: googleapi.ServerResponse{
18115 Header: res.Header,
18116 HTTPStatusCode: res.StatusCode,
18117 },
18118 }
18119 target := &ret
18120 if err := gensupport.DecodeResponse(target, res); err != nil {
18121 return nil, err
18122 }
18123 return ret, nil
18124 }
18125
18126 type ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall struct {
18127 s *Service
18128 name string
18129 urlParams_ gensupport.URLParams
18130 ifNoneMatch_ string
18131 ctx_ context.Context
18132 header_ http.Header
18133 }
18134
18135
18136
18137
18138
18139
18140 func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
18141 c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18142 c.name = name
18143 return c
18144 }
18145
18146
18147
18148
18149 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
18150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18151 return c
18152 }
18153
18154
18155
18156
18157 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
18158 c.ifNoneMatch_ = entityTag
18159 return c
18160 }
18161
18162
18163 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall {
18164 c.ctx_ = ctx
18165 return c
18166 }
18167
18168
18169
18170 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Header() http.Header {
18171 if c.header_ == nil {
18172 c.header_ = make(http.Header)
18173 }
18174 return c.header_
18175 }
18176
18177 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) doRequest(alt string) (*http.Response, error) {
18178 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18179 if c.ifNoneMatch_ != "" {
18180 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18181 }
18182 var body io.Reader = nil
18183 c.urlParams_.Set("alt", alt)
18184 c.urlParams_.Set("prettyPrint", "false")
18185 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
18186 urls += "?" + c.urlParams_.Encode()
18187 req, err := http.NewRequest("GET", urls, body)
18188 if err != nil {
18189 return nil, err
18190 }
18191 req.Header = reqHeaders
18192 googleapi.Expand(req.URL, map[string]string{
18193 "name": c.name,
18194 })
18195 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18196 }
18197
18198
18199
18200
18201
18202
18203
18204 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
18205 gensupport.SetOptions(c.urlParams_, opts...)
18206 res, err := c.doRequest("json")
18207 if res != nil && res.StatusCode == http.StatusNotModified {
18208 if res.Body != nil {
18209 res.Body.Close()
18210 }
18211 return nil, gensupport.WrapError(&googleapi.Error{
18212 Code: res.StatusCode,
18213 Header: res.Header,
18214 })
18215 }
18216 if err != nil {
18217 return nil, err
18218 }
18219 defer googleapi.CloseBody(res)
18220 if err := googleapi.CheckResponse(res); err != nil {
18221 return nil, gensupport.WrapError(err)
18222 }
18223 ret := &GoogleLongrunningOperation{
18224 ServerResponse: googleapi.ServerResponse{
18225 Header: res.Header,
18226 HTTPStatusCode: res.StatusCode,
18227 },
18228 }
18229 target := &ret
18230 if err := gensupport.DecodeResponse(target, res); err != nil {
18231 return nil, err
18232 }
18233 return ret, nil
18234 }
18235
18236 type ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall struct {
18237 s *Service
18238 name string
18239 urlParams_ gensupport.URLParams
18240 ifNoneMatch_ string
18241 ctx_ context.Context
18242 header_ http.Header
18243 }
18244
18245
18246
18247
18248
18249 func (r *ProjectsLocationsCollectionsDataStoresSchemasOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18250 c := &ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18251 c.name = name
18252 return c
18253 }
18254
18255
18256 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18257 c.urlParams_.Set("filter", filter)
18258 return c
18259 }
18260
18261
18262
18263 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18264 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18265 return c
18266 }
18267
18268
18269
18270 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18271 c.urlParams_.Set("pageToken", pageToken)
18272 return c
18273 }
18274
18275
18276
18277
18278 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18279 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18280 return c
18281 }
18282
18283
18284
18285
18286 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18287 c.ifNoneMatch_ = entityTag
18288 return c
18289 }
18290
18291
18292 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall {
18293 c.ctx_ = ctx
18294 return c
18295 }
18296
18297
18298
18299 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Header() http.Header {
18300 if c.header_ == nil {
18301 c.header_ = make(http.Header)
18302 }
18303 return c.header_
18304 }
18305
18306 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) doRequest(alt string) (*http.Response, error) {
18307 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18308 if c.ifNoneMatch_ != "" {
18309 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18310 }
18311 var body io.Reader = nil
18312 c.urlParams_.Set("alt", alt)
18313 c.urlParams_.Set("prettyPrint", "false")
18314 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
18315 urls += "?" + c.urlParams_.Encode()
18316 req, err := http.NewRequest("GET", urls, body)
18317 if err != nil {
18318 return nil, err
18319 }
18320 req.Header = reqHeaders
18321 googleapi.Expand(req.URL, map[string]string{
18322 "name": c.name,
18323 })
18324 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18325 }
18326
18327
18328
18329
18330
18331
18332
18333 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
18334 gensupport.SetOptions(c.urlParams_, opts...)
18335 res, err := c.doRequest("json")
18336 if res != nil && res.StatusCode == http.StatusNotModified {
18337 if res.Body != nil {
18338 res.Body.Close()
18339 }
18340 return nil, gensupport.WrapError(&googleapi.Error{
18341 Code: res.StatusCode,
18342 Header: res.Header,
18343 })
18344 }
18345 if err != nil {
18346 return nil, err
18347 }
18348 defer googleapi.CloseBody(res)
18349 if err := googleapi.CheckResponse(res); err != nil {
18350 return nil, gensupport.WrapError(err)
18351 }
18352 ret := &GoogleLongrunningListOperationsResponse{
18353 ServerResponse: googleapi.ServerResponse{
18354 Header: res.Header,
18355 HTTPStatusCode: res.StatusCode,
18356 },
18357 }
18358 target := &ret
18359 if err := gensupport.DecodeResponse(target, res); err != nil {
18360 return nil, err
18361 }
18362 return ret, nil
18363 }
18364
18365
18366
18367
18368 func (c *ProjectsLocationsCollectionsDataStoresSchemasOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
18369 c.ctx_ = ctx
18370 defer c.PageToken(c.urlParams_.Get("pageToken"))
18371 for {
18372 x, err := c.Do()
18373 if err != nil {
18374 return err
18375 }
18376 if err := f(x); err != nil {
18377 return err
18378 }
18379 if x.NextPageToken == "" {
18380 return nil
18381 }
18382 c.PageToken(x.NextPageToken)
18383 }
18384 }
18385
18386 type ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall struct {
18387 s *Service
18388 servingConfig string
18389 googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
18390 urlParams_ gensupport.URLParams
18391 ctx_ context.Context
18392 header_ http.Header
18393 }
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
18404 c := &ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18405 c.servingConfig = servingConfig
18406 c.googleclouddiscoveryenginev1alphaanswerqueryrequest = googleclouddiscoveryenginev1alphaanswerqueryrequest
18407 return c
18408 }
18409
18410
18411
18412
18413 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
18414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18415 return c
18416 }
18417
18418
18419 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall {
18420 c.ctx_ = ctx
18421 return c
18422 }
18423
18424
18425
18426 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Header() http.Header {
18427 if c.header_ == nil {
18428 c.header_ = make(http.Header)
18429 }
18430 return c.header_
18431 }
18432
18433 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
18434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18435 var body io.Reader = nil
18436 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaanswerqueryrequest)
18437 if err != nil {
18438 return nil, err
18439 }
18440 c.urlParams_.Set("alt", alt)
18441 c.urlParams_.Set("prettyPrint", "false")
18442 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:answer")
18443 urls += "?" + c.urlParams_.Encode()
18444 req, err := http.NewRequest("POST", urls, body)
18445 if err != nil {
18446 return nil, err
18447 }
18448 req.Header = reqHeaders
18449 googleapi.Expand(req.URL, map[string]string{
18450 "servingConfig": c.servingConfig,
18451 })
18452 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18453 }
18454
18455
18456
18457
18458
18459
18460
18461 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse, error) {
18462 gensupport.SetOptions(c.urlParams_, opts...)
18463 res, err := c.doRequest("json")
18464 if res != nil && res.StatusCode == http.StatusNotModified {
18465 if res.Body != nil {
18466 res.Body.Close()
18467 }
18468 return nil, gensupport.WrapError(&googleapi.Error{
18469 Code: res.StatusCode,
18470 Header: res.Header,
18471 })
18472 }
18473 if err != nil {
18474 return nil, err
18475 }
18476 defer googleapi.CloseBody(res)
18477 if err := googleapi.CheckResponse(res); err != nil {
18478 return nil, gensupport.WrapError(err)
18479 }
18480 ret := &GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse{
18481 ServerResponse: googleapi.ServerResponse{
18482 Header: res.Header,
18483 HTTPStatusCode: res.StatusCode,
18484 },
18485 }
18486 target := &ret
18487 if err := gensupport.DecodeResponse(target, res); err != nil {
18488 return nil, err
18489 }
18490 return ret, nil
18491 }
18492
18493 type ProjectsLocationsCollectionsDataStoresServingConfigsGetCall struct {
18494 s *Service
18495 name string
18496 urlParams_ gensupport.URLParams
18497 ifNoneMatch_ string
18498 ctx_ context.Context
18499 header_ http.Header
18500 }
18501
18502
18503
18504
18505
18506
18507
18508 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
18509 c := &ProjectsLocationsCollectionsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18510 c.name = name
18511 return c
18512 }
18513
18514
18515
18516
18517 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
18518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18519 return c
18520 }
18521
18522
18523
18524
18525 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
18526 c.ifNoneMatch_ = entityTag
18527 return c
18528 }
18529
18530
18531 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall {
18532 c.ctx_ = ctx
18533 return c
18534 }
18535
18536
18537
18538 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Header() http.Header {
18539 if c.header_ == nil {
18540 c.header_ = make(http.Header)
18541 }
18542 return c.header_
18543 }
18544
18545 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
18546 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18547 if c.ifNoneMatch_ != "" {
18548 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18549 }
18550 var body io.Reader = nil
18551 c.urlParams_.Set("alt", alt)
18552 c.urlParams_.Set("prettyPrint", "false")
18553 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
18554 urls += "?" + c.urlParams_.Encode()
18555 req, err := http.NewRequest("GET", urls, body)
18556 if err != nil {
18557 return nil, err
18558 }
18559 req.Header = reqHeaders
18560 googleapi.Expand(req.URL, map[string]string{
18561 "name": c.name,
18562 })
18563 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18564 }
18565
18566
18567
18568
18569
18570
18571
18572 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
18573 gensupport.SetOptions(c.urlParams_, opts...)
18574 res, err := c.doRequest("json")
18575 if res != nil && res.StatusCode == http.StatusNotModified {
18576 if res.Body != nil {
18577 res.Body.Close()
18578 }
18579 return nil, gensupport.WrapError(&googleapi.Error{
18580 Code: res.StatusCode,
18581 Header: res.Header,
18582 })
18583 }
18584 if err != nil {
18585 return nil, err
18586 }
18587 defer googleapi.CloseBody(res)
18588 if err := googleapi.CheckResponse(res); err != nil {
18589 return nil, gensupport.WrapError(err)
18590 }
18591 ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
18592 ServerResponse: googleapi.ServerResponse{
18593 Header: res.Header,
18594 HTTPStatusCode: res.StatusCode,
18595 },
18596 }
18597 target := &ret
18598 if err := gensupport.DecodeResponse(target, res); err != nil {
18599 return nil, err
18600 }
18601 return ret, nil
18602 }
18603
18604 type ProjectsLocationsCollectionsDataStoresServingConfigsListCall struct {
18605 s *Service
18606 parent string
18607 urlParams_ gensupport.URLParams
18608 ifNoneMatch_ string
18609 ctx_ context.Context
18610 header_ http.Header
18611 }
18612
18613
18614
18615
18616
18617
18618 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
18619 c := &ProjectsLocationsCollectionsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18620 c.parent = parent
18621 return c
18622 }
18623
18624
18625
18626
18627 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
18628 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18629 return c
18630 }
18631
18632
18633
18634
18635 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
18636 c.urlParams_.Set("pageToken", pageToken)
18637 return c
18638 }
18639
18640
18641
18642
18643 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
18644 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18645 return c
18646 }
18647
18648
18649
18650
18651 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
18652 c.ifNoneMatch_ = entityTag
18653 return c
18654 }
18655
18656
18657 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsListCall {
18658 c.ctx_ = ctx
18659 return c
18660 }
18661
18662
18663
18664 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Header() http.Header {
18665 if c.header_ == nil {
18666 c.header_ = make(http.Header)
18667 }
18668 return c.header_
18669 }
18670
18671 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
18672 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18673 if c.ifNoneMatch_ != "" {
18674 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18675 }
18676 var body io.Reader = nil
18677 c.urlParams_.Set("alt", alt)
18678 c.urlParams_.Set("prettyPrint", "false")
18679 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/servingConfigs")
18680 urls += "?" + c.urlParams_.Encode()
18681 req, err := http.NewRequest("GET", urls, body)
18682 if err != nil {
18683 return nil, err
18684 }
18685 req.Header = reqHeaders
18686 googleapi.Expand(req.URL, map[string]string{
18687 "parent": c.parent,
18688 })
18689 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18690 }
18691
18692
18693
18694
18695
18696
18697
18698 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse, error) {
18699 gensupport.SetOptions(c.urlParams_, opts...)
18700 res, err := c.doRequest("json")
18701 if res != nil && res.StatusCode == http.StatusNotModified {
18702 if res.Body != nil {
18703 res.Body.Close()
18704 }
18705 return nil, gensupport.WrapError(&googleapi.Error{
18706 Code: res.StatusCode,
18707 Header: res.Header,
18708 })
18709 }
18710 if err != nil {
18711 return nil, err
18712 }
18713 defer googleapi.CloseBody(res)
18714 if err := googleapi.CheckResponse(res); err != nil {
18715 return nil, gensupport.WrapError(err)
18716 }
18717 ret := &GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse{
18718 ServerResponse: googleapi.ServerResponse{
18719 Header: res.Header,
18720 HTTPStatusCode: res.StatusCode,
18721 },
18722 }
18723 target := &ret
18724 if err := gensupport.DecodeResponse(target, res); err != nil {
18725 return nil, err
18726 }
18727 return ret, nil
18728 }
18729
18730
18731
18732
18733 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) error) error {
18734 c.ctx_ = ctx
18735 defer c.PageToken(c.urlParams_.Get("pageToken"))
18736 for {
18737 x, err := c.Do()
18738 if err != nil {
18739 return err
18740 }
18741 if err := f(x); err != nil {
18742 return err
18743 }
18744 if x.NextPageToken == "" {
18745 return nil
18746 }
18747 c.PageToken(x.NextPageToken)
18748 }
18749 }
18750
18751 type ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall struct {
18752 s *Service
18753 name string
18754 googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig
18755 urlParams_ gensupport.URLParams
18756 ctx_ context.Context
18757 header_ http.Header
18758 }
18759
18760
18761
18762
18763
18764
18765
18766 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
18767 c := &ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18768 c.name = name
18769 c.googleclouddiscoveryenginev1alphaservingconfig = googleclouddiscoveryenginev1alphaservingconfig
18770 return c
18771 }
18772
18773
18774
18775
18776 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
18777 c.urlParams_.Set("updateMask", updateMask)
18778 return c
18779 }
18780
18781
18782
18783
18784 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
18785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18786 return c
18787 }
18788
18789
18790 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall {
18791 c.ctx_ = ctx
18792 return c
18793 }
18794
18795
18796
18797 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Header() http.Header {
18798 if c.header_ == nil {
18799 c.header_ = make(http.Header)
18800 }
18801 return c.header_
18802 }
18803
18804 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
18805 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18806 var body io.Reader = nil
18807 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaservingconfig)
18808 if err != nil {
18809 return nil, err
18810 }
18811 c.urlParams_.Set("alt", alt)
18812 c.urlParams_.Set("prettyPrint", "false")
18813 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
18814 urls += "?" + c.urlParams_.Encode()
18815 req, err := http.NewRequest("PATCH", urls, body)
18816 if err != nil {
18817 return nil, err
18818 }
18819 req.Header = reqHeaders
18820 googleapi.Expand(req.URL, map[string]string{
18821 "name": c.name,
18822 })
18823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18824 }
18825
18826
18827
18828
18829
18830
18831
18832 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
18833 gensupport.SetOptions(c.urlParams_, opts...)
18834 res, err := c.doRequest("json")
18835 if res != nil && res.StatusCode == http.StatusNotModified {
18836 if res.Body != nil {
18837 res.Body.Close()
18838 }
18839 return nil, gensupport.WrapError(&googleapi.Error{
18840 Code: res.StatusCode,
18841 Header: res.Header,
18842 })
18843 }
18844 if err != nil {
18845 return nil, err
18846 }
18847 defer googleapi.CloseBody(res)
18848 if err := googleapi.CheckResponse(res); err != nil {
18849 return nil, gensupport.WrapError(err)
18850 }
18851 ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
18852 ServerResponse: googleapi.ServerResponse{
18853 Header: res.Header,
18854 HTTPStatusCode: res.StatusCode,
18855 },
18856 }
18857 target := &ret
18858 if err := gensupport.DecodeResponse(target, res); err != nil {
18859 return nil, err
18860 }
18861 return ret, nil
18862 }
18863
18864 type ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall struct {
18865 s *Service
18866 servingConfig string
18867 googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest
18868 urlParams_ gensupport.URLParams
18869 ctx_ context.Context
18870 header_ http.Header
18871 }
18872
18873
18874
18875
18876
18877
18878
18879
18880
18881
18882
18883
18884 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
18885 c := &ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18886 c.servingConfig = servingConfig
18887 c.googleclouddiscoveryenginev1alpharecommendrequest = googleclouddiscoveryenginev1alpharecommendrequest
18888 return c
18889 }
18890
18891
18892
18893
18894 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
18895 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18896 return c
18897 }
18898
18899
18900 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall {
18901 c.ctx_ = ctx
18902 return c
18903 }
18904
18905
18906
18907 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Header() http.Header {
18908 if c.header_ == nil {
18909 c.header_ = make(http.Header)
18910 }
18911 return c.header_
18912 }
18913
18914 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
18915 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18916 var body io.Reader = nil
18917 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecommendrequest)
18918 if err != nil {
18919 return nil, err
18920 }
18921 c.urlParams_.Set("alt", alt)
18922 c.urlParams_.Set("prettyPrint", "false")
18923 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:recommend")
18924 urls += "?" + c.urlParams_.Encode()
18925 req, err := http.NewRequest("POST", urls, body)
18926 if err != nil {
18927 return nil, err
18928 }
18929 req.Header = reqHeaders
18930 googleapi.Expand(req.URL, map[string]string{
18931 "servingConfig": c.servingConfig,
18932 })
18933 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18934 }
18935
18936
18937
18938
18939
18940
18941
18942 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRecommendResponse, error) {
18943 gensupport.SetOptions(c.urlParams_, opts...)
18944 res, err := c.doRequest("json")
18945 if res != nil && res.StatusCode == http.StatusNotModified {
18946 if res.Body != nil {
18947 res.Body.Close()
18948 }
18949 return nil, gensupport.WrapError(&googleapi.Error{
18950 Code: res.StatusCode,
18951 Header: res.Header,
18952 })
18953 }
18954 if err != nil {
18955 return nil, err
18956 }
18957 defer googleapi.CloseBody(res)
18958 if err := googleapi.CheckResponse(res); err != nil {
18959 return nil, gensupport.WrapError(err)
18960 }
18961 ret := &GoogleCloudDiscoveryengineV1alphaRecommendResponse{
18962 ServerResponse: googleapi.ServerResponse{
18963 Header: res.Header,
18964 HTTPStatusCode: res.StatusCode,
18965 },
18966 }
18967 target := &ret
18968 if err := gensupport.DecodeResponse(target, res); err != nil {
18969 return nil, err
18970 }
18971 return ret, nil
18972 }
18973
18974 type ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall struct {
18975 s *Service
18976 servingConfig string
18977 googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest
18978 urlParams_ gensupport.URLParams
18979 ctx_ context.Context
18980 header_ http.Header
18981 }
18982
18983
18984
18985
18986
18987
18988
18989
18990
18991
18992 func (r *ProjectsLocationsCollectionsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
18993 c := &ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18994 c.servingConfig = servingConfig
18995 c.googleclouddiscoveryenginev1alphasearchrequest = googleclouddiscoveryenginev1alphasearchrequest
18996 return c
18997 }
18998
18999
19000
19001
19002 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
19003 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19004 return c
19005 }
19006
19007
19008 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall {
19009 c.ctx_ = ctx
19010 return c
19011 }
19012
19013
19014
19015 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Header() http.Header {
19016 if c.header_ == nil {
19017 c.header_ = make(http.Header)
19018 }
19019 return c.header_
19020 }
19021
19022 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
19023 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19024 var body io.Reader = nil
19025 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasearchrequest)
19026 if err != nil {
19027 return nil, err
19028 }
19029 c.urlParams_.Set("alt", alt)
19030 c.urlParams_.Set("prettyPrint", "false")
19031 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:search")
19032 urls += "?" + c.urlParams_.Encode()
19033 req, err := http.NewRequest("POST", urls, body)
19034 if err != nil {
19035 return nil, err
19036 }
19037 req.Header = reqHeaders
19038 googleapi.Expand(req.URL, map[string]string{
19039 "servingConfig": c.servingConfig,
19040 })
19041 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19042 }
19043
19044
19045
19046
19047
19048
19049
19050 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSearchResponse, error) {
19051 gensupport.SetOptions(c.urlParams_, opts...)
19052 res, err := c.doRequest("json")
19053 if res != nil && res.StatusCode == http.StatusNotModified {
19054 if res.Body != nil {
19055 res.Body.Close()
19056 }
19057 return nil, gensupport.WrapError(&googleapi.Error{
19058 Code: res.StatusCode,
19059 Header: res.Header,
19060 })
19061 }
19062 if err != nil {
19063 return nil, err
19064 }
19065 defer googleapi.CloseBody(res)
19066 if err := googleapi.CheckResponse(res); err != nil {
19067 return nil, gensupport.WrapError(err)
19068 }
19069 ret := &GoogleCloudDiscoveryengineV1alphaSearchResponse{
19070 ServerResponse: googleapi.ServerResponse{
19071 Header: res.Header,
19072 HTTPStatusCode: res.StatusCode,
19073 },
19074 }
19075 target := &ret
19076 if err := gensupport.DecodeResponse(target, res); err != nil {
19077 return nil, err
19078 }
19079 return ret, nil
19080 }
19081
19082
19083
19084
19085 func (c *ProjectsLocationsCollectionsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaSearchResponse) error) error {
19086 c.ctx_ = ctx
19087 defer func(pt string) { c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1alphasearchrequest.PageToken)
19088 for {
19089 x, err := c.Do()
19090 if err != nil {
19091 return err
19092 }
19093 if err := f(x); err != nil {
19094 return err
19095 }
19096 if x.NextPageToken == "" {
19097 return nil
19098 }
19099 c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = x.NextPageToken
19100 }
19101 }
19102
19103 type ProjectsLocationsCollectionsDataStoresSessionsCreateCall struct {
19104 s *Service
19105 parent string
19106 googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
19107 urlParams_ gensupport.URLParams
19108 ctx_ context.Context
19109 header_ http.Header
19110 }
19111
19112
19113
19114
19115
19116
19117
19118 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
19119 c := &ProjectsLocationsCollectionsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19120 c.parent = parent
19121 c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
19122 return c
19123 }
19124
19125
19126
19127
19128 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
19129 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19130 return c
19131 }
19132
19133
19134 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsCreateCall {
19135 c.ctx_ = ctx
19136 return c
19137 }
19138
19139
19140
19141 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Header() http.Header {
19142 if c.header_ == nil {
19143 c.header_ = make(http.Header)
19144 }
19145 return c.header_
19146 }
19147
19148 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
19149 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19150 var body io.Reader = nil
19151 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
19152 if err != nil {
19153 return nil, err
19154 }
19155 c.urlParams_.Set("alt", alt)
19156 c.urlParams_.Set("prettyPrint", "false")
19157 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
19158 urls += "?" + c.urlParams_.Encode()
19159 req, err := http.NewRequest("POST", urls, body)
19160 if err != nil {
19161 return nil, err
19162 }
19163 req.Header = reqHeaders
19164 googleapi.Expand(req.URL, map[string]string{
19165 "parent": c.parent,
19166 })
19167 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19168 }
19169
19170
19171
19172
19173
19174
19175
19176 func (c *ProjectsLocationsCollectionsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
19177 gensupport.SetOptions(c.urlParams_, opts...)
19178 res, err := c.doRequest("json")
19179 if res != nil && res.StatusCode == http.StatusNotModified {
19180 if res.Body != nil {
19181 res.Body.Close()
19182 }
19183 return nil, gensupport.WrapError(&googleapi.Error{
19184 Code: res.StatusCode,
19185 Header: res.Header,
19186 })
19187 }
19188 if err != nil {
19189 return nil, err
19190 }
19191 defer googleapi.CloseBody(res)
19192 if err := googleapi.CheckResponse(res); err != nil {
19193 return nil, gensupport.WrapError(err)
19194 }
19195 ret := &GoogleCloudDiscoveryengineV1alphaSession{
19196 ServerResponse: googleapi.ServerResponse{
19197 Header: res.Header,
19198 HTTPStatusCode: res.StatusCode,
19199 },
19200 }
19201 target := &ret
19202 if err := gensupport.DecodeResponse(target, res); err != nil {
19203 return nil, err
19204 }
19205 return ret, nil
19206 }
19207
19208 type ProjectsLocationsCollectionsDataStoresSessionsDeleteCall struct {
19209 s *Service
19210 name string
19211 urlParams_ gensupport.URLParams
19212 ctx_ context.Context
19213 header_ http.Header
19214 }
19215
19216
19217
19218
19219
19220
19221
19222 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
19223 c := &ProjectsLocationsCollectionsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19224 c.name = name
19225 return c
19226 }
19227
19228
19229
19230
19231 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
19232 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19233 return c
19234 }
19235
19236
19237 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall {
19238 c.ctx_ = ctx
19239 return c
19240 }
19241
19242
19243
19244 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Header() http.Header {
19245 if c.header_ == nil {
19246 c.header_ = make(http.Header)
19247 }
19248 return c.header_
19249 }
19250
19251 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
19252 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19253 var body io.Reader = nil
19254 c.urlParams_.Set("alt", alt)
19255 c.urlParams_.Set("prettyPrint", "false")
19256 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
19257 urls += "?" + c.urlParams_.Encode()
19258 req, err := http.NewRequest("DELETE", urls, body)
19259 if err != nil {
19260 return nil, err
19261 }
19262 req.Header = reqHeaders
19263 googleapi.Expand(req.URL, map[string]string{
19264 "name": c.name,
19265 })
19266 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19267 }
19268
19269
19270
19271
19272
19273
19274
19275 func (c *ProjectsLocationsCollectionsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19276 gensupport.SetOptions(c.urlParams_, opts...)
19277 res, err := c.doRequest("json")
19278 if res != nil && res.StatusCode == http.StatusNotModified {
19279 if res.Body != nil {
19280 res.Body.Close()
19281 }
19282 return nil, gensupport.WrapError(&googleapi.Error{
19283 Code: res.StatusCode,
19284 Header: res.Header,
19285 })
19286 }
19287 if err != nil {
19288 return nil, err
19289 }
19290 defer googleapi.CloseBody(res)
19291 if err := googleapi.CheckResponse(res); err != nil {
19292 return nil, gensupport.WrapError(err)
19293 }
19294 ret := &GoogleProtobufEmpty{
19295 ServerResponse: googleapi.ServerResponse{
19296 Header: res.Header,
19297 HTTPStatusCode: res.StatusCode,
19298 },
19299 }
19300 target := &ret
19301 if err := gensupport.DecodeResponse(target, res); err != nil {
19302 return nil, err
19303 }
19304 return ret, nil
19305 }
19306
19307 type ProjectsLocationsCollectionsDataStoresSessionsGetCall struct {
19308 s *Service
19309 name string
19310 urlParams_ gensupport.URLParams
19311 ifNoneMatch_ string
19312 ctx_ context.Context
19313 header_ http.Header
19314 }
19315
19316
19317
19318
19319
19320
19321 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
19322 c := &ProjectsLocationsCollectionsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19323 c.name = name
19324 return c
19325 }
19326
19327
19328
19329
19330 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
19331 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19332 return c
19333 }
19334
19335
19336
19337
19338 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
19339 c.ifNoneMatch_ = entityTag
19340 return c
19341 }
19342
19343
19344 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsGetCall {
19345 c.ctx_ = ctx
19346 return c
19347 }
19348
19349
19350
19351 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Header() http.Header {
19352 if c.header_ == nil {
19353 c.header_ = make(http.Header)
19354 }
19355 return c.header_
19356 }
19357
19358 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
19359 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19360 if c.ifNoneMatch_ != "" {
19361 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19362 }
19363 var body io.Reader = nil
19364 c.urlParams_.Set("alt", alt)
19365 c.urlParams_.Set("prettyPrint", "false")
19366 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
19367 urls += "?" + c.urlParams_.Encode()
19368 req, err := http.NewRequest("GET", urls, body)
19369 if err != nil {
19370 return nil, err
19371 }
19372 req.Header = reqHeaders
19373 googleapi.Expand(req.URL, map[string]string{
19374 "name": c.name,
19375 })
19376 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19377 }
19378
19379
19380
19381
19382
19383
19384
19385 func (c *ProjectsLocationsCollectionsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
19386 gensupport.SetOptions(c.urlParams_, opts...)
19387 res, err := c.doRequest("json")
19388 if res != nil && res.StatusCode == http.StatusNotModified {
19389 if res.Body != nil {
19390 res.Body.Close()
19391 }
19392 return nil, gensupport.WrapError(&googleapi.Error{
19393 Code: res.StatusCode,
19394 Header: res.Header,
19395 })
19396 }
19397 if err != nil {
19398 return nil, err
19399 }
19400 defer googleapi.CloseBody(res)
19401 if err := googleapi.CheckResponse(res); err != nil {
19402 return nil, gensupport.WrapError(err)
19403 }
19404 ret := &GoogleCloudDiscoveryengineV1alphaSession{
19405 ServerResponse: googleapi.ServerResponse{
19406 Header: res.Header,
19407 HTTPStatusCode: res.StatusCode,
19408 },
19409 }
19410 target := &ret
19411 if err := gensupport.DecodeResponse(target, res); err != nil {
19412 return nil, err
19413 }
19414 return ret, nil
19415 }
19416
19417 type ProjectsLocationsCollectionsDataStoresSessionsListCall struct {
19418 s *Service
19419 parent string
19420 urlParams_ gensupport.URLParams
19421 ifNoneMatch_ string
19422 ctx_ context.Context
19423 header_ http.Header
19424 }
19425
19426
19427
19428
19429
19430
19431 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) List(parent string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19432 c := &ProjectsLocationsCollectionsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19433 c.parent = parent
19434 return c
19435 }
19436
19437
19438
19439
19440 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19441 c.urlParams_.Set("filter", filter)
19442 return c
19443 }
19444
19445
19446
19447
19448
19449 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19450 c.urlParams_.Set("orderBy", orderBy)
19451 return c
19452 }
19453
19454
19455
19456 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19457 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19458 return c
19459 }
19460
19461
19462
19463
19464 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19465 c.urlParams_.Set("pageToken", pageToken)
19466 return c
19467 }
19468
19469
19470
19471
19472 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19473 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19474 return c
19475 }
19476
19477
19478
19479
19480 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19481 c.ifNoneMatch_ = entityTag
19482 return c
19483 }
19484
19485
19486 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsListCall {
19487 c.ctx_ = ctx
19488 return c
19489 }
19490
19491
19492
19493 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Header() http.Header {
19494 if c.header_ == nil {
19495 c.header_ = make(http.Header)
19496 }
19497 return c.header_
19498 }
19499
19500 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
19501 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19502 if c.ifNoneMatch_ != "" {
19503 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19504 }
19505 var body io.Reader = nil
19506 c.urlParams_.Set("alt", alt)
19507 c.urlParams_.Set("prettyPrint", "false")
19508 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
19509 urls += "?" + c.urlParams_.Encode()
19510 req, err := http.NewRequest("GET", urls, body)
19511 if err != nil {
19512 return nil, err
19513 }
19514 req.Header = reqHeaders
19515 googleapi.Expand(req.URL, map[string]string{
19516 "parent": c.parent,
19517 })
19518 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19519 }
19520
19521
19522
19523
19524
19525
19526
19527 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSessionsResponse, error) {
19528 gensupport.SetOptions(c.urlParams_, opts...)
19529 res, err := c.doRequest("json")
19530 if res != nil && res.StatusCode == http.StatusNotModified {
19531 if res.Body != nil {
19532 res.Body.Close()
19533 }
19534 return nil, gensupport.WrapError(&googleapi.Error{
19535 Code: res.StatusCode,
19536 Header: res.Header,
19537 })
19538 }
19539 if err != nil {
19540 return nil, err
19541 }
19542 defer googleapi.CloseBody(res)
19543 if err := googleapi.CheckResponse(res); err != nil {
19544 return nil, gensupport.WrapError(err)
19545 }
19546 ret := &GoogleCloudDiscoveryengineV1alphaListSessionsResponse{
19547 ServerResponse: googleapi.ServerResponse{
19548 Header: res.Header,
19549 HTTPStatusCode: res.StatusCode,
19550 },
19551 }
19552 target := &ret
19553 if err := gensupport.DecodeResponse(target, res); err != nil {
19554 return nil, err
19555 }
19556 return ret, nil
19557 }
19558
19559
19560
19561
19562 func (c *ProjectsLocationsCollectionsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSessionsResponse) error) error {
19563 c.ctx_ = ctx
19564 defer c.PageToken(c.urlParams_.Get("pageToken"))
19565 for {
19566 x, err := c.Do()
19567 if err != nil {
19568 return err
19569 }
19570 if err := f(x); err != nil {
19571 return err
19572 }
19573 if x.NextPageToken == "" {
19574 return nil
19575 }
19576 c.PageToken(x.NextPageToken)
19577 }
19578 }
19579
19580 type ProjectsLocationsCollectionsDataStoresSessionsPatchCall struct {
19581 s *Service
19582 name string
19583 googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
19584 urlParams_ gensupport.URLParams
19585 ctx_ context.Context
19586 header_ http.Header
19587 }
19588
19589
19590
19591
19592
19593
19594
19595 func (r *ProjectsLocationsCollectionsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
19596 c := &ProjectsLocationsCollectionsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19597 c.name = name
19598 c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
19599 return c
19600 }
19601
19602
19603
19604
19605 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
19606 c.urlParams_.Set("updateMask", updateMask)
19607 return c
19608 }
19609
19610
19611
19612
19613 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
19614 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19615 return c
19616 }
19617
19618
19619 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsPatchCall {
19620 c.ctx_ = ctx
19621 return c
19622 }
19623
19624
19625
19626 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Header() http.Header {
19627 if c.header_ == nil {
19628 c.header_ = make(http.Header)
19629 }
19630 return c.header_
19631 }
19632
19633 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
19634 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19635 var body io.Reader = nil
19636 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
19637 if err != nil {
19638 return nil, err
19639 }
19640 c.urlParams_.Set("alt", alt)
19641 c.urlParams_.Set("prettyPrint", "false")
19642 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
19643 urls += "?" + c.urlParams_.Encode()
19644 req, err := http.NewRequest("PATCH", urls, body)
19645 if err != nil {
19646 return nil, err
19647 }
19648 req.Header = reqHeaders
19649 googleapi.Expand(req.URL, map[string]string{
19650 "name": c.name,
19651 })
19652 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19653 }
19654
19655
19656
19657
19658
19659
19660
19661 func (c *ProjectsLocationsCollectionsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
19662 gensupport.SetOptions(c.urlParams_, opts...)
19663 res, err := c.doRequest("json")
19664 if res != nil && res.StatusCode == http.StatusNotModified {
19665 if res.Body != nil {
19666 res.Body.Close()
19667 }
19668 return nil, gensupport.WrapError(&googleapi.Error{
19669 Code: res.StatusCode,
19670 Header: res.Header,
19671 })
19672 }
19673 if err != nil {
19674 return nil, err
19675 }
19676 defer googleapi.CloseBody(res)
19677 if err := googleapi.CheckResponse(res); err != nil {
19678 return nil, gensupport.WrapError(err)
19679 }
19680 ret := &GoogleCloudDiscoveryengineV1alphaSession{
19681 ServerResponse: googleapi.ServerResponse{
19682 Header: res.Header,
19683 HTTPStatusCode: res.StatusCode,
19684 },
19685 }
19686 target := &ret
19687 if err := gensupport.DecodeResponse(target, res); err != nil {
19688 return nil, err
19689 }
19690 return ret, nil
19691 }
19692
19693 type ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall struct {
19694 s *Service
19695 name string
19696 urlParams_ gensupport.URLParams
19697 ifNoneMatch_ string
19698 ctx_ context.Context
19699 header_ http.Header
19700 }
19701
19702
19703
19704
19705
19706
19707 func (r *ProjectsLocationsCollectionsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
19708 c := &ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19709 c.name = name
19710 return c
19711 }
19712
19713
19714
19715
19716 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
19717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19718 return c
19719 }
19720
19721
19722
19723
19724 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
19725 c.ifNoneMatch_ = entityTag
19726 return c
19727 }
19728
19729
19730 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall {
19731 c.ctx_ = ctx
19732 return c
19733 }
19734
19735
19736
19737 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Header() http.Header {
19738 if c.header_ == nil {
19739 c.header_ = make(http.Header)
19740 }
19741 return c.header_
19742 }
19743
19744 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
19745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19746 if c.ifNoneMatch_ != "" {
19747 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19748 }
19749 var body io.Reader = nil
19750 c.urlParams_.Set("alt", alt)
19751 c.urlParams_.Set("prettyPrint", "false")
19752 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
19753 urls += "?" + c.urlParams_.Encode()
19754 req, err := http.NewRequest("GET", urls, body)
19755 if err != nil {
19756 return nil, err
19757 }
19758 req.Header = reqHeaders
19759 googleapi.Expand(req.URL, map[string]string{
19760 "name": c.name,
19761 })
19762 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19763 }
19764
19765
19766
19767
19768
19769
19770
19771 func (c *ProjectsLocationsCollectionsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswer, error) {
19772 gensupport.SetOptions(c.urlParams_, opts...)
19773 res, err := c.doRequest("json")
19774 if res != nil && res.StatusCode == http.StatusNotModified {
19775 if res.Body != nil {
19776 res.Body.Close()
19777 }
19778 return nil, gensupport.WrapError(&googleapi.Error{
19779 Code: res.StatusCode,
19780 Header: res.Header,
19781 })
19782 }
19783 if err != nil {
19784 return nil, err
19785 }
19786 defer googleapi.CloseBody(res)
19787 if err := googleapi.CheckResponse(res); err != nil {
19788 return nil, gensupport.WrapError(err)
19789 }
19790 ret := &GoogleCloudDiscoveryengineV1alphaAnswer{
19791 ServerResponse: googleapi.ServerResponse{
19792 Header: res.Header,
19793 HTTPStatusCode: res.StatusCode,
19794 },
19795 }
19796 target := &ret
19797 if err := gensupport.DecodeResponse(target, res); err != nil {
19798 return nil, err
19799 }
19800 return ret, nil
19801 }
19802
19803 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall struct {
19804 s *Service
19805 parent string
19806 googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest
19807 urlParams_ gensupport.URLParams
19808 ctx_ context.Context
19809 header_ http.Header
19810 }
19811
19812
19813
19814
19815
19816
19817
19818 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) BatchVerifyTargetSites(parent string, googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchVerifyTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
19819 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19820 c.parent = parent
19821 c.googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest = googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest
19822 return c
19823 }
19824
19825
19826
19827
19828 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
19829 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19830 return c
19831 }
19832
19833
19834 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall {
19835 c.ctx_ = ctx
19836 return c
19837 }
19838
19839
19840
19841 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Header() http.Header {
19842 if c.header_ == nil {
19843 c.header_ = make(http.Header)
19844 }
19845 return c.header_
19846 }
19847
19848 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) doRequest(alt string) (*http.Response, error) {
19849 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19850 var body io.Reader = nil
19851 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphabatchverifytargetsitesrequest)
19852 if err != nil {
19853 return nil, err
19854 }
19855 c.urlParams_.Set("alt", alt)
19856 c.urlParams_.Set("prettyPrint", "false")
19857 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}:batchVerifyTargetSites")
19858 urls += "?" + c.urlParams_.Encode()
19859 req, err := http.NewRequest("POST", urls, body)
19860 if err != nil {
19861 return nil, err
19862 }
19863 req.Header = reqHeaders
19864 googleapi.Expand(req.URL, map[string]string{
19865 "parent": c.parent,
19866 })
19867 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19868 }
19869
19870
19871
19872
19873
19874
19875
19876 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineBatchVerifyTargetSitesCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19877 gensupport.SetOptions(c.urlParams_, opts...)
19878 res, err := c.doRequest("json")
19879 if res != nil && res.StatusCode == http.StatusNotModified {
19880 if res.Body != nil {
19881 res.Body.Close()
19882 }
19883 return nil, gensupport.WrapError(&googleapi.Error{
19884 Code: res.StatusCode,
19885 Header: res.Header,
19886 })
19887 }
19888 if err != nil {
19889 return nil, err
19890 }
19891 defer googleapi.CloseBody(res)
19892 if err := googleapi.CheckResponse(res); err != nil {
19893 return nil, gensupport.WrapError(err)
19894 }
19895 ret := &GoogleLongrunningOperation{
19896 ServerResponse: googleapi.ServerResponse{
19897 Header: res.Header,
19898 HTTPStatusCode: res.StatusCode,
19899 },
19900 }
19901 target := &ret
19902 if err := gensupport.DecodeResponse(target, res); err != nil {
19903 return nil, err
19904 }
19905 return ret, nil
19906 }
19907
19908 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
19909 s *Service
19910 siteSearchEngine string
19911 googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest
19912 urlParams_ gensupport.URLParams
19913 ctx_ context.Context
19914 header_ http.Header
19915 }
19916
19917
19918
19919
19920
19921
19922
19923 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
19924 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19925 c.siteSearchEngine = siteSearchEngine
19926 c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest
19927 return c
19928 }
19929
19930
19931
19932
19933 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
19934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19935 return c
19936 }
19937
19938
19939 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
19940 c.ctx_ = ctx
19941 return c
19942 }
19943
19944
19945
19946 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
19947 if c.header_ == nil {
19948 c.header_ = make(http.Header)
19949 }
19950 return c.header_
19951 }
19952
19953 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
19954 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19955 var body io.Reader = nil
19956 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest)
19957 if err != nil {
19958 return nil, err
19959 }
19960 c.urlParams_.Set("alt", alt)
19961 c.urlParams_.Set("prettyPrint", "false")
19962 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:disableAdvancedSiteSearch")
19963 urls += "?" + c.urlParams_.Encode()
19964 req, err := http.NewRequest("POST", urls, body)
19965 if err != nil {
19966 return nil, err
19967 }
19968 req.Header = reqHeaders
19969 googleapi.Expand(req.URL, map[string]string{
19970 "siteSearchEngine": c.siteSearchEngine,
19971 })
19972 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19973 }
19974
19975
19976
19977
19978
19979
19980
19981 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19982 gensupport.SetOptions(c.urlParams_, opts...)
19983 res, err := c.doRequest("json")
19984 if res != nil && res.StatusCode == http.StatusNotModified {
19985 if res.Body != nil {
19986 res.Body.Close()
19987 }
19988 return nil, gensupport.WrapError(&googleapi.Error{
19989 Code: res.StatusCode,
19990 Header: res.Header,
19991 })
19992 }
19993 if err != nil {
19994 return nil, err
19995 }
19996 defer googleapi.CloseBody(res)
19997 if err := googleapi.CheckResponse(res); err != nil {
19998 return nil, gensupport.WrapError(err)
19999 }
20000 ret := &GoogleLongrunningOperation{
20001 ServerResponse: googleapi.ServerResponse{
20002 Header: res.Header,
20003 HTTPStatusCode: res.StatusCode,
20004 },
20005 }
20006 target := &ret
20007 if err := gensupport.DecodeResponse(target, res); err != nil {
20008 return nil, err
20009 }
20010 return ret, nil
20011 }
20012
20013 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
20014 s *Service
20015 siteSearchEngine string
20016 googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest
20017 urlParams_ gensupport.URLParams
20018 ctx_ context.Context
20019 header_ http.Header
20020 }
20021
20022
20023
20024
20025
20026
20027
20028 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
20029 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20030 c.siteSearchEngine = siteSearchEngine
20031 c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest
20032 return c
20033 }
20034
20035
20036
20037
20038 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
20039 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20040 return c
20041 }
20042
20043
20044 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
20045 c.ctx_ = ctx
20046 return c
20047 }
20048
20049
20050
20051 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
20052 if c.header_ == nil {
20053 c.header_ = make(http.Header)
20054 }
20055 return c.header_
20056 }
20057
20058 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
20059 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20060 var body io.Reader = nil
20061 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest)
20062 if err != nil {
20063 return nil, err
20064 }
20065 c.urlParams_.Set("alt", alt)
20066 c.urlParams_.Set("prettyPrint", "false")
20067 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:enableAdvancedSiteSearch")
20068 urls += "?" + c.urlParams_.Encode()
20069 req, err := http.NewRequest("POST", urls, body)
20070 if err != nil {
20071 return nil, err
20072 }
20073 req.Header = reqHeaders
20074 googleapi.Expand(req.URL, map[string]string{
20075 "siteSearchEngine": c.siteSearchEngine,
20076 })
20077 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20078 }
20079
20080
20081
20082
20083
20084
20085
20086 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20087 gensupport.SetOptions(c.urlParams_, opts...)
20088 res, err := c.doRequest("json")
20089 if res != nil && res.StatusCode == http.StatusNotModified {
20090 if res.Body != nil {
20091 res.Body.Close()
20092 }
20093 return nil, gensupport.WrapError(&googleapi.Error{
20094 Code: res.StatusCode,
20095 Header: res.Header,
20096 })
20097 }
20098 if err != nil {
20099 return nil, err
20100 }
20101 defer googleapi.CloseBody(res)
20102 if err := googleapi.CheckResponse(res); err != nil {
20103 return nil, gensupport.WrapError(err)
20104 }
20105 ret := &GoogleLongrunningOperation{
20106 ServerResponse: googleapi.ServerResponse{
20107 Header: res.Header,
20108 HTTPStatusCode: res.StatusCode,
20109 },
20110 }
20111 target := &ret
20112 if err := gensupport.DecodeResponse(target, res); err != nil {
20113 return nil, err
20114 }
20115 return ret, nil
20116 }
20117
20118 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall struct {
20119 s *Service
20120 siteSearchEngine string
20121 urlParams_ gensupport.URLParams
20122 ifNoneMatch_ string
20123 ctx_ context.Context
20124 header_ http.Header
20125 }
20126
20127
20128
20129
20130
20131
20132
20133
20134
20135 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) FetchDomainVerificationStatus(siteSearchEngine string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
20136 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20137 c.siteSearchEngine = siteSearchEngine
20138 return c
20139 }
20140
20141
20142
20143
20144
20145
20146 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
20147 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20148 return c
20149 }
20150
20151
20152
20153
20154
20155
20156 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
20157 c.urlParams_.Set("pageToken", pageToken)
20158 return c
20159 }
20160
20161
20162
20163
20164 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
20165 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20166 return c
20167 }
20168
20169
20170
20171
20172 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
20173 c.ifNoneMatch_ = entityTag
20174 return c
20175 }
20176
20177
20178 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall {
20179 c.ctx_ = ctx
20180 return c
20181 }
20182
20183
20184
20185 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Header() http.Header {
20186 if c.header_ == nil {
20187 c.header_ = make(http.Header)
20188 }
20189 return c.header_
20190 }
20191
20192 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) doRequest(alt string) (*http.Response, error) {
20193 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20194 if c.ifNoneMatch_ != "" {
20195 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20196 }
20197 var body io.Reader = nil
20198 c.urlParams_.Set("alt", alt)
20199 c.urlParams_.Set("prettyPrint", "false")
20200 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:fetchDomainVerificationStatus")
20201 urls += "?" + c.urlParams_.Encode()
20202 req, err := http.NewRequest("GET", urls, body)
20203 if err != nil {
20204 return nil, err
20205 }
20206 req.Header = reqHeaders
20207 googleapi.Expand(req.URL, map[string]string{
20208 "siteSearchEngine": c.siteSearchEngine,
20209 })
20210 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20211 }
20212
20213
20214
20215
20216
20217
20218
20219 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse, error) {
20220 gensupport.SetOptions(c.urlParams_, opts...)
20221 res, err := c.doRequest("json")
20222 if res != nil && res.StatusCode == http.StatusNotModified {
20223 if res.Body != nil {
20224 res.Body.Close()
20225 }
20226 return nil, gensupport.WrapError(&googleapi.Error{
20227 Code: res.StatusCode,
20228 Header: res.Header,
20229 })
20230 }
20231 if err != nil {
20232 return nil, err
20233 }
20234 defer googleapi.CloseBody(res)
20235 if err := googleapi.CheckResponse(res); err != nil {
20236 return nil, gensupport.WrapError(err)
20237 }
20238 ret := &GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse{
20239 ServerResponse: googleapi.ServerResponse{
20240 Header: res.Header,
20241 HTTPStatusCode: res.StatusCode,
20242 },
20243 }
20244 target := &ret
20245 if err := gensupport.DecodeResponse(target, res); err != nil {
20246 return nil, err
20247 }
20248 return ret, nil
20249 }
20250
20251
20252
20253
20254 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineFetchDomainVerificationStatusCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaFetchDomainVerificationStatusResponse) error) error {
20255 c.ctx_ = ctx
20256 defer c.PageToken(c.urlParams_.Get("pageToken"))
20257 for {
20258 x, err := c.Do()
20259 if err != nil {
20260 return err
20261 }
20262 if err := f(x); err != nil {
20263 return err
20264 }
20265 if x.NextPageToken == "" {
20266 return nil
20267 }
20268 c.PageToken(x.NextPageToken)
20269 }
20270 }
20271
20272 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall struct {
20273 s *Service
20274 siteSearchEngine string
20275 googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
20276 urlParams_ gensupport.URLParams
20277 ctx_ context.Context
20278 header_ http.Header
20279 }
20280
20281
20282
20283
20284
20285 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
20286 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20287 c.siteSearchEngine = siteSearchEngine
20288 c.googleclouddiscoveryenginev1alpharecrawlurisrequest = googleclouddiscoveryenginev1alpharecrawlurisrequest
20289 return c
20290 }
20291
20292
20293
20294
20295 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
20296 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20297 return c
20298 }
20299
20300
20301 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall {
20302 c.ctx_ = ctx
20303 return c
20304 }
20305
20306
20307
20308 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
20309 if c.header_ == nil {
20310 c.header_ = make(http.Header)
20311 }
20312 return c.header_
20313 }
20314
20315 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
20316 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20317 var body io.Reader = nil
20318 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecrawlurisrequest)
20319 if err != nil {
20320 return nil, err
20321 }
20322 c.urlParams_.Set("alt", alt)
20323 c.urlParams_.Set("prettyPrint", "false")
20324 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:recrawlUris")
20325 urls += "?" + c.urlParams_.Encode()
20326 req, err := http.NewRequest("POST", urls, body)
20327 if err != nil {
20328 return nil, err
20329 }
20330 req.Header = reqHeaders
20331 googleapi.Expand(req.URL, map[string]string{
20332 "siteSearchEngine": c.siteSearchEngine,
20333 })
20334 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20335 }
20336
20337
20338
20339
20340
20341
20342
20343 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20344 gensupport.SetOptions(c.urlParams_, opts...)
20345 res, err := c.doRequest("json")
20346 if res != nil && res.StatusCode == http.StatusNotModified {
20347 if res.Body != nil {
20348 res.Body.Close()
20349 }
20350 return nil, gensupport.WrapError(&googleapi.Error{
20351 Code: res.StatusCode,
20352 Header: res.Header,
20353 })
20354 }
20355 if err != nil {
20356 return nil, err
20357 }
20358 defer googleapi.CloseBody(res)
20359 if err := googleapi.CheckResponse(res); err != nil {
20360 return nil, gensupport.WrapError(err)
20361 }
20362 ret := &GoogleLongrunningOperation{
20363 ServerResponse: googleapi.ServerResponse{
20364 Header: res.Header,
20365 HTTPStatusCode: res.StatusCode,
20366 },
20367 }
20368 target := &ret
20369 if err := gensupport.DecodeResponse(target, res); err != nil {
20370 return nil, err
20371 }
20372 return ret, nil
20373 }
20374
20375 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall struct {
20376 s *Service
20377 name string
20378 urlParams_ gensupport.URLParams
20379 ifNoneMatch_ string
20380 ctx_ context.Context
20381 header_ http.Header
20382 }
20383
20384
20385
20386
20387
20388
20389 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
20390 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20391 c.name = name
20392 return c
20393 }
20394
20395
20396
20397
20398 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
20399 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20400 return c
20401 }
20402
20403
20404
20405
20406 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
20407 c.ifNoneMatch_ = entityTag
20408 return c
20409 }
20410
20411
20412 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall {
20413 c.ctx_ = ctx
20414 return c
20415 }
20416
20417
20418
20419 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Header() http.Header {
20420 if c.header_ == nil {
20421 c.header_ = make(http.Header)
20422 }
20423 return c.header_
20424 }
20425
20426 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) doRequest(alt string) (*http.Response, error) {
20427 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20428 if c.ifNoneMatch_ != "" {
20429 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20430 }
20431 var body io.Reader = nil
20432 c.urlParams_.Set("alt", alt)
20433 c.urlParams_.Set("prettyPrint", "false")
20434 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
20435 urls += "?" + c.urlParams_.Encode()
20436 req, err := http.NewRequest("GET", urls, body)
20437 if err != nil {
20438 return nil, err
20439 }
20440 req.Header = reqHeaders
20441 googleapi.Expand(req.URL, map[string]string{
20442 "name": c.name,
20443 })
20444 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20445 }
20446
20447
20448
20449
20450
20451
20452
20453 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20454 gensupport.SetOptions(c.urlParams_, opts...)
20455 res, err := c.doRequest("json")
20456 if res != nil && res.StatusCode == http.StatusNotModified {
20457 if res.Body != nil {
20458 res.Body.Close()
20459 }
20460 return nil, gensupport.WrapError(&googleapi.Error{
20461 Code: res.StatusCode,
20462 Header: res.Header,
20463 })
20464 }
20465 if err != nil {
20466 return nil, err
20467 }
20468 defer googleapi.CloseBody(res)
20469 if err := googleapi.CheckResponse(res); err != nil {
20470 return nil, gensupport.WrapError(err)
20471 }
20472 ret := &GoogleLongrunningOperation{
20473 ServerResponse: googleapi.ServerResponse{
20474 Header: res.Header,
20475 HTTPStatusCode: res.StatusCode,
20476 },
20477 }
20478 target := &ret
20479 if err := gensupport.DecodeResponse(target, res); err != nil {
20480 return nil, err
20481 }
20482 return ret, nil
20483 }
20484
20485 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall struct {
20486 s *Service
20487 name string
20488 urlParams_ gensupport.URLParams
20489 ifNoneMatch_ string
20490 ctx_ context.Context
20491 header_ http.Header
20492 }
20493
20494
20495
20496
20497
20498 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20499 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20500 c.name = name
20501 return c
20502 }
20503
20504
20505 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20506 c.urlParams_.Set("filter", filter)
20507 return c
20508 }
20509
20510
20511
20512 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20513 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20514 return c
20515 }
20516
20517
20518
20519 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20520 c.urlParams_.Set("pageToken", pageToken)
20521 return c
20522 }
20523
20524
20525
20526
20527 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20528 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20529 return c
20530 }
20531
20532
20533
20534
20535 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20536 c.ifNoneMatch_ = entityTag
20537 return c
20538 }
20539
20540
20541 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall {
20542 c.ctx_ = ctx
20543 return c
20544 }
20545
20546
20547
20548 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Header() http.Header {
20549 if c.header_ == nil {
20550 c.header_ = make(http.Header)
20551 }
20552 return c.header_
20553 }
20554
20555 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) doRequest(alt string) (*http.Response, error) {
20556 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20557 if c.ifNoneMatch_ != "" {
20558 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20559 }
20560 var body io.Reader = nil
20561 c.urlParams_.Set("alt", alt)
20562 c.urlParams_.Set("prettyPrint", "false")
20563 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
20564 urls += "?" + c.urlParams_.Encode()
20565 req, err := http.NewRequest("GET", urls, body)
20566 if err != nil {
20567 return nil, err
20568 }
20569 req.Header = reqHeaders
20570 googleapi.Expand(req.URL, map[string]string{
20571 "name": c.name,
20572 })
20573 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20574 }
20575
20576
20577
20578
20579
20580
20581
20582 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
20583 gensupport.SetOptions(c.urlParams_, opts...)
20584 res, err := c.doRequest("json")
20585 if res != nil && res.StatusCode == http.StatusNotModified {
20586 if res.Body != nil {
20587 res.Body.Close()
20588 }
20589 return nil, gensupport.WrapError(&googleapi.Error{
20590 Code: res.StatusCode,
20591 Header: res.Header,
20592 })
20593 }
20594 if err != nil {
20595 return nil, err
20596 }
20597 defer googleapi.CloseBody(res)
20598 if err := googleapi.CheckResponse(res); err != nil {
20599 return nil, gensupport.WrapError(err)
20600 }
20601 ret := &GoogleLongrunningListOperationsResponse{
20602 ServerResponse: googleapi.ServerResponse{
20603 Header: res.Header,
20604 HTTPStatusCode: res.StatusCode,
20605 },
20606 }
20607 target := &ret
20608 if err := gensupport.DecodeResponse(target, res); err != nil {
20609 return nil, err
20610 }
20611 return ret, nil
20612 }
20613
20614
20615
20616
20617 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
20618 c.ctx_ = ctx
20619 defer c.PageToken(c.urlParams_.Get("pageToken"))
20620 for {
20621 x, err := c.Do()
20622 if err != nil {
20623 return err
20624 }
20625 if err := f(x); err != nil {
20626 return err
20627 }
20628 if x.NextPageToken == "" {
20629 return nil
20630 }
20631 c.PageToken(x.NextPageToken)
20632 }
20633 }
20634
20635 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
20636 s *Service
20637 parent string
20638 googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest
20639 urlParams_ gensupport.URLParams
20640 ctx_ context.Context
20641 header_ http.Header
20642 }
20643
20644
20645
20646
20647
20648
20649
20650 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
20651 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20652 c.parent = parent
20653 c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest
20654 return c
20655 }
20656
20657
20658
20659
20660 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
20661 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20662 return c
20663 }
20664
20665
20666 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
20667 c.ctx_ = ctx
20668 return c
20669 }
20670
20671
20672
20673 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
20674 if c.header_ == nil {
20675 c.header_ = make(http.Header)
20676 }
20677 return c.header_
20678 }
20679
20680 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
20681 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20682 var body io.Reader = nil
20683 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest)
20684 if err != nil {
20685 return nil, err
20686 }
20687 c.urlParams_.Set("alt", alt)
20688 c.urlParams_.Set("prettyPrint", "false")
20689 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites:batchCreate")
20690 urls += "?" + c.urlParams_.Encode()
20691 req, err := http.NewRequest("POST", urls, body)
20692 if err != nil {
20693 return nil, err
20694 }
20695 req.Header = reqHeaders
20696 googleapi.Expand(req.URL, map[string]string{
20697 "parent": c.parent,
20698 })
20699 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20700 }
20701
20702
20703
20704
20705
20706
20707
20708 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20709 gensupport.SetOptions(c.urlParams_, opts...)
20710 res, err := c.doRequest("json")
20711 if res != nil && res.StatusCode == http.StatusNotModified {
20712 if res.Body != nil {
20713 res.Body.Close()
20714 }
20715 return nil, gensupport.WrapError(&googleapi.Error{
20716 Code: res.StatusCode,
20717 Header: res.Header,
20718 })
20719 }
20720 if err != nil {
20721 return nil, err
20722 }
20723 defer googleapi.CloseBody(res)
20724 if err := googleapi.CheckResponse(res); err != nil {
20725 return nil, gensupport.WrapError(err)
20726 }
20727 ret := &GoogleLongrunningOperation{
20728 ServerResponse: googleapi.ServerResponse{
20729 Header: res.Header,
20730 HTTPStatusCode: res.StatusCode,
20731 },
20732 }
20733 target := &ret
20734 if err := gensupport.DecodeResponse(target, res); err != nil {
20735 return nil, err
20736 }
20737 return ret, nil
20738 }
20739
20740 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
20741 s *Service
20742 parent string
20743 googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
20744 urlParams_ gensupport.URLParams
20745 ctx_ context.Context
20746 header_ http.Header
20747 }
20748
20749
20750
20751
20752
20753
20754 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
20755 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20756 c.parent = parent
20757 c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
20758 return c
20759 }
20760
20761
20762
20763
20764 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
20765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20766 return c
20767 }
20768
20769
20770 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall {
20771 c.ctx_ = ctx
20772 return c
20773 }
20774
20775
20776
20777 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
20778 if c.header_ == nil {
20779 c.header_ = make(http.Header)
20780 }
20781 return c.header_
20782 }
20783
20784 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
20785 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20786 var body io.Reader = nil
20787 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
20788 if err != nil {
20789 return nil, err
20790 }
20791 c.urlParams_.Set("alt", alt)
20792 c.urlParams_.Set("prettyPrint", "false")
20793 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
20794 urls += "?" + c.urlParams_.Encode()
20795 req, err := http.NewRequest("POST", urls, body)
20796 if err != nil {
20797 return nil, err
20798 }
20799 req.Header = reqHeaders
20800 googleapi.Expand(req.URL, map[string]string{
20801 "parent": c.parent,
20802 })
20803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20804 }
20805
20806
20807
20808
20809
20810
20811
20812 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20813 gensupport.SetOptions(c.urlParams_, opts...)
20814 res, err := c.doRequest("json")
20815 if res != nil && res.StatusCode == http.StatusNotModified {
20816 if res.Body != nil {
20817 res.Body.Close()
20818 }
20819 return nil, gensupport.WrapError(&googleapi.Error{
20820 Code: res.StatusCode,
20821 Header: res.Header,
20822 })
20823 }
20824 if err != nil {
20825 return nil, err
20826 }
20827 defer googleapi.CloseBody(res)
20828 if err := googleapi.CheckResponse(res); err != nil {
20829 return nil, gensupport.WrapError(err)
20830 }
20831 ret := &GoogleLongrunningOperation{
20832 ServerResponse: googleapi.ServerResponse{
20833 Header: res.Header,
20834 HTTPStatusCode: res.StatusCode,
20835 },
20836 }
20837 target := &ret
20838 if err := gensupport.DecodeResponse(target, res); err != nil {
20839 return nil, err
20840 }
20841 return ret, nil
20842 }
20843
20844 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
20845 s *Service
20846 name string
20847 urlParams_ gensupport.URLParams
20848 ctx_ context.Context
20849 header_ http.Header
20850 }
20851
20852
20853
20854
20855
20856
20857
20858
20859
20860 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
20861 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20862 c.name = name
20863 return c
20864 }
20865
20866
20867
20868
20869 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
20870 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20871 return c
20872 }
20873
20874
20875 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall {
20876 c.ctx_ = ctx
20877 return c
20878 }
20879
20880
20881
20882 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
20883 if c.header_ == nil {
20884 c.header_ = make(http.Header)
20885 }
20886 return c.header_
20887 }
20888
20889 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
20890 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20891 var body io.Reader = nil
20892 c.urlParams_.Set("alt", alt)
20893 c.urlParams_.Set("prettyPrint", "false")
20894 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
20895 urls += "?" + c.urlParams_.Encode()
20896 req, err := http.NewRequest("DELETE", urls, body)
20897 if err != nil {
20898 return nil, err
20899 }
20900 req.Header = reqHeaders
20901 googleapi.Expand(req.URL, map[string]string{
20902 "name": c.name,
20903 })
20904 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20905 }
20906
20907
20908
20909
20910
20911
20912
20913 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20914 gensupport.SetOptions(c.urlParams_, opts...)
20915 res, err := c.doRequest("json")
20916 if res != nil && res.StatusCode == http.StatusNotModified {
20917 if res.Body != nil {
20918 res.Body.Close()
20919 }
20920 return nil, gensupport.WrapError(&googleapi.Error{
20921 Code: res.StatusCode,
20922 Header: res.Header,
20923 })
20924 }
20925 if err != nil {
20926 return nil, err
20927 }
20928 defer googleapi.CloseBody(res)
20929 if err := googleapi.CheckResponse(res); err != nil {
20930 return nil, gensupport.WrapError(err)
20931 }
20932 ret := &GoogleLongrunningOperation{
20933 ServerResponse: googleapi.ServerResponse{
20934 Header: res.Header,
20935 HTTPStatusCode: res.StatusCode,
20936 },
20937 }
20938 target := &ret
20939 if err := gensupport.DecodeResponse(target, res); err != nil {
20940 return nil, err
20941 }
20942 return ret, nil
20943 }
20944
20945 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall struct {
20946 s *Service
20947 name string
20948 urlParams_ gensupport.URLParams
20949 ifNoneMatch_ string
20950 ctx_ context.Context
20951 header_ http.Header
20952 }
20953
20954
20955
20956
20957
20958
20959
20960
20961
20962 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
20963 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20964 c.name = name
20965 return c
20966 }
20967
20968
20969
20970
20971 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
20972 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20973 return c
20974 }
20975
20976
20977
20978
20979 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
20980 c.ifNoneMatch_ = entityTag
20981 return c
20982 }
20983
20984
20985 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall {
20986 c.ctx_ = ctx
20987 return c
20988 }
20989
20990
20991
20992 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
20993 if c.header_ == nil {
20994 c.header_ = make(http.Header)
20995 }
20996 return c.header_
20997 }
20998
20999 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
21000 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21001 if c.ifNoneMatch_ != "" {
21002 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21003 }
21004 var body io.Reader = nil
21005 c.urlParams_.Set("alt", alt)
21006 c.urlParams_.Set("prettyPrint", "false")
21007 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
21008 urls += "?" + c.urlParams_.Encode()
21009 req, err := http.NewRequest("GET", urls, body)
21010 if err != nil {
21011 return nil, err
21012 }
21013 req.Header = reqHeaders
21014 googleapi.Expand(req.URL, map[string]string{
21015 "name": c.name,
21016 })
21017 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21018 }
21019
21020
21021
21022
21023
21024
21025
21026 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaTargetSite, error) {
21027 gensupport.SetOptions(c.urlParams_, opts...)
21028 res, err := c.doRequest("json")
21029 if res != nil && res.StatusCode == http.StatusNotModified {
21030 if res.Body != nil {
21031 res.Body.Close()
21032 }
21033 return nil, gensupport.WrapError(&googleapi.Error{
21034 Code: res.StatusCode,
21035 Header: res.Header,
21036 })
21037 }
21038 if err != nil {
21039 return nil, err
21040 }
21041 defer googleapi.CloseBody(res)
21042 if err := googleapi.CheckResponse(res); err != nil {
21043 return nil, gensupport.WrapError(err)
21044 }
21045 ret := &GoogleCloudDiscoveryengineV1alphaTargetSite{
21046 ServerResponse: googleapi.ServerResponse{
21047 Header: res.Header,
21048 HTTPStatusCode: res.StatusCode,
21049 },
21050 }
21051 target := &ret
21052 if err := gensupport.DecodeResponse(target, res); err != nil {
21053 return nil, err
21054 }
21055 return ret, nil
21056 }
21057
21058 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall struct {
21059 s *Service
21060 parent string
21061 urlParams_ gensupport.URLParams
21062 ifNoneMatch_ string
21063 ctx_ context.Context
21064 header_ http.Header
21065 }
21066
21067
21068
21069
21070
21071
21072
21073
21074 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
21075 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21076 c.parent = parent
21077 return c
21078 }
21079
21080
21081
21082
21083
21084
21085 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
21086 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21087 return c
21088 }
21089
21090
21091
21092
21093
21094 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
21095 c.urlParams_.Set("pageToken", pageToken)
21096 return c
21097 }
21098
21099
21100
21101
21102 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
21103 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21104 return c
21105 }
21106
21107
21108
21109
21110 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
21111 c.ifNoneMatch_ = entityTag
21112 return c
21113 }
21114
21115
21116 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall {
21117 c.ctx_ = ctx
21118 return c
21119 }
21120
21121
21122
21123 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
21124 if c.header_ == nil {
21125 c.header_ = make(http.Header)
21126 }
21127 return c.header_
21128 }
21129
21130 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
21131 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21132 if c.ifNoneMatch_ != "" {
21133 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21134 }
21135 var body io.Reader = nil
21136 c.urlParams_.Set("alt", alt)
21137 c.urlParams_.Set("prettyPrint", "false")
21138 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
21139 urls += "?" + c.urlParams_.Encode()
21140 req, err := http.NewRequest("GET", urls, body)
21141 if err != nil {
21142 return nil, err
21143 }
21144 req.Header = reqHeaders
21145 googleapi.Expand(req.URL, map[string]string{
21146 "parent": c.parent,
21147 })
21148 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21149 }
21150
21151
21152
21153
21154
21155
21156
21157 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse, error) {
21158 gensupport.SetOptions(c.urlParams_, opts...)
21159 res, err := c.doRequest("json")
21160 if res != nil && res.StatusCode == http.StatusNotModified {
21161 if res.Body != nil {
21162 res.Body.Close()
21163 }
21164 return nil, gensupport.WrapError(&googleapi.Error{
21165 Code: res.StatusCode,
21166 Header: res.Header,
21167 })
21168 }
21169 if err != nil {
21170 return nil, err
21171 }
21172 defer googleapi.CloseBody(res)
21173 if err := googleapi.CheckResponse(res); err != nil {
21174 return nil, gensupport.WrapError(err)
21175 }
21176 ret := &GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse{
21177 ServerResponse: googleapi.ServerResponse{
21178 Header: res.Header,
21179 HTTPStatusCode: res.StatusCode,
21180 },
21181 }
21182 target := &ret
21183 if err := gensupport.DecodeResponse(target, res); err != nil {
21184 return nil, err
21185 }
21186 return ret, nil
21187 }
21188
21189
21190
21191
21192 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse) error) error {
21193 c.ctx_ = ctx
21194 defer c.PageToken(c.urlParams_.Get("pageToken"))
21195 for {
21196 x, err := c.Do()
21197 if err != nil {
21198 return err
21199 }
21200 if err := f(x); err != nil {
21201 return err
21202 }
21203 if x.NextPageToken == "" {
21204 return nil
21205 }
21206 c.PageToken(x.NextPageToken)
21207 }
21208 }
21209
21210 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
21211 s *Service
21212 name string
21213 googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
21214 urlParams_ gensupport.URLParams
21215 ctx_ context.Context
21216 header_ http.Header
21217 }
21218
21219
21220
21221
21222
21223
21224
21225 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
21226 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21227 c.name = name
21228 c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
21229 return c
21230 }
21231
21232
21233
21234
21235 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
21236 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21237 return c
21238 }
21239
21240
21241 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall {
21242 c.ctx_ = ctx
21243 return c
21244 }
21245
21246
21247
21248 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
21249 if c.header_ == nil {
21250 c.header_ = make(http.Header)
21251 }
21252 return c.header_
21253 }
21254
21255 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
21256 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21257 var body io.Reader = nil
21258 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
21259 if err != nil {
21260 return nil, err
21261 }
21262 c.urlParams_.Set("alt", alt)
21263 c.urlParams_.Set("prettyPrint", "false")
21264 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
21265 urls += "?" + c.urlParams_.Encode()
21266 req, err := http.NewRequest("PATCH", urls, body)
21267 if err != nil {
21268 return nil, err
21269 }
21270 req.Header = reqHeaders
21271 googleapi.Expand(req.URL, map[string]string{
21272 "name": c.name,
21273 })
21274 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21275 }
21276
21277
21278
21279
21280
21281
21282
21283 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21284 gensupport.SetOptions(c.urlParams_, opts...)
21285 res, err := c.doRequest("json")
21286 if res != nil && res.StatusCode == http.StatusNotModified {
21287 if res.Body != nil {
21288 res.Body.Close()
21289 }
21290 return nil, gensupport.WrapError(&googleapi.Error{
21291 Code: res.StatusCode,
21292 Header: res.Header,
21293 })
21294 }
21295 if err != nil {
21296 return nil, err
21297 }
21298 defer googleapi.CloseBody(res)
21299 if err := googleapi.CheckResponse(res); err != nil {
21300 return nil, gensupport.WrapError(err)
21301 }
21302 ret := &GoogleLongrunningOperation{
21303 ServerResponse: googleapi.ServerResponse{
21304 Header: res.Header,
21305 HTTPStatusCode: res.StatusCode,
21306 },
21307 }
21308 target := &ret
21309 if err := gensupport.DecodeResponse(target, res); err != nil {
21310 return nil, err
21311 }
21312 return ret, nil
21313 }
21314
21315 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall struct {
21316 s *Service
21317 name string
21318 urlParams_ gensupport.URLParams
21319 ifNoneMatch_ string
21320 ctx_ context.Context
21321 header_ http.Header
21322 }
21323
21324
21325
21326
21327
21328
21329 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) Get(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
21330 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21331 c.name = name
21332 return c
21333 }
21334
21335
21336
21337
21338 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
21339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21340 return c
21341 }
21342
21343
21344
21345
21346 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
21347 c.ifNoneMatch_ = entityTag
21348 return c
21349 }
21350
21351
21352 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall {
21353 c.ctx_ = ctx
21354 return c
21355 }
21356
21357
21358
21359 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Header() http.Header {
21360 if c.header_ == nil {
21361 c.header_ = make(http.Header)
21362 }
21363 return c.header_
21364 }
21365
21366 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
21367 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21368 if c.ifNoneMatch_ != "" {
21369 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21370 }
21371 var body io.Reader = nil
21372 c.urlParams_.Set("alt", alt)
21373 c.urlParams_.Set("prettyPrint", "false")
21374 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
21375 urls += "?" + c.urlParams_.Encode()
21376 req, err := http.NewRequest("GET", urls, body)
21377 if err != nil {
21378 return nil, err
21379 }
21380 req.Header = reqHeaders
21381 googleapi.Expand(req.URL, map[string]string{
21382 "name": c.name,
21383 })
21384 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21385 }
21386
21387
21388
21389
21390
21391
21392
21393 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21394 gensupport.SetOptions(c.urlParams_, opts...)
21395 res, err := c.doRequest("json")
21396 if res != nil && res.StatusCode == http.StatusNotModified {
21397 if res.Body != nil {
21398 res.Body.Close()
21399 }
21400 return nil, gensupport.WrapError(&googleapi.Error{
21401 Code: res.StatusCode,
21402 Header: res.Header,
21403 })
21404 }
21405 if err != nil {
21406 return nil, err
21407 }
21408 defer googleapi.CloseBody(res)
21409 if err := googleapi.CheckResponse(res); err != nil {
21410 return nil, gensupport.WrapError(err)
21411 }
21412 ret := &GoogleLongrunningOperation{
21413 ServerResponse: googleapi.ServerResponse{
21414 Header: res.Header,
21415 HTTPStatusCode: res.StatusCode,
21416 },
21417 }
21418 target := &ret
21419 if err := gensupport.DecodeResponse(target, res); err != nil {
21420 return nil, err
21421 }
21422 return ret, nil
21423 }
21424
21425 type ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall struct {
21426 s *Service
21427 name string
21428 urlParams_ gensupport.URLParams
21429 ifNoneMatch_ string
21430 ctx_ context.Context
21431 header_ http.Header
21432 }
21433
21434
21435
21436
21437
21438 func (r *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsService) List(name string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21439 c := &ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21440 c.name = name
21441 return c
21442 }
21443
21444
21445 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21446 c.urlParams_.Set("filter", filter)
21447 return c
21448 }
21449
21450
21451
21452 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21453 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21454 return c
21455 }
21456
21457
21458
21459 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21460 c.urlParams_.Set("pageToken", pageToken)
21461 return c
21462 }
21463
21464
21465
21466
21467 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21468 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21469 return c
21470 }
21471
21472
21473
21474
21475 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21476 c.ifNoneMatch_ = entityTag
21477 return c
21478 }
21479
21480
21481 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall {
21482 c.ctx_ = ctx
21483 return c
21484 }
21485
21486
21487
21488 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Header() http.Header {
21489 if c.header_ == nil {
21490 c.header_ = make(http.Header)
21491 }
21492 return c.header_
21493 }
21494
21495 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) doRequest(alt string) (*http.Response, error) {
21496 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21497 if c.ifNoneMatch_ != "" {
21498 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21499 }
21500 var body io.Reader = nil
21501 c.urlParams_.Set("alt", alt)
21502 c.urlParams_.Set("prettyPrint", "false")
21503 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
21504 urls += "?" + c.urlParams_.Encode()
21505 req, err := http.NewRequest("GET", urls, body)
21506 if err != nil {
21507 return nil, err
21508 }
21509 req.Header = reqHeaders
21510 googleapi.Expand(req.URL, map[string]string{
21511 "name": c.name,
21512 })
21513 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21514 }
21515
21516
21517
21518
21519
21520
21521
21522 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
21523 gensupport.SetOptions(c.urlParams_, opts...)
21524 res, err := c.doRequest("json")
21525 if res != nil && res.StatusCode == http.StatusNotModified {
21526 if res.Body != nil {
21527 res.Body.Close()
21528 }
21529 return nil, gensupport.WrapError(&googleapi.Error{
21530 Code: res.StatusCode,
21531 Header: res.Header,
21532 })
21533 }
21534 if err != nil {
21535 return nil, err
21536 }
21537 defer googleapi.CloseBody(res)
21538 if err := googleapi.CheckResponse(res); err != nil {
21539 return nil, gensupport.WrapError(err)
21540 }
21541 ret := &GoogleLongrunningListOperationsResponse{
21542 ServerResponse: googleapi.ServerResponse{
21543 Header: res.Header,
21544 HTTPStatusCode: res.StatusCode,
21545 },
21546 }
21547 target := &ret
21548 if err := gensupport.DecodeResponse(target, res); err != nil {
21549 return nil, err
21550 }
21551 return ret, nil
21552 }
21553
21554
21555
21556
21557 func (c *ProjectsLocationsCollectionsDataStoresSiteSearchEngineTargetSitesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
21558 c.ctx_ = ctx
21559 defer c.PageToken(c.urlParams_.Get("pageToken"))
21560 for {
21561 x, err := c.Do()
21562 if err != nil {
21563 return err
21564 }
21565 if err := f(x); err != nil {
21566 return err
21567 }
21568 if x.NextPageToken == "" {
21569 return nil
21570 }
21571 c.PageToken(x.NextPageToken)
21572 }
21573 }
21574
21575 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall struct {
21576 s *Service
21577 parent string
21578 googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest
21579 urlParams_ gensupport.URLParams
21580 ctx_ context.Context
21581 header_ http.Header
21582 }
21583
21584
21585
21586
21587
21588
21589 func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
21590 c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21591 c.parent = parent
21592 c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest
21593 return c
21594 }
21595
21596
21597
21598
21599 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
21600 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21601 return c
21602 }
21603
21604
21605 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall {
21606 c.ctx_ = ctx
21607 return c
21608 }
21609
21610
21611
21612 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
21613 if c.header_ == nil {
21614 c.header_ = make(http.Header)
21615 }
21616 return c.header_
21617 }
21618
21619 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
21620 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21621 var body io.Reader = nil
21622 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest)
21623 if err != nil {
21624 return nil, err
21625 }
21626 c.urlParams_.Set("alt", alt)
21627 c.urlParams_.Set("prettyPrint", "false")
21628 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:import")
21629 urls += "?" + c.urlParams_.Encode()
21630 req, err := http.NewRequest("POST", urls, body)
21631 if err != nil {
21632 return nil, err
21633 }
21634 req.Header = reqHeaders
21635 googleapi.Expand(req.URL, map[string]string{
21636 "parent": c.parent,
21637 })
21638 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21639 }
21640
21641
21642
21643
21644
21645
21646
21647 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21648 gensupport.SetOptions(c.urlParams_, opts...)
21649 res, err := c.doRequest("json")
21650 if res != nil && res.StatusCode == http.StatusNotModified {
21651 if res.Body != nil {
21652 res.Body.Close()
21653 }
21654 return nil, gensupport.WrapError(&googleapi.Error{
21655 Code: res.StatusCode,
21656 Header: res.Header,
21657 })
21658 }
21659 if err != nil {
21660 return nil, err
21661 }
21662 defer googleapi.CloseBody(res)
21663 if err := googleapi.CheckResponse(res); err != nil {
21664 return nil, gensupport.WrapError(err)
21665 }
21666 ret := &GoogleLongrunningOperation{
21667 ServerResponse: googleapi.ServerResponse{
21668 Header: res.Header,
21669 HTTPStatusCode: res.StatusCode,
21670 },
21671 }
21672 target := &ret
21673 if err := gensupport.DecodeResponse(target, res); err != nil {
21674 return nil, err
21675 }
21676 return ret, nil
21677 }
21678
21679 type ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall struct {
21680 s *Service
21681 parent string
21682 googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest
21683 urlParams_ gensupport.URLParams
21684 ctx_ context.Context
21685 header_ http.Header
21686 }
21687
21688
21689
21690
21691
21692
21693 func (r *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
21694 c := &ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21695 c.parent = parent
21696 c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest
21697 return c
21698 }
21699
21700
21701
21702
21703 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
21704 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21705 return c
21706 }
21707
21708
21709 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall {
21710 c.ctx_ = ctx
21711 return c
21712 }
21713
21714
21715
21716 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
21717 if c.header_ == nil {
21718 c.header_ = make(http.Header)
21719 }
21720 return c.header_
21721 }
21722
21723 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
21724 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21725 var body io.Reader = nil
21726 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest)
21727 if err != nil {
21728 return nil, err
21729 }
21730 c.urlParams_.Set("alt", alt)
21731 c.urlParams_.Set("prettyPrint", "false")
21732 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:purge")
21733 urls += "?" + c.urlParams_.Encode()
21734 req, err := http.NewRequest("POST", urls, body)
21735 if err != nil {
21736 return nil, err
21737 }
21738 req.Header = reqHeaders
21739 googleapi.Expand(req.URL, map[string]string{
21740 "parent": c.parent,
21741 })
21742 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21743 }
21744
21745
21746
21747
21748
21749
21750
21751 func (c *ProjectsLocationsCollectionsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21752 gensupport.SetOptions(c.urlParams_, opts...)
21753 res, err := c.doRequest("json")
21754 if res != nil && res.StatusCode == http.StatusNotModified {
21755 if res.Body != nil {
21756 res.Body.Close()
21757 }
21758 return nil, gensupport.WrapError(&googleapi.Error{
21759 Code: res.StatusCode,
21760 Header: res.Header,
21761 })
21762 }
21763 if err != nil {
21764 return nil, err
21765 }
21766 defer googleapi.CloseBody(res)
21767 if err := googleapi.CheckResponse(res); err != nil {
21768 return nil, gensupport.WrapError(err)
21769 }
21770 ret := &GoogleLongrunningOperation{
21771 ServerResponse: googleapi.ServerResponse{
21772 Header: res.Header,
21773 HTTPStatusCode: res.StatusCode,
21774 },
21775 }
21776 target := &ret
21777 if err := gensupport.DecodeResponse(target, res); err != nil {
21778 return nil, err
21779 }
21780 return ret, nil
21781 }
21782
21783 type ProjectsLocationsCollectionsDataStoresUserEventsCollectCall struct {
21784 s *Service
21785 parent string
21786 urlParams_ gensupport.URLParams
21787 ifNoneMatch_ string
21788 ctx_ context.Context
21789 header_ http.Header
21790 }
21791
21792
21793
21794
21795
21796
21797
21798
21799
21800 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21801 c := &ProjectsLocationsCollectionsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21802 c.parent = parent
21803 return c
21804 }
21805
21806
21807
21808
21809 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21810 c.urlParams_.Set("ets", fmt.Sprint(ets))
21811 return c
21812 }
21813
21814
21815
21816
21817
21818 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21819 c.urlParams_.Set("uri", uri)
21820 return c
21821 }
21822
21823
21824
21825 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21826 c.urlParams_.Set("userEvent", userEvent)
21827 return c
21828 }
21829
21830
21831
21832
21833 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21834 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21835 return c
21836 }
21837
21838
21839
21840
21841 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21842 c.ifNoneMatch_ = entityTag
21843 return c
21844 }
21845
21846
21847 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall {
21848 c.ctx_ = ctx
21849 return c
21850 }
21851
21852
21853
21854 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Header() http.Header {
21855 if c.header_ == nil {
21856 c.header_ = make(http.Header)
21857 }
21858 return c.header_
21859 }
21860
21861 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
21862 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21863 if c.ifNoneMatch_ != "" {
21864 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21865 }
21866 var body io.Reader = nil
21867 c.urlParams_.Set("alt", alt)
21868 c.urlParams_.Set("prettyPrint", "false")
21869 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:collect")
21870 urls += "?" + c.urlParams_.Encode()
21871 req, err := http.NewRequest("GET", urls, body)
21872 if err != nil {
21873 return nil, err
21874 }
21875 req.Header = reqHeaders
21876 googleapi.Expand(req.URL, map[string]string{
21877 "parent": c.parent,
21878 })
21879 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21880 }
21881
21882
21883
21884
21885
21886
21887
21888 func (c *ProjectsLocationsCollectionsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
21889 gensupport.SetOptions(c.urlParams_, opts...)
21890 res, err := c.doRequest("json")
21891 if res != nil && res.StatusCode == http.StatusNotModified {
21892 if res.Body != nil {
21893 res.Body.Close()
21894 }
21895 return nil, gensupport.WrapError(&googleapi.Error{
21896 Code: res.StatusCode,
21897 Header: res.Header,
21898 })
21899 }
21900 if err != nil {
21901 return nil, err
21902 }
21903 defer googleapi.CloseBody(res)
21904 if err := googleapi.CheckResponse(res); err != nil {
21905 return nil, gensupport.WrapError(err)
21906 }
21907 ret := &GoogleApiHttpBody{
21908 ServerResponse: googleapi.ServerResponse{
21909 Header: res.Header,
21910 HTTPStatusCode: res.StatusCode,
21911 },
21912 }
21913 target := &ret
21914 if err := gensupport.DecodeResponse(target, res); err != nil {
21915 return nil, err
21916 }
21917 return ret, nil
21918 }
21919
21920 type ProjectsLocationsCollectionsDataStoresUserEventsImportCall struct {
21921 s *Service
21922 parent string
21923 googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
21924 urlParams_ gensupport.URLParams
21925 ctx_ context.Context
21926 header_ http.Header
21927 }
21928
21929
21930
21931
21932
21933
21934
21935
21936
21937
21938 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
21939 c := &ProjectsLocationsCollectionsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21940 c.parent = parent
21941 c.googleclouddiscoveryenginev1alphaimportusereventsrequest = googleclouddiscoveryenginev1alphaimportusereventsrequest
21942 return c
21943 }
21944
21945
21946
21947
21948 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
21949 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21950 return c
21951 }
21952
21953
21954 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsImportCall {
21955 c.ctx_ = ctx
21956 return c
21957 }
21958
21959
21960
21961 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Header() http.Header {
21962 if c.header_ == nil {
21963 c.header_ = make(http.Header)
21964 }
21965 return c.header_
21966 }
21967
21968 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
21969 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21970 var body io.Reader = nil
21971 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportusereventsrequest)
21972 if err != nil {
21973 return nil, err
21974 }
21975 c.urlParams_.Set("alt", alt)
21976 c.urlParams_.Set("prettyPrint", "false")
21977 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:import")
21978 urls += "?" + c.urlParams_.Encode()
21979 req, err := http.NewRequest("POST", urls, body)
21980 if err != nil {
21981 return nil, err
21982 }
21983 req.Header = reqHeaders
21984 googleapi.Expand(req.URL, map[string]string{
21985 "parent": c.parent,
21986 })
21987 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21988 }
21989
21990
21991
21992
21993
21994
21995
21996 func (c *ProjectsLocationsCollectionsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21997 gensupport.SetOptions(c.urlParams_, opts...)
21998 res, err := c.doRequest("json")
21999 if res != nil && res.StatusCode == http.StatusNotModified {
22000 if res.Body != nil {
22001 res.Body.Close()
22002 }
22003 return nil, gensupport.WrapError(&googleapi.Error{
22004 Code: res.StatusCode,
22005 Header: res.Header,
22006 })
22007 }
22008 if err != nil {
22009 return nil, err
22010 }
22011 defer googleapi.CloseBody(res)
22012 if err := googleapi.CheckResponse(res); err != nil {
22013 return nil, gensupport.WrapError(err)
22014 }
22015 ret := &GoogleLongrunningOperation{
22016 ServerResponse: googleapi.ServerResponse{
22017 Header: res.Header,
22018 HTTPStatusCode: res.StatusCode,
22019 },
22020 }
22021 target := &ret
22022 if err := gensupport.DecodeResponse(target, res); err != nil {
22023 return nil, err
22024 }
22025 return ret, nil
22026 }
22027
22028 type ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall struct {
22029 s *Service
22030 parent string
22031 googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
22032 urlParams_ gensupport.URLParams
22033 ctx_ context.Context
22034 header_ http.Header
22035 }
22036
22037
22038
22039
22040
22041
22042
22043
22044
22045
22046 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall {
22047 c := &ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22048 c.parent = parent
22049 c.googleclouddiscoveryenginev1alphapurgeusereventsrequest = googleclouddiscoveryenginev1alphapurgeusereventsrequest
22050 return c
22051 }
22052
22053
22054
22055
22056 func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall {
22057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22058 return c
22059 }
22060
22061
22062 func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall {
22063 c.ctx_ = ctx
22064 return c
22065 }
22066
22067
22068
22069 func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Header() http.Header {
22070 if c.header_ == nil {
22071 c.header_ = make(http.Header)
22072 }
22073 return c.header_
22074 }
22075
22076 func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) doRequest(alt string) (*http.Response, error) {
22077 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22078 var body io.Reader = nil
22079 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgeusereventsrequest)
22080 if err != nil {
22081 return nil, err
22082 }
22083 c.urlParams_.Set("alt", alt)
22084 c.urlParams_.Set("prettyPrint", "false")
22085 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:purge")
22086 urls += "?" + c.urlParams_.Encode()
22087 req, err := http.NewRequest("POST", urls, body)
22088 if err != nil {
22089 return nil, err
22090 }
22091 req.Header = reqHeaders
22092 googleapi.Expand(req.URL, map[string]string{
22093 "parent": c.parent,
22094 })
22095 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22096 }
22097
22098
22099
22100
22101
22102
22103
22104 func (c *ProjectsLocationsCollectionsDataStoresUserEventsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22105 gensupport.SetOptions(c.urlParams_, opts...)
22106 res, err := c.doRequest("json")
22107 if res != nil && res.StatusCode == http.StatusNotModified {
22108 if res.Body != nil {
22109 res.Body.Close()
22110 }
22111 return nil, gensupport.WrapError(&googleapi.Error{
22112 Code: res.StatusCode,
22113 Header: res.Header,
22114 })
22115 }
22116 if err != nil {
22117 return nil, err
22118 }
22119 defer googleapi.CloseBody(res)
22120 if err := googleapi.CheckResponse(res); err != nil {
22121 return nil, gensupport.WrapError(err)
22122 }
22123 ret := &GoogleLongrunningOperation{
22124 ServerResponse: googleapi.ServerResponse{
22125 Header: res.Header,
22126 HTTPStatusCode: res.StatusCode,
22127 },
22128 }
22129 target := &ret
22130 if err := gensupport.DecodeResponse(target, res); err != nil {
22131 return nil, err
22132 }
22133 return ret, nil
22134 }
22135
22136 type ProjectsLocationsCollectionsDataStoresUserEventsWriteCall struct {
22137 s *Service
22138 parent string
22139 googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent
22140 urlParams_ gensupport.URLParams
22141 ctx_ context.Context
22142 header_ http.Header
22143 }
22144
22145
22146
22147
22148
22149
22150
22151
22152
22153 func (r *ProjectsLocationsCollectionsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
22154 c := &ProjectsLocationsCollectionsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22155 c.parent = parent
22156 c.googleclouddiscoveryenginev1alphauserevent = googleclouddiscoveryenginev1alphauserevent
22157 return c
22158 }
22159
22160
22161
22162
22163 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
22164 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22165 return c
22166 }
22167
22168
22169 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall {
22170 c.ctx_ = ctx
22171 return c
22172 }
22173
22174
22175
22176 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Header() http.Header {
22177 if c.header_ == nil {
22178 c.header_ = make(http.Header)
22179 }
22180 return c.header_
22181 }
22182
22183 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
22184 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22185 var body io.Reader = nil
22186 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphauserevent)
22187 if err != nil {
22188 return nil, err
22189 }
22190 c.urlParams_.Set("alt", alt)
22191 c.urlParams_.Set("prettyPrint", "false")
22192 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:write")
22193 urls += "?" + c.urlParams_.Encode()
22194 req, err := http.NewRequest("POST", urls, body)
22195 if err != nil {
22196 return nil, err
22197 }
22198 req.Header = reqHeaders
22199 googleapi.Expand(req.URL, map[string]string{
22200 "parent": c.parent,
22201 })
22202 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22203 }
22204
22205
22206
22207
22208
22209
22210
22211 func (c *ProjectsLocationsCollectionsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaUserEvent, error) {
22212 gensupport.SetOptions(c.urlParams_, opts...)
22213 res, err := c.doRequest("json")
22214 if res != nil && res.StatusCode == http.StatusNotModified {
22215 if res.Body != nil {
22216 res.Body.Close()
22217 }
22218 return nil, gensupport.WrapError(&googleapi.Error{
22219 Code: res.StatusCode,
22220 Header: res.Header,
22221 })
22222 }
22223 if err != nil {
22224 return nil, err
22225 }
22226 defer googleapi.CloseBody(res)
22227 if err := googleapi.CheckResponse(res); err != nil {
22228 return nil, gensupport.WrapError(err)
22229 }
22230 ret := &GoogleCloudDiscoveryengineV1alphaUserEvent{
22231 ServerResponse: googleapi.ServerResponse{
22232 Header: res.Header,
22233 HTTPStatusCode: res.StatusCode,
22234 },
22235 }
22236 target := &ret
22237 if err := gensupport.DecodeResponse(target, res); err != nil {
22238 return nil, err
22239 }
22240 return ret, nil
22241 }
22242
22243 type ProjectsLocationsCollectionsEnginesCreateCall struct {
22244 s *Service
22245 parent string
22246 googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine
22247 urlParams_ gensupport.URLParams
22248 ctx_ context.Context
22249 header_ http.Header
22250 }
22251
22252
22253
22254
22255
22256 func (r *ProjectsLocationsCollectionsEnginesService) Create(parent string, googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine) *ProjectsLocationsCollectionsEnginesCreateCall {
22257 c := &ProjectsLocationsCollectionsEnginesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22258 c.parent = parent
22259 c.googleclouddiscoveryenginev1alphaengine = googleclouddiscoveryenginev1alphaengine
22260 return c
22261 }
22262
22263
22264
22265
22266
22267
22268 func (c *ProjectsLocationsCollectionsEnginesCreateCall) EngineId(engineId string) *ProjectsLocationsCollectionsEnginesCreateCall {
22269 c.urlParams_.Set("engineId", engineId)
22270 return c
22271 }
22272
22273
22274
22275
22276 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesCreateCall {
22277 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22278 return c
22279 }
22280
22281
22282 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesCreateCall {
22283 c.ctx_ = ctx
22284 return c
22285 }
22286
22287
22288
22289 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Header() http.Header {
22290 if c.header_ == nil {
22291 c.header_ = make(http.Header)
22292 }
22293 return c.header_
22294 }
22295
22296 func (c *ProjectsLocationsCollectionsEnginesCreateCall) doRequest(alt string) (*http.Response, error) {
22297 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22298 var body io.Reader = nil
22299 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaengine)
22300 if err != nil {
22301 return nil, err
22302 }
22303 c.urlParams_.Set("alt", alt)
22304 c.urlParams_.Set("prettyPrint", "false")
22305 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/engines")
22306 urls += "?" + c.urlParams_.Encode()
22307 req, err := http.NewRequest("POST", urls, body)
22308 if err != nil {
22309 return nil, err
22310 }
22311 req.Header = reqHeaders
22312 googleapi.Expand(req.URL, map[string]string{
22313 "parent": c.parent,
22314 })
22315 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22316 }
22317
22318
22319
22320
22321
22322
22323
22324 func (c *ProjectsLocationsCollectionsEnginesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22325 gensupport.SetOptions(c.urlParams_, opts...)
22326 res, err := c.doRequest("json")
22327 if res != nil && res.StatusCode == http.StatusNotModified {
22328 if res.Body != nil {
22329 res.Body.Close()
22330 }
22331 return nil, gensupport.WrapError(&googleapi.Error{
22332 Code: res.StatusCode,
22333 Header: res.Header,
22334 })
22335 }
22336 if err != nil {
22337 return nil, err
22338 }
22339 defer googleapi.CloseBody(res)
22340 if err := googleapi.CheckResponse(res); err != nil {
22341 return nil, gensupport.WrapError(err)
22342 }
22343 ret := &GoogleLongrunningOperation{
22344 ServerResponse: googleapi.ServerResponse{
22345 Header: res.Header,
22346 HTTPStatusCode: res.StatusCode,
22347 },
22348 }
22349 target := &ret
22350 if err := gensupport.DecodeResponse(target, res); err != nil {
22351 return nil, err
22352 }
22353 return ret, nil
22354 }
22355
22356 type ProjectsLocationsCollectionsEnginesDeleteCall struct {
22357 s *Service
22358 name string
22359 urlParams_ gensupport.URLParams
22360 ctx_ context.Context
22361 header_ http.Header
22362 }
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372 func (r *ProjectsLocationsCollectionsEnginesService) Delete(name string) *ProjectsLocationsCollectionsEnginesDeleteCall {
22373 c := &ProjectsLocationsCollectionsEnginesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22374 c.name = name
22375 return c
22376 }
22377
22378
22379
22380
22381 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesDeleteCall {
22382 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22383 return c
22384 }
22385
22386
22387 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesDeleteCall {
22388 c.ctx_ = ctx
22389 return c
22390 }
22391
22392
22393
22394 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Header() http.Header {
22395 if c.header_ == nil {
22396 c.header_ = make(http.Header)
22397 }
22398 return c.header_
22399 }
22400
22401 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) doRequest(alt string) (*http.Response, error) {
22402 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22403 var body io.Reader = nil
22404 c.urlParams_.Set("alt", alt)
22405 c.urlParams_.Set("prettyPrint", "false")
22406 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
22407 urls += "?" + c.urlParams_.Encode()
22408 req, err := http.NewRequest("DELETE", urls, body)
22409 if err != nil {
22410 return nil, err
22411 }
22412 req.Header = reqHeaders
22413 googleapi.Expand(req.URL, map[string]string{
22414 "name": c.name,
22415 })
22416 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22417 }
22418
22419
22420
22421
22422
22423
22424
22425 func (c *ProjectsLocationsCollectionsEnginesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22426 gensupport.SetOptions(c.urlParams_, opts...)
22427 res, err := c.doRequest("json")
22428 if res != nil && res.StatusCode == http.StatusNotModified {
22429 if res.Body != nil {
22430 res.Body.Close()
22431 }
22432 return nil, gensupport.WrapError(&googleapi.Error{
22433 Code: res.StatusCode,
22434 Header: res.Header,
22435 })
22436 }
22437 if err != nil {
22438 return nil, err
22439 }
22440 defer googleapi.CloseBody(res)
22441 if err := googleapi.CheckResponse(res); err != nil {
22442 return nil, gensupport.WrapError(err)
22443 }
22444 ret := &GoogleLongrunningOperation{
22445 ServerResponse: googleapi.ServerResponse{
22446 Header: res.Header,
22447 HTTPStatusCode: res.StatusCode,
22448 },
22449 }
22450 target := &ret
22451 if err := gensupport.DecodeResponse(target, res); err != nil {
22452 return nil, err
22453 }
22454 return ret, nil
22455 }
22456
22457 type ProjectsLocationsCollectionsEnginesGetCall struct {
22458 s *Service
22459 name string
22460 urlParams_ gensupport.URLParams
22461 ifNoneMatch_ string
22462 ctx_ context.Context
22463 header_ http.Header
22464 }
22465
22466
22467
22468
22469
22470
22471 func (r *ProjectsLocationsCollectionsEnginesService) Get(name string) *ProjectsLocationsCollectionsEnginesGetCall {
22472 c := &ProjectsLocationsCollectionsEnginesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22473 c.name = name
22474 return c
22475 }
22476
22477
22478
22479
22480 func (c *ProjectsLocationsCollectionsEnginesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesGetCall {
22481 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22482 return c
22483 }
22484
22485
22486
22487
22488 func (c *ProjectsLocationsCollectionsEnginesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesGetCall {
22489 c.ifNoneMatch_ = entityTag
22490 return c
22491 }
22492
22493
22494 func (c *ProjectsLocationsCollectionsEnginesGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesGetCall {
22495 c.ctx_ = ctx
22496 return c
22497 }
22498
22499
22500
22501 func (c *ProjectsLocationsCollectionsEnginesGetCall) Header() http.Header {
22502 if c.header_ == nil {
22503 c.header_ = make(http.Header)
22504 }
22505 return c.header_
22506 }
22507
22508 func (c *ProjectsLocationsCollectionsEnginesGetCall) doRequest(alt string) (*http.Response, error) {
22509 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22510 if c.ifNoneMatch_ != "" {
22511 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22512 }
22513 var body io.Reader = nil
22514 c.urlParams_.Set("alt", alt)
22515 c.urlParams_.Set("prettyPrint", "false")
22516 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
22517 urls += "?" + c.urlParams_.Encode()
22518 req, err := http.NewRequest("GET", urls, body)
22519 if err != nil {
22520 return nil, err
22521 }
22522 req.Header = reqHeaders
22523 googleapi.Expand(req.URL, map[string]string{
22524 "name": c.name,
22525 })
22526 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22527 }
22528
22529
22530
22531
22532
22533
22534
22535 func (c *ProjectsLocationsCollectionsEnginesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
22536 gensupport.SetOptions(c.urlParams_, opts...)
22537 res, err := c.doRequest("json")
22538 if res != nil && res.StatusCode == http.StatusNotModified {
22539 if res.Body != nil {
22540 res.Body.Close()
22541 }
22542 return nil, gensupport.WrapError(&googleapi.Error{
22543 Code: res.StatusCode,
22544 Header: res.Header,
22545 })
22546 }
22547 if err != nil {
22548 return nil, err
22549 }
22550 defer googleapi.CloseBody(res)
22551 if err := googleapi.CheckResponse(res); err != nil {
22552 return nil, gensupport.WrapError(err)
22553 }
22554 ret := &GoogleCloudDiscoveryengineV1alphaEngine{
22555 ServerResponse: googleapi.ServerResponse{
22556 Header: res.Header,
22557 HTTPStatusCode: res.StatusCode,
22558 },
22559 }
22560 target := &ret
22561 if err := gensupport.DecodeResponse(target, res); err != nil {
22562 return nil, err
22563 }
22564 return ret, nil
22565 }
22566
22567 type ProjectsLocationsCollectionsEnginesListCall struct {
22568 s *Service
22569 parent string
22570 urlParams_ gensupport.URLParams
22571 ifNoneMatch_ string
22572 ctx_ context.Context
22573 header_ http.Header
22574 }
22575
22576
22577
22578
22579
22580 func (r *ProjectsLocationsCollectionsEnginesService) List(parent string) *ProjectsLocationsCollectionsEnginesListCall {
22581 c := &ProjectsLocationsCollectionsEnginesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22582 c.parent = parent
22583 return c
22584 }
22585
22586
22587
22588 func (c *ProjectsLocationsCollectionsEnginesListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesListCall {
22589 c.urlParams_.Set("filter", filter)
22590 return c
22591 }
22592
22593
22594 func (c *ProjectsLocationsCollectionsEnginesListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesListCall {
22595 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22596 return c
22597 }
22598
22599
22600 func (c *ProjectsLocationsCollectionsEnginesListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesListCall {
22601 c.urlParams_.Set("pageToken", pageToken)
22602 return c
22603 }
22604
22605
22606
22607
22608 func (c *ProjectsLocationsCollectionsEnginesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesListCall {
22609 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22610 return c
22611 }
22612
22613
22614
22615
22616 func (c *ProjectsLocationsCollectionsEnginesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesListCall {
22617 c.ifNoneMatch_ = entityTag
22618 return c
22619 }
22620
22621
22622 func (c *ProjectsLocationsCollectionsEnginesListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesListCall {
22623 c.ctx_ = ctx
22624 return c
22625 }
22626
22627
22628
22629 func (c *ProjectsLocationsCollectionsEnginesListCall) Header() http.Header {
22630 if c.header_ == nil {
22631 c.header_ = make(http.Header)
22632 }
22633 return c.header_
22634 }
22635
22636 func (c *ProjectsLocationsCollectionsEnginesListCall) doRequest(alt string) (*http.Response, error) {
22637 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22638 if c.ifNoneMatch_ != "" {
22639 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22640 }
22641 var body io.Reader = nil
22642 c.urlParams_.Set("alt", alt)
22643 c.urlParams_.Set("prettyPrint", "false")
22644 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/engines")
22645 urls += "?" + c.urlParams_.Encode()
22646 req, err := http.NewRequest("GET", urls, body)
22647 if err != nil {
22648 return nil, err
22649 }
22650 req.Header = reqHeaders
22651 googleapi.Expand(req.URL, map[string]string{
22652 "parent": c.parent,
22653 })
22654 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22655 }
22656
22657
22658
22659
22660
22661
22662
22663 func (c *ProjectsLocationsCollectionsEnginesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListEnginesResponse, error) {
22664 gensupport.SetOptions(c.urlParams_, opts...)
22665 res, err := c.doRequest("json")
22666 if res != nil && res.StatusCode == http.StatusNotModified {
22667 if res.Body != nil {
22668 res.Body.Close()
22669 }
22670 return nil, gensupport.WrapError(&googleapi.Error{
22671 Code: res.StatusCode,
22672 Header: res.Header,
22673 })
22674 }
22675 if err != nil {
22676 return nil, err
22677 }
22678 defer googleapi.CloseBody(res)
22679 if err := googleapi.CheckResponse(res); err != nil {
22680 return nil, gensupport.WrapError(err)
22681 }
22682 ret := &GoogleCloudDiscoveryengineV1alphaListEnginesResponse{
22683 ServerResponse: googleapi.ServerResponse{
22684 Header: res.Header,
22685 HTTPStatusCode: res.StatusCode,
22686 },
22687 }
22688 target := &ret
22689 if err := gensupport.DecodeResponse(target, res); err != nil {
22690 return nil, err
22691 }
22692 return ret, nil
22693 }
22694
22695
22696
22697
22698 func (c *ProjectsLocationsCollectionsEnginesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListEnginesResponse) error) error {
22699 c.ctx_ = ctx
22700 defer c.PageToken(c.urlParams_.Get("pageToken"))
22701 for {
22702 x, err := c.Do()
22703 if err != nil {
22704 return err
22705 }
22706 if err := f(x); err != nil {
22707 return err
22708 }
22709 if x.NextPageToken == "" {
22710 return nil
22711 }
22712 c.PageToken(x.NextPageToken)
22713 }
22714 }
22715
22716 type ProjectsLocationsCollectionsEnginesPatchCall struct {
22717 s *Service
22718 name string
22719 googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine
22720 urlParams_ gensupport.URLParams
22721 ctx_ context.Context
22722 header_ http.Header
22723 }
22724
22725
22726
22727
22728
22729
22730
22731
22732
22733 func (r *ProjectsLocationsCollectionsEnginesService) Patch(name string, googleclouddiscoveryenginev1alphaengine *GoogleCloudDiscoveryengineV1alphaEngine) *ProjectsLocationsCollectionsEnginesPatchCall {
22734 c := &ProjectsLocationsCollectionsEnginesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22735 c.name = name
22736 c.googleclouddiscoveryenginev1alphaengine = googleclouddiscoveryenginev1alphaengine
22737 return c
22738 }
22739
22740
22741
22742
22743 func (c *ProjectsLocationsCollectionsEnginesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesPatchCall {
22744 c.urlParams_.Set("updateMask", updateMask)
22745 return c
22746 }
22747
22748
22749
22750
22751 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPatchCall {
22752 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22753 return c
22754 }
22755
22756
22757 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPatchCall {
22758 c.ctx_ = ctx
22759 return c
22760 }
22761
22762
22763
22764 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Header() http.Header {
22765 if c.header_ == nil {
22766 c.header_ = make(http.Header)
22767 }
22768 return c.header_
22769 }
22770
22771 func (c *ProjectsLocationsCollectionsEnginesPatchCall) doRequest(alt string) (*http.Response, error) {
22772 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22773 var body io.Reader = nil
22774 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaengine)
22775 if err != nil {
22776 return nil, err
22777 }
22778 c.urlParams_.Set("alt", alt)
22779 c.urlParams_.Set("prettyPrint", "false")
22780 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
22781 urls += "?" + c.urlParams_.Encode()
22782 req, err := http.NewRequest("PATCH", urls, body)
22783 if err != nil {
22784 return nil, err
22785 }
22786 req.Header = reqHeaders
22787 googleapi.Expand(req.URL, map[string]string{
22788 "name": c.name,
22789 })
22790 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22791 }
22792
22793
22794
22795
22796
22797
22798
22799 func (c *ProjectsLocationsCollectionsEnginesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
22800 gensupport.SetOptions(c.urlParams_, opts...)
22801 res, err := c.doRequest("json")
22802 if res != nil && res.StatusCode == http.StatusNotModified {
22803 if res.Body != nil {
22804 res.Body.Close()
22805 }
22806 return nil, gensupport.WrapError(&googleapi.Error{
22807 Code: res.StatusCode,
22808 Header: res.Header,
22809 })
22810 }
22811 if err != nil {
22812 return nil, err
22813 }
22814 defer googleapi.CloseBody(res)
22815 if err := googleapi.CheckResponse(res); err != nil {
22816 return nil, gensupport.WrapError(err)
22817 }
22818 ret := &GoogleCloudDiscoveryengineV1alphaEngine{
22819 ServerResponse: googleapi.ServerResponse{
22820 Header: res.Header,
22821 HTTPStatusCode: res.StatusCode,
22822 },
22823 }
22824 target := &ret
22825 if err := gensupport.DecodeResponse(target, res); err != nil {
22826 return nil, err
22827 }
22828 return ret, nil
22829 }
22830
22831 type ProjectsLocationsCollectionsEnginesPauseCall struct {
22832 s *Service
22833 name string
22834 googleclouddiscoveryenginev1alphapauseenginerequest *GoogleCloudDiscoveryengineV1alphaPauseEngineRequest
22835 urlParams_ gensupport.URLParams
22836 ctx_ context.Context
22837 header_ http.Header
22838 }
22839
22840
22841
22842
22843
22844
22845
22846 func (r *ProjectsLocationsCollectionsEnginesService) Pause(name string, googleclouddiscoveryenginev1alphapauseenginerequest *GoogleCloudDiscoveryengineV1alphaPauseEngineRequest) *ProjectsLocationsCollectionsEnginesPauseCall {
22847 c := &ProjectsLocationsCollectionsEnginesPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22848 c.name = name
22849 c.googleclouddiscoveryenginev1alphapauseenginerequest = googleclouddiscoveryenginev1alphapauseenginerequest
22850 return c
22851 }
22852
22853
22854
22855
22856 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesPauseCall {
22857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22858 return c
22859 }
22860
22861
22862 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesPauseCall {
22863 c.ctx_ = ctx
22864 return c
22865 }
22866
22867
22868
22869 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Header() http.Header {
22870 if c.header_ == nil {
22871 c.header_ = make(http.Header)
22872 }
22873 return c.header_
22874 }
22875
22876 func (c *ProjectsLocationsCollectionsEnginesPauseCall) doRequest(alt string) (*http.Response, error) {
22877 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22878 var body io.Reader = nil
22879 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapauseenginerequest)
22880 if err != nil {
22881 return nil, err
22882 }
22883 c.urlParams_.Set("alt", alt)
22884 c.urlParams_.Set("prettyPrint", "false")
22885 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:pause")
22886 urls += "?" + c.urlParams_.Encode()
22887 req, err := http.NewRequest("POST", urls, body)
22888 if err != nil {
22889 return nil, err
22890 }
22891 req.Header = reqHeaders
22892 googleapi.Expand(req.URL, map[string]string{
22893 "name": c.name,
22894 })
22895 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22896 }
22897
22898
22899
22900
22901
22902
22903
22904 func (c *ProjectsLocationsCollectionsEnginesPauseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
22905 gensupport.SetOptions(c.urlParams_, opts...)
22906 res, err := c.doRequest("json")
22907 if res != nil && res.StatusCode == http.StatusNotModified {
22908 if res.Body != nil {
22909 res.Body.Close()
22910 }
22911 return nil, gensupport.WrapError(&googleapi.Error{
22912 Code: res.StatusCode,
22913 Header: res.Header,
22914 })
22915 }
22916 if err != nil {
22917 return nil, err
22918 }
22919 defer googleapi.CloseBody(res)
22920 if err := googleapi.CheckResponse(res); err != nil {
22921 return nil, gensupport.WrapError(err)
22922 }
22923 ret := &GoogleCloudDiscoveryengineV1alphaEngine{
22924 ServerResponse: googleapi.ServerResponse{
22925 Header: res.Header,
22926 HTTPStatusCode: res.StatusCode,
22927 },
22928 }
22929 target := &ret
22930 if err := gensupport.DecodeResponse(target, res); err != nil {
22931 return nil, err
22932 }
22933 return ret, nil
22934 }
22935
22936 type ProjectsLocationsCollectionsEnginesResumeCall struct {
22937 s *Service
22938 name string
22939 googleclouddiscoveryenginev1alpharesumeenginerequest *GoogleCloudDiscoveryengineV1alphaResumeEngineRequest
22940 urlParams_ gensupport.URLParams
22941 ctx_ context.Context
22942 header_ http.Header
22943 }
22944
22945
22946
22947
22948
22949
22950
22951 func (r *ProjectsLocationsCollectionsEnginesService) Resume(name string, googleclouddiscoveryenginev1alpharesumeenginerequest *GoogleCloudDiscoveryengineV1alphaResumeEngineRequest) *ProjectsLocationsCollectionsEnginesResumeCall {
22952 c := &ProjectsLocationsCollectionsEnginesResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22953 c.name = name
22954 c.googleclouddiscoveryenginev1alpharesumeenginerequest = googleclouddiscoveryenginev1alpharesumeenginerequest
22955 return c
22956 }
22957
22958
22959
22960
22961 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesResumeCall {
22962 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22963 return c
22964 }
22965
22966
22967 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesResumeCall {
22968 c.ctx_ = ctx
22969 return c
22970 }
22971
22972
22973
22974 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Header() http.Header {
22975 if c.header_ == nil {
22976 c.header_ = make(http.Header)
22977 }
22978 return c.header_
22979 }
22980
22981 func (c *ProjectsLocationsCollectionsEnginesResumeCall) doRequest(alt string) (*http.Response, error) {
22982 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22983 var body io.Reader = nil
22984 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharesumeenginerequest)
22985 if err != nil {
22986 return nil, err
22987 }
22988 c.urlParams_.Set("alt", alt)
22989 c.urlParams_.Set("prettyPrint", "false")
22990 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:resume")
22991 urls += "?" + c.urlParams_.Encode()
22992 req, err := http.NewRequest("POST", urls, body)
22993 if err != nil {
22994 return nil, err
22995 }
22996 req.Header = reqHeaders
22997 googleapi.Expand(req.URL, map[string]string{
22998 "name": c.name,
22999 })
23000 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23001 }
23002
23003
23004
23005
23006
23007
23008
23009 func (c *ProjectsLocationsCollectionsEnginesResumeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaEngine, error) {
23010 gensupport.SetOptions(c.urlParams_, opts...)
23011 res, err := c.doRequest("json")
23012 if res != nil && res.StatusCode == http.StatusNotModified {
23013 if res.Body != nil {
23014 res.Body.Close()
23015 }
23016 return nil, gensupport.WrapError(&googleapi.Error{
23017 Code: res.StatusCode,
23018 Header: res.Header,
23019 })
23020 }
23021 if err != nil {
23022 return nil, err
23023 }
23024 defer googleapi.CloseBody(res)
23025 if err := googleapi.CheckResponse(res); err != nil {
23026 return nil, gensupport.WrapError(err)
23027 }
23028 ret := &GoogleCloudDiscoveryengineV1alphaEngine{
23029 ServerResponse: googleapi.ServerResponse{
23030 Header: res.Header,
23031 HTTPStatusCode: res.StatusCode,
23032 },
23033 }
23034 target := &ret
23035 if err := gensupport.DecodeResponse(target, res); err != nil {
23036 return nil, err
23037 }
23038 return ret, nil
23039 }
23040
23041 type ProjectsLocationsCollectionsEnginesTuneCall struct {
23042 s *Service
23043 name string
23044 googleclouddiscoveryenginev1alphatuneenginerequest *GoogleCloudDiscoveryengineV1alphaTuneEngineRequest
23045 urlParams_ gensupport.URLParams
23046 ctx_ context.Context
23047 header_ http.Header
23048 }
23049
23050
23051
23052
23053
23054
23055
23056 func (r *ProjectsLocationsCollectionsEnginesService) Tune(name string, googleclouddiscoveryenginev1alphatuneenginerequest *GoogleCloudDiscoveryengineV1alphaTuneEngineRequest) *ProjectsLocationsCollectionsEnginesTuneCall {
23057 c := &ProjectsLocationsCollectionsEnginesTuneCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23058 c.name = name
23059 c.googleclouddiscoveryenginev1alphatuneenginerequest = googleclouddiscoveryenginev1alphatuneenginerequest
23060 return c
23061 }
23062
23063
23064
23065
23066 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesTuneCall {
23067 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23068 return c
23069 }
23070
23071
23072 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesTuneCall {
23073 c.ctx_ = ctx
23074 return c
23075 }
23076
23077
23078
23079 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Header() http.Header {
23080 if c.header_ == nil {
23081 c.header_ = make(http.Header)
23082 }
23083 return c.header_
23084 }
23085
23086 func (c *ProjectsLocationsCollectionsEnginesTuneCall) doRequest(alt string) (*http.Response, error) {
23087 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23088 var body io.Reader = nil
23089 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatuneenginerequest)
23090 if err != nil {
23091 return nil, err
23092 }
23093 c.urlParams_.Set("alt", alt)
23094 c.urlParams_.Set("prettyPrint", "false")
23095 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:tune")
23096 urls += "?" + c.urlParams_.Encode()
23097 req, err := http.NewRequest("POST", urls, body)
23098 if err != nil {
23099 return nil, err
23100 }
23101 req.Header = reqHeaders
23102 googleapi.Expand(req.URL, map[string]string{
23103 "name": c.name,
23104 })
23105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23106 }
23107
23108
23109
23110
23111
23112
23113
23114 func (c *ProjectsLocationsCollectionsEnginesTuneCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23115 gensupport.SetOptions(c.urlParams_, opts...)
23116 res, err := c.doRequest("json")
23117 if res != nil && res.StatusCode == http.StatusNotModified {
23118 if res.Body != nil {
23119 res.Body.Close()
23120 }
23121 return nil, gensupport.WrapError(&googleapi.Error{
23122 Code: res.StatusCode,
23123 Header: res.Header,
23124 })
23125 }
23126 if err != nil {
23127 return nil, err
23128 }
23129 defer googleapi.CloseBody(res)
23130 if err := googleapi.CheckResponse(res); err != nil {
23131 return nil, gensupport.WrapError(err)
23132 }
23133 ret := &GoogleLongrunningOperation{
23134 ServerResponse: googleapi.ServerResponse{
23135 Header: res.Header,
23136 HTTPStatusCode: res.StatusCode,
23137 },
23138 }
23139 target := &ret
23140 if err := gensupport.DecodeResponse(target, res); err != nil {
23141 return nil, err
23142 }
23143 return ret, nil
23144 }
23145
23146 type ProjectsLocationsCollectionsEnginesConversationsConverseCall struct {
23147 s *Service
23148 name string
23149 googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
23150 urlParams_ gensupport.URLParams
23151 ctx_ context.Context
23152 header_ http.Header
23153 }
23154
23155
23156
23157
23158
23159
23160
23161
23162
23163
23164 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Converse(name string, googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
23165 c := &ProjectsLocationsCollectionsEnginesConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23166 c.name = name
23167 c.googleclouddiscoveryenginev1alphaconverseconversationrequest = googleclouddiscoveryenginev1alphaconverseconversationrequest
23168 return c
23169 }
23170
23171
23172
23173
23174 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
23175 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23176 return c
23177 }
23178
23179
23180 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsConverseCall {
23181 c.ctx_ = ctx
23182 return c
23183 }
23184
23185
23186
23187 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Header() http.Header {
23188 if c.header_ == nil {
23189 c.header_ = make(http.Header)
23190 }
23191 return c.header_
23192 }
23193
23194 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
23195 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23196 var body io.Reader = nil
23197 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconverseconversationrequest)
23198 if err != nil {
23199 return nil, err
23200 }
23201 c.urlParams_.Set("alt", alt)
23202 c.urlParams_.Set("prettyPrint", "false")
23203 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:converse")
23204 urls += "?" + c.urlParams_.Encode()
23205 req, err := http.NewRequest("POST", urls, body)
23206 if err != nil {
23207 return nil, err
23208 }
23209 req.Header = reqHeaders
23210 googleapi.Expand(req.URL, map[string]string{
23211 "name": c.name,
23212 })
23213 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23214 }
23215
23216
23217
23218
23219
23220
23221
23222 func (c *ProjectsLocationsCollectionsEnginesConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConverseConversationResponse, error) {
23223 gensupport.SetOptions(c.urlParams_, opts...)
23224 res, err := c.doRequest("json")
23225 if res != nil && res.StatusCode == http.StatusNotModified {
23226 if res.Body != nil {
23227 res.Body.Close()
23228 }
23229 return nil, gensupport.WrapError(&googleapi.Error{
23230 Code: res.StatusCode,
23231 Header: res.Header,
23232 })
23233 }
23234 if err != nil {
23235 return nil, err
23236 }
23237 defer googleapi.CloseBody(res)
23238 if err := googleapi.CheckResponse(res); err != nil {
23239 return nil, gensupport.WrapError(err)
23240 }
23241 ret := &GoogleCloudDiscoveryengineV1alphaConverseConversationResponse{
23242 ServerResponse: googleapi.ServerResponse{
23243 Header: res.Header,
23244 HTTPStatusCode: res.StatusCode,
23245 },
23246 }
23247 target := &ret
23248 if err := gensupport.DecodeResponse(target, res); err != nil {
23249 return nil, err
23250 }
23251 return ret, nil
23252 }
23253
23254 type ProjectsLocationsCollectionsEnginesConversationsCreateCall struct {
23255 s *Service
23256 parent string
23257 googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
23258 urlParams_ gensupport.URLParams
23259 ctx_ context.Context
23260 header_ http.Header
23261 }
23262
23263
23264
23265
23266
23267
23268
23269 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Create(parent string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
23270 c := &ProjectsLocationsCollectionsEnginesConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23271 c.parent = parent
23272 c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
23273 return c
23274 }
23275
23276
23277
23278
23279 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
23280 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23281 return c
23282 }
23283
23284
23285 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsCreateCall {
23286 c.ctx_ = ctx
23287 return c
23288 }
23289
23290
23291
23292 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Header() http.Header {
23293 if c.header_ == nil {
23294 c.header_ = make(http.Header)
23295 }
23296 return c.header_
23297 }
23298
23299 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
23300 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23301 var body io.Reader = nil
23302 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
23303 if err != nil {
23304 return nil, err
23305 }
23306 c.urlParams_.Set("alt", alt)
23307 c.urlParams_.Set("prettyPrint", "false")
23308 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
23309 urls += "?" + c.urlParams_.Encode()
23310 req, err := http.NewRequest("POST", urls, body)
23311 if err != nil {
23312 return nil, err
23313 }
23314 req.Header = reqHeaders
23315 googleapi.Expand(req.URL, map[string]string{
23316 "parent": c.parent,
23317 })
23318 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23319 }
23320
23321
23322
23323
23324
23325
23326
23327 func (c *ProjectsLocationsCollectionsEnginesConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
23328 gensupport.SetOptions(c.urlParams_, opts...)
23329 res, err := c.doRequest("json")
23330 if res != nil && res.StatusCode == http.StatusNotModified {
23331 if res.Body != nil {
23332 res.Body.Close()
23333 }
23334 return nil, gensupport.WrapError(&googleapi.Error{
23335 Code: res.StatusCode,
23336 Header: res.Header,
23337 })
23338 }
23339 if err != nil {
23340 return nil, err
23341 }
23342 defer googleapi.CloseBody(res)
23343 if err := googleapi.CheckResponse(res); err != nil {
23344 return nil, gensupport.WrapError(err)
23345 }
23346 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
23347 ServerResponse: googleapi.ServerResponse{
23348 Header: res.Header,
23349 HTTPStatusCode: res.StatusCode,
23350 },
23351 }
23352 target := &ret
23353 if err := gensupport.DecodeResponse(target, res); err != nil {
23354 return nil, err
23355 }
23356 return ret, nil
23357 }
23358
23359 type ProjectsLocationsCollectionsEnginesConversationsDeleteCall struct {
23360 s *Service
23361 name string
23362 urlParams_ gensupport.URLParams
23363 ctx_ context.Context
23364 header_ http.Header
23365 }
23366
23367
23368
23369
23370
23371
23372
23373 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Delete(name string) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
23374 c := &ProjectsLocationsCollectionsEnginesConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23375 c.name = name
23376 return c
23377 }
23378
23379
23380
23381
23382 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
23383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23384 return c
23385 }
23386
23387
23388 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsDeleteCall {
23389 c.ctx_ = ctx
23390 return c
23391 }
23392
23393
23394
23395 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Header() http.Header {
23396 if c.header_ == nil {
23397 c.header_ = make(http.Header)
23398 }
23399 return c.header_
23400 }
23401
23402 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
23403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23404 var body io.Reader = nil
23405 c.urlParams_.Set("alt", alt)
23406 c.urlParams_.Set("prettyPrint", "false")
23407 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
23408 urls += "?" + c.urlParams_.Encode()
23409 req, err := http.NewRequest("DELETE", urls, body)
23410 if err != nil {
23411 return nil, err
23412 }
23413 req.Header = reqHeaders
23414 googleapi.Expand(req.URL, map[string]string{
23415 "name": c.name,
23416 })
23417 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23418 }
23419
23420
23421
23422
23423
23424
23425
23426 func (c *ProjectsLocationsCollectionsEnginesConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23427 gensupport.SetOptions(c.urlParams_, opts...)
23428 res, err := c.doRequest("json")
23429 if res != nil && res.StatusCode == http.StatusNotModified {
23430 if res.Body != nil {
23431 res.Body.Close()
23432 }
23433 return nil, gensupport.WrapError(&googleapi.Error{
23434 Code: res.StatusCode,
23435 Header: res.Header,
23436 })
23437 }
23438 if err != nil {
23439 return nil, err
23440 }
23441 defer googleapi.CloseBody(res)
23442 if err := googleapi.CheckResponse(res); err != nil {
23443 return nil, gensupport.WrapError(err)
23444 }
23445 ret := &GoogleProtobufEmpty{
23446 ServerResponse: googleapi.ServerResponse{
23447 Header: res.Header,
23448 HTTPStatusCode: res.StatusCode,
23449 },
23450 }
23451 target := &ret
23452 if err := gensupport.DecodeResponse(target, res); err != nil {
23453 return nil, err
23454 }
23455 return ret, nil
23456 }
23457
23458 type ProjectsLocationsCollectionsEnginesConversationsGetCall struct {
23459 s *Service
23460 name string
23461 urlParams_ gensupport.URLParams
23462 ifNoneMatch_ string
23463 ctx_ context.Context
23464 header_ http.Header
23465 }
23466
23467
23468
23469
23470
23471
23472 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Get(name string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
23473 c := &ProjectsLocationsCollectionsEnginesConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23474 c.name = name
23475 return c
23476 }
23477
23478
23479
23480
23481 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
23482 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23483 return c
23484 }
23485
23486
23487
23488
23489 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
23490 c.ifNoneMatch_ = entityTag
23491 return c
23492 }
23493
23494
23495 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsGetCall {
23496 c.ctx_ = ctx
23497 return c
23498 }
23499
23500
23501
23502 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Header() http.Header {
23503 if c.header_ == nil {
23504 c.header_ = make(http.Header)
23505 }
23506 return c.header_
23507 }
23508
23509 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) doRequest(alt string) (*http.Response, error) {
23510 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23511 if c.ifNoneMatch_ != "" {
23512 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23513 }
23514 var body io.Reader = nil
23515 c.urlParams_.Set("alt", alt)
23516 c.urlParams_.Set("prettyPrint", "false")
23517 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
23518 urls += "?" + c.urlParams_.Encode()
23519 req, err := http.NewRequest("GET", urls, body)
23520 if err != nil {
23521 return nil, err
23522 }
23523 req.Header = reqHeaders
23524 googleapi.Expand(req.URL, map[string]string{
23525 "name": c.name,
23526 })
23527 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23528 }
23529
23530
23531
23532
23533
23534
23535
23536 func (c *ProjectsLocationsCollectionsEnginesConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
23537 gensupport.SetOptions(c.urlParams_, opts...)
23538 res, err := c.doRequest("json")
23539 if res != nil && res.StatusCode == http.StatusNotModified {
23540 if res.Body != nil {
23541 res.Body.Close()
23542 }
23543 return nil, gensupport.WrapError(&googleapi.Error{
23544 Code: res.StatusCode,
23545 Header: res.Header,
23546 })
23547 }
23548 if err != nil {
23549 return nil, err
23550 }
23551 defer googleapi.CloseBody(res)
23552 if err := googleapi.CheckResponse(res); err != nil {
23553 return nil, gensupport.WrapError(err)
23554 }
23555 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
23556 ServerResponse: googleapi.ServerResponse{
23557 Header: res.Header,
23558 HTTPStatusCode: res.StatusCode,
23559 },
23560 }
23561 target := &ret
23562 if err := gensupport.DecodeResponse(target, res); err != nil {
23563 return nil, err
23564 }
23565 return ret, nil
23566 }
23567
23568 type ProjectsLocationsCollectionsEnginesConversationsListCall struct {
23569 s *Service
23570 parent string
23571 urlParams_ gensupport.URLParams
23572 ifNoneMatch_ string
23573 ctx_ context.Context
23574 header_ http.Header
23575 }
23576
23577
23578
23579
23580
23581
23582 func (r *ProjectsLocationsCollectionsEnginesConversationsService) List(parent string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23583 c := &ProjectsLocationsCollectionsEnginesConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23584 c.parent = parent
23585 return c
23586 }
23587
23588
23589
23590
23591 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23592 c.urlParams_.Set("filter", filter)
23593 return c
23594 }
23595
23596
23597
23598
23599
23600 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23601 c.urlParams_.Set("orderBy", orderBy)
23602 return c
23603 }
23604
23605
23606
23607 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23608 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23609 return c
23610 }
23611
23612
23613
23614
23615 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23616 c.urlParams_.Set("pageToken", pageToken)
23617 return c
23618 }
23619
23620
23621
23622
23623 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23625 return c
23626 }
23627
23628
23629
23630
23631 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23632 c.ifNoneMatch_ = entityTag
23633 return c
23634 }
23635
23636
23637 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsListCall {
23638 c.ctx_ = ctx
23639 return c
23640 }
23641
23642
23643
23644 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Header() http.Header {
23645 if c.header_ == nil {
23646 c.header_ = make(http.Header)
23647 }
23648 return c.header_
23649 }
23650
23651 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) doRequest(alt string) (*http.Response, error) {
23652 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23653 if c.ifNoneMatch_ != "" {
23654 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23655 }
23656 var body io.Reader = nil
23657 c.urlParams_.Set("alt", alt)
23658 c.urlParams_.Set("prettyPrint", "false")
23659 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
23660 urls += "?" + c.urlParams_.Encode()
23661 req, err := http.NewRequest("GET", urls, body)
23662 if err != nil {
23663 return nil, err
23664 }
23665 req.Header = reqHeaders
23666 googleapi.Expand(req.URL, map[string]string{
23667 "parent": c.parent,
23668 })
23669 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23670 }
23671
23672
23673
23674
23675
23676
23677
23678 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListConversationsResponse, error) {
23679 gensupport.SetOptions(c.urlParams_, opts...)
23680 res, err := c.doRequest("json")
23681 if res != nil && res.StatusCode == http.StatusNotModified {
23682 if res.Body != nil {
23683 res.Body.Close()
23684 }
23685 return nil, gensupport.WrapError(&googleapi.Error{
23686 Code: res.StatusCode,
23687 Header: res.Header,
23688 })
23689 }
23690 if err != nil {
23691 return nil, err
23692 }
23693 defer googleapi.CloseBody(res)
23694 if err := googleapi.CheckResponse(res); err != nil {
23695 return nil, gensupport.WrapError(err)
23696 }
23697 ret := &GoogleCloudDiscoveryengineV1alphaListConversationsResponse{
23698 ServerResponse: googleapi.ServerResponse{
23699 Header: res.Header,
23700 HTTPStatusCode: res.StatusCode,
23701 },
23702 }
23703 target := &ret
23704 if err := gensupport.DecodeResponse(target, res); err != nil {
23705 return nil, err
23706 }
23707 return ret, nil
23708 }
23709
23710
23711
23712
23713 func (c *ProjectsLocationsCollectionsEnginesConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListConversationsResponse) error) error {
23714 c.ctx_ = ctx
23715 defer c.PageToken(c.urlParams_.Get("pageToken"))
23716 for {
23717 x, err := c.Do()
23718 if err != nil {
23719 return err
23720 }
23721 if err := f(x); err != nil {
23722 return err
23723 }
23724 if x.NextPageToken == "" {
23725 return nil
23726 }
23727 c.PageToken(x.NextPageToken)
23728 }
23729 }
23730
23731 type ProjectsLocationsCollectionsEnginesConversationsPatchCall struct {
23732 s *Service
23733 name string
23734 googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
23735 urlParams_ gensupport.URLParams
23736 ctx_ context.Context
23737 header_ http.Header
23738 }
23739
23740
23741
23742
23743
23744
23745
23746
23747
23748 func (r *ProjectsLocationsCollectionsEnginesConversationsService) Patch(name string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
23749 c := &ProjectsLocationsCollectionsEnginesConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23750 c.name = name
23751 c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
23752 return c
23753 }
23754
23755
23756
23757
23758 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
23759 c.urlParams_.Set("updateMask", updateMask)
23760 return c
23761 }
23762
23763
23764
23765
23766 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
23767 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23768 return c
23769 }
23770
23771
23772 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesConversationsPatchCall {
23773 c.ctx_ = ctx
23774 return c
23775 }
23776
23777
23778
23779 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Header() http.Header {
23780 if c.header_ == nil {
23781 c.header_ = make(http.Header)
23782 }
23783 return c.header_
23784 }
23785
23786 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
23787 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23788 var body io.Reader = nil
23789 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
23790 if err != nil {
23791 return nil, err
23792 }
23793 c.urlParams_.Set("alt", alt)
23794 c.urlParams_.Set("prettyPrint", "false")
23795 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
23796 urls += "?" + c.urlParams_.Encode()
23797 req, err := http.NewRequest("PATCH", urls, body)
23798 if err != nil {
23799 return nil, err
23800 }
23801 req.Header = reqHeaders
23802 googleapi.Expand(req.URL, map[string]string{
23803 "name": c.name,
23804 })
23805 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23806 }
23807
23808
23809
23810
23811
23812
23813
23814 func (c *ProjectsLocationsCollectionsEnginesConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
23815 gensupport.SetOptions(c.urlParams_, opts...)
23816 res, err := c.doRequest("json")
23817 if res != nil && res.StatusCode == http.StatusNotModified {
23818 if res.Body != nil {
23819 res.Body.Close()
23820 }
23821 return nil, gensupport.WrapError(&googleapi.Error{
23822 Code: res.StatusCode,
23823 Header: res.Header,
23824 })
23825 }
23826 if err != nil {
23827 return nil, err
23828 }
23829 defer googleapi.CloseBody(res)
23830 if err := googleapi.CheckResponse(res); err != nil {
23831 return nil, gensupport.WrapError(err)
23832 }
23833 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
23834 ServerResponse: googleapi.ServerResponse{
23835 Header: res.Header,
23836 HTTPStatusCode: res.StatusCode,
23837 },
23838 }
23839 target := &ret
23840 if err := gensupport.DecodeResponse(target, res); err != nil {
23841 return nil, err
23842 }
23843 return ret, nil
23844 }
23845
23846 type ProjectsLocationsCollectionsEnginesOperationsGetCall struct {
23847 s *Service
23848 name string
23849 urlParams_ gensupport.URLParams
23850 ifNoneMatch_ string
23851 ctx_ context.Context
23852 header_ http.Header
23853 }
23854
23855
23856
23857
23858
23859
23860 func (r *ProjectsLocationsCollectionsEnginesOperationsService) Get(name string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
23861 c := &ProjectsLocationsCollectionsEnginesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23862 c.name = name
23863 return c
23864 }
23865
23866
23867
23868
23869 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
23870 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23871 return c
23872 }
23873
23874
23875
23876
23877 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
23878 c.ifNoneMatch_ = entityTag
23879 return c
23880 }
23881
23882
23883 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsGetCall {
23884 c.ctx_ = ctx
23885 return c
23886 }
23887
23888
23889
23890 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Header() http.Header {
23891 if c.header_ == nil {
23892 c.header_ = make(http.Header)
23893 }
23894 return c.header_
23895 }
23896
23897 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
23898 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23899 if c.ifNoneMatch_ != "" {
23900 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23901 }
23902 var body io.Reader = nil
23903 c.urlParams_.Set("alt", alt)
23904 c.urlParams_.Set("prettyPrint", "false")
23905 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
23906 urls += "?" + c.urlParams_.Encode()
23907 req, err := http.NewRequest("GET", urls, body)
23908 if err != nil {
23909 return nil, err
23910 }
23911 req.Header = reqHeaders
23912 googleapi.Expand(req.URL, map[string]string{
23913 "name": c.name,
23914 })
23915 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23916 }
23917
23918
23919
23920
23921
23922
23923
23924 func (c *ProjectsLocationsCollectionsEnginesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23925 gensupport.SetOptions(c.urlParams_, opts...)
23926 res, err := c.doRequest("json")
23927 if res != nil && res.StatusCode == http.StatusNotModified {
23928 if res.Body != nil {
23929 res.Body.Close()
23930 }
23931 return nil, gensupport.WrapError(&googleapi.Error{
23932 Code: res.StatusCode,
23933 Header: res.Header,
23934 })
23935 }
23936 if err != nil {
23937 return nil, err
23938 }
23939 defer googleapi.CloseBody(res)
23940 if err := googleapi.CheckResponse(res); err != nil {
23941 return nil, gensupport.WrapError(err)
23942 }
23943 ret := &GoogleLongrunningOperation{
23944 ServerResponse: googleapi.ServerResponse{
23945 Header: res.Header,
23946 HTTPStatusCode: res.StatusCode,
23947 },
23948 }
23949 target := &ret
23950 if err := gensupport.DecodeResponse(target, res); err != nil {
23951 return nil, err
23952 }
23953 return ret, nil
23954 }
23955
23956 type ProjectsLocationsCollectionsEnginesOperationsListCall struct {
23957 s *Service
23958 name string
23959 urlParams_ gensupport.URLParams
23960 ifNoneMatch_ string
23961 ctx_ context.Context
23962 header_ http.Header
23963 }
23964
23965
23966
23967
23968
23969 func (r *ProjectsLocationsCollectionsEnginesOperationsService) List(name string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
23970 c := &ProjectsLocationsCollectionsEnginesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23971 c.name = name
23972 return c
23973 }
23974
23975
23976 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
23977 c.urlParams_.Set("filter", filter)
23978 return c
23979 }
23980
23981
23982
23983 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesOperationsListCall {
23984 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23985 return c
23986 }
23987
23988
23989
23990 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
23991 c.urlParams_.Set("pageToken", pageToken)
23992 return c
23993 }
23994
23995
23996
23997
23998 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesOperationsListCall {
23999 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24000 return c
24001 }
24002
24003
24004
24005
24006 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesOperationsListCall {
24007 c.ifNoneMatch_ = entityTag
24008 return c
24009 }
24010
24011
24012 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesOperationsListCall {
24013 c.ctx_ = ctx
24014 return c
24015 }
24016
24017
24018
24019 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Header() http.Header {
24020 if c.header_ == nil {
24021 c.header_ = make(http.Header)
24022 }
24023 return c.header_
24024 }
24025
24026 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) doRequest(alt string) (*http.Response, error) {
24027 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24028 if c.ifNoneMatch_ != "" {
24029 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24030 }
24031 var body io.Reader = nil
24032 c.urlParams_.Set("alt", alt)
24033 c.urlParams_.Set("prettyPrint", "false")
24034 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
24035 urls += "?" + c.urlParams_.Encode()
24036 req, err := http.NewRequest("GET", urls, body)
24037 if err != nil {
24038 return nil, err
24039 }
24040 req.Header = reqHeaders
24041 googleapi.Expand(req.URL, map[string]string{
24042 "name": c.name,
24043 })
24044 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24045 }
24046
24047
24048
24049
24050
24051
24052
24053 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
24054 gensupport.SetOptions(c.urlParams_, opts...)
24055 res, err := c.doRequest("json")
24056 if res != nil && res.StatusCode == http.StatusNotModified {
24057 if res.Body != nil {
24058 res.Body.Close()
24059 }
24060 return nil, gensupport.WrapError(&googleapi.Error{
24061 Code: res.StatusCode,
24062 Header: res.Header,
24063 })
24064 }
24065 if err != nil {
24066 return nil, err
24067 }
24068 defer googleapi.CloseBody(res)
24069 if err := googleapi.CheckResponse(res); err != nil {
24070 return nil, gensupport.WrapError(err)
24071 }
24072 ret := &GoogleLongrunningListOperationsResponse{
24073 ServerResponse: googleapi.ServerResponse{
24074 Header: res.Header,
24075 HTTPStatusCode: res.StatusCode,
24076 },
24077 }
24078 target := &ret
24079 if err := gensupport.DecodeResponse(target, res); err != nil {
24080 return nil, err
24081 }
24082 return ret, nil
24083 }
24084
24085
24086
24087
24088 func (c *ProjectsLocationsCollectionsEnginesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
24089 c.ctx_ = ctx
24090 defer c.PageToken(c.urlParams_.Get("pageToken"))
24091 for {
24092 x, err := c.Do()
24093 if err != nil {
24094 return err
24095 }
24096 if err := f(x); err != nil {
24097 return err
24098 }
24099 if x.NextPageToken == "" {
24100 return nil
24101 }
24102 c.PageToken(x.NextPageToken)
24103 }
24104 }
24105
24106 type ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall struct {
24107 s *Service
24108 servingConfig string
24109 googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
24110 urlParams_ gensupport.URLParams
24111 ctx_ context.Context
24112 header_ http.Header
24113 }
24114
24115
24116
24117
24118
24119
24120
24121
24122
24123 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
24124 c := &ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24125 c.servingConfig = servingConfig
24126 c.googleclouddiscoveryenginev1alphaanswerqueryrequest = googleclouddiscoveryenginev1alphaanswerqueryrequest
24127 return c
24128 }
24129
24130
24131
24132
24133 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
24134 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24135 return c
24136 }
24137
24138
24139 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall {
24140 c.ctx_ = ctx
24141 return c
24142 }
24143
24144
24145
24146 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Header() http.Header {
24147 if c.header_ == nil {
24148 c.header_ = make(http.Header)
24149 }
24150 return c.header_
24151 }
24152
24153 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
24154 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24155 var body io.Reader = nil
24156 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaanswerqueryrequest)
24157 if err != nil {
24158 return nil, err
24159 }
24160 c.urlParams_.Set("alt", alt)
24161 c.urlParams_.Set("prettyPrint", "false")
24162 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:answer")
24163 urls += "?" + c.urlParams_.Encode()
24164 req, err := http.NewRequest("POST", urls, body)
24165 if err != nil {
24166 return nil, err
24167 }
24168 req.Header = reqHeaders
24169 googleapi.Expand(req.URL, map[string]string{
24170 "servingConfig": c.servingConfig,
24171 })
24172 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24173 }
24174
24175
24176
24177
24178
24179
24180
24181 func (c *ProjectsLocationsCollectionsEnginesServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse, error) {
24182 gensupport.SetOptions(c.urlParams_, opts...)
24183 res, err := c.doRequest("json")
24184 if res != nil && res.StatusCode == http.StatusNotModified {
24185 if res.Body != nil {
24186 res.Body.Close()
24187 }
24188 return nil, gensupport.WrapError(&googleapi.Error{
24189 Code: res.StatusCode,
24190 Header: res.Header,
24191 })
24192 }
24193 if err != nil {
24194 return nil, err
24195 }
24196 defer googleapi.CloseBody(res)
24197 if err := googleapi.CheckResponse(res); err != nil {
24198 return nil, gensupport.WrapError(err)
24199 }
24200 ret := &GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse{
24201 ServerResponse: googleapi.ServerResponse{
24202 Header: res.Header,
24203 HTTPStatusCode: res.StatusCode,
24204 },
24205 }
24206 target := &ret
24207 if err := gensupport.DecodeResponse(target, res); err != nil {
24208 return nil, err
24209 }
24210 return ret, nil
24211 }
24212
24213 type ProjectsLocationsCollectionsEnginesServingConfigsGetCall struct {
24214 s *Service
24215 name string
24216 urlParams_ gensupport.URLParams
24217 ifNoneMatch_ string
24218 ctx_ context.Context
24219 header_ http.Header
24220 }
24221
24222
24223
24224
24225
24226
24227
24228 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Get(name string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
24229 c := &ProjectsLocationsCollectionsEnginesServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24230 c.name = name
24231 return c
24232 }
24233
24234
24235
24236
24237 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
24238 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24239 return c
24240 }
24241
24242
24243
24244
24245 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
24246 c.ifNoneMatch_ = entityTag
24247 return c
24248 }
24249
24250
24251 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsGetCall {
24252 c.ctx_ = ctx
24253 return c
24254 }
24255
24256
24257
24258 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Header() http.Header {
24259 if c.header_ == nil {
24260 c.header_ = make(http.Header)
24261 }
24262 return c.header_
24263 }
24264
24265 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
24266 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24267 if c.ifNoneMatch_ != "" {
24268 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24269 }
24270 var body io.Reader = nil
24271 c.urlParams_.Set("alt", alt)
24272 c.urlParams_.Set("prettyPrint", "false")
24273 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
24274 urls += "?" + c.urlParams_.Encode()
24275 req, err := http.NewRequest("GET", urls, body)
24276 if err != nil {
24277 return nil, err
24278 }
24279 req.Header = reqHeaders
24280 googleapi.Expand(req.URL, map[string]string{
24281 "name": c.name,
24282 })
24283 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24284 }
24285
24286
24287
24288
24289
24290
24291
24292 func (c *ProjectsLocationsCollectionsEnginesServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
24293 gensupport.SetOptions(c.urlParams_, opts...)
24294 res, err := c.doRequest("json")
24295 if res != nil && res.StatusCode == http.StatusNotModified {
24296 if res.Body != nil {
24297 res.Body.Close()
24298 }
24299 return nil, gensupport.WrapError(&googleapi.Error{
24300 Code: res.StatusCode,
24301 Header: res.Header,
24302 })
24303 }
24304 if err != nil {
24305 return nil, err
24306 }
24307 defer googleapi.CloseBody(res)
24308 if err := googleapi.CheckResponse(res); err != nil {
24309 return nil, gensupport.WrapError(err)
24310 }
24311 ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
24312 ServerResponse: googleapi.ServerResponse{
24313 Header: res.Header,
24314 HTTPStatusCode: res.StatusCode,
24315 },
24316 }
24317 target := &ret
24318 if err := gensupport.DecodeResponse(target, res); err != nil {
24319 return nil, err
24320 }
24321 return ret, nil
24322 }
24323
24324 type ProjectsLocationsCollectionsEnginesServingConfigsListCall struct {
24325 s *Service
24326 parent string
24327 urlParams_ gensupport.URLParams
24328 ifNoneMatch_ string
24329 ctx_ context.Context
24330 header_ http.Header
24331 }
24332
24333
24334
24335
24336
24337
24338 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) List(parent string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
24339 c := &ProjectsLocationsCollectionsEnginesServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24340 c.parent = parent
24341 return c
24342 }
24343
24344
24345
24346
24347 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
24348 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24349 return c
24350 }
24351
24352
24353
24354
24355 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
24356 c.urlParams_.Set("pageToken", pageToken)
24357 return c
24358 }
24359
24360
24361
24362
24363 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
24364 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24365 return c
24366 }
24367
24368
24369
24370
24371 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
24372 c.ifNoneMatch_ = entityTag
24373 return c
24374 }
24375
24376
24377 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsListCall {
24378 c.ctx_ = ctx
24379 return c
24380 }
24381
24382
24383
24384 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Header() http.Header {
24385 if c.header_ == nil {
24386 c.header_ = make(http.Header)
24387 }
24388 return c.header_
24389 }
24390
24391 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
24392 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24393 if c.ifNoneMatch_ != "" {
24394 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24395 }
24396 var body io.Reader = nil
24397 c.urlParams_.Set("alt", alt)
24398 c.urlParams_.Set("prettyPrint", "false")
24399 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/servingConfigs")
24400 urls += "?" + c.urlParams_.Encode()
24401 req, err := http.NewRequest("GET", urls, body)
24402 if err != nil {
24403 return nil, err
24404 }
24405 req.Header = reqHeaders
24406 googleapi.Expand(req.URL, map[string]string{
24407 "parent": c.parent,
24408 })
24409 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24410 }
24411
24412
24413
24414
24415
24416
24417
24418 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse, error) {
24419 gensupport.SetOptions(c.urlParams_, opts...)
24420 res, err := c.doRequest("json")
24421 if res != nil && res.StatusCode == http.StatusNotModified {
24422 if res.Body != nil {
24423 res.Body.Close()
24424 }
24425 return nil, gensupport.WrapError(&googleapi.Error{
24426 Code: res.StatusCode,
24427 Header: res.Header,
24428 })
24429 }
24430 if err != nil {
24431 return nil, err
24432 }
24433 defer googleapi.CloseBody(res)
24434 if err := googleapi.CheckResponse(res); err != nil {
24435 return nil, gensupport.WrapError(err)
24436 }
24437 ret := &GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse{
24438 ServerResponse: googleapi.ServerResponse{
24439 Header: res.Header,
24440 HTTPStatusCode: res.StatusCode,
24441 },
24442 }
24443 target := &ret
24444 if err := gensupport.DecodeResponse(target, res); err != nil {
24445 return nil, err
24446 }
24447 return ret, nil
24448 }
24449
24450
24451
24452
24453 func (c *ProjectsLocationsCollectionsEnginesServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) error) error {
24454 c.ctx_ = ctx
24455 defer c.PageToken(c.urlParams_.Get("pageToken"))
24456 for {
24457 x, err := c.Do()
24458 if err != nil {
24459 return err
24460 }
24461 if err := f(x); err != nil {
24462 return err
24463 }
24464 if x.NextPageToken == "" {
24465 return nil
24466 }
24467 c.PageToken(x.NextPageToken)
24468 }
24469 }
24470
24471 type ProjectsLocationsCollectionsEnginesServingConfigsPatchCall struct {
24472 s *Service
24473 name string
24474 googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig
24475 urlParams_ gensupport.URLParams
24476 ctx_ context.Context
24477 header_ http.Header
24478 }
24479
24480
24481
24482
24483
24484
24485
24486 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
24487 c := &ProjectsLocationsCollectionsEnginesServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24488 c.name = name
24489 c.googleclouddiscoveryenginev1alphaservingconfig = googleclouddiscoveryenginev1alphaservingconfig
24490 return c
24491 }
24492
24493
24494
24495
24496 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
24497 c.urlParams_.Set("updateMask", updateMask)
24498 return c
24499 }
24500
24501
24502
24503
24504 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
24505 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24506 return c
24507 }
24508
24509
24510 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall {
24511 c.ctx_ = ctx
24512 return c
24513 }
24514
24515
24516
24517 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Header() http.Header {
24518 if c.header_ == nil {
24519 c.header_ = make(http.Header)
24520 }
24521 return c.header_
24522 }
24523
24524 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
24525 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24526 var body io.Reader = nil
24527 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaservingconfig)
24528 if err != nil {
24529 return nil, err
24530 }
24531 c.urlParams_.Set("alt", alt)
24532 c.urlParams_.Set("prettyPrint", "false")
24533 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
24534 urls += "?" + c.urlParams_.Encode()
24535 req, err := http.NewRequest("PATCH", urls, body)
24536 if err != nil {
24537 return nil, err
24538 }
24539 req.Header = reqHeaders
24540 googleapi.Expand(req.URL, map[string]string{
24541 "name": c.name,
24542 })
24543 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24544 }
24545
24546
24547
24548
24549
24550
24551
24552 func (c *ProjectsLocationsCollectionsEnginesServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
24553 gensupport.SetOptions(c.urlParams_, opts...)
24554 res, err := c.doRequest("json")
24555 if res != nil && res.StatusCode == http.StatusNotModified {
24556 if res.Body != nil {
24557 res.Body.Close()
24558 }
24559 return nil, gensupport.WrapError(&googleapi.Error{
24560 Code: res.StatusCode,
24561 Header: res.Header,
24562 })
24563 }
24564 if err != nil {
24565 return nil, err
24566 }
24567 defer googleapi.CloseBody(res)
24568 if err := googleapi.CheckResponse(res); err != nil {
24569 return nil, gensupport.WrapError(err)
24570 }
24571 ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
24572 ServerResponse: googleapi.ServerResponse{
24573 Header: res.Header,
24574 HTTPStatusCode: res.StatusCode,
24575 },
24576 }
24577 target := &ret
24578 if err := gensupport.DecodeResponse(target, res); err != nil {
24579 return nil, err
24580 }
24581 return ret, nil
24582 }
24583
24584 type ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall struct {
24585 s *Service
24586 servingConfig string
24587 googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest
24588 urlParams_ gensupport.URLParams
24589 ctx_ context.Context
24590 header_ http.Header
24591 }
24592
24593
24594
24595
24596
24597
24598
24599
24600
24601
24602
24603
24604 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
24605 c := &ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24606 c.servingConfig = servingConfig
24607 c.googleclouddiscoveryenginev1alpharecommendrequest = googleclouddiscoveryenginev1alpharecommendrequest
24608 return c
24609 }
24610
24611
24612
24613
24614 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
24615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24616 return c
24617 }
24618
24619
24620 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall {
24621 c.ctx_ = ctx
24622 return c
24623 }
24624
24625
24626
24627 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Header() http.Header {
24628 if c.header_ == nil {
24629 c.header_ = make(http.Header)
24630 }
24631 return c.header_
24632 }
24633
24634 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
24635 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24636 var body io.Reader = nil
24637 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecommendrequest)
24638 if err != nil {
24639 return nil, err
24640 }
24641 c.urlParams_.Set("alt", alt)
24642 c.urlParams_.Set("prettyPrint", "false")
24643 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:recommend")
24644 urls += "?" + c.urlParams_.Encode()
24645 req, err := http.NewRequest("POST", urls, body)
24646 if err != nil {
24647 return nil, err
24648 }
24649 req.Header = reqHeaders
24650 googleapi.Expand(req.URL, map[string]string{
24651 "servingConfig": c.servingConfig,
24652 })
24653 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24654 }
24655
24656
24657
24658
24659
24660
24661
24662 func (c *ProjectsLocationsCollectionsEnginesServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRecommendResponse, error) {
24663 gensupport.SetOptions(c.urlParams_, opts...)
24664 res, err := c.doRequest("json")
24665 if res != nil && res.StatusCode == http.StatusNotModified {
24666 if res.Body != nil {
24667 res.Body.Close()
24668 }
24669 return nil, gensupport.WrapError(&googleapi.Error{
24670 Code: res.StatusCode,
24671 Header: res.Header,
24672 })
24673 }
24674 if err != nil {
24675 return nil, err
24676 }
24677 defer googleapi.CloseBody(res)
24678 if err := googleapi.CheckResponse(res); err != nil {
24679 return nil, gensupport.WrapError(err)
24680 }
24681 ret := &GoogleCloudDiscoveryengineV1alphaRecommendResponse{
24682 ServerResponse: googleapi.ServerResponse{
24683 Header: res.Header,
24684 HTTPStatusCode: res.StatusCode,
24685 },
24686 }
24687 target := &ret
24688 if err := gensupport.DecodeResponse(target, res); err != nil {
24689 return nil, err
24690 }
24691 return ret, nil
24692 }
24693
24694 type ProjectsLocationsCollectionsEnginesServingConfigsSearchCall struct {
24695 s *Service
24696 servingConfig string
24697 googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest
24698 urlParams_ gensupport.URLParams
24699 ctx_ context.Context
24700 header_ http.Header
24701 }
24702
24703
24704
24705
24706
24707
24708
24709
24710
24711
24712 func (r *ProjectsLocationsCollectionsEnginesServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
24713 c := &ProjectsLocationsCollectionsEnginesServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24714 c.servingConfig = servingConfig
24715 c.googleclouddiscoveryenginev1alphasearchrequest = googleclouddiscoveryenginev1alphasearchrequest
24716 return c
24717 }
24718
24719
24720
24721
24722 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
24723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24724 return c
24725 }
24726
24727
24728 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall {
24729 c.ctx_ = ctx
24730 return c
24731 }
24732
24733
24734
24735 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Header() http.Header {
24736 if c.header_ == nil {
24737 c.header_ = make(http.Header)
24738 }
24739 return c.header_
24740 }
24741
24742 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
24743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24744 var body io.Reader = nil
24745 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasearchrequest)
24746 if err != nil {
24747 return nil, err
24748 }
24749 c.urlParams_.Set("alt", alt)
24750 c.urlParams_.Set("prettyPrint", "false")
24751 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:search")
24752 urls += "?" + c.urlParams_.Encode()
24753 req, err := http.NewRequest("POST", urls, body)
24754 if err != nil {
24755 return nil, err
24756 }
24757 req.Header = reqHeaders
24758 googleapi.Expand(req.URL, map[string]string{
24759 "servingConfig": c.servingConfig,
24760 })
24761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24762 }
24763
24764
24765
24766
24767
24768
24769
24770 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSearchResponse, error) {
24771 gensupport.SetOptions(c.urlParams_, opts...)
24772 res, err := c.doRequest("json")
24773 if res != nil && res.StatusCode == http.StatusNotModified {
24774 if res.Body != nil {
24775 res.Body.Close()
24776 }
24777 return nil, gensupport.WrapError(&googleapi.Error{
24778 Code: res.StatusCode,
24779 Header: res.Header,
24780 })
24781 }
24782 if err != nil {
24783 return nil, err
24784 }
24785 defer googleapi.CloseBody(res)
24786 if err := googleapi.CheckResponse(res); err != nil {
24787 return nil, gensupport.WrapError(err)
24788 }
24789 ret := &GoogleCloudDiscoveryengineV1alphaSearchResponse{
24790 ServerResponse: googleapi.ServerResponse{
24791 Header: res.Header,
24792 HTTPStatusCode: res.StatusCode,
24793 },
24794 }
24795 target := &ret
24796 if err := gensupport.DecodeResponse(target, res); err != nil {
24797 return nil, err
24798 }
24799 return ret, nil
24800 }
24801
24802
24803
24804
24805 func (c *ProjectsLocationsCollectionsEnginesServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaSearchResponse) error) error {
24806 c.ctx_ = ctx
24807 defer func(pt string) { c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1alphasearchrequest.PageToken)
24808 for {
24809 x, err := c.Do()
24810 if err != nil {
24811 return err
24812 }
24813 if err := f(x); err != nil {
24814 return err
24815 }
24816 if x.NextPageToken == "" {
24817 return nil
24818 }
24819 c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = x.NextPageToken
24820 }
24821 }
24822
24823 type ProjectsLocationsCollectionsEnginesSessionsCreateCall struct {
24824 s *Service
24825 parent string
24826 googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
24827 urlParams_ gensupport.URLParams
24828 ctx_ context.Context
24829 header_ http.Header
24830 }
24831
24832
24833
24834
24835
24836
24837
24838 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Create(parent string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
24839 c := &ProjectsLocationsCollectionsEnginesSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24840 c.parent = parent
24841 c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
24842 return c
24843 }
24844
24845
24846
24847
24848 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
24849 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24850 return c
24851 }
24852
24853
24854 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsCreateCall {
24855 c.ctx_ = ctx
24856 return c
24857 }
24858
24859
24860
24861 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Header() http.Header {
24862 if c.header_ == nil {
24863 c.header_ = make(http.Header)
24864 }
24865 return c.header_
24866 }
24867
24868 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
24869 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24870 var body io.Reader = nil
24871 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
24872 if err != nil {
24873 return nil, err
24874 }
24875 c.urlParams_.Set("alt", alt)
24876 c.urlParams_.Set("prettyPrint", "false")
24877 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
24878 urls += "?" + c.urlParams_.Encode()
24879 req, err := http.NewRequest("POST", urls, body)
24880 if err != nil {
24881 return nil, err
24882 }
24883 req.Header = reqHeaders
24884 googleapi.Expand(req.URL, map[string]string{
24885 "parent": c.parent,
24886 })
24887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24888 }
24889
24890
24891
24892
24893
24894
24895
24896 func (c *ProjectsLocationsCollectionsEnginesSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
24897 gensupport.SetOptions(c.urlParams_, opts...)
24898 res, err := c.doRequest("json")
24899 if res != nil && res.StatusCode == http.StatusNotModified {
24900 if res.Body != nil {
24901 res.Body.Close()
24902 }
24903 return nil, gensupport.WrapError(&googleapi.Error{
24904 Code: res.StatusCode,
24905 Header: res.Header,
24906 })
24907 }
24908 if err != nil {
24909 return nil, err
24910 }
24911 defer googleapi.CloseBody(res)
24912 if err := googleapi.CheckResponse(res); err != nil {
24913 return nil, gensupport.WrapError(err)
24914 }
24915 ret := &GoogleCloudDiscoveryengineV1alphaSession{
24916 ServerResponse: googleapi.ServerResponse{
24917 Header: res.Header,
24918 HTTPStatusCode: res.StatusCode,
24919 },
24920 }
24921 target := &ret
24922 if err := gensupport.DecodeResponse(target, res); err != nil {
24923 return nil, err
24924 }
24925 return ret, nil
24926 }
24927
24928 type ProjectsLocationsCollectionsEnginesSessionsDeleteCall struct {
24929 s *Service
24930 name string
24931 urlParams_ gensupport.URLParams
24932 ctx_ context.Context
24933 header_ http.Header
24934 }
24935
24936
24937
24938
24939
24940
24941
24942 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Delete(name string) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
24943 c := &ProjectsLocationsCollectionsEnginesSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24944 c.name = name
24945 return c
24946 }
24947
24948
24949
24950
24951 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
24952 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24953 return c
24954 }
24955
24956
24957 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsDeleteCall {
24958 c.ctx_ = ctx
24959 return c
24960 }
24961
24962
24963
24964 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Header() http.Header {
24965 if c.header_ == nil {
24966 c.header_ = make(http.Header)
24967 }
24968 return c.header_
24969 }
24970
24971 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
24972 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24973 var body io.Reader = nil
24974 c.urlParams_.Set("alt", alt)
24975 c.urlParams_.Set("prettyPrint", "false")
24976 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
24977 urls += "?" + c.urlParams_.Encode()
24978 req, err := http.NewRequest("DELETE", urls, body)
24979 if err != nil {
24980 return nil, err
24981 }
24982 req.Header = reqHeaders
24983 googleapi.Expand(req.URL, map[string]string{
24984 "name": c.name,
24985 })
24986 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24987 }
24988
24989
24990
24991
24992
24993
24994
24995 func (c *ProjectsLocationsCollectionsEnginesSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24996 gensupport.SetOptions(c.urlParams_, opts...)
24997 res, err := c.doRequest("json")
24998 if res != nil && res.StatusCode == http.StatusNotModified {
24999 if res.Body != nil {
25000 res.Body.Close()
25001 }
25002 return nil, gensupport.WrapError(&googleapi.Error{
25003 Code: res.StatusCode,
25004 Header: res.Header,
25005 })
25006 }
25007 if err != nil {
25008 return nil, err
25009 }
25010 defer googleapi.CloseBody(res)
25011 if err := googleapi.CheckResponse(res); err != nil {
25012 return nil, gensupport.WrapError(err)
25013 }
25014 ret := &GoogleProtobufEmpty{
25015 ServerResponse: googleapi.ServerResponse{
25016 Header: res.Header,
25017 HTTPStatusCode: res.StatusCode,
25018 },
25019 }
25020 target := &ret
25021 if err := gensupport.DecodeResponse(target, res); err != nil {
25022 return nil, err
25023 }
25024 return ret, nil
25025 }
25026
25027 type ProjectsLocationsCollectionsEnginesSessionsGetCall struct {
25028 s *Service
25029 name string
25030 urlParams_ gensupport.URLParams
25031 ifNoneMatch_ string
25032 ctx_ context.Context
25033 header_ http.Header
25034 }
25035
25036
25037
25038
25039
25040
25041 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
25042 c := &ProjectsLocationsCollectionsEnginesSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25043 c.name = name
25044 return c
25045 }
25046
25047
25048
25049
25050 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
25051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25052 return c
25053 }
25054
25055
25056
25057
25058 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
25059 c.ifNoneMatch_ = entityTag
25060 return c
25061 }
25062
25063
25064 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsGetCall {
25065 c.ctx_ = ctx
25066 return c
25067 }
25068
25069
25070
25071 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Header() http.Header {
25072 if c.header_ == nil {
25073 c.header_ = make(http.Header)
25074 }
25075 return c.header_
25076 }
25077
25078 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) doRequest(alt string) (*http.Response, error) {
25079 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25080 if c.ifNoneMatch_ != "" {
25081 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25082 }
25083 var body io.Reader = nil
25084 c.urlParams_.Set("alt", alt)
25085 c.urlParams_.Set("prettyPrint", "false")
25086 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
25087 urls += "?" + c.urlParams_.Encode()
25088 req, err := http.NewRequest("GET", urls, body)
25089 if err != nil {
25090 return nil, err
25091 }
25092 req.Header = reqHeaders
25093 googleapi.Expand(req.URL, map[string]string{
25094 "name": c.name,
25095 })
25096 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25097 }
25098
25099
25100
25101
25102
25103
25104
25105 func (c *ProjectsLocationsCollectionsEnginesSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
25106 gensupport.SetOptions(c.urlParams_, opts...)
25107 res, err := c.doRequest("json")
25108 if res != nil && res.StatusCode == http.StatusNotModified {
25109 if res.Body != nil {
25110 res.Body.Close()
25111 }
25112 return nil, gensupport.WrapError(&googleapi.Error{
25113 Code: res.StatusCode,
25114 Header: res.Header,
25115 })
25116 }
25117 if err != nil {
25118 return nil, err
25119 }
25120 defer googleapi.CloseBody(res)
25121 if err := googleapi.CheckResponse(res); err != nil {
25122 return nil, gensupport.WrapError(err)
25123 }
25124 ret := &GoogleCloudDiscoveryengineV1alphaSession{
25125 ServerResponse: googleapi.ServerResponse{
25126 Header: res.Header,
25127 HTTPStatusCode: res.StatusCode,
25128 },
25129 }
25130 target := &ret
25131 if err := gensupport.DecodeResponse(target, res); err != nil {
25132 return nil, err
25133 }
25134 return ret, nil
25135 }
25136
25137 type ProjectsLocationsCollectionsEnginesSessionsListCall struct {
25138 s *Service
25139 parent string
25140 urlParams_ gensupport.URLParams
25141 ifNoneMatch_ string
25142 ctx_ context.Context
25143 header_ http.Header
25144 }
25145
25146
25147
25148
25149
25150
25151 func (r *ProjectsLocationsCollectionsEnginesSessionsService) List(parent string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25152 c := &ProjectsLocationsCollectionsEnginesSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25153 c.parent = parent
25154 return c
25155 }
25156
25157
25158
25159
25160 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Filter(filter string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25161 c.urlParams_.Set("filter", filter)
25162 return c
25163 }
25164
25165
25166
25167
25168
25169 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25170 c.urlParams_.Set("orderBy", orderBy)
25171 return c
25172 }
25173
25174
25175
25176 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25177 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25178 return c
25179 }
25180
25181
25182
25183
25184 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25185 c.urlParams_.Set("pageToken", pageToken)
25186 return c
25187 }
25188
25189
25190
25191
25192 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25193 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25194 return c
25195 }
25196
25197
25198
25199
25200 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25201 c.ifNoneMatch_ = entityTag
25202 return c
25203 }
25204
25205
25206 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsListCall {
25207 c.ctx_ = ctx
25208 return c
25209 }
25210
25211
25212
25213 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Header() http.Header {
25214 if c.header_ == nil {
25215 c.header_ = make(http.Header)
25216 }
25217 return c.header_
25218 }
25219
25220 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) doRequest(alt string) (*http.Response, error) {
25221 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25222 if c.ifNoneMatch_ != "" {
25223 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25224 }
25225 var body io.Reader = nil
25226 c.urlParams_.Set("alt", alt)
25227 c.urlParams_.Set("prettyPrint", "false")
25228 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
25229 urls += "?" + c.urlParams_.Encode()
25230 req, err := http.NewRequest("GET", urls, body)
25231 if err != nil {
25232 return nil, err
25233 }
25234 req.Header = reqHeaders
25235 googleapi.Expand(req.URL, map[string]string{
25236 "parent": c.parent,
25237 })
25238 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25239 }
25240
25241
25242
25243
25244
25245
25246
25247 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSessionsResponse, error) {
25248 gensupport.SetOptions(c.urlParams_, opts...)
25249 res, err := c.doRequest("json")
25250 if res != nil && res.StatusCode == http.StatusNotModified {
25251 if res.Body != nil {
25252 res.Body.Close()
25253 }
25254 return nil, gensupport.WrapError(&googleapi.Error{
25255 Code: res.StatusCode,
25256 Header: res.Header,
25257 })
25258 }
25259 if err != nil {
25260 return nil, err
25261 }
25262 defer googleapi.CloseBody(res)
25263 if err := googleapi.CheckResponse(res); err != nil {
25264 return nil, gensupport.WrapError(err)
25265 }
25266 ret := &GoogleCloudDiscoveryengineV1alphaListSessionsResponse{
25267 ServerResponse: googleapi.ServerResponse{
25268 Header: res.Header,
25269 HTTPStatusCode: res.StatusCode,
25270 },
25271 }
25272 target := &ret
25273 if err := gensupport.DecodeResponse(target, res); err != nil {
25274 return nil, err
25275 }
25276 return ret, nil
25277 }
25278
25279
25280
25281
25282 func (c *ProjectsLocationsCollectionsEnginesSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSessionsResponse) error) error {
25283 c.ctx_ = ctx
25284 defer c.PageToken(c.urlParams_.Get("pageToken"))
25285 for {
25286 x, err := c.Do()
25287 if err != nil {
25288 return err
25289 }
25290 if err := f(x); err != nil {
25291 return err
25292 }
25293 if x.NextPageToken == "" {
25294 return nil
25295 }
25296 c.PageToken(x.NextPageToken)
25297 }
25298 }
25299
25300 type ProjectsLocationsCollectionsEnginesSessionsPatchCall struct {
25301 s *Service
25302 name string
25303 googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
25304 urlParams_ gensupport.URLParams
25305 ctx_ context.Context
25306 header_ http.Header
25307 }
25308
25309
25310
25311
25312
25313
25314
25315 func (r *ProjectsLocationsCollectionsEnginesSessionsService) Patch(name string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
25316 c := &ProjectsLocationsCollectionsEnginesSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25317 c.name = name
25318 c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
25319 return c
25320 }
25321
25322
25323
25324
25325 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
25326 c.urlParams_.Set("updateMask", updateMask)
25327 return c
25328 }
25329
25330
25331
25332
25333 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
25334 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25335 return c
25336 }
25337
25338
25339 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsPatchCall {
25340 c.ctx_ = ctx
25341 return c
25342 }
25343
25344
25345
25346 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Header() http.Header {
25347 if c.header_ == nil {
25348 c.header_ = make(http.Header)
25349 }
25350 return c.header_
25351 }
25352
25353 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
25354 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25355 var body io.Reader = nil
25356 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
25357 if err != nil {
25358 return nil, err
25359 }
25360 c.urlParams_.Set("alt", alt)
25361 c.urlParams_.Set("prettyPrint", "false")
25362 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
25363 urls += "?" + c.urlParams_.Encode()
25364 req, err := http.NewRequest("PATCH", urls, body)
25365 if err != nil {
25366 return nil, err
25367 }
25368 req.Header = reqHeaders
25369 googleapi.Expand(req.URL, map[string]string{
25370 "name": c.name,
25371 })
25372 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25373 }
25374
25375
25376
25377
25378
25379
25380
25381 func (c *ProjectsLocationsCollectionsEnginesSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
25382 gensupport.SetOptions(c.urlParams_, opts...)
25383 res, err := c.doRequest("json")
25384 if res != nil && res.StatusCode == http.StatusNotModified {
25385 if res.Body != nil {
25386 res.Body.Close()
25387 }
25388 return nil, gensupport.WrapError(&googleapi.Error{
25389 Code: res.StatusCode,
25390 Header: res.Header,
25391 })
25392 }
25393 if err != nil {
25394 return nil, err
25395 }
25396 defer googleapi.CloseBody(res)
25397 if err := googleapi.CheckResponse(res); err != nil {
25398 return nil, gensupport.WrapError(err)
25399 }
25400 ret := &GoogleCloudDiscoveryengineV1alphaSession{
25401 ServerResponse: googleapi.ServerResponse{
25402 Header: res.Header,
25403 HTTPStatusCode: res.StatusCode,
25404 },
25405 }
25406 target := &ret
25407 if err := gensupport.DecodeResponse(target, res); err != nil {
25408 return nil, err
25409 }
25410 return ret, nil
25411 }
25412
25413 type ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall struct {
25414 s *Service
25415 name string
25416 urlParams_ gensupport.URLParams
25417 ifNoneMatch_ string
25418 ctx_ context.Context
25419 header_ http.Header
25420 }
25421
25422
25423
25424
25425
25426
25427 func (r *ProjectsLocationsCollectionsEnginesSessionsAnswersService) Get(name string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
25428 c := &ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25429 c.name = name
25430 return c
25431 }
25432
25433
25434
25435
25436 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
25437 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25438 return c
25439 }
25440
25441
25442
25443
25444 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
25445 c.ifNoneMatch_ = entityTag
25446 return c
25447 }
25448
25449
25450 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall {
25451 c.ctx_ = ctx
25452 return c
25453 }
25454
25455
25456
25457 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Header() http.Header {
25458 if c.header_ == nil {
25459 c.header_ = make(http.Header)
25460 }
25461 return c.header_
25462 }
25463
25464 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
25465 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25466 if c.ifNoneMatch_ != "" {
25467 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25468 }
25469 var body io.Reader = nil
25470 c.urlParams_.Set("alt", alt)
25471 c.urlParams_.Set("prettyPrint", "false")
25472 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
25473 urls += "?" + c.urlParams_.Encode()
25474 req, err := http.NewRequest("GET", urls, body)
25475 if err != nil {
25476 return nil, err
25477 }
25478 req.Header = reqHeaders
25479 googleapi.Expand(req.URL, map[string]string{
25480 "name": c.name,
25481 })
25482 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25483 }
25484
25485
25486
25487
25488
25489
25490
25491 func (c *ProjectsLocationsCollectionsEnginesSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswer, error) {
25492 gensupport.SetOptions(c.urlParams_, opts...)
25493 res, err := c.doRequest("json")
25494 if res != nil && res.StatusCode == http.StatusNotModified {
25495 if res.Body != nil {
25496 res.Body.Close()
25497 }
25498 return nil, gensupport.WrapError(&googleapi.Error{
25499 Code: res.StatusCode,
25500 Header: res.Header,
25501 })
25502 }
25503 if err != nil {
25504 return nil, err
25505 }
25506 defer googleapi.CloseBody(res)
25507 if err := googleapi.CheckResponse(res); err != nil {
25508 return nil, gensupport.WrapError(err)
25509 }
25510 ret := &GoogleCloudDiscoveryengineV1alphaAnswer{
25511 ServerResponse: googleapi.ServerResponse{
25512 Header: res.Header,
25513 HTTPStatusCode: res.StatusCode,
25514 },
25515 }
25516 target := &ret
25517 if err := gensupport.DecodeResponse(target, res); err != nil {
25518 return nil, err
25519 }
25520 return ret, nil
25521 }
25522
25523 type ProjectsLocationsCollectionsOperationsGetCall struct {
25524 s *Service
25525 name string
25526 urlParams_ gensupport.URLParams
25527 ifNoneMatch_ string
25528 ctx_ context.Context
25529 header_ http.Header
25530 }
25531
25532
25533
25534
25535
25536
25537 func (r *ProjectsLocationsCollectionsOperationsService) Get(name string) *ProjectsLocationsCollectionsOperationsGetCall {
25538 c := &ProjectsLocationsCollectionsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25539 c.name = name
25540 return c
25541 }
25542
25543
25544
25545
25546 func (c *ProjectsLocationsCollectionsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsGetCall {
25547 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25548 return c
25549 }
25550
25551
25552
25553
25554 func (c *ProjectsLocationsCollectionsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsGetCall {
25555 c.ifNoneMatch_ = entityTag
25556 return c
25557 }
25558
25559
25560 func (c *ProjectsLocationsCollectionsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsGetCall {
25561 c.ctx_ = ctx
25562 return c
25563 }
25564
25565
25566
25567 func (c *ProjectsLocationsCollectionsOperationsGetCall) Header() http.Header {
25568 if c.header_ == nil {
25569 c.header_ = make(http.Header)
25570 }
25571 return c.header_
25572 }
25573
25574 func (c *ProjectsLocationsCollectionsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
25575 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25576 if c.ifNoneMatch_ != "" {
25577 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25578 }
25579 var body io.Reader = nil
25580 c.urlParams_.Set("alt", alt)
25581 c.urlParams_.Set("prettyPrint", "false")
25582 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
25583 urls += "?" + c.urlParams_.Encode()
25584 req, err := http.NewRequest("GET", urls, body)
25585 if err != nil {
25586 return nil, err
25587 }
25588 req.Header = reqHeaders
25589 googleapi.Expand(req.URL, map[string]string{
25590 "name": c.name,
25591 })
25592 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25593 }
25594
25595
25596
25597
25598
25599
25600
25601 func (c *ProjectsLocationsCollectionsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25602 gensupport.SetOptions(c.urlParams_, opts...)
25603 res, err := c.doRequest("json")
25604 if res != nil && res.StatusCode == http.StatusNotModified {
25605 if res.Body != nil {
25606 res.Body.Close()
25607 }
25608 return nil, gensupport.WrapError(&googleapi.Error{
25609 Code: res.StatusCode,
25610 Header: res.Header,
25611 })
25612 }
25613 if err != nil {
25614 return nil, err
25615 }
25616 defer googleapi.CloseBody(res)
25617 if err := googleapi.CheckResponse(res); err != nil {
25618 return nil, gensupport.WrapError(err)
25619 }
25620 ret := &GoogleLongrunningOperation{
25621 ServerResponse: googleapi.ServerResponse{
25622 Header: res.Header,
25623 HTTPStatusCode: res.StatusCode,
25624 },
25625 }
25626 target := &ret
25627 if err := gensupport.DecodeResponse(target, res); err != nil {
25628 return nil, err
25629 }
25630 return ret, nil
25631 }
25632
25633 type ProjectsLocationsCollectionsOperationsListCall struct {
25634 s *Service
25635 name string
25636 urlParams_ gensupport.URLParams
25637 ifNoneMatch_ string
25638 ctx_ context.Context
25639 header_ http.Header
25640 }
25641
25642
25643
25644
25645
25646 func (r *ProjectsLocationsCollectionsOperationsService) List(name string) *ProjectsLocationsCollectionsOperationsListCall {
25647 c := &ProjectsLocationsCollectionsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25648 c.name = name
25649 return c
25650 }
25651
25652
25653 func (c *ProjectsLocationsCollectionsOperationsListCall) Filter(filter string) *ProjectsLocationsCollectionsOperationsListCall {
25654 c.urlParams_.Set("filter", filter)
25655 return c
25656 }
25657
25658
25659
25660 func (c *ProjectsLocationsCollectionsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsCollectionsOperationsListCall {
25661 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25662 return c
25663 }
25664
25665
25666
25667 func (c *ProjectsLocationsCollectionsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsCollectionsOperationsListCall {
25668 c.urlParams_.Set("pageToken", pageToken)
25669 return c
25670 }
25671
25672
25673
25674
25675 func (c *ProjectsLocationsCollectionsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsCollectionsOperationsListCall {
25676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25677 return c
25678 }
25679
25680
25681
25682
25683 func (c *ProjectsLocationsCollectionsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsCollectionsOperationsListCall {
25684 c.ifNoneMatch_ = entityTag
25685 return c
25686 }
25687
25688
25689 func (c *ProjectsLocationsCollectionsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsCollectionsOperationsListCall {
25690 c.ctx_ = ctx
25691 return c
25692 }
25693
25694
25695
25696 func (c *ProjectsLocationsCollectionsOperationsListCall) Header() http.Header {
25697 if c.header_ == nil {
25698 c.header_ = make(http.Header)
25699 }
25700 return c.header_
25701 }
25702
25703 func (c *ProjectsLocationsCollectionsOperationsListCall) doRequest(alt string) (*http.Response, error) {
25704 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25705 if c.ifNoneMatch_ != "" {
25706 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25707 }
25708 var body io.Reader = nil
25709 c.urlParams_.Set("alt", alt)
25710 c.urlParams_.Set("prettyPrint", "false")
25711 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
25712 urls += "?" + c.urlParams_.Encode()
25713 req, err := http.NewRequest("GET", urls, body)
25714 if err != nil {
25715 return nil, err
25716 }
25717 req.Header = reqHeaders
25718 googleapi.Expand(req.URL, map[string]string{
25719 "name": c.name,
25720 })
25721 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25722 }
25723
25724
25725
25726
25727
25728
25729
25730 func (c *ProjectsLocationsCollectionsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
25731 gensupport.SetOptions(c.urlParams_, opts...)
25732 res, err := c.doRequest("json")
25733 if res != nil && res.StatusCode == http.StatusNotModified {
25734 if res.Body != nil {
25735 res.Body.Close()
25736 }
25737 return nil, gensupport.WrapError(&googleapi.Error{
25738 Code: res.StatusCode,
25739 Header: res.Header,
25740 })
25741 }
25742 if err != nil {
25743 return nil, err
25744 }
25745 defer googleapi.CloseBody(res)
25746 if err := googleapi.CheckResponse(res); err != nil {
25747 return nil, gensupport.WrapError(err)
25748 }
25749 ret := &GoogleLongrunningListOperationsResponse{
25750 ServerResponse: googleapi.ServerResponse{
25751 Header: res.Header,
25752 HTTPStatusCode: res.StatusCode,
25753 },
25754 }
25755 target := &ret
25756 if err := gensupport.DecodeResponse(target, res); err != nil {
25757 return nil, err
25758 }
25759 return ret, nil
25760 }
25761
25762
25763
25764
25765 func (c *ProjectsLocationsCollectionsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
25766 c.ctx_ = ctx
25767 defer c.PageToken(c.urlParams_.Get("pageToken"))
25768 for {
25769 x, err := c.Do()
25770 if err != nil {
25771 return err
25772 }
25773 if err := f(x); err != nil {
25774 return err
25775 }
25776 if x.NextPageToken == "" {
25777 return nil
25778 }
25779 c.PageToken(x.NextPageToken)
25780 }
25781 }
25782
25783 type ProjectsLocationsDataStoresCompleteQueryCall struct {
25784 s *Service
25785 dataStore string
25786 urlParams_ gensupport.URLParams
25787 ifNoneMatch_ string
25788 ctx_ context.Context
25789 header_ http.Header
25790 }
25791
25792
25793
25794
25795
25796
25797
25798 func (r *ProjectsLocationsDataStoresService) CompleteQuery(dataStore string) *ProjectsLocationsDataStoresCompleteQueryCall {
25799 c := &ProjectsLocationsDataStoresCompleteQueryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25800 c.dataStore = dataStore
25801 return c
25802 }
25803
25804
25805
25806
25807
25808
25809 func (c *ProjectsLocationsDataStoresCompleteQueryCall) IncludeTailSuggestions(includeTailSuggestions bool) *ProjectsLocationsDataStoresCompleteQueryCall {
25810 c.urlParams_.Set("includeTailSuggestions", fmt.Sprint(includeTailSuggestions))
25811 return c
25812 }
25813
25814
25815
25816 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Query(query string) *ProjectsLocationsDataStoresCompleteQueryCall {
25817 c.urlParams_.Set("query", query)
25818 return c
25819 }
25820
25821
25822
25823
25824
25825
25826
25827
25828
25829
25830
25831
25832
25833 func (c *ProjectsLocationsDataStoresCompleteQueryCall) QueryModel(queryModel string) *ProjectsLocationsDataStoresCompleteQueryCall {
25834 c.urlParams_.Set("queryModel", queryModel)
25835 return c
25836 }
25837
25838
25839
25840
25841
25842
25843
25844
25845
25846
25847 func (c *ProjectsLocationsDataStoresCompleteQueryCall) UserPseudoId(userPseudoId string) *ProjectsLocationsDataStoresCompleteQueryCall {
25848 c.urlParams_.Set("userPseudoId", userPseudoId)
25849 return c
25850 }
25851
25852
25853
25854
25855 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCompleteQueryCall {
25856 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25857 return c
25858 }
25859
25860
25861
25862
25863 func (c *ProjectsLocationsDataStoresCompleteQueryCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresCompleteQueryCall {
25864 c.ifNoneMatch_ = entityTag
25865 return c
25866 }
25867
25868
25869 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCompleteQueryCall {
25870 c.ctx_ = ctx
25871 return c
25872 }
25873
25874
25875
25876 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Header() http.Header {
25877 if c.header_ == nil {
25878 c.header_ = make(http.Header)
25879 }
25880 return c.header_
25881 }
25882
25883 func (c *ProjectsLocationsDataStoresCompleteQueryCall) doRequest(alt string) (*http.Response, error) {
25884 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25885 if c.ifNoneMatch_ != "" {
25886 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25887 }
25888 var body io.Reader = nil
25889 c.urlParams_.Set("alt", alt)
25890 c.urlParams_.Set("prettyPrint", "false")
25891 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+dataStore}:completeQuery")
25892 urls += "?" + c.urlParams_.Encode()
25893 req, err := http.NewRequest("GET", urls, body)
25894 if err != nil {
25895 return nil, err
25896 }
25897 req.Header = reqHeaders
25898 googleapi.Expand(req.URL, map[string]string{
25899 "dataStore": c.dataStore,
25900 })
25901 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25902 }
25903
25904
25905
25906
25907
25908
25909
25910
25911
25912 func (c *ProjectsLocationsDataStoresCompleteQueryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse, error) {
25913 gensupport.SetOptions(c.urlParams_, opts...)
25914 res, err := c.doRequest("json")
25915 if res != nil && res.StatusCode == http.StatusNotModified {
25916 if res.Body != nil {
25917 res.Body.Close()
25918 }
25919 return nil, gensupport.WrapError(&googleapi.Error{
25920 Code: res.StatusCode,
25921 Header: res.Header,
25922 })
25923 }
25924 if err != nil {
25925 return nil, err
25926 }
25927 defer googleapi.CloseBody(res)
25928 if err := googleapi.CheckResponse(res); err != nil {
25929 return nil, gensupport.WrapError(err)
25930 }
25931 ret := &GoogleCloudDiscoveryengineV1alphaCompleteQueryResponse{
25932 ServerResponse: googleapi.ServerResponse{
25933 Header: res.Header,
25934 HTTPStatusCode: res.StatusCode,
25935 },
25936 }
25937 target := &ret
25938 if err := gensupport.DecodeResponse(target, res); err != nil {
25939 return nil, err
25940 }
25941 return ret, nil
25942 }
25943
25944 type ProjectsLocationsDataStoresCreateCall struct {
25945 s *Service
25946 parent string
25947 googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
25948 urlParams_ gensupport.URLParams
25949 ctx_ context.Context
25950 header_ http.Header
25951 }
25952
25953
25954
25955
25956
25957
25958
25959 func (r *ProjectsLocationsDataStoresService) Create(parent string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsDataStoresCreateCall {
25960 c := &ProjectsLocationsDataStoresCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25961 c.parent = parent
25962 c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
25963 return c
25964 }
25965
25966
25967
25968
25969
25970
25971 func (c *ProjectsLocationsDataStoresCreateCall) CreateAdvancedSiteSearch(createAdvancedSiteSearch bool) *ProjectsLocationsDataStoresCreateCall {
25972 c.urlParams_.Set("createAdvancedSiteSearch", fmt.Sprint(createAdvancedSiteSearch))
25973 return c
25974 }
25975
25976
25977
25978
25979
25980
25981 func (c *ProjectsLocationsDataStoresCreateCall) DataStoreId(dataStoreId string) *ProjectsLocationsDataStoresCreateCall {
25982 c.urlParams_.Set("dataStoreId", dataStoreId)
25983 return c
25984 }
25985
25986
25987
25988
25989 func (c *ProjectsLocationsDataStoresCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresCreateCall {
25990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25991 return c
25992 }
25993
25994
25995 func (c *ProjectsLocationsDataStoresCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresCreateCall {
25996 c.ctx_ = ctx
25997 return c
25998 }
25999
26000
26001
26002 func (c *ProjectsLocationsDataStoresCreateCall) Header() http.Header {
26003 if c.header_ == nil {
26004 c.header_ = make(http.Header)
26005 }
26006 return c.header_
26007 }
26008
26009 func (c *ProjectsLocationsDataStoresCreateCall) doRequest(alt string) (*http.Response, error) {
26010 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26011 var body io.Reader = nil
26012 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
26013 if err != nil {
26014 return nil, err
26015 }
26016 c.urlParams_.Set("alt", alt)
26017 c.urlParams_.Set("prettyPrint", "false")
26018 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
26019 urls += "?" + c.urlParams_.Encode()
26020 req, err := http.NewRequest("POST", urls, body)
26021 if err != nil {
26022 return nil, err
26023 }
26024 req.Header = reqHeaders
26025 googleapi.Expand(req.URL, map[string]string{
26026 "parent": c.parent,
26027 })
26028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26029 }
26030
26031
26032
26033
26034
26035
26036
26037 func (c *ProjectsLocationsDataStoresCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26038 gensupport.SetOptions(c.urlParams_, opts...)
26039 res, err := c.doRequest("json")
26040 if res != nil && res.StatusCode == http.StatusNotModified {
26041 if res.Body != nil {
26042 res.Body.Close()
26043 }
26044 return nil, gensupport.WrapError(&googleapi.Error{
26045 Code: res.StatusCode,
26046 Header: res.Header,
26047 })
26048 }
26049 if err != nil {
26050 return nil, err
26051 }
26052 defer googleapi.CloseBody(res)
26053 if err := googleapi.CheckResponse(res); err != nil {
26054 return nil, gensupport.WrapError(err)
26055 }
26056 ret := &GoogleLongrunningOperation{
26057 ServerResponse: googleapi.ServerResponse{
26058 Header: res.Header,
26059 HTTPStatusCode: res.StatusCode,
26060 },
26061 }
26062 target := &ret
26063 if err := gensupport.DecodeResponse(target, res); err != nil {
26064 return nil, err
26065 }
26066 return ret, nil
26067 }
26068
26069 type ProjectsLocationsDataStoresDeleteCall struct {
26070 s *Service
26071 name string
26072 urlParams_ gensupport.URLParams
26073 ctx_ context.Context
26074 header_ http.Header
26075 }
26076
26077
26078
26079
26080
26081
26082
26083
26084
26085 func (r *ProjectsLocationsDataStoresService) Delete(name string) *ProjectsLocationsDataStoresDeleteCall {
26086 c := &ProjectsLocationsDataStoresDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26087 c.name = name
26088 return c
26089 }
26090
26091
26092
26093
26094 func (c *ProjectsLocationsDataStoresDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresDeleteCall {
26095 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26096 return c
26097 }
26098
26099
26100 func (c *ProjectsLocationsDataStoresDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresDeleteCall {
26101 c.ctx_ = ctx
26102 return c
26103 }
26104
26105
26106
26107 func (c *ProjectsLocationsDataStoresDeleteCall) Header() http.Header {
26108 if c.header_ == nil {
26109 c.header_ = make(http.Header)
26110 }
26111 return c.header_
26112 }
26113
26114 func (c *ProjectsLocationsDataStoresDeleteCall) doRequest(alt string) (*http.Response, error) {
26115 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26116 var body io.Reader = nil
26117 c.urlParams_.Set("alt", alt)
26118 c.urlParams_.Set("prettyPrint", "false")
26119 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
26120 urls += "?" + c.urlParams_.Encode()
26121 req, err := http.NewRequest("DELETE", urls, body)
26122 if err != nil {
26123 return nil, err
26124 }
26125 req.Header = reqHeaders
26126 googleapi.Expand(req.URL, map[string]string{
26127 "name": c.name,
26128 })
26129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26130 }
26131
26132
26133
26134
26135
26136
26137
26138 func (c *ProjectsLocationsDataStoresDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26139 gensupport.SetOptions(c.urlParams_, opts...)
26140 res, err := c.doRequest("json")
26141 if res != nil && res.StatusCode == http.StatusNotModified {
26142 if res.Body != nil {
26143 res.Body.Close()
26144 }
26145 return nil, gensupport.WrapError(&googleapi.Error{
26146 Code: res.StatusCode,
26147 Header: res.Header,
26148 })
26149 }
26150 if err != nil {
26151 return nil, err
26152 }
26153 defer googleapi.CloseBody(res)
26154 if err := googleapi.CheckResponse(res); err != nil {
26155 return nil, gensupport.WrapError(err)
26156 }
26157 ret := &GoogleLongrunningOperation{
26158 ServerResponse: googleapi.ServerResponse{
26159 Header: res.Header,
26160 HTTPStatusCode: res.StatusCode,
26161 },
26162 }
26163 target := &ret
26164 if err := gensupport.DecodeResponse(target, res); err != nil {
26165 return nil, err
26166 }
26167 return ret, nil
26168 }
26169
26170 type ProjectsLocationsDataStoresGetCall struct {
26171 s *Service
26172 name string
26173 urlParams_ gensupport.URLParams
26174 ifNoneMatch_ string
26175 ctx_ context.Context
26176 header_ http.Header
26177 }
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187 func (r *ProjectsLocationsDataStoresService) Get(name string) *ProjectsLocationsDataStoresGetCall {
26188 c := &ProjectsLocationsDataStoresGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26189 c.name = name
26190 return c
26191 }
26192
26193
26194
26195
26196 func (c *ProjectsLocationsDataStoresGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetCall {
26197 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26198 return c
26199 }
26200
26201
26202
26203
26204 func (c *ProjectsLocationsDataStoresGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetCall {
26205 c.ifNoneMatch_ = entityTag
26206 return c
26207 }
26208
26209
26210 func (c *ProjectsLocationsDataStoresGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetCall {
26211 c.ctx_ = ctx
26212 return c
26213 }
26214
26215
26216
26217 func (c *ProjectsLocationsDataStoresGetCall) Header() http.Header {
26218 if c.header_ == nil {
26219 c.header_ = make(http.Header)
26220 }
26221 return c.header_
26222 }
26223
26224 func (c *ProjectsLocationsDataStoresGetCall) doRequest(alt string) (*http.Response, error) {
26225 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26226 if c.ifNoneMatch_ != "" {
26227 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26228 }
26229 var body io.Reader = nil
26230 c.urlParams_.Set("alt", alt)
26231 c.urlParams_.Set("prettyPrint", "false")
26232 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
26233 urls += "?" + c.urlParams_.Encode()
26234 req, err := http.NewRequest("GET", urls, body)
26235 if err != nil {
26236 return nil, err
26237 }
26238 req.Header = reqHeaders
26239 googleapi.Expand(req.URL, map[string]string{
26240 "name": c.name,
26241 })
26242 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26243 }
26244
26245
26246
26247
26248
26249
26250
26251 func (c *ProjectsLocationsDataStoresGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
26252 gensupport.SetOptions(c.urlParams_, opts...)
26253 res, err := c.doRequest("json")
26254 if res != nil && res.StatusCode == http.StatusNotModified {
26255 if res.Body != nil {
26256 res.Body.Close()
26257 }
26258 return nil, gensupport.WrapError(&googleapi.Error{
26259 Code: res.StatusCode,
26260 Header: res.Header,
26261 })
26262 }
26263 if err != nil {
26264 return nil, err
26265 }
26266 defer googleapi.CloseBody(res)
26267 if err := googleapi.CheckResponse(res); err != nil {
26268 return nil, gensupport.WrapError(err)
26269 }
26270 ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
26271 ServerResponse: googleapi.ServerResponse{
26272 Header: res.Header,
26273 HTTPStatusCode: res.StatusCode,
26274 },
26275 }
26276 target := &ret
26277 if err := gensupport.DecodeResponse(target, res); err != nil {
26278 return nil, err
26279 }
26280 return ret, nil
26281 }
26282
26283 type ProjectsLocationsDataStoresGetDocumentProcessingConfigCall struct {
26284 s *Service
26285 name string
26286 urlParams_ gensupport.URLParams
26287 ifNoneMatch_ string
26288 ctx_ context.Context
26289 header_ http.Header
26290 }
26291
26292
26293
26294
26295
26296
26297 func (r *ProjectsLocationsDataStoresService) GetDocumentProcessingConfig(name string) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
26298 c := &ProjectsLocationsDataStoresGetDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26299 c.name = name
26300 return c
26301 }
26302
26303
26304
26305
26306 func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
26307 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26308 return c
26309 }
26310
26311
26312
26313
26314 func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
26315 c.ifNoneMatch_ = entityTag
26316 return c
26317 }
26318
26319
26320 func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall {
26321 c.ctx_ = ctx
26322 return c
26323 }
26324
26325
26326
26327 func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Header() http.Header {
26328 if c.header_ == nil {
26329 c.header_ = make(http.Header)
26330 }
26331 return c.header_
26332 }
26333
26334 func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
26335 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26336 if c.ifNoneMatch_ != "" {
26337 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26338 }
26339 var body io.Reader = nil
26340 c.urlParams_.Set("alt", alt)
26341 c.urlParams_.Set("prettyPrint", "false")
26342 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
26343 urls += "?" + c.urlParams_.Encode()
26344 req, err := http.NewRequest("GET", urls, body)
26345 if err != nil {
26346 return nil, err
26347 }
26348 req.Header = reqHeaders
26349 googleapi.Expand(req.URL, map[string]string{
26350 "name": c.name,
26351 })
26352 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26353 }
26354
26355
26356
26357
26358
26359
26360
26361 func (c *ProjectsLocationsDataStoresGetDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
26362 gensupport.SetOptions(c.urlParams_, opts...)
26363 res, err := c.doRequest("json")
26364 if res != nil && res.StatusCode == http.StatusNotModified {
26365 if res.Body != nil {
26366 res.Body.Close()
26367 }
26368 return nil, gensupport.WrapError(&googleapi.Error{
26369 Code: res.StatusCode,
26370 Header: res.Header,
26371 })
26372 }
26373 if err != nil {
26374 return nil, err
26375 }
26376 defer googleapi.CloseBody(res)
26377 if err := googleapi.CheckResponse(res); err != nil {
26378 return nil, gensupport.WrapError(err)
26379 }
26380 ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
26381 ServerResponse: googleapi.ServerResponse{
26382 Header: res.Header,
26383 HTTPStatusCode: res.StatusCode,
26384 },
26385 }
26386 target := &ret
26387 if err := gensupport.DecodeResponse(target, res); err != nil {
26388 return nil, err
26389 }
26390 return ret, nil
26391 }
26392
26393 type ProjectsLocationsDataStoresGetSiteSearchEngineCall struct {
26394 s *Service
26395 name string
26396 urlParams_ gensupport.URLParams
26397 ifNoneMatch_ string
26398 ctx_ context.Context
26399 header_ http.Header
26400 }
26401
26402
26403
26404
26405
26406
26407
26408
26409 func (r *ProjectsLocationsDataStoresService) GetSiteSearchEngine(name string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
26410 c := &ProjectsLocationsDataStoresGetSiteSearchEngineCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26411 c.name = name
26412 return c
26413 }
26414
26415
26416
26417
26418 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
26419 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26420 return c
26421 }
26422
26423
26424
26425
26426 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
26427 c.ifNoneMatch_ = entityTag
26428 return c
26429 }
26430
26431
26432 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Context(ctx context.Context) *ProjectsLocationsDataStoresGetSiteSearchEngineCall {
26433 c.ctx_ = ctx
26434 return c
26435 }
26436
26437
26438
26439 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Header() http.Header {
26440 if c.header_ == nil {
26441 c.header_ = make(http.Header)
26442 }
26443 return c.header_
26444 }
26445
26446 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) doRequest(alt string) (*http.Response, error) {
26447 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26448 if c.ifNoneMatch_ != "" {
26449 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26450 }
26451 var body io.Reader = nil
26452 c.urlParams_.Set("alt", alt)
26453 c.urlParams_.Set("prettyPrint", "false")
26454 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
26455 urls += "?" + c.urlParams_.Encode()
26456 req, err := http.NewRequest("GET", urls, body)
26457 if err != nil {
26458 return nil, err
26459 }
26460 req.Header = reqHeaders
26461 googleapi.Expand(req.URL, map[string]string{
26462 "name": c.name,
26463 })
26464 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26465 }
26466
26467
26468
26469
26470
26471
26472
26473 func (c *ProjectsLocationsDataStoresGetSiteSearchEngineCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSiteSearchEngine, error) {
26474 gensupport.SetOptions(c.urlParams_, opts...)
26475 res, err := c.doRequest("json")
26476 if res != nil && res.StatusCode == http.StatusNotModified {
26477 if res.Body != nil {
26478 res.Body.Close()
26479 }
26480 return nil, gensupport.WrapError(&googleapi.Error{
26481 Code: res.StatusCode,
26482 Header: res.Header,
26483 })
26484 }
26485 if err != nil {
26486 return nil, err
26487 }
26488 defer googleapi.CloseBody(res)
26489 if err := googleapi.CheckResponse(res); err != nil {
26490 return nil, gensupport.WrapError(err)
26491 }
26492 ret := &GoogleCloudDiscoveryengineV1alphaSiteSearchEngine{
26493 ServerResponse: googleapi.ServerResponse{
26494 Header: res.Header,
26495 HTTPStatusCode: res.StatusCode,
26496 },
26497 }
26498 target := &ret
26499 if err := gensupport.DecodeResponse(target, res); err != nil {
26500 return nil, err
26501 }
26502 return ret, nil
26503 }
26504
26505 type ProjectsLocationsDataStoresListCall struct {
26506 s *Service
26507 parent string
26508 urlParams_ gensupport.URLParams
26509 ifNoneMatch_ string
26510 ctx_ context.Context
26511 header_ http.Header
26512 }
26513
26514
26515
26516
26517
26518
26519
26520
26521 func (r *ProjectsLocationsDataStoresService) List(parent string) *ProjectsLocationsDataStoresListCall {
26522 c := &ProjectsLocationsDataStoresListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26523 c.parent = parent
26524 return c
26525 }
26526
26527
26528
26529 func (c *ProjectsLocationsDataStoresListCall) Filter(filter string) *ProjectsLocationsDataStoresListCall {
26530 c.urlParams_.Set("filter", filter)
26531 return c
26532 }
26533
26534
26535
26536
26537
26538 func (c *ProjectsLocationsDataStoresListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresListCall {
26539 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26540 return c
26541 }
26542
26543
26544
26545
26546
26547
26548
26549 func (c *ProjectsLocationsDataStoresListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresListCall {
26550 c.urlParams_.Set("pageToken", pageToken)
26551 return c
26552 }
26553
26554
26555
26556
26557 func (c *ProjectsLocationsDataStoresListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresListCall {
26558 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26559 return c
26560 }
26561
26562
26563
26564
26565 func (c *ProjectsLocationsDataStoresListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresListCall {
26566 c.ifNoneMatch_ = entityTag
26567 return c
26568 }
26569
26570
26571 func (c *ProjectsLocationsDataStoresListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresListCall {
26572 c.ctx_ = ctx
26573 return c
26574 }
26575
26576
26577
26578 func (c *ProjectsLocationsDataStoresListCall) Header() http.Header {
26579 if c.header_ == nil {
26580 c.header_ = make(http.Header)
26581 }
26582 return c.header_
26583 }
26584
26585 func (c *ProjectsLocationsDataStoresListCall) doRequest(alt string) (*http.Response, error) {
26586 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26587 if c.ifNoneMatch_ != "" {
26588 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26589 }
26590 var body io.Reader = nil
26591 c.urlParams_.Set("alt", alt)
26592 c.urlParams_.Set("prettyPrint", "false")
26593 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/dataStores")
26594 urls += "?" + c.urlParams_.Encode()
26595 req, err := http.NewRequest("GET", urls, body)
26596 if err != nil {
26597 return nil, err
26598 }
26599 req.Header = reqHeaders
26600 googleapi.Expand(req.URL, map[string]string{
26601 "parent": c.parent,
26602 })
26603 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26604 }
26605
26606
26607
26608
26609
26610
26611
26612 func (c *ProjectsLocationsDataStoresListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse, error) {
26613 gensupport.SetOptions(c.urlParams_, opts...)
26614 res, err := c.doRequest("json")
26615 if res != nil && res.StatusCode == http.StatusNotModified {
26616 if res.Body != nil {
26617 res.Body.Close()
26618 }
26619 return nil, gensupport.WrapError(&googleapi.Error{
26620 Code: res.StatusCode,
26621 Header: res.Header,
26622 })
26623 }
26624 if err != nil {
26625 return nil, err
26626 }
26627 defer googleapi.CloseBody(res)
26628 if err := googleapi.CheckResponse(res); err != nil {
26629 return nil, gensupport.WrapError(err)
26630 }
26631 ret := &GoogleCloudDiscoveryengineV1alphaListDataStoresResponse{
26632 ServerResponse: googleapi.ServerResponse{
26633 Header: res.Header,
26634 HTTPStatusCode: res.StatusCode,
26635 },
26636 }
26637 target := &ret
26638 if err := gensupport.DecodeResponse(target, res); err != nil {
26639 return nil, err
26640 }
26641 return ret, nil
26642 }
26643
26644
26645
26646
26647 func (c *ProjectsLocationsDataStoresListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDataStoresResponse) error) error {
26648 c.ctx_ = ctx
26649 defer c.PageToken(c.urlParams_.Get("pageToken"))
26650 for {
26651 x, err := c.Do()
26652 if err != nil {
26653 return err
26654 }
26655 if err := f(x); err != nil {
26656 return err
26657 }
26658 if x.NextPageToken == "" {
26659 return nil
26660 }
26661 c.PageToken(x.NextPageToken)
26662 }
26663 }
26664
26665 type ProjectsLocationsDataStoresPatchCall struct {
26666 s *Service
26667 name string
26668 googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore
26669 urlParams_ gensupport.URLParams
26670 ctx_ context.Context
26671 header_ http.Header
26672 }
26673
26674
26675
26676
26677
26678
26679
26680 func (r *ProjectsLocationsDataStoresService) Patch(name string, googleclouddiscoveryenginev1alphadatastore *GoogleCloudDiscoveryengineV1alphaDataStore) *ProjectsLocationsDataStoresPatchCall {
26681 c := &ProjectsLocationsDataStoresPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26682 c.name = name
26683 c.googleclouddiscoveryenginev1alphadatastore = googleclouddiscoveryenginev1alphadatastore
26684 return c
26685 }
26686
26687
26688
26689
26690 func (c *ProjectsLocationsDataStoresPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresPatchCall {
26691 c.urlParams_.Set("updateMask", updateMask)
26692 return c
26693 }
26694
26695
26696
26697
26698 func (c *ProjectsLocationsDataStoresPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresPatchCall {
26699 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26700 return c
26701 }
26702
26703
26704 func (c *ProjectsLocationsDataStoresPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresPatchCall {
26705 c.ctx_ = ctx
26706 return c
26707 }
26708
26709
26710
26711 func (c *ProjectsLocationsDataStoresPatchCall) Header() http.Header {
26712 if c.header_ == nil {
26713 c.header_ = make(http.Header)
26714 }
26715 return c.header_
26716 }
26717
26718 func (c *ProjectsLocationsDataStoresPatchCall) doRequest(alt string) (*http.Response, error) {
26719 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26720 var body io.Reader = nil
26721 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadatastore)
26722 if err != nil {
26723 return nil, err
26724 }
26725 c.urlParams_.Set("alt", alt)
26726 c.urlParams_.Set("prettyPrint", "false")
26727 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
26728 urls += "?" + c.urlParams_.Encode()
26729 req, err := http.NewRequest("PATCH", urls, body)
26730 if err != nil {
26731 return nil, err
26732 }
26733 req.Header = reqHeaders
26734 googleapi.Expand(req.URL, map[string]string{
26735 "name": c.name,
26736 })
26737 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26738 }
26739
26740
26741
26742
26743
26744
26745
26746 func (c *ProjectsLocationsDataStoresPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDataStore, error) {
26747 gensupport.SetOptions(c.urlParams_, opts...)
26748 res, err := c.doRequest("json")
26749 if res != nil && res.StatusCode == http.StatusNotModified {
26750 if res.Body != nil {
26751 res.Body.Close()
26752 }
26753 return nil, gensupport.WrapError(&googleapi.Error{
26754 Code: res.StatusCode,
26755 Header: res.Header,
26756 })
26757 }
26758 if err != nil {
26759 return nil, err
26760 }
26761 defer googleapi.CloseBody(res)
26762 if err := googleapi.CheckResponse(res); err != nil {
26763 return nil, gensupport.WrapError(err)
26764 }
26765 ret := &GoogleCloudDiscoveryengineV1alphaDataStore{
26766 ServerResponse: googleapi.ServerResponse{
26767 Header: res.Header,
26768 HTTPStatusCode: res.StatusCode,
26769 },
26770 }
26771 target := &ret
26772 if err := gensupport.DecodeResponse(target, res); err != nil {
26773 return nil, err
26774 }
26775 return ret, nil
26776 }
26777
26778 type ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall struct {
26779 s *Service
26780 name string
26781 googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig
26782 urlParams_ gensupport.URLParams
26783 ctx_ context.Context
26784 header_ http.Header
26785 }
26786
26787
26788
26789
26790
26791
26792
26793
26794
26795 func (r *ProjectsLocationsDataStoresService) UpdateDocumentProcessingConfig(name string, googleclouddiscoveryenginev1alphadocumentprocessingconfig *GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
26796 c := &ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26797 c.name = name
26798 c.googleclouddiscoveryenginev1alphadocumentprocessingconfig = googleclouddiscoveryenginev1alphadocumentprocessingconfig
26799 return c
26800 }
26801
26802
26803
26804
26805
26806 func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
26807 c.urlParams_.Set("updateMask", updateMask)
26808 return c
26809 }
26810
26811
26812
26813
26814 func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
26815 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26816 return c
26817 }
26818
26819
26820 func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall {
26821 c.ctx_ = ctx
26822 return c
26823 }
26824
26825
26826
26827 func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Header() http.Header {
26828 if c.header_ == nil {
26829 c.header_ = make(http.Header)
26830 }
26831 return c.header_
26832 }
26833
26834 func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) doRequest(alt string) (*http.Response, error) {
26835 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26836 var body io.Reader = nil
26837 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocumentprocessingconfig)
26838 if err != nil {
26839 return nil, err
26840 }
26841 c.urlParams_.Set("alt", alt)
26842 c.urlParams_.Set("prettyPrint", "false")
26843 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
26844 urls += "?" + c.urlParams_.Encode()
26845 req, err := http.NewRequest("PATCH", urls, body)
26846 if err != nil {
26847 return nil, err
26848 }
26849 req.Header = reqHeaders
26850 googleapi.Expand(req.URL, map[string]string{
26851 "name": c.name,
26852 })
26853 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26854 }
26855
26856
26857
26858
26859
26860
26861
26862 func (c *ProjectsLocationsDataStoresUpdateDocumentProcessingConfigCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig, error) {
26863 gensupport.SetOptions(c.urlParams_, opts...)
26864 res, err := c.doRequest("json")
26865 if res != nil && res.StatusCode == http.StatusNotModified {
26866 if res.Body != nil {
26867 res.Body.Close()
26868 }
26869 return nil, gensupport.WrapError(&googleapi.Error{
26870 Code: res.StatusCode,
26871 Header: res.Header,
26872 })
26873 }
26874 if err != nil {
26875 return nil, err
26876 }
26877 defer googleapi.CloseBody(res)
26878 if err := googleapi.CheckResponse(res); err != nil {
26879 return nil, gensupport.WrapError(err)
26880 }
26881 ret := &GoogleCloudDiscoveryengineV1alphaDocumentProcessingConfig{
26882 ServerResponse: googleapi.ServerResponse{
26883 Header: res.Header,
26884 HTTPStatusCode: res.StatusCode,
26885 },
26886 }
26887 target := &ret
26888 if err := gensupport.DecodeResponse(target, res); err != nil {
26889 return nil, err
26890 }
26891 return ret, nil
26892 }
26893
26894 type ProjectsLocationsDataStoresBranchesDocumentsCreateCall struct {
26895 s *Service
26896 parent string
26897 googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
26898 urlParams_ gensupport.URLParams
26899 ctx_ context.Context
26900 header_ http.Header
26901 }
26902
26903
26904
26905
26906
26907
26908 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Create(parent string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
26909 c := &ProjectsLocationsDataStoresBranchesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26910 c.parent = parent
26911 c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
26912 return c
26913 }
26914
26915
26916
26917
26918
26919
26920
26921
26922
26923
26924 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) DocumentId(documentId string) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
26925 c.urlParams_.Set("documentId", documentId)
26926 return c
26927 }
26928
26929
26930
26931
26932 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
26933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26934 return c
26935 }
26936
26937
26938 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsCreateCall {
26939 c.ctx_ = ctx
26940 return c
26941 }
26942
26943
26944
26945 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Header() http.Header {
26946 if c.header_ == nil {
26947 c.header_ = make(http.Header)
26948 }
26949 return c.header_
26950 }
26951
26952 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
26953 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26954 var body io.Reader = nil
26955 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
26956 if err != nil {
26957 return nil, err
26958 }
26959 c.urlParams_.Set("alt", alt)
26960 c.urlParams_.Set("prettyPrint", "false")
26961 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
26962 urls += "?" + c.urlParams_.Encode()
26963 req, err := http.NewRequest("POST", urls, body)
26964 if err != nil {
26965 return nil, err
26966 }
26967 req.Header = reqHeaders
26968 googleapi.Expand(req.URL, map[string]string{
26969 "parent": c.parent,
26970 })
26971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26972 }
26973
26974
26975
26976
26977
26978
26979
26980 func (c *ProjectsLocationsDataStoresBranchesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
26981 gensupport.SetOptions(c.urlParams_, opts...)
26982 res, err := c.doRequest("json")
26983 if res != nil && res.StatusCode == http.StatusNotModified {
26984 if res.Body != nil {
26985 res.Body.Close()
26986 }
26987 return nil, gensupport.WrapError(&googleapi.Error{
26988 Code: res.StatusCode,
26989 Header: res.Header,
26990 })
26991 }
26992 if err != nil {
26993 return nil, err
26994 }
26995 defer googleapi.CloseBody(res)
26996 if err := googleapi.CheckResponse(res); err != nil {
26997 return nil, gensupport.WrapError(err)
26998 }
26999 ret := &GoogleCloudDiscoveryengineV1alphaDocument{
27000 ServerResponse: googleapi.ServerResponse{
27001 Header: res.Header,
27002 HTTPStatusCode: res.StatusCode,
27003 },
27004 }
27005 target := &ret
27006 if err := gensupport.DecodeResponse(target, res); err != nil {
27007 return nil, err
27008 }
27009 return ret, nil
27010 }
27011
27012 type ProjectsLocationsDataStoresBranchesDocumentsDeleteCall struct {
27013 s *Service
27014 name string
27015 urlParams_ gensupport.URLParams
27016 ctx_ context.Context
27017 header_ http.Header
27018 }
27019
27020
27021
27022
27023
27024
27025
27026
27027
27028 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Delete(name string) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
27029 c := &ProjectsLocationsDataStoresBranchesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27030 c.name = name
27031 return c
27032 }
27033
27034
27035
27036
27037 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
27038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27039 return c
27040 }
27041
27042
27043 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall {
27044 c.ctx_ = ctx
27045 return c
27046 }
27047
27048
27049
27050 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Header() http.Header {
27051 if c.header_ == nil {
27052 c.header_ = make(http.Header)
27053 }
27054 return c.header_
27055 }
27056
27057 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
27058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27059 var body io.Reader = nil
27060 c.urlParams_.Set("alt", alt)
27061 c.urlParams_.Set("prettyPrint", "false")
27062 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
27063 urls += "?" + c.urlParams_.Encode()
27064 req, err := http.NewRequest("DELETE", urls, body)
27065 if err != nil {
27066 return nil, err
27067 }
27068 req.Header = reqHeaders
27069 googleapi.Expand(req.URL, map[string]string{
27070 "name": c.name,
27071 })
27072 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27073 }
27074
27075
27076
27077
27078
27079
27080
27081 func (c *ProjectsLocationsDataStoresBranchesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27082 gensupport.SetOptions(c.urlParams_, opts...)
27083 res, err := c.doRequest("json")
27084 if res != nil && res.StatusCode == http.StatusNotModified {
27085 if res.Body != nil {
27086 res.Body.Close()
27087 }
27088 return nil, gensupport.WrapError(&googleapi.Error{
27089 Code: res.StatusCode,
27090 Header: res.Header,
27091 })
27092 }
27093 if err != nil {
27094 return nil, err
27095 }
27096 defer googleapi.CloseBody(res)
27097 if err := googleapi.CheckResponse(res); err != nil {
27098 return nil, gensupport.WrapError(err)
27099 }
27100 ret := &GoogleProtobufEmpty{
27101 ServerResponse: googleapi.ServerResponse{
27102 Header: res.Header,
27103 HTTPStatusCode: res.StatusCode,
27104 },
27105 }
27106 target := &ret
27107 if err := gensupport.DecodeResponse(target, res); err != nil {
27108 return nil, err
27109 }
27110 return ret, nil
27111 }
27112
27113 type ProjectsLocationsDataStoresBranchesDocumentsGetCall struct {
27114 s *Service
27115 name string
27116 urlParams_ gensupport.URLParams
27117 ifNoneMatch_ string
27118 ctx_ context.Context
27119 header_ http.Header
27120 }
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
27131 c := &ProjectsLocationsDataStoresBranchesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27132 c.name = name
27133 return c
27134 }
27135
27136
27137
27138
27139 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
27140 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27141 return c
27142 }
27143
27144
27145
27146
27147 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
27148 c.ifNoneMatch_ = entityTag
27149 return c
27150 }
27151
27152
27153 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetCall {
27154 c.ctx_ = ctx
27155 return c
27156 }
27157
27158
27159
27160 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Header() http.Header {
27161 if c.header_ == nil {
27162 c.header_ = make(http.Header)
27163 }
27164 return c.header_
27165 }
27166
27167 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
27168 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27169 if c.ifNoneMatch_ != "" {
27170 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27171 }
27172 var body io.Reader = nil
27173 c.urlParams_.Set("alt", alt)
27174 c.urlParams_.Set("prettyPrint", "false")
27175 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
27176 urls += "?" + c.urlParams_.Encode()
27177 req, err := http.NewRequest("GET", urls, body)
27178 if err != nil {
27179 return nil, err
27180 }
27181 req.Header = reqHeaders
27182 googleapi.Expand(req.URL, map[string]string{
27183 "name": c.name,
27184 })
27185 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27186 }
27187
27188
27189
27190
27191
27192
27193
27194 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
27195 gensupport.SetOptions(c.urlParams_, opts...)
27196 res, err := c.doRequest("json")
27197 if res != nil && res.StatusCode == http.StatusNotModified {
27198 if res.Body != nil {
27199 res.Body.Close()
27200 }
27201 return nil, gensupport.WrapError(&googleapi.Error{
27202 Code: res.StatusCode,
27203 Header: res.Header,
27204 })
27205 }
27206 if err != nil {
27207 return nil, err
27208 }
27209 defer googleapi.CloseBody(res)
27210 if err := googleapi.CheckResponse(res); err != nil {
27211 return nil, gensupport.WrapError(err)
27212 }
27213 ret := &GoogleCloudDiscoveryengineV1alphaDocument{
27214 ServerResponse: googleapi.ServerResponse{
27215 Header: res.Header,
27216 HTTPStatusCode: res.StatusCode,
27217 },
27218 }
27219 target := &ret
27220 if err := gensupport.DecodeResponse(target, res); err != nil {
27221 return nil, err
27222 }
27223 return ret, nil
27224 }
27225
27226 type ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall struct {
27227 s *Service
27228 name string
27229 urlParams_ gensupport.URLParams
27230 ifNoneMatch_ string
27231 ctx_ context.Context
27232 header_ http.Header
27233 }
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) GetProcessedDocument(name string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
27244 c := &ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27245 c.name = name
27246 return c
27247 }
27248
27249
27250
27251
27252
27253
27254
27255
27256
27257
27258
27259 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentFormat(processedDocumentFormat string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
27260 c.urlParams_.Set("processedDocumentFormat", processedDocumentFormat)
27261 return c
27262 }
27263
27264
27265
27266
27267
27268
27269
27270
27271
27272
27273
27274
27275
27276
27277
27278 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) ProcessedDocumentType(processedDocumentType string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
27279 c.urlParams_.Set("processedDocumentType", processedDocumentType)
27280 return c
27281 }
27282
27283
27284
27285
27286 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
27287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27288 return c
27289 }
27290
27291
27292
27293
27294 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
27295 c.ifNoneMatch_ = entityTag
27296 return c
27297 }
27298
27299
27300 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall {
27301 c.ctx_ = ctx
27302 return c
27303 }
27304
27305
27306
27307 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Header() http.Header {
27308 if c.header_ == nil {
27309 c.header_ = make(http.Header)
27310 }
27311 return c.header_
27312 }
27313
27314 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) doRequest(alt string) (*http.Response, error) {
27315 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27316 if c.ifNoneMatch_ != "" {
27317 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27318 }
27319 var body io.Reader = nil
27320 c.urlParams_.Set("alt", alt)
27321 c.urlParams_.Set("prettyPrint", "false")
27322 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:getProcessedDocument")
27323 urls += "?" + c.urlParams_.Encode()
27324 req, err := http.NewRequest("GET", urls, body)
27325 if err != nil {
27326 return nil, err
27327 }
27328 req.Header = reqHeaders
27329 googleapi.Expand(req.URL, map[string]string{
27330 "name": c.name,
27331 })
27332 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27333 }
27334
27335
27336
27337
27338
27339
27340
27341 func (c *ProjectsLocationsDataStoresBranchesDocumentsGetProcessedDocumentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaProcessedDocument, error) {
27342 gensupport.SetOptions(c.urlParams_, opts...)
27343 res, err := c.doRequest("json")
27344 if res != nil && res.StatusCode == http.StatusNotModified {
27345 if res.Body != nil {
27346 res.Body.Close()
27347 }
27348 return nil, gensupport.WrapError(&googleapi.Error{
27349 Code: res.StatusCode,
27350 Header: res.Header,
27351 })
27352 }
27353 if err != nil {
27354 return nil, err
27355 }
27356 defer googleapi.CloseBody(res)
27357 if err := googleapi.CheckResponse(res); err != nil {
27358 return nil, gensupport.WrapError(err)
27359 }
27360 ret := &GoogleCloudDiscoveryengineV1alphaProcessedDocument{
27361 ServerResponse: googleapi.ServerResponse{
27362 Header: res.Header,
27363 HTTPStatusCode: res.StatusCode,
27364 },
27365 }
27366 target := &ret
27367 if err := gensupport.DecodeResponse(target, res); err != nil {
27368 return nil, err
27369 }
27370 return ret, nil
27371 }
27372
27373 type ProjectsLocationsDataStoresBranchesDocumentsImportCall struct {
27374 s *Service
27375 parent string
27376 googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest
27377 urlParams_ gensupport.URLParams
27378 ctx_ context.Context
27379 header_ http.Header
27380 }
27381
27382
27383
27384
27385
27386
27387
27388
27389 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Import(parent string, googleclouddiscoveryenginev1alphaimportdocumentsrequest *GoogleCloudDiscoveryengineV1alphaImportDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
27390 c := &ProjectsLocationsDataStoresBranchesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27391 c.parent = parent
27392 c.googleclouddiscoveryenginev1alphaimportdocumentsrequest = googleclouddiscoveryenginev1alphaimportdocumentsrequest
27393 return c
27394 }
27395
27396
27397
27398
27399 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
27400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27401 return c
27402 }
27403
27404
27405 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsImportCall {
27406 c.ctx_ = ctx
27407 return c
27408 }
27409
27410
27411
27412 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Header() http.Header {
27413 if c.header_ == nil {
27414 c.header_ = make(http.Header)
27415 }
27416 return c.header_
27417 }
27418
27419 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
27420 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27421 var body io.Reader = nil
27422 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportdocumentsrequest)
27423 if err != nil {
27424 return nil, err
27425 }
27426 c.urlParams_.Set("alt", alt)
27427 c.urlParams_.Set("prettyPrint", "false")
27428 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:import")
27429 urls += "?" + c.urlParams_.Encode()
27430 req, err := http.NewRequest("POST", urls, body)
27431 if err != nil {
27432 return nil, err
27433 }
27434 req.Header = reqHeaders
27435 googleapi.Expand(req.URL, map[string]string{
27436 "parent": c.parent,
27437 })
27438 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27439 }
27440
27441
27442
27443
27444
27445
27446
27447 func (c *ProjectsLocationsDataStoresBranchesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27448 gensupport.SetOptions(c.urlParams_, opts...)
27449 res, err := c.doRequest("json")
27450 if res != nil && res.StatusCode == http.StatusNotModified {
27451 if res.Body != nil {
27452 res.Body.Close()
27453 }
27454 return nil, gensupport.WrapError(&googleapi.Error{
27455 Code: res.StatusCode,
27456 Header: res.Header,
27457 })
27458 }
27459 if err != nil {
27460 return nil, err
27461 }
27462 defer googleapi.CloseBody(res)
27463 if err := googleapi.CheckResponse(res); err != nil {
27464 return nil, gensupport.WrapError(err)
27465 }
27466 ret := &GoogleLongrunningOperation{
27467 ServerResponse: googleapi.ServerResponse{
27468 Header: res.Header,
27469 HTTPStatusCode: res.StatusCode,
27470 },
27471 }
27472 target := &ret
27473 if err := gensupport.DecodeResponse(target, res); err != nil {
27474 return nil, err
27475 }
27476 return ret, nil
27477 }
27478
27479 type ProjectsLocationsDataStoresBranchesDocumentsListCall struct {
27480 s *Service
27481 parent string
27482 urlParams_ gensupport.URLParams
27483 ifNoneMatch_ string
27484 ctx_ context.Context
27485 header_ http.Header
27486 }
27487
27488
27489
27490
27491
27492
27493
27494
27495
27496 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
27497 c := &ProjectsLocationsDataStoresBranchesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27498 c.parent = parent
27499 return c
27500 }
27501
27502
27503
27504
27505
27506 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
27507 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27508 return c
27509 }
27510
27511
27512
27513
27514
27515
27516
27517 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
27518 c.urlParams_.Set("pageToken", pageToken)
27519 return c
27520 }
27521
27522
27523
27524
27525 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
27526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27527 return c
27528 }
27529
27530
27531
27532
27533 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
27534 c.ifNoneMatch_ = entityTag
27535 return c
27536 }
27537
27538
27539 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsListCall {
27540 c.ctx_ = ctx
27541 return c
27542 }
27543
27544
27545
27546 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Header() http.Header {
27547 if c.header_ == nil {
27548 c.header_ = make(http.Header)
27549 }
27550 return c.header_
27551 }
27552
27553 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
27554 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27555 if c.ifNoneMatch_ != "" {
27556 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27557 }
27558 var body io.Reader = nil
27559 c.urlParams_.Set("alt", alt)
27560 c.urlParams_.Set("prettyPrint", "false")
27561 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents")
27562 urls += "?" + c.urlParams_.Encode()
27563 req, err := http.NewRequest("GET", urls, body)
27564 if err != nil {
27565 return nil, err
27566 }
27567 req.Header = reqHeaders
27568 googleapi.Expand(req.URL, map[string]string{
27569 "parent": c.parent,
27570 })
27571 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27572 }
27573
27574
27575
27576
27577
27578
27579
27580
27581
27582 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse, error) {
27583 gensupport.SetOptions(c.urlParams_, opts...)
27584 res, err := c.doRequest("json")
27585 if res != nil && res.StatusCode == http.StatusNotModified {
27586 if res.Body != nil {
27587 res.Body.Close()
27588 }
27589 return nil, gensupport.WrapError(&googleapi.Error{
27590 Code: res.StatusCode,
27591 Header: res.Header,
27592 })
27593 }
27594 if err != nil {
27595 return nil, err
27596 }
27597 defer googleapi.CloseBody(res)
27598 if err := googleapi.CheckResponse(res); err != nil {
27599 return nil, gensupport.WrapError(err)
27600 }
27601 ret := &GoogleCloudDiscoveryengineV1alphaListDocumentsResponse{
27602 ServerResponse: googleapi.ServerResponse{
27603 Header: res.Header,
27604 HTTPStatusCode: res.StatusCode,
27605 },
27606 }
27607 target := &ret
27608 if err := gensupport.DecodeResponse(target, res); err != nil {
27609 return nil, err
27610 }
27611 return ret, nil
27612 }
27613
27614
27615
27616
27617 func (c *ProjectsLocationsDataStoresBranchesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListDocumentsResponse) error) error {
27618 c.ctx_ = ctx
27619 defer c.PageToken(c.urlParams_.Get("pageToken"))
27620 for {
27621 x, err := c.Do()
27622 if err != nil {
27623 return err
27624 }
27625 if err := f(x); err != nil {
27626 return err
27627 }
27628 if x.NextPageToken == "" {
27629 return nil
27630 }
27631 c.PageToken(x.NextPageToken)
27632 }
27633 }
27634
27635 type ProjectsLocationsDataStoresBranchesDocumentsPatchCall struct {
27636 s *Service
27637 name string
27638 googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument
27639 urlParams_ gensupport.URLParams
27640 ctx_ context.Context
27641 header_ http.Header
27642 }
27643
27644
27645
27646
27647
27648
27649
27650 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Patch(name string, googleclouddiscoveryenginev1alphadocument *GoogleCloudDiscoveryengineV1alphaDocument) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
27651 c := &ProjectsLocationsDataStoresBranchesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27652 c.name = name
27653 c.googleclouddiscoveryenginev1alphadocument = googleclouddiscoveryenginev1alphadocument
27654 return c
27655 }
27656
27657
27658
27659 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
27660 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
27661 return c
27662 }
27663
27664
27665
27666
27667 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
27668 c.urlParams_.Set("updateMask", updateMask)
27669 return c
27670 }
27671
27672
27673
27674
27675 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
27676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27677 return c
27678 }
27679
27680
27681 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPatchCall {
27682 c.ctx_ = ctx
27683 return c
27684 }
27685
27686
27687
27688 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Header() http.Header {
27689 if c.header_ == nil {
27690 c.header_ = make(http.Header)
27691 }
27692 return c.header_
27693 }
27694
27695 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
27696 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27697 var body io.Reader = nil
27698 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadocument)
27699 if err != nil {
27700 return nil, err
27701 }
27702 c.urlParams_.Set("alt", alt)
27703 c.urlParams_.Set("prettyPrint", "false")
27704 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
27705 urls += "?" + c.urlParams_.Encode()
27706 req, err := http.NewRequest("PATCH", urls, body)
27707 if err != nil {
27708 return nil, err
27709 }
27710 req.Header = reqHeaders
27711 googleapi.Expand(req.URL, map[string]string{
27712 "name": c.name,
27713 })
27714 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27715 }
27716
27717
27718
27719
27720
27721
27722
27723 func (c *ProjectsLocationsDataStoresBranchesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaDocument, error) {
27724 gensupport.SetOptions(c.urlParams_, opts...)
27725 res, err := c.doRequest("json")
27726 if res != nil && res.StatusCode == http.StatusNotModified {
27727 if res.Body != nil {
27728 res.Body.Close()
27729 }
27730 return nil, gensupport.WrapError(&googleapi.Error{
27731 Code: res.StatusCode,
27732 Header: res.Header,
27733 })
27734 }
27735 if err != nil {
27736 return nil, err
27737 }
27738 defer googleapi.CloseBody(res)
27739 if err := googleapi.CheckResponse(res); err != nil {
27740 return nil, gensupport.WrapError(err)
27741 }
27742 ret := &GoogleCloudDiscoveryengineV1alphaDocument{
27743 ServerResponse: googleapi.ServerResponse{
27744 Header: res.Header,
27745 HTTPStatusCode: res.StatusCode,
27746 },
27747 }
27748 target := &ret
27749 if err := gensupport.DecodeResponse(target, res); err != nil {
27750 return nil, err
27751 }
27752 return ret, nil
27753 }
27754
27755 type ProjectsLocationsDataStoresBranchesDocumentsPurgeCall struct {
27756 s *Service
27757 parent string
27758 googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest
27759 urlParams_ gensupport.URLParams
27760 ctx_ context.Context
27761 header_ http.Header
27762 }
27763
27764
27765
27766
27767
27768
27769
27770
27771
27772
27773
27774 func (r *ProjectsLocationsDataStoresBranchesDocumentsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgedocumentsrequest *GoogleCloudDiscoveryengineV1alphaPurgeDocumentsRequest) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
27775 c := &ProjectsLocationsDataStoresBranchesDocumentsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27776 c.parent = parent
27777 c.googleclouddiscoveryenginev1alphapurgedocumentsrequest = googleclouddiscoveryenginev1alphapurgedocumentsrequest
27778 return c
27779 }
27780
27781
27782
27783
27784 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
27785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27786 return c
27787 }
27788
27789
27790 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall {
27791 c.ctx_ = ctx
27792 return c
27793 }
27794
27795
27796
27797 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Header() http.Header {
27798 if c.header_ == nil {
27799 c.header_ = make(http.Header)
27800 }
27801 return c.header_
27802 }
27803
27804 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) doRequest(alt string) (*http.Response, error) {
27805 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27806 var body io.Reader = nil
27807 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgedocumentsrequest)
27808 if err != nil {
27809 return nil, err
27810 }
27811 c.urlParams_.Set("alt", alt)
27812 c.urlParams_.Set("prettyPrint", "false")
27813 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/documents:purge")
27814 urls += "?" + c.urlParams_.Encode()
27815 req, err := http.NewRequest("POST", urls, body)
27816 if err != nil {
27817 return nil, err
27818 }
27819 req.Header = reqHeaders
27820 googleapi.Expand(req.URL, map[string]string{
27821 "parent": c.parent,
27822 })
27823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27824 }
27825
27826
27827
27828
27829
27830
27831
27832 func (c *ProjectsLocationsDataStoresBranchesDocumentsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27833 gensupport.SetOptions(c.urlParams_, opts...)
27834 res, err := c.doRequest("json")
27835 if res != nil && res.StatusCode == http.StatusNotModified {
27836 if res.Body != nil {
27837 res.Body.Close()
27838 }
27839 return nil, gensupport.WrapError(&googleapi.Error{
27840 Code: res.StatusCode,
27841 Header: res.Header,
27842 })
27843 }
27844 if err != nil {
27845 return nil, err
27846 }
27847 defer googleapi.CloseBody(res)
27848 if err := googleapi.CheckResponse(res); err != nil {
27849 return nil, gensupport.WrapError(err)
27850 }
27851 ret := &GoogleLongrunningOperation{
27852 ServerResponse: googleapi.ServerResponse{
27853 Header: res.Header,
27854 HTTPStatusCode: res.StatusCode,
27855 },
27856 }
27857 target := &ret
27858 if err := gensupport.DecodeResponse(target, res); err != nil {
27859 return nil, err
27860 }
27861 return ret, nil
27862 }
27863
27864 type ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall struct {
27865 s *Service
27866 name string
27867 urlParams_ gensupport.URLParams
27868 ifNoneMatch_ string
27869 ctx_ context.Context
27870 header_ http.Header
27871 }
27872
27873
27874
27875
27876
27877
27878
27879
27880
27881 func (r *ProjectsLocationsDataStoresBranchesDocumentsChunksService) Get(name string) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
27882 c := &ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27883 c.name = name
27884 return c
27885 }
27886
27887
27888
27889
27890 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
27891 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27892 return c
27893 }
27894
27895
27896
27897
27898 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
27899 c.ifNoneMatch_ = entityTag
27900 return c
27901 }
27902
27903
27904 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall {
27905 c.ctx_ = ctx
27906 return c
27907 }
27908
27909
27910
27911 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Header() http.Header {
27912 if c.header_ == nil {
27913 c.header_ = make(http.Header)
27914 }
27915 return c.header_
27916 }
27917
27918 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) doRequest(alt string) (*http.Response, error) {
27919 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27920 if c.ifNoneMatch_ != "" {
27921 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27922 }
27923 var body io.Reader = nil
27924 c.urlParams_.Set("alt", alt)
27925 c.urlParams_.Set("prettyPrint", "false")
27926 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
27927 urls += "?" + c.urlParams_.Encode()
27928 req, err := http.NewRequest("GET", urls, body)
27929 if err != nil {
27930 return nil, err
27931 }
27932 req.Header = reqHeaders
27933 googleapi.Expand(req.URL, map[string]string{
27934 "name": c.name,
27935 })
27936 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27937 }
27938
27939
27940
27941
27942
27943
27944
27945 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaChunk, error) {
27946 gensupport.SetOptions(c.urlParams_, opts...)
27947 res, err := c.doRequest("json")
27948 if res != nil && res.StatusCode == http.StatusNotModified {
27949 if res.Body != nil {
27950 res.Body.Close()
27951 }
27952 return nil, gensupport.WrapError(&googleapi.Error{
27953 Code: res.StatusCode,
27954 Header: res.Header,
27955 })
27956 }
27957 if err != nil {
27958 return nil, err
27959 }
27960 defer googleapi.CloseBody(res)
27961 if err := googleapi.CheckResponse(res); err != nil {
27962 return nil, gensupport.WrapError(err)
27963 }
27964 ret := &GoogleCloudDiscoveryengineV1alphaChunk{
27965 ServerResponse: googleapi.ServerResponse{
27966 Header: res.Header,
27967 HTTPStatusCode: res.StatusCode,
27968 },
27969 }
27970 target := &ret
27971 if err := gensupport.DecodeResponse(target, res); err != nil {
27972 return nil, err
27973 }
27974 return ret, nil
27975 }
27976
27977 type ProjectsLocationsDataStoresBranchesDocumentsChunksListCall struct {
27978 s *Service
27979 parent string
27980 urlParams_ gensupport.URLParams
27981 ifNoneMatch_ string
27982 ctx_ context.Context
27983 header_ http.Header
27984 }
27985
27986
27987
27988
27989
27990
27991
27992
27993
27994 func (r *ProjectsLocationsDataStoresBranchesDocumentsChunksService) List(parent string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
27995 c := &ProjectsLocationsDataStoresBranchesDocumentsChunksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27996 c.parent = parent
27997 return c
27998 }
27999
28000
28001
28002
28003
28004 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
28005 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28006 return c
28007 }
28008
28009
28010
28011
28012
28013
28014
28015 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
28016 c.urlParams_.Set("pageToken", pageToken)
28017 return c
28018 }
28019
28020
28021
28022
28023 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
28024 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28025 return c
28026 }
28027
28028
28029
28030
28031 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
28032 c.ifNoneMatch_ = entityTag
28033 return c
28034 }
28035
28036
28037 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall {
28038 c.ctx_ = ctx
28039 return c
28040 }
28041
28042
28043
28044 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Header() http.Header {
28045 if c.header_ == nil {
28046 c.header_ = make(http.Header)
28047 }
28048 return c.header_
28049 }
28050
28051 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) doRequest(alt string) (*http.Response, error) {
28052 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28053 if c.ifNoneMatch_ != "" {
28054 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28055 }
28056 var body io.Reader = nil
28057 c.urlParams_.Set("alt", alt)
28058 c.urlParams_.Set("prettyPrint", "false")
28059 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/chunks")
28060 urls += "?" + c.urlParams_.Encode()
28061 req, err := http.NewRequest("GET", urls, body)
28062 if err != nil {
28063 return nil, err
28064 }
28065 req.Header = reqHeaders
28066 googleapi.Expand(req.URL, map[string]string{
28067 "parent": c.parent,
28068 })
28069 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28070 }
28071
28072
28073
28074
28075
28076
28077
28078 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListChunksResponse, error) {
28079 gensupport.SetOptions(c.urlParams_, opts...)
28080 res, err := c.doRequest("json")
28081 if res != nil && res.StatusCode == http.StatusNotModified {
28082 if res.Body != nil {
28083 res.Body.Close()
28084 }
28085 return nil, gensupport.WrapError(&googleapi.Error{
28086 Code: res.StatusCode,
28087 Header: res.Header,
28088 })
28089 }
28090 if err != nil {
28091 return nil, err
28092 }
28093 defer googleapi.CloseBody(res)
28094 if err := googleapi.CheckResponse(res); err != nil {
28095 return nil, gensupport.WrapError(err)
28096 }
28097 ret := &GoogleCloudDiscoveryengineV1alphaListChunksResponse{
28098 ServerResponse: googleapi.ServerResponse{
28099 Header: res.Header,
28100 HTTPStatusCode: res.StatusCode,
28101 },
28102 }
28103 target := &ret
28104 if err := gensupport.DecodeResponse(target, res); err != nil {
28105 return nil, err
28106 }
28107 return ret, nil
28108 }
28109
28110
28111
28112
28113 func (c *ProjectsLocationsDataStoresBranchesDocumentsChunksListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListChunksResponse) error) error {
28114 c.ctx_ = ctx
28115 defer c.PageToken(c.urlParams_.Get("pageToken"))
28116 for {
28117 x, err := c.Do()
28118 if err != nil {
28119 return err
28120 }
28121 if err := f(x); err != nil {
28122 return err
28123 }
28124 if x.NextPageToken == "" {
28125 return nil
28126 }
28127 c.PageToken(x.NextPageToken)
28128 }
28129 }
28130
28131 type ProjectsLocationsDataStoresBranchesOperationsCancelCall struct {
28132 s *Service
28133 name string
28134 googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest
28135 urlParams_ gensupport.URLParams
28136 ctx_ context.Context
28137 header_ http.Header
28138 }
28139
28140
28141
28142
28143
28144
28145
28146
28147
28148
28149
28150
28151 func (r *ProjectsLocationsDataStoresBranchesOperationsService) Cancel(name string, googlelongrunningcanceloperationrequest *GoogleLongrunningCancelOperationRequest) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
28152 c := &ProjectsLocationsDataStoresBranchesOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28153 c.name = name
28154 c.googlelongrunningcanceloperationrequest = googlelongrunningcanceloperationrequest
28155 return c
28156 }
28157
28158
28159
28160
28161 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
28162 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28163 return c
28164 }
28165
28166
28167 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsCancelCall {
28168 c.ctx_ = ctx
28169 return c
28170 }
28171
28172
28173
28174 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Header() http.Header {
28175 if c.header_ == nil {
28176 c.header_ = make(http.Header)
28177 }
28178 return c.header_
28179 }
28180
28181 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
28182 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28183 var body io.Reader = nil
28184 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlelongrunningcanceloperationrequest)
28185 if err != nil {
28186 return nil, err
28187 }
28188 c.urlParams_.Set("alt", alt)
28189 c.urlParams_.Set("prettyPrint", "false")
28190 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:cancel")
28191 urls += "?" + c.urlParams_.Encode()
28192 req, err := http.NewRequest("POST", urls, body)
28193 if err != nil {
28194 return nil, err
28195 }
28196 req.Header = reqHeaders
28197 googleapi.Expand(req.URL, map[string]string{
28198 "name": c.name,
28199 })
28200 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28201 }
28202
28203
28204
28205
28206
28207
28208
28209 func (c *ProjectsLocationsDataStoresBranchesOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28210 gensupport.SetOptions(c.urlParams_, opts...)
28211 res, err := c.doRequest("json")
28212 if res != nil && res.StatusCode == http.StatusNotModified {
28213 if res.Body != nil {
28214 res.Body.Close()
28215 }
28216 return nil, gensupport.WrapError(&googleapi.Error{
28217 Code: res.StatusCode,
28218 Header: res.Header,
28219 })
28220 }
28221 if err != nil {
28222 return nil, err
28223 }
28224 defer googleapi.CloseBody(res)
28225 if err := googleapi.CheckResponse(res); err != nil {
28226 return nil, gensupport.WrapError(err)
28227 }
28228 ret := &GoogleProtobufEmpty{
28229 ServerResponse: googleapi.ServerResponse{
28230 Header: res.Header,
28231 HTTPStatusCode: res.StatusCode,
28232 },
28233 }
28234 target := &ret
28235 if err := gensupport.DecodeResponse(target, res); err != nil {
28236 return nil, err
28237 }
28238 return ret, nil
28239 }
28240
28241 type ProjectsLocationsDataStoresBranchesOperationsGetCall struct {
28242 s *Service
28243 name string
28244 urlParams_ gensupport.URLParams
28245 ifNoneMatch_ string
28246 ctx_ context.Context
28247 header_ http.Header
28248 }
28249
28250
28251
28252
28253
28254
28255 func (r *ProjectsLocationsDataStoresBranchesOperationsService) Get(name string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
28256 c := &ProjectsLocationsDataStoresBranchesOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28257 c.name = name
28258 return c
28259 }
28260
28261
28262
28263
28264 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
28265 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28266 return c
28267 }
28268
28269
28270
28271
28272 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
28273 c.ifNoneMatch_ = entityTag
28274 return c
28275 }
28276
28277
28278 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsGetCall {
28279 c.ctx_ = ctx
28280 return c
28281 }
28282
28283
28284
28285 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Header() http.Header {
28286 if c.header_ == nil {
28287 c.header_ = make(http.Header)
28288 }
28289 return c.header_
28290 }
28291
28292 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) doRequest(alt string) (*http.Response, error) {
28293 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28294 if c.ifNoneMatch_ != "" {
28295 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28296 }
28297 var body io.Reader = nil
28298 c.urlParams_.Set("alt", alt)
28299 c.urlParams_.Set("prettyPrint", "false")
28300 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
28301 urls += "?" + c.urlParams_.Encode()
28302 req, err := http.NewRequest("GET", urls, body)
28303 if err != nil {
28304 return nil, err
28305 }
28306 req.Header = reqHeaders
28307 googleapi.Expand(req.URL, map[string]string{
28308 "name": c.name,
28309 })
28310 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28311 }
28312
28313
28314
28315
28316
28317
28318
28319 func (c *ProjectsLocationsDataStoresBranchesOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28320 gensupport.SetOptions(c.urlParams_, opts...)
28321 res, err := c.doRequest("json")
28322 if res != nil && res.StatusCode == http.StatusNotModified {
28323 if res.Body != nil {
28324 res.Body.Close()
28325 }
28326 return nil, gensupport.WrapError(&googleapi.Error{
28327 Code: res.StatusCode,
28328 Header: res.Header,
28329 })
28330 }
28331 if err != nil {
28332 return nil, err
28333 }
28334 defer googleapi.CloseBody(res)
28335 if err := googleapi.CheckResponse(res); err != nil {
28336 return nil, gensupport.WrapError(err)
28337 }
28338 ret := &GoogleLongrunningOperation{
28339 ServerResponse: googleapi.ServerResponse{
28340 Header: res.Header,
28341 HTTPStatusCode: res.StatusCode,
28342 },
28343 }
28344 target := &ret
28345 if err := gensupport.DecodeResponse(target, res); err != nil {
28346 return nil, err
28347 }
28348 return ret, nil
28349 }
28350
28351 type ProjectsLocationsDataStoresBranchesOperationsListCall struct {
28352 s *Service
28353 name string
28354 urlParams_ gensupport.URLParams
28355 ifNoneMatch_ string
28356 ctx_ context.Context
28357 header_ http.Header
28358 }
28359
28360
28361
28362
28363
28364 func (r *ProjectsLocationsDataStoresBranchesOperationsService) List(name string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28365 c := &ProjectsLocationsDataStoresBranchesOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28366 c.name = name
28367 return c
28368 }
28369
28370
28371 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28372 c.urlParams_.Set("filter", filter)
28373 return c
28374 }
28375
28376
28377
28378 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28379 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28380 return c
28381 }
28382
28383
28384
28385 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28386 c.urlParams_.Set("pageToken", pageToken)
28387 return c
28388 }
28389
28390
28391
28392
28393 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28394 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28395 return c
28396 }
28397
28398
28399
28400
28401 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28402 c.ifNoneMatch_ = entityTag
28403 return c
28404 }
28405
28406
28407 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresBranchesOperationsListCall {
28408 c.ctx_ = ctx
28409 return c
28410 }
28411
28412
28413
28414 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Header() http.Header {
28415 if c.header_ == nil {
28416 c.header_ = make(http.Header)
28417 }
28418 return c.header_
28419 }
28420
28421 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) doRequest(alt string) (*http.Response, error) {
28422 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28423 if c.ifNoneMatch_ != "" {
28424 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28425 }
28426 var body io.Reader = nil
28427 c.urlParams_.Set("alt", alt)
28428 c.urlParams_.Set("prettyPrint", "false")
28429 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
28430 urls += "?" + c.urlParams_.Encode()
28431 req, err := http.NewRequest("GET", urls, body)
28432 if err != nil {
28433 return nil, err
28434 }
28435 req.Header = reqHeaders
28436 googleapi.Expand(req.URL, map[string]string{
28437 "name": c.name,
28438 })
28439 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28440 }
28441
28442
28443
28444
28445
28446
28447
28448 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
28449 gensupport.SetOptions(c.urlParams_, opts...)
28450 res, err := c.doRequest("json")
28451 if res != nil && res.StatusCode == http.StatusNotModified {
28452 if res.Body != nil {
28453 res.Body.Close()
28454 }
28455 return nil, gensupport.WrapError(&googleapi.Error{
28456 Code: res.StatusCode,
28457 Header: res.Header,
28458 })
28459 }
28460 if err != nil {
28461 return nil, err
28462 }
28463 defer googleapi.CloseBody(res)
28464 if err := googleapi.CheckResponse(res); err != nil {
28465 return nil, gensupport.WrapError(err)
28466 }
28467 ret := &GoogleLongrunningListOperationsResponse{
28468 ServerResponse: googleapi.ServerResponse{
28469 Header: res.Header,
28470 HTTPStatusCode: res.StatusCode,
28471 },
28472 }
28473 target := &ret
28474 if err := gensupport.DecodeResponse(target, res); err != nil {
28475 return nil, err
28476 }
28477 return ret, nil
28478 }
28479
28480
28481
28482
28483 func (c *ProjectsLocationsDataStoresBranchesOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
28484 c.ctx_ = ctx
28485 defer c.PageToken(c.urlParams_.Get("pageToken"))
28486 for {
28487 x, err := c.Do()
28488 if err != nil {
28489 return err
28490 }
28491 if err := f(x); err != nil {
28492 return err
28493 }
28494 if x.NextPageToken == "" {
28495 return nil
28496 }
28497 c.PageToken(x.NextPageToken)
28498 }
28499 }
28500
28501 type ProjectsLocationsDataStoresConversationsConverseCall struct {
28502 s *Service
28503 name string
28504 googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest
28505 urlParams_ gensupport.URLParams
28506 ctx_ context.Context
28507 header_ http.Header
28508 }
28509
28510
28511
28512
28513
28514
28515
28516
28517
28518
28519 func (r *ProjectsLocationsDataStoresConversationsService) Converse(name string, googleclouddiscoveryenginev1alphaconverseconversationrequest *GoogleCloudDiscoveryengineV1alphaConverseConversationRequest) *ProjectsLocationsDataStoresConversationsConverseCall {
28520 c := &ProjectsLocationsDataStoresConversationsConverseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28521 c.name = name
28522 c.googleclouddiscoveryenginev1alphaconverseconversationrequest = googleclouddiscoveryenginev1alphaconverseconversationrequest
28523 return c
28524 }
28525
28526
28527
28528
28529 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsConverseCall {
28530 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28531 return c
28532 }
28533
28534
28535 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsConverseCall {
28536 c.ctx_ = ctx
28537 return c
28538 }
28539
28540
28541
28542 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Header() http.Header {
28543 if c.header_ == nil {
28544 c.header_ = make(http.Header)
28545 }
28546 return c.header_
28547 }
28548
28549 func (c *ProjectsLocationsDataStoresConversationsConverseCall) doRequest(alt string) (*http.Response, error) {
28550 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28551 var body io.Reader = nil
28552 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconverseconversationrequest)
28553 if err != nil {
28554 return nil, err
28555 }
28556 c.urlParams_.Set("alt", alt)
28557 c.urlParams_.Set("prettyPrint", "false")
28558 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}:converse")
28559 urls += "?" + c.urlParams_.Encode()
28560 req, err := http.NewRequest("POST", urls, body)
28561 if err != nil {
28562 return nil, err
28563 }
28564 req.Header = reqHeaders
28565 googleapi.Expand(req.URL, map[string]string{
28566 "name": c.name,
28567 })
28568 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28569 }
28570
28571
28572
28573
28574
28575
28576
28577 func (c *ProjectsLocationsDataStoresConversationsConverseCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConverseConversationResponse, error) {
28578 gensupport.SetOptions(c.urlParams_, opts...)
28579 res, err := c.doRequest("json")
28580 if res != nil && res.StatusCode == http.StatusNotModified {
28581 if res.Body != nil {
28582 res.Body.Close()
28583 }
28584 return nil, gensupport.WrapError(&googleapi.Error{
28585 Code: res.StatusCode,
28586 Header: res.Header,
28587 })
28588 }
28589 if err != nil {
28590 return nil, err
28591 }
28592 defer googleapi.CloseBody(res)
28593 if err := googleapi.CheckResponse(res); err != nil {
28594 return nil, gensupport.WrapError(err)
28595 }
28596 ret := &GoogleCloudDiscoveryengineV1alphaConverseConversationResponse{
28597 ServerResponse: googleapi.ServerResponse{
28598 Header: res.Header,
28599 HTTPStatusCode: res.StatusCode,
28600 },
28601 }
28602 target := &ret
28603 if err := gensupport.DecodeResponse(target, res); err != nil {
28604 return nil, err
28605 }
28606 return ret, nil
28607 }
28608
28609 type ProjectsLocationsDataStoresConversationsCreateCall struct {
28610 s *Service
28611 parent string
28612 googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
28613 urlParams_ gensupport.URLParams
28614 ctx_ context.Context
28615 header_ http.Header
28616 }
28617
28618
28619
28620
28621
28622
28623
28624 func (r *ProjectsLocationsDataStoresConversationsService) Create(parent string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsDataStoresConversationsCreateCall {
28625 c := &ProjectsLocationsDataStoresConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28626 c.parent = parent
28627 c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
28628 return c
28629 }
28630
28631
28632
28633
28634 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsCreateCall {
28635 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28636 return c
28637 }
28638
28639
28640 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsCreateCall {
28641 c.ctx_ = ctx
28642 return c
28643 }
28644
28645
28646
28647 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Header() http.Header {
28648 if c.header_ == nil {
28649 c.header_ = make(http.Header)
28650 }
28651 return c.header_
28652 }
28653
28654 func (c *ProjectsLocationsDataStoresConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
28655 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28656 var body io.Reader = nil
28657 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
28658 if err != nil {
28659 return nil, err
28660 }
28661 c.urlParams_.Set("alt", alt)
28662 c.urlParams_.Set("prettyPrint", "false")
28663 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
28664 urls += "?" + c.urlParams_.Encode()
28665 req, err := http.NewRequest("POST", urls, body)
28666 if err != nil {
28667 return nil, err
28668 }
28669 req.Header = reqHeaders
28670 googleapi.Expand(req.URL, map[string]string{
28671 "parent": c.parent,
28672 })
28673 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28674 }
28675
28676
28677
28678
28679
28680
28681
28682 func (c *ProjectsLocationsDataStoresConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
28683 gensupport.SetOptions(c.urlParams_, opts...)
28684 res, err := c.doRequest("json")
28685 if res != nil && res.StatusCode == http.StatusNotModified {
28686 if res.Body != nil {
28687 res.Body.Close()
28688 }
28689 return nil, gensupport.WrapError(&googleapi.Error{
28690 Code: res.StatusCode,
28691 Header: res.Header,
28692 })
28693 }
28694 if err != nil {
28695 return nil, err
28696 }
28697 defer googleapi.CloseBody(res)
28698 if err := googleapi.CheckResponse(res); err != nil {
28699 return nil, gensupport.WrapError(err)
28700 }
28701 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
28702 ServerResponse: googleapi.ServerResponse{
28703 Header: res.Header,
28704 HTTPStatusCode: res.StatusCode,
28705 },
28706 }
28707 target := &ret
28708 if err := gensupport.DecodeResponse(target, res); err != nil {
28709 return nil, err
28710 }
28711 return ret, nil
28712 }
28713
28714 type ProjectsLocationsDataStoresConversationsDeleteCall struct {
28715 s *Service
28716 name string
28717 urlParams_ gensupport.URLParams
28718 ctx_ context.Context
28719 header_ http.Header
28720 }
28721
28722
28723
28724
28725
28726
28727
28728 func (r *ProjectsLocationsDataStoresConversationsService) Delete(name string) *ProjectsLocationsDataStoresConversationsDeleteCall {
28729 c := &ProjectsLocationsDataStoresConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28730 c.name = name
28731 return c
28732 }
28733
28734
28735
28736
28737 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsDeleteCall {
28738 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28739 return c
28740 }
28741
28742
28743 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsDeleteCall {
28744 c.ctx_ = ctx
28745 return c
28746 }
28747
28748
28749
28750 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Header() http.Header {
28751 if c.header_ == nil {
28752 c.header_ = make(http.Header)
28753 }
28754 return c.header_
28755 }
28756
28757 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
28758 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28759 var body io.Reader = nil
28760 c.urlParams_.Set("alt", alt)
28761 c.urlParams_.Set("prettyPrint", "false")
28762 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
28763 urls += "?" + c.urlParams_.Encode()
28764 req, err := http.NewRequest("DELETE", urls, body)
28765 if err != nil {
28766 return nil, err
28767 }
28768 req.Header = reqHeaders
28769 googleapi.Expand(req.URL, map[string]string{
28770 "name": c.name,
28771 })
28772 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28773 }
28774
28775
28776
28777
28778
28779
28780
28781 func (c *ProjectsLocationsDataStoresConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28782 gensupport.SetOptions(c.urlParams_, opts...)
28783 res, err := c.doRequest("json")
28784 if res != nil && res.StatusCode == http.StatusNotModified {
28785 if res.Body != nil {
28786 res.Body.Close()
28787 }
28788 return nil, gensupport.WrapError(&googleapi.Error{
28789 Code: res.StatusCode,
28790 Header: res.Header,
28791 })
28792 }
28793 if err != nil {
28794 return nil, err
28795 }
28796 defer googleapi.CloseBody(res)
28797 if err := googleapi.CheckResponse(res); err != nil {
28798 return nil, gensupport.WrapError(err)
28799 }
28800 ret := &GoogleProtobufEmpty{
28801 ServerResponse: googleapi.ServerResponse{
28802 Header: res.Header,
28803 HTTPStatusCode: res.StatusCode,
28804 },
28805 }
28806 target := &ret
28807 if err := gensupport.DecodeResponse(target, res); err != nil {
28808 return nil, err
28809 }
28810 return ret, nil
28811 }
28812
28813 type ProjectsLocationsDataStoresConversationsGetCall struct {
28814 s *Service
28815 name string
28816 urlParams_ gensupport.URLParams
28817 ifNoneMatch_ string
28818 ctx_ context.Context
28819 header_ http.Header
28820 }
28821
28822
28823
28824
28825
28826
28827 func (r *ProjectsLocationsDataStoresConversationsService) Get(name string) *ProjectsLocationsDataStoresConversationsGetCall {
28828 c := &ProjectsLocationsDataStoresConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28829 c.name = name
28830 return c
28831 }
28832
28833
28834
28835
28836 func (c *ProjectsLocationsDataStoresConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsGetCall {
28837 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28838 return c
28839 }
28840
28841
28842
28843
28844 func (c *ProjectsLocationsDataStoresConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsGetCall {
28845 c.ifNoneMatch_ = entityTag
28846 return c
28847 }
28848
28849
28850 func (c *ProjectsLocationsDataStoresConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsGetCall {
28851 c.ctx_ = ctx
28852 return c
28853 }
28854
28855
28856
28857 func (c *ProjectsLocationsDataStoresConversationsGetCall) Header() http.Header {
28858 if c.header_ == nil {
28859 c.header_ = make(http.Header)
28860 }
28861 return c.header_
28862 }
28863
28864 func (c *ProjectsLocationsDataStoresConversationsGetCall) doRequest(alt string) (*http.Response, error) {
28865 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28866 if c.ifNoneMatch_ != "" {
28867 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28868 }
28869 var body io.Reader = nil
28870 c.urlParams_.Set("alt", alt)
28871 c.urlParams_.Set("prettyPrint", "false")
28872 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
28873 urls += "?" + c.urlParams_.Encode()
28874 req, err := http.NewRequest("GET", urls, body)
28875 if err != nil {
28876 return nil, err
28877 }
28878 req.Header = reqHeaders
28879 googleapi.Expand(req.URL, map[string]string{
28880 "name": c.name,
28881 })
28882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28883 }
28884
28885
28886
28887
28888
28889
28890
28891 func (c *ProjectsLocationsDataStoresConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
28892 gensupport.SetOptions(c.urlParams_, opts...)
28893 res, err := c.doRequest("json")
28894 if res != nil && res.StatusCode == http.StatusNotModified {
28895 if res.Body != nil {
28896 res.Body.Close()
28897 }
28898 return nil, gensupport.WrapError(&googleapi.Error{
28899 Code: res.StatusCode,
28900 Header: res.Header,
28901 })
28902 }
28903 if err != nil {
28904 return nil, err
28905 }
28906 defer googleapi.CloseBody(res)
28907 if err := googleapi.CheckResponse(res); err != nil {
28908 return nil, gensupport.WrapError(err)
28909 }
28910 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
28911 ServerResponse: googleapi.ServerResponse{
28912 Header: res.Header,
28913 HTTPStatusCode: res.StatusCode,
28914 },
28915 }
28916 target := &ret
28917 if err := gensupport.DecodeResponse(target, res); err != nil {
28918 return nil, err
28919 }
28920 return ret, nil
28921 }
28922
28923 type ProjectsLocationsDataStoresConversationsListCall struct {
28924 s *Service
28925 parent string
28926 urlParams_ gensupport.URLParams
28927 ifNoneMatch_ string
28928 ctx_ context.Context
28929 header_ http.Header
28930 }
28931
28932
28933
28934
28935
28936
28937 func (r *ProjectsLocationsDataStoresConversationsService) List(parent string) *ProjectsLocationsDataStoresConversationsListCall {
28938 c := &ProjectsLocationsDataStoresConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28939 c.parent = parent
28940 return c
28941 }
28942
28943
28944
28945
28946 func (c *ProjectsLocationsDataStoresConversationsListCall) Filter(filter string) *ProjectsLocationsDataStoresConversationsListCall {
28947 c.urlParams_.Set("filter", filter)
28948 return c
28949 }
28950
28951
28952
28953
28954
28955 func (c *ProjectsLocationsDataStoresConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresConversationsListCall {
28956 c.urlParams_.Set("orderBy", orderBy)
28957 return c
28958 }
28959
28960
28961
28962 func (c *ProjectsLocationsDataStoresConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresConversationsListCall {
28963 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28964 return c
28965 }
28966
28967
28968
28969
28970 func (c *ProjectsLocationsDataStoresConversationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresConversationsListCall {
28971 c.urlParams_.Set("pageToken", pageToken)
28972 return c
28973 }
28974
28975
28976
28977
28978 func (c *ProjectsLocationsDataStoresConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsListCall {
28979 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28980 return c
28981 }
28982
28983
28984
28985
28986 func (c *ProjectsLocationsDataStoresConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresConversationsListCall {
28987 c.ifNoneMatch_ = entityTag
28988 return c
28989 }
28990
28991
28992 func (c *ProjectsLocationsDataStoresConversationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsListCall {
28993 c.ctx_ = ctx
28994 return c
28995 }
28996
28997
28998
28999 func (c *ProjectsLocationsDataStoresConversationsListCall) Header() http.Header {
29000 if c.header_ == nil {
29001 c.header_ = make(http.Header)
29002 }
29003 return c.header_
29004 }
29005
29006 func (c *ProjectsLocationsDataStoresConversationsListCall) doRequest(alt string) (*http.Response, error) {
29007 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29008 if c.ifNoneMatch_ != "" {
29009 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29010 }
29011 var body io.Reader = nil
29012 c.urlParams_.Set("alt", alt)
29013 c.urlParams_.Set("prettyPrint", "false")
29014 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/conversations")
29015 urls += "?" + c.urlParams_.Encode()
29016 req, err := http.NewRequest("GET", urls, body)
29017 if err != nil {
29018 return nil, err
29019 }
29020 req.Header = reqHeaders
29021 googleapi.Expand(req.URL, map[string]string{
29022 "parent": c.parent,
29023 })
29024 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29025 }
29026
29027
29028
29029
29030
29031
29032
29033 func (c *ProjectsLocationsDataStoresConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListConversationsResponse, error) {
29034 gensupport.SetOptions(c.urlParams_, opts...)
29035 res, err := c.doRequest("json")
29036 if res != nil && res.StatusCode == http.StatusNotModified {
29037 if res.Body != nil {
29038 res.Body.Close()
29039 }
29040 return nil, gensupport.WrapError(&googleapi.Error{
29041 Code: res.StatusCode,
29042 Header: res.Header,
29043 })
29044 }
29045 if err != nil {
29046 return nil, err
29047 }
29048 defer googleapi.CloseBody(res)
29049 if err := googleapi.CheckResponse(res); err != nil {
29050 return nil, gensupport.WrapError(err)
29051 }
29052 ret := &GoogleCloudDiscoveryengineV1alphaListConversationsResponse{
29053 ServerResponse: googleapi.ServerResponse{
29054 Header: res.Header,
29055 HTTPStatusCode: res.StatusCode,
29056 },
29057 }
29058 target := &ret
29059 if err := gensupport.DecodeResponse(target, res); err != nil {
29060 return nil, err
29061 }
29062 return ret, nil
29063 }
29064
29065
29066
29067
29068 func (c *ProjectsLocationsDataStoresConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListConversationsResponse) error) error {
29069 c.ctx_ = ctx
29070 defer c.PageToken(c.urlParams_.Get("pageToken"))
29071 for {
29072 x, err := c.Do()
29073 if err != nil {
29074 return err
29075 }
29076 if err := f(x); err != nil {
29077 return err
29078 }
29079 if x.NextPageToken == "" {
29080 return nil
29081 }
29082 c.PageToken(x.NextPageToken)
29083 }
29084 }
29085
29086 type ProjectsLocationsDataStoresConversationsPatchCall struct {
29087 s *Service
29088 name string
29089 googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation
29090 urlParams_ gensupport.URLParams
29091 ctx_ context.Context
29092 header_ http.Header
29093 }
29094
29095
29096
29097
29098
29099
29100
29101
29102
29103 func (r *ProjectsLocationsDataStoresConversationsService) Patch(name string, googleclouddiscoveryenginev1alphaconversation *GoogleCloudDiscoveryengineV1alphaConversation) *ProjectsLocationsDataStoresConversationsPatchCall {
29104 c := &ProjectsLocationsDataStoresConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29105 c.name = name
29106 c.googleclouddiscoveryenginev1alphaconversation = googleclouddiscoveryenginev1alphaconversation
29107 return c
29108 }
29109
29110
29111
29112
29113 func (c *ProjectsLocationsDataStoresConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresConversationsPatchCall {
29114 c.urlParams_.Set("updateMask", updateMask)
29115 return c
29116 }
29117
29118
29119
29120
29121 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresConversationsPatchCall {
29122 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29123 return c
29124 }
29125
29126
29127 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresConversationsPatchCall {
29128 c.ctx_ = ctx
29129 return c
29130 }
29131
29132
29133
29134 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Header() http.Header {
29135 if c.header_ == nil {
29136 c.header_ = make(http.Header)
29137 }
29138 return c.header_
29139 }
29140
29141 func (c *ProjectsLocationsDataStoresConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
29142 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29143 var body io.Reader = nil
29144 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaconversation)
29145 if err != nil {
29146 return nil, err
29147 }
29148 c.urlParams_.Set("alt", alt)
29149 c.urlParams_.Set("prettyPrint", "false")
29150 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
29151 urls += "?" + c.urlParams_.Encode()
29152 req, err := http.NewRequest("PATCH", urls, body)
29153 if err != nil {
29154 return nil, err
29155 }
29156 req.Header = reqHeaders
29157 googleapi.Expand(req.URL, map[string]string{
29158 "name": c.name,
29159 })
29160 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29161 }
29162
29163
29164
29165
29166
29167
29168
29169 func (c *ProjectsLocationsDataStoresConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaConversation, error) {
29170 gensupport.SetOptions(c.urlParams_, opts...)
29171 res, err := c.doRequest("json")
29172 if res != nil && res.StatusCode == http.StatusNotModified {
29173 if res.Body != nil {
29174 res.Body.Close()
29175 }
29176 return nil, gensupport.WrapError(&googleapi.Error{
29177 Code: res.StatusCode,
29178 Header: res.Header,
29179 })
29180 }
29181 if err != nil {
29182 return nil, err
29183 }
29184 defer googleapi.CloseBody(res)
29185 if err := googleapi.CheckResponse(res); err != nil {
29186 return nil, gensupport.WrapError(err)
29187 }
29188 ret := &GoogleCloudDiscoveryengineV1alphaConversation{
29189 ServerResponse: googleapi.ServerResponse{
29190 Header: res.Header,
29191 HTTPStatusCode: res.StatusCode,
29192 },
29193 }
29194 target := &ret
29195 if err := gensupport.DecodeResponse(target, res); err != nil {
29196 return nil, err
29197 }
29198 return ret, nil
29199 }
29200
29201 type ProjectsLocationsDataStoresModelsOperationsGetCall struct {
29202 s *Service
29203 name string
29204 urlParams_ gensupport.URLParams
29205 ifNoneMatch_ string
29206 ctx_ context.Context
29207 header_ http.Header
29208 }
29209
29210
29211
29212
29213
29214
29215 func (r *ProjectsLocationsDataStoresModelsOperationsService) Get(name string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
29216 c := &ProjectsLocationsDataStoresModelsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29217 c.name = name
29218 return c
29219 }
29220
29221
29222
29223
29224 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsGetCall {
29225 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29226 return c
29227 }
29228
29229
29230
29231
29232 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsGetCall {
29233 c.ifNoneMatch_ = entityTag
29234 return c
29235 }
29236
29237
29238 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsGetCall {
29239 c.ctx_ = ctx
29240 return c
29241 }
29242
29243
29244
29245 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Header() http.Header {
29246 if c.header_ == nil {
29247 c.header_ = make(http.Header)
29248 }
29249 return c.header_
29250 }
29251
29252 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
29253 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29254 if c.ifNoneMatch_ != "" {
29255 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29256 }
29257 var body io.Reader = nil
29258 c.urlParams_.Set("alt", alt)
29259 c.urlParams_.Set("prettyPrint", "false")
29260 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
29261 urls += "?" + c.urlParams_.Encode()
29262 req, err := http.NewRequest("GET", urls, body)
29263 if err != nil {
29264 return nil, err
29265 }
29266 req.Header = reqHeaders
29267 googleapi.Expand(req.URL, map[string]string{
29268 "name": c.name,
29269 })
29270 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29271 }
29272
29273
29274
29275
29276
29277
29278
29279 func (c *ProjectsLocationsDataStoresModelsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29280 gensupport.SetOptions(c.urlParams_, opts...)
29281 res, err := c.doRequest("json")
29282 if res != nil && res.StatusCode == http.StatusNotModified {
29283 if res.Body != nil {
29284 res.Body.Close()
29285 }
29286 return nil, gensupport.WrapError(&googleapi.Error{
29287 Code: res.StatusCode,
29288 Header: res.Header,
29289 })
29290 }
29291 if err != nil {
29292 return nil, err
29293 }
29294 defer googleapi.CloseBody(res)
29295 if err := googleapi.CheckResponse(res); err != nil {
29296 return nil, gensupport.WrapError(err)
29297 }
29298 ret := &GoogleLongrunningOperation{
29299 ServerResponse: googleapi.ServerResponse{
29300 Header: res.Header,
29301 HTTPStatusCode: res.StatusCode,
29302 },
29303 }
29304 target := &ret
29305 if err := gensupport.DecodeResponse(target, res); err != nil {
29306 return nil, err
29307 }
29308 return ret, nil
29309 }
29310
29311 type ProjectsLocationsDataStoresModelsOperationsListCall struct {
29312 s *Service
29313 name string
29314 urlParams_ gensupport.URLParams
29315 ifNoneMatch_ string
29316 ctx_ context.Context
29317 header_ http.Header
29318 }
29319
29320
29321
29322
29323
29324 func (r *ProjectsLocationsDataStoresModelsOperationsService) List(name string) *ProjectsLocationsDataStoresModelsOperationsListCall {
29325 c := &ProjectsLocationsDataStoresModelsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29326 c.name = name
29327 return c
29328 }
29329
29330
29331 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresModelsOperationsListCall {
29332 c.urlParams_.Set("filter", filter)
29333 return c
29334 }
29335
29336
29337
29338 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresModelsOperationsListCall {
29339 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29340 return c
29341 }
29342
29343
29344
29345 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresModelsOperationsListCall {
29346 c.urlParams_.Set("pageToken", pageToken)
29347 return c
29348 }
29349
29350
29351
29352
29353 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresModelsOperationsListCall {
29354 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29355 return c
29356 }
29357
29358
29359
29360
29361 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresModelsOperationsListCall {
29362 c.ifNoneMatch_ = entityTag
29363 return c
29364 }
29365
29366
29367 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresModelsOperationsListCall {
29368 c.ctx_ = ctx
29369 return c
29370 }
29371
29372
29373
29374 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Header() http.Header {
29375 if c.header_ == nil {
29376 c.header_ = make(http.Header)
29377 }
29378 return c.header_
29379 }
29380
29381 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) doRequest(alt string) (*http.Response, error) {
29382 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29383 if c.ifNoneMatch_ != "" {
29384 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29385 }
29386 var body io.Reader = nil
29387 c.urlParams_.Set("alt", alt)
29388 c.urlParams_.Set("prettyPrint", "false")
29389 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
29390 urls += "?" + c.urlParams_.Encode()
29391 req, err := http.NewRequest("GET", urls, body)
29392 if err != nil {
29393 return nil, err
29394 }
29395 req.Header = reqHeaders
29396 googleapi.Expand(req.URL, map[string]string{
29397 "name": c.name,
29398 })
29399 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29400 }
29401
29402
29403
29404
29405
29406
29407
29408 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
29409 gensupport.SetOptions(c.urlParams_, opts...)
29410 res, err := c.doRequest("json")
29411 if res != nil && res.StatusCode == http.StatusNotModified {
29412 if res.Body != nil {
29413 res.Body.Close()
29414 }
29415 return nil, gensupport.WrapError(&googleapi.Error{
29416 Code: res.StatusCode,
29417 Header: res.Header,
29418 })
29419 }
29420 if err != nil {
29421 return nil, err
29422 }
29423 defer googleapi.CloseBody(res)
29424 if err := googleapi.CheckResponse(res); err != nil {
29425 return nil, gensupport.WrapError(err)
29426 }
29427 ret := &GoogleLongrunningListOperationsResponse{
29428 ServerResponse: googleapi.ServerResponse{
29429 Header: res.Header,
29430 HTTPStatusCode: res.StatusCode,
29431 },
29432 }
29433 target := &ret
29434 if err := gensupport.DecodeResponse(target, res); err != nil {
29435 return nil, err
29436 }
29437 return ret, nil
29438 }
29439
29440
29441
29442
29443 func (c *ProjectsLocationsDataStoresModelsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
29444 c.ctx_ = ctx
29445 defer c.PageToken(c.urlParams_.Get("pageToken"))
29446 for {
29447 x, err := c.Do()
29448 if err != nil {
29449 return err
29450 }
29451 if err := f(x); err != nil {
29452 return err
29453 }
29454 if x.NextPageToken == "" {
29455 return nil
29456 }
29457 c.PageToken(x.NextPageToken)
29458 }
29459 }
29460
29461 type ProjectsLocationsDataStoresOperationsGetCall struct {
29462 s *Service
29463 name string
29464 urlParams_ gensupport.URLParams
29465 ifNoneMatch_ string
29466 ctx_ context.Context
29467 header_ http.Header
29468 }
29469
29470
29471
29472
29473
29474
29475 func (r *ProjectsLocationsDataStoresOperationsService) Get(name string) *ProjectsLocationsDataStoresOperationsGetCall {
29476 c := &ProjectsLocationsDataStoresOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29477 c.name = name
29478 return c
29479 }
29480
29481
29482
29483
29484 func (c *ProjectsLocationsDataStoresOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsGetCall {
29485 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29486 return c
29487 }
29488
29489
29490
29491
29492 func (c *ProjectsLocationsDataStoresOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsGetCall {
29493 c.ifNoneMatch_ = entityTag
29494 return c
29495 }
29496
29497
29498 func (c *ProjectsLocationsDataStoresOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsGetCall {
29499 c.ctx_ = ctx
29500 return c
29501 }
29502
29503
29504
29505 func (c *ProjectsLocationsDataStoresOperationsGetCall) Header() http.Header {
29506 if c.header_ == nil {
29507 c.header_ = make(http.Header)
29508 }
29509 return c.header_
29510 }
29511
29512 func (c *ProjectsLocationsDataStoresOperationsGetCall) doRequest(alt string) (*http.Response, error) {
29513 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29514 if c.ifNoneMatch_ != "" {
29515 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29516 }
29517 var body io.Reader = nil
29518 c.urlParams_.Set("alt", alt)
29519 c.urlParams_.Set("prettyPrint", "false")
29520 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
29521 urls += "?" + c.urlParams_.Encode()
29522 req, err := http.NewRequest("GET", urls, body)
29523 if err != nil {
29524 return nil, err
29525 }
29526 req.Header = reqHeaders
29527 googleapi.Expand(req.URL, map[string]string{
29528 "name": c.name,
29529 })
29530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29531 }
29532
29533
29534
29535
29536
29537
29538
29539 func (c *ProjectsLocationsDataStoresOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29540 gensupport.SetOptions(c.urlParams_, opts...)
29541 res, err := c.doRequest("json")
29542 if res != nil && res.StatusCode == http.StatusNotModified {
29543 if res.Body != nil {
29544 res.Body.Close()
29545 }
29546 return nil, gensupport.WrapError(&googleapi.Error{
29547 Code: res.StatusCode,
29548 Header: res.Header,
29549 })
29550 }
29551 if err != nil {
29552 return nil, err
29553 }
29554 defer googleapi.CloseBody(res)
29555 if err := googleapi.CheckResponse(res); err != nil {
29556 return nil, gensupport.WrapError(err)
29557 }
29558 ret := &GoogleLongrunningOperation{
29559 ServerResponse: googleapi.ServerResponse{
29560 Header: res.Header,
29561 HTTPStatusCode: res.StatusCode,
29562 },
29563 }
29564 target := &ret
29565 if err := gensupport.DecodeResponse(target, res); err != nil {
29566 return nil, err
29567 }
29568 return ret, nil
29569 }
29570
29571 type ProjectsLocationsDataStoresOperationsListCall struct {
29572 s *Service
29573 name string
29574 urlParams_ gensupport.URLParams
29575 ifNoneMatch_ string
29576 ctx_ context.Context
29577 header_ http.Header
29578 }
29579
29580
29581
29582
29583
29584 func (r *ProjectsLocationsDataStoresOperationsService) List(name string) *ProjectsLocationsDataStoresOperationsListCall {
29585 c := &ProjectsLocationsDataStoresOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29586 c.name = name
29587 return c
29588 }
29589
29590
29591 func (c *ProjectsLocationsDataStoresOperationsListCall) Filter(filter string) *ProjectsLocationsDataStoresOperationsListCall {
29592 c.urlParams_.Set("filter", filter)
29593 return c
29594 }
29595
29596
29597
29598 func (c *ProjectsLocationsDataStoresOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresOperationsListCall {
29599 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29600 return c
29601 }
29602
29603
29604
29605 func (c *ProjectsLocationsDataStoresOperationsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresOperationsListCall {
29606 c.urlParams_.Set("pageToken", pageToken)
29607 return c
29608 }
29609
29610
29611
29612
29613 func (c *ProjectsLocationsDataStoresOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresOperationsListCall {
29614 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29615 return c
29616 }
29617
29618
29619
29620
29621 func (c *ProjectsLocationsDataStoresOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresOperationsListCall {
29622 c.ifNoneMatch_ = entityTag
29623 return c
29624 }
29625
29626
29627 func (c *ProjectsLocationsDataStoresOperationsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresOperationsListCall {
29628 c.ctx_ = ctx
29629 return c
29630 }
29631
29632
29633
29634 func (c *ProjectsLocationsDataStoresOperationsListCall) Header() http.Header {
29635 if c.header_ == nil {
29636 c.header_ = make(http.Header)
29637 }
29638 return c.header_
29639 }
29640
29641 func (c *ProjectsLocationsDataStoresOperationsListCall) doRequest(alt string) (*http.Response, error) {
29642 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29643 if c.ifNoneMatch_ != "" {
29644 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29645 }
29646 var body io.Reader = nil
29647 c.urlParams_.Set("alt", alt)
29648 c.urlParams_.Set("prettyPrint", "false")
29649 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
29650 urls += "?" + c.urlParams_.Encode()
29651 req, err := http.NewRequest("GET", urls, body)
29652 if err != nil {
29653 return nil, err
29654 }
29655 req.Header = reqHeaders
29656 googleapi.Expand(req.URL, map[string]string{
29657 "name": c.name,
29658 })
29659 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29660 }
29661
29662
29663
29664
29665
29666
29667
29668 func (c *ProjectsLocationsDataStoresOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
29669 gensupport.SetOptions(c.urlParams_, opts...)
29670 res, err := c.doRequest("json")
29671 if res != nil && res.StatusCode == http.StatusNotModified {
29672 if res.Body != nil {
29673 res.Body.Close()
29674 }
29675 return nil, gensupport.WrapError(&googleapi.Error{
29676 Code: res.StatusCode,
29677 Header: res.Header,
29678 })
29679 }
29680 if err != nil {
29681 return nil, err
29682 }
29683 defer googleapi.CloseBody(res)
29684 if err := googleapi.CheckResponse(res); err != nil {
29685 return nil, gensupport.WrapError(err)
29686 }
29687 ret := &GoogleLongrunningListOperationsResponse{
29688 ServerResponse: googleapi.ServerResponse{
29689 Header: res.Header,
29690 HTTPStatusCode: res.StatusCode,
29691 },
29692 }
29693 target := &ret
29694 if err := gensupport.DecodeResponse(target, res); err != nil {
29695 return nil, err
29696 }
29697 return ret, nil
29698 }
29699
29700
29701
29702
29703 func (c *ProjectsLocationsDataStoresOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
29704 c.ctx_ = ctx
29705 defer c.PageToken(c.urlParams_.Get("pageToken"))
29706 for {
29707 x, err := c.Do()
29708 if err != nil {
29709 return err
29710 }
29711 if err := f(x); err != nil {
29712 return err
29713 }
29714 if x.NextPageToken == "" {
29715 return nil
29716 }
29717 c.PageToken(x.NextPageToken)
29718 }
29719 }
29720
29721 type ProjectsLocationsDataStoresSchemasCreateCall struct {
29722 s *Service
29723 parent string
29724 googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
29725 urlParams_ gensupport.URLParams
29726 ctx_ context.Context
29727 header_ http.Header
29728 }
29729
29730
29731
29732
29733
29734
29735 func (r *ProjectsLocationsDataStoresSchemasService) Create(parent string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsDataStoresSchemasCreateCall {
29736 c := &ProjectsLocationsDataStoresSchemasCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29737 c.parent = parent
29738 c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
29739 return c
29740 }
29741
29742
29743
29744
29745
29746 func (c *ProjectsLocationsDataStoresSchemasCreateCall) SchemaId(schemaId string) *ProjectsLocationsDataStoresSchemasCreateCall {
29747 c.urlParams_.Set("schemaId", schemaId)
29748 return c
29749 }
29750
29751
29752
29753
29754 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasCreateCall {
29755 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29756 return c
29757 }
29758
29759
29760 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasCreateCall {
29761 c.ctx_ = ctx
29762 return c
29763 }
29764
29765
29766
29767 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Header() http.Header {
29768 if c.header_ == nil {
29769 c.header_ = make(http.Header)
29770 }
29771 return c.header_
29772 }
29773
29774 func (c *ProjectsLocationsDataStoresSchemasCreateCall) doRequest(alt string) (*http.Response, error) {
29775 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29776 var body io.Reader = nil
29777 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
29778 if err != nil {
29779 return nil, err
29780 }
29781 c.urlParams_.Set("alt", alt)
29782 c.urlParams_.Set("prettyPrint", "false")
29783 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/schemas")
29784 urls += "?" + c.urlParams_.Encode()
29785 req, err := http.NewRequest("POST", urls, body)
29786 if err != nil {
29787 return nil, err
29788 }
29789 req.Header = reqHeaders
29790 googleapi.Expand(req.URL, map[string]string{
29791 "parent": c.parent,
29792 })
29793 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29794 }
29795
29796
29797
29798
29799
29800
29801
29802 func (c *ProjectsLocationsDataStoresSchemasCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29803 gensupport.SetOptions(c.urlParams_, opts...)
29804 res, err := c.doRequest("json")
29805 if res != nil && res.StatusCode == http.StatusNotModified {
29806 if res.Body != nil {
29807 res.Body.Close()
29808 }
29809 return nil, gensupport.WrapError(&googleapi.Error{
29810 Code: res.StatusCode,
29811 Header: res.Header,
29812 })
29813 }
29814 if err != nil {
29815 return nil, err
29816 }
29817 defer googleapi.CloseBody(res)
29818 if err := googleapi.CheckResponse(res); err != nil {
29819 return nil, gensupport.WrapError(err)
29820 }
29821 ret := &GoogleLongrunningOperation{
29822 ServerResponse: googleapi.ServerResponse{
29823 Header: res.Header,
29824 HTTPStatusCode: res.StatusCode,
29825 },
29826 }
29827 target := &ret
29828 if err := gensupport.DecodeResponse(target, res); err != nil {
29829 return nil, err
29830 }
29831 return ret, nil
29832 }
29833
29834 type ProjectsLocationsDataStoresSchemasDeleteCall struct {
29835 s *Service
29836 name string
29837 urlParams_ gensupport.URLParams
29838 ctx_ context.Context
29839 header_ http.Header
29840 }
29841
29842
29843
29844
29845
29846
29847 func (r *ProjectsLocationsDataStoresSchemasService) Delete(name string) *ProjectsLocationsDataStoresSchemasDeleteCall {
29848 c := &ProjectsLocationsDataStoresSchemasDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29849 c.name = name
29850 return c
29851 }
29852
29853
29854
29855
29856 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasDeleteCall {
29857 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29858 return c
29859 }
29860
29861
29862 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasDeleteCall {
29863 c.ctx_ = ctx
29864 return c
29865 }
29866
29867
29868
29869 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Header() http.Header {
29870 if c.header_ == nil {
29871 c.header_ = make(http.Header)
29872 }
29873 return c.header_
29874 }
29875
29876 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) doRequest(alt string) (*http.Response, error) {
29877 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29878 var body io.Reader = nil
29879 c.urlParams_.Set("alt", alt)
29880 c.urlParams_.Set("prettyPrint", "false")
29881 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
29882 urls += "?" + c.urlParams_.Encode()
29883 req, err := http.NewRequest("DELETE", urls, body)
29884 if err != nil {
29885 return nil, err
29886 }
29887 req.Header = reqHeaders
29888 googleapi.Expand(req.URL, map[string]string{
29889 "name": c.name,
29890 })
29891 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29892 }
29893
29894
29895
29896
29897
29898
29899
29900 func (c *ProjectsLocationsDataStoresSchemasDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29901 gensupport.SetOptions(c.urlParams_, opts...)
29902 res, err := c.doRequest("json")
29903 if res != nil && res.StatusCode == http.StatusNotModified {
29904 if res.Body != nil {
29905 res.Body.Close()
29906 }
29907 return nil, gensupport.WrapError(&googleapi.Error{
29908 Code: res.StatusCode,
29909 Header: res.Header,
29910 })
29911 }
29912 if err != nil {
29913 return nil, err
29914 }
29915 defer googleapi.CloseBody(res)
29916 if err := googleapi.CheckResponse(res); err != nil {
29917 return nil, gensupport.WrapError(err)
29918 }
29919 ret := &GoogleLongrunningOperation{
29920 ServerResponse: googleapi.ServerResponse{
29921 Header: res.Header,
29922 HTTPStatusCode: res.StatusCode,
29923 },
29924 }
29925 target := &ret
29926 if err := gensupport.DecodeResponse(target, res); err != nil {
29927 return nil, err
29928 }
29929 return ret, nil
29930 }
29931
29932 type ProjectsLocationsDataStoresSchemasGetCall struct {
29933 s *Service
29934 name string
29935 urlParams_ gensupport.URLParams
29936 ifNoneMatch_ string
29937 ctx_ context.Context
29938 header_ http.Header
29939 }
29940
29941
29942
29943
29944
29945
29946 func (r *ProjectsLocationsDataStoresSchemasService) Get(name string) *ProjectsLocationsDataStoresSchemasGetCall {
29947 c := &ProjectsLocationsDataStoresSchemasGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29948 c.name = name
29949 return c
29950 }
29951
29952
29953
29954
29955 func (c *ProjectsLocationsDataStoresSchemasGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasGetCall {
29956 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29957 return c
29958 }
29959
29960
29961
29962
29963 func (c *ProjectsLocationsDataStoresSchemasGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasGetCall {
29964 c.ifNoneMatch_ = entityTag
29965 return c
29966 }
29967
29968
29969 func (c *ProjectsLocationsDataStoresSchemasGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasGetCall {
29970 c.ctx_ = ctx
29971 return c
29972 }
29973
29974
29975
29976 func (c *ProjectsLocationsDataStoresSchemasGetCall) Header() http.Header {
29977 if c.header_ == nil {
29978 c.header_ = make(http.Header)
29979 }
29980 return c.header_
29981 }
29982
29983 func (c *ProjectsLocationsDataStoresSchemasGetCall) doRequest(alt string) (*http.Response, error) {
29984 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29985 if c.ifNoneMatch_ != "" {
29986 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29987 }
29988 var body io.Reader = nil
29989 c.urlParams_.Set("alt", alt)
29990 c.urlParams_.Set("prettyPrint", "false")
29991 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
29992 urls += "?" + c.urlParams_.Encode()
29993 req, err := http.NewRequest("GET", urls, body)
29994 if err != nil {
29995 return nil, err
29996 }
29997 req.Header = reqHeaders
29998 googleapi.Expand(req.URL, map[string]string{
29999 "name": c.name,
30000 })
30001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30002 }
30003
30004
30005
30006
30007
30008
30009
30010 func (c *ProjectsLocationsDataStoresSchemasGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSchema, error) {
30011 gensupport.SetOptions(c.urlParams_, opts...)
30012 res, err := c.doRequest("json")
30013 if res != nil && res.StatusCode == http.StatusNotModified {
30014 if res.Body != nil {
30015 res.Body.Close()
30016 }
30017 return nil, gensupport.WrapError(&googleapi.Error{
30018 Code: res.StatusCode,
30019 Header: res.Header,
30020 })
30021 }
30022 if err != nil {
30023 return nil, err
30024 }
30025 defer googleapi.CloseBody(res)
30026 if err := googleapi.CheckResponse(res); err != nil {
30027 return nil, gensupport.WrapError(err)
30028 }
30029 ret := &GoogleCloudDiscoveryengineV1alphaSchema{
30030 ServerResponse: googleapi.ServerResponse{
30031 Header: res.Header,
30032 HTTPStatusCode: res.StatusCode,
30033 },
30034 }
30035 target := &ret
30036 if err := gensupport.DecodeResponse(target, res); err != nil {
30037 return nil, err
30038 }
30039 return ret, nil
30040 }
30041
30042 type ProjectsLocationsDataStoresSchemasListCall struct {
30043 s *Service
30044 parent string
30045 urlParams_ gensupport.URLParams
30046 ifNoneMatch_ string
30047 ctx_ context.Context
30048 header_ http.Header
30049 }
30050
30051
30052
30053
30054
30055
30056 func (r *ProjectsLocationsDataStoresSchemasService) List(parent string) *ProjectsLocationsDataStoresSchemasListCall {
30057 c := &ProjectsLocationsDataStoresSchemasListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30058 c.parent = parent
30059 return c
30060 }
30061
30062
30063
30064
30065
30066 func (c *ProjectsLocationsDataStoresSchemasListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSchemasListCall {
30067 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30068 return c
30069 }
30070
30071
30072
30073
30074
30075 func (c *ProjectsLocationsDataStoresSchemasListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSchemasListCall {
30076 c.urlParams_.Set("pageToken", pageToken)
30077 return c
30078 }
30079
30080
30081
30082
30083 func (c *ProjectsLocationsDataStoresSchemasListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasListCall {
30084 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30085 return c
30086 }
30087
30088
30089
30090
30091 func (c *ProjectsLocationsDataStoresSchemasListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSchemasListCall {
30092 c.ifNoneMatch_ = entityTag
30093 return c
30094 }
30095
30096
30097 func (c *ProjectsLocationsDataStoresSchemasListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasListCall {
30098 c.ctx_ = ctx
30099 return c
30100 }
30101
30102
30103
30104 func (c *ProjectsLocationsDataStoresSchemasListCall) Header() http.Header {
30105 if c.header_ == nil {
30106 c.header_ = make(http.Header)
30107 }
30108 return c.header_
30109 }
30110
30111 func (c *ProjectsLocationsDataStoresSchemasListCall) doRequest(alt string) (*http.Response, error) {
30112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30113 if c.ifNoneMatch_ != "" {
30114 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30115 }
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, "v1alpha/{+parent}/schemas")
30120 urls += "?" + c.urlParams_.Encode()
30121 req, err := http.NewRequest("GET", urls, body)
30122 if err != nil {
30123 return nil, err
30124 }
30125 req.Header = reqHeaders
30126 googleapi.Expand(req.URL, map[string]string{
30127 "parent": c.parent,
30128 })
30129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30130 }
30131
30132
30133
30134
30135
30136
30137
30138 func (c *ProjectsLocationsDataStoresSchemasListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSchemasResponse, 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 := &GoogleCloudDiscoveryengineV1alphaListSchemasResponse{
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
30171
30172
30173 func (c *ProjectsLocationsDataStoresSchemasListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSchemasResponse) error) error {
30174 c.ctx_ = ctx
30175 defer c.PageToken(c.urlParams_.Get("pageToken"))
30176 for {
30177 x, err := c.Do()
30178 if err != nil {
30179 return err
30180 }
30181 if err := f(x); err != nil {
30182 return err
30183 }
30184 if x.NextPageToken == "" {
30185 return nil
30186 }
30187 c.PageToken(x.NextPageToken)
30188 }
30189 }
30190
30191 type ProjectsLocationsDataStoresSchemasPatchCall struct {
30192 s *Service
30193 name string
30194 googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema
30195 urlParams_ gensupport.URLParams
30196 ctx_ context.Context
30197 header_ http.Header
30198 }
30199
30200
30201
30202
30203
30204
30205
30206 func (r *ProjectsLocationsDataStoresSchemasService) Patch(name string, googleclouddiscoveryenginev1alphaschema *GoogleCloudDiscoveryengineV1alphaSchema) *ProjectsLocationsDataStoresSchemasPatchCall {
30207 c := &ProjectsLocationsDataStoresSchemasPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30208 c.name = name
30209 c.googleclouddiscoveryenginev1alphaschema = googleclouddiscoveryenginev1alphaschema
30210 return c
30211 }
30212
30213
30214
30215
30216 func (c *ProjectsLocationsDataStoresSchemasPatchCall) AllowMissing(allowMissing bool) *ProjectsLocationsDataStoresSchemasPatchCall {
30217 c.urlParams_.Set("allowMissing", fmt.Sprint(allowMissing))
30218 return c
30219 }
30220
30221
30222
30223
30224 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSchemasPatchCall {
30225 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30226 return c
30227 }
30228
30229
30230 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSchemasPatchCall {
30231 c.ctx_ = ctx
30232 return c
30233 }
30234
30235
30236
30237 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Header() http.Header {
30238 if c.header_ == nil {
30239 c.header_ = make(http.Header)
30240 }
30241 return c.header_
30242 }
30243
30244 func (c *ProjectsLocationsDataStoresSchemasPatchCall) doRequest(alt string) (*http.Response, error) {
30245 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30246 var body io.Reader = nil
30247 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaschema)
30248 if err != nil {
30249 return nil, err
30250 }
30251 c.urlParams_.Set("alt", alt)
30252 c.urlParams_.Set("prettyPrint", "false")
30253 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
30254 urls += "?" + c.urlParams_.Encode()
30255 req, err := http.NewRequest("PATCH", urls, body)
30256 if err != nil {
30257 return nil, err
30258 }
30259 req.Header = reqHeaders
30260 googleapi.Expand(req.URL, map[string]string{
30261 "name": c.name,
30262 })
30263 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30264 }
30265
30266
30267
30268
30269
30270
30271
30272 func (c *ProjectsLocationsDataStoresSchemasPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30273 gensupport.SetOptions(c.urlParams_, opts...)
30274 res, err := c.doRequest("json")
30275 if res != nil && res.StatusCode == http.StatusNotModified {
30276 if res.Body != nil {
30277 res.Body.Close()
30278 }
30279 return nil, gensupport.WrapError(&googleapi.Error{
30280 Code: res.StatusCode,
30281 Header: res.Header,
30282 })
30283 }
30284 if err != nil {
30285 return nil, err
30286 }
30287 defer googleapi.CloseBody(res)
30288 if err := googleapi.CheckResponse(res); err != nil {
30289 return nil, gensupport.WrapError(err)
30290 }
30291 ret := &GoogleLongrunningOperation{
30292 ServerResponse: googleapi.ServerResponse{
30293 Header: res.Header,
30294 HTTPStatusCode: res.StatusCode,
30295 },
30296 }
30297 target := &ret
30298 if err := gensupport.DecodeResponse(target, res); err != nil {
30299 return nil, err
30300 }
30301 return ret, nil
30302 }
30303
30304 type ProjectsLocationsDataStoresServingConfigsAnswerCall struct {
30305 s *Service
30306 servingConfig string
30307 googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest
30308 urlParams_ gensupport.URLParams
30309 ctx_ context.Context
30310 header_ http.Header
30311 }
30312
30313
30314
30315
30316
30317
30318
30319
30320
30321 func (r *ProjectsLocationsDataStoresServingConfigsService) Answer(servingConfig string, googleclouddiscoveryenginev1alphaanswerqueryrequest *GoogleCloudDiscoveryengineV1alphaAnswerQueryRequest) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
30322 c := &ProjectsLocationsDataStoresServingConfigsAnswerCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30323 c.servingConfig = servingConfig
30324 c.googleclouddiscoveryenginev1alphaanswerqueryrequest = googleclouddiscoveryenginev1alphaanswerqueryrequest
30325 return c
30326 }
30327
30328
30329
30330
30331 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
30332 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30333 return c
30334 }
30335
30336
30337 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsAnswerCall {
30338 c.ctx_ = ctx
30339 return c
30340 }
30341
30342
30343
30344 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Header() http.Header {
30345 if c.header_ == nil {
30346 c.header_ = make(http.Header)
30347 }
30348 return c.header_
30349 }
30350
30351 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) doRequest(alt string) (*http.Response, error) {
30352 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30353 var body io.Reader = nil
30354 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaanswerqueryrequest)
30355 if err != nil {
30356 return nil, err
30357 }
30358 c.urlParams_.Set("alt", alt)
30359 c.urlParams_.Set("prettyPrint", "false")
30360 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:answer")
30361 urls += "?" + c.urlParams_.Encode()
30362 req, err := http.NewRequest("POST", urls, body)
30363 if err != nil {
30364 return nil, err
30365 }
30366 req.Header = reqHeaders
30367 googleapi.Expand(req.URL, map[string]string{
30368 "servingConfig": c.servingConfig,
30369 })
30370 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30371 }
30372
30373
30374
30375
30376
30377
30378
30379 func (c *ProjectsLocationsDataStoresServingConfigsAnswerCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse, error) {
30380 gensupport.SetOptions(c.urlParams_, opts...)
30381 res, err := c.doRequest("json")
30382 if res != nil && res.StatusCode == http.StatusNotModified {
30383 if res.Body != nil {
30384 res.Body.Close()
30385 }
30386 return nil, gensupport.WrapError(&googleapi.Error{
30387 Code: res.StatusCode,
30388 Header: res.Header,
30389 })
30390 }
30391 if err != nil {
30392 return nil, err
30393 }
30394 defer googleapi.CloseBody(res)
30395 if err := googleapi.CheckResponse(res); err != nil {
30396 return nil, gensupport.WrapError(err)
30397 }
30398 ret := &GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse{
30399 ServerResponse: googleapi.ServerResponse{
30400 Header: res.Header,
30401 HTTPStatusCode: res.StatusCode,
30402 },
30403 }
30404 target := &ret
30405 if err := gensupport.DecodeResponse(target, res); err != nil {
30406 return nil, err
30407 }
30408 return ret, nil
30409 }
30410
30411 type ProjectsLocationsDataStoresServingConfigsGetCall struct {
30412 s *Service
30413 name string
30414 urlParams_ gensupport.URLParams
30415 ifNoneMatch_ string
30416 ctx_ context.Context
30417 header_ http.Header
30418 }
30419
30420
30421
30422
30423
30424
30425
30426 func (r *ProjectsLocationsDataStoresServingConfigsService) Get(name string) *ProjectsLocationsDataStoresServingConfigsGetCall {
30427 c := &ProjectsLocationsDataStoresServingConfigsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30428 c.name = name
30429 return c
30430 }
30431
30432
30433
30434
30435 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsGetCall {
30436 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30437 return c
30438 }
30439
30440
30441
30442
30443 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsGetCall {
30444 c.ifNoneMatch_ = entityTag
30445 return c
30446 }
30447
30448
30449 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsGetCall {
30450 c.ctx_ = ctx
30451 return c
30452 }
30453
30454
30455
30456 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Header() http.Header {
30457 if c.header_ == nil {
30458 c.header_ = make(http.Header)
30459 }
30460 return c.header_
30461 }
30462
30463 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) doRequest(alt string) (*http.Response, error) {
30464 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30465 if c.ifNoneMatch_ != "" {
30466 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30467 }
30468 var body io.Reader = nil
30469 c.urlParams_.Set("alt", alt)
30470 c.urlParams_.Set("prettyPrint", "false")
30471 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
30472 urls += "?" + c.urlParams_.Encode()
30473 req, err := http.NewRequest("GET", urls, body)
30474 if err != nil {
30475 return nil, err
30476 }
30477 req.Header = reqHeaders
30478 googleapi.Expand(req.URL, map[string]string{
30479 "name": c.name,
30480 })
30481 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30482 }
30483
30484
30485
30486
30487
30488
30489
30490 func (c *ProjectsLocationsDataStoresServingConfigsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
30491 gensupport.SetOptions(c.urlParams_, opts...)
30492 res, err := c.doRequest("json")
30493 if res != nil && res.StatusCode == http.StatusNotModified {
30494 if res.Body != nil {
30495 res.Body.Close()
30496 }
30497 return nil, gensupport.WrapError(&googleapi.Error{
30498 Code: res.StatusCode,
30499 Header: res.Header,
30500 })
30501 }
30502 if err != nil {
30503 return nil, err
30504 }
30505 defer googleapi.CloseBody(res)
30506 if err := googleapi.CheckResponse(res); err != nil {
30507 return nil, gensupport.WrapError(err)
30508 }
30509 ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
30510 ServerResponse: googleapi.ServerResponse{
30511 Header: res.Header,
30512 HTTPStatusCode: res.StatusCode,
30513 },
30514 }
30515 target := &ret
30516 if err := gensupport.DecodeResponse(target, res); err != nil {
30517 return nil, err
30518 }
30519 return ret, nil
30520 }
30521
30522 type ProjectsLocationsDataStoresServingConfigsListCall struct {
30523 s *Service
30524 parent string
30525 urlParams_ gensupport.URLParams
30526 ifNoneMatch_ string
30527 ctx_ context.Context
30528 header_ http.Header
30529 }
30530
30531
30532
30533
30534
30535
30536 func (r *ProjectsLocationsDataStoresServingConfigsService) List(parent string) *ProjectsLocationsDataStoresServingConfigsListCall {
30537 c := &ProjectsLocationsDataStoresServingConfigsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30538 c.parent = parent
30539 return c
30540 }
30541
30542
30543
30544
30545 func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresServingConfigsListCall {
30546 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30547 return c
30548 }
30549
30550
30551
30552
30553 func (c *ProjectsLocationsDataStoresServingConfigsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresServingConfigsListCall {
30554 c.urlParams_.Set("pageToken", pageToken)
30555 return c
30556 }
30557
30558
30559
30560
30561 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsListCall {
30562 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30563 return c
30564 }
30565
30566
30567
30568
30569 func (c *ProjectsLocationsDataStoresServingConfigsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresServingConfigsListCall {
30570 c.ifNoneMatch_ = entityTag
30571 return c
30572 }
30573
30574
30575 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsListCall {
30576 c.ctx_ = ctx
30577 return c
30578 }
30579
30580
30581
30582 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Header() http.Header {
30583 if c.header_ == nil {
30584 c.header_ = make(http.Header)
30585 }
30586 return c.header_
30587 }
30588
30589 func (c *ProjectsLocationsDataStoresServingConfigsListCall) doRequest(alt string) (*http.Response, error) {
30590 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30591 if c.ifNoneMatch_ != "" {
30592 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30593 }
30594 var body io.Reader = nil
30595 c.urlParams_.Set("alt", alt)
30596 c.urlParams_.Set("prettyPrint", "false")
30597 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/servingConfigs")
30598 urls += "?" + c.urlParams_.Encode()
30599 req, err := http.NewRequest("GET", urls, body)
30600 if err != nil {
30601 return nil, err
30602 }
30603 req.Header = reqHeaders
30604 googleapi.Expand(req.URL, map[string]string{
30605 "parent": c.parent,
30606 })
30607 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30608 }
30609
30610
30611
30612
30613
30614
30615
30616 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse, error) {
30617 gensupport.SetOptions(c.urlParams_, opts...)
30618 res, err := c.doRequest("json")
30619 if res != nil && res.StatusCode == http.StatusNotModified {
30620 if res.Body != nil {
30621 res.Body.Close()
30622 }
30623 return nil, gensupport.WrapError(&googleapi.Error{
30624 Code: res.StatusCode,
30625 Header: res.Header,
30626 })
30627 }
30628 if err != nil {
30629 return nil, err
30630 }
30631 defer googleapi.CloseBody(res)
30632 if err := googleapi.CheckResponse(res); err != nil {
30633 return nil, gensupport.WrapError(err)
30634 }
30635 ret := &GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse{
30636 ServerResponse: googleapi.ServerResponse{
30637 Header: res.Header,
30638 HTTPStatusCode: res.StatusCode,
30639 },
30640 }
30641 target := &ret
30642 if err := gensupport.DecodeResponse(target, res); err != nil {
30643 return nil, err
30644 }
30645 return ret, nil
30646 }
30647
30648
30649
30650
30651 func (c *ProjectsLocationsDataStoresServingConfigsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListServingConfigsResponse) error) error {
30652 c.ctx_ = ctx
30653 defer c.PageToken(c.urlParams_.Get("pageToken"))
30654 for {
30655 x, err := c.Do()
30656 if err != nil {
30657 return err
30658 }
30659 if err := f(x); err != nil {
30660 return err
30661 }
30662 if x.NextPageToken == "" {
30663 return nil
30664 }
30665 c.PageToken(x.NextPageToken)
30666 }
30667 }
30668
30669 type ProjectsLocationsDataStoresServingConfigsPatchCall struct {
30670 s *Service
30671 name string
30672 googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig
30673 urlParams_ gensupport.URLParams
30674 ctx_ context.Context
30675 header_ http.Header
30676 }
30677
30678
30679
30680
30681
30682
30683
30684 func (r *ProjectsLocationsDataStoresServingConfigsService) Patch(name string, googleclouddiscoveryenginev1alphaservingconfig *GoogleCloudDiscoveryengineV1alphaServingConfig) *ProjectsLocationsDataStoresServingConfigsPatchCall {
30685 c := &ProjectsLocationsDataStoresServingConfigsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30686 c.name = name
30687 c.googleclouddiscoveryenginev1alphaservingconfig = googleclouddiscoveryenginev1alphaservingconfig
30688 return c
30689 }
30690
30691
30692
30693
30694 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresServingConfigsPatchCall {
30695 c.urlParams_.Set("updateMask", updateMask)
30696 return c
30697 }
30698
30699
30700
30701
30702 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsPatchCall {
30703 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30704 return c
30705 }
30706
30707
30708 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsPatchCall {
30709 c.ctx_ = ctx
30710 return c
30711 }
30712
30713
30714
30715 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Header() http.Header {
30716 if c.header_ == nil {
30717 c.header_ = make(http.Header)
30718 }
30719 return c.header_
30720 }
30721
30722 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) doRequest(alt string) (*http.Response, error) {
30723 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30724 var body io.Reader = nil
30725 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaservingconfig)
30726 if err != nil {
30727 return nil, err
30728 }
30729 c.urlParams_.Set("alt", alt)
30730 c.urlParams_.Set("prettyPrint", "false")
30731 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
30732 urls += "?" + c.urlParams_.Encode()
30733 req, err := http.NewRequest("PATCH", urls, body)
30734 if err != nil {
30735 return nil, err
30736 }
30737 req.Header = reqHeaders
30738 googleapi.Expand(req.URL, map[string]string{
30739 "name": c.name,
30740 })
30741 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30742 }
30743
30744
30745
30746
30747
30748
30749
30750 func (c *ProjectsLocationsDataStoresServingConfigsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaServingConfig, error) {
30751 gensupport.SetOptions(c.urlParams_, opts...)
30752 res, err := c.doRequest("json")
30753 if res != nil && res.StatusCode == http.StatusNotModified {
30754 if res.Body != nil {
30755 res.Body.Close()
30756 }
30757 return nil, gensupport.WrapError(&googleapi.Error{
30758 Code: res.StatusCode,
30759 Header: res.Header,
30760 })
30761 }
30762 if err != nil {
30763 return nil, err
30764 }
30765 defer googleapi.CloseBody(res)
30766 if err := googleapi.CheckResponse(res); err != nil {
30767 return nil, gensupport.WrapError(err)
30768 }
30769 ret := &GoogleCloudDiscoveryengineV1alphaServingConfig{
30770 ServerResponse: googleapi.ServerResponse{
30771 Header: res.Header,
30772 HTTPStatusCode: res.StatusCode,
30773 },
30774 }
30775 target := &ret
30776 if err := gensupport.DecodeResponse(target, res); err != nil {
30777 return nil, err
30778 }
30779 return ret, nil
30780 }
30781
30782 type ProjectsLocationsDataStoresServingConfigsRecommendCall struct {
30783 s *Service
30784 servingConfig string
30785 googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest
30786 urlParams_ gensupport.URLParams
30787 ctx_ context.Context
30788 header_ http.Header
30789 }
30790
30791
30792
30793
30794
30795
30796
30797
30798
30799
30800
30801
30802 func (r *ProjectsLocationsDataStoresServingConfigsService) Recommend(servingConfig string, googleclouddiscoveryenginev1alpharecommendrequest *GoogleCloudDiscoveryengineV1alphaRecommendRequest) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
30803 c := &ProjectsLocationsDataStoresServingConfigsRecommendCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30804 c.servingConfig = servingConfig
30805 c.googleclouddiscoveryenginev1alpharecommendrequest = googleclouddiscoveryenginev1alpharecommendrequest
30806 return c
30807 }
30808
30809
30810
30811
30812 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
30813 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30814 return c
30815 }
30816
30817
30818 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsRecommendCall {
30819 c.ctx_ = ctx
30820 return c
30821 }
30822
30823
30824
30825 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Header() http.Header {
30826 if c.header_ == nil {
30827 c.header_ = make(http.Header)
30828 }
30829 return c.header_
30830 }
30831
30832 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) doRequest(alt string) (*http.Response, error) {
30833 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30834 var body io.Reader = nil
30835 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecommendrequest)
30836 if err != nil {
30837 return nil, err
30838 }
30839 c.urlParams_.Set("alt", alt)
30840 c.urlParams_.Set("prettyPrint", "false")
30841 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:recommend")
30842 urls += "?" + c.urlParams_.Encode()
30843 req, err := http.NewRequest("POST", urls, body)
30844 if err != nil {
30845 return nil, err
30846 }
30847 req.Header = reqHeaders
30848 googleapi.Expand(req.URL, map[string]string{
30849 "servingConfig": c.servingConfig,
30850 })
30851 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30852 }
30853
30854
30855
30856
30857
30858
30859
30860 func (c *ProjectsLocationsDataStoresServingConfigsRecommendCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRecommendResponse, error) {
30861 gensupport.SetOptions(c.urlParams_, opts...)
30862 res, err := c.doRequest("json")
30863 if res != nil && res.StatusCode == http.StatusNotModified {
30864 if res.Body != nil {
30865 res.Body.Close()
30866 }
30867 return nil, gensupport.WrapError(&googleapi.Error{
30868 Code: res.StatusCode,
30869 Header: res.Header,
30870 })
30871 }
30872 if err != nil {
30873 return nil, err
30874 }
30875 defer googleapi.CloseBody(res)
30876 if err := googleapi.CheckResponse(res); err != nil {
30877 return nil, gensupport.WrapError(err)
30878 }
30879 ret := &GoogleCloudDiscoveryengineV1alphaRecommendResponse{
30880 ServerResponse: googleapi.ServerResponse{
30881 Header: res.Header,
30882 HTTPStatusCode: res.StatusCode,
30883 },
30884 }
30885 target := &ret
30886 if err := gensupport.DecodeResponse(target, res); err != nil {
30887 return nil, err
30888 }
30889 return ret, nil
30890 }
30891
30892 type ProjectsLocationsDataStoresServingConfigsSearchCall struct {
30893 s *Service
30894 servingConfig string
30895 googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest
30896 urlParams_ gensupport.URLParams
30897 ctx_ context.Context
30898 header_ http.Header
30899 }
30900
30901
30902
30903
30904
30905
30906
30907
30908
30909
30910 func (r *ProjectsLocationsDataStoresServingConfigsService) Search(servingConfig string, googleclouddiscoveryenginev1alphasearchrequest *GoogleCloudDiscoveryengineV1alphaSearchRequest) *ProjectsLocationsDataStoresServingConfigsSearchCall {
30911 c := &ProjectsLocationsDataStoresServingConfigsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30912 c.servingConfig = servingConfig
30913 c.googleclouddiscoveryenginev1alphasearchrequest = googleclouddiscoveryenginev1alphasearchrequest
30914 return c
30915 }
30916
30917
30918
30919
30920 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresServingConfigsSearchCall {
30921 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30922 return c
30923 }
30924
30925
30926 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresServingConfigsSearchCall {
30927 c.ctx_ = ctx
30928 return c
30929 }
30930
30931
30932
30933 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Header() http.Header {
30934 if c.header_ == nil {
30935 c.header_ = make(http.Header)
30936 }
30937 return c.header_
30938 }
30939
30940 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) doRequest(alt string) (*http.Response, error) {
30941 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30942 var body io.Reader = nil
30943 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasearchrequest)
30944 if err != nil {
30945 return nil, err
30946 }
30947 c.urlParams_.Set("alt", alt)
30948 c.urlParams_.Set("prettyPrint", "false")
30949 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+servingConfig}:search")
30950 urls += "?" + c.urlParams_.Encode()
30951 req, err := http.NewRequest("POST", urls, body)
30952 if err != nil {
30953 return nil, err
30954 }
30955 req.Header = reqHeaders
30956 googleapi.Expand(req.URL, map[string]string{
30957 "servingConfig": c.servingConfig,
30958 })
30959 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30960 }
30961
30962
30963
30964
30965
30966
30967
30968 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSearchResponse, error) {
30969 gensupport.SetOptions(c.urlParams_, opts...)
30970 res, err := c.doRequest("json")
30971 if res != nil && res.StatusCode == http.StatusNotModified {
30972 if res.Body != nil {
30973 res.Body.Close()
30974 }
30975 return nil, gensupport.WrapError(&googleapi.Error{
30976 Code: res.StatusCode,
30977 Header: res.Header,
30978 })
30979 }
30980 if err != nil {
30981 return nil, err
30982 }
30983 defer googleapi.CloseBody(res)
30984 if err := googleapi.CheckResponse(res); err != nil {
30985 return nil, gensupport.WrapError(err)
30986 }
30987 ret := &GoogleCloudDiscoveryengineV1alphaSearchResponse{
30988 ServerResponse: googleapi.ServerResponse{
30989 Header: res.Header,
30990 HTTPStatusCode: res.StatusCode,
30991 },
30992 }
30993 target := &ret
30994 if err := gensupport.DecodeResponse(target, res); err != nil {
30995 return nil, err
30996 }
30997 return ret, nil
30998 }
30999
31000
31001
31002
31003 func (c *ProjectsLocationsDataStoresServingConfigsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaSearchResponse) error) error {
31004 c.ctx_ = ctx
31005 defer func(pt string) { c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = pt }(c.googleclouddiscoveryenginev1alphasearchrequest.PageToken)
31006 for {
31007 x, err := c.Do()
31008 if err != nil {
31009 return err
31010 }
31011 if err := f(x); err != nil {
31012 return err
31013 }
31014 if x.NextPageToken == "" {
31015 return nil
31016 }
31017 c.googleclouddiscoveryenginev1alphasearchrequest.PageToken = x.NextPageToken
31018 }
31019 }
31020
31021 type ProjectsLocationsDataStoresSessionsCreateCall struct {
31022 s *Service
31023 parent string
31024 googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
31025 urlParams_ gensupport.URLParams
31026 ctx_ context.Context
31027 header_ http.Header
31028 }
31029
31030
31031
31032
31033
31034
31035
31036 func (r *ProjectsLocationsDataStoresSessionsService) Create(parent string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsDataStoresSessionsCreateCall {
31037 c := &ProjectsLocationsDataStoresSessionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31038 c.parent = parent
31039 c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
31040 return c
31041 }
31042
31043
31044
31045
31046 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsCreateCall {
31047 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31048 return c
31049 }
31050
31051
31052 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsCreateCall {
31053 c.ctx_ = ctx
31054 return c
31055 }
31056
31057
31058
31059 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Header() http.Header {
31060 if c.header_ == nil {
31061 c.header_ = make(http.Header)
31062 }
31063 return c.header_
31064 }
31065
31066 func (c *ProjectsLocationsDataStoresSessionsCreateCall) doRequest(alt string) (*http.Response, error) {
31067 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31068 var body io.Reader = nil
31069 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
31070 if err != nil {
31071 return nil, err
31072 }
31073 c.urlParams_.Set("alt", alt)
31074 c.urlParams_.Set("prettyPrint", "false")
31075 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
31076 urls += "?" + c.urlParams_.Encode()
31077 req, err := http.NewRequest("POST", urls, body)
31078 if err != nil {
31079 return nil, err
31080 }
31081 req.Header = reqHeaders
31082 googleapi.Expand(req.URL, map[string]string{
31083 "parent": c.parent,
31084 })
31085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31086 }
31087
31088
31089
31090
31091
31092
31093
31094 func (c *ProjectsLocationsDataStoresSessionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
31095 gensupport.SetOptions(c.urlParams_, opts...)
31096 res, err := c.doRequest("json")
31097 if res != nil && res.StatusCode == http.StatusNotModified {
31098 if res.Body != nil {
31099 res.Body.Close()
31100 }
31101 return nil, gensupport.WrapError(&googleapi.Error{
31102 Code: res.StatusCode,
31103 Header: res.Header,
31104 })
31105 }
31106 if err != nil {
31107 return nil, err
31108 }
31109 defer googleapi.CloseBody(res)
31110 if err := googleapi.CheckResponse(res); err != nil {
31111 return nil, gensupport.WrapError(err)
31112 }
31113 ret := &GoogleCloudDiscoveryengineV1alphaSession{
31114 ServerResponse: googleapi.ServerResponse{
31115 Header: res.Header,
31116 HTTPStatusCode: res.StatusCode,
31117 },
31118 }
31119 target := &ret
31120 if err := gensupport.DecodeResponse(target, res); err != nil {
31121 return nil, err
31122 }
31123 return ret, nil
31124 }
31125
31126 type ProjectsLocationsDataStoresSessionsDeleteCall struct {
31127 s *Service
31128 name string
31129 urlParams_ gensupport.URLParams
31130 ctx_ context.Context
31131 header_ http.Header
31132 }
31133
31134
31135
31136
31137
31138
31139
31140 func (r *ProjectsLocationsDataStoresSessionsService) Delete(name string) *ProjectsLocationsDataStoresSessionsDeleteCall {
31141 c := &ProjectsLocationsDataStoresSessionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31142 c.name = name
31143 return c
31144 }
31145
31146
31147
31148
31149 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsDeleteCall {
31150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31151 return c
31152 }
31153
31154
31155 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsDeleteCall {
31156 c.ctx_ = ctx
31157 return c
31158 }
31159
31160
31161
31162 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Header() http.Header {
31163 if c.header_ == nil {
31164 c.header_ = make(http.Header)
31165 }
31166 return c.header_
31167 }
31168
31169 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) doRequest(alt string) (*http.Response, error) {
31170 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31171 var body io.Reader = nil
31172 c.urlParams_.Set("alt", alt)
31173 c.urlParams_.Set("prettyPrint", "false")
31174 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
31175 urls += "?" + c.urlParams_.Encode()
31176 req, err := http.NewRequest("DELETE", urls, body)
31177 if err != nil {
31178 return nil, err
31179 }
31180 req.Header = reqHeaders
31181 googleapi.Expand(req.URL, map[string]string{
31182 "name": c.name,
31183 })
31184 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31185 }
31186
31187
31188
31189
31190
31191
31192
31193 func (c *ProjectsLocationsDataStoresSessionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31194 gensupport.SetOptions(c.urlParams_, opts...)
31195 res, err := c.doRequest("json")
31196 if res != nil && res.StatusCode == http.StatusNotModified {
31197 if res.Body != nil {
31198 res.Body.Close()
31199 }
31200 return nil, gensupport.WrapError(&googleapi.Error{
31201 Code: res.StatusCode,
31202 Header: res.Header,
31203 })
31204 }
31205 if err != nil {
31206 return nil, err
31207 }
31208 defer googleapi.CloseBody(res)
31209 if err := googleapi.CheckResponse(res); err != nil {
31210 return nil, gensupport.WrapError(err)
31211 }
31212 ret := &GoogleProtobufEmpty{
31213 ServerResponse: googleapi.ServerResponse{
31214 Header: res.Header,
31215 HTTPStatusCode: res.StatusCode,
31216 },
31217 }
31218 target := &ret
31219 if err := gensupport.DecodeResponse(target, res); err != nil {
31220 return nil, err
31221 }
31222 return ret, nil
31223 }
31224
31225 type ProjectsLocationsDataStoresSessionsGetCall struct {
31226 s *Service
31227 name string
31228 urlParams_ gensupport.URLParams
31229 ifNoneMatch_ string
31230 ctx_ context.Context
31231 header_ http.Header
31232 }
31233
31234
31235
31236
31237
31238
31239 func (r *ProjectsLocationsDataStoresSessionsService) Get(name string) *ProjectsLocationsDataStoresSessionsGetCall {
31240 c := &ProjectsLocationsDataStoresSessionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31241 c.name = name
31242 return c
31243 }
31244
31245
31246
31247
31248 func (c *ProjectsLocationsDataStoresSessionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsGetCall {
31249 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31250 return c
31251 }
31252
31253
31254
31255
31256 func (c *ProjectsLocationsDataStoresSessionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsGetCall {
31257 c.ifNoneMatch_ = entityTag
31258 return c
31259 }
31260
31261
31262 func (c *ProjectsLocationsDataStoresSessionsGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsGetCall {
31263 c.ctx_ = ctx
31264 return c
31265 }
31266
31267
31268
31269 func (c *ProjectsLocationsDataStoresSessionsGetCall) Header() http.Header {
31270 if c.header_ == nil {
31271 c.header_ = make(http.Header)
31272 }
31273 return c.header_
31274 }
31275
31276 func (c *ProjectsLocationsDataStoresSessionsGetCall) doRequest(alt string) (*http.Response, error) {
31277 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31278 if c.ifNoneMatch_ != "" {
31279 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31280 }
31281 var body io.Reader = nil
31282 c.urlParams_.Set("alt", alt)
31283 c.urlParams_.Set("prettyPrint", "false")
31284 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
31285 urls += "?" + c.urlParams_.Encode()
31286 req, err := http.NewRequest("GET", urls, body)
31287 if err != nil {
31288 return nil, err
31289 }
31290 req.Header = reqHeaders
31291 googleapi.Expand(req.URL, map[string]string{
31292 "name": c.name,
31293 })
31294 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31295 }
31296
31297
31298
31299
31300
31301
31302
31303 func (c *ProjectsLocationsDataStoresSessionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
31304 gensupport.SetOptions(c.urlParams_, opts...)
31305 res, err := c.doRequest("json")
31306 if res != nil && res.StatusCode == http.StatusNotModified {
31307 if res.Body != nil {
31308 res.Body.Close()
31309 }
31310 return nil, gensupport.WrapError(&googleapi.Error{
31311 Code: res.StatusCode,
31312 Header: res.Header,
31313 })
31314 }
31315 if err != nil {
31316 return nil, err
31317 }
31318 defer googleapi.CloseBody(res)
31319 if err := googleapi.CheckResponse(res); err != nil {
31320 return nil, gensupport.WrapError(err)
31321 }
31322 ret := &GoogleCloudDiscoveryengineV1alphaSession{
31323 ServerResponse: googleapi.ServerResponse{
31324 Header: res.Header,
31325 HTTPStatusCode: res.StatusCode,
31326 },
31327 }
31328 target := &ret
31329 if err := gensupport.DecodeResponse(target, res); err != nil {
31330 return nil, err
31331 }
31332 return ret, nil
31333 }
31334
31335 type ProjectsLocationsDataStoresSessionsListCall struct {
31336 s *Service
31337 parent string
31338 urlParams_ gensupport.URLParams
31339 ifNoneMatch_ string
31340 ctx_ context.Context
31341 header_ http.Header
31342 }
31343
31344
31345
31346
31347
31348
31349 func (r *ProjectsLocationsDataStoresSessionsService) List(parent string) *ProjectsLocationsDataStoresSessionsListCall {
31350 c := &ProjectsLocationsDataStoresSessionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31351 c.parent = parent
31352 return c
31353 }
31354
31355
31356
31357
31358 func (c *ProjectsLocationsDataStoresSessionsListCall) Filter(filter string) *ProjectsLocationsDataStoresSessionsListCall {
31359 c.urlParams_.Set("filter", filter)
31360 return c
31361 }
31362
31363
31364
31365
31366
31367 func (c *ProjectsLocationsDataStoresSessionsListCall) OrderBy(orderBy string) *ProjectsLocationsDataStoresSessionsListCall {
31368 c.urlParams_.Set("orderBy", orderBy)
31369 return c
31370 }
31371
31372
31373
31374 func (c *ProjectsLocationsDataStoresSessionsListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSessionsListCall {
31375 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31376 return c
31377 }
31378
31379
31380
31381
31382 func (c *ProjectsLocationsDataStoresSessionsListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSessionsListCall {
31383 c.urlParams_.Set("pageToken", pageToken)
31384 return c
31385 }
31386
31387
31388
31389
31390 func (c *ProjectsLocationsDataStoresSessionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsListCall {
31391 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31392 return c
31393 }
31394
31395
31396
31397
31398 func (c *ProjectsLocationsDataStoresSessionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsListCall {
31399 c.ifNoneMatch_ = entityTag
31400 return c
31401 }
31402
31403
31404 func (c *ProjectsLocationsDataStoresSessionsListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsListCall {
31405 c.ctx_ = ctx
31406 return c
31407 }
31408
31409
31410
31411 func (c *ProjectsLocationsDataStoresSessionsListCall) Header() http.Header {
31412 if c.header_ == nil {
31413 c.header_ = make(http.Header)
31414 }
31415 return c.header_
31416 }
31417
31418 func (c *ProjectsLocationsDataStoresSessionsListCall) doRequest(alt string) (*http.Response, error) {
31419 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31420 if c.ifNoneMatch_ != "" {
31421 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31422 }
31423 var body io.Reader = nil
31424 c.urlParams_.Set("alt", alt)
31425 c.urlParams_.Set("prettyPrint", "false")
31426 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/sessions")
31427 urls += "?" + c.urlParams_.Encode()
31428 req, err := http.NewRequest("GET", urls, body)
31429 if err != nil {
31430 return nil, err
31431 }
31432 req.Header = reqHeaders
31433 googleapi.Expand(req.URL, map[string]string{
31434 "parent": c.parent,
31435 })
31436 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31437 }
31438
31439
31440
31441
31442
31443
31444
31445 func (c *ProjectsLocationsDataStoresSessionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListSessionsResponse, error) {
31446 gensupport.SetOptions(c.urlParams_, opts...)
31447 res, err := c.doRequest("json")
31448 if res != nil && res.StatusCode == http.StatusNotModified {
31449 if res.Body != nil {
31450 res.Body.Close()
31451 }
31452 return nil, gensupport.WrapError(&googleapi.Error{
31453 Code: res.StatusCode,
31454 Header: res.Header,
31455 })
31456 }
31457 if err != nil {
31458 return nil, err
31459 }
31460 defer googleapi.CloseBody(res)
31461 if err := googleapi.CheckResponse(res); err != nil {
31462 return nil, gensupport.WrapError(err)
31463 }
31464 ret := &GoogleCloudDiscoveryengineV1alphaListSessionsResponse{
31465 ServerResponse: googleapi.ServerResponse{
31466 Header: res.Header,
31467 HTTPStatusCode: res.StatusCode,
31468 },
31469 }
31470 target := &ret
31471 if err := gensupport.DecodeResponse(target, res); err != nil {
31472 return nil, err
31473 }
31474 return ret, nil
31475 }
31476
31477
31478
31479
31480 func (c *ProjectsLocationsDataStoresSessionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListSessionsResponse) error) error {
31481 c.ctx_ = ctx
31482 defer c.PageToken(c.urlParams_.Get("pageToken"))
31483 for {
31484 x, err := c.Do()
31485 if err != nil {
31486 return err
31487 }
31488 if err := f(x); err != nil {
31489 return err
31490 }
31491 if x.NextPageToken == "" {
31492 return nil
31493 }
31494 c.PageToken(x.NextPageToken)
31495 }
31496 }
31497
31498 type ProjectsLocationsDataStoresSessionsPatchCall struct {
31499 s *Service
31500 name string
31501 googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession
31502 urlParams_ gensupport.URLParams
31503 ctx_ context.Context
31504 header_ http.Header
31505 }
31506
31507
31508
31509
31510
31511
31512
31513 func (r *ProjectsLocationsDataStoresSessionsService) Patch(name string, googleclouddiscoveryenginev1alphasession *GoogleCloudDiscoveryengineV1alphaSession) *ProjectsLocationsDataStoresSessionsPatchCall {
31514 c := &ProjectsLocationsDataStoresSessionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31515 c.name = name
31516 c.googleclouddiscoveryenginev1alphasession = googleclouddiscoveryenginev1alphasession
31517 return c
31518 }
31519
31520
31521
31522
31523 func (c *ProjectsLocationsDataStoresSessionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsDataStoresSessionsPatchCall {
31524 c.urlParams_.Set("updateMask", updateMask)
31525 return c
31526 }
31527
31528
31529
31530
31531 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsPatchCall {
31532 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31533 return c
31534 }
31535
31536
31537 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsPatchCall {
31538 c.ctx_ = ctx
31539 return c
31540 }
31541
31542
31543
31544 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Header() http.Header {
31545 if c.header_ == nil {
31546 c.header_ = make(http.Header)
31547 }
31548 return c.header_
31549 }
31550
31551 func (c *ProjectsLocationsDataStoresSessionsPatchCall) doRequest(alt string) (*http.Response, error) {
31552 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31553 var body io.Reader = nil
31554 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphasession)
31555 if err != nil {
31556 return nil, err
31557 }
31558 c.urlParams_.Set("alt", alt)
31559 c.urlParams_.Set("prettyPrint", "false")
31560 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
31561 urls += "?" + c.urlParams_.Encode()
31562 req, err := http.NewRequest("PATCH", urls, body)
31563 if err != nil {
31564 return nil, err
31565 }
31566 req.Header = reqHeaders
31567 googleapi.Expand(req.URL, map[string]string{
31568 "name": c.name,
31569 })
31570 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31571 }
31572
31573
31574
31575
31576
31577
31578
31579 func (c *ProjectsLocationsDataStoresSessionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaSession, error) {
31580 gensupport.SetOptions(c.urlParams_, opts...)
31581 res, err := c.doRequest("json")
31582 if res != nil && res.StatusCode == http.StatusNotModified {
31583 if res.Body != nil {
31584 res.Body.Close()
31585 }
31586 return nil, gensupport.WrapError(&googleapi.Error{
31587 Code: res.StatusCode,
31588 Header: res.Header,
31589 })
31590 }
31591 if err != nil {
31592 return nil, err
31593 }
31594 defer googleapi.CloseBody(res)
31595 if err := googleapi.CheckResponse(res); err != nil {
31596 return nil, gensupport.WrapError(err)
31597 }
31598 ret := &GoogleCloudDiscoveryengineV1alphaSession{
31599 ServerResponse: googleapi.ServerResponse{
31600 Header: res.Header,
31601 HTTPStatusCode: res.StatusCode,
31602 },
31603 }
31604 target := &ret
31605 if err := gensupport.DecodeResponse(target, res); err != nil {
31606 return nil, err
31607 }
31608 return ret, nil
31609 }
31610
31611 type ProjectsLocationsDataStoresSessionsAnswersGetCall struct {
31612 s *Service
31613 name string
31614 urlParams_ gensupport.URLParams
31615 ifNoneMatch_ string
31616 ctx_ context.Context
31617 header_ http.Header
31618 }
31619
31620
31621
31622
31623
31624
31625 func (r *ProjectsLocationsDataStoresSessionsAnswersService) Get(name string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
31626 c := &ProjectsLocationsDataStoresSessionsAnswersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31627 c.name = name
31628 return c
31629 }
31630
31631
31632
31633
31634 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
31635 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31636 return c
31637 }
31638
31639
31640
31641
31642 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
31643 c.ifNoneMatch_ = entityTag
31644 return c
31645 }
31646
31647
31648 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSessionsAnswersGetCall {
31649 c.ctx_ = ctx
31650 return c
31651 }
31652
31653
31654
31655 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Header() http.Header {
31656 if c.header_ == nil {
31657 c.header_ = make(http.Header)
31658 }
31659 return c.header_
31660 }
31661
31662 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) doRequest(alt string) (*http.Response, error) {
31663 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31664 if c.ifNoneMatch_ != "" {
31665 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31666 }
31667 var body io.Reader = nil
31668 c.urlParams_.Set("alt", alt)
31669 c.urlParams_.Set("prettyPrint", "false")
31670 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
31671 urls += "?" + c.urlParams_.Encode()
31672 req, err := http.NewRequest("GET", urls, body)
31673 if err != nil {
31674 return nil, err
31675 }
31676 req.Header = reqHeaders
31677 googleapi.Expand(req.URL, map[string]string{
31678 "name": c.name,
31679 })
31680 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31681 }
31682
31683
31684
31685
31686
31687
31688
31689 func (c *ProjectsLocationsDataStoresSessionsAnswersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaAnswer, error) {
31690 gensupport.SetOptions(c.urlParams_, opts...)
31691 res, err := c.doRequest("json")
31692 if res != nil && res.StatusCode == http.StatusNotModified {
31693 if res.Body != nil {
31694 res.Body.Close()
31695 }
31696 return nil, gensupport.WrapError(&googleapi.Error{
31697 Code: res.StatusCode,
31698 Header: res.Header,
31699 })
31700 }
31701 if err != nil {
31702 return nil, err
31703 }
31704 defer googleapi.CloseBody(res)
31705 if err := googleapi.CheckResponse(res); err != nil {
31706 return nil, gensupport.WrapError(err)
31707 }
31708 ret := &GoogleCloudDiscoveryengineV1alphaAnswer{
31709 ServerResponse: googleapi.ServerResponse{
31710 Header: res.Header,
31711 HTTPStatusCode: res.StatusCode,
31712 },
31713 }
31714 target := &ret
31715 if err := gensupport.DecodeResponse(target, res); err != nil {
31716 return nil, err
31717 }
31718 return ret, nil
31719 }
31720
31721 type ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall struct {
31722 s *Service
31723 siteSearchEngine string
31724 googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest
31725 urlParams_ gensupport.URLParams
31726 ctx_ context.Context
31727 header_ http.Header
31728 }
31729
31730
31731
31732
31733
31734
31735
31736 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) DisableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaDisableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
31737 c := &ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31738 c.siteSearchEngine = siteSearchEngine
31739 c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest
31740 return c
31741 }
31742
31743
31744
31745
31746 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
31747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31748 return c
31749 }
31750
31751
31752 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall {
31753 c.ctx_ = ctx
31754 return c
31755 }
31756
31757
31758
31759 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Header() http.Header {
31760 if c.header_ == nil {
31761 c.header_ = make(http.Header)
31762 }
31763 return c.header_
31764 }
31765
31766 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
31767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31768 var body io.Reader = nil
31769 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphadisableadvancedsitesearchrequest)
31770 if err != nil {
31771 return nil, err
31772 }
31773 c.urlParams_.Set("alt", alt)
31774 c.urlParams_.Set("prettyPrint", "false")
31775 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:disableAdvancedSiteSearch")
31776 urls += "?" + c.urlParams_.Encode()
31777 req, err := http.NewRequest("POST", urls, body)
31778 if err != nil {
31779 return nil, err
31780 }
31781 req.Header = reqHeaders
31782 googleapi.Expand(req.URL, map[string]string{
31783 "siteSearchEngine": c.siteSearchEngine,
31784 })
31785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31786 }
31787
31788
31789
31790
31791
31792
31793
31794 func (c *ProjectsLocationsDataStoresSiteSearchEngineDisableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31795 gensupport.SetOptions(c.urlParams_, opts...)
31796 res, err := c.doRequest("json")
31797 if res != nil && res.StatusCode == http.StatusNotModified {
31798 if res.Body != nil {
31799 res.Body.Close()
31800 }
31801 return nil, gensupport.WrapError(&googleapi.Error{
31802 Code: res.StatusCode,
31803 Header: res.Header,
31804 })
31805 }
31806 if err != nil {
31807 return nil, err
31808 }
31809 defer googleapi.CloseBody(res)
31810 if err := googleapi.CheckResponse(res); err != nil {
31811 return nil, gensupport.WrapError(err)
31812 }
31813 ret := &GoogleLongrunningOperation{
31814 ServerResponse: googleapi.ServerResponse{
31815 Header: res.Header,
31816 HTTPStatusCode: res.StatusCode,
31817 },
31818 }
31819 target := &ret
31820 if err := gensupport.DecodeResponse(target, res); err != nil {
31821 return nil, err
31822 }
31823 return ret, nil
31824 }
31825
31826 type ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall struct {
31827 s *Service
31828 siteSearchEngine string
31829 googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest
31830 urlParams_ gensupport.URLParams
31831 ctx_ context.Context
31832 header_ http.Header
31833 }
31834
31835
31836
31837
31838
31839
31840
31841 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) EnableAdvancedSiteSearch(siteSearchEngine string, googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest *GoogleCloudDiscoveryengineV1alphaEnableAdvancedSiteSearchRequest) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
31842 c := &ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31843 c.siteSearchEngine = siteSearchEngine
31844 c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest = googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest
31845 return c
31846 }
31847
31848
31849
31850
31851 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
31852 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31853 return c
31854 }
31855
31856
31857 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall {
31858 c.ctx_ = ctx
31859 return c
31860 }
31861
31862
31863
31864 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Header() http.Header {
31865 if c.header_ == nil {
31866 c.header_ = make(http.Header)
31867 }
31868 return c.header_
31869 }
31870
31871 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) doRequest(alt string) (*http.Response, error) {
31872 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31873 var body io.Reader = nil
31874 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaenableadvancedsitesearchrequest)
31875 if err != nil {
31876 return nil, err
31877 }
31878 c.urlParams_.Set("alt", alt)
31879 c.urlParams_.Set("prettyPrint", "false")
31880 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:enableAdvancedSiteSearch")
31881 urls += "?" + c.urlParams_.Encode()
31882 req, err := http.NewRequest("POST", urls, body)
31883 if err != nil {
31884 return nil, err
31885 }
31886 req.Header = reqHeaders
31887 googleapi.Expand(req.URL, map[string]string{
31888 "siteSearchEngine": c.siteSearchEngine,
31889 })
31890 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31891 }
31892
31893
31894
31895
31896
31897
31898
31899 func (c *ProjectsLocationsDataStoresSiteSearchEngineEnableAdvancedSiteSearchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31900 gensupport.SetOptions(c.urlParams_, opts...)
31901 res, err := c.doRequest("json")
31902 if res != nil && res.StatusCode == http.StatusNotModified {
31903 if res.Body != nil {
31904 res.Body.Close()
31905 }
31906 return nil, gensupport.WrapError(&googleapi.Error{
31907 Code: res.StatusCode,
31908 Header: res.Header,
31909 })
31910 }
31911 if err != nil {
31912 return nil, err
31913 }
31914 defer googleapi.CloseBody(res)
31915 if err := googleapi.CheckResponse(res); err != nil {
31916 return nil, gensupport.WrapError(err)
31917 }
31918 ret := &GoogleLongrunningOperation{
31919 ServerResponse: googleapi.ServerResponse{
31920 Header: res.Header,
31921 HTTPStatusCode: res.StatusCode,
31922 },
31923 }
31924 target := &ret
31925 if err := gensupport.DecodeResponse(target, res); err != nil {
31926 return nil, err
31927 }
31928 return ret, nil
31929 }
31930
31931 type ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall struct {
31932 s *Service
31933 siteSearchEngine string
31934 googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest
31935 urlParams_ gensupport.URLParams
31936 ctx_ context.Context
31937 header_ http.Header
31938 }
31939
31940
31941
31942
31943
31944 func (r *ProjectsLocationsDataStoresSiteSearchEngineService) RecrawlUris(siteSearchEngine string, googleclouddiscoveryenginev1alpharecrawlurisrequest *GoogleCloudDiscoveryengineV1alphaRecrawlUrisRequest) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
31945 c := &ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31946 c.siteSearchEngine = siteSearchEngine
31947 c.googleclouddiscoveryenginev1alpharecrawlurisrequest = googleclouddiscoveryenginev1alpharecrawlurisrequest
31948 return c
31949 }
31950
31951
31952
31953
31954 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
31955 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31956 return c
31957 }
31958
31959
31960 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall {
31961 c.ctx_ = ctx
31962 return c
31963 }
31964
31965
31966
31967 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Header() http.Header {
31968 if c.header_ == nil {
31969 c.header_ = make(http.Header)
31970 }
31971 return c.header_
31972 }
31973
31974 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) doRequest(alt string) (*http.Response, error) {
31975 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31976 var body io.Reader = nil
31977 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharecrawlurisrequest)
31978 if err != nil {
31979 return nil, err
31980 }
31981 c.urlParams_.Set("alt", alt)
31982 c.urlParams_.Set("prettyPrint", "false")
31983 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+siteSearchEngine}:recrawlUris")
31984 urls += "?" + c.urlParams_.Encode()
31985 req, err := http.NewRequest("POST", urls, body)
31986 if err != nil {
31987 return nil, err
31988 }
31989 req.Header = reqHeaders
31990 googleapi.Expand(req.URL, map[string]string{
31991 "siteSearchEngine": c.siteSearchEngine,
31992 })
31993 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31994 }
31995
31996
31997
31998
31999
32000
32001
32002 func (c *ProjectsLocationsDataStoresSiteSearchEngineRecrawlUrisCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32003 gensupport.SetOptions(c.urlParams_, opts...)
32004 res, err := c.doRequest("json")
32005 if res != nil && res.StatusCode == http.StatusNotModified {
32006 if res.Body != nil {
32007 res.Body.Close()
32008 }
32009 return nil, gensupport.WrapError(&googleapi.Error{
32010 Code: res.StatusCode,
32011 Header: res.Header,
32012 })
32013 }
32014 if err != nil {
32015 return nil, err
32016 }
32017 defer googleapi.CloseBody(res)
32018 if err := googleapi.CheckResponse(res); err != nil {
32019 return nil, gensupport.WrapError(err)
32020 }
32021 ret := &GoogleLongrunningOperation{
32022 ServerResponse: googleapi.ServerResponse{
32023 Header: res.Header,
32024 HTTPStatusCode: res.StatusCode,
32025 },
32026 }
32027 target := &ret
32028 if err := gensupport.DecodeResponse(target, res); err != nil {
32029 return nil, err
32030 }
32031 return ret, nil
32032 }
32033
32034 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall struct {
32035 s *Service
32036 parent string
32037 googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest
32038 urlParams_ gensupport.URLParams
32039 ctx_ context.Context
32040 header_ http.Header
32041 }
32042
32043
32044
32045
32046
32047
32048
32049 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) BatchCreate(parent string, googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest *GoogleCloudDiscoveryengineV1alphaBatchCreateTargetSitesRequest) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
32050 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32051 c.parent = parent
32052 c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest = googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest
32053 return c
32054 }
32055
32056
32057
32058
32059 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
32060 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32061 return c
32062 }
32063
32064
32065 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall {
32066 c.ctx_ = ctx
32067 return c
32068 }
32069
32070
32071
32072 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Header() http.Header {
32073 if c.header_ == nil {
32074 c.header_ = make(http.Header)
32075 }
32076 return c.header_
32077 }
32078
32079 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
32080 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32081 var body io.Reader = nil
32082 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphabatchcreatetargetsitesrequest)
32083 if err != nil {
32084 return nil, err
32085 }
32086 c.urlParams_.Set("alt", alt)
32087 c.urlParams_.Set("prettyPrint", "false")
32088 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites:batchCreate")
32089 urls += "?" + c.urlParams_.Encode()
32090 req, err := http.NewRequest("POST", urls, body)
32091 if err != nil {
32092 return nil, err
32093 }
32094 req.Header = reqHeaders
32095 googleapi.Expand(req.URL, map[string]string{
32096 "parent": c.parent,
32097 })
32098 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32099 }
32100
32101
32102
32103
32104
32105
32106
32107 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32108 gensupport.SetOptions(c.urlParams_, opts...)
32109 res, err := c.doRequest("json")
32110 if res != nil && res.StatusCode == http.StatusNotModified {
32111 if res.Body != nil {
32112 res.Body.Close()
32113 }
32114 return nil, gensupport.WrapError(&googleapi.Error{
32115 Code: res.StatusCode,
32116 Header: res.Header,
32117 })
32118 }
32119 if err != nil {
32120 return nil, err
32121 }
32122 defer googleapi.CloseBody(res)
32123 if err := googleapi.CheckResponse(res); err != nil {
32124 return nil, gensupport.WrapError(err)
32125 }
32126 ret := &GoogleLongrunningOperation{
32127 ServerResponse: googleapi.ServerResponse{
32128 Header: res.Header,
32129 HTTPStatusCode: res.StatusCode,
32130 },
32131 }
32132 target := &ret
32133 if err := gensupport.DecodeResponse(target, res); err != nil {
32134 return nil, err
32135 }
32136 return ret, nil
32137 }
32138
32139 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall struct {
32140 s *Service
32141 parent string
32142 googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
32143 urlParams_ gensupport.URLParams
32144 ctx_ context.Context
32145 header_ http.Header
32146 }
32147
32148
32149
32150
32151
32152
32153 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Create(parent string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
32154 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32155 c.parent = parent
32156 c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
32157 return c
32158 }
32159
32160
32161
32162
32163 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
32164 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32165 return c
32166 }
32167
32168
32169 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall {
32170 c.ctx_ = ctx
32171 return c
32172 }
32173
32174
32175
32176 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Header() http.Header {
32177 if c.header_ == nil {
32178 c.header_ = make(http.Header)
32179 }
32180 return c.header_
32181 }
32182
32183 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) doRequest(alt string) (*http.Response, error) {
32184 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32185 var body io.Reader = nil
32186 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
32187 if err != nil {
32188 return nil, err
32189 }
32190 c.urlParams_.Set("alt", alt)
32191 c.urlParams_.Set("prettyPrint", "false")
32192 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
32193 urls += "?" + c.urlParams_.Encode()
32194 req, err := http.NewRequest("POST", urls, body)
32195 if err != nil {
32196 return nil, err
32197 }
32198 req.Header = reqHeaders
32199 googleapi.Expand(req.URL, map[string]string{
32200 "parent": c.parent,
32201 })
32202 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32203 }
32204
32205
32206
32207
32208
32209
32210
32211 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32212 gensupport.SetOptions(c.urlParams_, opts...)
32213 res, err := c.doRequest("json")
32214 if res != nil && res.StatusCode == http.StatusNotModified {
32215 if res.Body != nil {
32216 res.Body.Close()
32217 }
32218 return nil, gensupport.WrapError(&googleapi.Error{
32219 Code: res.StatusCode,
32220 Header: res.Header,
32221 })
32222 }
32223 if err != nil {
32224 return nil, err
32225 }
32226 defer googleapi.CloseBody(res)
32227 if err := googleapi.CheckResponse(res); err != nil {
32228 return nil, gensupport.WrapError(err)
32229 }
32230 ret := &GoogleLongrunningOperation{
32231 ServerResponse: googleapi.ServerResponse{
32232 Header: res.Header,
32233 HTTPStatusCode: res.StatusCode,
32234 },
32235 }
32236 target := &ret
32237 if err := gensupport.DecodeResponse(target, res); err != nil {
32238 return nil, err
32239 }
32240 return ret, nil
32241 }
32242
32243 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall struct {
32244 s *Service
32245 name string
32246 urlParams_ gensupport.URLParams
32247 ctx_ context.Context
32248 header_ http.Header
32249 }
32250
32251
32252
32253
32254
32255
32256
32257
32258
32259 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Delete(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
32260 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32261 c.name = name
32262 return c
32263 }
32264
32265
32266
32267
32268 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
32269 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32270 return c
32271 }
32272
32273
32274 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall {
32275 c.ctx_ = ctx
32276 return c
32277 }
32278
32279
32280
32281 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Header() http.Header {
32282 if c.header_ == nil {
32283 c.header_ = make(http.Header)
32284 }
32285 return c.header_
32286 }
32287
32288 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) doRequest(alt string) (*http.Response, error) {
32289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32290 var body io.Reader = nil
32291 c.urlParams_.Set("alt", alt)
32292 c.urlParams_.Set("prettyPrint", "false")
32293 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
32294 urls += "?" + c.urlParams_.Encode()
32295 req, err := http.NewRequest("DELETE", urls, body)
32296 if err != nil {
32297 return nil, err
32298 }
32299 req.Header = reqHeaders
32300 googleapi.Expand(req.URL, map[string]string{
32301 "name": c.name,
32302 })
32303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32304 }
32305
32306
32307
32308
32309
32310
32311
32312 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32313 gensupport.SetOptions(c.urlParams_, opts...)
32314 res, err := c.doRequest("json")
32315 if res != nil && res.StatusCode == http.StatusNotModified {
32316 if res.Body != nil {
32317 res.Body.Close()
32318 }
32319 return nil, gensupport.WrapError(&googleapi.Error{
32320 Code: res.StatusCode,
32321 Header: res.Header,
32322 })
32323 }
32324 if err != nil {
32325 return nil, err
32326 }
32327 defer googleapi.CloseBody(res)
32328 if err := googleapi.CheckResponse(res); err != nil {
32329 return nil, gensupport.WrapError(err)
32330 }
32331 ret := &GoogleLongrunningOperation{
32332 ServerResponse: googleapi.ServerResponse{
32333 Header: res.Header,
32334 HTTPStatusCode: res.StatusCode,
32335 },
32336 }
32337 target := &ret
32338 if err := gensupport.DecodeResponse(target, res); err != nil {
32339 return nil, err
32340 }
32341 return ret, nil
32342 }
32343
32344 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall struct {
32345 s *Service
32346 name string
32347 urlParams_ gensupport.URLParams
32348 ifNoneMatch_ string
32349 ctx_ context.Context
32350 header_ http.Header
32351 }
32352
32353
32354
32355
32356
32357
32358
32359
32360
32361 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Get(name string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
32362 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32363 c.name = name
32364 return c
32365 }
32366
32367
32368
32369
32370 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
32371 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32372 return c
32373 }
32374
32375
32376
32377
32378 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
32379 c.ifNoneMatch_ = entityTag
32380 return c
32381 }
32382
32383
32384 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall {
32385 c.ctx_ = ctx
32386 return c
32387 }
32388
32389
32390
32391 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Header() http.Header {
32392 if c.header_ == nil {
32393 c.header_ = make(http.Header)
32394 }
32395 return c.header_
32396 }
32397
32398 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) doRequest(alt string) (*http.Response, error) {
32399 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32400 if c.ifNoneMatch_ != "" {
32401 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32402 }
32403 var body io.Reader = nil
32404 c.urlParams_.Set("alt", alt)
32405 c.urlParams_.Set("prettyPrint", "false")
32406 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
32407 urls += "?" + c.urlParams_.Encode()
32408 req, err := http.NewRequest("GET", urls, body)
32409 if err != nil {
32410 return nil, err
32411 }
32412 req.Header = reqHeaders
32413 googleapi.Expand(req.URL, map[string]string{
32414 "name": c.name,
32415 })
32416 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32417 }
32418
32419
32420
32421
32422
32423
32424
32425 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaTargetSite, error) {
32426 gensupport.SetOptions(c.urlParams_, opts...)
32427 res, err := c.doRequest("json")
32428 if res != nil && res.StatusCode == http.StatusNotModified {
32429 if res.Body != nil {
32430 res.Body.Close()
32431 }
32432 return nil, gensupport.WrapError(&googleapi.Error{
32433 Code: res.StatusCode,
32434 Header: res.Header,
32435 })
32436 }
32437 if err != nil {
32438 return nil, err
32439 }
32440 defer googleapi.CloseBody(res)
32441 if err := googleapi.CheckResponse(res); err != nil {
32442 return nil, gensupport.WrapError(err)
32443 }
32444 ret := &GoogleCloudDiscoveryengineV1alphaTargetSite{
32445 ServerResponse: googleapi.ServerResponse{
32446 Header: res.Header,
32447 HTTPStatusCode: res.StatusCode,
32448 },
32449 }
32450 target := &ret
32451 if err := gensupport.DecodeResponse(target, res); err != nil {
32452 return nil, err
32453 }
32454 return ret, nil
32455 }
32456
32457 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall struct {
32458 s *Service
32459 parent string
32460 urlParams_ gensupport.URLParams
32461 ifNoneMatch_ string
32462 ctx_ context.Context
32463 header_ http.Header
32464 }
32465
32466
32467
32468
32469
32470
32471
32472
32473 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) List(parent string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
32474 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32475 c.parent = parent
32476 return c
32477 }
32478
32479
32480
32481
32482
32483
32484 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageSize(pageSize int64) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
32485 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32486 return c
32487 }
32488
32489
32490
32491
32492
32493 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) PageToken(pageToken string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
32494 c.urlParams_.Set("pageToken", pageToken)
32495 return c
32496 }
32497
32498
32499
32500
32501 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
32502 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32503 return c
32504 }
32505
32506
32507
32508
32509 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
32510 c.ifNoneMatch_ = entityTag
32511 return c
32512 }
32513
32514
32515 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall {
32516 c.ctx_ = ctx
32517 return c
32518 }
32519
32520
32521
32522 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Header() http.Header {
32523 if c.header_ == nil {
32524 c.header_ = make(http.Header)
32525 }
32526 return c.header_
32527 }
32528
32529 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) doRequest(alt string) (*http.Response, error) {
32530 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32531 if c.ifNoneMatch_ != "" {
32532 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32533 }
32534 var body io.Reader = nil
32535 c.urlParams_.Set("alt", alt)
32536 c.urlParams_.Set("prettyPrint", "false")
32537 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/targetSites")
32538 urls += "?" + c.urlParams_.Encode()
32539 req, err := http.NewRequest("GET", urls, body)
32540 if err != nil {
32541 return nil, err
32542 }
32543 req.Header = reqHeaders
32544 googleapi.Expand(req.URL, map[string]string{
32545 "parent": c.parent,
32546 })
32547 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32548 }
32549
32550
32551
32552
32553
32554
32555
32556 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse, error) {
32557 gensupport.SetOptions(c.urlParams_, opts...)
32558 res, err := c.doRequest("json")
32559 if res != nil && res.StatusCode == http.StatusNotModified {
32560 if res.Body != nil {
32561 res.Body.Close()
32562 }
32563 return nil, gensupport.WrapError(&googleapi.Error{
32564 Code: res.StatusCode,
32565 Header: res.Header,
32566 })
32567 }
32568 if err != nil {
32569 return nil, err
32570 }
32571 defer googleapi.CloseBody(res)
32572 if err := googleapi.CheckResponse(res); err != nil {
32573 return nil, gensupport.WrapError(err)
32574 }
32575 ret := &GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse{
32576 ServerResponse: googleapi.ServerResponse{
32577 Header: res.Header,
32578 HTTPStatusCode: res.StatusCode,
32579 },
32580 }
32581 target := &ret
32582 if err := gensupport.DecodeResponse(target, res); err != nil {
32583 return nil, err
32584 }
32585 return ret, nil
32586 }
32587
32588
32589
32590
32591 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesListCall) Pages(ctx context.Context, f func(*GoogleCloudDiscoveryengineV1alphaListTargetSitesResponse) error) error {
32592 c.ctx_ = ctx
32593 defer c.PageToken(c.urlParams_.Get("pageToken"))
32594 for {
32595 x, err := c.Do()
32596 if err != nil {
32597 return err
32598 }
32599 if err := f(x); err != nil {
32600 return err
32601 }
32602 if x.NextPageToken == "" {
32603 return nil
32604 }
32605 c.PageToken(x.NextPageToken)
32606 }
32607 }
32608
32609 type ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall struct {
32610 s *Service
32611 name string
32612 googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite
32613 urlParams_ gensupport.URLParams
32614 ctx_ context.Context
32615 header_ http.Header
32616 }
32617
32618
32619
32620
32621
32622
32623
32624 func (r *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesService) Patch(name string, googleclouddiscoveryenginev1alphatargetsite *GoogleCloudDiscoveryengineV1alphaTargetSite) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
32625 c := &ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32626 c.name = name
32627 c.googleclouddiscoveryenginev1alphatargetsite = googleclouddiscoveryenginev1alphatargetsite
32628 return c
32629 }
32630
32631
32632
32633
32634 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
32635 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32636 return c
32637 }
32638
32639
32640 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall {
32641 c.ctx_ = ctx
32642 return c
32643 }
32644
32645
32646
32647 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Header() http.Header {
32648 if c.header_ == nil {
32649 c.header_ = make(http.Header)
32650 }
32651 return c.header_
32652 }
32653
32654 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) doRequest(alt string) (*http.Response, error) {
32655 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32656 var body io.Reader = nil
32657 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphatargetsite)
32658 if err != nil {
32659 return nil, err
32660 }
32661 c.urlParams_.Set("alt", alt)
32662 c.urlParams_.Set("prettyPrint", "false")
32663 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
32664 urls += "?" + c.urlParams_.Encode()
32665 req, err := http.NewRequest("PATCH", urls, body)
32666 if err != nil {
32667 return nil, err
32668 }
32669 req.Header = reqHeaders
32670 googleapi.Expand(req.URL, map[string]string{
32671 "name": c.name,
32672 })
32673 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32674 }
32675
32676
32677
32678
32679
32680
32681
32682 func (c *ProjectsLocationsDataStoresSiteSearchEngineTargetSitesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32683 gensupport.SetOptions(c.urlParams_, opts...)
32684 res, err := c.doRequest("json")
32685 if res != nil && res.StatusCode == http.StatusNotModified {
32686 if res.Body != nil {
32687 res.Body.Close()
32688 }
32689 return nil, gensupport.WrapError(&googleapi.Error{
32690 Code: res.StatusCode,
32691 Header: res.Header,
32692 })
32693 }
32694 if err != nil {
32695 return nil, err
32696 }
32697 defer googleapi.CloseBody(res)
32698 if err := googleapi.CheckResponse(res); err != nil {
32699 return nil, gensupport.WrapError(err)
32700 }
32701 ret := &GoogleLongrunningOperation{
32702 ServerResponse: googleapi.ServerResponse{
32703 Header: res.Header,
32704 HTTPStatusCode: res.StatusCode,
32705 },
32706 }
32707 target := &ret
32708 if err := gensupport.DecodeResponse(target, res); err != nil {
32709 return nil, err
32710 }
32711 return ret, nil
32712 }
32713
32714 type ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall struct {
32715 s *Service
32716 parent string
32717 googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest
32718 urlParams_ gensupport.URLParams
32719 ctx_ context.Context
32720 header_ http.Header
32721 }
32722
32723
32724
32725
32726
32727
32728 func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Import(parent string, googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaImportSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
32729 c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32730 c.parent = parent
32731 c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest
32732 return c
32733 }
32734
32735
32736
32737
32738 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
32739 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32740 return c
32741 }
32742
32743
32744 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall {
32745 c.ctx_ = ctx
32746 return c
32747 }
32748
32749
32750
32751 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Header() http.Header {
32752 if c.header_ == nil {
32753 c.header_ = make(http.Header)
32754 }
32755 return c.header_
32756 }
32757
32758 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) doRequest(alt string) (*http.Response, error) {
32759 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32760 var body io.Reader = nil
32761 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportsuggestiondenylistentriesrequest)
32762 if err != nil {
32763 return nil, err
32764 }
32765 c.urlParams_.Set("alt", alt)
32766 c.urlParams_.Set("prettyPrint", "false")
32767 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:import")
32768 urls += "?" + c.urlParams_.Encode()
32769 req, err := http.NewRequest("POST", urls, body)
32770 if err != nil {
32771 return nil, err
32772 }
32773 req.Header = reqHeaders
32774 googleapi.Expand(req.URL, map[string]string{
32775 "parent": c.parent,
32776 })
32777 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32778 }
32779
32780
32781
32782
32783
32784
32785
32786 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32787 gensupport.SetOptions(c.urlParams_, opts...)
32788 res, err := c.doRequest("json")
32789 if res != nil && res.StatusCode == http.StatusNotModified {
32790 if res.Body != nil {
32791 res.Body.Close()
32792 }
32793 return nil, gensupport.WrapError(&googleapi.Error{
32794 Code: res.StatusCode,
32795 Header: res.Header,
32796 })
32797 }
32798 if err != nil {
32799 return nil, err
32800 }
32801 defer googleapi.CloseBody(res)
32802 if err := googleapi.CheckResponse(res); err != nil {
32803 return nil, gensupport.WrapError(err)
32804 }
32805 ret := &GoogleLongrunningOperation{
32806 ServerResponse: googleapi.ServerResponse{
32807 Header: res.Header,
32808 HTTPStatusCode: res.StatusCode,
32809 },
32810 }
32811 target := &ret
32812 if err := gensupport.DecodeResponse(target, res); err != nil {
32813 return nil, err
32814 }
32815 return ret, nil
32816 }
32817
32818 type ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall struct {
32819 s *Service
32820 parent string
32821 googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest
32822 urlParams_ gensupport.URLParams
32823 ctx_ context.Context
32824 header_ http.Header
32825 }
32826
32827
32828
32829
32830
32831
32832 func (r *ProjectsLocationsDataStoresSuggestionDenyListEntriesService) Purge(parent string, googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest *GoogleCloudDiscoveryengineV1alphaPurgeSuggestionDenyListEntriesRequest) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
32833 c := &ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32834 c.parent = parent
32835 c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest = googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest
32836 return c
32837 }
32838
32839
32840
32841
32842 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
32843 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32844 return c
32845 }
32846
32847
32848 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall {
32849 c.ctx_ = ctx
32850 return c
32851 }
32852
32853
32854
32855 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Header() http.Header {
32856 if c.header_ == nil {
32857 c.header_ = make(http.Header)
32858 }
32859 return c.header_
32860 }
32861
32862 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) doRequest(alt string) (*http.Response, error) {
32863 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32864 var body io.Reader = nil
32865 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgesuggestiondenylistentriesrequest)
32866 if err != nil {
32867 return nil, err
32868 }
32869 c.urlParams_.Set("alt", alt)
32870 c.urlParams_.Set("prettyPrint", "false")
32871 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/suggestionDenyListEntries:purge")
32872 urls += "?" + c.urlParams_.Encode()
32873 req, err := http.NewRequest("POST", urls, body)
32874 if err != nil {
32875 return nil, err
32876 }
32877 req.Header = reqHeaders
32878 googleapi.Expand(req.URL, map[string]string{
32879 "parent": c.parent,
32880 })
32881 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32882 }
32883
32884
32885
32886
32887
32888
32889
32890 func (c *ProjectsLocationsDataStoresSuggestionDenyListEntriesPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32891 gensupport.SetOptions(c.urlParams_, opts...)
32892 res, err := c.doRequest("json")
32893 if res != nil && res.StatusCode == http.StatusNotModified {
32894 if res.Body != nil {
32895 res.Body.Close()
32896 }
32897 return nil, gensupport.WrapError(&googleapi.Error{
32898 Code: res.StatusCode,
32899 Header: res.Header,
32900 })
32901 }
32902 if err != nil {
32903 return nil, err
32904 }
32905 defer googleapi.CloseBody(res)
32906 if err := googleapi.CheckResponse(res); err != nil {
32907 return nil, gensupport.WrapError(err)
32908 }
32909 ret := &GoogleLongrunningOperation{
32910 ServerResponse: googleapi.ServerResponse{
32911 Header: res.Header,
32912 HTTPStatusCode: res.StatusCode,
32913 },
32914 }
32915 target := &ret
32916 if err := gensupport.DecodeResponse(target, res); err != nil {
32917 return nil, err
32918 }
32919 return ret, nil
32920 }
32921
32922 type ProjectsLocationsDataStoresUserEventsCollectCall struct {
32923 s *Service
32924 parent string
32925 urlParams_ gensupport.URLParams
32926 ifNoneMatch_ string
32927 ctx_ context.Context
32928 header_ http.Header
32929 }
32930
32931
32932
32933
32934
32935
32936
32937
32938
32939 func (r *ProjectsLocationsDataStoresUserEventsService) Collect(parent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
32940 c := &ProjectsLocationsDataStoresUserEventsCollectCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32941 c.parent = parent
32942 return c
32943 }
32944
32945
32946
32947
32948 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Ets(ets int64) *ProjectsLocationsDataStoresUserEventsCollectCall {
32949 c.urlParams_.Set("ets", fmt.Sprint(ets))
32950 return c
32951 }
32952
32953
32954
32955
32956
32957 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Uri(uri string) *ProjectsLocationsDataStoresUserEventsCollectCall {
32958 c.urlParams_.Set("uri", uri)
32959 return c
32960 }
32961
32962
32963
32964 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) UserEvent(userEvent string) *ProjectsLocationsDataStoresUserEventsCollectCall {
32965 c.urlParams_.Set("userEvent", userEvent)
32966 return c
32967 }
32968
32969
32970
32971
32972 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsCollectCall {
32973 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32974 return c
32975 }
32976
32977
32978
32979
32980 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) IfNoneMatch(entityTag string) *ProjectsLocationsDataStoresUserEventsCollectCall {
32981 c.ifNoneMatch_ = entityTag
32982 return c
32983 }
32984
32985
32986 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsCollectCall {
32987 c.ctx_ = ctx
32988 return c
32989 }
32990
32991
32992
32993 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Header() http.Header {
32994 if c.header_ == nil {
32995 c.header_ = make(http.Header)
32996 }
32997 return c.header_
32998 }
32999
33000 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) doRequest(alt string) (*http.Response, error) {
33001 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33002 if c.ifNoneMatch_ != "" {
33003 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33004 }
33005 var body io.Reader = nil
33006 c.urlParams_.Set("alt", alt)
33007 c.urlParams_.Set("prettyPrint", "false")
33008 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:collect")
33009 urls += "?" + c.urlParams_.Encode()
33010 req, err := http.NewRequest("GET", urls, body)
33011 if err != nil {
33012 return nil, err
33013 }
33014 req.Header = reqHeaders
33015 googleapi.Expand(req.URL, map[string]string{
33016 "parent": c.parent,
33017 })
33018 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33019 }
33020
33021
33022
33023
33024
33025
33026
33027 func (c *ProjectsLocationsDataStoresUserEventsCollectCall) Do(opts ...googleapi.CallOption) (*GoogleApiHttpBody, error) {
33028 gensupport.SetOptions(c.urlParams_, opts...)
33029 res, err := c.doRequest("json")
33030 if res != nil && res.StatusCode == http.StatusNotModified {
33031 if res.Body != nil {
33032 res.Body.Close()
33033 }
33034 return nil, gensupport.WrapError(&googleapi.Error{
33035 Code: res.StatusCode,
33036 Header: res.Header,
33037 })
33038 }
33039 if err != nil {
33040 return nil, err
33041 }
33042 defer googleapi.CloseBody(res)
33043 if err := googleapi.CheckResponse(res); err != nil {
33044 return nil, gensupport.WrapError(err)
33045 }
33046 ret := &GoogleApiHttpBody{
33047 ServerResponse: googleapi.ServerResponse{
33048 Header: res.Header,
33049 HTTPStatusCode: res.StatusCode,
33050 },
33051 }
33052 target := &ret
33053 if err := gensupport.DecodeResponse(target, res); err != nil {
33054 return nil, err
33055 }
33056 return ret, nil
33057 }
33058
33059 type ProjectsLocationsDataStoresUserEventsImportCall struct {
33060 s *Service
33061 parent string
33062 googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest
33063 urlParams_ gensupport.URLParams
33064 ctx_ context.Context
33065 header_ http.Header
33066 }
33067
33068
33069
33070
33071
33072
33073
33074
33075
33076
33077 func (r *ProjectsLocationsDataStoresUserEventsService) Import(parent string, googleclouddiscoveryenginev1alphaimportusereventsrequest *GoogleCloudDiscoveryengineV1alphaImportUserEventsRequest) *ProjectsLocationsDataStoresUserEventsImportCall {
33078 c := &ProjectsLocationsDataStoresUserEventsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33079 c.parent = parent
33080 c.googleclouddiscoveryenginev1alphaimportusereventsrequest = googleclouddiscoveryenginev1alphaimportusereventsrequest
33081 return c
33082 }
33083
33084
33085
33086
33087 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsImportCall {
33088 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33089 return c
33090 }
33091
33092
33093 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsImportCall {
33094 c.ctx_ = ctx
33095 return c
33096 }
33097
33098
33099
33100 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Header() http.Header {
33101 if c.header_ == nil {
33102 c.header_ = make(http.Header)
33103 }
33104 return c.header_
33105 }
33106
33107 func (c *ProjectsLocationsDataStoresUserEventsImportCall) doRequest(alt string) (*http.Response, error) {
33108 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33109 var body io.Reader = nil
33110 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphaimportusereventsrequest)
33111 if err != nil {
33112 return nil, err
33113 }
33114 c.urlParams_.Set("alt", alt)
33115 c.urlParams_.Set("prettyPrint", "false")
33116 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:import")
33117 urls += "?" + c.urlParams_.Encode()
33118 req, err := http.NewRequest("POST", urls, body)
33119 if err != nil {
33120 return nil, err
33121 }
33122 req.Header = reqHeaders
33123 googleapi.Expand(req.URL, map[string]string{
33124 "parent": c.parent,
33125 })
33126 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33127 }
33128
33129
33130
33131
33132
33133
33134
33135 func (c *ProjectsLocationsDataStoresUserEventsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33136 gensupport.SetOptions(c.urlParams_, opts...)
33137 res, err := c.doRequest("json")
33138 if res != nil && res.StatusCode == http.StatusNotModified {
33139 if res.Body != nil {
33140 res.Body.Close()
33141 }
33142 return nil, gensupport.WrapError(&googleapi.Error{
33143 Code: res.StatusCode,
33144 Header: res.Header,
33145 })
33146 }
33147 if err != nil {
33148 return nil, err
33149 }
33150 defer googleapi.CloseBody(res)
33151 if err := googleapi.CheckResponse(res); err != nil {
33152 return nil, gensupport.WrapError(err)
33153 }
33154 ret := &GoogleLongrunningOperation{
33155 ServerResponse: googleapi.ServerResponse{
33156 Header: res.Header,
33157 HTTPStatusCode: res.StatusCode,
33158 },
33159 }
33160 target := &ret
33161 if err := gensupport.DecodeResponse(target, res); err != nil {
33162 return nil, err
33163 }
33164 return ret, nil
33165 }
33166
33167 type ProjectsLocationsDataStoresUserEventsPurgeCall struct {
33168 s *Service
33169 parent string
33170 googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest
33171 urlParams_ gensupport.URLParams
33172 ctx_ context.Context
33173 header_ http.Header
33174 }
33175
33176
33177
33178
33179
33180
33181
33182
33183
33184
33185 func (r *ProjectsLocationsDataStoresUserEventsService) Purge(parent string, googleclouddiscoveryenginev1alphapurgeusereventsrequest *GoogleCloudDiscoveryengineV1alphaPurgeUserEventsRequest) *ProjectsLocationsDataStoresUserEventsPurgeCall {
33186 c := &ProjectsLocationsDataStoresUserEventsPurgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33187 c.parent = parent
33188 c.googleclouddiscoveryenginev1alphapurgeusereventsrequest = googleclouddiscoveryenginev1alphapurgeusereventsrequest
33189 return c
33190 }
33191
33192
33193
33194
33195 func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsPurgeCall {
33196 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33197 return c
33198 }
33199
33200
33201 func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsPurgeCall {
33202 c.ctx_ = ctx
33203 return c
33204 }
33205
33206
33207
33208 func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Header() http.Header {
33209 if c.header_ == nil {
33210 c.header_ = make(http.Header)
33211 }
33212 return c.header_
33213 }
33214
33215 func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) doRequest(alt string) (*http.Response, error) {
33216 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33217 var body io.Reader = nil
33218 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphapurgeusereventsrequest)
33219 if err != nil {
33220 return nil, err
33221 }
33222 c.urlParams_.Set("alt", alt)
33223 c.urlParams_.Set("prettyPrint", "false")
33224 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:purge")
33225 urls += "?" + c.urlParams_.Encode()
33226 req, err := http.NewRequest("POST", urls, body)
33227 if err != nil {
33228 return nil, err
33229 }
33230 req.Header = reqHeaders
33231 googleapi.Expand(req.URL, map[string]string{
33232 "parent": c.parent,
33233 })
33234 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33235 }
33236
33237
33238
33239
33240
33241
33242
33243 func (c *ProjectsLocationsDataStoresUserEventsPurgeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33244 gensupport.SetOptions(c.urlParams_, opts...)
33245 res, err := c.doRequest("json")
33246 if res != nil && res.StatusCode == http.StatusNotModified {
33247 if res.Body != nil {
33248 res.Body.Close()
33249 }
33250 return nil, gensupport.WrapError(&googleapi.Error{
33251 Code: res.StatusCode,
33252 Header: res.Header,
33253 })
33254 }
33255 if err != nil {
33256 return nil, err
33257 }
33258 defer googleapi.CloseBody(res)
33259 if err := googleapi.CheckResponse(res); err != nil {
33260 return nil, gensupport.WrapError(err)
33261 }
33262 ret := &GoogleLongrunningOperation{
33263 ServerResponse: googleapi.ServerResponse{
33264 Header: res.Header,
33265 HTTPStatusCode: res.StatusCode,
33266 },
33267 }
33268 target := &ret
33269 if err := gensupport.DecodeResponse(target, res); err != nil {
33270 return nil, err
33271 }
33272 return ret, nil
33273 }
33274
33275 type ProjectsLocationsDataStoresUserEventsWriteCall struct {
33276 s *Service
33277 parent string
33278 googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent
33279 urlParams_ gensupport.URLParams
33280 ctx_ context.Context
33281 header_ http.Header
33282 }
33283
33284
33285
33286
33287
33288
33289
33290
33291
33292 func (r *ProjectsLocationsDataStoresUserEventsService) Write(parent string, googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent) *ProjectsLocationsDataStoresUserEventsWriteCall {
33293 c := &ProjectsLocationsDataStoresUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33294 c.parent = parent
33295 c.googleclouddiscoveryenginev1alphauserevent = googleclouddiscoveryenginev1alphauserevent
33296 return c
33297 }
33298
33299
33300
33301
33302 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsDataStoresUserEventsWriteCall {
33303 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33304 return c
33305 }
33306
33307
33308 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsDataStoresUserEventsWriteCall {
33309 c.ctx_ = ctx
33310 return c
33311 }
33312
33313
33314
33315 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Header() http.Header {
33316 if c.header_ == nil {
33317 c.header_ = make(http.Header)
33318 }
33319 return c.header_
33320 }
33321
33322 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
33323 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33324 var body io.Reader = nil
33325 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphauserevent)
33326 if err != nil {
33327 return nil, err
33328 }
33329 c.urlParams_.Set("alt", alt)
33330 c.urlParams_.Set("prettyPrint", "false")
33331 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:write")
33332 urls += "?" + c.urlParams_.Encode()
33333 req, err := http.NewRequest("POST", urls, body)
33334 if err != nil {
33335 return nil, err
33336 }
33337 req.Header = reqHeaders
33338 googleapi.Expand(req.URL, map[string]string{
33339 "parent": c.parent,
33340 })
33341 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33342 }
33343
33344
33345
33346
33347
33348
33349
33350 func (c *ProjectsLocationsDataStoresUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaUserEvent, error) {
33351 gensupport.SetOptions(c.urlParams_, opts...)
33352 res, err := c.doRequest("json")
33353 if res != nil && res.StatusCode == http.StatusNotModified {
33354 if res.Body != nil {
33355 res.Body.Close()
33356 }
33357 return nil, gensupport.WrapError(&googleapi.Error{
33358 Code: res.StatusCode,
33359 Header: res.Header,
33360 })
33361 }
33362 if err != nil {
33363 return nil, err
33364 }
33365 defer googleapi.CloseBody(res)
33366 if err := googleapi.CheckResponse(res); err != nil {
33367 return nil, gensupport.WrapError(err)
33368 }
33369 ret := &GoogleCloudDiscoveryengineV1alphaUserEvent{
33370 ServerResponse: googleapi.ServerResponse{
33371 Header: res.Header,
33372 HTTPStatusCode: res.StatusCode,
33373 },
33374 }
33375 target := &ret
33376 if err := gensupport.DecodeResponse(target, res); err != nil {
33377 return nil, err
33378 }
33379 return ret, nil
33380 }
33381
33382 type ProjectsLocationsEvaluationsOperationsGetCall struct {
33383 s *Service
33384 name string
33385 urlParams_ gensupport.URLParams
33386 ifNoneMatch_ string
33387 ctx_ context.Context
33388 header_ http.Header
33389 }
33390
33391
33392
33393
33394
33395
33396 func (r *ProjectsLocationsEvaluationsOperationsService) Get(name string) *ProjectsLocationsEvaluationsOperationsGetCall {
33397 c := &ProjectsLocationsEvaluationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33398 c.name = name
33399 return c
33400 }
33401
33402
33403
33404
33405 func (c *ProjectsLocationsEvaluationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsEvaluationsOperationsGetCall {
33406 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33407 return c
33408 }
33409
33410
33411
33412
33413 func (c *ProjectsLocationsEvaluationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsEvaluationsOperationsGetCall {
33414 c.ifNoneMatch_ = entityTag
33415 return c
33416 }
33417
33418
33419 func (c *ProjectsLocationsEvaluationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsEvaluationsOperationsGetCall {
33420 c.ctx_ = ctx
33421 return c
33422 }
33423
33424
33425
33426 func (c *ProjectsLocationsEvaluationsOperationsGetCall) Header() http.Header {
33427 if c.header_ == nil {
33428 c.header_ = make(http.Header)
33429 }
33430 return c.header_
33431 }
33432
33433 func (c *ProjectsLocationsEvaluationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
33434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33435 if c.ifNoneMatch_ != "" {
33436 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33437 }
33438 var body io.Reader = nil
33439 c.urlParams_.Set("alt", alt)
33440 c.urlParams_.Set("prettyPrint", "false")
33441 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
33442 urls += "?" + c.urlParams_.Encode()
33443 req, err := http.NewRequest("GET", urls, body)
33444 if err != nil {
33445 return nil, err
33446 }
33447 req.Header = reqHeaders
33448 googleapi.Expand(req.URL, map[string]string{
33449 "name": c.name,
33450 })
33451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33452 }
33453
33454
33455
33456
33457
33458
33459
33460 func (c *ProjectsLocationsEvaluationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33461 gensupport.SetOptions(c.urlParams_, opts...)
33462 res, err := c.doRequest("json")
33463 if res != nil && res.StatusCode == http.StatusNotModified {
33464 if res.Body != nil {
33465 res.Body.Close()
33466 }
33467 return nil, gensupport.WrapError(&googleapi.Error{
33468 Code: res.StatusCode,
33469 Header: res.Header,
33470 })
33471 }
33472 if err != nil {
33473 return nil, err
33474 }
33475 defer googleapi.CloseBody(res)
33476 if err := googleapi.CheckResponse(res); err != nil {
33477 return nil, gensupport.WrapError(err)
33478 }
33479 ret := &GoogleLongrunningOperation{
33480 ServerResponse: googleapi.ServerResponse{
33481 Header: res.Header,
33482 HTTPStatusCode: res.StatusCode,
33483 },
33484 }
33485 target := &ret
33486 if err := gensupport.DecodeResponse(target, res); err != nil {
33487 return nil, err
33488 }
33489 return ret, nil
33490 }
33491
33492 type ProjectsLocationsGroundingConfigsCheckCall struct {
33493 s *Service
33494 groundingConfig string
33495 googleclouddiscoveryenginev1alphacheckgroundingrequest *GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest
33496 urlParams_ gensupport.URLParams
33497 ctx_ context.Context
33498 header_ http.Header
33499 }
33500
33501
33502
33503
33504
33505 func (r *ProjectsLocationsGroundingConfigsService) Check(groundingConfig string, googleclouddiscoveryenginev1alphacheckgroundingrequest *GoogleCloudDiscoveryengineV1alphaCheckGroundingRequest) *ProjectsLocationsGroundingConfigsCheckCall {
33506 c := &ProjectsLocationsGroundingConfigsCheckCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33507 c.groundingConfig = groundingConfig
33508 c.googleclouddiscoveryenginev1alphacheckgroundingrequest = googleclouddiscoveryenginev1alphacheckgroundingrequest
33509 return c
33510 }
33511
33512
33513
33514
33515 func (c *ProjectsLocationsGroundingConfigsCheckCall) Fields(s ...googleapi.Field) *ProjectsLocationsGroundingConfigsCheckCall {
33516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33517 return c
33518 }
33519
33520
33521 func (c *ProjectsLocationsGroundingConfigsCheckCall) Context(ctx context.Context) *ProjectsLocationsGroundingConfigsCheckCall {
33522 c.ctx_ = ctx
33523 return c
33524 }
33525
33526
33527
33528 func (c *ProjectsLocationsGroundingConfigsCheckCall) Header() http.Header {
33529 if c.header_ == nil {
33530 c.header_ = make(http.Header)
33531 }
33532 return c.header_
33533 }
33534
33535 func (c *ProjectsLocationsGroundingConfigsCheckCall) doRequest(alt string) (*http.Response, error) {
33536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33537 var body io.Reader = nil
33538 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphacheckgroundingrequest)
33539 if err != nil {
33540 return nil, err
33541 }
33542 c.urlParams_.Set("alt", alt)
33543 c.urlParams_.Set("prettyPrint", "false")
33544 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+groundingConfig}:check")
33545 urls += "?" + c.urlParams_.Encode()
33546 req, err := http.NewRequest("POST", urls, body)
33547 if err != nil {
33548 return nil, err
33549 }
33550 req.Header = reqHeaders
33551 googleapi.Expand(req.URL, map[string]string{
33552 "groundingConfig": c.groundingConfig,
33553 })
33554 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33555 }
33556
33557
33558
33559
33560
33561
33562
33563 func (c *ProjectsLocationsGroundingConfigsCheckCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse, error) {
33564 gensupport.SetOptions(c.urlParams_, opts...)
33565 res, err := c.doRequest("json")
33566 if res != nil && res.StatusCode == http.StatusNotModified {
33567 if res.Body != nil {
33568 res.Body.Close()
33569 }
33570 return nil, gensupport.WrapError(&googleapi.Error{
33571 Code: res.StatusCode,
33572 Header: res.Header,
33573 })
33574 }
33575 if err != nil {
33576 return nil, err
33577 }
33578 defer googleapi.CloseBody(res)
33579 if err := googleapi.CheckResponse(res); err != nil {
33580 return nil, gensupport.WrapError(err)
33581 }
33582 ret := &GoogleCloudDiscoveryengineV1alphaCheckGroundingResponse{
33583 ServerResponse: googleapi.ServerResponse{
33584 Header: res.Header,
33585 HTTPStatusCode: res.StatusCode,
33586 },
33587 }
33588 target := &ret
33589 if err := gensupport.DecodeResponse(target, res); err != nil {
33590 return nil, err
33591 }
33592 return ret, nil
33593 }
33594
33595 type ProjectsLocationsOperationsGetCall struct {
33596 s *Service
33597 name string
33598 urlParams_ gensupport.URLParams
33599 ifNoneMatch_ string
33600 ctx_ context.Context
33601 header_ http.Header
33602 }
33603
33604
33605
33606
33607
33608
33609 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
33610 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33611 c.name = name
33612 return c
33613 }
33614
33615
33616
33617
33618 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
33619 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33620 return c
33621 }
33622
33623
33624
33625
33626 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
33627 c.ifNoneMatch_ = entityTag
33628 return c
33629 }
33630
33631
33632 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
33633 c.ctx_ = ctx
33634 return c
33635 }
33636
33637
33638
33639 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
33640 if c.header_ == nil {
33641 c.header_ = make(http.Header)
33642 }
33643 return c.header_
33644 }
33645
33646 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
33647 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33648 if c.ifNoneMatch_ != "" {
33649 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33650 }
33651 var body io.Reader = nil
33652 c.urlParams_.Set("alt", alt)
33653 c.urlParams_.Set("prettyPrint", "false")
33654 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
33655 urls += "?" + c.urlParams_.Encode()
33656 req, err := http.NewRequest("GET", urls, body)
33657 if err != nil {
33658 return nil, err
33659 }
33660 req.Header = reqHeaders
33661 googleapi.Expand(req.URL, map[string]string{
33662 "name": c.name,
33663 })
33664 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33665 }
33666
33667
33668
33669
33670
33671
33672
33673 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33674 gensupport.SetOptions(c.urlParams_, opts...)
33675 res, err := c.doRequest("json")
33676 if res != nil && res.StatusCode == http.StatusNotModified {
33677 if res.Body != nil {
33678 res.Body.Close()
33679 }
33680 return nil, gensupport.WrapError(&googleapi.Error{
33681 Code: res.StatusCode,
33682 Header: res.Header,
33683 })
33684 }
33685 if err != nil {
33686 return nil, err
33687 }
33688 defer googleapi.CloseBody(res)
33689 if err := googleapi.CheckResponse(res); err != nil {
33690 return nil, gensupport.WrapError(err)
33691 }
33692 ret := &GoogleLongrunningOperation{
33693 ServerResponse: googleapi.ServerResponse{
33694 Header: res.Header,
33695 HTTPStatusCode: res.StatusCode,
33696 },
33697 }
33698 target := &ret
33699 if err := gensupport.DecodeResponse(target, res); err != nil {
33700 return nil, err
33701 }
33702 return ret, nil
33703 }
33704
33705 type ProjectsLocationsOperationsListCall struct {
33706 s *Service
33707 name string
33708 urlParams_ gensupport.URLParams
33709 ifNoneMatch_ string
33710 ctx_ context.Context
33711 header_ http.Header
33712 }
33713
33714
33715
33716
33717
33718 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
33719 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33720 c.name = name
33721 return c
33722 }
33723
33724
33725 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
33726 c.urlParams_.Set("filter", filter)
33727 return c
33728 }
33729
33730
33731
33732 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
33733 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33734 return c
33735 }
33736
33737
33738
33739 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
33740 c.urlParams_.Set("pageToken", pageToken)
33741 return c
33742 }
33743
33744
33745
33746
33747 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
33748 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33749 return c
33750 }
33751
33752
33753
33754
33755 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
33756 c.ifNoneMatch_ = entityTag
33757 return c
33758 }
33759
33760
33761 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
33762 c.ctx_ = ctx
33763 return c
33764 }
33765
33766
33767
33768 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
33769 if c.header_ == nil {
33770 c.header_ = make(http.Header)
33771 }
33772 return c.header_
33773 }
33774
33775 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
33776 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33777 if c.ifNoneMatch_ != "" {
33778 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33779 }
33780 var body io.Reader = nil
33781 c.urlParams_.Set("alt", alt)
33782 c.urlParams_.Set("prettyPrint", "false")
33783 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
33784 urls += "?" + c.urlParams_.Encode()
33785 req, err := http.NewRequest("GET", urls, body)
33786 if err != nil {
33787 return nil, err
33788 }
33789 req.Header = reqHeaders
33790 googleapi.Expand(req.URL, map[string]string{
33791 "name": c.name,
33792 })
33793 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33794 }
33795
33796
33797
33798
33799
33800
33801
33802 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
33803 gensupport.SetOptions(c.urlParams_, opts...)
33804 res, err := c.doRequest("json")
33805 if res != nil && res.StatusCode == http.StatusNotModified {
33806 if res.Body != nil {
33807 res.Body.Close()
33808 }
33809 return nil, gensupport.WrapError(&googleapi.Error{
33810 Code: res.StatusCode,
33811 Header: res.Header,
33812 })
33813 }
33814 if err != nil {
33815 return nil, err
33816 }
33817 defer googleapi.CloseBody(res)
33818 if err := googleapi.CheckResponse(res); err != nil {
33819 return nil, gensupport.WrapError(err)
33820 }
33821 ret := &GoogleLongrunningListOperationsResponse{
33822 ServerResponse: googleapi.ServerResponse{
33823 Header: res.Header,
33824 HTTPStatusCode: res.StatusCode,
33825 },
33826 }
33827 target := &ret
33828 if err := gensupport.DecodeResponse(target, res); err != nil {
33829 return nil, err
33830 }
33831 return ret, nil
33832 }
33833
33834
33835
33836
33837 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
33838 c.ctx_ = ctx
33839 defer c.PageToken(c.urlParams_.Get("pageToken"))
33840 for {
33841 x, err := c.Do()
33842 if err != nil {
33843 return err
33844 }
33845 if err := f(x); err != nil {
33846 return err
33847 }
33848 if x.NextPageToken == "" {
33849 return nil
33850 }
33851 c.PageToken(x.NextPageToken)
33852 }
33853 }
33854
33855 type ProjectsLocationsRankingConfigsRankCall struct {
33856 s *Service
33857 rankingConfig string
33858 googleclouddiscoveryenginev1alpharankrequest *GoogleCloudDiscoveryengineV1alphaRankRequest
33859 urlParams_ gensupport.URLParams
33860 ctx_ context.Context
33861 header_ http.Header
33862 }
33863
33864
33865
33866
33867
33868
33869 func (r *ProjectsLocationsRankingConfigsService) Rank(rankingConfig string, googleclouddiscoveryenginev1alpharankrequest *GoogleCloudDiscoveryengineV1alphaRankRequest) *ProjectsLocationsRankingConfigsRankCall {
33870 c := &ProjectsLocationsRankingConfigsRankCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33871 c.rankingConfig = rankingConfig
33872 c.googleclouddiscoveryenginev1alpharankrequest = googleclouddiscoveryenginev1alpharankrequest
33873 return c
33874 }
33875
33876
33877
33878
33879 func (c *ProjectsLocationsRankingConfigsRankCall) Fields(s ...googleapi.Field) *ProjectsLocationsRankingConfigsRankCall {
33880 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33881 return c
33882 }
33883
33884
33885 func (c *ProjectsLocationsRankingConfigsRankCall) Context(ctx context.Context) *ProjectsLocationsRankingConfigsRankCall {
33886 c.ctx_ = ctx
33887 return c
33888 }
33889
33890
33891
33892 func (c *ProjectsLocationsRankingConfigsRankCall) Header() http.Header {
33893 if c.header_ == nil {
33894 c.header_ = make(http.Header)
33895 }
33896 return c.header_
33897 }
33898
33899 func (c *ProjectsLocationsRankingConfigsRankCall) doRequest(alt string) (*http.Response, error) {
33900 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33901 var body io.Reader = nil
33902 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alpharankrequest)
33903 if err != nil {
33904 return nil, err
33905 }
33906 c.urlParams_.Set("alt", alt)
33907 c.urlParams_.Set("prettyPrint", "false")
33908 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+rankingConfig}:rank")
33909 urls += "?" + c.urlParams_.Encode()
33910 req, err := http.NewRequest("POST", urls, body)
33911 if err != nil {
33912 return nil, err
33913 }
33914 req.Header = reqHeaders
33915 googleapi.Expand(req.URL, map[string]string{
33916 "rankingConfig": c.rankingConfig,
33917 })
33918 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33919 }
33920
33921
33922
33923
33924
33925
33926
33927 func (c *ProjectsLocationsRankingConfigsRankCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaRankResponse, error) {
33928 gensupport.SetOptions(c.urlParams_, opts...)
33929 res, err := c.doRequest("json")
33930 if res != nil && res.StatusCode == http.StatusNotModified {
33931 if res.Body != nil {
33932 res.Body.Close()
33933 }
33934 return nil, gensupport.WrapError(&googleapi.Error{
33935 Code: res.StatusCode,
33936 Header: res.Header,
33937 })
33938 }
33939 if err != nil {
33940 return nil, err
33941 }
33942 defer googleapi.CloseBody(res)
33943 if err := googleapi.CheckResponse(res); err != nil {
33944 return nil, gensupport.WrapError(err)
33945 }
33946 ret := &GoogleCloudDiscoveryengineV1alphaRankResponse{
33947 ServerResponse: googleapi.ServerResponse{
33948 Header: res.Header,
33949 HTTPStatusCode: res.StatusCode,
33950 },
33951 }
33952 target := &ret
33953 if err := gensupport.DecodeResponse(target, res); err != nil {
33954 return nil, err
33955 }
33956 return ret, nil
33957 }
33958
33959 type ProjectsLocationsSampleQuerySetsOperationsGetCall struct {
33960 s *Service
33961 name string
33962 urlParams_ gensupport.URLParams
33963 ifNoneMatch_ string
33964 ctx_ context.Context
33965 header_ http.Header
33966 }
33967
33968
33969
33970
33971
33972
33973 func (r *ProjectsLocationsSampleQuerySetsOperationsService) Get(name string) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
33974 c := &ProjectsLocationsSampleQuerySetsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33975 c.name = name
33976 return c
33977 }
33978
33979
33980
33981
33982 func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
33983 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33984 return c
33985 }
33986
33987
33988
33989
33990 func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
33991 c.ifNoneMatch_ = entityTag
33992 return c
33993 }
33994
33995
33996 func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsSampleQuerySetsOperationsGetCall {
33997 c.ctx_ = ctx
33998 return c
33999 }
34000
34001
34002
34003 func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Header() http.Header {
34004 if c.header_ == nil {
34005 c.header_ = make(http.Header)
34006 }
34007 return c.header_
34008 }
34009
34010 func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
34011 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34012 if c.ifNoneMatch_ != "" {
34013 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34014 }
34015 var body io.Reader = nil
34016 c.urlParams_.Set("alt", alt)
34017 c.urlParams_.Set("prettyPrint", "false")
34018 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
34019 urls += "?" + c.urlParams_.Encode()
34020 req, err := http.NewRequest("GET", urls, body)
34021 if err != nil {
34022 return nil, err
34023 }
34024 req.Header = reqHeaders
34025 googleapi.Expand(req.URL, map[string]string{
34026 "name": c.name,
34027 })
34028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34029 }
34030
34031
34032
34033
34034
34035
34036
34037 func (c *ProjectsLocationsSampleQuerySetsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34038 gensupport.SetOptions(c.urlParams_, opts...)
34039 res, err := c.doRequest("json")
34040 if res != nil && res.StatusCode == http.StatusNotModified {
34041 if res.Body != nil {
34042 res.Body.Close()
34043 }
34044 return nil, gensupport.WrapError(&googleapi.Error{
34045 Code: res.StatusCode,
34046 Header: res.Header,
34047 })
34048 }
34049 if err != nil {
34050 return nil, err
34051 }
34052 defer googleapi.CloseBody(res)
34053 if err := googleapi.CheckResponse(res); err != nil {
34054 return nil, gensupport.WrapError(err)
34055 }
34056 ret := &GoogleLongrunningOperation{
34057 ServerResponse: googleapi.ServerResponse{
34058 Header: res.Header,
34059 HTTPStatusCode: res.StatusCode,
34060 },
34061 }
34062 target := &ret
34063 if err := gensupport.DecodeResponse(target, res); err != nil {
34064 return nil, err
34065 }
34066 return ret, nil
34067 }
34068
34069 type ProjectsLocationsUserEventsWriteCall struct {
34070 s *Service
34071 parent string
34072 googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent
34073 urlParams_ gensupport.URLParams
34074 ctx_ context.Context
34075 header_ http.Header
34076 }
34077
34078
34079
34080
34081
34082
34083
34084
34085
34086 func (r *ProjectsLocationsUserEventsService) Write(parent string, googleclouddiscoveryenginev1alphauserevent *GoogleCloudDiscoveryengineV1alphaUserEvent) *ProjectsLocationsUserEventsWriteCall {
34087 c := &ProjectsLocationsUserEventsWriteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34088 c.parent = parent
34089 c.googleclouddiscoveryenginev1alphauserevent = googleclouddiscoveryenginev1alphauserevent
34090 return c
34091 }
34092
34093
34094
34095
34096 func (c *ProjectsLocationsUserEventsWriteCall) Fields(s ...googleapi.Field) *ProjectsLocationsUserEventsWriteCall {
34097 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34098 return c
34099 }
34100
34101
34102 func (c *ProjectsLocationsUserEventsWriteCall) Context(ctx context.Context) *ProjectsLocationsUserEventsWriteCall {
34103 c.ctx_ = ctx
34104 return c
34105 }
34106
34107
34108
34109 func (c *ProjectsLocationsUserEventsWriteCall) Header() http.Header {
34110 if c.header_ == nil {
34111 c.header_ = make(http.Header)
34112 }
34113 return c.header_
34114 }
34115
34116 func (c *ProjectsLocationsUserEventsWriteCall) doRequest(alt string) (*http.Response, error) {
34117 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34118 var body io.Reader = nil
34119 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddiscoveryenginev1alphauserevent)
34120 if err != nil {
34121 return nil, err
34122 }
34123 c.urlParams_.Set("alt", alt)
34124 c.urlParams_.Set("prettyPrint", "false")
34125 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+parent}/userEvents:write")
34126 urls += "?" + c.urlParams_.Encode()
34127 req, err := http.NewRequest("POST", urls, body)
34128 if err != nil {
34129 return nil, err
34130 }
34131 req.Header = reqHeaders
34132 googleapi.Expand(req.URL, map[string]string{
34133 "parent": c.parent,
34134 })
34135 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34136 }
34137
34138
34139
34140
34141
34142
34143
34144 func (c *ProjectsLocationsUserEventsWriteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDiscoveryengineV1alphaUserEvent, error) {
34145 gensupport.SetOptions(c.urlParams_, opts...)
34146 res, err := c.doRequest("json")
34147 if res != nil && res.StatusCode == http.StatusNotModified {
34148 if res.Body != nil {
34149 res.Body.Close()
34150 }
34151 return nil, gensupport.WrapError(&googleapi.Error{
34152 Code: res.StatusCode,
34153 Header: res.Header,
34154 })
34155 }
34156 if err != nil {
34157 return nil, err
34158 }
34159 defer googleapi.CloseBody(res)
34160 if err := googleapi.CheckResponse(res); err != nil {
34161 return nil, gensupport.WrapError(err)
34162 }
34163 ret := &GoogleCloudDiscoveryengineV1alphaUserEvent{
34164 ServerResponse: googleapi.ServerResponse{
34165 Header: res.Header,
34166 HTTPStatusCode: res.StatusCode,
34167 },
34168 }
34169 target := &ret
34170 if err := gensupport.DecodeResponse(target, res); err != nil {
34171 return nil, err
34172 }
34173 return ret, nil
34174 }
34175
34176 type ProjectsOperationsGetCall struct {
34177 s *Service
34178 name string
34179 urlParams_ gensupport.URLParams
34180 ifNoneMatch_ string
34181 ctx_ context.Context
34182 header_ http.Header
34183 }
34184
34185
34186
34187
34188
34189
34190 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
34191 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34192 c.name = name
34193 return c
34194 }
34195
34196
34197
34198
34199 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
34200 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34201 return c
34202 }
34203
34204
34205
34206
34207 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
34208 c.ifNoneMatch_ = entityTag
34209 return c
34210 }
34211
34212
34213 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
34214 c.ctx_ = ctx
34215 return c
34216 }
34217
34218
34219
34220 func (c *ProjectsOperationsGetCall) Header() http.Header {
34221 if c.header_ == nil {
34222 c.header_ = make(http.Header)
34223 }
34224 return c.header_
34225 }
34226
34227 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
34228 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34229 if c.ifNoneMatch_ != "" {
34230 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34231 }
34232 var body io.Reader = nil
34233 c.urlParams_.Set("alt", alt)
34234 c.urlParams_.Set("prettyPrint", "false")
34235 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}")
34236 urls += "?" + c.urlParams_.Encode()
34237 req, err := http.NewRequest("GET", urls, body)
34238 if err != nil {
34239 return nil, err
34240 }
34241 req.Header = reqHeaders
34242 googleapi.Expand(req.URL, map[string]string{
34243 "name": c.name,
34244 })
34245 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34246 }
34247
34248
34249
34250
34251
34252
34253
34254 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34255 gensupport.SetOptions(c.urlParams_, opts...)
34256 res, err := c.doRequest("json")
34257 if res != nil && res.StatusCode == http.StatusNotModified {
34258 if res.Body != nil {
34259 res.Body.Close()
34260 }
34261 return nil, gensupport.WrapError(&googleapi.Error{
34262 Code: res.StatusCode,
34263 Header: res.Header,
34264 })
34265 }
34266 if err != nil {
34267 return nil, err
34268 }
34269 defer googleapi.CloseBody(res)
34270 if err := googleapi.CheckResponse(res); err != nil {
34271 return nil, gensupport.WrapError(err)
34272 }
34273 ret := &GoogleLongrunningOperation{
34274 ServerResponse: googleapi.ServerResponse{
34275 Header: res.Header,
34276 HTTPStatusCode: res.StatusCode,
34277 },
34278 }
34279 target := &ret
34280 if err := gensupport.DecodeResponse(target, res); err != nil {
34281 return nil, err
34282 }
34283 return ret, nil
34284 }
34285
34286 type ProjectsOperationsListCall struct {
34287 s *Service
34288 name string
34289 urlParams_ gensupport.URLParams
34290 ifNoneMatch_ string
34291 ctx_ context.Context
34292 header_ http.Header
34293 }
34294
34295
34296
34297
34298
34299 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
34300 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34301 c.name = name
34302 return c
34303 }
34304
34305
34306 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
34307 c.urlParams_.Set("filter", filter)
34308 return c
34309 }
34310
34311
34312
34313 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
34314 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34315 return c
34316 }
34317
34318
34319
34320 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
34321 c.urlParams_.Set("pageToken", pageToken)
34322 return c
34323 }
34324
34325
34326
34327
34328 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
34329 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34330 return c
34331 }
34332
34333
34334
34335
34336 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
34337 c.ifNoneMatch_ = entityTag
34338 return c
34339 }
34340
34341
34342 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
34343 c.ctx_ = ctx
34344 return c
34345 }
34346
34347
34348
34349 func (c *ProjectsOperationsListCall) Header() http.Header {
34350 if c.header_ == nil {
34351 c.header_ = make(http.Header)
34352 }
34353 return c.header_
34354 }
34355
34356 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
34357 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34358 if c.ifNoneMatch_ != "" {
34359 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34360 }
34361 var body io.Reader = nil
34362 c.urlParams_.Set("alt", alt)
34363 c.urlParams_.Set("prettyPrint", "false")
34364 urls := googleapi.ResolveRelative(c.s.BasePath, "v1alpha/{+name}/operations")
34365 urls += "?" + c.urlParams_.Encode()
34366 req, err := http.NewRequest("GET", urls, body)
34367 if err != nil {
34368 return nil, err
34369 }
34370 req.Header = reqHeaders
34371 googleapi.Expand(req.URL, map[string]string{
34372 "name": c.name,
34373 })
34374 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34375 }
34376
34377
34378
34379
34380
34381
34382
34383 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
34384 gensupport.SetOptions(c.urlParams_, opts...)
34385 res, err := c.doRequest("json")
34386 if res != nil && res.StatusCode == http.StatusNotModified {
34387 if res.Body != nil {
34388 res.Body.Close()
34389 }
34390 return nil, gensupport.WrapError(&googleapi.Error{
34391 Code: res.StatusCode,
34392 Header: res.Header,
34393 })
34394 }
34395 if err != nil {
34396 return nil, err
34397 }
34398 defer googleapi.CloseBody(res)
34399 if err := googleapi.CheckResponse(res); err != nil {
34400 return nil, gensupport.WrapError(err)
34401 }
34402 ret := &GoogleLongrunningListOperationsResponse{
34403 ServerResponse: googleapi.ServerResponse{
34404 Header: res.Header,
34405 HTTPStatusCode: res.StatusCode,
34406 },
34407 }
34408 target := &ret
34409 if err := gensupport.DecodeResponse(target, res); err != nil {
34410 return nil, err
34411 }
34412 return ret, nil
34413 }
34414
34415
34416
34417
34418 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
34419 c.ctx_ = ctx
34420 defer c.PageToken(c.urlParams_.Get("pageToken"))
34421 for {
34422 x, err := c.Do()
34423 if err != nil {
34424 return err
34425 }
34426 if err := f(x); err != nil {
34427 return err
34428 }
34429 if x.NextPageToken == "" {
34430 return nil
34431 }
34432 c.PageToken(x.NextPageToken)
34433 }
34434 }
34435
View as plain text