1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58 package dialogflow
59
60 import (
61 "bytes"
62 "context"
63 "encoding/json"
64 "errors"
65 "fmt"
66 "io"
67 "net/http"
68 "net/url"
69 "strconv"
70 "strings"
71
72 googleapi "google.golang.org/api/googleapi"
73 internal "google.golang.org/api/internal"
74 gensupport "google.golang.org/api/internal/gensupport"
75 option "google.golang.org/api/option"
76 internaloption "google.golang.org/api/option/internaloption"
77 htransport "google.golang.org/api/transport/http"
78 )
79
80
81
82 var _ = bytes.NewBuffer
83 var _ = strconv.Itoa
84 var _ = fmt.Sprintf
85 var _ = json.NewDecoder
86 var _ = io.Copy
87 var _ = url.Parse
88 var _ = gensupport.MarshalJSON
89 var _ = googleapi.Version
90 var _ = errors.New
91 var _ = strings.Replace
92 var _ = context.Canceled
93 var _ = internaloption.WithDefaultEndpoint
94 var _ = internal.Version
95
96 const apiId = "dialogflow:v2"
97 const apiName = "dialogflow"
98 const apiVersion = "v2"
99 const basePath = "https://dialogflow.googleapis.com/"
100 const basePathTemplate = "https://dialogflow.UNIVERSE_DOMAIN/"
101 const mtlsBasePath = "https://dialogflow.mtls.googleapis.com/"
102
103
104 const (
105
106
107 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
108
109
110 DialogflowScope = "https://www.googleapis.com/auth/dialogflow"
111 )
112
113
114 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
115 scopesOption := internaloption.WithDefaultScopes(
116 "https://www.googleapis.com/auth/cloud-platform",
117 "https://www.googleapis.com/auth/dialogflow",
118 )
119
120 opts = append([]option.ClientOption{scopesOption}, opts...)
121 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
122 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
123 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
124 opts = append(opts, internaloption.EnableNewAuthLibrary())
125 client, endpoint, err := htransport.NewClient(ctx, opts...)
126 if err != nil {
127 return nil, err
128 }
129 s, err := New(client)
130 if err != nil {
131 return nil, err
132 }
133 if endpoint != "" {
134 s.BasePath = endpoint
135 }
136 return s, nil
137 }
138
139
140
141
142
143
144 func New(client *http.Client) (*Service, error) {
145 if client == nil {
146 return nil, errors.New("client is nil")
147 }
148 s := &Service{client: client, BasePath: basePath}
149 s.Projects = NewProjectsService(s)
150 return s, nil
151 }
152
153 type Service struct {
154 client *http.Client
155 BasePath string
156 UserAgent string
157
158 Projects *ProjectsService
159 }
160
161 func (s *Service) userAgent() string {
162 if s.UserAgent == "" {
163 return googleapi.UserAgent
164 }
165 return googleapi.UserAgent + " " + s.UserAgent
166 }
167
168 func NewProjectsService(s *Service) *ProjectsService {
169 rs := &ProjectsService{s: s}
170 rs.Agent = NewProjectsAgentService(s)
171 rs.AnswerRecords = NewProjectsAnswerRecordsService(s)
172 rs.ConversationDatasets = NewProjectsConversationDatasetsService(s)
173 rs.ConversationModels = NewProjectsConversationModelsService(s)
174 rs.ConversationProfiles = NewProjectsConversationProfilesService(s)
175 rs.Conversations = NewProjectsConversationsService(s)
176 rs.KnowledgeBases = NewProjectsKnowledgeBasesService(s)
177 rs.Locations = NewProjectsLocationsService(s)
178 rs.Operations = NewProjectsOperationsService(s)
179 rs.Suggestions = NewProjectsSuggestionsService(s)
180 return rs
181 }
182
183 type ProjectsService struct {
184 s *Service
185
186 Agent *ProjectsAgentService
187
188 AnswerRecords *ProjectsAnswerRecordsService
189
190 ConversationDatasets *ProjectsConversationDatasetsService
191
192 ConversationModels *ProjectsConversationModelsService
193
194 ConversationProfiles *ProjectsConversationProfilesService
195
196 Conversations *ProjectsConversationsService
197
198 KnowledgeBases *ProjectsKnowledgeBasesService
199
200 Locations *ProjectsLocationsService
201
202 Operations *ProjectsOperationsService
203
204 Suggestions *ProjectsSuggestionsService
205 }
206
207 func NewProjectsAgentService(s *Service) *ProjectsAgentService {
208 rs := &ProjectsAgentService{s: s}
209 rs.EntityTypes = NewProjectsAgentEntityTypesService(s)
210 rs.Environments = NewProjectsAgentEnvironmentsService(s)
211 rs.Intents = NewProjectsAgentIntentsService(s)
212 rs.KnowledgeBases = NewProjectsAgentKnowledgeBasesService(s)
213 rs.Sessions = NewProjectsAgentSessionsService(s)
214 rs.Versions = NewProjectsAgentVersionsService(s)
215 return rs
216 }
217
218 type ProjectsAgentService struct {
219 s *Service
220
221 EntityTypes *ProjectsAgentEntityTypesService
222
223 Environments *ProjectsAgentEnvironmentsService
224
225 Intents *ProjectsAgentIntentsService
226
227 KnowledgeBases *ProjectsAgentKnowledgeBasesService
228
229 Sessions *ProjectsAgentSessionsService
230
231 Versions *ProjectsAgentVersionsService
232 }
233
234 func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService {
235 rs := &ProjectsAgentEntityTypesService{s: s}
236 rs.Entities = NewProjectsAgentEntityTypesEntitiesService(s)
237 return rs
238 }
239
240 type ProjectsAgentEntityTypesService struct {
241 s *Service
242
243 Entities *ProjectsAgentEntityTypesEntitiesService
244 }
245
246 func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService {
247 rs := &ProjectsAgentEntityTypesEntitiesService{s: s}
248 return rs
249 }
250
251 type ProjectsAgentEntityTypesEntitiesService struct {
252 s *Service
253 }
254
255 func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService {
256 rs := &ProjectsAgentEnvironmentsService{s: s}
257 rs.Intents = NewProjectsAgentEnvironmentsIntentsService(s)
258 rs.Users = NewProjectsAgentEnvironmentsUsersService(s)
259 return rs
260 }
261
262 type ProjectsAgentEnvironmentsService struct {
263 s *Service
264
265 Intents *ProjectsAgentEnvironmentsIntentsService
266
267 Users *ProjectsAgentEnvironmentsUsersService
268 }
269
270 func NewProjectsAgentEnvironmentsIntentsService(s *Service) *ProjectsAgentEnvironmentsIntentsService {
271 rs := &ProjectsAgentEnvironmentsIntentsService{s: s}
272 return rs
273 }
274
275 type ProjectsAgentEnvironmentsIntentsService struct {
276 s *Service
277 }
278
279 func NewProjectsAgentEnvironmentsUsersService(s *Service) *ProjectsAgentEnvironmentsUsersService {
280 rs := &ProjectsAgentEnvironmentsUsersService{s: s}
281 rs.Sessions = NewProjectsAgentEnvironmentsUsersSessionsService(s)
282 return rs
283 }
284
285 type ProjectsAgentEnvironmentsUsersService struct {
286 s *Service
287
288 Sessions *ProjectsAgentEnvironmentsUsersSessionsService
289 }
290
291 func NewProjectsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsService {
292 rs := &ProjectsAgentEnvironmentsUsersSessionsService{s: s}
293 rs.Contexts = NewProjectsAgentEnvironmentsUsersSessionsContextsService(s)
294 rs.EntityTypes = NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s)
295 return rs
296 }
297
298 type ProjectsAgentEnvironmentsUsersSessionsService struct {
299 s *Service
300
301 Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsService
302
303 EntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
304 }
305
306 func NewProjectsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsContextsService {
307 rs := &ProjectsAgentEnvironmentsUsersSessionsContextsService{s: s}
308 return rs
309 }
310
311 type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {
312 s *Service
313 }
314
315 func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService {
316 rs := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
317 return rs
318 }
319
320 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {
321 s *Service
322 }
323
324 func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService {
325 rs := &ProjectsAgentIntentsService{s: s}
326 return rs
327 }
328
329 type ProjectsAgentIntentsService struct {
330 s *Service
331 }
332
333 func NewProjectsAgentKnowledgeBasesService(s *Service) *ProjectsAgentKnowledgeBasesService {
334 rs := &ProjectsAgentKnowledgeBasesService{s: s}
335 rs.Documents = NewProjectsAgentKnowledgeBasesDocumentsService(s)
336 return rs
337 }
338
339 type ProjectsAgentKnowledgeBasesService struct {
340 s *Service
341
342 Documents *ProjectsAgentKnowledgeBasesDocumentsService
343 }
344
345 func NewProjectsAgentKnowledgeBasesDocumentsService(s *Service) *ProjectsAgentKnowledgeBasesDocumentsService {
346 rs := &ProjectsAgentKnowledgeBasesDocumentsService{s: s}
347 return rs
348 }
349
350 type ProjectsAgentKnowledgeBasesDocumentsService struct {
351 s *Service
352 }
353
354 func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService {
355 rs := &ProjectsAgentSessionsService{s: s}
356 rs.Contexts = NewProjectsAgentSessionsContextsService(s)
357 rs.EntityTypes = NewProjectsAgentSessionsEntityTypesService(s)
358 return rs
359 }
360
361 type ProjectsAgentSessionsService struct {
362 s *Service
363
364 Contexts *ProjectsAgentSessionsContextsService
365
366 EntityTypes *ProjectsAgentSessionsEntityTypesService
367 }
368
369 func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService {
370 rs := &ProjectsAgentSessionsContextsService{s: s}
371 return rs
372 }
373
374 type ProjectsAgentSessionsContextsService struct {
375 s *Service
376 }
377
378 func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService {
379 rs := &ProjectsAgentSessionsEntityTypesService{s: s}
380 return rs
381 }
382
383 type ProjectsAgentSessionsEntityTypesService struct {
384 s *Service
385 }
386
387 func NewProjectsAgentVersionsService(s *Service) *ProjectsAgentVersionsService {
388 rs := &ProjectsAgentVersionsService{s: s}
389 return rs
390 }
391
392 type ProjectsAgentVersionsService struct {
393 s *Service
394 }
395
396 func NewProjectsAnswerRecordsService(s *Service) *ProjectsAnswerRecordsService {
397 rs := &ProjectsAnswerRecordsService{s: s}
398 return rs
399 }
400
401 type ProjectsAnswerRecordsService struct {
402 s *Service
403 }
404
405 func NewProjectsConversationDatasetsService(s *Service) *ProjectsConversationDatasetsService {
406 rs := &ProjectsConversationDatasetsService{s: s}
407 return rs
408 }
409
410 type ProjectsConversationDatasetsService struct {
411 s *Service
412 }
413
414 func NewProjectsConversationModelsService(s *Service) *ProjectsConversationModelsService {
415 rs := &ProjectsConversationModelsService{s: s}
416 rs.Evaluations = NewProjectsConversationModelsEvaluationsService(s)
417 return rs
418 }
419
420 type ProjectsConversationModelsService struct {
421 s *Service
422
423 Evaluations *ProjectsConversationModelsEvaluationsService
424 }
425
426 func NewProjectsConversationModelsEvaluationsService(s *Service) *ProjectsConversationModelsEvaluationsService {
427 rs := &ProjectsConversationModelsEvaluationsService{s: s}
428 return rs
429 }
430
431 type ProjectsConversationModelsEvaluationsService struct {
432 s *Service
433 }
434
435 func NewProjectsConversationProfilesService(s *Service) *ProjectsConversationProfilesService {
436 rs := &ProjectsConversationProfilesService{s: s}
437 return rs
438 }
439
440 type ProjectsConversationProfilesService struct {
441 s *Service
442 }
443
444 func NewProjectsConversationsService(s *Service) *ProjectsConversationsService {
445 rs := &ProjectsConversationsService{s: s}
446 rs.Messages = NewProjectsConversationsMessagesService(s)
447 rs.Participants = NewProjectsConversationsParticipantsService(s)
448 rs.Suggestions = NewProjectsConversationsSuggestionsService(s)
449 return rs
450 }
451
452 type ProjectsConversationsService struct {
453 s *Service
454
455 Messages *ProjectsConversationsMessagesService
456
457 Participants *ProjectsConversationsParticipantsService
458
459 Suggestions *ProjectsConversationsSuggestionsService
460 }
461
462 func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService {
463 rs := &ProjectsConversationsMessagesService{s: s}
464 return rs
465 }
466
467 type ProjectsConversationsMessagesService struct {
468 s *Service
469 }
470
471 func NewProjectsConversationsParticipantsService(s *Service) *ProjectsConversationsParticipantsService {
472 rs := &ProjectsConversationsParticipantsService{s: s}
473 rs.Suggestions = NewProjectsConversationsParticipantsSuggestionsService(s)
474 return rs
475 }
476
477 type ProjectsConversationsParticipantsService struct {
478 s *Service
479
480 Suggestions *ProjectsConversationsParticipantsSuggestionsService
481 }
482
483 func NewProjectsConversationsParticipantsSuggestionsService(s *Service) *ProjectsConversationsParticipantsSuggestionsService {
484 rs := &ProjectsConversationsParticipantsSuggestionsService{s: s}
485 return rs
486 }
487
488 type ProjectsConversationsParticipantsSuggestionsService struct {
489 s *Service
490 }
491
492 func NewProjectsConversationsSuggestionsService(s *Service) *ProjectsConversationsSuggestionsService {
493 rs := &ProjectsConversationsSuggestionsService{s: s}
494 return rs
495 }
496
497 type ProjectsConversationsSuggestionsService struct {
498 s *Service
499 }
500
501 func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService {
502 rs := &ProjectsKnowledgeBasesService{s: s}
503 rs.Documents = NewProjectsKnowledgeBasesDocumentsService(s)
504 return rs
505 }
506
507 type ProjectsKnowledgeBasesService struct {
508 s *Service
509
510 Documents *ProjectsKnowledgeBasesDocumentsService
511 }
512
513 func NewProjectsKnowledgeBasesDocumentsService(s *Service) *ProjectsKnowledgeBasesDocumentsService {
514 rs := &ProjectsKnowledgeBasesDocumentsService{s: s}
515 return rs
516 }
517
518 type ProjectsKnowledgeBasesDocumentsService struct {
519 s *Service
520 }
521
522 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
523 rs := &ProjectsLocationsService{s: s}
524 rs.Agent = NewProjectsLocationsAgentService(s)
525 rs.AnswerRecords = NewProjectsLocationsAnswerRecordsService(s)
526 rs.ConversationDatasets = NewProjectsLocationsConversationDatasetsService(s)
527 rs.ConversationModels = NewProjectsLocationsConversationModelsService(s)
528 rs.ConversationProfiles = NewProjectsLocationsConversationProfilesService(s)
529 rs.Conversations = NewProjectsLocationsConversationsService(s)
530 rs.KnowledgeBases = NewProjectsLocationsKnowledgeBasesService(s)
531 rs.Operations = NewProjectsLocationsOperationsService(s)
532 rs.Suggestions = NewProjectsLocationsSuggestionsService(s)
533 return rs
534 }
535
536 type ProjectsLocationsService struct {
537 s *Service
538
539 Agent *ProjectsLocationsAgentService
540
541 AnswerRecords *ProjectsLocationsAnswerRecordsService
542
543 ConversationDatasets *ProjectsLocationsConversationDatasetsService
544
545 ConversationModels *ProjectsLocationsConversationModelsService
546
547 ConversationProfiles *ProjectsLocationsConversationProfilesService
548
549 Conversations *ProjectsLocationsConversationsService
550
551 KnowledgeBases *ProjectsLocationsKnowledgeBasesService
552
553 Operations *ProjectsLocationsOperationsService
554
555 Suggestions *ProjectsLocationsSuggestionsService
556 }
557
558 func NewProjectsLocationsAgentService(s *Service) *ProjectsLocationsAgentService {
559 rs := &ProjectsLocationsAgentService{s: s}
560 rs.EntityTypes = NewProjectsLocationsAgentEntityTypesService(s)
561 rs.Environments = NewProjectsLocationsAgentEnvironmentsService(s)
562 rs.Intents = NewProjectsLocationsAgentIntentsService(s)
563 rs.Sessions = NewProjectsLocationsAgentSessionsService(s)
564 rs.Versions = NewProjectsLocationsAgentVersionsService(s)
565 return rs
566 }
567
568 type ProjectsLocationsAgentService struct {
569 s *Service
570
571 EntityTypes *ProjectsLocationsAgentEntityTypesService
572
573 Environments *ProjectsLocationsAgentEnvironmentsService
574
575 Intents *ProjectsLocationsAgentIntentsService
576
577 Sessions *ProjectsLocationsAgentSessionsService
578
579 Versions *ProjectsLocationsAgentVersionsService
580 }
581
582 func NewProjectsLocationsAgentEntityTypesService(s *Service) *ProjectsLocationsAgentEntityTypesService {
583 rs := &ProjectsLocationsAgentEntityTypesService{s: s}
584 rs.Entities = NewProjectsLocationsAgentEntityTypesEntitiesService(s)
585 return rs
586 }
587
588 type ProjectsLocationsAgentEntityTypesService struct {
589 s *Service
590
591 Entities *ProjectsLocationsAgentEntityTypesEntitiesService
592 }
593
594 func NewProjectsLocationsAgentEntityTypesEntitiesService(s *Service) *ProjectsLocationsAgentEntityTypesEntitiesService {
595 rs := &ProjectsLocationsAgentEntityTypesEntitiesService{s: s}
596 return rs
597 }
598
599 type ProjectsLocationsAgentEntityTypesEntitiesService struct {
600 s *Service
601 }
602
603 func NewProjectsLocationsAgentEnvironmentsService(s *Service) *ProjectsLocationsAgentEnvironmentsService {
604 rs := &ProjectsLocationsAgentEnvironmentsService{s: s}
605 rs.Intents = NewProjectsLocationsAgentEnvironmentsIntentsService(s)
606 rs.Users = NewProjectsLocationsAgentEnvironmentsUsersService(s)
607 return rs
608 }
609
610 type ProjectsLocationsAgentEnvironmentsService struct {
611 s *Service
612
613 Intents *ProjectsLocationsAgentEnvironmentsIntentsService
614
615 Users *ProjectsLocationsAgentEnvironmentsUsersService
616 }
617
618 func NewProjectsLocationsAgentEnvironmentsIntentsService(s *Service) *ProjectsLocationsAgentEnvironmentsIntentsService {
619 rs := &ProjectsLocationsAgentEnvironmentsIntentsService{s: s}
620 return rs
621 }
622
623 type ProjectsLocationsAgentEnvironmentsIntentsService struct {
624 s *Service
625 }
626
627 func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService {
628 rs := &ProjectsLocationsAgentEnvironmentsUsersService{s: s}
629 rs.Sessions = NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s)
630 return rs
631 }
632
633 type ProjectsLocationsAgentEnvironmentsUsersService struct {
634 s *Service
635
636 Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService
637 }
638
639 func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService {
640 rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsService{s: s}
641 rs.Contexts = NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s)
642 rs.EntityTypes = NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s)
643 return rs
644 }
645
646 type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {
647 s *Service
648
649 Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService
650
651 EntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService
652 }
653
654 func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService {
655 rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService{s: s}
656 return rs
657 }
658
659 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {
660 s *Service
661 }
662
663 func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService {
664 rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
665 return rs
666 }
667
668 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {
669 s *Service
670 }
671
672 func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService {
673 rs := &ProjectsLocationsAgentIntentsService{s: s}
674 return rs
675 }
676
677 type ProjectsLocationsAgentIntentsService struct {
678 s *Service
679 }
680
681 func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService {
682 rs := &ProjectsLocationsAgentSessionsService{s: s}
683 rs.Contexts = NewProjectsLocationsAgentSessionsContextsService(s)
684 rs.EntityTypes = NewProjectsLocationsAgentSessionsEntityTypesService(s)
685 return rs
686 }
687
688 type ProjectsLocationsAgentSessionsService struct {
689 s *Service
690
691 Contexts *ProjectsLocationsAgentSessionsContextsService
692
693 EntityTypes *ProjectsLocationsAgentSessionsEntityTypesService
694 }
695
696 func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService {
697 rs := &ProjectsLocationsAgentSessionsContextsService{s: s}
698 return rs
699 }
700
701 type ProjectsLocationsAgentSessionsContextsService struct {
702 s *Service
703 }
704
705 func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService {
706 rs := &ProjectsLocationsAgentSessionsEntityTypesService{s: s}
707 return rs
708 }
709
710 type ProjectsLocationsAgentSessionsEntityTypesService struct {
711 s *Service
712 }
713
714 func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService {
715 rs := &ProjectsLocationsAgentVersionsService{s: s}
716 return rs
717 }
718
719 type ProjectsLocationsAgentVersionsService struct {
720 s *Service
721 }
722
723 func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService {
724 rs := &ProjectsLocationsAnswerRecordsService{s: s}
725 return rs
726 }
727
728 type ProjectsLocationsAnswerRecordsService struct {
729 s *Service
730 }
731
732 func NewProjectsLocationsConversationDatasetsService(s *Service) *ProjectsLocationsConversationDatasetsService {
733 rs := &ProjectsLocationsConversationDatasetsService{s: s}
734 return rs
735 }
736
737 type ProjectsLocationsConversationDatasetsService struct {
738 s *Service
739 }
740
741 func NewProjectsLocationsConversationModelsService(s *Service) *ProjectsLocationsConversationModelsService {
742 rs := &ProjectsLocationsConversationModelsService{s: s}
743 rs.Evaluations = NewProjectsLocationsConversationModelsEvaluationsService(s)
744 return rs
745 }
746
747 type ProjectsLocationsConversationModelsService struct {
748 s *Service
749
750 Evaluations *ProjectsLocationsConversationModelsEvaluationsService
751 }
752
753 func NewProjectsLocationsConversationModelsEvaluationsService(s *Service) *ProjectsLocationsConversationModelsEvaluationsService {
754 rs := &ProjectsLocationsConversationModelsEvaluationsService{s: s}
755 return rs
756 }
757
758 type ProjectsLocationsConversationModelsEvaluationsService struct {
759 s *Service
760 }
761
762 func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService {
763 rs := &ProjectsLocationsConversationProfilesService{s: s}
764 return rs
765 }
766
767 type ProjectsLocationsConversationProfilesService struct {
768 s *Service
769 }
770
771 func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
772 rs := &ProjectsLocationsConversationsService{s: s}
773 rs.Messages = NewProjectsLocationsConversationsMessagesService(s)
774 rs.Participants = NewProjectsLocationsConversationsParticipantsService(s)
775 rs.Suggestions = NewProjectsLocationsConversationsSuggestionsService(s)
776 return rs
777 }
778
779 type ProjectsLocationsConversationsService struct {
780 s *Service
781
782 Messages *ProjectsLocationsConversationsMessagesService
783
784 Participants *ProjectsLocationsConversationsParticipantsService
785
786 Suggestions *ProjectsLocationsConversationsSuggestionsService
787 }
788
789 func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService {
790 rs := &ProjectsLocationsConversationsMessagesService{s: s}
791 return rs
792 }
793
794 type ProjectsLocationsConversationsMessagesService struct {
795 s *Service
796 }
797
798 func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService {
799 rs := &ProjectsLocationsConversationsParticipantsService{s: s}
800 rs.Suggestions = NewProjectsLocationsConversationsParticipantsSuggestionsService(s)
801 return rs
802 }
803
804 type ProjectsLocationsConversationsParticipantsService struct {
805 s *Service
806
807 Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService
808 }
809
810 func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService {
811 rs := &ProjectsLocationsConversationsParticipantsSuggestionsService{s: s}
812 return rs
813 }
814
815 type ProjectsLocationsConversationsParticipantsSuggestionsService struct {
816 s *Service
817 }
818
819 func NewProjectsLocationsConversationsSuggestionsService(s *Service) *ProjectsLocationsConversationsSuggestionsService {
820 rs := &ProjectsLocationsConversationsSuggestionsService{s: s}
821 return rs
822 }
823
824 type ProjectsLocationsConversationsSuggestionsService struct {
825 s *Service
826 }
827
828 func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService {
829 rs := &ProjectsLocationsKnowledgeBasesService{s: s}
830 rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s)
831 return rs
832 }
833
834 type ProjectsLocationsKnowledgeBasesService struct {
835 s *Service
836
837 Documents *ProjectsLocationsKnowledgeBasesDocumentsService
838 }
839
840 func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService {
841 rs := &ProjectsLocationsKnowledgeBasesDocumentsService{s: s}
842 return rs
843 }
844
845 type ProjectsLocationsKnowledgeBasesDocumentsService struct {
846 s *Service
847 }
848
849 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
850 rs := &ProjectsLocationsOperationsService{s: s}
851 return rs
852 }
853
854 type ProjectsLocationsOperationsService struct {
855 s *Service
856 }
857
858 func NewProjectsLocationsSuggestionsService(s *Service) *ProjectsLocationsSuggestionsService {
859 rs := &ProjectsLocationsSuggestionsService{s: s}
860 return rs
861 }
862
863 type ProjectsLocationsSuggestionsService struct {
864 s *Service
865 }
866
867 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
868 rs := &ProjectsOperationsService{s: s}
869 return rs
870 }
871
872 type ProjectsOperationsService struct {
873 s *Service
874 }
875
876 func NewProjectsSuggestionsService(s *Service) *ProjectsSuggestionsService {
877 rs := &ProjectsSuggestionsService{s: s}
878 return rs
879 }
880
881 type ProjectsSuggestionsService struct {
882 s *Service
883 }
884
885
886
887
888
889
890
891
892
893
894 type GoogleCloudDialogflowCxV3AdvancedSettings struct {
895
896
897
898 AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
899
900
901 DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
902
903
904
905 LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
906
907
908 SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
909
910
911
912
913
914 ForceSendFields []string `json:"-"`
915
916
917
918
919 NullFields []string `json:"-"`
920 }
921
922 func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
923 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
925 }
926
927
928
929 type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
930
931
932
933
934
935
936 Enabled bool `json:"enabled,omitempty"`
937
938
939 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
940
941 FinishDigit string `json:"finishDigit,omitempty"`
942
943
944 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
945
946 MaxDigits int64 `json:"maxDigits,omitempty"`
947
948
949
950
951
952 ForceSendFields []string `json:"-"`
953
954
955
956
957 NullFields []string `json:"-"`
958 }
959
960 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
961 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
962 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
963 }
964
965
966
967 type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
968
969
970 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
971
972 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
973
974
975
976
977
978 ForceSendFields []string `json:"-"`
979
980
981
982
983 NullFields []string `json:"-"`
984 }
985
986 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
987 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
988 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
989 }
990
991
992
993 type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
994
995
996 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
997
998
999
1000
1001 Models map[string]string `json:"models,omitempty"`
1002
1003 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
1004
1005
1006 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
1007
1008
1009
1010
1011
1012 ForceSendFields []string `json:"-"`
1013
1014
1015
1016
1017 NullFields []string `json:"-"`
1018 }
1019
1020 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
1021 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
1022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1023 }
1024
1025
1026
1027 type GoogleCloudDialogflowCxV3AudioInput struct {
1028
1029
1030
1031
1032
1033
1034 Audio string `json:"audio,omitempty"`
1035
1036
1037 Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
1038
1039
1040
1041
1042
1043 ForceSendFields []string `json:"-"`
1044
1045
1046
1047
1048 NullFields []string `json:"-"`
1049 }
1050
1051 func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
1052 type NoMethod GoogleCloudDialogflowCxV3AudioInput
1053 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1054 }
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072 type GoogleCloudDialogflowCxV3BargeInConfig struct {
1073
1074
1075 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
1076
1077
1078 TotalDuration string `json:"totalDuration,omitempty"`
1079
1080
1081
1082
1083
1084 ForceSendFields []string `json:"-"`
1085
1086
1087
1088
1089 NullFields []string `json:"-"`
1090 }
1091
1092 func (s *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
1093 type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
1094 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1095 }
1096
1097
1098
1099 type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
1100
1101 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
1102
1103
1104
1105
1106
1107 ForceSendFields []string `json:"-"`
1108
1109
1110
1111
1112 NullFields []string `json:"-"`
1113 }
1114
1115 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
1116 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
1117 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1118 }
1119
1120
1121
1122 type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
1123
1124
1125 Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
1126
1127
1128
1129
1130
1131 ForceSendFields []string `json:"-"`
1132
1133
1134
1135
1136 NullFields []string `json:"-"`
1137 }
1138
1139 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
1140 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
1141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1142 }
1143
1144
1145
1146 type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
1147
1148
1149 Name string `json:"name,omitempty"`
1150
1151
1152
1153
1154
1155
1156
1157
1158 Result string `json:"result,omitempty"`
1159
1160 RunTime string `json:"runTime,omitempty"`
1161
1162
1163 TestCaseResults []string `json:"testCaseResults,omitempty"`
1164
1165
1166
1167
1168
1169 ForceSendFields []string `json:"-"`
1170
1171
1172
1173
1174 NullFields []string `json:"-"`
1175 }
1176
1177 func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
1178 type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
1179 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1180 }
1181
1182
1183
1184
1185 type GoogleCloudDialogflowCxV3ConversationSignals struct {
1186
1187 TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
1188
1189
1190
1191
1192
1193 ForceSendFields []string `json:"-"`
1194
1195
1196
1197
1198 NullFields []string `json:"-"`
1199 }
1200
1201 func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
1202 type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
1203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1204 }
1205
1206
1207
1208
1209 type GoogleCloudDialogflowCxV3ConversationTurn struct {
1210
1211 UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
1212
1213 VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
1214
1215
1216
1217
1218
1219 ForceSendFields []string `json:"-"`
1220
1221
1222
1223
1224 NullFields []string `json:"-"`
1225 }
1226
1227 func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
1228 type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
1229 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1230 }
1231
1232
1233
1234 type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
1235
1236 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
1237
1238
1239 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
1240
1241 Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
1242
1243
1244
1245 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
1246
1247
1248
1249
1250
1251 ForceSendFields []string `json:"-"`
1252
1253
1254
1255
1256 NullFields []string `json:"-"`
1257 }
1258
1259 func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
1260 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
1261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1262 }
1263
1264
1265
1266 type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
1267
1268
1269 CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
1270
1271
1272 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
1273
1274
1275
1276 Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
1277
1278
1279 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
1280
1281
1282 Status *GoogleRpcStatus `json:"status,omitempty"`
1283
1284 TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
1285
1286
1287 TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
1288
1289
1290
1291
1292
1293 ForceSendFields []string `json:"-"`
1294
1295
1296
1297
1298 NullFields []string `json:"-"`
1299 }
1300
1301 func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
1302 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
1303 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1304 }
1305
1306
1307
1308 type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
1309
1310 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1311
1312
1313
1314
1315
1316 ForceSendFields []string `json:"-"`
1317
1318
1319
1320
1321 NullFields []string `json:"-"`
1322 }
1323
1324 func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1325 type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
1326 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1327 }
1328
1329
1330
1331 type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
1332
1333
1334 Version string `json:"version,omitempty"`
1335
1336
1337
1338
1339
1340 ForceSendFields []string `json:"-"`
1341
1342
1343
1344
1345 NullFields []string `json:"-"`
1346 }
1347
1348 func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
1349 type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
1350 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1351 }
1352
1353
1354
1355
1356 type GoogleCloudDialogflowCxV3DataStoreConnection struct {
1357
1358
1359
1360
1361 DataStore string `json:"dataStore,omitempty"`
1362
1363
1364
1365
1366
1367
1368
1369
1370
1371 DataStoreType string `json:"dataStoreType,omitempty"`
1372
1373
1374
1375
1376
1377 ForceSendFields []string `json:"-"`
1378
1379
1380
1381
1382 NullFields []string `json:"-"`
1383 }
1384
1385 func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
1386 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
1387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1388 }
1389
1390
1391
1392 type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
1393
1394 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1395
1396
1397
1398
1399
1400 ForceSendFields []string `json:"-"`
1401
1402
1403
1404
1405 NullFields []string `json:"-"`
1406 }
1407
1408 func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1409 type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
1410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1411 }
1412
1413
1414
1415 type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
1416
1417 TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
1418
1419
1420
1421
1422
1423 ForceSendFields []string `json:"-"`
1424
1425
1426
1427
1428 NullFields []string `json:"-"`
1429 }
1430
1431 func (s *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
1432 type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
1433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1434 }
1435
1436
1437
1438 type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
1439
1440
1441 Deployment string `json:"deployment,omitempty"`
1442
1443 Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
1444
1445
1446
1447
1448
1449 ForceSendFields []string `json:"-"`
1450
1451
1452
1453
1454 NullFields []string `json:"-"`
1455 }
1456
1457 func (s *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
1458 type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
1459 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1460 }
1461
1462
1463 type GoogleCloudDialogflowCxV3DtmfInput struct {
1464
1465 Digits string `json:"digits,omitempty"`
1466
1467 FinishDigit string `json:"finishDigit,omitempty"`
1468
1469
1470
1471
1472
1473 ForceSendFields []string `json:"-"`
1474
1475
1476
1477
1478 NullFields []string `json:"-"`
1479 }
1480
1481 func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
1482 type NoMethod GoogleCloudDialogflowCxV3DtmfInput
1483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1484 }
1485
1486
1487
1488
1489
1490
1491
1492
1493
1494 type GoogleCloudDialogflowCxV3Environment struct {
1495
1496
1497 Description string `json:"description,omitempty"`
1498
1499
1500 DisplayName string `json:"displayName,omitempty"`
1501
1502
1503 Name string `json:"name,omitempty"`
1504
1505
1506 TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
1507
1508 UpdateTime string `json:"updateTime,omitempty"`
1509
1510
1511
1512 VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
1513
1514 WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
1515
1516
1517
1518
1519
1520 ForceSendFields []string `json:"-"`
1521
1522
1523
1524
1525 NullFields []string `json:"-"`
1526 }
1527
1528 func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
1529 type NoMethod GoogleCloudDialogflowCxV3Environment
1530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1531 }
1532
1533
1534
1535 type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
1536
1537
1538 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
1539
1540
1541
1542 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
1543
1544
1545
1546 TestCases []string `json:"testCases,omitempty"`
1547
1548
1549
1550
1551
1552 ForceSendFields []string `json:"-"`
1553
1554
1555
1556
1557 NullFields []string `json:"-"`
1558 }
1559
1560 func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
1561 type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
1562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1563 }
1564
1565
1566
1567 type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
1568
1569 Version string `json:"version,omitempty"`
1570
1571
1572
1573
1574
1575 ForceSendFields []string `json:"-"`
1576
1577
1578
1579
1580 NullFields []string `json:"-"`
1581 }
1582
1583 func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
1584 type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
1585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1586 }
1587
1588
1589
1590 type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
1591
1592
1593
1594 WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
1595
1596
1597
1598
1599
1600 ForceSendFields []string `json:"-"`
1601
1602
1603
1604
1605 NullFields []string `json:"-"`
1606 }
1607
1608 func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
1609 type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
1610 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1611 }
1612
1613
1614
1615
1616
1617
1618
1619
1620 type GoogleCloudDialogflowCxV3EventHandler struct {
1621
1622 Event string `json:"event,omitempty"`
1623
1624 Name string `json:"name,omitempty"`
1625
1626
1627 TargetFlow string `json:"targetFlow,omitempty"`
1628
1629
1630 TargetPage string `json:"targetPage,omitempty"`
1631
1632
1633
1634
1635 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
1636
1637
1638
1639
1640
1641 ForceSendFields []string `json:"-"`
1642
1643
1644
1645
1646 NullFields []string `json:"-"`
1647 }
1648
1649 func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
1650 type NoMethod GoogleCloudDialogflowCxV3EventHandler
1651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1652 }
1653
1654
1655 type GoogleCloudDialogflowCxV3EventInput struct {
1656
1657 Event string `json:"event,omitempty"`
1658
1659
1660
1661
1662
1663 ForceSendFields []string `json:"-"`
1664
1665
1666
1667
1668 NullFields []string `json:"-"`
1669 }
1670
1671 func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
1672 type NoMethod GoogleCloudDialogflowCxV3EventInput
1673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1674 }
1675
1676
1677
1678 type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
1679
1680
1681
1682 AgentContent string `json:"agentContent,omitempty"`
1683
1684
1685 AgentUri string `json:"agentUri,omitempty"`
1686
1687
1688 CommitSha string `json:"commitSha,omitempty"`
1689
1690
1691
1692
1693
1694 ForceSendFields []string `json:"-"`
1695
1696
1697
1698
1699 NullFields []string `json:"-"`
1700 }
1701
1702 func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
1703 type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
1704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1705 }
1706
1707
1708
1709 type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
1710 }
1711
1712
1713
1714 type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
1715
1716
1717
1718 EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
1719
1720
1721
1722 EntityTypesUri string `json:"entityTypesUri,omitempty"`
1723
1724
1725
1726
1727
1728 ForceSendFields []string `json:"-"`
1729
1730
1731
1732
1733 NullFields []string `json:"-"`
1734 }
1735
1736 func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
1737 type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
1738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1739 }
1740
1741
1742
1743 type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
1744
1745 FlowContent string `json:"flowContent,omitempty"`
1746
1747
1748 FlowUri string `json:"flowUri,omitempty"`
1749
1750
1751
1752
1753
1754 ForceSendFields []string `json:"-"`
1755
1756
1757
1758
1759 NullFields []string `json:"-"`
1760 }
1761
1762 func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
1763 type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
1764 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1765 }
1766
1767
1768
1769 type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
1770 }
1771
1772
1773
1774 type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
1775
1776
1777
1778 IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
1779
1780
1781 IntentsUri string `json:"intentsUri,omitempty"`
1782
1783
1784
1785
1786
1787 ForceSendFields []string `json:"-"`
1788
1789
1790
1791
1792 NullFields []string `json:"-"`
1793 }
1794
1795 func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
1796 type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
1797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1798 }
1799
1800
1801
1802
1803 type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
1804 }
1805
1806
1807
1808 type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
1809
1810 Content string `json:"content,omitempty"`
1811
1812
1813 GcsUri string `json:"gcsUri,omitempty"`
1814
1815
1816
1817
1818
1819 ForceSendFields []string `json:"-"`
1820
1821
1822
1823
1824 NullFields []string `json:"-"`
1825 }
1826
1827 func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
1828 type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
1829 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1830 }
1831
1832
1833
1834
1835
1836
1837 type GoogleCloudDialogflowCxV3Form struct {
1838
1839 Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
1840
1841
1842
1843
1844
1845 ForceSendFields []string `json:"-"`
1846
1847
1848
1849
1850 NullFields []string `json:"-"`
1851 }
1852
1853 func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
1854 type NoMethod GoogleCloudDialogflowCxV3Form
1855 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1856 }
1857
1858
1859 type GoogleCloudDialogflowCxV3FormParameter struct {
1860
1861
1862
1863 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
1864
1865
1866 DefaultValue interface{} `json:"defaultValue,omitempty"`
1867
1868
1869 DisplayName string `json:"displayName,omitempty"`
1870
1871
1872
1873
1874 EntityType string `json:"entityType,omitempty"`
1875
1876 FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
1877
1878 IsList bool `json:"isList,omitempty"`
1879
1880
1881
1882
1883 Redact bool `json:"redact,omitempty"`
1884
1885
1886
1887 Required bool `json:"required,omitempty"`
1888
1889
1890
1891
1892
1893 ForceSendFields []string `json:"-"`
1894
1895
1896
1897
1898 NullFields []string `json:"-"`
1899 }
1900
1901 func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
1902 type NoMethod GoogleCloudDialogflowCxV3FormParameter
1903 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1904 }
1905
1906
1907
1908 type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
1909
1910
1911
1912 InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934 RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
1935
1936
1937
1938
1939
1940 ForceSendFields []string `json:"-"`
1941
1942
1943
1944
1945 NullFields []string `json:"-"`
1946 }
1947
1948 func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
1949 type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
1950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1951 }
1952
1953
1954
1955
1956
1957
1958
1959
1960
1961 type GoogleCloudDialogflowCxV3Fulfillment struct {
1962
1963
1964
1965 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
1966
1967 ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
1968
1969
1970
1971
1972 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
1973
1974 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
1975
1976
1977
1978
1979
1980
1981
1982 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
1983
1984 SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
1985
1986
1987
1988
1989
1990 Tag string `json:"tag,omitempty"`
1991
1992
1993 Webhook string `json:"webhook,omitempty"`
1994
1995
1996
1997
1998
1999 ForceSendFields []string `json:"-"`
2000
2001
2002
2003
2004 NullFields []string `json:"-"`
2005 }
2006
2007 func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
2008 type NoMethod GoogleCloudDialogflowCxV3Fulfillment
2009 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2010 }
2011
2012
2013
2014
2015 type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
2016
2017 Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
2018
2019
2020
2021
2022
2023 ForceSendFields []string `json:"-"`
2024
2025
2026
2027
2028 NullFields []string `json:"-"`
2029 }
2030
2031 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
2032 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
2033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2034 }
2035
2036
2037
2038
2039 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
2040
2041 CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
2042
2043
2044
2045
2046 Condition string `json:"condition,omitempty"`
2047
2048
2049
2050
2051
2052 ForceSendFields []string `json:"-"`
2053
2054
2055
2056
2057 NullFields []string `json:"-"`
2058 }
2059
2060 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
2061 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
2062 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2063 }
2064
2065
2066
2067 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
2068
2069 AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
2070
2071 Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
2072
2073
2074
2075
2076
2077 ForceSendFields []string `json:"-"`
2078
2079
2080
2081
2082 NullFields []string `json:"-"`
2083 }
2084
2085 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
2086 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
2087 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2088 }
2089
2090
2091
2092 type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
2093
2094 Parameter string `json:"parameter,omitempty"`
2095
2096 Value interface{} `json:"value,omitempty"`
2097
2098
2099
2100
2101
2102 ForceSendFields []string `json:"-"`
2103
2104
2105
2106
2107 NullFields []string `json:"-"`
2108 }
2109
2110 func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
2111 type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
2112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2113 }
2114
2115
2116
2117
2118 type GoogleCloudDialogflowCxV3GcsDestination struct {
2119
2120
2121
2122 Uri string `json:"uri,omitempty"`
2123
2124
2125
2126
2127
2128 ForceSendFields []string `json:"-"`
2129
2130
2131
2132
2133 NullFields []string `json:"-"`
2134 }
2135
2136 func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
2137 type NoMethod GoogleCloudDialogflowCxV3GcsDestination
2138 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2139 }
2140
2141
2142
2143 type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
2144
2145
2146
2147
2148
2149
2150
2151 State string `json:"state,omitempty"`
2152
2153
2154
2155
2156
2157 ForceSendFields []string `json:"-"`
2158
2159
2160
2161
2162 NullFields []string `json:"-"`
2163 }
2164
2165 func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
2166 type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
2167 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2168 }
2169
2170
2171
2172 type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
2173
2174 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2175
2176
2177
2178
2179
2180 ForceSendFields []string `json:"-"`
2181
2182
2183
2184
2185 NullFields []string `json:"-"`
2186 }
2187
2188 func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
2189 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
2190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2191 }
2192
2193
2194
2195 type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
2196
2197 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
2198
2199
2200
2201
2202
2203 ForceSendFields []string `json:"-"`
2204
2205
2206
2207
2208 NullFields []string `json:"-"`
2209 }
2210
2211 func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
2212 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
2213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2214 }
2215
2216
2217
2218 type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
2219 }
2220
2221
2222
2223 type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
2224
2225
2226 ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
2227
2228
2229 EntityTypes []string `json:"entityTypes,omitempty"`
2230
2231
2232
2233
2234
2235 ForceSendFields []string `json:"-"`
2236
2237
2238
2239
2240 NullFields []string `json:"-"`
2241 }
2242
2243 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
2244 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
2245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2246 }
2247
2248
2249
2250
2251
2252 type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
2253
2254 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
2255
2256 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
2257
2258
2259
2260
2261
2262 ForceSendFields []string `json:"-"`
2263
2264
2265
2266
2267 NullFields []string `json:"-"`
2268 }
2269
2270 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
2271 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
2272 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2273 }
2274
2275
2276
2277 type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
2278
2279
2280 Flow string `json:"flow,omitempty"`
2281
2282
2283
2284
2285
2286 ForceSendFields []string `json:"-"`
2287
2288
2289
2290
2291 NullFields []string `json:"-"`
2292 }
2293
2294 func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
2295 type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
2296 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2297 }
2298
2299
2300
2301 type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
2302 }
2303
2304
2305
2306 type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
2307
2308
2309 ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
2310
2311
2312 Intents []string `json:"intents,omitempty"`
2313
2314
2315
2316
2317
2318 ForceSendFields []string `json:"-"`
2319
2320
2321
2322
2323 NullFields []string `json:"-"`
2324 }
2325
2326 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
2327 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
2328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2329 }
2330
2331
2332
2333
2334
2335 type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
2336
2337 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
2338
2339 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
2340
2341
2342
2343
2344
2345 ForceSendFields []string `json:"-"`
2346
2347
2348
2349
2350 NullFields []string `json:"-"`
2351 }
2352
2353 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
2354 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
2355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2356 }
2357
2358
2359
2360 type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
2361
2362 Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
2363
2364
2365
2366
2367
2368 ForceSendFields []string `json:"-"`
2369
2370
2371
2372
2373 NullFields []string `json:"-"`
2374 }
2375
2376 func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
2377 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
2378 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2379 }
2380
2381
2382
2383 type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
2384
2385
2386 Names []string `json:"names,omitempty"`
2387
2388
2389
2390
2391
2392 ForceSendFields []string `json:"-"`
2393
2394
2395
2396
2397 NullFields []string `json:"-"`
2398 }
2399
2400 func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
2401 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
2402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2403 }
2404
2405
2406
2407
2408 type GoogleCloudDialogflowCxV3InlineDestination struct {
2409
2410
2411 Content string `json:"content,omitempty"`
2412
2413
2414
2415
2416
2417 ForceSendFields []string `json:"-"`
2418
2419
2420
2421
2422 NullFields []string `json:"-"`
2423 }
2424
2425 func (s *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
2426 type NoMethod GoogleCloudDialogflowCxV3InlineDestination
2427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2428 }
2429
2430
2431
2432 type GoogleCloudDialogflowCxV3InputAudioConfig struct {
2433
2434
2435
2436
2437
2438
2439
2440
2441
2442
2443
2444
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457
2458
2459
2460
2461
2462
2463
2464
2465
2466 AudioEncoding string `json:"audioEncoding,omitempty"`
2467
2468
2469 BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
2470
2471
2472
2473
2474 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
2475
2476
2477
2478 Model string `json:"model,omitempty"`
2479
2480
2481
2482
2483
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493
2494
2495 ModelVariant string `json:"modelVariant,omitempty"`
2496
2497
2498
2499
2500
2501 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
2502
2503
2504
2505
2506
2507 PhraseHints []string `json:"phraseHints,omitempty"`
2508
2509
2510
2511 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
2512
2513
2514
2515
2516
2517
2518
2519 SingleUtterance bool `json:"singleUtterance,omitempty"`
2520
2521
2522
2523
2524
2525 ForceSendFields []string `json:"-"`
2526
2527
2528
2529
2530 NullFields []string `json:"-"`
2531 }
2532
2533 func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
2534 type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
2535 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2536 }
2537
2538
2539
2540
2541
2542 type GoogleCloudDialogflowCxV3Intent struct {
2543
2544
2545
2546 Description string `json:"description,omitempty"`
2547
2548
2549 DisplayName string `json:"displayName,omitempty"`
2550
2551
2552
2553
2554
2555 IsFallback bool `json:"isFallback,omitempty"`
2556
2557
2558
2559
2560
2561
2562
2563
2564
2565 Labels map[string]string `json:"labels,omitempty"`
2566
2567
2568
2569 Name string `json:"name,omitempty"`
2570
2571 Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
2572
2573
2574
2575
2576
2577 Priority int64 `json:"priority,omitempty"`
2578
2579
2580 TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
2581
2582
2583
2584
2585
2586 ForceSendFields []string `json:"-"`
2587
2588
2589
2590
2591 NullFields []string `json:"-"`
2592 }
2593
2594 func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
2595 type NoMethod GoogleCloudDialogflowCxV3Intent
2596 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2597 }
2598
2599
2600
2601 type GoogleCloudDialogflowCxV3IntentInput struct {
2602
2603
2604 Intent string `json:"intent,omitempty"`
2605
2606
2607
2608
2609
2610 ForceSendFields []string `json:"-"`
2611
2612
2613
2614
2615 NullFields []string `json:"-"`
2616 }
2617
2618 func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
2619 type NoMethod GoogleCloudDialogflowCxV3IntentInput
2620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2621 }
2622
2623
2624 type GoogleCloudDialogflowCxV3IntentParameter struct {
2625
2626
2627
2628
2629 EntityType string `json:"entityType,omitempty"`
2630
2631
2632 Id string `json:"id,omitempty"`
2633
2634 IsList bool `json:"isList,omitempty"`
2635
2636
2637
2638
2639 Redact bool `json:"redact,omitempty"`
2640
2641
2642
2643
2644
2645 ForceSendFields []string `json:"-"`
2646
2647
2648
2649
2650 NullFields []string `json:"-"`
2651 }
2652
2653 func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
2654 type NoMethod GoogleCloudDialogflowCxV3IntentParameter
2655 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2656 }
2657
2658
2659
2660 type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
2661
2662 Id string `json:"id,omitempty"`
2663
2664
2665
2666
2667
2668
2669
2670
2671
2672
2673
2674 Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
2675
2676 RepeatCount int64 `json:"repeatCount,omitempty"`
2677
2678
2679
2680
2681
2682 ForceSendFields []string `json:"-"`
2683
2684
2685
2686
2687 NullFields []string `json:"-"`
2688 }
2689
2690 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
2691 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
2692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2693 }
2694
2695
2696
2697 type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
2698
2699
2700 ParameterId string `json:"parameterId,omitempty"`
2701
2702 Text string `json:"text,omitempty"`
2703
2704
2705
2706
2707
2708 ForceSendFields []string `json:"-"`
2709
2710
2711
2712
2713 NullFields []string `json:"-"`
2714 }
2715
2716 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
2717 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
2718 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2719 }
2720
2721
2722
2723
2724 type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
2725
2726 DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
2727
2728 Enabled bool `json:"enabled,omitempty"`
2729
2730
2731 TargetFlow string `json:"targetFlow,omitempty"`
2732
2733
2734 TargetPage string `json:"targetPage,omitempty"`
2735
2736
2737
2738
2739
2740 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
2741
2742
2743
2744
2745
2746 ForceSendFields []string `json:"-"`
2747
2748
2749
2750
2751 NullFields []string `json:"-"`
2752 }
2753
2754 func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
2755 type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
2756 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2757 }
2758
2759
2760
2761 type GoogleCloudDialogflowCxV3LanguageInfo struct {
2762
2763
2764 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
2765
2766 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
2767
2768
2769 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
2770
2771
2772
2773
2774
2775 ForceSendFields []string `json:"-"`
2776
2777
2778
2779
2780 NullFields []string `json:"-"`
2781 }
2782
2783 func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
2784 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
2785 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2786 }
2787
2788 func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
2789 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
2790 var s1 struct {
2791 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
2792 *NoMethod
2793 }
2794 s1.NoMethod = (*NoMethod)(s)
2795 if err := json.Unmarshal(data, &s1); err != nil {
2796 return err
2797 }
2798 s.ConfidenceScore = float64(s1.ConfidenceScore)
2799 return nil
2800 }
2801
2802
2803
2804
2805
2806
2807
2808
2809
2810
2811
2812
2813
2814
2815 type GoogleCloudDialogflowCxV3Page struct {
2816
2817
2818
2819 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
2820
2821
2822 Description string `json:"description,omitempty"`
2823
2824
2825 DisplayName string `json:"displayName,omitempty"`
2826
2827
2828 EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
2829
2830
2831 EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
2832
2833
2834 Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
2835
2836 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
2837
2838
2839
2840 Name string `json:"name,omitempty"`
2841
2842
2843
2844
2845
2846
2847
2848
2849
2850
2851
2852
2853 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
2854
2855
2856
2857
2858
2859
2860
2861
2862
2863
2864 TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
2865
2866
2867
2868
2869
2870 ForceSendFields []string `json:"-"`
2871
2872
2873
2874
2875 NullFields []string `json:"-"`
2876 }
2877
2878 func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
2879 type NoMethod GoogleCloudDialogflowCxV3Page
2880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2881 }
2882
2883
2884
2885 type GoogleCloudDialogflowCxV3PageInfo struct {
2886
2887
2888
2889 CurrentPage string `json:"currentPage,omitempty"`
2890
2891
2892 DisplayName string `json:"displayName,omitempty"`
2893
2894
2895 FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
2896
2897
2898
2899
2900
2901 ForceSendFields []string `json:"-"`
2902
2903
2904
2905
2906 NullFields []string `json:"-"`
2907 }
2908
2909 func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
2910 type NoMethod GoogleCloudDialogflowCxV3PageInfo
2911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2912 }
2913
2914
2915 type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
2916
2917
2918
2919 ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
2920
2921
2922
2923
2924
2925 ForceSendFields []string `json:"-"`
2926
2927
2928
2929
2930 NullFields []string `json:"-"`
2931 }
2932
2933 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
2934 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
2935 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2936 }
2937
2938
2939
2940 type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
2941
2942
2943
2944 DisplayName string `json:"displayName,omitempty"`
2945
2946
2947
2948 JustCollected bool `json:"justCollected,omitempty"`
2949
2950
2951
2952
2953 Required bool `json:"required,omitempty"`
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966 State string `json:"state,omitempty"`
2967
2968
2969
2970 Value interface{} `json:"value,omitempty"`
2971
2972
2973
2974
2975
2976 ForceSendFields []string `json:"-"`
2977
2978
2979
2980
2981 NullFields []string `json:"-"`
2982 }
2983
2984 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
2985 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
2986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2987 }
2988
2989
2990
2991
2992
2993
2994
2995 type GoogleCloudDialogflowCxV3QueryInput struct {
2996
2997 Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
2998
2999 Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
3000
3001 Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
3002
3003 Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
3004
3005
3006
3007
3008 LanguageCode string `json:"languageCode,omitempty"`
3009
3010 Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
3011
3012
3013
3014
3015
3016 ForceSendFields []string `json:"-"`
3017
3018
3019
3020
3021 NullFields []string `json:"-"`
3022 }
3023
3024 func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
3025 type NoMethod GoogleCloudDialogflowCxV3QueryInput
3026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3027 }
3028
3029
3030
3031 type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
3032
3033 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3034
3035
3036
3037
3038
3039 ForceSendFields []string `json:"-"`
3040
3041
3042
3043
3044 NullFields []string `json:"-"`
3045 }
3046
3047 func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3048 type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
3049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3050 }
3051
3052
3053
3054
3055
3056
3057
3058
3059
3060
3061
3062
3063
3064
3065 type GoogleCloudDialogflowCxV3ResponseMessage struct {
3066
3067
3068
3069 Channel string `json:"channel,omitempty"`
3070
3071 ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
3072
3073
3074
3075
3076
3077 EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
3078
3079
3080 KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
3081
3082 LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
3083
3084
3085
3086
3087 MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
3088
3089
3090
3091 OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
3092
3093 Payload googleapi.RawMessage `json:"payload,omitempty"`
3094
3095
3096
3097 PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
3098
3099
3100
3101
3102
3103
3104
3105
3106 ResponseType string `json:"responseType,omitempty"`
3107
3108
3109 TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
3110
3111 Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
3112
3113
3114
3115
3116
3117 ForceSendFields []string `json:"-"`
3118
3119
3120
3121
3122 NullFields []string `json:"-"`
3123 }
3124
3125 func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
3126 type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
3127 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3128 }
3129
3130
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140 type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
3141
3142 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3143
3144
3145
3146
3147
3148 ForceSendFields []string `json:"-"`
3149
3150
3151
3152
3153 NullFields []string `json:"-"`
3154 }
3155
3156 func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
3157 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
3158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3159 }
3160
3161
3162
3163
3164 type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
3165 }
3166
3167
3168
3169
3170
3171 type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
3172 }
3173
3174
3175
3176
3177
3178
3179
3180
3181
3182 type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
3183
3184
3185 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3186
3187
3188
3189
3190
3191 ForceSendFields []string `json:"-"`
3192
3193
3194
3195
3196 NullFields []string `json:"-"`
3197 }
3198
3199 func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
3200 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
3201 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3202 }
3203
3204
3205
3206
3207
3208
3209 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
3210
3211 Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
3212
3213
3214
3215
3216
3217 ForceSendFields []string `json:"-"`
3218
3219
3220
3221
3222 NullFields []string `json:"-"`
3223 }
3224
3225 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
3226 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
3227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3228 }
3229
3230
3231
3232 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
3233
3234
3235
3236 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3237
3238
3239 Audio string `json:"audio,omitempty"`
3240
3241
3242 Uri string `json:"uri,omitempty"`
3243
3244
3245
3246
3247
3248 ForceSendFields []string `json:"-"`
3249
3250
3251
3252
3253 NullFields []string `json:"-"`
3254 }
3255
3256 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
3257 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
3258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3259 }
3260
3261
3262
3263
3264 type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
3265
3266
3267
3268 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3269
3270
3271 Ssml string `json:"ssml,omitempty"`
3272
3273 Text string `json:"text,omitempty"`
3274
3275
3276
3277
3278
3279 ForceSendFields []string `json:"-"`
3280
3281
3282
3283
3284 NullFields []string `json:"-"`
3285 }
3286
3287 func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
3288 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
3289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3290 }
3291
3292
3293
3294 type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
3295
3296
3297
3298 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3299
3300
3301 AudioUri string `json:"audioUri,omitempty"`
3302
3303
3304
3305
3306
3307 ForceSendFields []string `json:"-"`
3308
3309
3310
3311
3312 NullFields []string `json:"-"`
3313 }
3314
3315 func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
3316 type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
3317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3318 }
3319
3320
3321
3322
3323 type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
3324
3325
3326 PhoneNumber string `json:"phoneNumber,omitempty"`
3327
3328
3329
3330
3331
3332 ForceSendFields []string `json:"-"`
3333
3334
3335
3336
3337 NullFields []string `json:"-"`
3338 }
3339
3340 func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
3341 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
3342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3343 }
3344
3345
3346 type GoogleCloudDialogflowCxV3ResponseMessageText struct {
3347
3348
3349
3350 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3351
3352 Text []string `json:"text,omitempty"`
3353
3354
3355
3356
3357
3358 ForceSendFields []string `json:"-"`
3359
3360
3361
3362
3363 NullFields []string `json:"-"`
3364 }
3365
3366 func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
3367 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
3368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3369 }
3370
3371
3372
3373 type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
3374
3375 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
3376
3377
3378
3379
3380
3381 ForceSendFields []string `json:"-"`
3382
3383
3384
3385
3386 NullFields []string `json:"-"`
3387 }
3388
3389 func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
3390 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
3391 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3392 }
3393
3394
3395
3396 type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
3397
3398 ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
3399
3400
3401
3402
3403
3404 ForceSendFields []string `json:"-"`
3405
3406
3407
3408
3409 NullFields []string `json:"-"`
3410 }
3411
3412 func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
3413 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
3414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3415 }
3416
3417
3418
3419
3420 type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
3421 }
3422
3423
3424
3425 type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
3426
3427 Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
3428
3429
3430
3431
3432
3433 ForceSendFields []string `json:"-"`
3434
3435
3436
3437
3438 NullFields []string `json:"-"`
3439 }
3440
3441 func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
3442 type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
3443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3444 }
3445
3446
3447
3448 type GoogleCloudDialogflowCxV3SessionInfo struct {
3449
3450
3451
3452
3453
3454 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
3455
3456
3457
3458
3459
3460 Session string `json:"session,omitempty"`
3461
3462
3463
3464
3465
3466 ForceSendFields []string `json:"-"`
3467
3468
3469
3470
3471 NullFields []string `json:"-"`
3472 }
3473
3474 func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
3475 type NoMethod GoogleCloudDialogflowCxV3SessionInfo
3476 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3477 }
3478
3479
3480 type GoogleCloudDialogflowCxV3TestCase struct {
3481
3482 CreationTime string `json:"creationTime,omitempty"`
3483
3484
3485 DisplayName string `json:"displayName,omitempty"`
3486
3487 LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
3488
3489
3490
3491 Name string `json:"name,omitempty"`
3492
3493
3494 Notes string `json:"notes,omitempty"`
3495
3496
3497
3498 Tags []string `json:"tags,omitempty"`
3499
3500
3501
3502 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
3503
3504 TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
3505
3506
3507
3508
3509
3510 ForceSendFields []string `json:"-"`
3511
3512
3513
3514
3515 NullFields []string `json:"-"`
3516 }
3517
3518 func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
3519 type NoMethod GoogleCloudDialogflowCxV3TestCase
3520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3521 }
3522
3523
3524 type GoogleCloudDialogflowCxV3TestCaseError struct {
3525
3526 Status *GoogleRpcStatus `json:"status,omitempty"`
3527
3528 TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
3529
3530
3531
3532
3533
3534 ForceSendFields []string `json:"-"`
3535
3536
3537
3538
3539 NullFields []string `json:"-"`
3540 }
3541
3542 func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
3543 type NoMethod GoogleCloudDialogflowCxV3TestCaseError
3544 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3545 }
3546
3547
3548
3549 type GoogleCloudDialogflowCxV3TestCaseResult struct {
3550
3551
3552 ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
3553
3554
3555 Environment string `json:"environment,omitempty"`
3556
3557
3558 Name string `json:"name,omitempty"`
3559
3560
3561
3562
3563
3564
3565 TestResult string `json:"testResult,omitempty"`
3566
3567 TestTime string `json:"testTime,omitempty"`
3568
3569
3570
3571
3572
3573 ForceSendFields []string `json:"-"`
3574
3575
3576
3577
3578 NullFields []string `json:"-"`
3579 }
3580
3581 func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
3582 type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
3583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3584 }
3585
3586
3587
3588 type GoogleCloudDialogflowCxV3TestConfig struct {
3589
3590
3591
3592
3593
3594 Flow string `json:"flow,omitempty"`
3595
3596
3597
3598
3599
3600 Page string `json:"page,omitempty"`
3601
3602
3603 TrackingParameters []string `json:"trackingParameters,omitempty"`
3604
3605
3606
3607
3608
3609 ForceSendFields []string `json:"-"`
3610
3611
3612
3613
3614 NullFields []string `json:"-"`
3615 }
3616
3617 func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
3618 type NoMethod GoogleCloudDialogflowCxV3TestConfig
3619 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3620 }
3621
3622
3623 type GoogleCloudDialogflowCxV3TestError struct {
3624
3625 Status *GoogleRpcStatus `json:"status,omitempty"`
3626
3627 TestCase string `json:"testCase,omitempty"`
3628
3629 TestTime string `json:"testTime,omitempty"`
3630
3631
3632
3633
3634
3635 ForceSendFields []string `json:"-"`
3636
3637
3638
3639
3640 NullFields []string `json:"-"`
3641 }
3642
3643 func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
3644 type NoMethod GoogleCloudDialogflowCxV3TestError
3645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3646 }
3647
3648
3649
3650 type GoogleCloudDialogflowCxV3TestRunDifference struct {
3651
3652
3653 Description string `json:"description,omitempty"`
3654
3655
3656
3657
3658
3659
3660
3661
3662
3663 Type string `json:"type,omitempty"`
3664
3665
3666
3667
3668
3669 ForceSendFields []string `json:"-"`
3670
3671
3672
3673
3674 NullFields []string `json:"-"`
3675 }
3676
3677 func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
3678 type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
3679 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3680 }
3681
3682
3683
3684 type GoogleCloudDialogflowCxV3TextInput struct {
3685
3686 Text string `json:"text,omitempty"`
3687
3688
3689
3690
3691
3692 ForceSendFields []string `json:"-"`
3693
3694
3695
3696
3697 NullFields []string `json:"-"`
3698 }
3699
3700 func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
3701 type NoMethod GoogleCloudDialogflowCxV3TextInput
3702 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3703 }
3704
3705
3706
3707
3708
3709
3710
3711
3712
3713 type GoogleCloudDialogflowCxV3TransitionRoute struct {
3714
3715
3716
3717
3718
3719
3720 Condition string `json:"condition,omitempty"`
3721
3722
3723 Description string `json:"description,omitempty"`
3724
3725
3726
3727
3728
3729 Intent string `json:"intent,omitempty"`
3730
3731 Name string `json:"name,omitempty"`
3732
3733
3734 TargetFlow string `json:"targetFlow,omitempty"`
3735
3736
3737 TargetPage string `json:"targetPage,omitempty"`
3738
3739
3740
3741 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
3742
3743
3744
3745
3746
3747 ForceSendFields []string `json:"-"`
3748
3749
3750
3751
3752 NullFields []string `json:"-"`
3753 }
3754
3755 func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
3756 type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
3757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3758 }
3759
3760
3761
3762 type GoogleCloudDialogflowCxV3TurnSignals struct {
3763
3764 AgentEscalated bool `json:"agentEscalated,omitempty"`
3765
3766 DtmfUsed bool `json:"dtmfUsed,omitempty"`
3767
3768
3769
3770
3771
3772
3773 FailureReasons []string `json:"failureReasons,omitempty"`
3774
3775 NoMatch bool `json:"noMatch,omitempty"`
3776
3777 NoUserInput bool `json:"noUserInput,omitempty"`
3778
3779 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
3780
3781
3782 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
3783
3784
3785 SentimentScore float64 `json:"sentimentScore,omitempty"`
3786
3787 UserEscalated bool `json:"userEscalated,omitempty"`
3788
3789
3790 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
3791
3792
3793
3794
3795
3796 ForceSendFields []string `json:"-"`
3797
3798
3799
3800
3801 NullFields []string `json:"-"`
3802 }
3803
3804 func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
3805 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
3806 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3807 }
3808
3809 func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
3810 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
3811 var s1 struct {
3812 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
3813 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
3814 *NoMethod
3815 }
3816 s1.NoMethod = (*NoMethod)(s)
3817 if err := json.Unmarshal(data, &s1); err != nil {
3818 return err
3819 }
3820 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
3821 s.SentimentScore = float64(s1.SentimentScore)
3822 return nil
3823 }
3824
3825
3826
3827 type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
3828
3829 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3830
3831
3832
3833
3834
3835 ForceSendFields []string `json:"-"`
3836
3837
3838
3839
3840 NullFields []string `json:"-"`
3841 }
3842
3843 func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3844 type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
3845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3846 }
3847
3848
3849
3850
3851
3852 type GoogleCloudDialogflowCxV3Webhook struct {
3853
3854 Disabled bool `json:"disabled,omitempty"`
3855
3856
3857 DisplayName string `json:"displayName,omitempty"`
3858
3859 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
3860
3861
3862
3863 Name string `json:"name,omitempty"`
3864
3865
3866 ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
3867
3868
3869
3870 Timeout string `json:"timeout,omitempty"`
3871
3872
3873
3874
3875
3876 ForceSendFields []string `json:"-"`
3877
3878
3879
3880
3881 NullFields []string `json:"-"`
3882 }
3883
3884 func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
3885 type NoMethod GoogleCloudDialogflowCxV3Webhook
3886 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3887 }
3888
3889
3890
3891 type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
3892
3893
3894
3895
3896
3897
3898
3899
3900 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
3901
3902
3903
3904
3905
3906
3907
3908
3909
3910
3911
3912
3913 HttpMethod string `json:"httpMethod,omitempty"`
3914
3915
3916
3917 OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
3918
3919
3920
3921 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
3922
3923 Password string `json:"password,omitempty"`
3924
3925
3926 RequestBody string `json:"requestBody,omitempty"`
3927
3928
3929 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
3930
3931
3932
3933
3934
3935
3936
3937
3938
3939
3940
3941
3942
3943
3944
3945
3946
3947
3948
3949 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
3950
3951
3952 Uri string `json:"uri,omitempty"`
3953
3954 Username string `json:"username,omitempty"`
3955
3956
3957
3958
3959
3960
3961 WebhookType string `json:"webhookType,omitempty"`
3962
3963
3964
3965
3966
3967 ForceSendFields []string `json:"-"`
3968
3969
3970
3971
3972 NullFields []string `json:"-"`
3973 }
3974
3975 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
3976 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
3977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3978 }
3979
3980
3981
3982
3983 type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
3984
3985 ClientId string `json:"clientId,omitempty"`
3986
3987
3988 ClientSecret string `json:"clientSecret,omitempty"`
3989
3990 Scopes []string `json:"scopes,omitempty"`
3991
3992
3993 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
3994
3995
3996
3997
3998
3999 ForceSendFields []string `json:"-"`
4000
4001
4002
4003
4004 NullFields []string `json:"-"`
4005 }
4006
4007 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
4008 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
4009 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4010 }
4011
4012
4013
4014
4015
4016
4017 type GoogleCloudDialogflowCxV3WebhookRequest struct {
4018
4019
4020 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
4021
4022
4023 DtmfDigits string `json:"dtmfDigits,omitempty"`
4024
4025
4026 FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
4027
4028 IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
4029
4030 LanguageCode string `json:"languageCode,omitempty"`
4031
4032 LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
4033
4034
4035
4036 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
4037
4038 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
4039
4040 Payload googleapi.RawMessage `json:"payload,omitempty"`
4041
4042
4043
4044 SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
4045
4046 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
4047
4048
4049 Text string `json:"text,omitempty"`
4050
4051
4052 Transcript string `json:"transcript,omitempty"`
4053
4054
4055 TriggerEvent string `json:"triggerEvent,omitempty"`
4056
4057
4058
4059 TriggerIntent string `json:"triggerIntent,omitempty"`
4060
4061
4062
4063
4064
4065 ForceSendFields []string `json:"-"`
4066
4067
4068
4069
4070 NullFields []string `json:"-"`
4071 }
4072
4073 func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
4074 type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
4075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4076 }
4077
4078
4079
4080 type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
4081
4082
4083
4084
4085 Tag string `json:"tag,omitempty"`
4086
4087
4088
4089
4090
4091 ForceSendFields []string `json:"-"`
4092
4093
4094
4095
4096 NullFields []string `json:"-"`
4097 }
4098
4099 func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
4100 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
4101 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4102 }
4103
4104
4105
4106 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
4107
4108
4109 Confidence float64 `json:"confidence,omitempty"`
4110
4111 DisplayName string `json:"displayName,omitempty"`
4112
4113
4114 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
4115
4116
4117
4118
4119 Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
4120
4121
4122
4123
4124
4125 ForceSendFields []string `json:"-"`
4126
4127
4128
4129
4130 NullFields []string `json:"-"`
4131 }
4132
4133 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
4134 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
4135 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4136 }
4137
4138 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
4139 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
4140 var s1 struct {
4141 Confidence gensupport.JSONFloat64 `json:"confidence"`
4142 *NoMethod
4143 }
4144 s1.NoMethod = (*NoMethod)(s)
4145 if err := json.Unmarshal(data, &s1); err != nil {
4146 return err
4147 }
4148 s.Confidence = float64(s1.Confidence)
4149 return nil
4150 }
4151
4152
4153
4154 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
4155
4156
4157 OriginalValue string `json:"originalValue,omitempty"`
4158
4159
4160 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
4161
4162
4163
4164
4165
4166 ForceSendFields []string `json:"-"`
4167
4168
4169
4170
4171 NullFields []string `json:"-"`
4172 }
4173
4174 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
4175 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
4176 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4177 }
4178
4179
4180
4181 type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
4182
4183
4184
4185 Magnitude float64 `json:"magnitude,omitempty"`
4186
4187
4188 Score float64 `json:"score,omitempty"`
4189
4190
4191
4192
4193
4194 ForceSendFields []string `json:"-"`
4195
4196
4197
4198
4199 NullFields []string `json:"-"`
4200 }
4201
4202 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
4203 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
4204 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4205 }
4206
4207 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
4208 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
4209 var s1 struct {
4210 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
4211 Score gensupport.JSONFloat64 `json:"score"`
4212 *NoMethod
4213 }
4214 s1.NoMethod = (*NoMethod)(s)
4215 if err := json.Unmarshal(data, &s1); err != nil {
4216 return err
4217 }
4218 s.Magnitude = float64(s1.Magnitude)
4219 s.Score = float64(s1.Score)
4220 return nil
4221 }
4222
4223
4224
4225 type GoogleCloudDialogflowCxV3WebhookResponse struct {
4226
4227
4228
4229 FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
4230
4231
4232 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
4233
4234 Payload googleapi.RawMessage `json:"payload,omitempty"`
4235
4236
4237 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
4238
4239
4240 TargetFlow string `json:"targetFlow,omitempty"`
4241
4242
4243 TargetPage string `json:"targetPage,omitempty"`
4244
4245
4246
4247
4248
4249 ForceSendFields []string `json:"-"`
4250
4251
4252
4253
4254 NullFields []string `json:"-"`
4255 }
4256
4257 func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
4258 type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
4259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4260 }
4261
4262
4263
4264 type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
4265
4266
4267
4268
4269
4270
4271
4272
4273 MergeBehavior string `json:"mergeBehavior,omitempty"`
4274
4275 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
4276
4277
4278
4279
4280
4281 ForceSendFields []string `json:"-"`
4282
4283
4284
4285
4286 NullFields []string `json:"-"`
4287 }
4288
4289 func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
4290 type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
4291 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4292 }
4293
4294
4295
4296
4297 type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
4298
4299 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
4300
4301
4302
4303
4304 Service string `json:"service,omitempty"`
4305
4306
4307
4308
4309
4310 ForceSendFields []string `json:"-"`
4311
4312
4313
4314
4315 NullFields []string `json:"-"`
4316 }
4317
4318 func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
4319 type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
4320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4321 }
4322
4323
4324
4325
4326
4327
4328
4329
4330
4331
4332 type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
4333
4334
4335
4336 AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
4337
4338
4339 DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
4340
4341
4342
4343 LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
4344
4345
4346 SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
4347
4348
4349
4350
4351
4352 ForceSendFields []string `json:"-"`
4353
4354
4355
4356
4357 NullFields []string `json:"-"`
4358 }
4359
4360 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
4361 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
4362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4363 }
4364
4365
4366
4367 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
4368
4369
4370
4371
4372
4373
4374 Enabled bool `json:"enabled,omitempty"`
4375
4376
4377 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
4378
4379 FinishDigit string `json:"finishDigit,omitempty"`
4380
4381
4382 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
4383
4384 MaxDigits int64 `json:"maxDigits,omitempty"`
4385
4386
4387
4388
4389
4390 ForceSendFields []string `json:"-"`
4391
4392
4393
4394
4395 NullFields []string `json:"-"`
4396 }
4397
4398 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
4399 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
4400 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4401 }
4402
4403
4404
4405 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
4406
4407
4408 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
4409
4410 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
4411
4412
4413
4414
4415
4416 ForceSendFields []string `json:"-"`
4417
4418
4419
4420
4421 NullFields []string `json:"-"`
4422 }
4423
4424 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
4425 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
4426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4427 }
4428
4429
4430
4431 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
4432
4433
4434 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
4435
4436
4437
4438
4439 Models map[string]string `json:"models,omitempty"`
4440
4441 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
4442
4443
4444 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
4445
4446
4447
4448
4449
4450 ForceSendFields []string `json:"-"`
4451
4452
4453
4454
4455 NullFields []string `json:"-"`
4456 }
4457
4458 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
4459 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
4460 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4461 }
4462
4463
4464
4465 type GoogleCloudDialogflowCxV3beta1AudioInput struct {
4466
4467
4468
4469
4470
4471
4472 Audio string `json:"audio,omitempty"`
4473
4474
4475 Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
4476
4477
4478
4479
4480
4481 ForceSendFields []string `json:"-"`
4482
4483
4484
4485
4486 NullFields []string `json:"-"`
4487 }
4488
4489 func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
4490 type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
4491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4492 }
4493
4494
4495
4496
4497
4498
4499
4500
4501
4502
4503
4504
4505
4506
4507
4508
4509
4510 type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
4511
4512
4513 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
4514
4515
4516 TotalDuration string `json:"totalDuration,omitempty"`
4517
4518
4519
4520
4521
4522 ForceSendFields []string `json:"-"`
4523
4524
4525
4526
4527 NullFields []string `json:"-"`
4528 }
4529
4530 func (s *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
4531 type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
4532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4533 }
4534
4535
4536
4537 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
4538
4539 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
4540
4541
4542
4543
4544
4545 ForceSendFields []string `json:"-"`
4546
4547
4548
4549
4550 NullFields []string `json:"-"`
4551 }
4552
4553 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
4554 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
4555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4556 }
4557
4558
4559
4560 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
4561
4562
4563 Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
4564
4565
4566
4567
4568
4569 ForceSendFields []string `json:"-"`
4570
4571
4572
4573
4574 NullFields []string `json:"-"`
4575 }
4576
4577 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
4578 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
4579 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4580 }
4581
4582
4583
4584 type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
4585
4586
4587 Name string `json:"name,omitempty"`
4588
4589
4590
4591
4592
4593
4594
4595
4596 Result string `json:"result,omitempty"`
4597
4598 RunTime string `json:"runTime,omitempty"`
4599
4600
4601 TestCaseResults []string `json:"testCaseResults,omitempty"`
4602
4603
4604
4605
4606
4607 ForceSendFields []string `json:"-"`
4608
4609
4610
4611
4612 NullFields []string `json:"-"`
4613 }
4614
4615 func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
4616 type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
4617 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4618 }
4619
4620
4621
4622
4623 type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
4624
4625 TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
4626
4627
4628
4629
4630
4631 ForceSendFields []string `json:"-"`
4632
4633
4634
4635
4636 NullFields []string `json:"-"`
4637 }
4638
4639 func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
4640 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
4641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4642 }
4643
4644
4645
4646
4647 type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
4648
4649 UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
4650
4651 VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
4652
4653
4654
4655
4656
4657 ForceSendFields []string `json:"-"`
4658
4659
4660
4661
4662 NullFields []string `json:"-"`
4663 }
4664
4665 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
4666 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
4667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4668 }
4669
4670
4671
4672 type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
4673
4674 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
4675
4676
4677 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
4678
4679 Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
4680
4681
4682
4683 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
4684
4685
4686
4687
4688
4689 ForceSendFields []string `json:"-"`
4690
4691
4692
4693
4694 NullFields []string `json:"-"`
4695 }
4696
4697 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
4698 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
4699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4700 }
4701
4702
4703
4704 type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
4705
4706
4707 CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
4708
4709
4710 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
4711
4712
4713
4714 Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
4715
4716
4717 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
4718
4719
4720 Status *GoogleRpcStatus `json:"status,omitempty"`
4721
4722 TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
4723
4724
4725 TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
4726
4727
4728
4729
4730
4731 ForceSendFields []string `json:"-"`
4732
4733
4734
4735
4736 NullFields []string `json:"-"`
4737 }
4738
4739 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
4740 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
4741 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4742 }
4743
4744
4745
4746 type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
4747
4748 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4749
4750
4751
4752
4753
4754 ForceSendFields []string `json:"-"`
4755
4756
4757
4758
4759 NullFields []string `json:"-"`
4760 }
4761
4762 func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
4763 type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
4764 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4765 }
4766
4767
4768
4769 type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
4770
4771
4772 Version string `json:"version,omitempty"`
4773
4774
4775
4776
4777
4778 ForceSendFields []string `json:"-"`
4779
4780
4781
4782
4783 NullFields []string `json:"-"`
4784 }
4785
4786 func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
4787 type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
4788 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4789 }
4790
4791
4792
4793
4794 type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
4795
4796
4797
4798
4799 DataStore string `json:"dataStore,omitempty"`
4800
4801
4802
4803
4804
4805
4806
4807
4808
4809 DataStoreType string `json:"dataStoreType,omitempty"`
4810
4811
4812
4813
4814
4815 ForceSendFields []string `json:"-"`
4816
4817
4818
4819
4820 NullFields []string `json:"-"`
4821 }
4822
4823 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
4824 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
4825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4826 }
4827
4828
4829
4830 type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
4831
4832 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4833
4834
4835
4836
4837
4838 ForceSendFields []string `json:"-"`
4839
4840
4841
4842
4843 NullFields []string `json:"-"`
4844 }
4845
4846 func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
4847 type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
4848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4849 }
4850
4851
4852
4853 type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
4854
4855 TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
4856
4857
4858
4859
4860
4861 ForceSendFields []string `json:"-"`
4862
4863
4864
4865
4866 NullFields []string `json:"-"`
4867 }
4868
4869 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
4870 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
4871 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4872 }
4873
4874
4875
4876 type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
4877
4878
4879 Deployment string `json:"deployment,omitempty"`
4880
4881 Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
4882
4883
4884
4885
4886
4887 ForceSendFields []string `json:"-"`
4888
4889
4890
4891
4892 NullFields []string `json:"-"`
4893 }
4894
4895 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
4896 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
4897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4898 }
4899
4900
4901
4902 type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
4903
4904 Digits string `json:"digits,omitempty"`
4905
4906 FinishDigit string `json:"finishDigit,omitempty"`
4907
4908
4909
4910
4911
4912 ForceSendFields []string `json:"-"`
4913
4914
4915
4916
4917 NullFields []string `json:"-"`
4918 }
4919
4920 func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
4921 type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
4922 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4923 }
4924
4925
4926
4927
4928
4929
4930
4931
4932
4933 type GoogleCloudDialogflowCxV3beta1Environment struct {
4934
4935
4936 Description string `json:"description,omitempty"`
4937
4938
4939 DisplayName string `json:"displayName,omitempty"`
4940
4941
4942 Name string `json:"name,omitempty"`
4943
4944
4945 TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
4946
4947 UpdateTime string `json:"updateTime,omitempty"`
4948
4949
4950
4951 VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
4952
4953 WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
4954
4955
4956
4957
4958
4959 ForceSendFields []string `json:"-"`
4960
4961
4962
4963
4964 NullFields []string `json:"-"`
4965 }
4966
4967 func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
4968 type NoMethod GoogleCloudDialogflowCxV3beta1Environment
4969 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4970 }
4971
4972
4973
4974 type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
4975
4976
4977 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
4978
4979
4980
4981 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
4982
4983
4984
4985 TestCases []string `json:"testCases,omitempty"`
4986
4987
4988
4989
4990
4991 ForceSendFields []string `json:"-"`
4992
4993
4994
4995
4996 NullFields []string `json:"-"`
4997 }
4998
4999 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
5000 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
5001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5002 }
5003
5004
5005
5006 type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
5007
5008 Version string `json:"version,omitempty"`
5009
5010
5011
5012
5013
5014 ForceSendFields []string `json:"-"`
5015
5016
5017
5018
5019 NullFields []string `json:"-"`
5020 }
5021
5022 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
5023 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
5024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5025 }
5026
5027
5028
5029 type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
5030
5031
5032
5033 WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
5034
5035
5036
5037
5038
5039 ForceSendFields []string `json:"-"`
5040
5041
5042
5043
5044 NullFields []string `json:"-"`
5045 }
5046
5047 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
5048 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
5049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5050 }
5051
5052
5053
5054
5055
5056
5057
5058
5059 type GoogleCloudDialogflowCxV3beta1EventHandler struct {
5060
5061 Event string `json:"event,omitempty"`
5062
5063 Name string `json:"name,omitempty"`
5064
5065
5066 TargetFlow string `json:"targetFlow,omitempty"`
5067
5068
5069 TargetPage string `json:"targetPage,omitempty"`
5070
5071
5072
5073
5074 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
5075
5076
5077
5078
5079
5080 ForceSendFields []string `json:"-"`
5081
5082
5083
5084
5085 NullFields []string `json:"-"`
5086 }
5087
5088 func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
5089 type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
5090 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5091 }
5092
5093
5094 type GoogleCloudDialogflowCxV3beta1EventInput struct {
5095
5096 Event string `json:"event,omitempty"`
5097
5098
5099
5100
5101
5102 ForceSendFields []string `json:"-"`
5103
5104
5105
5106
5107 NullFields []string `json:"-"`
5108 }
5109
5110 func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
5111 type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
5112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5113 }
5114
5115
5116
5117 type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
5118
5119
5120
5121 AgentContent string `json:"agentContent,omitempty"`
5122
5123
5124 AgentUri string `json:"agentUri,omitempty"`
5125
5126
5127 CommitSha string `json:"commitSha,omitempty"`
5128
5129
5130
5131
5132
5133 ForceSendFields []string `json:"-"`
5134
5135
5136
5137
5138 NullFields []string `json:"-"`
5139 }
5140
5141 func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
5142 type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
5143 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5144 }
5145
5146
5147
5148 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
5149 }
5150
5151
5152
5153 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
5154
5155
5156
5157 EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
5158
5159
5160
5161 EntityTypesUri string `json:"entityTypesUri,omitempty"`
5162
5163
5164
5165
5166
5167 ForceSendFields []string `json:"-"`
5168
5169
5170
5171
5172 NullFields []string `json:"-"`
5173 }
5174
5175 func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
5176 type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
5177 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5178 }
5179
5180
5181
5182 type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
5183
5184 FlowContent string `json:"flowContent,omitempty"`
5185
5186
5187 FlowUri string `json:"flowUri,omitempty"`
5188
5189
5190
5191
5192
5193 ForceSendFields []string `json:"-"`
5194
5195
5196
5197
5198 NullFields []string `json:"-"`
5199 }
5200
5201 func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
5202 type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
5203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5204 }
5205
5206
5207
5208 type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
5209 }
5210
5211
5212
5213 type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
5214
5215
5216
5217 IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
5218
5219
5220 IntentsUri string `json:"intentsUri,omitempty"`
5221
5222
5223
5224
5225
5226 ForceSendFields []string `json:"-"`
5227
5228
5229
5230
5231 NullFields []string `json:"-"`
5232 }
5233
5234 func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
5235 type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
5236 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5237 }
5238
5239
5240
5241
5242 type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
5243 }
5244
5245
5246
5247 type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
5248
5249 Content string `json:"content,omitempty"`
5250
5251
5252 GcsUri string `json:"gcsUri,omitempty"`
5253
5254
5255
5256
5257
5258 ForceSendFields []string `json:"-"`
5259
5260
5261
5262
5263 NullFields []string `json:"-"`
5264 }
5265
5266 func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
5267 type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
5268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5269 }
5270
5271
5272
5273
5274
5275
5276 type GoogleCloudDialogflowCxV3beta1Form struct {
5277
5278 Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
5279
5280
5281
5282
5283
5284 ForceSendFields []string `json:"-"`
5285
5286
5287
5288
5289 NullFields []string `json:"-"`
5290 }
5291
5292 func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
5293 type NoMethod GoogleCloudDialogflowCxV3beta1Form
5294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5295 }
5296
5297
5298 type GoogleCloudDialogflowCxV3beta1FormParameter struct {
5299
5300
5301
5302 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
5303
5304
5305 DefaultValue interface{} `json:"defaultValue,omitempty"`
5306
5307
5308 DisplayName string `json:"displayName,omitempty"`
5309
5310
5311
5312
5313 EntityType string `json:"entityType,omitempty"`
5314
5315 FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
5316
5317 IsList bool `json:"isList,omitempty"`
5318
5319
5320
5321
5322 Redact bool `json:"redact,omitempty"`
5323
5324
5325
5326 Required bool `json:"required,omitempty"`
5327
5328
5329
5330
5331
5332 ForceSendFields []string `json:"-"`
5333
5334
5335
5336
5337 NullFields []string `json:"-"`
5338 }
5339
5340 func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
5341 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
5342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5343 }
5344
5345
5346
5347 type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
5348
5349
5350
5351 InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
5352
5353
5354
5355
5356
5357
5358
5359
5360
5361
5362
5363
5364
5365
5366
5367
5368
5369
5370
5371
5372
5373 RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
5374
5375
5376
5377
5378
5379 ForceSendFields []string `json:"-"`
5380
5381
5382
5383
5384 NullFields []string `json:"-"`
5385 }
5386
5387 func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
5388 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
5389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5390 }
5391
5392
5393
5394
5395
5396
5397
5398
5399
5400 type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
5401
5402
5403
5404 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
5405
5406 ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
5407
5408
5409
5410
5411 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
5412
5413 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
5414
5415
5416
5417
5418
5419
5420
5421 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
5422
5423 SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
5424
5425
5426
5427
5428
5429 Tag string `json:"tag,omitempty"`
5430
5431
5432 Webhook string `json:"webhook,omitempty"`
5433
5434
5435
5436
5437
5438 ForceSendFields []string `json:"-"`
5439
5440
5441
5442
5443 NullFields []string `json:"-"`
5444 }
5445
5446 func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
5447 type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
5448 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5449 }
5450
5451
5452
5453
5454 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
5455
5456 Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
5457
5458
5459
5460
5461
5462 ForceSendFields []string `json:"-"`
5463
5464
5465
5466
5467 NullFields []string `json:"-"`
5468 }
5469
5470 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
5471 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
5472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5473 }
5474
5475
5476
5477
5478 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
5479
5480 CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
5481
5482
5483
5484
5485 Condition string `json:"condition,omitempty"`
5486
5487
5488
5489
5490
5491 ForceSendFields []string `json:"-"`
5492
5493
5494
5495
5496 NullFields []string `json:"-"`
5497 }
5498
5499 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
5500 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
5501 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5502 }
5503
5504
5505
5506 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
5507
5508 AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
5509
5510 Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
5511
5512
5513
5514
5515
5516 ForceSendFields []string `json:"-"`
5517
5518
5519
5520
5521 NullFields []string `json:"-"`
5522 }
5523
5524 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
5525 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
5526 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5527 }
5528
5529
5530
5531 type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
5532
5533 Parameter string `json:"parameter,omitempty"`
5534
5535 Value interface{} `json:"value,omitempty"`
5536
5537
5538
5539
5540
5541 ForceSendFields []string `json:"-"`
5542
5543
5544
5545
5546 NullFields []string `json:"-"`
5547 }
5548
5549 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
5550 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
5551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5552 }
5553
5554
5555
5556
5557 type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
5558
5559
5560
5561 Uri string `json:"uri,omitempty"`
5562
5563
5564
5565
5566
5567 ForceSendFields []string `json:"-"`
5568
5569
5570
5571
5572 NullFields []string `json:"-"`
5573 }
5574
5575 func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
5576 type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
5577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5578 }
5579
5580
5581
5582 type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
5583
5584
5585
5586
5587
5588
5589
5590 State string `json:"state,omitempty"`
5591
5592
5593
5594
5595
5596 ForceSendFields []string `json:"-"`
5597
5598
5599
5600
5601 NullFields []string `json:"-"`
5602 }
5603
5604 func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
5605 type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
5606 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5607 }
5608
5609
5610
5611 type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
5612
5613 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5614
5615
5616
5617
5618
5619 ForceSendFields []string `json:"-"`
5620
5621
5622
5623
5624 NullFields []string `json:"-"`
5625 }
5626
5627 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
5628 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
5629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5630 }
5631
5632
5633
5634 type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
5635
5636 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
5637
5638
5639
5640
5641
5642 ForceSendFields []string `json:"-"`
5643
5644
5645
5646
5647 NullFields []string `json:"-"`
5648 }
5649
5650 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
5651 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
5652 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5653 }
5654
5655
5656
5657 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
5658 }
5659
5660
5661
5662 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
5663
5664
5665 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
5666
5667
5668 EntityTypes []string `json:"entityTypes,omitempty"`
5669
5670
5671
5672
5673
5674 ForceSendFields []string `json:"-"`
5675
5676
5677
5678
5679 NullFields []string `json:"-"`
5680 }
5681
5682 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
5683 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
5684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5685 }
5686
5687
5688
5689
5690
5691 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
5692
5693 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
5694
5695 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
5696
5697
5698
5699
5700
5701 ForceSendFields []string `json:"-"`
5702
5703
5704
5705
5706 NullFields []string `json:"-"`
5707 }
5708
5709 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
5710 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
5711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5712 }
5713
5714
5715
5716 type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
5717
5718
5719 Flow string `json:"flow,omitempty"`
5720
5721
5722
5723
5724
5725 ForceSendFields []string `json:"-"`
5726
5727
5728
5729
5730 NullFields []string `json:"-"`
5731 }
5732
5733 func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
5734 type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
5735 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5736 }
5737
5738
5739
5740 type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
5741 }
5742
5743
5744
5745 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
5746
5747
5748 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
5749
5750
5751 Intents []string `json:"intents,omitempty"`
5752
5753
5754
5755
5756
5757 ForceSendFields []string `json:"-"`
5758
5759
5760
5761
5762 NullFields []string `json:"-"`
5763 }
5764
5765 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
5766 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
5767 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5768 }
5769
5770
5771
5772
5773
5774 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
5775
5776 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
5777
5778 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
5779
5780
5781
5782
5783
5784 ForceSendFields []string `json:"-"`
5785
5786
5787
5788
5789 NullFields []string `json:"-"`
5790 }
5791
5792 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
5793 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
5794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5795 }
5796
5797
5798
5799 type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
5800
5801 Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
5802
5803
5804
5805
5806
5807 ForceSendFields []string `json:"-"`
5808
5809
5810
5811
5812 NullFields []string `json:"-"`
5813 }
5814
5815 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
5816 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
5817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5818 }
5819
5820
5821
5822 type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
5823
5824
5825 Names []string `json:"names,omitempty"`
5826
5827
5828
5829
5830
5831 ForceSendFields []string `json:"-"`
5832
5833
5834
5835
5836 NullFields []string `json:"-"`
5837 }
5838
5839 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
5840 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
5841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5842 }
5843
5844
5845
5846
5847 type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
5848
5849
5850 Content string `json:"content,omitempty"`
5851
5852
5853
5854
5855
5856 ForceSendFields []string `json:"-"`
5857
5858
5859
5860
5861 NullFields []string `json:"-"`
5862 }
5863
5864 func (s *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
5865 type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
5866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5867 }
5868
5869
5870
5871 type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886
5887
5888
5889
5890
5891
5892
5893
5894
5895
5896
5897
5898
5899
5900
5901
5902
5903
5904
5905 AudioEncoding string `json:"audioEncoding,omitempty"`
5906
5907
5908 BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
5909
5910
5911
5912
5913 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
5914
5915
5916
5917 Model string `json:"model,omitempty"`
5918
5919
5920
5921
5922
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932
5933
5934 ModelVariant string `json:"modelVariant,omitempty"`
5935
5936
5937
5938
5939
5940 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
5941
5942
5943
5944
5945
5946 PhraseHints []string `json:"phraseHints,omitempty"`
5947
5948
5949
5950 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
5951
5952
5953
5954
5955
5956
5957
5958 SingleUtterance bool `json:"singleUtterance,omitempty"`
5959
5960
5961
5962
5963
5964 ForceSendFields []string `json:"-"`
5965
5966
5967
5968
5969 NullFields []string `json:"-"`
5970 }
5971
5972 func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
5973 type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
5974 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5975 }
5976
5977
5978
5979
5980
5981 type GoogleCloudDialogflowCxV3beta1Intent struct {
5982
5983
5984
5985 Description string `json:"description,omitempty"`
5986
5987
5988 DisplayName string `json:"displayName,omitempty"`
5989
5990
5991
5992
5993
5994 IsFallback bool `json:"isFallback,omitempty"`
5995
5996
5997
5998
5999
6000
6001
6002
6003
6004 Labels map[string]string `json:"labels,omitempty"`
6005
6006
6007
6008 Name string `json:"name,omitempty"`
6009
6010 Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
6011
6012
6013
6014
6015
6016 Priority int64 `json:"priority,omitempty"`
6017
6018
6019 TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
6020
6021
6022
6023
6024
6025 ForceSendFields []string `json:"-"`
6026
6027
6028
6029
6030 NullFields []string `json:"-"`
6031 }
6032
6033 func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
6034 type NoMethod GoogleCloudDialogflowCxV3beta1Intent
6035 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6036 }
6037
6038
6039
6040 type GoogleCloudDialogflowCxV3beta1IntentInput struct {
6041
6042
6043 Intent string `json:"intent,omitempty"`
6044
6045
6046
6047
6048
6049 ForceSendFields []string `json:"-"`
6050
6051
6052
6053
6054 NullFields []string `json:"-"`
6055 }
6056
6057 func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
6058 type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
6059 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6060 }
6061
6062
6063
6064 type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
6065
6066
6067
6068
6069 EntityType string `json:"entityType,omitempty"`
6070
6071
6072 Id string `json:"id,omitempty"`
6073
6074 IsList bool `json:"isList,omitempty"`
6075
6076
6077
6078
6079 Redact bool `json:"redact,omitempty"`
6080
6081
6082
6083
6084
6085 ForceSendFields []string `json:"-"`
6086
6087
6088
6089
6090 NullFields []string `json:"-"`
6091 }
6092
6093 func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
6094 type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
6095 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6096 }
6097
6098
6099
6100 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
6101
6102 Id string `json:"id,omitempty"`
6103
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113
6114 Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
6115
6116 RepeatCount int64 `json:"repeatCount,omitempty"`
6117
6118
6119
6120
6121
6122 ForceSendFields []string `json:"-"`
6123
6124
6125
6126
6127 NullFields []string `json:"-"`
6128 }
6129
6130 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
6131 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
6132 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6133 }
6134
6135
6136
6137 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
6138
6139
6140 ParameterId string `json:"parameterId,omitempty"`
6141
6142 Text string `json:"text,omitempty"`
6143
6144
6145
6146
6147
6148 ForceSendFields []string `json:"-"`
6149
6150
6151
6152
6153 NullFields []string `json:"-"`
6154 }
6155
6156 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
6157 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
6158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6159 }
6160
6161
6162
6163
6164 type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
6165
6166 DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
6167
6168 Enabled bool `json:"enabled,omitempty"`
6169
6170
6171 TargetFlow string `json:"targetFlow,omitempty"`
6172
6173
6174 TargetPage string `json:"targetPage,omitempty"`
6175
6176
6177
6178
6179
6180 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
6181
6182
6183
6184
6185
6186 ForceSendFields []string `json:"-"`
6187
6188
6189
6190
6191 NullFields []string `json:"-"`
6192 }
6193
6194 func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
6195 type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
6196 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6197 }
6198
6199
6200
6201 type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
6202
6203
6204 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
6205
6206 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
6207
6208
6209 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
6210
6211
6212
6213
6214
6215 ForceSendFields []string `json:"-"`
6216
6217
6218
6219
6220 NullFields []string `json:"-"`
6221 }
6222
6223 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
6224 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
6225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6226 }
6227
6228 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
6229 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
6230 var s1 struct {
6231 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
6232 *NoMethod
6233 }
6234 s1.NoMethod = (*NoMethod)(s)
6235 if err := json.Unmarshal(data, &s1); err != nil {
6236 return err
6237 }
6238 s.ConfidenceScore = float64(s1.ConfidenceScore)
6239 return nil
6240 }
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255 type GoogleCloudDialogflowCxV3beta1Page struct {
6256
6257
6258
6259 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
6260
6261
6262 Description string `json:"description,omitempty"`
6263
6264
6265 DisplayName string `json:"displayName,omitempty"`
6266
6267
6268 EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
6269
6270
6271 EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
6272
6273
6274 Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
6275
6276 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
6277
6278
6279
6280 Name string `json:"name,omitempty"`
6281
6282
6283
6284
6285
6286
6287
6288
6289
6290
6291
6292
6293 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
6294
6295
6296
6297
6298
6299
6300
6301
6302
6303
6304 TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
6305
6306
6307
6308
6309
6310 ForceSendFields []string `json:"-"`
6311
6312
6313
6314
6315 NullFields []string `json:"-"`
6316 }
6317
6318 func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
6319 type NoMethod GoogleCloudDialogflowCxV3beta1Page
6320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6321 }
6322
6323
6324
6325 type GoogleCloudDialogflowCxV3beta1PageInfo struct {
6326
6327
6328
6329 CurrentPage string `json:"currentPage,omitempty"`
6330
6331
6332 DisplayName string `json:"displayName,omitempty"`
6333
6334
6335 FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
6336
6337
6338
6339
6340
6341 ForceSendFields []string `json:"-"`
6342
6343
6344
6345
6346 NullFields []string `json:"-"`
6347 }
6348
6349 func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
6350 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
6351 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6352 }
6353
6354
6355 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
6356
6357
6358
6359 ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
6360
6361
6362
6363
6364
6365 ForceSendFields []string `json:"-"`
6366
6367
6368
6369
6370 NullFields []string `json:"-"`
6371 }
6372
6373 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
6374 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
6375 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6376 }
6377
6378
6379
6380 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
6381
6382
6383
6384 DisplayName string `json:"displayName,omitempty"`
6385
6386
6387
6388 JustCollected bool `json:"justCollected,omitempty"`
6389
6390
6391
6392
6393 Required bool `json:"required,omitempty"`
6394
6395
6396
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406 State string `json:"state,omitempty"`
6407
6408
6409
6410 Value interface{} `json:"value,omitempty"`
6411
6412
6413
6414
6415
6416 ForceSendFields []string `json:"-"`
6417
6418
6419
6420
6421 NullFields []string `json:"-"`
6422 }
6423
6424 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
6425 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
6426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6427 }
6428
6429
6430
6431
6432
6433
6434
6435 type GoogleCloudDialogflowCxV3beta1QueryInput struct {
6436
6437 Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
6438
6439 Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
6440
6441 Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
6442
6443 Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
6444
6445
6446
6447
6448 LanguageCode string `json:"languageCode,omitempty"`
6449
6450 Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
6451
6452
6453
6454
6455
6456 ForceSendFields []string `json:"-"`
6457
6458
6459
6460
6461 NullFields []string `json:"-"`
6462 }
6463
6464 func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
6465 type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
6466 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6467 }
6468
6469
6470
6471 type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
6472
6473 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
6474
6475
6476
6477
6478
6479 ForceSendFields []string `json:"-"`
6480
6481
6482
6483
6484 NullFields []string `json:"-"`
6485 }
6486
6487 func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
6488 type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
6489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6490 }
6491
6492
6493
6494
6495
6496
6497
6498
6499
6500
6501
6502
6503
6504
6505 type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
6506
6507
6508
6509 Channel string `json:"channel,omitempty"`
6510
6511 ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
6512
6513
6514
6515
6516
6517 EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
6518
6519
6520 KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
6521
6522 LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
6523
6524
6525
6526
6527 MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
6528
6529
6530
6531 OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
6532
6533 Payload googleapi.RawMessage `json:"payload,omitempty"`
6534
6535
6536
6537 PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
6538
6539
6540 TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
6541
6542 Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
6543
6544
6545
6546
6547
6548 ForceSendFields []string `json:"-"`
6549
6550
6551
6552
6553 NullFields []string `json:"-"`
6554 }
6555
6556 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
6557 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
6558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6559 }
6560
6561
6562
6563
6564
6565
6566
6567
6568
6569
6570
6571 type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
6572
6573 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6574
6575
6576
6577
6578
6579 ForceSendFields []string `json:"-"`
6580
6581
6582
6583
6584 NullFields []string `json:"-"`
6585 }
6586
6587 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
6588 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
6589 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6590 }
6591
6592
6593
6594
6595 type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
6596 }
6597
6598
6599
6600
6601
6602 type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
6603 }
6604
6605
6606
6607
6608
6609
6610
6611
6612
6613 type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
6614
6615
6616 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6617
6618
6619
6620
6621
6622 ForceSendFields []string `json:"-"`
6623
6624
6625
6626
6627 NullFields []string `json:"-"`
6628 }
6629
6630 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
6631 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
6632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6633 }
6634
6635
6636
6637
6638
6639
6640 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
6641
6642 Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
6643
6644
6645
6646
6647
6648 ForceSendFields []string `json:"-"`
6649
6650
6651
6652
6653 NullFields []string `json:"-"`
6654 }
6655
6656 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
6657 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
6658 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6659 }
6660
6661
6662
6663 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
6664
6665
6666
6667 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6668
6669
6670 Audio string `json:"audio,omitempty"`
6671
6672
6673 Uri string `json:"uri,omitempty"`
6674
6675
6676
6677
6678
6679 ForceSendFields []string `json:"-"`
6680
6681
6682
6683
6684 NullFields []string `json:"-"`
6685 }
6686
6687 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
6688 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
6689 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6690 }
6691
6692
6693
6694
6695 type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
6696
6697
6698
6699 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6700
6701
6702 Ssml string `json:"ssml,omitempty"`
6703
6704 Text string `json:"text,omitempty"`
6705
6706
6707
6708
6709
6710 ForceSendFields []string `json:"-"`
6711
6712
6713
6714
6715 NullFields []string `json:"-"`
6716 }
6717
6718 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
6719 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
6720 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6721 }
6722
6723
6724
6725 type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
6726
6727
6728
6729 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6730
6731
6732 AudioUri string `json:"audioUri,omitempty"`
6733
6734
6735
6736
6737
6738 ForceSendFields []string `json:"-"`
6739
6740
6741
6742
6743 NullFields []string `json:"-"`
6744 }
6745
6746 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
6747 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
6748 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6749 }
6750
6751
6752
6753
6754 type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
6755
6756
6757 PhoneNumber string `json:"phoneNumber,omitempty"`
6758
6759
6760
6761
6762
6763 ForceSendFields []string `json:"-"`
6764
6765
6766
6767
6768 NullFields []string `json:"-"`
6769 }
6770
6771 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
6772 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
6773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6774 }
6775
6776
6777
6778 type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
6779
6780
6781
6782 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6783
6784 Text []string `json:"text,omitempty"`
6785
6786
6787
6788
6789
6790 ForceSendFields []string `json:"-"`
6791
6792
6793
6794
6795 NullFields []string `json:"-"`
6796 }
6797
6798 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
6799 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
6800 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6801 }
6802
6803
6804
6805 type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
6806
6807 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
6808
6809
6810
6811
6812
6813 ForceSendFields []string `json:"-"`
6814
6815
6816
6817
6818 NullFields []string `json:"-"`
6819 }
6820
6821 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
6822 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
6823 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6824 }
6825
6826
6827
6828 type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
6829
6830 ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
6831
6832
6833
6834
6835
6836 ForceSendFields []string `json:"-"`
6837
6838
6839
6840
6841 NullFields []string `json:"-"`
6842 }
6843
6844 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
6845 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
6846 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6847 }
6848
6849
6850
6851
6852 type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
6853 }
6854
6855
6856
6857 type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
6858
6859 Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
6860
6861
6862
6863
6864
6865 ForceSendFields []string `json:"-"`
6866
6867
6868
6869
6870 NullFields []string `json:"-"`
6871 }
6872
6873 func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
6874 type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
6875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6876 }
6877
6878
6879
6880 type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
6881
6882
6883
6884
6885
6886 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6887
6888
6889
6890
6891
6892 Session string `json:"session,omitempty"`
6893
6894
6895
6896
6897
6898 ForceSendFields []string `json:"-"`
6899
6900
6901
6902
6903 NullFields []string `json:"-"`
6904 }
6905
6906 func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
6907 type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
6908 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6909 }
6910
6911
6912 type GoogleCloudDialogflowCxV3beta1TestCase struct {
6913
6914 CreationTime string `json:"creationTime,omitempty"`
6915
6916
6917 DisplayName string `json:"displayName,omitempty"`
6918
6919 LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
6920
6921
6922
6923 Name string `json:"name,omitempty"`
6924
6925
6926 Notes string `json:"notes,omitempty"`
6927
6928
6929
6930 Tags []string `json:"tags,omitempty"`
6931
6932
6933
6934 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
6935
6936 TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
6937
6938
6939
6940
6941
6942 ForceSendFields []string `json:"-"`
6943
6944
6945
6946
6947 NullFields []string `json:"-"`
6948 }
6949
6950 func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
6951 type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
6952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6953 }
6954
6955
6956
6957 type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
6958
6959 Status *GoogleRpcStatus `json:"status,omitempty"`
6960
6961 TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
6962
6963
6964
6965
6966
6967 ForceSendFields []string `json:"-"`
6968
6969
6970
6971
6972 NullFields []string `json:"-"`
6973 }
6974
6975 func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
6976 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
6977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6978 }
6979
6980
6981
6982 type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
6983
6984
6985 ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
6986
6987
6988 Environment string `json:"environment,omitempty"`
6989
6990
6991 Name string `json:"name,omitempty"`
6992
6993
6994
6995
6996
6997
6998 TestResult string `json:"testResult,omitempty"`
6999
7000 TestTime string `json:"testTime,omitempty"`
7001
7002
7003
7004
7005
7006 ForceSendFields []string `json:"-"`
7007
7008
7009
7010
7011 NullFields []string `json:"-"`
7012 }
7013
7014 func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
7015 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
7016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7017 }
7018
7019
7020
7021 type GoogleCloudDialogflowCxV3beta1TestConfig struct {
7022
7023
7024
7025
7026
7027 Flow string `json:"flow,omitempty"`
7028
7029
7030
7031
7032
7033 Page string `json:"page,omitempty"`
7034
7035
7036 TrackingParameters []string `json:"trackingParameters,omitempty"`
7037
7038
7039
7040
7041
7042 ForceSendFields []string `json:"-"`
7043
7044
7045
7046
7047 NullFields []string `json:"-"`
7048 }
7049
7050 func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
7051 type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
7052 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7053 }
7054
7055
7056 type GoogleCloudDialogflowCxV3beta1TestError struct {
7057
7058 Status *GoogleRpcStatus `json:"status,omitempty"`
7059
7060 TestCase string `json:"testCase,omitempty"`
7061
7062 TestTime string `json:"testTime,omitempty"`
7063
7064
7065
7066
7067
7068 ForceSendFields []string `json:"-"`
7069
7070
7071
7072
7073 NullFields []string `json:"-"`
7074 }
7075
7076 func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
7077 type NoMethod GoogleCloudDialogflowCxV3beta1TestError
7078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7079 }
7080
7081
7082
7083 type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
7084
7085
7086 Description string `json:"description,omitempty"`
7087
7088
7089
7090
7091
7092
7093
7094
7095
7096 Type string `json:"type,omitempty"`
7097
7098
7099
7100
7101
7102 ForceSendFields []string `json:"-"`
7103
7104
7105
7106
7107 NullFields []string `json:"-"`
7108 }
7109
7110 func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
7111 type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
7112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7113 }
7114
7115
7116
7117 type GoogleCloudDialogflowCxV3beta1TextInput struct {
7118
7119 Text string `json:"text,omitempty"`
7120
7121
7122
7123
7124
7125 ForceSendFields []string `json:"-"`
7126
7127
7128
7129
7130 NullFields []string `json:"-"`
7131 }
7132
7133 func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
7134 type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
7135 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7136 }
7137
7138
7139
7140
7141
7142
7143
7144
7145
7146 type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
7147
7148
7149
7150
7151
7152
7153 Condition string `json:"condition,omitempty"`
7154
7155
7156 Description string `json:"description,omitempty"`
7157
7158
7159
7160
7161
7162 Intent string `json:"intent,omitempty"`
7163
7164 Name string `json:"name,omitempty"`
7165
7166
7167 TargetFlow string `json:"targetFlow,omitempty"`
7168
7169
7170 TargetPage string `json:"targetPage,omitempty"`
7171
7172
7173
7174 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
7175
7176
7177
7178
7179
7180 ForceSendFields []string `json:"-"`
7181
7182
7183
7184
7185 NullFields []string `json:"-"`
7186 }
7187
7188 func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
7189 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
7190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7191 }
7192
7193
7194
7195 type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
7196
7197 AgentEscalated bool `json:"agentEscalated,omitempty"`
7198
7199 DtmfUsed bool `json:"dtmfUsed,omitempty"`
7200
7201
7202
7203
7204
7205
7206 FailureReasons []string `json:"failureReasons,omitempty"`
7207
7208 NoMatch bool `json:"noMatch,omitempty"`
7209
7210 NoUserInput bool `json:"noUserInput,omitempty"`
7211
7212 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
7213
7214
7215 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
7216
7217
7218 SentimentScore float64 `json:"sentimentScore,omitempty"`
7219
7220 UserEscalated bool `json:"userEscalated,omitempty"`
7221
7222
7223 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
7224
7225
7226
7227
7228
7229 ForceSendFields []string `json:"-"`
7230
7231
7232
7233
7234 NullFields []string `json:"-"`
7235 }
7236
7237 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
7238 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
7239 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7240 }
7241
7242 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
7243 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
7244 var s1 struct {
7245 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
7246 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
7247 *NoMethod
7248 }
7249 s1.NoMethod = (*NoMethod)(s)
7250 if err := json.Unmarshal(data, &s1); err != nil {
7251 return err
7252 }
7253 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
7254 s.SentimentScore = float64(s1.SentimentScore)
7255 return nil
7256 }
7257
7258
7259
7260 type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
7261
7262 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
7263
7264
7265
7266
7267
7268 ForceSendFields []string `json:"-"`
7269
7270
7271
7272
7273 NullFields []string `json:"-"`
7274 }
7275
7276 func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
7277 type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
7278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7279 }
7280
7281
7282
7283
7284
7285
7286 type GoogleCloudDialogflowCxV3beta1Webhook struct {
7287
7288 Disabled bool `json:"disabled,omitempty"`
7289
7290
7291 DisplayName string `json:"displayName,omitempty"`
7292
7293 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
7294
7295
7296
7297 Name string `json:"name,omitempty"`
7298
7299
7300 ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
7301
7302
7303
7304 Timeout string `json:"timeout,omitempty"`
7305
7306
7307
7308
7309
7310 ForceSendFields []string `json:"-"`
7311
7312
7313
7314
7315 NullFields []string `json:"-"`
7316 }
7317
7318 func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
7319 type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
7320 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7321 }
7322
7323
7324
7325 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
7326
7327
7328
7329
7330
7331
7332
7333
7334 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
7335
7336
7337
7338
7339
7340
7341
7342
7343
7344
7345
7346
7347 HttpMethod string `json:"httpMethod,omitempty"`
7348
7349
7350
7351 OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
7352
7353
7354
7355 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
7356
7357 Password string `json:"password,omitempty"`
7358
7359
7360 RequestBody string `json:"requestBody,omitempty"`
7361
7362
7363 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
7364
7365
7366
7367
7368
7369
7370
7371
7372
7373
7374
7375
7376
7377
7378
7379
7380
7381
7382
7383 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
7384
7385
7386 Uri string `json:"uri,omitempty"`
7387
7388 Username string `json:"username,omitempty"`
7389
7390
7391
7392
7393
7394
7395 WebhookType string `json:"webhookType,omitempty"`
7396
7397
7398
7399
7400
7401 ForceSendFields []string `json:"-"`
7402
7403
7404
7405
7406 NullFields []string `json:"-"`
7407 }
7408
7409 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
7410 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
7411 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7412 }
7413
7414
7415
7416
7417 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
7418
7419 ClientId string `json:"clientId,omitempty"`
7420
7421
7422 ClientSecret string `json:"clientSecret,omitempty"`
7423
7424 Scopes []string `json:"scopes,omitempty"`
7425
7426
7427 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
7428
7429
7430
7431
7432
7433 ForceSendFields []string `json:"-"`
7434
7435
7436
7437
7438 NullFields []string `json:"-"`
7439 }
7440
7441 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
7442 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
7443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7444 }
7445
7446
7447
7448
7449
7450
7451 type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
7452
7453
7454 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
7455
7456
7457 DtmfDigits string `json:"dtmfDigits,omitempty"`
7458
7459
7460 FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
7461
7462 IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
7463
7464 LanguageCode string `json:"languageCode,omitempty"`
7465
7466 LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
7467
7468
7469
7470 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
7471
7472 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
7473
7474 Payload googleapi.RawMessage `json:"payload,omitempty"`
7475
7476
7477
7478 SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
7479
7480 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
7481
7482
7483 Text string `json:"text,omitempty"`
7484
7485
7486 Transcript string `json:"transcript,omitempty"`
7487
7488
7489 TriggerEvent string `json:"triggerEvent,omitempty"`
7490
7491
7492
7493 TriggerIntent string `json:"triggerIntent,omitempty"`
7494
7495
7496
7497
7498
7499 ForceSendFields []string `json:"-"`
7500
7501
7502
7503
7504 NullFields []string `json:"-"`
7505 }
7506
7507 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
7508 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
7509 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7510 }
7511
7512
7513
7514 type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
7515
7516
7517
7518
7519 Tag string `json:"tag,omitempty"`
7520
7521
7522
7523
7524
7525 ForceSendFields []string `json:"-"`
7526
7527
7528
7529
7530 NullFields []string `json:"-"`
7531 }
7532
7533 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
7534 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
7535 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7536 }
7537
7538
7539
7540 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
7541
7542
7543 Confidence float64 `json:"confidence,omitempty"`
7544
7545 DisplayName string `json:"displayName,omitempty"`
7546
7547
7548 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
7549
7550
7551
7552
7553 Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
7554
7555
7556
7557
7558
7559 ForceSendFields []string `json:"-"`
7560
7561
7562
7563
7564 NullFields []string `json:"-"`
7565 }
7566
7567 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
7568 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
7569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7570 }
7571
7572 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
7573 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
7574 var s1 struct {
7575 Confidence gensupport.JSONFloat64 `json:"confidence"`
7576 *NoMethod
7577 }
7578 s1.NoMethod = (*NoMethod)(s)
7579 if err := json.Unmarshal(data, &s1); err != nil {
7580 return err
7581 }
7582 s.Confidence = float64(s1.Confidence)
7583 return nil
7584 }
7585
7586
7587
7588 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
7589
7590
7591 OriginalValue string `json:"originalValue,omitempty"`
7592
7593
7594 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
7595
7596
7597
7598
7599
7600 ForceSendFields []string `json:"-"`
7601
7602
7603
7604
7605 NullFields []string `json:"-"`
7606 }
7607
7608 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
7609 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
7610 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7611 }
7612
7613
7614
7615 type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
7616
7617
7618
7619 Magnitude float64 `json:"magnitude,omitempty"`
7620
7621
7622 Score float64 `json:"score,omitempty"`
7623
7624
7625
7626
7627
7628 ForceSendFields []string `json:"-"`
7629
7630
7631
7632
7633 NullFields []string `json:"-"`
7634 }
7635
7636 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
7637 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
7638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7639 }
7640
7641 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
7642 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
7643 var s1 struct {
7644 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
7645 Score gensupport.JSONFloat64 `json:"score"`
7646 *NoMethod
7647 }
7648 s1.NoMethod = (*NoMethod)(s)
7649 if err := json.Unmarshal(data, &s1); err != nil {
7650 return err
7651 }
7652 s.Magnitude = float64(s1.Magnitude)
7653 s.Score = float64(s1.Score)
7654 return nil
7655 }
7656
7657
7658
7659 type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
7660
7661
7662
7663 FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
7664
7665
7666 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
7667
7668 Payload googleapi.RawMessage `json:"payload,omitempty"`
7669
7670
7671 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
7672
7673
7674 TargetFlow string `json:"targetFlow,omitempty"`
7675
7676
7677 TargetPage string `json:"targetPage,omitempty"`
7678
7679
7680
7681
7682
7683 ForceSendFields []string `json:"-"`
7684
7685
7686
7687
7688 NullFields []string `json:"-"`
7689 }
7690
7691 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
7692 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
7693 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7694 }
7695
7696
7697
7698 type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
7699
7700
7701
7702
7703
7704
7705
7706
7707 MergeBehavior string `json:"mergeBehavior,omitempty"`
7708
7709 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
7710
7711
7712
7713
7714
7715 ForceSendFields []string `json:"-"`
7716
7717
7718
7719
7720 NullFields []string `json:"-"`
7721 }
7722
7723 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
7724 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
7725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7726 }
7727
7728
7729
7730
7731 type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
7732
7733 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
7734
7735
7736
7737
7738 Service string `json:"service,omitempty"`
7739
7740
7741
7742
7743
7744 ForceSendFields []string `json:"-"`
7745
7746
7747
7748
7749 NullFields []string `json:"-"`
7750 }
7751
7752 func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
7753 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
7754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7755 }
7756
7757
7758
7759
7760
7761
7762
7763
7764
7765 type GoogleCloudDialogflowV2Agent struct {
7766
7767
7768
7769
7770
7771
7772
7773
7774
7775
7776 ApiVersion string `json:"apiVersion,omitempty"`
7777
7778
7779
7780
7781 AvatarUri string `json:"avatarUri,omitempty"`
7782
7783
7784
7785
7786
7787
7788
7789 ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
7790
7791
7792
7793
7794
7795 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
7796
7797
7798 Description string `json:"description,omitempty"`
7799
7800 DisplayName string `json:"displayName,omitempty"`
7801
7802
7803 EnableLogging bool `json:"enableLogging,omitempty"`
7804
7805
7806
7807
7808
7809
7810
7811
7812
7813 MatchMode string `json:"matchMode,omitempty"`
7814
7815 Parent string `json:"parent,omitempty"`
7816
7817
7818 SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
7819
7820
7821
7822
7823
7824
7825
7826
7827
7828 Tier string `json:"tier,omitempty"`
7829
7830
7831 TimeZone string `json:"timeZone,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 *GoogleCloudDialogflowV2Agent) MarshalJSON() ([]byte, error) {
7849 type NoMethod GoogleCloudDialogflowV2Agent
7850 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7851 }
7852
7853 func (s *GoogleCloudDialogflowV2Agent) UnmarshalJSON(data []byte) error {
7854 type NoMethod GoogleCloudDialogflowV2Agent
7855 var s1 struct {
7856 ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
7857 *NoMethod
7858 }
7859 s1.NoMethod = (*NoMethod)(s)
7860 if err := json.Unmarshal(data, &s1); err != nil {
7861 return err
7862 }
7863 s.ClassificationThreshold = float64(s1.ClassificationThreshold)
7864 return nil
7865 }
7866
7867
7868
7869 type GoogleCloudDialogflowV2AgentAssistantFeedback struct {
7870
7871
7872
7873
7874
7875
7876
7877
7878
7879 AnswerRelevance string `json:"answerRelevance,omitempty"`
7880
7881
7882
7883
7884
7885
7886
7887
7888
7889
7890 DocumentCorrectness string `json:"documentCorrectness,omitempty"`
7891
7892
7893
7894
7895
7896
7897
7898
7899
7900 DocumentEfficiency string `json:"documentEfficiency,omitempty"`
7901
7902 KnowledgeSearchFeedback *GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback `json:"knowledgeSearchFeedback,omitempty"`
7903
7904 SummarizationFeedback *GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`
7905
7906
7907
7908
7909
7910 ForceSendFields []string `json:"-"`
7911
7912
7913
7914
7915 NullFields []string `json:"-"`
7916 }
7917
7918 func (s *GoogleCloudDialogflowV2AgentAssistantFeedback) MarshalJSON() ([]byte, error) {
7919 type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedback
7920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7921 }
7922
7923
7924
7925 type GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback struct {
7926
7927
7928
7929 AnswerCopied bool `json:"answerCopied,omitempty"`
7930
7931
7932
7933 ClickedUris []string `json:"clickedUris,omitempty"`
7934
7935
7936
7937
7938
7939 ForceSendFields []string `json:"-"`
7940
7941
7942
7943
7944 NullFields []string `json:"-"`
7945 }
7946
7947 func (s *GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback) MarshalJSON() ([]byte, error) {
7948 type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback
7949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7950 }
7951
7952
7953
7954 type GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback struct {
7955
7956 StartTime string `json:"startTime,omitempty"`
7957
7958 SubmitTime string `json:"submitTime,omitempty"`
7959
7960 SummaryText string `json:"summaryText,omitempty"`
7961
7962 TextSections map[string]string `json:"textSections,omitempty"`
7963
7964
7965
7966
7967
7968 ForceSendFields []string `json:"-"`
7969
7970
7971
7972
7973 NullFields []string `json:"-"`
7974 }
7975
7976 func (s *GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) {
7977 type NoMethod GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback
7978 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7979 }
7980
7981
7982
7983 type GoogleCloudDialogflowV2AgentAssistantRecord struct {
7984
7985 ArticleSuggestionAnswer *GoogleCloudDialogflowV2ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`
7986
7987 DialogflowAssistAnswer *GoogleCloudDialogflowV2DialogflowAssistAnswer `json:"dialogflowAssistAnswer,omitempty"`
7988
7989 FaqAnswer *GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswer,omitempty"`
7990
7991
7992
7993
7994
7995 ForceSendFields []string `json:"-"`
7996
7997
7998
7999
8000 NullFields []string `json:"-"`
8001 }
8002
8003 func (s *GoogleCloudDialogflowV2AgentAssistantRecord) MarshalJSON() ([]byte, error) {
8004 type NoMethod GoogleCloudDialogflowV2AgentAssistantRecord
8005 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8006 }
8007
8008
8009
8010 type GoogleCloudDialogflowV2AnalyzeContentRequest struct {
8011
8012 AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
8013
8014
8015
8016
8017 CxParameters googleapi.RawMessage `json:"cxParameters,omitempty"`
8018
8019 EventInput *GoogleCloudDialogflowV2EventInput `json:"eventInput,omitempty"`
8020
8021 QueryParams *GoogleCloudDialogflowV2QueryParameters `json:"queryParams,omitempty"`
8022
8023
8024
8025
8026 ReplyAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"replyAudioConfig,omitempty"`
8027
8028
8029
8030 RequestId string `json:"requestId,omitempty"`
8031
8032 SuggestionInput *GoogleCloudDialogflowV2SuggestionInput `json:"suggestionInput,omitempty"`
8033
8034 TextInput *GoogleCloudDialogflowV2TextInput `json:"textInput,omitempty"`
8035
8036
8037
8038
8039
8040 ForceSendFields []string `json:"-"`
8041
8042
8043
8044
8045 NullFields []string `json:"-"`
8046 }
8047
8048 func (s *GoogleCloudDialogflowV2AnalyzeContentRequest) MarshalJSON() ([]byte, error) {
8049 type NoMethod GoogleCloudDialogflowV2AnalyzeContentRequest
8050 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8051 }
8052
8053
8054
8055 type GoogleCloudDialogflowV2AnalyzeContentResponse struct {
8056
8057
8058
8059
8060 AutomatedAgentReply *GoogleCloudDialogflowV2AutomatedAgentReply `json:"automatedAgentReply,omitempty"`
8061
8062 DtmfParameters *GoogleCloudDialogflowV2DtmfParameters `json:"dtmfParameters,omitempty"`
8063
8064
8065
8066
8067
8068
8069
8070 EndUserSuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"endUserSuggestionResults,omitempty"`
8071
8072
8073
8074
8075
8076
8077
8078 HumanAgentSuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`
8079
8080 Message *GoogleCloudDialogflowV2Message `json:"message,omitempty"`
8081
8082
8083
8084
8085
8086
8087 ReplyAudio *GoogleCloudDialogflowV2OutputAudio `json:"replyAudio,omitempty"`
8088
8089
8090 ReplyText string `json:"replyText,omitempty"`
8091
8092
8093 googleapi.ServerResponse `json:"-"`
8094
8095
8096
8097
8098
8099 ForceSendFields []string `json:"-"`
8100
8101
8102
8103
8104 NullFields []string `json:"-"`
8105 }
8106
8107 func (s *GoogleCloudDialogflowV2AnalyzeContentResponse) MarshalJSON() ([]byte, error) {
8108 type NoMethod GoogleCloudDialogflowV2AnalyzeContentResponse
8109 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8110 }
8111
8112
8113
8114
8115 type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
8116
8117
8118
8119
8120 EntityType string `json:"entityType,omitempty"`
8121
8122
8123
8124
8125 FormattedValue interface{} `json:"formattedValue,omitempty"`
8126
8127 Text string `json:"text,omitempty"`
8128
8129
8130
8131
8132
8133 ForceSendFields []string `json:"-"`
8134
8135
8136
8137
8138 NullFields []string `json:"-"`
8139 }
8140
8141 func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
8142 type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
8143 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8144 }
8145
8146
8147
8148 type GoogleCloudDialogflowV2AnswerFeedback struct {
8149
8150 AgentAssistantDetailFeedback *GoogleCloudDialogflowV2AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`
8151
8152 ClickTime string `json:"clickTime,omitempty"`
8153
8154
8155
8156
8157 Clicked bool `json:"clicked,omitempty"`
8158
8159
8160
8161
8162
8163
8164
8165 CorrectnessLevel string `json:"correctnessLevel,omitempty"`
8166
8167 DisplayTime string `json:"displayTime,omitempty"`
8168
8169
8170 Displayed bool `json:"displayed,omitempty"`
8171
8172
8173
8174
8175
8176 ForceSendFields []string `json:"-"`
8177
8178
8179
8180
8181 NullFields []string `json:"-"`
8182 }
8183
8184 func (s *GoogleCloudDialogflowV2AnswerFeedback) MarshalJSON() ([]byte, error) {
8185 type NoMethod GoogleCloudDialogflowV2AnswerFeedback
8186 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8187 }
8188
8189
8190
8191
8192
8193
8194
8195
8196
8197
8198
8199
8200
8201
8202 type GoogleCloudDialogflowV2AnswerRecord struct {
8203
8204 AgentAssistantRecord *GoogleCloudDialogflowV2AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`
8205
8206
8207
8208 AnswerFeedback *GoogleCloudDialogflowV2AnswerFeedback `json:"answerFeedback,omitempty"`
8209
8210
8211 Name string `json:"name,omitempty"`
8212
8213
8214 googleapi.ServerResponse `json:"-"`
8215
8216
8217
8218
8219
8220 ForceSendFields []string `json:"-"`
8221
8222
8223
8224
8225 NullFields []string `json:"-"`
8226 }
8227
8228 func (s *GoogleCloudDialogflowV2AnswerRecord) MarshalJSON() ([]byte, error) {
8229 type NoMethod GoogleCloudDialogflowV2AnswerRecord
8230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8231 }
8232
8233
8234 type GoogleCloudDialogflowV2ArticleAnswer struct {
8235
8236
8237 AnswerRecord string `json:"answerRecord,omitempty"`
8238
8239
8240
8241 Confidence float64 `json:"confidence,omitempty"`
8242
8243
8244 Metadata map[string]string `json:"metadata,omitempty"`
8245
8246 Snippets []string `json:"snippets,omitempty"`
8247
8248 Title string `json:"title,omitempty"`
8249
8250 Uri string `json:"uri,omitempty"`
8251
8252
8253
8254
8255
8256 ForceSendFields []string `json:"-"`
8257
8258
8259
8260
8261 NullFields []string `json:"-"`
8262 }
8263
8264 func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
8265 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
8266 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8267 }
8268
8269 func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
8270 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
8271 var s1 struct {
8272 Confidence gensupport.JSONFloat64 `json:"confidence"`
8273 *NoMethod
8274 }
8275 s1.NoMethod = (*NoMethod)(s)
8276 if err := json.Unmarshal(data, &s1); err != nil {
8277 return err
8278 }
8279 s.Confidence = float64(s1.Confidence)
8280 return nil
8281 }
8282
8283
8284
8285 type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
8286
8287
8288
8289
8290
8291
8292
8293
8294 TrainingModelType string `json:"trainingModelType,omitempty"`
8295
8296
8297
8298
8299
8300 ForceSendFields []string `json:"-"`
8301
8302
8303
8304
8305 NullFields []string `json:"-"`
8306 }
8307
8308 func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
8309 type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
8310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8311 }
8312
8313
8314
8315 type GoogleCloudDialogflowV2AssistQueryParameters struct {
8316
8317
8318
8319
8320
8321
8322
8323
8324 DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
8325
8326
8327
8328
8329
8330 ForceSendFields []string `json:"-"`
8331
8332
8333
8334
8335 NullFields []string `json:"-"`
8336 }
8337
8338 func (s *GoogleCloudDialogflowV2AssistQueryParameters) MarshalJSON() ([]byte, error) {
8339 type NoMethod GoogleCloudDialogflowV2AssistQueryParameters
8340 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8341 }
8342
8343
8344
8345 type GoogleCloudDialogflowV2AutomatedAgentConfig struct {
8346
8347
8348
8349
8350
8351
8352
8353
8354
8355
8356 Agent string `json:"agent,omitempty"`
8357
8358
8359
8360
8361 SessionTtl string `json:"sessionTtl,omitempty"`
8362
8363
8364
8365
8366
8367 ForceSendFields []string `json:"-"`
8368
8369
8370
8371
8372 NullFields []string `json:"-"`
8373 }
8374
8375 func (s *GoogleCloudDialogflowV2AutomatedAgentConfig) MarshalJSON() ([]byte, error) {
8376 type NoMethod GoogleCloudDialogflowV2AutomatedAgentConfig
8377 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8378 }
8379
8380
8381
8382 type GoogleCloudDialogflowV2AutomatedAgentReply struct {
8383
8384
8385
8386 AllowCancellation bool `json:"allowCancellation,omitempty"`
8387
8388
8389
8390
8391
8392
8393
8394
8395
8396 AutomatedAgentReplyType string `json:"automatedAgentReplyType,omitempty"`
8397
8398
8399 CxCurrentPage string `json:"cxCurrentPage,omitempty"`
8400
8401 DetectIntentResponse *GoogleCloudDialogflowV2DetectIntentResponse `json:"detectIntentResponse,omitempty"`
8402
8403
8404
8405
8406
8407 ForceSendFields []string `json:"-"`
8408
8409
8410
8411
8412 NullFields []string `json:"-"`
8413 }
8414
8415 func (s *GoogleCloudDialogflowV2AutomatedAgentReply) MarshalJSON() ([]byte, error) {
8416 type NoMethod GoogleCloudDialogflowV2AutomatedAgentReply
8417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8418 }
8419
8420
8421
8422 type GoogleCloudDialogflowV2BatchCreateEntitiesRequest struct {
8423
8424 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
8425
8426
8427
8428
8429 LanguageCode string `json:"languageCode,omitempty"`
8430
8431
8432
8433
8434
8435 ForceSendFields []string `json:"-"`
8436
8437
8438
8439
8440 NullFields []string `json:"-"`
8441 }
8442
8443 func (s *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) {
8444 type NoMethod GoogleCloudDialogflowV2BatchCreateEntitiesRequest
8445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8446 }
8447
8448
8449
8450 type GoogleCloudDialogflowV2BatchDeleteEntitiesRequest struct {
8451
8452
8453
8454 EntityValues []string `json:"entityValues,omitempty"`
8455
8456
8457
8458
8459 LanguageCode string `json:"languageCode,omitempty"`
8460
8461
8462
8463
8464
8465 ForceSendFields []string `json:"-"`
8466
8467
8468
8469
8470 NullFields []string `json:"-"`
8471 }
8472
8473 func (s *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) {
8474 type NoMethod GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
8475 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8476 }
8477
8478
8479
8480 type GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest struct {
8481
8482
8483 EntityTypeNames []string `json:"entityTypeNames,omitempty"`
8484
8485
8486
8487
8488
8489 ForceSendFields []string `json:"-"`
8490
8491
8492
8493
8494 NullFields []string `json:"-"`
8495 }
8496
8497 func (s *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) {
8498 type NoMethod GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
8499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8500 }
8501
8502
8503
8504 type GoogleCloudDialogflowV2BatchDeleteIntentsRequest struct {
8505
8506
8507 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
8508
8509
8510
8511
8512
8513 ForceSendFields []string `json:"-"`
8514
8515
8516
8517
8518 NullFields []string `json:"-"`
8519 }
8520
8521 func (s *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) {
8522 type NoMethod GoogleCloudDialogflowV2BatchDeleteIntentsRequest
8523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8524 }
8525
8526
8527
8528 type GoogleCloudDialogflowV2BatchUpdateEntitiesRequest struct {
8529
8530 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
8531
8532
8533
8534
8535 LanguageCode string `json:"languageCode,omitempty"`
8536
8537 UpdateMask string `json:"updateMask,omitempty"`
8538
8539
8540
8541
8542
8543 ForceSendFields []string `json:"-"`
8544
8545
8546
8547
8548 NullFields []string `json:"-"`
8549 }
8550
8551 func (s *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) {
8552 type NoMethod GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
8553 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8554 }
8555
8556
8557
8558 type GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest struct {
8559
8560 EntityTypeBatchInline *GoogleCloudDialogflowV2EntityTypeBatch `json:"entityTypeBatchInline,omitempty"`
8561
8562
8563
8564
8565 EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"`
8566
8567
8568
8569
8570 LanguageCode string `json:"languageCode,omitempty"`
8571
8572 UpdateMask string `json:"updateMask,omitempty"`
8573
8574
8575
8576
8577
8578 ForceSendFields []string `json:"-"`
8579
8580
8581
8582
8583 NullFields []string `json:"-"`
8584 }
8585
8586 func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) {
8587 type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
8588 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8589 }
8590
8591
8592
8593 type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
8594
8595 EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
8596
8597
8598
8599
8600
8601 ForceSendFields []string `json:"-"`
8602
8603
8604
8605
8606 NullFields []string `json:"-"`
8607 }
8608
8609 func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
8610 type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
8611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8612 }
8613
8614 type GoogleCloudDialogflowV2BatchUpdateIntentsRequest struct {
8615
8616 IntentBatchInline *GoogleCloudDialogflowV2IntentBatch `json:"intentBatchInline,omitempty"`
8617
8618
8619
8620 IntentBatchUri string `json:"intentBatchUri,omitempty"`
8621
8622
8623
8624
8625
8626
8627 IntentView string `json:"intentView,omitempty"`
8628
8629
8630
8631
8632 LanguageCode string `json:"languageCode,omitempty"`
8633
8634 UpdateMask string `json:"updateMask,omitempty"`
8635
8636
8637
8638
8639
8640 ForceSendFields []string `json:"-"`
8641
8642
8643
8644
8645 NullFields []string `json:"-"`
8646 }
8647
8648 func (s *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) {
8649 type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsRequest
8650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8651 }
8652
8653
8654
8655 type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
8656
8657 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
8658
8659
8660
8661
8662
8663 ForceSendFields []string `json:"-"`
8664
8665
8666
8667
8668 NullFields []string `json:"-"`
8669 }
8670
8671 func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
8672 type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
8673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8674 }
8675
8676
8677
8678 type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
8679
8680
8681 ConversationProfile string `json:"conversationProfile,omitempty"`
8682
8683
8684 CreateTime string `json:"createTime,omitempty"`
8685
8686
8687
8688
8689
8690
8691
8692
8693
8694
8695 ParticipantRole string `json:"participantRole,omitempty"`
8696
8697
8698
8699
8700
8701
8702
8703
8704
8705
8706 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
8707
8708
8709
8710
8711
8712 ForceSendFields []string `json:"-"`
8713
8714
8715
8716
8717 NullFields []string `json:"-"`
8718 }
8719
8720 func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
8721 type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
8722 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8723 }
8724
8725
8726
8727 type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest struct {
8728
8729
8730
8731
8732
8733
8734
8735
8736
8737
8738 ParticipantRole string `json:"participantRole,omitempty"`
8739
8740
8741
8742
8743
8744
8745
8746
8747
8748
8749 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
8750
8751
8752
8753
8754
8755 ForceSendFields []string `json:"-"`
8756
8757
8758
8759
8760 NullFields []string `json:"-"`
8761 }
8762
8763 func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
8764 type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
8765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8766 }
8767
8768
8769
8770 type GoogleCloudDialogflowV2CompleteConversationRequest struct {
8771 }
8772
8773
8774
8775
8776
8777
8778
8779
8780
8781
8782
8783
8784
8785
8786 type GoogleCloudDialogflowV2Context struct {
8787
8788
8789
8790
8791 LifespanCount int64 `json:"lifespanCount,omitempty"`
8792
8793
8794
8795
8796
8797
8798
8799
8800
8801
8802 Name string `json:"name,omitempty"`
8803
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
8814
8815
8816 googleapi.ServerResponse `json:"-"`
8817
8818
8819
8820
8821
8822 ForceSendFields []string `json:"-"`
8823
8824
8825
8826
8827 NullFields []string `json:"-"`
8828 }
8829
8830 func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
8831 type NoMethod GoogleCloudDialogflowV2Context
8832 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8833 }
8834
8835
8836
8837
8838
8839 type GoogleCloudDialogflowV2Conversation struct {
8840
8841
8842
8843 ConversationProfile string `json:"conversationProfile,omitempty"`
8844
8845
8846
8847
8848
8849
8850
8851
8852
8853
8854
8855
8856
8857
8858
8859
8860
8861 ConversationStage string `json:"conversationStage,omitempty"`
8862
8863 EndTime string `json:"endTime,omitempty"`
8864
8865
8866
8867
8868
8869
8870 LifecycleState string `json:"lifecycleState,omitempty"`
8871
8872
8873 Name string `json:"name,omitempty"`
8874
8875
8876 PhoneNumber *GoogleCloudDialogflowV2ConversationPhoneNumber `json:"phoneNumber,omitempty"`
8877
8878 StartTime string `json:"startTime,omitempty"`
8879
8880
8881 googleapi.ServerResponse `json:"-"`
8882
8883
8884
8885
8886
8887 ForceSendFields []string `json:"-"`
8888
8889
8890
8891
8892 NullFields []string `json:"-"`
8893 }
8894
8895 func (s *GoogleCloudDialogflowV2Conversation) MarshalJSON() ([]byte, error) {
8896 type NoMethod GoogleCloudDialogflowV2Conversation
8897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8898 }
8899
8900
8901
8902
8903
8904
8905 type GoogleCloudDialogflowV2ConversationDataset struct {
8906
8907
8908 ConversationCount int64 `json:"conversationCount,omitempty,string"`
8909
8910 ConversationInfo *GoogleCloudDialogflowV2ConversationInfo `json:"conversationInfo,omitempty"`
8911
8912 CreateTime string `json:"createTime,omitempty"`
8913
8914
8915 Description string `json:"description,omitempty"`
8916
8917 DisplayName string `json:"displayName,omitempty"`
8918
8919
8920 InputConfig *GoogleCloudDialogflowV2InputConfig `json:"inputConfig,omitempty"`
8921
8922
8923 Name string `json:"name,omitempty"`
8924
8925
8926 googleapi.ServerResponse `json:"-"`
8927
8928
8929
8930
8931
8932 ForceSendFields []string `json:"-"`
8933
8934
8935
8936
8937 NullFields []string `json:"-"`
8938 }
8939
8940 func (s *GoogleCloudDialogflowV2ConversationDataset) MarshalJSON() ([]byte, error) {
8941 type NoMethod GoogleCloudDialogflowV2ConversationDataset
8942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8943 }
8944
8945
8946
8947 type GoogleCloudDialogflowV2ConversationEvent struct {
8948
8949
8950 Conversation string `json:"conversation,omitempty"`
8951
8952
8953 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
8954
8955 NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
8956
8957
8958
8959
8960
8961
8962
8963
8964
8965
8966
8967
8968
8969
8970
8971
8972
8973
8974
8975
8976 Type string `json:"type,omitempty"`
8977
8978
8979
8980
8981
8982 ForceSendFields []string `json:"-"`
8983
8984
8985
8986
8987 NullFields []string `json:"-"`
8988 }
8989
8990 func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
8991 type NoMethod GoogleCloudDialogflowV2ConversationEvent
8992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8993 }
8994
8995
8996
8997 type GoogleCloudDialogflowV2ConversationInfo struct {
8998
8999
9000
9001 LanguageCode string `json:"languageCode,omitempty"`
9002
9003
9004
9005
9006
9007 ForceSendFields []string `json:"-"`
9008
9009
9010
9011
9012 NullFields []string `json:"-"`
9013 }
9014
9015 func (s *GoogleCloudDialogflowV2ConversationInfo) MarshalJSON() ([]byte, error) {
9016 type NoMethod GoogleCloudDialogflowV2ConversationInfo
9017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9018 }
9019
9020
9021 type GoogleCloudDialogflowV2ConversationModel struct {
9022
9023 ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
9024
9025 CreateTime string `json:"createTime,omitempty"`
9026
9027 Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
9028
9029 DisplayName string `json:"displayName,omitempty"`
9030
9031
9032
9033
9034
9035 LanguageCode string `json:"languageCode,omitempty"`
9036
9037
9038 Name string `json:"name,omitempty"`
9039
9040 SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
9041
9042
9043
9044
9045
9046
9047
9048
9049
9050
9051
9052
9053
9054
9055
9056
9057 State string `json:"state,omitempty"`
9058
9059
9060 googleapi.ServerResponse `json:"-"`
9061
9062
9063
9064
9065
9066
9067 ForceSendFields []string `json:"-"`
9068
9069
9070
9071
9072 NullFields []string `json:"-"`
9073 }
9074
9075 func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
9076 type NoMethod GoogleCloudDialogflowV2ConversationModel
9077 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9078 }
9079
9080
9081
9082 type GoogleCloudDialogflowV2ConversationModelEvaluation struct {
9083
9084 CreateTime string `json:"createTime,omitempty"`
9085
9086
9087 DisplayName string `json:"displayName,omitempty"`
9088
9089 EvaluationConfig *GoogleCloudDialogflowV2EvaluationConfig `json:"evaluationConfig,omitempty"`
9090
9091
9092 Name string `json:"name,omitempty"`
9093
9094
9095
9096
9097
9098
9099
9100
9101
9102
9103
9104
9105 RawHumanEvalTemplateCsv string `json:"rawHumanEvalTemplateCsv,omitempty"`
9106
9107
9108 SmartReplyMetrics *GoogleCloudDialogflowV2SmartReplyMetrics `json:"smartReplyMetrics,omitempty"`
9109
9110
9111 googleapi.ServerResponse `json:"-"`
9112
9113
9114
9115
9116
9117 ForceSendFields []string `json:"-"`
9118
9119
9120
9121
9122 NullFields []string `json:"-"`
9123 }
9124
9125 func (s *GoogleCloudDialogflowV2ConversationModelEvaluation) MarshalJSON() ([]byte, error) {
9126 type NoMethod GoogleCloudDialogflowV2ConversationModelEvaluation
9127 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9128 }
9129
9130
9131
9132
9133 type GoogleCloudDialogflowV2ConversationPhoneNumber struct {
9134
9135 PhoneNumber string `json:"phoneNumber,omitempty"`
9136
9137
9138
9139
9140
9141 ForceSendFields []string `json:"-"`
9142
9143
9144
9145
9146 NullFields []string `json:"-"`
9147 }
9148
9149 func (s *GoogleCloudDialogflowV2ConversationPhoneNumber) MarshalJSON() ([]byte, error) {
9150 type NoMethod GoogleCloudDialogflowV2ConversationPhoneNumber
9151 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9152 }
9153
9154
9155
9156 type GoogleCloudDialogflowV2ConversationProfile struct {
9157
9158
9159 AutomatedAgentConfig *GoogleCloudDialogflowV2AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`
9160
9161 CreateTime string `json:"createTime,omitempty"`
9162
9163
9164 DisplayName string `json:"displayName,omitempty"`
9165
9166
9167 HumanAgentAssistantConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`
9168
9169
9170
9171 HumanAgentHandoffConfig *GoogleCloudDialogflowV2HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`
9172
9173
9174
9175
9176
9177 LanguageCode string `json:"languageCode,omitempty"`
9178
9179 LoggingConfig *GoogleCloudDialogflowV2LoggingConfig `json:"loggingConfig,omitempty"`
9180
9181
9182 Name string `json:"name,omitempty"`
9183
9184
9185 NewMessageEventNotificationConfig *GoogleCloudDialogflowV2NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`
9186
9187
9188 NotificationConfig *GoogleCloudDialogflowV2NotificationConfig `json:"notificationConfig,omitempty"`
9189
9190
9191 SecuritySettings string `json:"securitySettings,omitempty"`
9192
9193 SttConfig *GoogleCloudDialogflowV2SpeechToTextConfig `json:"sttConfig,omitempty"`
9194
9195
9196
9197 TimeZone string `json:"timeZone,omitempty"`
9198
9199
9200
9201 TtsConfig *GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"ttsConfig,omitempty"`
9202
9203 UpdateTime string `json:"updateTime,omitempty"`
9204
9205
9206 googleapi.ServerResponse `json:"-"`
9207
9208
9209
9210
9211
9212 ForceSendFields []string `json:"-"`
9213
9214
9215
9216
9217 NullFields []string `json:"-"`
9218 }
9219
9220 func (s *GoogleCloudDialogflowV2ConversationProfile) MarshalJSON() ([]byte, error) {
9221 type NoMethod GoogleCloudDialogflowV2ConversationProfile
9222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9223 }
9224
9225
9226
9227 type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
9228
9229
9230 ConversationDataset string `json:"conversationDataset,omitempty"`
9231
9232
9233
9234
9235
9236 ForceSendFields []string `json:"-"`
9237
9238
9239
9240
9241 NullFields []string `json:"-"`
9242 }
9243
9244 func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
9245 type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
9246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9247 }
9248
9249
9250
9251
9252 type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
9253
9254
9255 ConversationModel string `json:"conversationModel,omitempty"`
9256
9257
9258 ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
9259
9260
9261 CreateTime string `json:"createTime,omitempty"`
9262
9263
9264
9265
9266
9267
9268
9269
9270
9271 State string `json:"state,omitempty"`
9272
9273
9274
9275
9276
9277 ForceSendFields []string `json:"-"`
9278
9279
9280
9281
9282 NullFields []string `json:"-"`
9283 }
9284
9285 func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
9286 type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
9287 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9288 }
9289
9290
9291
9292 type GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest struct {
9293
9294
9295 ConversationModelEvaluation *GoogleCloudDialogflowV2ConversationModelEvaluation `json:"conversationModelEvaluation,omitempty"`
9296
9297
9298
9299
9300
9301 ForceSendFields []string `json:"-"`
9302
9303
9304
9305
9306 NullFields []string `json:"-"`
9307 }
9308
9309 func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest) MarshalJSON() ([]byte, error) {
9310 type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest
9311 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9312 }
9313
9314
9315
9316 type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
9317
9318
9319 ConversationModel string `json:"conversationModel,omitempty"`
9320
9321
9322 CreateTime string `json:"createTime,omitempty"`
9323
9324
9325
9326
9327
9328
9329
9330
9331
9332
9333
9334
9335 State string `json:"state,omitempty"`
9336
9337
9338
9339
9340
9341 ForceSendFields []string `json:"-"`
9342
9343
9344
9345
9346 NullFields []string `json:"-"`
9347 }
9348
9349 func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
9350 type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
9351 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9352 }
9353
9354
9355
9356 type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
9357 }
9358
9359
9360
9361 type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
9362
9363
9364 ConversationModel string `json:"conversationModel,omitempty"`
9365
9366
9367 CreateTime string `json:"createTime,omitempty"`
9368
9369
9370
9371
9372
9373 ForceSendFields []string `json:"-"`
9374
9375
9376
9377
9378 NullFields []string `json:"-"`
9379 }
9380
9381 func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
9382 type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
9383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9384 }
9385
9386
9387
9388 type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
9389
9390
9391 ConversationModel string `json:"conversationModel,omitempty"`
9392
9393
9394 CreateTime string `json:"createTime,omitempty"`
9395
9396
9397
9398
9399
9400 ForceSendFields []string `json:"-"`
9401
9402
9403
9404
9405 NullFields []string `json:"-"`
9406 }
9407
9408 func (s *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
9409 type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
9410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9411 }
9412
9413
9414
9415 type GoogleCloudDialogflowV2DeployConversationModelRequest struct {
9416 }
9417
9418
9419
9420 type GoogleCloudDialogflowV2DetectIntentRequest struct {
9421
9422
9423
9424 InputAudio string `json:"inputAudio,omitempty"`
9425
9426
9427
9428 OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"`
9429
9430
9431
9432
9433 OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"`
9434
9435
9436
9437
9438 QueryInput *GoogleCloudDialogflowV2QueryInput `json:"queryInput,omitempty"`
9439
9440 QueryParams *GoogleCloudDialogflowV2QueryParameters `json:"queryParams,omitempty"`
9441
9442
9443
9444
9445
9446 ForceSendFields []string `json:"-"`
9447
9448
9449
9450
9451 NullFields []string `json:"-"`
9452 }
9453
9454 func (s *GoogleCloudDialogflowV2DetectIntentRequest) MarshalJSON() ([]byte, error) {
9455 type NoMethod GoogleCloudDialogflowV2DetectIntentRequest
9456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9457 }
9458
9459
9460
9461 type GoogleCloudDialogflowV2DetectIntentResponse struct {
9462
9463
9464
9465
9466
9467
9468
9469
9470 OutputAudio string `json:"outputAudio,omitempty"`
9471
9472
9473 OutputAudioConfig *GoogleCloudDialogflowV2OutputAudioConfig `json:"outputAudioConfig,omitempty"`
9474
9475
9476
9477 QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
9478
9479
9480 ResponseId string `json:"responseId,omitempty"`
9481
9482 WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"`
9483
9484
9485 googleapi.ServerResponse `json:"-"`
9486
9487
9488
9489
9490
9491 ForceSendFields []string `json:"-"`
9492
9493
9494
9495
9496 NullFields []string `json:"-"`
9497 }
9498
9499 func (s *GoogleCloudDialogflowV2DetectIntentResponse) MarshalJSON() ([]byte, error) {
9500 type NoMethod GoogleCloudDialogflowV2DetectIntentResponse
9501 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9502 }
9503
9504
9505
9506 type GoogleCloudDialogflowV2DialogflowAssistAnswer struct {
9507
9508
9509 AnswerRecord string `json:"answerRecord,omitempty"`
9510
9511 IntentSuggestion *GoogleCloudDialogflowV2IntentSuggestion `json:"intentSuggestion,omitempty"`
9512
9513 QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
9514
9515
9516
9517
9518
9519 ForceSendFields []string `json:"-"`
9520
9521
9522
9523
9524 NullFields []string `json:"-"`
9525 }
9526
9527 func (s *GoogleCloudDialogflowV2DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
9528 type NoMethod GoogleCloudDialogflowV2DialogflowAssistAnswer
9529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9530 }
9531
9532
9533
9534
9535
9536
9537 type GoogleCloudDialogflowV2Document struct {
9538
9539
9540
9541
9542
9543
9544 ContentUri string `json:"contentUri,omitempty"`
9545
9546
9547 DisplayName string `json:"displayName,omitempty"`
9548
9549
9550
9551
9552
9553
9554
9555
9556
9557
9558
9559 EnableAutoReload bool `json:"enableAutoReload,omitempty"`
9560
9561
9562
9563
9564
9565
9566
9567
9568
9569
9570
9571
9572
9573
9574
9575 KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
9576
9577
9578
9579 LatestReloadStatus *GoogleCloudDialogflowV2DocumentReloadStatus `json:"latestReloadStatus,omitempty"`
9580
9581
9582
9583
9584 Metadata map[string]string `json:"metadata,omitempty"`
9585
9586 MimeType string `json:"mimeType,omitempty"`
9587
9588
9589
9590 Name string `json:"name,omitempty"`
9591
9592
9593 RawContent string `json:"rawContent,omitempty"`
9594
9595
9596
9597
9598
9599
9600
9601
9602
9603 State string `json:"state,omitempty"`
9604
9605
9606 googleapi.ServerResponse `json:"-"`
9607
9608
9609
9610
9611
9612 ForceSendFields []string `json:"-"`
9613
9614
9615
9616
9617 NullFields []string `json:"-"`
9618 }
9619
9620 func (s *GoogleCloudDialogflowV2Document) MarshalJSON() ([]byte, error) {
9621 type NoMethod GoogleCloudDialogflowV2Document
9622 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9623 }
9624
9625
9626 type GoogleCloudDialogflowV2DocumentReloadStatus struct {
9627
9628 Status *GoogleRpcStatus `json:"status,omitempty"`
9629
9630
9631 Time string `json:"time,omitempty"`
9632
9633
9634
9635
9636
9637 ForceSendFields []string `json:"-"`
9638
9639
9640
9641
9642 NullFields []string `json:"-"`
9643 }
9644
9645 func (s *GoogleCloudDialogflowV2DocumentReloadStatus) MarshalJSON() ([]byte, error) {
9646 type NoMethod GoogleCloudDialogflowV2DocumentReloadStatus
9647 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9648 }
9649
9650
9651
9652 type GoogleCloudDialogflowV2DtmfParameters struct {
9653
9654
9655 AcceptsDtmfInput bool `json:"acceptsDtmfInput,omitempty"`
9656
9657
9658
9659
9660
9661 ForceSendFields []string `json:"-"`
9662
9663
9664
9665
9666 NullFields []string `json:"-"`
9667 }
9668
9669 func (s *GoogleCloudDialogflowV2DtmfParameters) MarshalJSON() ([]byte, error) {
9670 type NoMethod GoogleCloudDialogflowV2DtmfParameters
9671 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9672 }
9673
9674
9675
9676
9677
9678
9679
9680
9681
9682
9683
9684 type GoogleCloudDialogflowV2EntityType struct {
9685
9686
9687
9688
9689
9690
9691
9692
9693 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
9694
9695 DisplayName string `json:"displayName,omitempty"`
9696
9697
9698 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
9699
9700
9701 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
9702
9703
9704
9705
9706
9707
9708
9709
9710
9711
9712
9713 Kind string `json:"kind,omitempty"`
9714
9715
9716
9717 Name string `json:"name,omitempty"`
9718
9719
9720 googleapi.ServerResponse `json:"-"`
9721
9722
9723
9724
9725
9726 ForceSendFields []string `json:"-"`
9727
9728
9729
9730
9731 NullFields []string `json:"-"`
9732 }
9733
9734 func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
9735 type NoMethod GoogleCloudDialogflowV2EntityType
9736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9737 }
9738
9739
9740
9741 type GoogleCloudDialogflowV2EntityTypeBatch struct {
9742
9743 EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
9744
9745
9746
9747
9748
9749 ForceSendFields []string `json:"-"`
9750
9751
9752
9753
9754 NullFields []string `json:"-"`
9755 }
9756
9757 func (s *GoogleCloudDialogflowV2EntityTypeBatch) MarshalJSON() ([]byte, error) {
9758 type NoMethod GoogleCloudDialogflowV2EntityTypeBatch
9759 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9760 }
9761
9762
9763
9764 type GoogleCloudDialogflowV2EntityTypeEntity struct {
9765
9766
9767
9768
9769 Synonyms []string `json:"synonyms,omitempty"`
9770
9771
9772
9773
9774
9775 Value string `json:"value,omitempty"`
9776
9777
9778
9779
9780
9781 ForceSendFields []string `json:"-"`
9782
9783
9784
9785
9786 NullFields []string `json:"-"`
9787 }
9788
9789 func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
9790 type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
9791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9792 }
9793
9794
9795
9796
9797
9798
9799
9800
9801
9802
9803 type GoogleCloudDialogflowV2Environment struct {
9804
9805
9806
9807 AgentVersion string `json:"agentVersion,omitempty"`
9808
9809
9810
9811 Description string `json:"description,omitempty"`
9812
9813 Fulfillment *GoogleCloudDialogflowV2Fulfillment `json:"fulfillment,omitempty"`
9814
9815
9816
9817
9818 Name string `json:"name,omitempty"`
9819
9820
9821
9822
9823
9824
9825
9826
9827 State string `json:"state,omitempty"`
9828
9829
9830 TextToSpeechSettings *GoogleCloudDialogflowV2TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
9831
9832
9833 UpdateTime string `json:"updateTime,omitempty"`
9834
9835
9836 googleapi.ServerResponse `json:"-"`
9837
9838
9839
9840
9841
9842 ForceSendFields []string `json:"-"`
9843
9844
9845
9846
9847 NullFields []string `json:"-"`
9848 }
9849
9850 func (s *GoogleCloudDialogflowV2Environment) MarshalJSON() ([]byte, error) {
9851 type NoMethod GoogleCloudDialogflowV2Environment
9852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9853 }
9854
9855
9856
9857 type GoogleCloudDialogflowV2EnvironmentHistory struct {
9858
9859
9860
9861 Entries []*GoogleCloudDialogflowV2EnvironmentHistoryEntry `json:"entries,omitempty"`
9862
9863
9864 NextPageToken string `json:"nextPageToken,omitempty"`
9865
9866
9867
9868
9869 Parent string `json:"parent,omitempty"`
9870
9871
9872 googleapi.ServerResponse `json:"-"`
9873
9874
9875
9876
9877
9878 ForceSendFields []string `json:"-"`
9879
9880
9881
9882
9883 NullFields []string `json:"-"`
9884 }
9885
9886 func (s *GoogleCloudDialogflowV2EnvironmentHistory) MarshalJSON() ([]byte, error) {
9887 type NoMethod GoogleCloudDialogflowV2EnvironmentHistory
9888 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9889 }
9890
9891
9892
9893 type GoogleCloudDialogflowV2EnvironmentHistoryEntry struct {
9894
9895 AgentVersion string `json:"agentVersion,omitempty"`
9896
9897 CreateTime string `json:"createTime,omitempty"`
9898
9899
9900 Description string `json:"description,omitempty"`
9901
9902
9903
9904
9905
9906 ForceSendFields []string `json:"-"`
9907
9908
9909
9910
9911 NullFields []string `json:"-"`
9912 }
9913
9914 func (s *GoogleCloudDialogflowV2EnvironmentHistoryEntry) MarshalJSON() ([]byte, error) {
9915 type NoMethod GoogleCloudDialogflowV2EnvironmentHistoryEntry
9916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9917 }
9918
9919
9920
9921 type GoogleCloudDialogflowV2EvaluationConfig struct {
9922
9923 Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
9924
9925 SmartComposeConfig *GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig `json:"smartComposeConfig,omitempty"`
9926
9927 SmartReplyConfig *GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig `json:"smartReplyConfig,omitempty"`
9928
9929
9930
9931
9932
9933 ForceSendFields []string `json:"-"`
9934
9935
9936
9937
9938 NullFields []string `json:"-"`
9939 }
9940
9941 func (s *GoogleCloudDialogflowV2EvaluationConfig) MarshalJSON() ([]byte, error) {
9942 type NoMethod GoogleCloudDialogflowV2EvaluationConfig
9943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9944 }
9945
9946
9947
9948 type GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig struct {
9949
9950
9951 AllowlistDocument string `json:"allowlistDocument,omitempty"`
9952
9953
9954
9955
9956 MaxResultCount int64 `json:"maxResultCount,omitempty"`
9957
9958
9959
9960
9961
9962 ForceSendFields []string `json:"-"`
9963
9964
9965
9966
9967 NullFields []string `json:"-"`
9968 }
9969
9970 func (s *GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig) MarshalJSON() ([]byte, error) {
9971 type NoMethod GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
9972 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9973 }
9974
9975
9976
9977 type GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig struct {
9978
9979
9980 AllowlistDocument string `json:"allowlistDocument,omitempty"`
9981
9982
9983
9984
9985 MaxResultCount int64 `json:"maxResultCount,omitempty"`
9986
9987
9988
9989
9990
9991 ForceSendFields []string `json:"-"`
9992
9993
9994
9995
9996 NullFields []string `json:"-"`
9997 }
9998
9999 func (s *GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig) MarshalJSON() ([]byte, error) {
10000 type NoMethod GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig
10001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10002 }
10003
10004
10005
10006
10007
10008
10009 type GoogleCloudDialogflowV2EventInput struct {
10010
10011
10012
10013
10014
10015
10016
10017 LanguageCode string `json:"languageCode,omitempty"`
10018
10019 Name string `json:"name,omitempty"`
10020
10021
10022
10023
10024
10025
10026
10027
10028
10029
10030 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
10031
10032
10033
10034
10035
10036 ForceSendFields []string `json:"-"`
10037
10038
10039
10040
10041 NullFields []string `json:"-"`
10042 }
10043
10044 func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
10045 type NoMethod GoogleCloudDialogflowV2EventInput
10046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10047 }
10048
10049
10050
10051 type GoogleCloudDialogflowV2ExportAgentRequest struct {
10052
10053
10054
10055
10056
10057
10058
10059
10060 AgentUri string `json:"agentUri,omitempty"`
10061
10062
10063
10064
10065
10066 ForceSendFields []string `json:"-"`
10067
10068
10069
10070
10071 NullFields []string `json:"-"`
10072 }
10073
10074 func (s *GoogleCloudDialogflowV2ExportAgentRequest) MarshalJSON() ([]byte, error) {
10075 type NoMethod GoogleCloudDialogflowV2ExportAgentRequest
10076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10077 }
10078
10079
10080
10081 type GoogleCloudDialogflowV2ExportAgentResponse struct {
10082
10083 AgentContent string `json:"agentContent,omitempty"`
10084
10085
10086 AgentUri string `json:"agentUri,omitempty"`
10087
10088
10089
10090
10091
10092 ForceSendFields []string `json:"-"`
10093
10094
10095
10096
10097 NullFields []string `json:"-"`
10098 }
10099
10100 func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
10101 type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
10102 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10103 }
10104
10105
10106
10107 type GoogleCloudDialogflowV2ExportDocumentRequest struct {
10108
10109
10110 ExportFullContent bool `json:"exportFullContent,omitempty"`
10111
10112 GcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"gcsDestination,omitempty"`
10113
10114
10115 SmartMessagingPartialUpdate bool `json:"smartMessagingPartialUpdate,omitempty"`
10116
10117
10118
10119
10120
10121 ForceSendFields []string `json:"-"`
10122
10123
10124
10125
10126 NullFields []string `json:"-"`
10127 }
10128
10129 func (s *GoogleCloudDialogflowV2ExportDocumentRequest) MarshalJSON() ([]byte, error) {
10130 type NoMethod GoogleCloudDialogflowV2ExportDocumentRequest
10131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10132 }
10133
10134
10135
10136 type GoogleCloudDialogflowV2ExportOperationMetadata struct {
10137
10138 ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
10139
10140
10141
10142
10143
10144 ForceSendFields []string `json:"-"`
10145
10146
10147
10148
10149 NullFields []string `json:"-"`
10150 }
10151
10152 func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
10153 type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
10154 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10155 }
10156
10157
10158
10159 type GoogleCloudDialogflowV2FaqAnswer struct {
10160
10161 Answer string `json:"answer,omitempty"`
10162
10163
10164 AnswerRecord string `json:"answerRecord,omitempty"`
10165
10166
10167
10168 Confidence float64 `json:"confidence,omitempty"`
10169
10170
10171 Metadata map[string]string `json:"metadata,omitempty"`
10172
10173 Question string `json:"question,omitempty"`
10174
10175
10176 Source string `json:"source,omitempty"`
10177
10178
10179
10180
10181
10182 ForceSendFields []string `json:"-"`
10183
10184
10185
10186
10187 NullFields []string `json:"-"`
10188 }
10189
10190 func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
10191 type NoMethod GoogleCloudDialogflowV2FaqAnswer
10192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10193 }
10194
10195 func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
10196 type NoMethod GoogleCloudDialogflowV2FaqAnswer
10197 var s1 struct {
10198 Confidence gensupport.JSONFloat64 `json:"confidence"`
10199 *NoMethod
10200 }
10201 s1.NoMethod = (*NoMethod)(s)
10202 if err := json.Unmarshal(data, &s1); err != nil {
10203 return err
10204 }
10205 s.Confidence = float64(s1.Confidence)
10206 return nil
10207 }
10208
10209
10210
10211
10212
10213
10214
10215
10216
10217
10218 type GoogleCloudDialogflowV2Fulfillment struct {
10219
10220
10221 DisplayName string `json:"displayName,omitempty"`
10222
10223 Enabled bool `json:"enabled,omitempty"`
10224
10225
10226 Features []*GoogleCloudDialogflowV2FulfillmentFeature `json:"features,omitempty"`
10227
10228 GenericWebService *GoogleCloudDialogflowV2FulfillmentGenericWebService `json:"genericWebService,omitempty"`
10229
10230
10231
10232 Name string `json:"name,omitempty"`
10233
10234
10235 googleapi.ServerResponse `json:"-"`
10236
10237
10238
10239
10240
10241 ForceSendFields []string `json:"-"`
10242
10243
10244
10245
10246 NullFields []string `json:"-"`
10247 }
10248
10249 func (s *GoogleCloudDialogflowV2Fulfillment) MarshalJSON() ([]byte, error) {
10250 type NoMethod GoogleCloudDialogflowV2Fulfillment
10251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10252 }
10253
10254
10255
10256 type GoogleCloudDialogflowV2FulfillmentFeature struct {
10257
10258
10259
10260
10261
10262 Type string `json:"type,omitempty"`
10263
10264
10265
10266
10267
10268 ForceSendFields []string `json:"-"`
10269
10270
10271
10272
10273 NullFields []string `json:"-"`
10274 }
10275
10276 func (s *GoogleCloudDialogflowV2FulfillmentFeature) MarshalJSON() ([]byte, error) {
10277 type NoMethod GoogleCloudDialogflowV2FulfillmentFeature
10278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10279 }
10280
10281
10282
10283
10284
10285
10286
10287 type GoogleCloudDialogflowV2FulfillmentGenericWebService struct {
10288
10289
10290
10291
10292 IsCloudFunction bool `json:"isCloudFunction,omitempty"`
10293
10294 Password string `json:"password,omitempty"`
10295
10296
10297 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
10298
10299
10300 Uri string `json:"uri,omitempty"`
10301
10302 Username string `json:"username,omitempty"`
10303
10304
10305
10306
10307
10308 ForceSendFields []string `json:"-"`
10309
10310
10311
10312
10313 NullFields []string `json:"-"`
10314 }
10315
10316 func (s *GoogleCloudDialogflowV2FulfillmentGenericWebService) MarshalJSON() ([]byte, error) {
10317 type NoMethod GoogleCloudDialogflowV2FulfillmentGenericWebService
10318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10319 }
10320
10321
10322
10323 type GoogleCloudDialogflowV2GcsDestination struct {
10324
10325
10326
10327
10328 Uri string `json:"uri,omitempty"`
10329
10330
10331
10332
10333
10334 ForceSendFields []string `json:"-"`
10335
10336
10337
10338
10339 NullFields []string `json:"-"`
10340 }
10341
10342 func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
10343 type NoMethod GoogleCloudDialogflowV2GcsDestination
10344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10345 }
10346
10347
10348
10349 type GoogleCloudDialogflowV2GcsSources struct {
10350
10351
10352
10353 Uris []string `json:"uris,omitempty"`
10354
10355
10356
10357
10358
10359 ForceSendFields []string `json:"-"`
10360
10361
10362
10363
10364 NullFields []string `json:"-"`
10365 }
10366
10367 func (s *GoogleCloudDialogflowV2GcsSources) MarshalJSON() ([]byte, error) {
10368 type NoMethod GoogleCloudDialogflowV2GcsSources
10369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10370 }
10371
10372
10373
10374 type GoogleCloudDialogflowV2GenerateStatelessSummaryRequest struct {
10375
10376
10377
10378 ConversationProfile *GoogleCloudDialogflowV2ConversationProfile `json:"conversationProfile,omitempty"`
10379
10380
10381
10382
10383 LatestMessage string `json:"latestMessage,omitempty"`
10384
10385
10386
10387 MaxContextSize int64 `json:"maxContextSize,omitempty"`
10388
10389 StatelessConversation *GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation `json:"statelessConversation,omitempty"`
10390
10391
10392
10393
10394
10395 ForceSendFields []string `json:"-"`
10396
10397
10398
10399
10400 NullFields []string `json:"-"`
10401 }
10402
10403 func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest) MarshalJSON() ([]byte, error) {
10404 type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
10405 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10406 }
10407
10408
10409
10410
10411 type GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation struct {
10412
10413
10414
10415
10416
10417 Messages []*GoogleCloudDialogflowV2Message `json:"messages,omitempty"`
10418
10419
10420
10421
10422
10423 ForceSendFields []string `json:"-"`
10424
10425
10426
10427
10428 NullFields []string `json:"-"`
10429 }
10430
10431 func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation) MarshalJSON() ([]byte, error) {
10432 type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryRequestMinimalConversation
10433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10434 }
10435
10436
10437
10438 type GoogleCloudDialogflowV2GenerateStatelessSummaryResponse struct {
10439
10440
10441
10442
10443 ContextSize int64 `json:"contextSize,omitempty"`
10444
10445
10446
10447 LatestMessage string `json:"latestMessage,omitempty"`
10448
10449 Summary *GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary `json:"summary,omitempty"`
10450
10451
10452 googleapi.ServerResponse `json:"-"`
10453
10454
10455
10456
10457
10458 ForceSendFields []string `json:"-"`
10459
10460
10461
10462
10463 NullFields []string `json:"-"`
10464 }
10465
10466 func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryResponse) MarshalJSON() ([]byte, error) {
10467 type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryResponse
10468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10469 }
10470
10471
10472
10473 type GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary struct {
10474
10475
10476
10477 BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
10478
10479 Text string `json:"text,omitempty"`
10480
10481
10482
10483 TextSections map[string]string `json:"textSections,omitempty"`
10484
10485
10486
10487
10488
10489 ForceSendFields []string `json:"-"`
10490
10491
10492
10493
10494 NullFields []string `json:"-"`
10495 }
10496
10497 func (s *GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary) MarshalJSON() ([]byte, error) {
10498 type NoMethod GoogleCloudDialogflowV2GenerateStatelessSummaryResponseSummary
10499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10500 }
10501
10502
10503
10504 type GoogleCloudDialogflowV2HumanAgentAssistantConfig struct {
10505
10506
10507
10508 EndUserSuggestionConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`
10509
10510
10511 HumanAgentSuggestionConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`
10512
10513 MessageAnalysisConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`
10514
10515
10516 NotificationConfig *GoogleCloudDialogflowV2NotificationConfig `json:"notificationConfig,omitempty"`
10517
10518
10519
10520
10521
10522 ForceSendFields []string `json:"-"`
10523
10524
10525
10526
10527 NullFields []string `json:"-"`
10528 }
10529
10530 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfig) MarshalJSON() ([]byte, error) {
10531 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfig
10532 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10533 }
10534
10535
10536
10537
10538 type GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig struct {
10539
10540
10541
10542 BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
10543
10544
10545 Model string `json:"model,omitempty"`
10546
10547
10548
10549
10550
10551 ForceSendFields []string `json:"-"`
10552
10553
10554
10555
10556 NullFields []string `json:"-"`
10557 }
10558
10559 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig) MarshalJSON() ([]byte, error) {
10560 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
10561 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10562 }
10563
10564
10565
10566 type GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig struct {
10567
10568
10569 RecentSentencesCount int64 `json:"recentSentencesCount,omitempty"`
10570
10571
10572
10573
10574
10575 ForceSendFields []string `json:"-"`
10576
10577
10578
10579
10580 NullFields []string `json:"-"`
10581 }
10582
10583 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig) MarshalJSON() ([]byte, error) {
10584 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig
10585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10586 }
10587
10588
10589
10590 type GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig struct {
10591
10592
10593
10594
10595
10596 EnableEntityExtraction bool `json:"enableEntityExtraction,omitempty"`
10597
10598
10599
10600
10601
10602
10603
10604
10605
10606
10607
10608
10609
10610
10611
10612 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
10613
10614
10615
10616
10617
10618 ForceSendFields []string `json:"-"`
10619
10620
10621
10622
10623 NullFields []string `json:"-"`
10624 }
10625
10626 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig) MarshalJSON() ([]byte, error) {
10627 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
10628 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10629 }
10630
10631
10632
10633 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig struct {
10634
10635
10636 FeatureConfigs []*GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`
10637
10638
10639
10640
10641
10642
10643
10644
10645
10646 GroupSuggestionResponses bool `json:"groupSuggestionResponses,omitempty"`
10647
10648
10649
10650
10651
10652 ForceSendFields []string `json:"-"`
10653
10654
10655
10656
10657 NullFields []string `json:"-"`
10658 }
10659
10660 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig) MarshalJSON() ([]byte, error) {
10661 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig
10662 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10663 }
10664
10665
10666
10667 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig struct {
10668
10669 ConversationModelConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`
10670
10671 ConversationProcessConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig `json:"conversationProcessConfig,omitempty"`
10672
10673
10674
10675 DisableAgentQueryLogging bool `json:"disableAgentQueryLogging,omitempty"`
10676
10677
10678
10679 EnableConversationAugmentedQuery bool `json:"enableConversationAugmentedQuery,omitempty"`
10680
10681
10682
10683 EnableEventBasedSuggestion bool `json:"enableEventBasedSuggestion,omitempty"`
10684
10685 QueryConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`
10686
10687 SuggestionFeature *GoogleCloudDialogflowV2SuggestionFeature `json:"suggestionFeature,omitempty"`
10688
10689
10690 SuggestionTriggerSettings *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`
10691
10692
10693
10694
10695
10696 ForceSendFields []string `json:"-"`
10697
10698
10699
10700
10701 NullFields []string `json:"-"`
10702 }
10703
10704 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig) MarshalJSON() ([]byte, error) {
10705 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig
10706 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10707 }
10708
10709
10710
10711 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig struct {
10712
10713
10714
10715
10716
10717
10718
10719
10720
10721
10722
10723
10724 ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
10725
10726
10727
10728 ContextFilterSettings *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`
10729
10730
10731 DialogflowQuerySource *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`
10732
10733
10734 DocumentQuerySource *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`
10735
10736
10737 KnowledgeBaseQuerySource *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`
10738
10739
10740 MaxResults int64 `json:"maxResults,omitempty"`
10741
10742
10743 Sections *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections `json:"sections,omitempty"`
10744
10745
10746
10747
10748
10749 ForceSendFields []string `json:"-"`
10750
10751
10752
10753
10754 NullFields []string `json:"-"`
10755 }
10756
10757 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig) MarshalJSON() ([]byte, error) {
10758 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
10759 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10760 }
10761
10762 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig) UnmarshalJSON(data []byte) error {
10763 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
10764 var s1 struct {
10765 ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
10766 *NoMethod
10767 }
10768 s1.NoMethod = (*NoMethod)(s)
10769 if err := json.Unmarshal(data, &s1); err != nil {
10770 return err
10771 }
10772 s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
10773 return nil
10774 }
10775
10776
10777
10778
10779 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {
10780
10781
10782
10783 DropHandoffMessages bool `json:"dropHandoffMessages,omitempty"`
10784
10785 DropIvrMessages bool `json:"dropIvrMessages,omitempty"`
10786
10787
10788 DropVirtualAgentMessages bool `json:"dropVirtualAgentMessages,omitempty"`
10789
10790
10791
10792
10793
10794 ForceSendFields []string `json:"-"`
10795
10796
10797
10798
10799 NullFields []string `json:"-"`
10800 }
10801
10802 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings) MarshalJSON() ([]byte, error) {
10803 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
10804 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10805 }
10806
10807
10808
10809
10810 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {
10811
10812
10813
10814 Agent string `json:"agent,omitempty"`
10815
10816
10817 HumanAgentSideConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig `json:"humanAgentSideConfig,omitempty"`
10818
10819
10820
10821
10822
10823 ForceSendFields []string `json:"-"`
10824
10825
10826
10827
10828 NullFields []string `json:"-"`
10829 }
10830
10831 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource) MarshalJSON() ([]byte, error) {
10832 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
10833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10834 }
10835
10836
10837
10838
10839 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig struct {
10840
10841
10842
10843 Agent string `json:"agent,omitempty"`
10844
10845
10846
10847
10848
10849 ForceSendFields []string `json:"-"`
10850
10851
10852
10853
10854 NullFields []string `json:"-"`
10855 }
10856
10857 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig) MarshalJSON() ([]byte, error) {
10858 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
10859 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10860 }
10861
10862
10863
10864
10865 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {
10866
10867
10868
10869 Documents []string `json:"documents,omitempty"`
10870
10871
10872
10873
10874
10875 ForceSendFields []string `json:"-"`
10876
10877
10878
10879
10880 NullFields []string `json:"-"`
10881 }
10882
10883 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource) MarshalJSON() ([]byte, error) {
10884 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
10885 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10886 }
10887
10888
10889
10890
10891 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {
10892
10893
10894
10895 KnowledgeBases []string `json:"knowledgeBases,omitempty"`
10896
10897
10898
10899
10900
10901 ForceSendFields []string `json:"-"`
10902
10903
10904
10905
10906 NullFields []string `json:"-"`
10907 }
10908
10909 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource) MarshalJSON() ([]byte, error) {
10910 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
10911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10912 }
10913
10914
10915
10916
10917
10918 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections struct {
10919
10920
10921
10922
10923
10924
10925
10926
10927
10928
10929
10930
10931
10932
10933
10934
10935
10936
10937
10938
10939
10940
10941
10942 SectionTypes []string `json:"sectionTypes,omitempty"`
10943
10944
10945
10946
10947
10948 ForceSendFields []string `json:"-"`
10949
10950
10951
10952
10953 NullFields []string `json:"-"`
10954 }
10955
10956 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections) MarshalJSON() ([]byte, error) {
10957 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigSections
10958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10959 }
10960
10961
10962
10963 type GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings struct {
10964
10965 NoSmalltalk bool `json:"noSmalltalk,omitempty"`
10966
10967
10968 OnlyEndUser bool `json:"onlyEndUser,omitempty"`
10969
10970
10971
10972
10973
10974 ForceSendFields []string `json:"-"`
10975
10976
10977
10978
10979 NullFields []string `json:"-"`
10980 }
10981
10982 func (s *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings) MarshalJSON() ([]byte, error) {
10983 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings
10984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10985 }
10986
10987
10988
10989
10990 type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
10991
10992
10993 Conversation string `json:"conversation,omitempty"`
10994
10995
10996
10997 Participant string `json:"participant,omitempty"`
10998
10999
11000 SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
11001
11002
11003
11004
11005
11006 ForceSendFields []string `json:"-"`
11007
11008
11009
11010
11011 NullFields []string `json:"-"`
11012 }
11013
11014 func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
11015 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
11016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11017 }
11018
11019
11020
11021
11022
11023 type GoogleCloudDialogflowV2HumanAgentHandoffConfig struct {
11024
11025 LivePersonConfig *GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`
11026
11027 SalesforceLiveAgentConfig *GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`
11028
11029
11030
11031
11032
11033 ForceSendFields []string `json:"-"`
11034
11035
11036
11037
11038 NullFields []string `json:"-"`
11039 }
11040
11041 func (s *GoogleCloudDialogflowV2HumanAgentHandoffConfig) MarshalJSON() ([]byte, error) {
11042 type NoMethod GoogleCloudDialogflowV2HumanAgentHandoffConfig
11043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11044 }
11045
11046
11047
11048 type GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig struct {
11049
11050
11051 AccountNumber string `json:"accountNumber,omitempty"`
11052
11053
11054
11055
11056
11057 ForceSendFields []string `json:"-"`
11058
11059
11060
11061
11062 NullFields []string `json:"-"`
11063 }
11064
11065 func (s *GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig) MarshalJSON() ([]byte, error) {
11066 type NoMethod GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig
11067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11068 }
11069
11070
11071
11072 type GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {
11073
11074 ButtonId string `json:"buttonId,omitempty"`
11075
11076 DeploymentId string `json:"deploymentId,omitempty"`
11077
11078
11079
11080
11081 EndpointDomain string `json:"endpointDomain,omitempty"`
11082
11083 OrganizationId string `json:"organizationId,omitempty"`
11084
11085
11086
11087
11088
11089 ForceSendFields []string `json:"-"`
11090
11091
11092
11093
11094 NullFields []string `json:"-"`
11095 }
11096
11097 func (s *GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig) MarshalJSON() ([]byte, error) {
11098 type NoMethod GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig
11099 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11100 }
11101
11102
11103
11104 type GoogleCloudDialogflowV2ImportAgentRequest struct {
11105
11106 AgentContent string `json:"agentContent,omitempty"`
11107
11108
11109
11110
11111
11112
11113 AgentUri string `json:"agentUri,omitempty"`
11114
11115
11116
11117
11118
11119 ForceSendFields []string `json:"-"`
11120
11121
11122
11123
11124 NullFields []string `json:"-"`
11125 }
11126
11127 func (s *GoogleCloudDialogflowV2ImportAgentRequest) MarshalJSON() ([]byte, error) {
11128 type NoMethod GoogleCloudDialogflowV2ImportAgentRequest
11129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11130 }
11131
11132
11133
11134 type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
11135
11136
11137 ConversationDataset string `json:"conversationDataset,omitempty"`
11138
11139
11140 CreateTime string `json:"createTime,omitempty"`
11141
11142
11143 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
11144
11145
11146
11147
11148
11149 ForceSendFields []string `json:"-"`
11150
11151
11152
11153
11154 NullFields []string `json:"-"`
11155 }
11156
11157 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
11158 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
11159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11160 }
11161
11162
11163
11164 type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
11165
11166
11167 ConversationDataset string `json:"conversationDataset,omitempty"`
11168
11169 ImportCount int64 `json:"importCount,omitempty"`
11170
11171
11172
11173
11174
11175 ForceSendFields []string `json:"-"`
11176
11177
11178
11179
11180 NullFields []string `json:"-"`
11181 }
11182
11183 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
11184 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
11185 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11186 }
11187
11188
11189
11190 type GoogleCloudDialogflowV2ImportConversationDataRequest struct {
11191
11192 InputConfig *GoogleCloudDialogflowV2InputConfig `json:"inputConfig,omitempty"`
11193
11194
11195
11196
11197
11198 ForceSendFields []string `json:"-"`
11199
11200
11201
11202
11203 NullFields []string `json:"-"`
11204 }
11205
11206 func (s *GoogleCloudDialogflowV2ImportConversationDataRequest) MarshalJSON() ([]byte, error) {
11207 type NoMethod GoogleCloudDialogflowV2ImportConversationDataRequest
11208 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11209 }
11210
11211
11212
11213 type GoogleCloudDialogflowV2ImportDocumentTemplate struct {
11214
11215
11216
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229 KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
11230
11231
11232
11233
11234 Metadata map[string]string `json:"metadata,omitempty"`
11235
11236 MimeType string `json:"mimeType,omitempty"`
11237
11238
11239
11240
11241
11242 ForceSendFields []string `json:"-"`
11243
11244
11245
11246
11247 NullFields []string `json:"-"`
11248 }
11249
11250 func (s *GoogleCloudDialogflowV2ImportDocumentTemplate) MarshalJSON() ([]byte, error) {
11251 type NoMethod GoogleCloudDialogflowV2ImportDocumentTemplate
11252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11253 }
11254
11255
11256
11257 type GoogleCloudDialogflowV2ImportDocumentsRequest struct {
11258
11259
11260 DocumentTemplate *GoogleCloudDialogflowV2ImportDocumentTemplate `json:"documentTemplate,omitempty"`
11261
11262
11263
11264 GcsSource *GoogleCloudDialogflowV2GcsSources `json:"gcsSource,omitempty"`
11265
11266
11267 ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
11268
11269
11270
11271
11272
11273 ForceSendFields []string `json:"-"`
11274
11275
11276
11277
11278 NullFields []string `json:"-"`
11279 }
11280
11281 func (s *GoogleCloudDialogflowV2ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
11282 type NoMethod GoogleCloudDialogflowV2ImportDocumentsRequest
11283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11284 }
11285
11286
11287
11288 type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
11289
11290 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
11291
11292
11293
11294
11295
11296 ForceSendFields []string `json:"-"`
11297
11298
11299
11300
11301 NullFields []string `json:"-"`
11302 }
11303
11304 func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
11305 type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
11306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11307 }
11308
11309
11310
11311 type GoogleCloudDialogflowV2InputAudioConfig struct {
11312
11313
11314
11315
11316
11317
11318
11319
11320
11321
11322
11323
11324
11325
11326
11327
11328
11329
11330
11331
11332
11333
11334
11335
11336
11337
11338
11339
11340
11341
11342
11343
11344
11345 AudioEncoding string `json:"audioEncoding,omitempty"`
11346
11347
11348
11349 DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"`
11350
11351
11352 EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"`
11353
11354
11355
11356
11357 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
11358
11359
11360
11361
11362
11363 LanguageCode string `json:"languageCode,omitempty"`
11364
11365
11366
11367 Model string `json:"model,omitempty"`
11368
11369
11370
11371
11372
11373
11374
11375
11376
11377
11378
11379
11380
11381
11382
11383
11384
11385
11386
11387
11388
11389 ModelVariant string `json:"modelVariant,omitempty"`
11390
11391
11392
11393
11394
11395 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
11396
11397
11398
11399
11400
11401
11402
11403 PhraseHints []string `json:"phraseHints,omitempty"`
11404
11405
11406
11407 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
11408
11409
11410
11411
11412
11413
11414
11415
11416 SingleUtterance bool `json:"singleUtterance,omitempty"`
11417
11418
11419
11420
11421 SpeechContexts []*GoogleCloudDialogflowV2SpeechContext `json:"speechContexts,omitempty"`
11422
11423
11424
11425
11426
11427 ForceSendFields []string `json:"-"`
11428
11429
11430
11431
11432 NullFields []string `json:"-"`
11433 }
11434
11435 func (s *GoogleCloudDialogflowV2InputAudioConfig) MarshalJSON() ([]byte, error) {
11436 type NoMethod GoogleCloudDialogflowV2InputAudioConfig
11437 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11438 }
11439
11440
11441
11442 type GoogleCloudDialogflowV2InputConfig struct {
11443
11444
11445
11446 GcsSource *GoogleCloudDialogflowV2GcsSources `json:"gcsSource,omitempty"`
11447
11448
11449
11450
11451
11452 ForceSendFields []string `json:"-"`
11453
11454
11455
11456
11457 NullFields []string `json:"-"`
11458 }
11459
11460 func (s *GoogleCloudDialogflowV2InputConfig) MarshalJSON() ([]byte, error) {
11461 type NoMethod GoogleCloudDialogflowV2InputConfig
11462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11463 }
11464
11465
11466
11467 type GoogleCloudDialogflowV2InputDataset struct {
11468
11469
11470 Dataset string `json:"dataset,omitempty"`
11471
11472
11473
11474
11475
11476 ForceSendFields []string `json:"-"`
11477
11478
11479
11480
11481 NullFields []string `json:"-"`
11482 }
11483
11484 func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
11485 type NoMethod GoogleCloudDialogflowV2InputDataset
11486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11487 }
11488
11489
11490
11491
11492
11493
11494
11495
11496
11497 type GoogleCloudDialogflowV2Intent struct {
11498
11499
11500 Action string `json:"action,omitempty"`
11501
11502
11503
11504
11505
11506
11507
11508
11509
11510
11511
11512
11513
11514
11515
11516
11517
11518 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
11519
11520 DisplayName string `json:"displayName,omitempty"`
11521
11522
11523
11524 EndInteraction bool `json:"endInteraction,omitempty"`
11525
11526
11527
11528
11529 Events []string `json:"events,omitempty"`
11530
11531
11532
11533 FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
11534
11535
11536 InputContextNames []string `json:"inputContextNames,omitempty"`
11537
11538 IsFallback bool `json:"isFallback,omitempty"`
11539
11540
11541
11542
11543 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
11544
11545
11546 Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
11547
11548
11549
11550
11551 MlDisabled bool `json:"mlDisabled,omitempty"`
11552
11553
11554
11555 Name string `json:"name,omitempty"`
11556
11557
11558
11559
11560
11561 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
11562
11563
11564 Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
11565
11566
11567
11568
11569
11570 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
11571
11572
11573
11574
11575
11576 Priority int64 `json:"priority,omitempty"`
11577
11578
11579 ResetContexts bool `json:"resetContexts,omitempty"`
11580
11581
11582
11583
11584 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
11585
11586
11587 TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
11588
11589
11590
11591
11592
11593
11594
11595
11596
11597
11598
11599 WebhookState string `json:"webhookState,omitempty"`
11600
11601
11602 googleapi.ServerResponse `json:"-"`
11603
11604
11605
11606
11607
11608 ForceSendFields []string `json:"-"`
11609
11610
11611
11612
11613 NullFields []string `json:"-"`
11614 }
11615
11616 func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
11617 type NoMethod GoogleCloudDialogflowV2Intent
11618 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11619 }
11620
11621
11622
11623 type GoogleCloudDialogflowV2IntentBatch struct {
11624
11625 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
11626
11627
11628
11629
11630
11631 ForceSendFields []string `json:"-"`
11632
11633
11634
11635
11636 NullFields []string `json:"-"`
11637 }
11638
11639 func (s *GoogleCloudDialogflowV2IntentBatch) MarshalJSON() ([]byte, error) {
11640 type NoMethod GoogleCloudDialogflowV2IntentBatch
11641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11642 }
11643
11644
11645
11646 type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
11647
11648
11649 FollowupIntentName string `json:"followupIntentName,omitempty"`
11650
11651
11652 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
11653
11654
11655
11656
11657
11658 ForceSendFields []string `json:"-"`
11659
11660
11661
11662
11663 NullFields []string `json:"-"`
11664 }
11665
11666 func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
11667 type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
11668 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11669 }
11670
11671
11672
11673
11674
11675 type GoogleCloudDialogflowV2IntentMessage struct {
11676
11677 BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
11678
11679 BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
11680
11681 Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
11682
11683 CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
11684
11685 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
11686
11687 LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
11688
11689 ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
11690
11691 MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
11692
11693 Payload googleapi.RawMessage `json:"payload,omitempty"`
11694
11695
11696
11697
11698
11699
11700
11701
11702
11703
11704
11705
11706
11707
11708
11709 Platform string `json:"platform,omitempty"`
11710
11711 QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
11712
11713 SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
11714
11715 Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
11716
11717 TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
11718
11719 Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
11720
11721
11722
11723
11724
11725 ForceSendFields []string `json:"-"`
11726
11727
11728
11729
11730 NullFields []string `json:"-"`
11731 }
11732
11733 func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
11734 type NoMethod GoogleCloudDialogflowV2IntentMessage
11735 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11736 }
11737
11738
11739
11740 type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
11741
11742 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
11743
11744 FormattedText string `json:"formattedText,omitempty"`
11745
11746 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
11747
11748 Subtitle string `json:"subtitle,omitempty"`
11749
11750 Title string `json:"title,omitempty"`
11751
11752
11753
11754
11755
11756 ForceSendFields []string `json:"-"`
11757
11758
11759
11760
11761 NullFields []string `json:"-"`
11762 }
11763
11764 func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
11765 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
11766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11767 }
11768
11769
11770
11771 type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
11772
11773 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
11774
11775 Title string `json:"title,omitempty"`
11776
11777
11778
11779
11780
11781 ForceSendFields []string `json:"-"`
11782
11783
11784
11785
11786 NullFields []string `json:"-"`
11787 }
11788
11789 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
11790 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
11791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11792 }
11793
11794
11795
11796 type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
11797
11798 Uri string `json:"uri,omitempty"`
11799
11800
11801
11802
11803
11804 ForceSendFields []string `json:"-"`
11805
11806
11807
11808
11809 NullFields []string `json:"-"`
11810 }
11811
11812 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
11813 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
11814 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11815 }
11816
11817
11818
11819
11820 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
11840
11841
11842 Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
11843
11844
11845
11846
11847
11848 ForceSendFields []string `json:"-"`
11849
11850
11851
11852
11853 NullFields []string `json:"-"`
11854 }
11855
11856 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
11857 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
11858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11859 }
11860
11861
11862
11863
11864 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
11865
11866
11867 Description string `json:"description,omitempty"`
11868
11869
11870 Footer string `json:"footer,omitempty"`
11871
11872 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
11873
11874 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
11875
11876 Title string `json:"title,omitempty"`
11877
11878
11879
11880
11881
11882 ForceSendFields []string `json:"-"`
11883
11884
11885
11886
11887 NullFields []string `json:"-"`
11888 }
11889
11890 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
11891 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
11892 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11893 }
11894
11895
11896
11897 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
11898
11899 Url string `json:"url,omitempty"`
11900
11901
11902
11903
11904
11905
11906
11907
11908 UrlTypeHint string `json:"urlTypeHint,omitempty"`
11909
11910
11911
11912
11913
11914 ForceSendFields []string `json:"-"`
11915
11916
11917
11918
11919 NullFields []string `json:"-"`
11920 }
11921
11922 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
11923 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
11924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11925 }
11926
11927
11928 type GoogleCloudDialogflowV2IntentMessageCard struct {
11929
11930 Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
11931
11932 ImageUri string `json:"imageUri,omitempty"`
11933
11934 Subtitle string `json:"subtitle,omitempty"`
11935
11936 Title string `json:"title,omitempty"`
11937
11938
11939
11940
11941
11942 ForceSendFields []string `json:"-"`
11943
11944
11945
11946
11947 NullFields []string `json:"-"`
11948 }
11949
11950 func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
11951 type NoMethod GoogleCloudDialogflowV2IntentMessageCard
11952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11953 }
11954
11955
11956
11957 type GoogleCloudDialogflowV2IntentMessageCardButton struct {
11958
11959
11960 Postback string `json:"postback,omitempty"`
11961
11962 Text string `json:"text,omitempty"`
11963
11964
11965
11966
11967
11968 ForceSendFields []string `json:"-"`
11969
11970
11971
11972
11973 NullFields []string `json:"-"`
11974 }
11975
11976 func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
11977 type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
11978 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11979 }
11980
11981
11982
11983 type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
11984
11985 Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
11986
11987
11988
11989
11990
11991 ForceSendFields []string `json:"-"`
11992
11993
11994
11995
11996 NullFields []string `json:"-"`
11997 }
11998
11999 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
12000 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
12001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12002 }
12003
12004
12005
12006 type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
12007
12008 Description string `json:"description,omitempty"`
12009
12010 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
12011
12012 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
12013
12014 Title string `json:"title,omitempty"`
12015
12016
12017
12018
12019
12020 ForceSendFields []string `json:"-"`
12021
12022
12023
12024
12025 NullFields []string `json:"-"`
12026 }
12027
12028 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
12029 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
12030 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12031 }
12032
12033
12034
12035 type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
12036
12037 Header string `json:"header,omitempty"`
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
12048
12049
12050
12051
12052
12053 ForceSendFields []string `json:"-"`
12054
12055
12056
12057
12058 NullFields []string `json:"-"`
12059 }
12060
12061 func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
12062 type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
12063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12064 }
12065
12066
12067 type GoogleCloudDialogflowV2IntentMessageImage struct {
12068
12069
12070 AccessibilityText string `json:"accessibilityText,omitempty"`
12071
12072 ImageUri string `json:"imageUri,omitempty"`
12073
12074
12075
12076
12077
12078 ForceSendFields []string `json:"-"`
12079
12080
12081
12082
12083 NullFields []string `json:"-"`
12084 }
12085
12086 func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
12087 type NoMethod GoogleCloudDialogflowV2IntentMessageImage
12088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12089 }
12090
12091
12092
12093
12094 type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
12095
12096
12097 DestinationName string `json:"destinationName,omitempty"`
12098
12099
12100 Uri string `json:"uri,omitempty"`
12101
12102
12103
12104
12105
12106 ForceSendFields []string `json:"-"`
12107
12108
12109
12110
12111 NullFields []string `json:"-"`
12112 }
12113
12114 func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
12115 type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
12116 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12117 }
12118
12119
12120
12121 type GoogleCloudDialogflowV2IntentMessageListSelect struct {
12122
12123 Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
12124
12125 Subtitle string `json:"subtitle,omitempty"`
12126
12127 Title string `json:"title,omitempty"`
12128
12129
12130
12131
12132
12133 ForceSendFields []string `json:"-"`
12134
12135
12136
12137
12138 NullFields []string `json:"-"`
12139 }
12140
12141 func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
12142 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
12143 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12144 }
12145
12146
12147 type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
12148
12149 Description string `json:"description,omitempty"`
12150
12151 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
12152
12153 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
12154
12155 Title string `json:"title,omitempty"`
12156
12157
12158
12159
12160
12161 ForceSendFields []string `json:"-"`
12162
12163
12164
12165
12166 NullFields []string `json:"-"`
12167 }
12168
12169 func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
12170 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
12171 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12172 }
12173
12174
12175
12176 type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
12177
12178 MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
12179
12180
12181
12182
12183
12184 MediaType string `json:"mediaType,omitempty"`
12185
12186
12187
12188
12189
12190 ForceSendFields []string `json:"-"`
12191
12192
12193
12194
12195 NullFields []string `json:"-"`
12196 }
12197
12198 func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
12199 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
12200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12201 }
12202
12203
12204
12205 type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
12206
12207 ContentUrl string `json:"contentUrl,omitempty"`
12208
12209 Description string `json:"description,omitempty"`
12210
12211 Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
12212
12213 LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
12214
12215 Name string `json:"name,omitempty"`
12216
12217
12218
12219
12220
12221 ForceSendFields []string `json:"-"`
12222
12223
12224
12225
12226 NullFields []string `json:"-"`
12227 }
12228
12229 func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
12230 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
12231 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12232 }
12233
12234
12235
12236 type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
12237
12238 QuickReplies []string `json:"quickReplies,omitempty"`
12239
12240 Title string `json:"title,omitempty"`
12241
12242
12243
12244
12245
12246 ForceSendFields []string `json:"-"`
12247
12248
12249
12250
12251 NullFields []string `json:"-"`
12252 }
12253
12254 func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
12255 type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
12256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12257 }
12258
12259
12260
12261 type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
12262
12263
12264 Key string `json:"key,omitempty"`
12265
12266
12267 Synonyms []string `json:"synonyms,omitempty"`
12268
12269
12270
12271
12272
12273 ForceSendFields []string `json:"-"`
12274
12275
12276
12277
12278 NullFields []string `json:"-"`
12279 }
12280
12281 func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
12282 type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
12283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12284 }
12285
12286
12287
12288 type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
12289
12290 DisplayText string `json:"displayText,omitempty"`
12291
12292
12293
12294 Ssml string `json:"ssml,omitempty"`
12295
12296
12297 TextToSpeech string `json:"textToSpeech,omitempty"`
12298
12299
12300
12301
12302
12303 ForceSendFields []string `json:"-"`
12304
12305
12306
12307
12308 NullFields []string `json:"-"`
12309 }
12310
12311 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
12312 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
12313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12314 }
12315
12316
12317
12318
12319
12320
12321 type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
12322
12323 SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
12324
12325
12326
12327
12328
12329 ForceSendFields []string `json:"-"`
12330
12331
12332
12333
12334 NullFields []string `json:"-"`
12335 }
12336
12337 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
12338 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
12339 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12340 }
12341
12342
12343
12344 type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
12345
12346 Title string `json:"title,omitempty"`
12347
12348
12349
12350
12351
12352 ForceSendFields []string `json:"-"`
12353
12354
12355
12356
12357 NullFields []string `json:"-"`
12358 }
12359
12360 func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
12361 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
12362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12363 }
12364
12365
12366
12367 type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
12368
12369 Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
12370
12371
12372
12373
12374
12375 ForceSendFields []string `json:"-"`
12376
12377
12378
12379
12380 NullFields []string `json:"-"`
12381 }
12382
12383 func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
12384 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
12385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12386 }
12387
12388
12389
12390 type GoogleCloudDialogflowV2IntentMessageTableCard struct {
12391
12392 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
12393
12394
12395 ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
12396
12397 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
12398
12399 Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
12400
12401 Subtitle string `json:"subtitle,omitempty"`
12402
12403 Title string `json:"title,omitempty"`
12404
12405
12406
12407
12408
12409 ForceSendFields []string `json:"-"`
12410
12411
12412
12413
12414 NullFields []string `json:"-"`
12415 }
12416
12417 func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
12418 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
12419 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12420 }
12421
12422
12423 type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
12424
12425 Text string `json:"text,omitempty"`
12426
12427
12428
12429
12430
12431 ForceSendFields []string `json:"-"`
12432
12433
12434
12435
12436 NullFields []string `json:"-"`
12437 }
12438
12439 func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
12440 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
12441 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12442 }
12443
12444
12445 type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
12446
12447 Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
12448
12449 DividerAfter bool `json:"dividerAfter,omitempty"`
12450
12451
12452
12453
12454
12455 ForceSendFields []string `json:"-"`
12456
12457
12458
12459
12460 NullFields []string `json:"-"`
12461 }
12462
12463 func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
12464 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
12465 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12466 }
12467
12468
12469 type GoogleCloudDialogflowV2IntentMessageText struct {
12470
12471 Text []string `json:"text,omitempty"`
12472
12473
12474
12475
12476
12477 ForceSendFields []string `json:"-"`
12478
12479
12480
12481
12482 NullFields []string `json:"-"`
12483 }
12484
12485 func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
12486 type NoMethod GoogleCloudDialogflowV2IntentMessageText
12487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12488 }
12489
12490
12491 type GoogleCloudDialogflowV2IntentParameter struct {
12492
12493
12494
12495 DefaultValue string `json:"defaultValue,omitempty"`
12496
12497 DisplayName string `json:"displayName,omitempty"`
12498
12499
12500
12501 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
12502
12503
12504 IsList bool `json:"isList,omitempty"`
12505
12506
12507
12508 Mandatory bool `json:"mandatory,omitempty"`
12509
12510 Name string `json:"name,omitempty"`
12511
12512
12513 Prompts []string `json:"prompts,omitempty"`
12514
12515
12516
12517
12518 Value string `json:"value,omitempty"`
12519
12520
12521
12522
12523
12524 ForceSendFields []string `json:"-"`
12525
12526
12527
12528
12529 NullFields []string `json:"-"`
12530 }
12531
12532 func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
12533 type NoMethod GoogleCloudDialogflowV2IntentParameter
12534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12535 }
12536
12537
12538 type GoogleCloudDialogflowV2IntentSuggestion struct {
12539
12540
12541
12542 Description string `json:"description,omitempty"`
12543
12544 DisplayName string `json:"displayName,omitempty"`
12545
12546
12547 IntentV2 string `json:"intentV2,omitempty"`
12548
12549
12550
12551
12552
12553 ForceSendFields []string `json:"-"`
12554
12555
12556
12557
12558 NullFields []string `json:"-"`
12559 }
12560
12561 func (s *GoogleCloudDialogflowV2IntentSuggestion) MarshalJSON() ([]byte, error) {
12562 type NoMethod GoogleCloudDialogflowV2IntentSuggestion
12563 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12564 }
12565
12566
12567
12568 type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
12569
12570 Name string `json:"name,omitempty"`
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582
12583 Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
12584
12585
12586
12587 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
12588
12589
12590
12591
12592
12593
12594
12595
12596
12597
12598
12599 Type string `json:"type,omitempty"`
12600
12601
12602
12603
12604
12605 ForceSendFields []string `json:"-"`
12606
12607
12608
12609
12610 NullFields []string `json:"-"`
12611 }
12612
12613 func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
12614 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
12615 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12616 }
12617
12618
12619
12620 type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
12621
12622
12623
12624 Alias string `json:"alias,omitempty"`
12625
12626
12627 EntityType string `json:"entityType,omitempty"`
12628
12629 Text string `json:"text,omitempty"`
12630
12631
12632
12633
12634 UserDefined bool `json:"userDefined,omitempty"`
12635
12636
12637
12638
12639
12640 ForceSendFields []string `json:"-"`
12641
12642
12643
12644
12645 NullFields []string `json:"-"`
12646 }
12647
12648 func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
12649 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
12650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12651 }
12652
12653
12654
12655
12656
12657
12658
12659
12660
12661
12662 type GoogleCloudDialogflowV2KnowledgeBase struct {
12663
12664
12665 DisplayName string `json:"displayName,omitempty"`
12666
12667
12668
12669 LanguageCode string `json:"languageCode,omitempty"`
12670
12671
12672 Name string `json:"name,omitempty"`
12673
12674
12675 googleapi.ServerResponse `json:"-"`
12676
12677
12678
12679
12680
12681 ForceSendFields []string `json:"-"`
12682
12683
12684
12685
12686 NullFields []string `json:"-"`
12687 }
12688
12689 func (s *GoogleCloudDialogflowV2KnowledgeBase) MarshalJSON() ([]byte, error) {
12690 type NoMethod GoogleCloudDialogflowV2KnowledgeBase
12691 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12692 }
12693
12694
12695
12696 type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
12697
12698
12699 ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
12700
12701
12702 KnowledgeBase string `json:"knowledgeBase,omitempty"`
12703
12704
12705
12706
12707
12708
12709
12710 State string `json:"state,omitempty"`
12711
12712
12713
12714
12715
12716 ForceSendFields []string `json:"-"`
12717
12718
12719
12720
12721 NullFields []string `json:"-"`
12722 }
12723
12724 func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
12725 type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
12726 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12727 }
12728
12729
12730
12731 type GoogleCloudDialogflowV2ListAnswerRecordsResponse struct {
12732
12733 AnswerRecords []*GoogleCloudDialogflowV2AnswerRecord `json:"answerRecords,omitempty"`
12734
12735
12736
12737
12738 NextPageToken string `json:"nextPageToken,omitempty"`
12739
12740
12741 googleapi.ServerResponse `json:"-"`
12742
12743
12744
12745
12746
12747 ForceSendFields []string `json:"-"`
12748
12749
12750
12751
12752 NullFields []string `json:"-"`
12753 }
12754
12755 func (s *GoogleCloudDialogflowV2ListAnswerRecordsResponse) MarshalJSON() ([]byte, error) {
12756 type NoMethod GoogleCloudDialogflowV2ListAnswerRecordsResponse
12757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12758 }
12759
12760
12761
12762 type GoogleCloudDialogflowV2ListContextsResponse struct {
12763
12764
12765 Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"`
12766
12767
12768 NextPageToken string `json:"nextPageToken,omitempty"`
12769
12770
12771 googleapi.ServerResponse `json:"-"`
12772
12773
12774
12775
12776
12777 ForceSendFields []string `json:"-"`
12778
12779
12780
12781
12782 NullFields []string `json:"-"`
12783 }
12784
12785 func (s *GoogleCloudDialogflowV2ListContextsResponse) MarshalJSON() ([]byte, error) {
12786 type NoMethod GoogleCloudDialogflowV2ListContextsResponse
12787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12788 }
12789
12790
12791
12792 type GoogleCloudDialogflowV2ListConversationDatasetsResponse struct {
12793
12794 ConversationDatasets []*GoogleCloudDialogflowV2ConversationDataset `json:"conversationDatasets,omitempty"`
12795
12796
12797 NextPageToken string `json:"nextPageToken,omitempty"`
12798
12799
12800 googleapi.ServerResponse `json:"-"`
12801
12802
12803
12804
12805
12806 ForceSendFields []string `json:"-"`
12807
12808
12809
12810
12811 NullFields []string `json:"-"`
12812 }
12813
12814 func (s *GoogleCloudDialogflowV2ListConversationDatasetsResponse) MarshalJSON() ([]byte, error) {
12815 type NoMethod GoogleCloudDialogflowV2ListConversationDatasetsResponse
12816 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12817 }
12818
12819
12820
12821 type GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse struct {
12822
12823 ConversationModelEvaluations []*GoogleCloudDialogflowV2ConversationModelEvaluation `json:"conversationModelEvaluations,omitempty"`
12824
12825
12826 NextPageToken string `json:"nextPageToken,omitempty"`
12827
12828
12829 googleapi.ServerResponse `json:"-"`
12830
12831
12832
12833
12834
12835 ForceSendFields []string `json:"-"`
12836
12837
12838
12839
12840 NullFields []string `json:"-"`
12841 }
12842
12843 func (s *GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse) MarshalJSON() ([]byte, error) {
12844 type NoMethod GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse
12845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12846 }
12847
12848
12849
12850 type GoogleCloudDialogflowV2ListConversationModelsResponse struct {
12851
12852 ConversationModels []*GoogleCloudDialogflowV2ConversationModel `json:"conversationModels,omitempty"`
12853
12854
12855 NextPageToken string `json:"nextPageToken,omitempty"`
12856
12857
12858 googleapi.ServerResponse `json:"-"`
12859
12860
12861
12862
12863
12864 ForceSendFields []string `json:"-"`
12865
12866
12867
12868
12869 NullFields []string `json:"-"`
12870 }
12871
12872 func (s *GoogleCloudDialogflowV2ListConversationModelsResponse) MarshalJSON() ([]byte, error) {
12873 type NoMethod GoogleCloudDialogflowV2ListConversationModelsResponse
12874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12875 }
12876
12877
12878
12879 type GoogleCloudDialogflowV2ListConversationProfilesResponse struct {
12880
12881
12882
12883 ConversationProfiles []*GoogleCloudDialogflowV2ConversationProfile `json:"conversationProfiles,omitempty"`
12884
12885
12886 NextPageToken string `json:"nextPageToken,omitempty"`
12887
12888
12889 googleapi.ServerResponse `json:"-"`
12890
12891
12892
12893
12894
12895 ForceSendFields []string `json:"-"`
12896
12897
12898
12899
12900 NullFields []string `json:"-"`
12901 }
12902
12903 func (s *GoogleCloudDialogflowV2ListConversationProfilesResponse) MarshalJSON() ([]byte, error) {
12904 type NoMethod GoogleCloudDialogflowV2ListConversationProfilesResponse
12905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12906 }
12907
12908
12909
12910 type GoogleCloudDialogflowV2ListConversationsResponse struct {
12911
12912
12913 Conversations []*GoogleCloudDialogflowV2Conversation `json:"conversations,omitempty"`
12914
12915
12916 NextPageToken string `json:"nextPageToken,omitempty"`
12917
12918
12919 googleapi.ServerResponse `json:"-"`
12920
12921
12922
12923
12924
12925 ForceSendFields []string `json:"-"`
12926
12927
12928
12929
12930 NullFields []string `json:"-"`
12931 }
12932
12933 func (s *GoogleCloudDialogflowV2ListConversationsResponse) MarshalJSON() ([]byte, error) {
12934 type NoMethod GoogleCloudDialogflowV2ListConversationsResponse
12935 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12936 }
12937
12938
12939
12940 type GoogleCloudDialogflowV2ListDocumentsResponse struct {
12941
12942 Documents []*GoogleCloudDialogflowV2Document `json:"documents,omitempty"`
12943
12944
12945 NextPageToken string `json:"nextPageToken,omitempty"`
12946
12947
12948 googleapi.ServerResponse `json:"-"`
12949
12950
12951
12952
12953
12954 ForceSendFields []string `json:"-"`
12955
12956
12957
12958
12959 NullFields []string `json:"-"`
12960 }
12961
12962 func (s *GoogleCloudDialogflowV2ListDocumentsResponse) MarshalJSON() ([]byte, error) {
12963 type NoMethod GoogleCloudDialogflowV2ListDocumentsResponse
12964 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12965 }
12966
12967
12968
12969 type GoogleCloudDialogflowV2ListEntityTypesResponse struct {
12970
12971
12972 EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
12973
12974
12975 NextPageToken string `json:"nextPageToken,omitempty"`
12976
12977
12978 googleapi.ServerResponse `json:"-"`
12979
12980
12981
12982
12983
12984 ForceSendFields []string `json:"-"`
12985
12986
12987
12988
12989 NullFields []string `json:"-"`
12990 }
12991
12992 func (s *GoogleCloudDialogflowV2ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
12993 type NoMethod GoogleCloudDialogflowV2ListEntityTypesResponse
12994 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12995 }
12996
12997
12998
12999 type GoogleCloudDialogflowV2ListEnvironmentsResponse struct {
13000
13001
13002 Environments []*GoogleCloudDialogflowV2Environment `json:"environments,omitempty"`
13003
13004
13005 NextPageToken string `json:"nextPageToken,omitempty"`
13006
13007
13008 googleapi.ServerResponse `json:"-"`
13009
13010
13011
13012
13013
13014 ForceSendFields []string `json:"-"`
13015
13016
13017
13018
13019 NullFields []string `json:"-"`
13020 }
13021
13022 func (s *GoogleCloudDialogflowV2ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
13023 type NoMethod GoogleCloudDialogflowV2ListEnvironmentsResponse
13024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13025 }
13026
13027
13028
13029 type GoogleCloudDialogflowV2ListIntentsResponse struct {
13030
13031
13032 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
13033
13034
13035 NextPageToken string `json:"nextPageToken,omitempty"`
13036
13037
13038 googleapi.ServerResponse `json:"-"`
13039
13040
13041
13042
13043
13044 ForceSendFields []string `json:"-"`
13045
13046
13047
13048
13049 NullFields []string `json:"-"`
13050 }
13051
13052 func (s *GoogleCloudDialogflowV2ListIntentsResponse) MarshalJSON() ([]byte, error) {
13053 type NoMethod GoogleCloudDialogflowV2ListIntentsResponse
13054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13055 }
13056
13057
13058
13059 type GoogleCloudDialogflowV2ListKnowledgeBasesResponse struct {
13060
13061 KnowledgeBases []*GoogleCloudDialogflowV2KnowledgeBase `json:"knowledgeBases,omitempty"`
13062
13063
13064 NextPageToken string `json:"nextPageToken,omitempty"`
13065
13066
13067 googleapi.ServerResponse `json:"-"`
13068
13069
13070
13071
13072
13073 ForceSendFields []string `json:"-"`
13074
13075
13076
13077
13078 NullFields []string `json:"-"`
13079 }
13080
13081 func (s *GoogleCloudDialogflowV2ListKnowledgeBasesResponse) MarshalJSON() ([]byte, error) {
13082 type NoMethod GoogleCloudDialogflowV2ListKnowledgeBasesResponse
13083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13084 }
13085
13086
13087
13088 type GoogleCloudDialogflowV2ListMessagesResponse struct {
13089
13090
13091
13092 Messages []*GoogleCloudDialogflowV2Message `json:"messages,omitempty"`
13093
13094
13095 NextPageToken string `json:"nextPageToken,omitempty"`
13096
13097
13098 googleapi.ServerResponse `json:"-"`
13099
13100
13101
13102
13103
13104 ForceSendFields []string `json:"-"`
13105
13106
13107
13108
13109 NullFields []string `json:"-"`
13110 }
13111
13112 func (s *GoogleCloudDialogflowV2ListMessagesResponse) MarshalJSON() ([]byte, error) {
13113 type NoMethod GoogleCloudDialogflowV2ListMessagesResponse
13114 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13115 }
13116
13117
13118
13119 type GoogleCloudDialogflowV2ListParticipantsResponse struct {
13120
13121
13122 NextPageToken string `json:"nextPageToken,omitempty"`
13123
13124
13125 Participants []*GoogleCloudDialogflowV2Participant `json:"participants,omitempty"`
13126
13127
13128 googleapi.ServerResponse `json:"-"`
13129
13130
13131
13132
13133
13134 ForceSendFields []string `json:"-"`
13135
13136
13137
13138
13139 NullFields []string `json:"-"`
13140 }
13141
13142 func (s *GoogleCloudDialogflowV2ListParticipantsResponse) MarshalJSON() ([]byte, error) {
13143 type NoMethod GoogleCloudDialogflowV2ListParticipantsResponse
13144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13145 }
13146
13147
13148
13149 type GoogleCloudDialogflowV2ListSessionEntityTypesResponse struct {
13150
13151
13152 NextPageToken string `json:"nextPageToken,omitempty"`
13153
13154
13155
13156 SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
13157
13158
13159 googleapi.ServerResponse `json:"-"`
13160
13161
13162
13163
13164
13165 ForceSendFields []string `json:"-"`
13166
13167
13168
13169
13170 NullFields []string `json:"-"`
13171 }
13172
13173 func (s *GoogleCloudDialogflowV2ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
13174 type NoMethod GoogleCloudDialogflowV2ListSessionEntityTypesResponse
13175 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13176 }
13177
13178
13179
13180 type GoogleCloudDialogflowV2ListVersionsResponse struct {
13181
13182
13183 NextPageToken string `json:"nextPageToken,omitempty"`
13184
13185
13186 Versions []*GoogleCloudDialogflowV2Version `json:"versions,omitempty"`
13187
13188
13189 googleapi.ServerResponse `json:"-"`
13190
13191
13192
13193
13194
13195 ForceSendFields []string `json:"-"`
13196
13197
13198
13199
13200 NullFields []string `json:"-"`
13201 }
13202
13203 func (s *GoogleCloudDialogflowV2ListVersionsResponse) MarshalJSON() ([]byte, error) {
13204 type NoMethod GoogleCloudDialogflowV2ListVersionsResponse
13205 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13206 }
13207
13208
13209
13210 type GoogleCloudDialogflowV2LoggingConfig struct {
13211
13212
13213
13214 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
13215
13216
13217
13218
13219
13220 ForceSendFields []string `json:"-"`
13221
13222
13223
13224
13225 NullFields []string `json:"-"`
13226 }
13227
13228 func (s *GoogleCloudDialogflowV2LoggingConfig) MarshalJSON() ([]byte, error) {
13229 type NoMethod GoogleCloudDialogflowV2LoggingConfig
13230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13231 }
13232
13233
13234
13235 type GoogleCloudDialogflowV2Message struct {
13236
13237 Content string `json:"content,omitempty"`
13238
13239
13240 CreateTime string `json:"createTime,omitempty"`
13241
13242
13243
13244 LanguageCode string `json:"languageCode,omitempty"`
13245
13246 MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
13247
13248
13249 Name string `json:"name,omitempty"`
13250
13251 Participant string `json:"participant,omitempty"`
13252
13253
13254
13255
13256
13257
13258
13259
13260
13261 ParticipantRole string `json:"participantRole,omitempty"`
13262
13263 SendTime string `json:"sendTime,omitempty"`
13264
13265
13266 SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
13267
13268
13269
13270
13271
13272 ForceSendFields []string `json:"-"`
13273
13274
13275
13276
13277 NullFields []string `json:"-"`
13278 }
13279
13280 func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
13281 type NoMethod GoogleCloudDialogflowV2Message
13282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13283 }
13284
13285
13286
13287 type GoogleCloudDialogflowV2MessageAnnotation struct {
13288
13289 ContainEntities bool `json:"containEntities,omitempty"`
13290
13291
13292
13293 Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
13294
13295
13296
13297
13298
13299 ForceSendFields []string `json:"-"`
13300
13301
13302
13303
13304 NullFields []string `json:"-"`
13305 }
13306
13307 func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
13308 type NoMethod GoogleCloudDialogflowV2MessageAnnotation
13309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13310 }
13311
13312
13313 type GoogleCloudDialogflowV2NotificationConfig struct {
13314
13315
13316
13317
13318
13319
13320 MessageFormat string `json:"messageFormat,omitempty"`
13321
13322
13323
13324
13325
13326
13327
13328
13329 Topic string `json:"topic,omitempty"`
13330
13331
13332
13333
13334
13335 ForceSendFields []string `json:"-"`
13336
13337
13338
13339
13340 NullFields []string `json:"-"`
13341 }
13342
13343 func (s *GoogleCloudDialogflowV2NotificationConfig) MarshalJSON() ([]byte, error) {
13344 type NoMethod GoogleCloudDialogflowV2NotificationConfig
13345 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13346 }
13347
13348
13349
13350
13351 type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
13352
13353
13354
13355
13356
13357
13358
13359
13360 Payload googleapi.RawMessage `json:"payload,omitempty"`
13361
13362
13363 Source string `json:"source,omitempty"`
13364
13365
13366 Version string `json:"version,omitempty"`
13367
13368
13369
13370
13371
13372 ForceSendFields []string `json:"-"`
13373
13374
13375
13376
13377 NullFields []string `json:"-"`
13378 }
13379
13380 func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
13381 type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
13382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13383 }
13384
13385
13386
13387 type GoogleCloudDialogflowV2OutputAudio struct {
13388
13389 Audio string `json:"audio,omitempty"`
13390
13391 Config *GoogleCloudDialogflowV2OutputAudioConfig `json:"config,omitempty"`
13392
13393
13394
13395
13396
13397 ForceSendFields []string `json:"-"`
13398
13399
13400
13401
13402 NullFields []string `json:"-"`
13403 }
13404
13405 func (s *GoogleCloudDialogflowV2OutputAudio) MarshalJSON() ([]byte, error) {
13406 type NoMethod GoogleCloudDialogflowV2OutputAudio
13407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13408 }
13409
13410
13411
13412
13413
13414 type GoogleCloudDialogflowV2OutputAudioConfig struct {
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425
13426
13427
13428
13429
13430
13431 AudioEncoding string `json:"audioEncoding,omitempty"`
13432
13433
13434
13435
13436
13437 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
13438
13439 SynthesizeSpeechConfig *GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
13440
13441
13442
13443
13444
13445 ForceSendFields []string `json:"-"`
13446
13447
13448
13449
13450 NullFields []string `json:"-"`
13451 }
13452
13453 func (s *GoogleCloudDialogflowV2OutputAudioConfig) MarshalJSON() ([]byte, error) {
13454 type NoMethod GoogleCloudDialogflowV2OutputAudioConfig
13455 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13456 }
13457
13458
13459
13460 type GoogleCloudDialogflowV2Participant struct {
13461
13462
13463
13464
13465
13466
13467
13468
13469 DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
13470
13471
13472 Name string `json:"name,omitempty"`
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487 ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
13488
13489
13490
13491
13492
13493
13494
13495
13496
13497
13498 Role string `json:"role,omitempty"`
13499
13500
13501
13502
13503 SipRecordingMediaLabel string `json:"sipRecordingMediaLabel,omitempty"`
13504
13505
13506 googleapi.ServerResponse `json:"-"`
13507
13508
13509
13510
13511
13512 ForceSendFields []string `json:"-"`
13513
13514
13515
13516
13517 NullFields []string `json:"-"`
13518 }
13519
13520 func (s *GoogleCloudDialogflowV2Participant) MarshalJSON() ([]byte, error) {
13521 type NoMethod GoogleCloudDialogflowV2Participant
13522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13523 }
13524
13525
13526
13527
13528
13529 type GoogleCloudDialogflowV2QueryInput struct {
13530
13531
13532 AudioConfig *GoogleCloudDialogflowV2InputAudioConfig `json:"audioConfig,omitempty"`
13533
13534 Event *GoogleCloudDialogflowV2EventInput `json:"event,omitempty"`
13535
13536
13537 Text *GoogleCloudDialogflowV2TextInput `json:"text,omitempty"`
13538
13539
13540
13541
13542
13543 ForceSendFields []string `json:"-"`
13544
13545
13546
13547
13548 NullFields []string `json:"-"`
13549 }
13550
13551 func (s *GoogleCloudDialogflowV2QueryInput) MarshalJSON() ([]byte, error) {
13552 type NoMethod GoogleCloudDialogflowV2QueryInput
13553 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13554 }
13555
13556
13557
13558 type GoogleCloudDialogflowV2QueryParameters struct {
13559
13560
13561 Contexts []*GoogleCloudDialogflowV2Context `json:"contexts,omitempty"`
13562
13563 GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
13564
13565
13566
13567
13568 Payload googleapi.RawMessage `json:"payload,omitempty"`
13569
13570
13571
13572 Platform string `json:"platform,omitempty"`
13573
13574
13575 ResetContexts bool `json:"resetContexts,omitempty"`
13576
13577
13578 SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"`
13579
13580
13581
13582 SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
13583
13584
13585
13586
13587 TimeZone string `json:"timeZone,omitempty"`
13588
13589
13590
13591
13592
13593
13594
13595
13596
13597 WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
13598
13599
13600
13601
13602
13603 ForceSendFields []string `json:"-"`
13604
13605
13606
13607
13608 NullFields []string `json:"-"`
13609 }
13610
13611 func (s *GoogleCloudDialogflowV2QueryParameters) MarshalJSON() ([]byte, error) {
13612 type NoMethod GoogleCloudDialogflowV2QueryParameters
13613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13614 }
13615
13616
13617
13618 type GoogleCloudDialogflowV2QueryResult struct {
13619
13620 Action string `json:"action,omitempty"`
13621
13622
13623
13624
13625 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
13626
13627
13628
13629
13630 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
13631
13632
13633
13634
13635 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
13636
13637 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
13638
13639
13640
13641 FulfillmentText string `json:"fulfillmentText,omitempty"`
13642
13643
13644
13645 Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
13646
13647
13648
13649
13650
13651
13652
13653
13654 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
13655
13656
13657
13658
13659 LanguageCode string `json:"languageCode,omitempty"`
13660
13661
13662
13663 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
13664
13665
13666
13667
13668
13669
13670
13671
13672
13673 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
13674
13675
13676
13677
13678
13679
13680 QueryText string `json:"queryText,omitempty"`
13681
13682
13683 SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
13684
13685
13686
13687
13688
13689
13690
13691 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
13692
13693
13694 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
13695
13696
13697 WebhookSource string `json:"webhookSource,omitempty"`
13698
13699
13700
13701
13702
13703 ForceSendFields []string `json:"-"`
13704
13705
13706
13707
13708 NullFields []string `json:"-"`
13709 }
13710
13711 func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
13712 type NoMethod GoogleCloudDialogflowV2QueryResult
13713 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13714 }
13715
13716 func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
13717 type NoMethod GoogleCloudDialogflowV2QueryResult
13718 var s1 struct {
13719 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
13720 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
13721 *NoMethod
13722 }
13723 s1.NoMethod = (*NoMethod)(s)
13724 if err := json.Unmarshal(data, &s1); err != nil {
13725 return err
13726 }
13727 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
13728 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
13729 return nil
13730 }
13731
13732
13733
13734 type GoogleCloudDialogflowV2ReloadDocumentRequest struct {
13735
13736
13737
13738 ContentUri string `json:"contentUri,omitempty"`
13739
13740
13741
13742 ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
13743
13744
13745 SmartMessagingPartialUpdate bool `json:"smartMessagingPartialUpdate,omitempty"`
13746
13747
13748
13749
13750
13751 ForceSendFields []string `json:"-"`
13752
13753
13754
13755
13756 NullFields []string `json:"-"`
13757 }
13758
13759 func (s *GoogleCloudDialogflowV2ReloadDocumentRequest) MarshalJSON() ([]byte, error) {
13760 type NoMethod GoogleCloudDialogflowV2ReloadDocumentRequest
13761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13762 }
13763
13764
13765
13766 type GoogleCloudDialogflowV2RestoreAgentRequest struct {
13767
13768 AgentContent string `json:"agentContent,omitempty"`
13769
13770
13771
13772
13773
13774
13775 AgentUri string `json:"agentUri,omitempty"`
13776
13777
13778
13779
13780
13781 ForceSendFields []string `json:"-"`
13782
13783
13784
13785
13786 NullFields []string `json:"-"`
13787 }
13788
13789 func (s *GoogleCloudDialogflowV2RestoreAgentRequest) MarshalJSON() ([]byte, error) {
13790 type NoMethod GoogleCloudDialogflowV2RestoreAgentRequest
13791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13792 }
13793
13794
13795
13796 type GoogleCloudDialogflowV2SearchAgentsResponse struct {
13797
13798
13799 Agents []*GoogleCloudDialogflowV2Agent `json:"agents,omitempty"`
13800
13801
13802 NextPageToken string `json:"nextPageToken,omitempty"`
13803
13804
13805 googleapi.ServerResponse `json:"-"`
13806
13807
13808
13809
13810
13811 ForceSendFields []string `json:"-"`
13812
13813
13814
13815
13816 NullFields []string `json:"-"`
13817 }
13818
13819 func (s *GoogleCloudDialogflowV2SearchAgentsResponse) MarshalJSON() ([]byte, error) {
13820 type NoMethod GoogleCloudDialogflowV2SearchAgentsResponse
13821 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13822 }
13823
13824
13825
13826 type GoogleCloudDialogflowV2SearchKnowledgeAnswer struct {
13827
13828
13829 Answer string `json:"answer,omitempty"`
13830
13831
13832 AnswerRecord string `json:"answerRecord,omitempty"`
13833
13834 AnswerSources []*GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`
13835
13836
13837
13838
13839
13840
13841
13842 AnswerType string `json:"answerType,omitempty"`
13843
13844
13845
13846
13847
13848 ForceSendFields []string `json:"-"`
13849
13850
13851
13852
13853 NullFields []string `json:"-"`
13854 }
13855
13856 func (s *GoogleCloudDialogflowV2SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) {
13857 type NoMethod GoogleCloudDialogflowV2SearchKnowledgeAnswer
13858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13859 }
13860
13861
13862
13863 type GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource struct {
13864
13865 Snippet string `json:"snippet,omitempty"`
13866
13867 Title string `json:"title,omitempty"`
13868
13869 Uri string `json:"uri,omitempty"`
13870
13871
13872
13873
13874
13875 ForceSendFields []string `json:"-"`
13876
13877
13878
13879
13880 NullFields []string `json:"-"`
13881 }
13882
13883 func (s *GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) {
13884 type NoMethod GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource
13885 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13886 }
13887
13888
13889
13890 type GoogleCloudDialogflowV2SearchKnowledgeRequest struct {
13891
13892
13893 Conversation string `json:"conversation,omitempty"`
13894
13895
13896 ConversationProfile string `json:"conversationProfile,omitempty"`
13897
13898
13899 LatestMessage string `json:"latestMessage,omitempty"`
13900
13901
13902 Parent string `json:"parent,omitempty"`
13903
13904 Query *GoogleCloudDialogflowV2TextInput `json:"query,omitempty"`
13905
13906
13907
13908
13909
13910
13911 SessionId string `json:"sessionId,omitempty"`
13912
13913
13914
13915
13916
13917 ForceSendFields []string `json:"-"`
13918
13919
13920
13921
13922 NullFields []string `json:"-"`
13923 }
13924
13925 func (s *GoogleCloudDialogflowV2SearchKnowledgeRequest) MarshalJSON() ([]byte, error) {
13926 type NoMethod GoogleCloudDialogflowV2SearchKnowledgeRequest
13927 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13928 }
13929
13930
13931
13932 type GoogleCloudDialogflowV2SearchKnowledgeResponse struct {
13933
13934
13935 Answers []*GoogleCloudDialogflowV2SearchKnowledgeAnswer `json:"answers,omitempty"`
13936
13937 RewrittenQuery string `json:"rewrittenQuery,omitempty"`
13938
13939
13940 googleapi.ServerResponse `json:"-"`
13941
13942
13943
13944
13945
13946 ForceSendFields []string `json:"-"`
13947
13948
13949
13950
13951 NullFields []string `json:"-"`
13952 }
13953
13954 func (s *GoogleCloudDialogflowV2SearchKnowledgeResponse) MarshalJSON() ([]byte, error) {
13955 type NoMethod GoogleCloudDialogflowV2SearchKnowledgeResponse
13956 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13957 }
13958
13959
13960
13961
13962
13963 type GoogleCloudDialogflowV2Sentiment struct {
13964
13965
13966
13967 Magnitude float64 `json:"magnitude,omitempty"`
13968
13969
13970 Score float64 `json:"score,omitempty"`
13971
13972
13973
13974
13975
13976 ForceSendFields []string `json:"-"`
13977
13978
13979
13980
13981 NullFields []string `json:"-"`
13982 }
13983
13984 func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
13985 type NoMethod GoogleCloudDialogflowV2Sentiment
13986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13987 }
13988
13989 func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
13990 type NoMethod GoogleCloudDialogflowV2Sentiment
13991 var s1 struct {
13992 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
13993 Score gensupport.JSONFloat64 `json:"score"`
13994 *NoMethod
13995 }
13996 s1.NoMethod = (*NoMethod)(s)
13997 if err := json.Unmarshal(data, &s1); err != nil {
13998 return err
13999 }
14000 s.Magnitude = float64(s1.Magnitude)
14001 s.Score = float64(s1.Score)
14002 return nil
14003 }
14004
14005
14006
14007 type GoogleCloudDialogflowV2SentimentAnalysisRequestConfig struct {
14008
14009
14010
14011 AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
14012
14013
14014
14015
14016
14017 ForceSendFields []string `json:"-"`
14018
14019
14020
14021
14022 NullFields []string `json:"-"`
14023 }
14024
14025 func (s *GoogleCloudDialogflowV2SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error) {
14026 type NoMethod GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
14027 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14028 }
14029
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039 type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
14040
14041 QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
14042
14043
14044
14045
14046
14047 ForceSendFields []string `json:"-"`
14048
14049
14050
14051
14052 NullFields []string `json:"-"`
14053 }
14054
14055 func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
14056 type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
14057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14058 }
14059
14060
14061
14062
14063
14064
14065
14066
14067
14068 type GoogleCloudDialogflowV2SessionEntityType struct {
14069
14070
14071 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
14072
14073
14074
14075
14076
14077
14078
14079
14080
14081
14082
14083
14084
14085
14086
14087
14088 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
14089
14090
14091
14092
14093
14094
14095
14096 Name string `json:"name,omitempty"`
14097
14098
14099 googleapi.ServerResponse `json:"-"`
14100
14101
14102
14103
14104
14105 ForceSendFields []string `json:"-"`
14106
14107
14108
14109
14110 NullFields []string `json:"-"`
14111 }
14112
14113 func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
14114 type NoMethod GoogleCloudDialogflowV2SessionEntityType
14115 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14116 }
14117
14118
14119
14120 type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
14121
14122
14123 ConversationProfile string `json:"conversationProfile,omitempty"`
14124
14125
14126 CreateTime string `json:"createTime,omitempty"`
14127
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137 ParticipantRole string `json:"participantRole,omitempty"`
14138
14139
14140
14141
14142
14143
14144
14145
14146
14147
14148 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
14149
14150
14151
14152
14153
14154 ForceSendFields []string `json:"-"`
14155
14156
14157
14158
14159 NullFields []string `json:"-"`
14160 }
14161
14162 func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
14163 type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
14164 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14165 }
14166
14167
14168
14169 type GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest struct {
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180 ParticipantRole string `json:"participantRole,omitempty"`
14181
14182
14183 SuggestionFeatureConfig *GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig `json:"suggestionFeatureConfig,omitempty"`
14184
14185
14186
14187
14188
14189 ForceSendFields []string `json:"-"`
14190
14191
14192
14193
14194 NullFields []string `json:"-"`
14195 }
14196
14197 func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
14198 type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
14199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14200 }
14201
14202
14203 type GoogleCloudDialogflowV2SmartReplyAnswer struct {
14204
14205
14206 AnswerRecord string `json:"answerRecord,omitempty"`
14207
14208
14209
14210 Confidence float64 `json:"confidence,omitempty"`
14211
14212 Reply string `json:"reply,omitempty"`
14213
14214
14215
14216
14217
14218 ForceSendFields []string `json:"-"`
14219
14220
14221
14222
14223 NullFields []string `json:"-"`
14224 }
14225
14226 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
14227 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
14228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14229 }
14230
14231 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
14232 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
14233 var s1 struct {
14234 Confidence gensupport.JSONFloat64 `json:"confidence"`
14235 *NoMethod
14236 }
14237 s1.NoMethod = (*NoMethod)(s)
14238 if err := json.Unmarshal(data, &s1); err != nil {
14239 return err
14240 }
14241 s.Confidence = float64(s1.Confidence)
14242 return nil
14243 }
14244
14245
14246
14247 type GoogleCloudDialogflowV2SmartReplyMetrics struct {
14248
14249
14250
14251 AllowlistCoverage float64 `json:"allowlistCoverage,omitempty"`
14252
14253
14254 ConversationCount int64 `json:"conversationCount,omitempty,string"`
14255
14256 TopNMetrics []*GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics `json:"topNMetrics,omitempty"`
14257
14258
14259
14260
14261
14262 ForceSendFields []string `json:"-"`
14263
14264
14265
14266
14267 NullFields []string `json:"-"`
14268 }
14269
14270 func (s *GoogleCloudDialogflowV2SmartReplyMetrics) MarshalJSON() ([]byte, error) {
14271 type NoMethod GoogleCloudDialogflowV2SmartReplyMetrics
14272 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14273 }
14274
14275 func (s *GoogleCloudDialogflowV2SmartReplyMetrics) UnmarshalJSON(data []byte) error {
14276 type NoMethod GoogleCloudDialogflowV2SmartReplyMetrics
14277 var s1 struct {
14278 AllowlistCoverage gensupport.JSONFloat64 `json:"allowlistCoverage"`
14279 *NoMethod
14280 }
14281 s1.NoMethod = (*NoMethod)(s)
14282 if err := json.Unmarshal(data, &s1); err != nil {
14283 return err
14284 }
14285 s.AllowlistCoverage = float64(s1.AllowlistCoverage)
14286 return nil
14287 }
14288
14289
14290
14291 type GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics struct {
14292
14293
14294
14295 N int64 `json:"n,omitempty"`
14296
14297
14298
14299
14300 Recall float64 `json:"recall,omitempty"`
14301
14302
14303
14304
14305
14306 ForceSendFields []string `json:"-"`
14307
14308
14309
14310
14311 NullFields []string `json:"-"`
14312 }
14313
14314 func (s *GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics) MarshalJSON() ([]byte, error) {
14315 type NoMethod GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
14316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14317 }
14318
14319 func (s *GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics) UnmarshalJSON(data []byte) error {
14320 type NoMethod GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
14321 var s1 struct {
14322 Recall gensupport.JSONFloat64 `json:"recall"`
14323 *NoMethod
14324 }
14325 s1.NoMethod = (*NoMethod)(s)
14326 if err := json.Unmarshal(data, &s1); err != nil {
14327 return err
14328 }
14329 s.Recall = float64(s1.Recall)
14330 return nil
14331 }
14332
14333
14334
14335 type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
14336
14337
14338
14339
14340
14341
14342
14343
14344 TrainingModelType string `json:"trainingModelType,omitempty"`
14345
14346
14347
14348
14349
14350 ForceSendFields []string `json:"-"`
14351
14352
14353
14354
14355 NullFields []string `json:"-"`
14356 }
14357
14358 func (s *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
14359 type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
14360 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14361 }
14362
14363
14364
14365 type GoogleCloudDialogflowV2SpeechContext struct {
14366
14367
14368
14369
14370
14371
14372 Boost float64 `json:"boost,omitempty"`
14373
14374
14375
14376
14377
14378
14379 Phrases []string `json:"phrases,omitempty"`
14380
14381
14382
14383
14384
14385 ForceSendFields []string `json:"-"`
14386
14387
14388
14389
14390 NullFields []string `json:"-"`
14391 }
14392
14393 func (s *GoogleCloudDialogflowV2SpeechContext) MarshalJSON() ([]byte, error) {
14394 type NoMethod GoogleCloudDialogflowV2SpeechContext
14395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14396 }
14397
14398 func (s *GoogleCloudDialogflowV2SpeechContext) UnmarshalJSON(data []byte) error {
14399 type NoMethod GoogleCloudDialogflowV2SpeechContext
14400 var s1 struct {
14401 Boost gensupport.JSONFloat64 `json:"boost"`
14402 *NoMethod
14403 }
14404 s1.NoMethod = (*NoMethod)(s)
14405 if err := json.Unmarshal(data, &s1); err != nil {
14406 return err
14407 }
14408 s.Boost = float64(s1.Boost)
14409 return nil
14410 }
14411
14412
14413
14414 type GoogleCloudDialogflowV2SpeechToTextConfig struct {
14415
14416
14417
14418
14419
14420
14421
14422
14423
14424
14425
14426
14427
14428
14429 Model string `json:"model,omitempty"`
14430
14431
14432
14433
14434
14435
14436
14437
14438
14439
14440
14441
14442
14443
14444
14445
14446
14447
14448
14449
14450
14451
14452
14453
14454
14455
14456 SpeechModelVariant string `json:"speechModelVariant,omitempty"`
14457
14458
14459 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
14460
14461
14462
14463
14464
14465 ForceSendFields []string `json:"-"`
14466
14467
14468
14469
14470 NullFields []string `json:"-"`
14471 }
14472
14473 func (s *GoogleCloudDialogflowV2SpeechToTextConfig) MarshalJSON() ([]byte, error) {
14474 type NoMethod GoogleCloudDialogflowV2SpeechToTextConfig
14475 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14476 }
14477
14478
14479
14480 type GoogleCloudDialogflowV2SuggestArticlesRequest struct {
14481
14482 AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
14483
14484
14485
14486 ContextSize int64 `json:"contextSize,omitempty"`
14487
14488
14489
14490 LatestMessage string `json:"latestMessage,omitempty"`
14491
14492
14493
14494
14495
14496 ForceSendFields []string `json:"-"`
14497
14498
14499
14500
14501 NullFields []string `json:"-"`
14502 }
14503
14504 func (s *GoogleCloudDialogflowV2SuggestArticlesRequest) MarshalJSON() ([]byte, error) {
14505 type NoMethod GoogleCloudDialogflowV2SuggestArticlesRequest
14506 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14507 }
14508
14509
14510
14511 type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
14512
14513 ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
14514
14515
14516
14517
14518 ContextSize int64 `json:"contextSize,omitempty"`
14519
14520
14521 LatestMessage string `json:"latestMessage,omitempty"`
14522
14523
14524 googleapi.ServerResponse `json:"-"`
14525
14526
14527
14528
14529
14530 ForceSendFields []string `json:"-"`
14531
14532
14533
14534
14535 NullFields []string `json:"-"`
14536 }
14537
14538 func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
14539 type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
14540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14541 }
14542
14543
14544
14545 type GoogleCloudDialogflowV2SuggestConversationSummaryRequest struct {
14546
14547
14548 AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
14549
14550
14551
14552 ContextSize int64 `json:"contextSize,omitempty"`
14553
14554
14555
14556 LatestMessage string `json:"latestMessage,omitempty"`
14557
14558
14559
14560
14561
14562 ForceSendFields []string `json:"-"`
14563
14564
14565
14566
14567 NullFields []string `json:"-"`
14568 }
14569
14570 func (s *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) MarshalJSON() ([]byte, error) {
14571 type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryRequest
14572 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14573 }
14574
14575
14576
14577 type GoogleCloudDialogflowV2SuggestConversationSummaryResponse struct {
14578
14579
14580
14581
14582 ContextSize int64 `json:"contextSize,omitempty"`
14583
14584
14585
14586 LatestMessage string `json:"latestMessage,omitempty"`
14587
14588 Summary *GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary `json:"summary,omitempty"`
14589
14590
14591 googleapi.ServerResponse `json:"-"`
14592
14593
14594
14595
14596
14597 ForceSendFields []string `json:"-"`
14598
14599
14600
14601
14602 NullFields []string `json:"-"`
14603 }
14604
14605 func (s *GoogleCloudDialogflowV2SuggestConversationSummaryResponse) MarshalJSON() ([]byte, error) {
14606 type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryResponse
14607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14608 }
14609
14610
14611
14612 type GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary struct {
14613
14614
14615 AnswerRecord string `json:"answerRecord,omitempty"`
14616
14617
14618
14619 BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
14620
14621 Text string `json:"text,omitempty"`
14622
14623
14624
14625 TextSections map[string]string `json:"textSections,omitempty"`
14626
14627
14628
14629
14630
14631 ForceSendFields []string `json:"-"`
14632
14633
14634
14635
14636 NullFields []string `json:"-"`
14637 }
14638
14639 func (s *GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary) MarshalJSON() ([]byte, error) {
14640 type NoMethod GoogleCloudDialogflowV2SuggestConversationSummaryResponseSummary
14641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14642 }
14643
14644
14645
14646 type GoogleCloudDialogflowV2SuggestFaqAnswersRequest struct {
14647
14648 AssistQueryParams *GoogleCloudDialogflowV2AssistQueryParameters `json:"assistQueryParams,omitempty"`
14649
14650
14651
14652 ContextSize int64 `json:"contextSize,omitempty"`
14653
14654
14655
14656 LatestMessage string `json:"latestMessage,omitempty"`
14657
14658
14659
14660
14661
14662 ForceSendFields []string `json:"-"`
14663
14664
14665
14666
14667 NullFields []string `json:"-"`
14668 }
14669
14670 func (s *GoogleCloudDialogflowV2SuggestFaqAnswersRequest) MarshalJSON() ([]byte, error) {
14671 type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersRequest
14672 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14673 }
14674
14675
14676
14677 type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
14678
14679
14680
14681
14682 ContextSize int64 `json:"contextSize,omitempty"`
14683
14684 FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
14685
14686
14687 LatestMessage string `json:"latestMessage,omitempty"`
14688
14689
14690 googleapi.ServerResponse `json:"-"`
14691
14692
14693
14694
14695
14696 ForceSendFields []string `json:"-"`
14697
14698
14699
14700
14701 NullFields []string `json:"-"`
14702 }
14703
14704 func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
14705 type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
14706 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14707 }
14708
14709
14710
14711 type GoogleCloudDialogflowV2SuggestSmartRepliesRequest struct {
14712
14713
14714
14715 ContextSize int64 `json:"contextSize,omitempty"`
14716
14717
14718
14719 CurrentTextInput *GoogleCloudDialogflowV2TextInput `json:"currentTextInput,omitempty"`
14720
14721
14722
14723 LatestMessage string `json:"latestMessage,omitempty"`
14724
14725
14726
14727
14728
14729 ForceSendFields []string `json:"-"`
14730
14731
14732
14733
14734 NullFields []string `json:"-"`
14735 }
14736
14737 func (s *GoogleCloudDialogflowV2SuggestSmartRepliesRequest) MarshalJSON() ([]byte, error) {
14738 type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesRequest
14739 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14740 }
14741
14742
14743
14744 type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
14745
14746
14747
14748
14749 ContextSize int64 `json:"contextSize,omitempty"`
14750
14751
14752 LatestMessage string `json:"latestMessage,omitempty"`
14753
14754
14755
14756 SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
14757
14758
14759 googleapi.ServerResponse `json:"-"`
14760
14761
14762
14763
14764
14765 ForceSendFields []string `json:"-"`
14766
14767
14768
14769
14770 NullFields []string `json:"-"`
14771 }
14772
14773 func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
14774 type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
14775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14776 }
14777
14778
14779
14780
14781
14782 type GoogleCloudDialogflowV2SuggestionFeature struct {
14783
14784
14785
14786
14787
14788
14789
14790
14791
14792 Type string `json:"type,omitempty"`
14793
14794
14795
14796
14797
14798 ForceSendFields []string `json:"-"`
14799
14800
14801
14802
14803 NullFields []string `json:"-"`
14804 }
14805
14806 func (s *GoogleCloudDialogflowV2SuggestionFeature) MarshalJSON() ([]byte, error) {
14807 type NoMethod GoogleCloudDialogflowV2SuggestionFeature
14808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14809 }
14810
14811
14812
14813 type GoogleCloudDialogflowV2SuggestionInput struct {
14814
14815
14816
14817
14818 AnswerRecord string `json:"answerRecord,omitempty"`
14819
14820
14821
14822
14823
14824 ForceSendFields []string `json:"-"`
14825
14826
14827
14828
14829 NullFields []string `json:"-"`
14830 }
14831
14832 func (s *GoogleCloudDialogflowV2SuggestionInput) MarshalJSON() ([]byte, error) {
14833 type NoMethod GoogleCloudDialogflowV2SuggestionInput
14834 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14835 }
14836
14837
14838
14839
14840
14841 type GoogleCloudDialogflowV2SuggestionResult struct {
14842
14843 Error *GoogleRpcStatus `json:"error,omitempty"`
14844
14845
14846 SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
14847
14848
14849 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
14850
14851
14852 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
14853
14854
14855
14856
14857
14858 ForceSendFields []string `json:"-"`
14859
14860
14861
14862
14863 NullFields []string `json:"-"`
14864 }
14865
14866 func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
14867 type NoMethod GoogleCloudDialogflowV2SuggestionResult
14868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14869 }
14870
14871
14872
14873 type GoogleCloudDialogflowV2SynthesizeSpeechConfig struct {
14874
14875
14876
14877 EffectsProfileId []string `json:"effectsProfileId,omitempty"`
14878
14879
14880
14881 Pitch float64 `json:"pitch,omitempty"`
14882
14883
14884
14885
14886 SpeakingRate float64 `json:"speakingRate,omitempty"`
14887
14888 Voice *GoogleCloudDialogflowV2VoiceSelectionParams `json:"voice,omitempty"`
14889
14890
14891
14892
14893
14894
14895
14896
14897 VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
14898
14899
14900
14901
14902
14903 ForceSendFields []string `json:"-"`
14904
14905
14906
14907
14908 NullFields []string `json:"-"`
14909 }
14910
14911 func (s *GoogleCloudDialogflowV2SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
14912 type NoMethod GoogleCloudDialogflowV2SynthesizeSpeechConfig
14913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14914 }
14915
14916 func (s *GoogleCloudDialogflowV2SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
14917 type NoMethod GoogleCloudDialogflowV2SynthesizeSpeechConfig
14918 var s1 struct {
14919 Pitch gensupport.JSONFloat64 `json:"pitch"`
14920 SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
14921 VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
14922 *NoMethod
14923 }
14924 s1.NoMethod = (*NoMethod)(s)
14925 if err := json.Unmarshal(data, &s1); err != nil {
14926 return err
14927 }
14928 s.Pitch = float64(s1.Pitch)
14929 s.SpeakingRate = float64(s1.SpeakingRate)
14930 s.VolumeGainDb = float64(s1.VolumeGainDb)
14931 return nil
14932 }
14933
14934
14935
14936 type GoogleCloudDialogflowV2TextInput struct {
14937
14938
14939
14940
14941
14942 LanguageCode string `json:"languageCode,omitempty"`
14943
14944
14945 Text string `json:"text,omitempty"`
14946
14947
14948
14949
14950
14951 ForceSendFields []string `json:"-"`
14952
14953
14954
14955
14956 NullFields []string `json:"-"`
14957 }
14958
14959 func (s *GoogleCloudDialogflowV2TextInput) MarshalJSON() ([]byte, error) {
14960 type NoMethod GoogleCloudDialogflowV2TextInput
14961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14962 }
14963
14964
14965
14966 type GoogleCloudDialogflowV2TextToSpeechSettings struct {
14967
14968
14969
14970 EnableTextToSpeech bool `json:"enableTextToSpeech,omitempty"`
14971
14972
14973
14974
14975
14976
14977
14978
14979
14980
14981
14982
14983
14984
14985
14986
14987
14988 OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"`
14989
14990
14991
14992
14993
14994
14995 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
14996
14997
14998
14999
15000 SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
15001
15002
15003
15004
15005
15006 ForceSendFields []string `json:"-"`
15007
15008
15009
15010
15011 NullFields []string `json:"-"`
15012 }
15013
15014 func (s *GoogleCloudDialogflowV2TextToSpeechSettings) MarshalJSON() ([]byte, error) {
15015 type NoMethod GoogleCloudDialogflowV2TextToSpeechSettings
15016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15017 }
15018
15019
15020
15021 type GoogleCloudDialogflowV2TrainAgentRequest struct {
15022 }
15023
15024
15025
15026 type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
15027
15028
15029 ConversationModel string `json:"conversationModel,omitempty"`
15030
15031
15032 CreateTime string `json:"createTime,omitempty"`
15033
15034
15035
15036
15037
15038 ForceSendFields []string `json:"-"`
15039
15040
15041
15042
15043 NullFields []string `json:"-"`
15044 }
15045
15046 func (s *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
15047 type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
15048 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15049 }
15050
15051
15052
15053 type GoogleCloudDialogflowV2UndeployConversationModelRequest struct {
15054 }
15055
15056
15057
15058 type GoogleCloudDialogflowV2ValidationError struct {
15059
15060
15061
15062
15063
15064
15065
15066
15067 Entries []string `json:"entries,omitempty"`
15068
15069 ErrorMessage string `json:"errorMessage,omitempty"`
15070
15071
15072
15073
15074
15075
15076
15077
15078 Severity string `json:"severity,omitempty"`
15079
15080
15081
15082
15083
15084 ForceSendFields []string `json:"-"`
15085
15086
15087
15088
15089 NullFields []string `json:"-"`
15090 }
15091
15092 func (s *GoogleCloudDialogflowV2ValidationError) MarshalJSON() ([]byte, error) {
15093 type NoMethod GoogleCloudDialogflowV2ValidationError
15094 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15095 }
15096
15097
15098
15099 type GoogleCloudDialogflowV2ValidationResult struct {
15100
15101 ValidationErrors []*GoogleCloudDialogflowV2ValidationError `json:"validationErrors,omitempty"`
15102
15103
15104 googleapi.ServerResponse `json:"-"`
15105
15106
15107
15108
15109
15110 ForceSendFields []string `json:"-"`
15111
15112
15113
15114
15115 NullFields []string `json:"-"`
15116 }
15117
15118 func (s *GoogleCloudDialogflowV2ValidationResult) MarshalJSON() ([]byte, error) {
15119 type NoMethod GoogleCloudDialogflowV2ValidationResult
15120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15121 }
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132 type GoogleCloudDialogflowV2Version struct {
15133
15134
15135 CreateTime string `json:"createTime,omitempty"`
15136
15137 Description string `json:"description,omitempty"`
15138
15139
15140
15141 Name string `json:"name,omitempty"`
15142
15143
15144
15145
15146
15147
15148
15149
15150
15151 Status string `json:"status,omitempty"`
15152
15153
15154
15155 VersionNumber int64 `json:"versionNumber,omitempty"`
15156
15157
15158 googleapi.ServerResponse `json:"-"`
15159
15160
15161
15162
15163
15164 ForceSendFields []string `json:"-"`
15165
15166
15167
15168
15169 NullFields []string `json:"-"`
15170 }
15171
15172 func (s *GoogleCloudDialogflowV2Version) MarshalJSON() ([]byte, error) {
15173 type NoMethod GoogleCloudDialogflowV2Version
15174 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15175 }
15176
15177
15178
15179 type GoogleCloudDialogflowV2VoiceSelectionParams struct {
15180
15181
15182 Name string `json:"name,omitempty"`
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196 SsmlGender string `json:"ssmlGender,omitempty"`
15197
15198
15199
15200
15201
15202 ForceSendFields []string `json:"-"`
15203
15204
15205
15206
15207 NullFields []string `json:"-"`
15208 }
15209
15210 func (s *GoogleCloudDialogflowV2VoiceSelectionParams) MarshalJSON() ([]byte, error) {
15211 type NoMethod GoogleCloudDialogflowV2VoiceSelectionParams
15212 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15213 }
15214
15215
15216
15217 type GoogleCloudDialogflowV2WebhookRequest struct {
15218
15219
15220 OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
15221
15222
15223 QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
15224
15225
15226 ResponseId string `json:"responseId,omitempty"`
15227
15228
15229
15230
15231 Session string `json:"session,omitempty"`
15232
15233
15234
15235
15236
15237 ForceSendFields []string `json:"-"`
15238
15239
15240
15241
15242 NullFields []string `json:"-"`
15243 }
15244
15245 func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
15246 type NoMethod GoogleCloudDialogflowV2WebhookRequest
15247 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15248 }
15249
15250
15251
15252
15253
15254
15255
15256
15257
15258 type GoogleCloudDialogflowV2WebhookResponse struct {
15259
15260
15261
15262 FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
15263
15264
15265
15266 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
15267
15268
15269
15270
15271 FulfillmentText string `json:"fulfillmentText,omitempty"`
15272
15273
15274
15275
15276 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
15277
15278
15279
15280
15281
15282
15283
15284
15285
15286 Payload googleapi.RawMessage `json:"payload,omitempty"`
15287
15288
15289
15290
15291
15292 SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
15293
15294
15295
15296
15297 Source string `json:"source,omitempty"`
15298
15299
15300
15301
15302
15303 ForceSendFields []string `json:"-"`
15304
15305
15306
15307
15308 NullFields []string `json:"-"`
15309 }
15310
15311 func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
15312 type NoMethod GoogleCloudDialogflowV2WebhookResponse
15313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15314 }
15315
15316
15317
15318
15319 type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
15320
15321
15322
15323
15324 EntityType string `json:"entityType,omitempty"`
15325
15326
15327
15328
15329 FormattedValue interface{} `json:"formattedValue,omitempty"`
15330
15331 Text string `json:"text,omitempty"`
15332
15333
15334
15335
15336
15337 ForceSendFields []string `json:"-"`
15338
15339
15340
15341
15342 NullFields []string `json:"-"`
15343 }
15344
15345 func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
15346 type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
15347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15348 }
15349
15350
15351 type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
15352
15353
15354 AnswerRecord string `json:"answerRecord,omitempty"`
15355
15356
15357 Metadata map[string]string `json:"metadata,omitempty"`
15358
15359 Snippets []string `json:"snippets,omitempty"`
15360
15361 Title string `json:"title,omitempty"`
15362
15363 Uri string `json:"uri,omitempty"`
15364
15365
15366
15367
15368
15369 ForceSendFields []string `json:"-"`
15370
15371
15372
15373
15374 NullFields []string `json:"-"`
15375 }
15376
15377 func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
15378 type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
15379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15380 }
15381
15382
15383
15384 type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
15385
15386 EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
15387
15388
15389
15390
15391
15392 ForceSendFields []string `json:"-"`
15393
15394
15395
15396
15397 NullFields []string `json:"-"`
15398 }
15399
15400 func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
15401 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
15402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15403 }
15404
15405
15406
15407 type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
15408
15409 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
15410
15411
15412
15413
15414
15415 ForceSendFields []string `json:"-"`
15416
15417
15418
15419
15420 NullFields []string `json:"-"`
15421 }
15422
15423 func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
15424 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
15425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15426 }
15427
15428
15429
15430 type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
15431
15432
15433 ConversationProfile string `json:"conversationProfile,omitempty"`
15434
15435
15436 CreateTime string `json:"createTime,omitempty"`
15437
15438
15439
15440
15441
15442
15443
15444
15445
15446
15447 ParticipantRole string `json:"participantRole,omitempty"`
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
15463
15464
15465
15466
15467
15468 ForceSendFields []string `json:"-"`
15469
15470
15471
15472
15473 NullFields []string `json:"-"`
15474 }
15475
15476 func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
15477 type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
15478 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15479 }
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494 type GoogleCloudDialogflowV2beta1Context struct {
15495
15496
15497
15498
15499 LifespanCount int64 `json:"lifespanCount,omitempty"`
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512 Name string `json:"name,omitempty"`
15513
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15524
15525
15526
15527
15528
15529 ForceSendFields []string `json:"-"`
15530
15531
15532
15533
15534 NullFields []string `json:"-"`
15535 }
15536
15537 func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
15538 type NoMethod GoogleCloudDialogflowV2beta1Context
15539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15540 }
15541
15542
15543
15544 type GoogleCloudDialogflowV2beta1ConversationEvent struct {
15545
15546
15547 Conversation string `json:"conversation,omitempty"`
15548
15549
15550 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
15551
15552 NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573 Type string `json:"type,omitempty"`
15574
15575
15576
15577
15578
15579 ForceSendFields []string `json:"-"`
15580
15581
15582
15583
15584 NullFields []string `json:"-"`
15585 }
15586
15587 func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
15588 type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
15589 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15590 }
15591
15592
15593
15594 type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
15595
15596
15597 AnswerRecord string `json:"answerRecord,omitempty"`
15598
15599 IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
15600
15601 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
15602
15603
15604
15605
15606
15607 ForceSendFields []string `json:"-"`
15608
15609
15610
15611
15612 NullFields []string `json:"-"`
15613 }
15614
15615 func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
15616 type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
15617 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15618 }
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630 type GoogleCloudDialogflowV2beta1EntityType struct {
15631
15632
15633
15634
15635
15636
15637
15638
15639 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
15640
15641 DisplayName string `json:"displayName,omitempty"`
15642
15643
15644 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
15645
15646
15647 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
15648
15649
15650
15651
15652
15653
15654
15655
15656
15657
15658
15659 Kind string `json:"kind,omitempty"`
15660
15661
15662
15663
15664 Name string `json:"name,omitempty"`
15665
15666
15667
15668
15669
15670 ForceSendFields []string `json:"-"`
15671
15672
15673
15674
15675 NullFields []string `json:"-"`
15676 }
15677
15678 func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
15679 type NoMethod GoogleCloudDialogflowV2beta1EntityType
15680 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15681 }
15682
15683
15684
15685 type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
15686
15687
15688
15689
15690 Synonyms []string `json:"synonyms,omitempty"`
15691
15692
15693
15694
15695
15696 Value string `json:"value,omitempty"`
15697
15698
15699
15700
15701
15702 ForceSendFields []string `json:"-"`
15703
15704
15705
15706
15707 NullFields []string `json:"-"`
15708 }
15709
15710 func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
15711 type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
15712 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15713 }
15714
15715
15716
15717
15718
15719
15720 type GoogleCloudDialogflowV2beta1EventInput struct {
15721
15722
15723
15724
15725
15726
15727
15728 LanguageCode string `json:"languageCode,omitempty"`
15729
15730 Name string `json:"name,omitempty"`
15731
15732
15733
15734
15735
15736
15737
15738
15739
15740
15741 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15742
15743
15744
15745
15746
15747 ForceSendFields []string `json:"-"`
15748
15749
15750
15751
15752 NullFields []string `json:"-"`
15753 }
15754
15755 func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
15756 type NoMethod GoogleCloudDialogflowV2beta1EventInput
15757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15758 }
15759
15760
15761
15762 type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
15763
15764 AgentContent string `json:"agentContent,omitempty"`
15765
15766
15767 AgentUri string `json:"agentUri,omitempty"`
15768
15769
15770
15771
15772
15773 ForceSendFields []string `json:"-"`
15774
15775
15776
15777
15778 NullFields []string `json:"-"`
15779 }
15780
15781 func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
15782 type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
15783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15784 }
15785
15786
15787
15788 type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
15789
15790 ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
15791
15792
15793
15794
15795
15796 ForceSendFields []string `json:"-"`
15797
15798
15799
15800
15801 NullFields []string `json:"-"`
15802 }
15803
15804 func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
15805 type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
15806 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15807 }
15808
15809
15810
15811 type GoogleCloudDialogflowV2beta1FaqAnswer struct {
15812
15813 Answer string `json:"answer,omitempty"`
15814
15815
15816 AnswerRecord string `json:"answerRecord,omitempty"`
15817
15818
15819
15820 Confidence float64 `json:"confidence,omitempty"`
15821
15822
15823 Metadata map[string]string `json:"metadata,omitempty"`
15824
15825 Question string `json:"question,omitempty"`
15826
15827
15828 Source string `json:"source,omitempty"`
15829
15830
15831
15832
15833
15834 ForceSendFields []string `json:"-"`
15835
15836
15837
15838
15839 NullFields []string `json:"-"`
15840 }
15841
15842 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
15843 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
15844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15845 }
15846
15847 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
15848 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
15849 var s1 struct {
15850 Confidence gensupport.JSONFloat64 `json:"confidence"`
15851 *NoMethod
15852 }
15853 s1.NoMethod = (*NoMethod)(s)
15854 if err := json.Unmarshal(data, &s1); err != nil {
15855 return err
15856 }
15857 s.Confidence = float64(s1.Confidence)
15858 return nil
15859 }
15860
15861
15862
15863 type GoogleCloudDialogflowV2beta1GcsDestination struct {
15864
15865
15866
15867
15868 Uri string `json:"uri,omitempty"`
15869
15870
15871
15872
15873
15874 ForceSendFields []string `json:"-"`
15875
15876
15877
15878
15879 NullFields []string `json:"-"`
15880 }
15881
15882 func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
15883 type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
15884 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15885 }
15886
15887
15888
15889
15890 type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
15891
15892
15893 Conversation string `json:"conversation,omitempty"`
15894
15895
15896
15897
15898 Participant string `json:"participant,omitempty"`
15899
15900
15901
15902
15903 SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
15904
15905
15906
15907
15908
15909 ForceSendFields []string `json:"-"`
15910
15911
15912
15913
15914 NullFields []string `json:"-"`
15915 }
15916
15917 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
15918 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
15919 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15920 }
15921
15922
15923
15924 type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
15925
15926 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
15927
15928
15929
15930
15931
15932 ForceSendFields []string `json:"-"`
15933
15934
15935
15936
15937 NullFields []string `json:"-"`
15938 }
15939
15940 func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
15941 type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
15942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15943 }
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953 type GoogleCloudDialogflowV2beta1Intent struct {
15954
15955
15956 Action string `json:"action,omitempty"`
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
15976
15977 DisplayName string `json:"displayName,omitempty"`
15978
15979
15980
15981 EndInteraction bool `json:"endInteraction,omitempty"`
15982
15983
15984
15985
15986 Events []string `json:"events,omitempty"`
15987
15988
15989
15990 FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
15991
15992
15993
15994 InputContextNames []string `json:"inputContextNames,omitempty"`
15995
15996 IsFallback bool `json:"isFallback,omitempty"`
15997
15998
15999
16000
16001 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
16002
16003
16004 Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
16005
16006
16007
16008
16009 MlDisabled bool `json:"mlDisabled,omitempty"`
16010
16011
16012
16013
16014
16015
16016
16017
16018
16019 MlEnabled bool `json:"mlEnabled,omitempty"`
16020
16021
16022
16023
16024 Name string `json:"name,omitempty"`
16025
16026
16027
16028
16029
16030 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
16031
16032
16033 Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
16034
16035
16036
16037
16038
16039 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
16040
16041
16042
16043
16044
16045 Priority int64 `json:"priority,omitempty"`
16046
16047
16048 ResetContexts bool `json:"resetContexts,omitempty"`
16049
16050
16051
16052 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
16053
16054
16055 TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
16056
16057
16058
16059
16060
16061
16062
16063
16064
16065
16066
16067 WebhookState string `json:"webhookState,omitempty"`
16068
16069
16070
16071
16072
16073 ForceSendFields []string `json:"-"`
16074
16075
16076
16077
16078 NullFields []string `json:"-"`
16079 }
16080
16081 func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
16082 type NoMethod GoogleCloudDialogflowV2beta1Intent
16083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16084 }
16085
16086
16087
16088 type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
16089
16090
16091 FollowupIntentName string `json:"followupIntentName,omitempty"`
16092
16093
16094 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
16095
16096
16097
16098
16099
16100 ForceSendFields []string `json:"-"`
16101
16102
16103
16104
16105 NullFields []string `json:"-"`
16106 }
16107
16108 func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
16109 type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
16110 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16111 }
16112
16113
16114
16115 type GoogleCloudDialogflowV2beta1IntentMessage struct {
16116
16117 BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
16118
16119 BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
16120
16121 Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
16122
16123 CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
16124
16125 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16126
16127
16128 LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
16129
16130 ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
16131
16132 MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
16133
16134 Payload googleapi.RawMessage `json:"payload,omitempty"`
16135
16136
16137
16138
16139
16140
16141
16142
16143
16144
16145
16146
16147
16148
16149
16150
16151 Platform string `json:"platform,omitempty"`
16152
16153 QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
16154
16155
16156 RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
16157
16158
16159 RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
16160
16161
16162
16163 RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
16164
16165
16166 SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
16167
16168 Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
16169
16170 TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
16171
16172 TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
16173
16174 TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
16175
16176 TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
16177
16178 Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
16179
16180
16181
16182
16183
16184 ForceSendFields []string `json:"-"`
16185
16186
16187
16188
16189 NullFields []string `json:"-"`
16190 }
16191
16192 func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
16193 type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
16194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16195 }
16196
16197
16198
16199 type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
16200
16201 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
16202
16203 FormattedText string `json:"formattedText,omitempty"`
16204
16205 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16206
16207 Subtitle string `json:"subtitle,omitempty"`
16208
16209 Title string `json:"title,omitempty"`
16210
16211
16212
16213
16214
16215 ForceSendFields []string `json:"-"`
16216
16217
16218
16219
16220 NullFields []string `json:"-"`
16221 }
16222
16223 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
16224 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
16225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16226 }
16227
16228
16229
16230 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
16231
16232 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
16233
16234 Title string `json:"title,omitempty"`
16235
16236
16237
16238
16239
16240 ForceSendFields []string `json:"-"`
16241
16242
16243
16244
16245 NullFields []string `json:"-"`
16246 }
16247
16248 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
16249 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
16250 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16251 }
16252
16253
16254
16255 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
16256
16257 Uri string `json:"uri,omitempty"`
16258
16259
16260
16261
16262
16263 ForceSendFields []string `json:"-"`
16264
16265
16266
16267
16268 NullFields []string `json:"-"`
16269 }
16270
16271 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
16272 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
16273 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16274 }
16275
16276
16277
16278
16279 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
16280
16281
16282
16283
16284
16285
16286
16287
16288
16289
16290
16291
16292
16293
16294
16295
16296
16297
16298 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
16299
16300
16301 Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
16302
16303
16304
16305
16306
16307 ForceSendFields []string `json:"-"`
16308
16309
16310
16311
16312 NullFields []string `json:"-"`
16313 }
16314
16315 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
16316 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
16317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16318 }
16319
16320
16321
16322 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
16323
16324
16325 Description string `json:"description,omitempty"`
16326
16327
16328 Footer string `json:"footer,omitempty"`
16329
16330 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16331
16332 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
16333
16334 Title string `json:"title,omitempty"`
16335
16336
16337
16338
16339
16340 ForceSendFields []string `json:"-"`
16341
16342
16343
16344
16345 NullFields []string `json:"-"`
16346 }
16347
16348 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
16349 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
16350 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16351 }
16352
16353
16354
16355 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
16356
16357 Url string `json:"url,omitempty"`
16358
16359
16360
16361
16362
16363
16364
16365
16366 UrlTypeHint string `json:"urlTypeHint,omitempty"`
16367
16368
16369
16370
16371
16372 ForceSendFields []string `json:"-"`
16373
16374
16375
16376
16377 NullFields []string `json:"-"`
16378 }
16379
16380 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
16381 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
16382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16383 }
16384
16385
16386 type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
16387
16388 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
16389
16390 ImageUri string `json:"imageUri,omitempty"`
16391
16392 Subtitle string `json:"subtitle,omitempty"`
16393
16394 Title string `json:"title,omitempty"`
16395
16396
16397
16398
16399
16400 ForceSendFields []string `json:"-"`
16401
16402
16403
16404
16405 NullFields []string `json:"-"`
16406 }
16407
16408 func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
16409 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
16410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16411 }
16412
16413
16414
16415 type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
16416
16417
16418 Postback string `json:"postback,omitempty"`
16419
16420 Text string `json:"text,omitempty"`
16421
16422
16423
16424
16425
16426 ForceSendFields []string `json:"-"`
16427
16428
16429
16430
16431 NullFields []string `json:"-"`
16432 }
16433
16434 func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
16435 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
16436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16437 }
16438
16439
16440
16441 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
16442
16443 Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
16444
16445
16446
16447
16448
16449 ForceSendFields []string `json:"-"`
16450
16451
16452
16453
16454 NullFields []string `json:"-"`
16455 }
16456
16457 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
16458 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
16459 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16460 }
16461
16462
16463
16464 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
16465
16466 Description string `json:"description,omitempty"`
16467
16468 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16469
16470 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
16471
16472 Title string `json:"title,omitempty"`
16473
16474
16475
16476
16477
16478 ForceSendFields []string `json:"-"`
16479
16480
16481
16482
16483 NullFields []string `json:"-"`
16484 }
16485
16486 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
16487 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
16488 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16489 }
16490
16491
16492
16493 type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
16494
16495 Header string `json:"header,omitempty"`
16496
16497
16498
16499
16500
16501
16502
16503
16504
16505 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
16506
16507
16508
16509
16510
16511 ForceSendFields []string `json:"-"`
16512
16513
16514
16515
16516 NullFields []string `json:"-"`
16517 }
16518
16519 func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
16520 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
16521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16522 }
16523
16524
16525 type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
16526
16527
16528
16529 AccessibilityText string `json:"accessibilityText,omitempty"`
16530
16531 ImageUri string `json:"imageUri,omitempty"`
16532
16533
16534
16535
16536
16537 ForceSendFields []string `json:"-"`
16538
16539
16540
16541
16542 NullFields []string `json:"-"`
16543 }
16544
16545 func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
16546 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
16547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16548 }
16549
16550
16551
16552
16553 type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
16554
16555
16556 DestinationName string `json:"destinationName,omitempty"`
16557
16558
16559 Uri string `json:"uri,omitempty"`
16560
16561
16562
16563
16564
16565 ForceSendFields []string `json:"-"`
16566
16567
16568
16569
16570 NullFields []string `json:"-"`
16571 }
16572
16573 func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
16574 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
16575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16576 }
16577
16578
16579
16580 type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
16581
16582 Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
16583
16584 Subtitle string `json:"subtitle,omitempty"`
16585
16586 Title string `json:"title,omitempty"`
16587
16588
16589
16590
16591
16592 ForceSendFields []string `json:"-"`
16593
16594
16595
16596
16597 NullFields []string `json:"-"`
16598 }
16599
16600 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
16601 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
16602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16603 }
16604
16605
16606
16607 type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
16608
16609 Description string `json:"description,omitempty"`
16610
16611 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16612
16613 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
16614
16615 Title string `json:"title,omitempty"`
16616
16617
16618
16619
16620
16621 ForceSendFields []string `json:"-"`
16622
16623
16624
16625
16626 NullFields []string `json:"-"`
16627 }
16628
16629 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
16630 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
16631 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16632 }
16633
16634
16635
16636 type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
16637
16638 MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
16639
16640
16641
16642
16643
16644 MediaType string `json:"mediaType,omitempty"`
16645
16646
16647
16648
16649
16650 ForceSendFields []string `json:"-"`
16651
16652
16653
16654
16655 NullFields []string `json:"-"`
16656 }
16657
16658 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
16659 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
16660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16661 }
16662
16663
16664
16665 type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
16666
16667 ContentUrl string `json:"contentUrl,omitempty"`
16668
16669 Description string `json:"description,omitempty"`
16670
16671 Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
16672
16673 LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
16674
16675 Name string `json:"name,omitempty"`
16676
16677
16678
16679
16680
16681 ForceSendFields []string `json:"-"`
16682
16683
16684
16685
16686 NullFields []string `json:"-"`
16687 }
16688
16689 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
16690 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
16691 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16692 }
16693
16694
16695
16696 type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
16697
16698 QuickReplies []string `json:"quickReplies,omitempty"`
16699
16700 Title string `json:"title,omitempty"`
16701
16702
16703
16704
16705
16706 ForceSendFields []string `json:"-"`
16707
16708
16709
16710
16711 NullFields []string `json:"-"`
16712 }
16713
16714 func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
16715 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
16716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16717 }
16718
16719
16720
16721 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
16722
16723
16724 Description string `json:"description,omitempty"`
16725
16726
16727 Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
16728
16729 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
16730
16731
16732 Title string `json:"title,omitempty"`
16733
16734
16735
16736
16737
16738 ForceSendFields []string `json:"-"`
16739
16740
16741
16742
16743 NullFields []string `json:"-"`
16744 }
16745
16746 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
16747 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
16748 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16749 }
16750
16751
16752
16753
16754
16755
16756 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
16757
16758
16759
16760
16761 FileUri string `json:"fileUri,omitempty"`
16762
16763
16764
16765
16766
16767
16768
16769
16770
16771
16772 Height string `json:"height,omitempty"`
16773
16774
16775
16776
16777
16778 ThumbnailUri string `json:"thumbnailUri,omitempty"`
16779
16780
16781
16782
16783
16784 ForceSendFields []string `json:"-"`
16785
16786
16787
16788
16789 NullFields []string `json:"-"`
16790 }
16791
16792 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
16793 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
16794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16795 }
16796
16797
16798
16799
16800
16801
16802 type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
16803
16804
16805 CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
16806
16807
16808
16809
16810
16811
16812 CardWidth string `json:"cardWidth,omitempty"`
16813
16814
16815
16816
16817
16818 ForceSendFields []string `json:"-"`
16819
16820
16821
16822
16823 NullFields []string `json:"-"`
16824 }
16825
16826 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
16827 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
16828 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16829 }
16830
16831
16832
16833
16834
16835
16836 type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
16837
16838 CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
16839
16840
16841
16842
16843
16844
16845 CardOrientation string `json:"cardOrientation,omitempty"`
16846
16847
16848
16849
16850
16851
16852
16853 ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
16854
16855
16856
16857
16858
16859 ForceSendFields []string `json:"-"`
16860
16861
16862
16863
16864 NullFields []string `json:"-"`
16865 }
16866
16867 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
16868 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
16869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16870 }
16871
16872
16873
16874
16875 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
16876
16877 Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
16878
16879 OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
16880
16881
16882
16883 PostbackData string `json:"postbackData,omitempty"`
16884
16885 ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
16886
16887 Text string `json:"text,omitempty"`
16888
16889
16890
16891
16892
16893 ForceSendFields []string `json:"-"`
16894
16895
16896
16897
16898 NullFields []string `json:"-"`
16899 }
16900
16901 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
16902 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
16903 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16904 }
16905
16906
16907
16908
16909 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
16910
16911
16912
16913 PhoneNumber string `json:"phoneNumber,omitempty"`
16914
16915
16916
16917
16918
16919 ForceSendFields []string `json:"-"`
16920
16921
16922
16923
16924 NullFields []string `json:"-"`
16925 }
16926
16927 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
16928 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
16929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16930 }
16931
16932
16933
16934
16935
16936
16937 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
16938
16939 Uri string `json:"uri,omitempty"`
16940
16941
16942
16943
16944
16945 ForceSendFields []string `json:"-"`
16946
16947
16948
16949
16950 NullFields []string `json:"-"`
16951 }
16952
16953 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
16954 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
16955 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16956 }
16957
16958
16959
16960
16961 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
16962 }
16963
16964
16965
16966
16967 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
16968
16969
16970
16971 PostbackData string `json:"postbackData,omitempty"`
16972
16973 Text string `json:"text,omitempty"`
16974
16975
16976
16977
16978
16979 ForceSendFields []string `json:"-"`
16980
16981
16982
16983
16984 NullFields []string `json:"-"`
16985 }
16986
16987 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
16988 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
16989 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16990 }
16991
16992
16993
16994
16995 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
16996
16997 Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
16998
16999 Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
17000
17001
17002
17003
17004
17005 ForceSendFields []string `json:"-"`
17006
17007
17008
17009
17010 NullFields []string `json:"-"`
17011 }
17012
17013 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
17014 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
17015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17016 }
17017
17018
17019
17020 type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
17021
17022 RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
17023
17024 Text string `json:"text,omitempty"`
17025
17026
17027
17028
17029
17030 ForceSendFields []string `json:"-"`
17031
17032
17033
17034
17035 NullFields []string `json:"-"`
17036 }
17037
17038 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
17039 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
17040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17041 }
17042
17043
17044
17045 type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
17046
17047
17048 Key string `json:"key,omitempty"`
17049
17050
17051 Synonyms []string `json:"synonyms,omitempty"`
17052
17053
17054
17055
17056
17057 ForceSendFields []string `json:"-"`
17058
17059
17060
17061
17062 NullFields []string `json:"-"`
17063 }
17064
17065 func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
17066 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
17067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17068 }
17069
17070
17071
17072 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
17073
17074 DisplayText string `json:"displayText,omitempty"`
17075
17076
17077
17078 Ssml string `json:"ssml,omitempty"`
17079
17080
17081 TextToSpeech string `json:"textToSpeech,omitempty"`
17082
17083
17084
17085
17086
17087 ForceSendFields []string `json:"-"`
17088
17089
17090
17091
17092 NullFields []string `json:"-"`
17093 }
17094
17095 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
17096 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
17097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17098 }
17099
17100
17101
17102
17103
17104
17105 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
17106
17107 SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
17108
17109
17110
17111
17112
17113 ForceSendFields []string `json:"-"`
17114
17115
17116
17117
17118 NullFields []string `json:"-"`
17119 }
17120
17121 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
17122 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
17123 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17124 }
17125
17126
17127
17128 type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
17129
17130 Title string `json:"title,omitempty"`
17131
17132
17133
17134
17135
17136 ForceSendFields []string `json:"-"`
17137
17138
17139
17140
17141 NullFields []string `json:"-"`
17142 }
17143
17144 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
17145 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
17146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17147 }
17148
17149
17150
17151 type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
17152
17153 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
17154
17155
17156
17157
17158
17159 ForceSendFields []string `json:"-"`
17160
17161
17162
17163
17164 NullFields []string `json:"-"`
17165 }
17166
17167 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
17168 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
17169 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17170 }
17171
17172
17173
17174 type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
17175
17176 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
17177
17178
17179 ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
17180
17181 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
17182
17183 Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
17184
17185 Subtitle string `json:"subtitle,omitempty"`
17186
17187 Title string `json:"title,omitempty"`
17188
17189
17190
17191
17192
17193 ForceSendFields []string `json:"-"`
17194
17195
17196
17197
17198 NullFields []string `json:"-"`
17199 }
17200
17201 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
17202 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
17203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17204 }
17205
17206
17207
17208 type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
17209
17210 Text string `json:"text,omitempty"`
17211
17212
17213
17214
17215
17216 ForceSendFields []string `json:"-"`
17217
17218
17219
17220
17221 NullFields []string `json:"-"`
17222 }
17223
17224 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
17225 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
17226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17227 }
17228
17229
17230 type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
17231
17232 Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
17233
17234 DividerAfter bool `json:"dividerAfter,omitempty"`
17235
17236
17237
17238
17239
17240 ForceSendFields []string `json:"-"`
17241
17242
17243
17244
17245 NullFields []string `json:"-"`
17246 }
17247
17248 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
17249 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
17250 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17251 }
17252
17253
17254
17255 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
17256
17257
17258
17259
17260
17261
17262
17263
17264
17265 AudioUri string `json:"audioUri,omitempty"`
17266
17267
17268
17269
17270
17271 ForceSendFields []string `json:"-"`
17272
17273
17274
17275
17276 NullFields []string `json:"-"`
17277 }
17278
17279 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
17280 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
17281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17282 }
17283
17284
17285
17286
17287
17288
17289 type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
17290
17291
17292 Ssml string `json:"ssml,omitempty"`
17293
17294 Text string `json:"text,omitempty"`
17295
17296
17297
17298
17299
17300 ForceSendFields []string `json:"-"`
17301
17302
17303
17304
17305 NullFields []string `json:"-"`
17306 }
17307
17308 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
17309 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
17310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17311 }
17312
17313
17314
17315 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
17316
17317
17318
17319 PhoneNumber string `json:"phoneNumber,omitempty"`
17320
17321
17322
17323
17324
17325 ForceSendFields []string `json:"-"`
17326
17327
17328
17329
17330 NullFields []string `json:"-"`
17331 }
17332
17333 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
17334 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
17335 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17336 }
17337
17338
17339 type GoogleCloudDialogflowV2beta1IntentMessageText struct {
17340
17341 Text []string `json:"text,omitempty"`
17342
17343
17344
17345
17346
17347 ForceSendFields []string `json:"-"`
17348
17349
17350
17351
17352 NullFields []string `json:"-"`
17353 }
17354
17355 func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
17356 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
17357 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17358 }
17359
17360
17361 type GoogleCloudDialogflowV2beta1IntentParameter struct {
17362
17363
17364
17365 DefaultValue string `json:"defaultValue,omitempty"`
17366
17367 DisplayName string `json:"displayName,omitempty"`
17368
17369
17370
17371 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
17372
17373
17374 IsList bool `json:"isList,omitempty"`
17375
17376
17377
17378 Mandatory bool `json:"mandatory,omitempty"`
17379
17380 Name string `json:"name,omitempty"`
17381
17382
17383 Prompts []string `json:"prompts,omitempty"`
17384
17385
17386
17387
17388 Value string `json:"value,omitempty"`
17389
17390
17391
17392
17393
17394 ForceSendFields []string `json:"-"`
17395
17396
17397
17398
17399 NullFields []string `json:"-"`
17400 }
17401
17402 func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
17403 type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
17404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17405 }
17406
17407
17408
17409 type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
17410
17411
17412
17413 Description string `json:"description,omitempty"`
17414
17415 DisplayName string `json:"displayName,omitempty"`
17416
17417
17418 IntentV2 string `json:"intentV2,omitempty"`
17419
17420
17421
17422
17423
17424 ForceSendFields []string `json:"-"`
17425
17426
17427
17428
17429 NullFields []string `json:"-"`
17430 }
17431
17432 func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
17433 type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
17434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17435 }
17436
17437
17438
17439 type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
17440
17441 Name string `json:"name,omitempty"`
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454 Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
17455
17456
17457
17458 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
17459
17460
17461
17462
17463
17464
17465
17466
17467
17468
17469
17470
17471 Type string `json:"type,omitempty"`
17472
17473
17474
17475
17476
17477 ForceSendFields []string `json:"-"`
17478
17479
17480
17481
17482 NullFields []string `json:"-"`
17483 }
17484
17485 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
17486 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
17487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17488 }
17489
17490
17491
17492 type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
17493
17494
17495
17496 Alias string `json:"alias,omitempty"`
17497
17498
17499 EntityType string `json:"entityType,omitempty"`
17500
17501 Text string `json:"text,omitempty"`
17502
17503
17504
17505
17506 UserDefined bool `json:"userDefined,omitempty"`
17507
17508
17509
17510
17511
17512 ForceSendFields []string `json:"-"`
17513
17514
17515
17516
17517 NullFields []string `json:"-"`
17518 }
17519
17520 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
17521 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
17522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17523 }
17524
17525
17526
17527 type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
17528
17529 Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
17530
17531
17532
17533
17534
17535 ForceSendFields []string `json:"-"`
17536
17537
17538
17539
17540 NullFields []string `json:"-"`
17541 }
17542
17543 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
17544 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
17545 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17546 }
17547
17548
17549
17550 type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
17551
17552
17553 Answer string `json:"answer,omitempty"`
17554
17555
17556 FaqQuestion string `json:"faqQuestion,omitempty"`
17557
17558
17559
17560
17561
17562
17563
17564 MatchConfidence float64 `json:"matchConfidence,omitempty"`
17565
17566
17567
17568
17569
17570
17571
17572
17573
17574
17575
17576
17577 MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
17578
17579
17580 Source string `json:"source,omitempty"`
17581
17582
17583
17584
17585
17586 ForceSendFields []string `json:"-"`
17587
17588
17589
17590
17591 NullFields []string `json:"-"`
17592 }
17593
17594 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
17595 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
17596 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17597 }
17598
17599 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
17600 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
17601 var s1 struct {
17602 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
17603 *NoMethod
17604 }
17605 s1.NoMethod = (*NoMethod)(s)
17606 if err := json.Unmarshal(data, &s1); err != nil {
17607 return err
17608 }
17609 s.MatchConfidence = float64(s1.MatchConfidence)
17610 return nil
17611 }
17612
17613
17614
17615 type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
17616
17617
17618 ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
17619
17620
17621 KnowledgeBase string `json:"knowledgeBase,omitempty"`
17622
17623
17624
17625
17626
17627
17628
17629 State string `json:"state,omitempty"`
17630
17631
17632
17633
17634
17635 ForceSendFields []string `json:"-"`
17636
17637
17638
17639
17640 NullFields []string `json:"-"`
17641 }
17642
17643 func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
17644 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
17645 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17646 }
17647
17648
17649
17650 type GoogleCloudDialogflowV2beta1Message struct {
17651
17652 Content string `json:"content,omitempty"`
17653
17654
17655 CreateTime string `json:"createTime,omitempty"`
17656
17657
17658
17659 LanguageCode string `json:"languageCode,omitempty"`
17660
17661 MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
17662
17663
17664 Name string `json:"name,omitempty"`
17665
17666 Participant string `json:"participant,omitempty"`
17667
17668
17669
17670
17671
17672
17673
17674
17675
17676 ParticipantRole string `json:"participantRole,omitempty"`
17677
17678 SendTime string `json:"sendTime,omitempty"`
17679
17680
17681 SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
17682
17683
17684
17685
17686
17687 ForceSendFields []string `json:"-"`
17688
17689
17690
17691
17692 NullFields []string `json:"-"`
17693 }
17694
17695 func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
17696 type NoMethod GoogleCloudDialogflowV2beta1Message
17697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17698 }
17699
17700
17701
17702 type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
17703
17704
17705 ContainEntities bool `json:"containEntities,omitempty"`
17706
17707
17708
17709 Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
17710
17711
17712
17713
17714
17715 ForceSendFields []string `json:"-"`
17716
17717
17718
17719
17720 NullFields []string `json:"-"`
17721 }
17722
17723 func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
17724 type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
17725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17726 }
17727
17728
17729
17730
17731 type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
17732
17733
17734
17735
17736
17737
17738
17739
17740 Payload googleapi.RawMessage `json:"payload,omitempty"`
17741
17742
17743 Source string `json:"source,omitempty"`
17744
17745
17746 Version string `json:"version,omitempty"`
17747
17748
17749
17750
17751
17752 ForceSendFields []string `json:"-"`
17753
17754
17755
17756
17757 NullFields []string `json:"-"`
17758 }
17759
17760 func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
17761 type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
17762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17763 }
17764
17765
17766
17767 type GoogleCloudDialogflowV2beta1QueryResult struct {
17768
17769 Action string `json:"action,omitempty"`
17770
17771
17772
17773
17774 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
17775
17776
17777
17778
17779 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
17780
17781
17782
17783
17784 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
17785
17786 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
17787
17788
17789
17790 FulfillmentText string `json:"fulfillmentText,omitempty"`
17791
17792
17793
17794 Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
17795
17796
17797
17798
17799
17800
17801
17802
17803 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
17804
17805
17806 KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
17807
17808
17809
17810
17811 LanguageCode string `json:"languageCode,omitempty"`
17812
17813
17814
17815 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
17816
17817
17818
17819
17820
17821
17822
17823
17824
17825 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
17826
17827
17828
17829
17830
17831
17832 QueryText string `json:"queryText,omitempty"`
17833
17834
17835 SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
17836
17837
17838
17839
17840
17841
17842
17843 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
17844
17845
17846 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
17847
17848
17849 WebhookSource string `json:"webhookSource,omitempty"`
17850
17851
17852
17853
17854
17855 ForceSendFields []string `json:"-"`
17856
17857
17858
17859
17860 NullFields []string `json:"-"`
17861 }
17862
17863 func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
17864 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
17865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17866 }
17867
17868 func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
17869 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
17870 var s1 struct {
17871 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
17872 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
17873 *NoMethod
17874 }
17875 s1.NoMethod = (*NoMethod)(s)
17876 if err := json.Unmarshal(data, &s1); err != nil {
17877 return err
17878 }
17879 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
17880 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
17881 return nil
17882 }
17883
17884
17885
17886
17887
17888
17889 type GoogleCloudDialogflowV2beta1Sentiment struct {
17890
17891
17892
17893 Magnitude float64 `json:"magnitude,omitempty"`
17894
17895
17896 Score float64 `json:"score,omitempty"`
17897
17898
17899
17900
17901
17902 ForceSendFields []string `json:"-"`
17903
17904
17905
17906
17907 NullFields []string `json:"-"`
17908 }
17909
17910 func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
17911 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17913 }
17914
17915 func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
17916 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17917 var s1 struct {
17918 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
17919 Score gensupport.JSONFloat64 `json:"score"`
17920 *NoMethod
17921 }
17922 s1.NoMethod = (*NoMethod)(s)
17923 if err := json.Unmarshal(data, &s1); err != nil {
17924 return err
17925 }
17926 s.Magnitude = float64(s1.Magnitude)
17927 s.Score = float64(s1.Score)
17928 return nil
17929 }
17930
17931
17932
17933
17934
17935
17936
17937
17938
17939
17940 type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
17941
17942 QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
17943
17944
17945
17946
17947
17948 ForceSendFields []string `json:"-"`
17949
17950
17951
17952
17953 NullFields []string `json:"-"`
17954 }
17955
17956 func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
17957 type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
17958 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17959 }
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969 type GoogleCloudDialogflowV2beta1SessionEntityType struct {
17970
17971
17972 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985
17986
17987
17988
17989 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
17990
17991
17992
17993
17994
17995
17996
17997
17998
17999
18000 Name string `json:"name,omitempty"`
18001
18002
18003
18004
18005
18006 ForceSendFields []string `json:"-"`
18007
18008
18009
18010
18011 NullFields []string `json:"-"`
18012 }
18013
18014 func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
18015 type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
18016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18017 }
18018
18019
18020
18021 type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
18022
18023
18024 ConversationProfile string `json:"conversationProfile,omitempty"`
18025
18026
18027 CreateTime string `json:"createTime,omitempty"`
18028
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038 ParticipantRole string `json:"participantRole,omitempty"`
18039
18040
18041
18042
18043
18044
18045
18046
18047
18048
18049
18050
18051
18052
18053 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
18054
18055
18056
18057
18058
18059 ForceSendFields []string `json:"-"`
18060
18061
18062
18063
18064 NullFields []string `json:"-"`
18065 }
18066
18067 func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
18068 type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
18069 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18070 }
18071
18072
18073
18074 type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
18075
18076
18077 AnswerRecord string `json:"answerRecord,omitempty"`
18078
18079
18080
18081 Confidence float64 `json:"confidence,omitempty"`
18082
18083 Reply string `json:"reply,omitempty"`
18084
18085
18086
18087
18088
18089 ForceSendFields []string `json:"-"`
18090
18091
18092
18093
18094 NullFields []string `json:"-"`
18095 }
18096
18097 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
18098 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
18099 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18100 }
18101
18102 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
18103 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
18104 var s1 struct {
18105 Confidence gensupport.JSONFloat64 `json:"confidence"`
18106 *NoMethod
18107 }
18108 s1.NoMethod = (*NoMethod)(s)
18109 if err := json.Unmarshal(data, &s1); err != nil {
18110 return err
18111 }
18112 s.Confidence = float64(s1.Confidence)
18113 return nil
18114 }
18115
18116
18117
18118 type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
18119
18120 ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
18121
18122
18123
18124
18125 ContextSize int64 `json:"contextSize,omitempty"`
18126
18127
18128 LatestMessage string `json:"latestMessage,omitempty"`
18129
18130
18131
18132
18133
18134 ForceSendFields []string `json:"-"`
18135
18136
18137
18138
18139 NullFields []string `json:"-"`
18140 }
18141
18142 func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
18143 type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
18144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18145 }
18146
18147
18148
18149 type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
18150
18151
18152
18153
18154 ContextSize int64 `json:"contextSize,omitempty"`
18155
18156
18157
18158 DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
18159
18160
18161 LatestMessage string `json:"latestMessage,omitempty"`
18162
18163
18164
18165
18166
18167 ForceSendFields []string `json:"-"`
18168
18169
18170
18171
18172 NullFields []string `json:"-"`
18173 }
18174
18175 func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
18176 type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
18177 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18178 }
18179
18180
18181
18182 type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
18183
18184
18185
18186
18187 ContextSize int64 `json:"contextSize,omitempty"`
18188
18189 FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
18190
18191
18192 LatestMessage string `json:"latestMessage,omitempty"`
18193
18194
18195
18196
18197
18198 ForceSendFields []string `json:"-"`
18199
18200
18201
18202
18203 NullFields []string `json:"-"`
18204 }
18205
18206 func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
18207 type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
18208 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18209 }
18210
18211
18212
18213 type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
18214
18215
18216
18217
18218 ContextSize int64 `json:"contextSize,omitempty"`
18219
18220
18221 LatestMessage string `json:"latestMessage,omitempty"`
18222
18223
18224
18225 SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
18226
18227
18228
18229
18230
18231 ForceSendFields []string `json:"-"`
18232
18233
18234
18235
18236 NullFields []string `json:"-"`
18237 }
18238
18239 func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
18240 type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
18241 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18242 }
18243
18244
18245
18246
18247
18248 type GoogleCloudDialogflowV2beta1SuggestionResult struct {
18249
18250 Error *GoogleRpcStatus `json:"error,omitempty"`
18251
18252
18253 SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
18254
18255
18256 SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
18257
18258
18259 SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
18260
18261
18262 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
18263
18264
18265 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
18266
18267
18268
18269
18270
18271 ForceSendFields []string `json:"-"`
18272
18273
18274
18275
18276 NullFields []string `json:"-"`
18277 }
18278
18279 func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
18280 type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
18281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18282 }
18283
18284
18285
18286 type GoogleCloudDialogflowV2beta1WebhookRequest struct {
18287
18288 AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
18289
18290
18291 OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
18292
18293
18294 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
18295
18296
18297 ResponseId string `json:"responseId,omitempty"`
18298
18299
18300
18301
18302
18303 Session string `json:"session,omitempty"`
18304
18305
18306
18307
18308
18309 ForceSendFields []string `json:"-"`
18310
18311
18312
18313
18314 NullFields []string `json:"-"`
18315 }
18316
18317 func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
18318 type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
18319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18320 }
18321
18322
18323
18324
18325
18326
18327
18328
18329
18330 type GoogleCloudDialogflowV2beta1WebhookResponse struct {
18331
18332
18333
18334 EndInteraction bool `json:"endInteraction,omitempty"`
18335
18336
18337
18338 FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
18339
18340
18341
18342 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
18343
18344
18345
18346
18347 FulfillmentText string `json:"fulfillmentText,omitempty"`
18348
18349
18350
18351
18352 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
18353
18354
18355
18356
18357 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
18358
18359
18360
18361
18362
18363
18364
18365
18366
18367 Payload googleapi.RawMessage `json:"payload,omitempty"`
18368
18369
18370
18371
18372
18373 SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
18374
18375
18376
18377
18378 Source string `json:"source,omitempty"`
18379
18380
18381
18382
18383
18384 ForceSendFields []string `json:"-"`
18385
18386
18387
18388
18389 NullFields []string `json:"-"`
18390 }
18391
18392 func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
18393 type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
18394 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18395 }
18396
18397
18398
18399
18400 type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
18401
18402 TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
18403
18404
18405
18406
18407
18408 ForceSendFields []string `json:"-"`
18409
18410
18411
18412
18413 NullFields []string `json:"-"`
18414 }
18415
18416 func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
18417 type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
18418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18419 }
18420
18421
18422
18423 type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
18424
18425 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18426
18427
18428
18429
18430
18431 ForceSendFields []string `json:"-"`
18432
18433
18434
18435
18436 NullFields []string `json:"-"`
18437 }
18438
18439 func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18440 type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
18441 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18442 }
18443
18444
18445
18446 type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
18447
18448 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18449
18450
18451
18452
18453
18454 ForceSendFields []string `json:"-"`
18455
18456
18457
18458
18459 NullFields []string `json:"-"`
18460 }
18461
18462 func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18463 type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
18464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18465 }
18466
18467
18468
18469 type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
18470
18471
18472
18473
18474
18475
18476
18477 State string `json:"state,omitempty"`
18478
18479
18480
18481
18482
18483 ForceSendFields []string `json:"-"`
18484
18485
18486
18487
18488 NullFields []string `json:"-"`
18489 }
18490
18491 func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
18492 type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
18493 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18494 }
18495
18496
18497
18498 type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
18499
18500 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18501
18502
18503
18504
18505
18506 ForceSendFields []string `json:"-"`
18507
18508
18509
18510
18511 NullFields []string `json:"-"`
18512 }
18513
18514 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
18515 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
18516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18517 }
18518
18519
18520
18521 type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
18522
18523 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
18524
18525
18526
18527
18528
18529 ForceSendFields []string `json:"-"`
18530
18531
18532
18533
18534 NullFields []string `json:"-"`
18535 }
18536
18537 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
18538 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
18539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18540 }
18541
18542
18543
18544 type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
18545
18546 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18547
18548
18549
18550
18551
18552 ForceSendFields []string `json:"-"`
18553
18554
18555
18556
18557 NullFields []string `json:"-"`
18558 }
18559
18560 func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18561 type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
18562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18563 }
18564
18565
18566
18567 type GoogleCloudDialogflowV3alpha1TurnSignals struct {
18568
18569 AgentEscalated bool `json:"agentEscalated,omitempty"`
18570
18571 DtmfUsed bool `json:"dtmfUsed,omitempty"`
18572
18573
18574
18575
18576
18577
18578 FailureReasons []string `json:"failureReasons,omitempty"`
18579
18580 NoMatch bool `json:"noMatch,omitempty"`
18581
18582 NoUserInput bool `json:"noUserInput,omitempty"`
18583
18584 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
18585
18586
18587 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
18588
18589
18590 SentimentScore float64 `json:"sentimentScore,omitempty"`
18591
18592
18593 TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
18594
18595 UserEscalated bool `json:"userEscalated,omitempty"`
18596
18597
18598 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
18599
18600
18601
18602
18603
18604 ForceSendFields []string `json:"-"`
18605
18606
18607
18608
18609 NullFields []string `json:"-"`
18610 }
18611
18612 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
18613 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18615 }
18616
18617 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
18618 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18619 var s1 struct {
18620 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
18621 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
18622 *NoMethod
18623 }
18624 s1.NoMethod = (*NoMethod)(s)
18625 if err := json.Unmarshal(data, &s1); err != nil {
18626 return err
18627 }
18628 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
18629 s.SentimentScore = float64(s1.SentimentScore)
18630 return nil
18631 }
18632
18633
18634
18635 type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
18636
18637 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18638
18639
18640
18641
18642
18643 ForceSendFields []string `json:"-"`
18644
18645
18646
18647
18648 NullFields []string `json:"-"`
18649 }
18650
18651 func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18652 type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
18653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18654 }
18655
18656
18657
18658 type GoogleCloudLocationListLocationsResponse struct {
18659
18660
18661 Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
18662
18663 NextPageToken string `json:"nextPageToken,omitempty"`
18664
18665
18666 googleapi.ServerResponse `json:"-"`
18667
18668
18669
18670
18671
18672 ForceSendFields []string `json:"-"`
18673
18674
18675
18676
18677 NullFields []string `json:"-"`
18678 }
18679
18680 func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
18681 type NoMethod GoogleCloudLocationListLocationsResponse
18682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18683 }
18684
18685
18686
18687 type GoogleCloudLocationLocation struct {
18688
18689
18690 DisplayName string `json:"displayName,omitempty"`
18691
18692
18693 Labels map[string]string `json:"labels,omitempty"`
18694
18695 LocationId string `json:"locationId,omitempty"`
18696
18697
18698 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18699
18700
18701
18702 Name string `json:"name,omitempty"`
18703
18704
18705 googleapi.ServerResponse `json:"-"`
18706
18707
18708
18709
18710
18711 ForceSendFields []string `json:"-"`
18712
18713
18714
18715
18716 NullFields []string `json:"-"`
18717 }
18718
18719 func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
18720 type NoMethod GoogleCloudLocationLocation
18721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18722 }
18723
18724
18725
18726 type GoogleLongrunningListOperationsResponse struct {
18727
18728 NextPageToken string `json:"nextPageToken,omitempty"`
18729
18730
18731 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
18732
18733
18734 googleapi.ServerResponse `json:"-"`
18735
18736
18737
18738
18739
18740 ForceSendFields []string `json:"-"`
18741
18742
18743
18744
18745 NullFields []string `json:"-"`
18746 }
18747
18748 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
18749 type NoMethod GoogleLongrunningListOperationsResponse
18750 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18751 }
18752
18753
18754
18755 type GoogleLongrunningOperation struct {
18756
18757
18758
18759 Done bool `json:"done,omitempty"`
18760
18761 Error *GoogleRpcStatus `json:"error,omitempty"`
18762
18763
18764
18765
18766 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18767
18768
18769
18770 Name string `json:"name,omitempty"`
18771
18772
18773
18774
18775
18776
18777
18778 Response googleapi.RawMessage `json:"response,omitempty"`
18779
18780
18781 googleapi.ServerResponse `json:"-"`
18782
18783
18784
18785
18786
18787 ForceSendFields []string `json:"-"`
18788
18789
18790
18791
18792 NullFields []string `json:"-"`
18793 }
18794
18795 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
18796 type NoMethod GoogleLongrunningOperation
18797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18798 }
18799
18800
18801
18802
18803
18804
18805 type GoogleProtobufEmpty struct {
18806
18807 googleapi.ServerResponse `json:"-"`
18808 }
18809
18810
18811
18812
18813
18814
18815
18816 type GoogleRpcStatus struct {
18817
18818 Code int64 `json:"code,omitempty"`
18819
18820
18821 Details []googleapi.RawMessage `json:"details,omitempty"`
18822
18823
18824
18825 Message string `json:"message,omitempty"`
18826
18827
18828
18829
18830
18831 ForceSendFields []string `json:"-"`
18832
18833
18834
18835
18836 NullFields []string `json:"-"`
18837 }
18838
18839 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
18840 type NoMethod GoogleRpcStatus
18841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18842 }
18843
18844
18845
18846
18847
18848 type GoogleTypeLatLng struct {
18849
18850 Latitude float64 `json:"latitude,omitempty"`
18851
18852
18853 Longitude float64 `json:"longitude,omitempty"`
18854
18855
18856
18857
18858
18859 ForceSendFields []string `json:"-"`
18860
18861
18862
18863
18864 NullFields []string `json:"-"`
18865 }
18866
18867 func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
18868 type NoMethod GoogleTypeLatLng
18869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18870 }
18871
18872 func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
18873 type NoMethod GoogleTypeLatLng
18874 var s1 struct {
18875 Latitude gensupport.JSONFloat64 `json:"latitude"`
18876 Longitude gensupport.JSONFloat64 `json:"longitude"`
18877 *NoMethod
18878 }
18879 s1.NoMethod = (*NoMethod)(s)
18880 if err := json.Unmarshal(data, &s1); err != nil {
18881 return err
18882 }
18883 s.Latitude = float64(s1.Latitude)
18884 s.Longitude = float64(s1.Longitude)
18885 return nil
18886 }
18887
18888 type ProjectsDeleteAgentCall struct {
18889 s *Service
18890 parent string
18891 urlParams_ gensupport.URLParams
18892 ctx_ context.Context
18893 header_ http.Header
18894 }
18895
18896
18897
18898
18899
18900 func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall {
18901 c := &ProjectsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18902 c.parent = parent
18903 return c
18904 }
18905
18906
18907
18908
18909 func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall {
18910 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18911 return c
18912 }
18913
18914
18915 func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall {
18916 c.ctx_ = ctx
18917 return c
18918 }
18919
18920
18921
18922 func (c *ProjectsDeleteAgentCall) Header() http.Header {
18923 if c.header_ == nil {
18924 c.header_ = make(http.Header)
18925 }
18926 return c.header_
18927 }
18928
18929 func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
18930 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18931 var body io.Reader = nil
18932 c.urlParams_.Set("alt", alt)
18933 c.urlParams_.Set("prettyPrint", "false")
18934 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
18935 urls += "?" + c.urlParams_.Encode()
18936 req, err := http.NewRequest("DELETE", urls, body)
18937 if err != nil {
18938 return nil, err
18939 }
18940 req.Header = reqHeaders
18941 googleapi.Expand(req.URL, map[string]string{
18942 "parent": c.parent,
18943 })
18944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18945 }
18946
18947
18948
18949
18950
18951
18952
18953 func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18954 gensupport.SetOptions(c.urlParams_, opts...)
18955 res, err := c.doRequest("json")
18956 if res != nil && res.StatusCode == http.StatusNotModified {
18957 if res.Body != nil {
18958 res.Body.Close()
18959 }
18960 return nil, gensupport.WrapError(&googleapi.Error{
18961 Code: res.StatusCode,
18962 Header: res.Header,
18963 })
18964 }
18965 if err != nil {
18966 return nil, err
18967 }
18968 defer googleapi.CloseBody(res)
18969 if err := googleapi.CheckResponse(res); err != nil {
18970 return nil, gensupport.WrapError(err)
18971 }
18972 ret := &GoogleProtobufEmpty{
18973 ServerResponse: googleapi.ServerResponse{
18974 Header: res.Header,
18975 HTTPStatusCode: res.StatusCode,
18976 },
18977 }
18978 target := &ret
18979 if err := gensupport.DecodeResponse(target, res); err != nil {
18980 return nil, err
18981 }
18982 return ret, nil
18983 }
18984
18985 type ProjectsGetAgentCall struct {
18986 s *Service
18987 parent string
18988 urlParams_ gensupport.URLParams
18989 ifNoneMatch_ string
18990 ctx_ context.Context
18991 header_ http.Header
18992 }
18993
18994
18995
18996
18997
18998 func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall {
18999 c := &ProjectsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19000 c.parent = parent
19001 return c
19002 }
19003
19004
19005
19006
19007 func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall {
19008 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19009 return c
19010 }
19011
19012
19013
19014
19015 func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall {
19016 c.ifNoneMatch_ = entityTag
19017 return c
19018 }
19019
19020
19021 func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall {
19022 c.ctx_ = ctx
19023 return c
19024 }
19025
19026
19027
19028 func (c *ProjectsGetAgentCall) Header() http.Header {
19029 if c.header_ == nil {
19030 c.header_ = make(http.Header)
19031 }
19032 return c.header_
19033 }
19034
19035 func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) {
19036 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19037 if c.ifNoneMatch_ != "" {
19038 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19039 }
19040 var body io.Reader = nil
19041 c.urlParams_.Set("alt", alt)
19042 c.urlParams_.Set("prettyPrint", "false")
19043 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
19044 urls += "?" + c.urlParams_.Encode()
19045 req, err := http.NewRequest("GET", urls, body)
19046 if err != nil {
19047 return nil, err
19048 }
19049 req.Header = reqHeaders
19050 googleapi.Expand(req.URL, map[string]string{
19051 "parent": c.parent,
19052 })
19053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19054 }
19055
19056
19057
19058
19059
19060
19061
19062 func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
19063 gensupport.SetOptions(c.urlParams_, opts...)
19064 res, err := c.doRequest("json")
19065 if res != nil && res.StatusCode == http.StatusNotModified {
19066 if res.Body != nil {
19067 res.Body.Close()
19068 }
19069 return nil, gensupport.WrapError(&googleapi.Error{
19070 Code: res.StatusCode,
19071 Header: res.Header,
19072 })
19073 }
19074 if err != nil {
19075 return nil, err
19076 }
19077 defer googleapi.CloseBody(res)
19078 if err := googleapi.CheckResponse(res); err != nil {
19079 return nil, gensupport.WrapError(err)
19080 }
19081 ret := &GoogleCloudDialogflowV2Agent{
19082 ServerResponse: googleapi.ServerResponse{
19083 Header: res.Header,
19084 HTTPStatusCode: res.StatusCode,
19085 },
19086 }
19087 target := &ret
19088 if err := gensupport.DecodeResponse(target, res); err != nil {
19089 return nil, err
19090 }
19091 return ret, nil
19092 }
19093
19094 type ProjectsSetAgentCall struct {
19095 s *Service
19096 parent string
19097 googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent
19098 urlParams_ gensupport.URLParams
19099 ctx_ context.Context
19100 header_ http.Header
19101 }
19102
19103
19104
19105
19106
19107
19108 func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent) *ProjectsSetAgentCall {
19109 c := &ProjectsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19110 c.parent = parent
19111 c.googleclouddialogflowv2agent = googleclouddialogflowv2agent
19112 return c
19113 }
19114
19115
19116
19117 func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall {
19118 c.urlParams_.Set("updateMask", updateMask)
19119 return c
19120 }
19121
19122
19123
19124
19125 func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall {
19126 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19127 return c
19128 }
19129
19130
19131 func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall {
19132 c.ctx_ = ctx
19133 return c
19134 }
19135
19136
19137
19138 func (c *ProjectsSetAgentCall) Header() http.Header {
19139 if c.header_ == nil {
19140 c.header_ = make(http.Header)
19141 }
19142 return c.header_
19143 }
19144
19145 func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) {
19146 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19147 var body io.Reader = nil
19148 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2agent)
19149 if err != nil {
19150 return nil, err
19151 }
19152 c.urlParams_.Set("alt", alt)
19153 c.urlParams_.Set("prettyPrint", "false")
19154 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
19155 urls += "?" + c.urlParams_.Encode()
19156 req, err := http.NewRequest("POST", urls, body)
19157 if err != nil {
19158 return nil, err
19159 }
19160 req.Header = reqHeaders
19161 googleapi.Expand(req.URL, map[string]string{
19162 "parent": c.parent,
19163 })
19164 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19165 }
19166
19167
19168
19169
19170
19171
19172
19173 func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
19174 gensupport.SetOptions(c.urlParams_, opts...)
19175 res, err := c.doRequest("json")
19176 if res != nil && res.StatusCode == http.StatusNotModified {
19177 if res.Body != nil {
19178 res.Body.Close()
19179 }
19180 return nil, gensupport.WrapError(&googleapi.Error{
19181 Code: res.StatusCode,
19182 Header: res.Header,
19183 })
19184 }
19185 if err != nil {
19186 return nil, err
19187 }
19188 defer googleapi.CloseBody(res)
19189 if err := googleapi.CheckResponse(res); err != nil {
19190 return nil, gensupport.WrapError(err)
19191 }
19192 ret := &GoogleCloudDialogflowV2Agent{
19193 ServerResponse: googleapi.ServerResponse{
19194 Header: res.Header,
19195 HTTPStatusCode: res.StatusCode,
19196 },
19197 }
19198 target := &ret
19199 if err := gensupport.DecodeResponse(target, res); err != nil {
19200 return nil, err
19201 }
19202 return ret, nil
19203 }
19204
19205 type ProjectsAgentExportCall struct {
19206 s *Service
19207 parent string
19208 googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest
19209 urlParams_ gensupport.URLParams
19210 ctx_ context.Context
19211 header_ http.Header
19212 }
19213
19214
19215
19216
19217
19218
19219
19220
19221
19222
19223
19224 func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest) *ProjectsAgentExportCall {
19225 c := &ProjectsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19226 c.parent = parent
19227 c.googleclouddialogflowv2exportagentrequest = googleclouddialogflowv2exportagentrequest
19228 return c
19229 }
19230
19231
19232
19233
19234 func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall {
19235 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19236 return c
19237 }
19238
19239
19240 func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall {
19241 c.ctx_ = ctx
19242 return c
19243 }
19244
19245
19246
19247 func (c *ProjectsAgentExportCall) Header() http.Header {
19248 if c.header_ == nil {
19249 c.header_ = make(http.Header)
19250 }
19251 return c.header_
19252 }
19253
19254 func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) {
19255 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19256 var body io.Reader = nil
19257 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportagentrequest)
19258 if err != nil {
19259 return nil, err
19260 }
19261 c.urlParams_.Set("alt", alt)
19262 c.urlParams_.Set("prettyPrint", "false")
19263 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:export")
19264 urls += "?" + c.urlParams_.Encode()
19265 req, err := http.NewRequest("POST", urls, body)
19266 if err != nil {
19267 return nil, err
19268 }
19269 req.Header = reqHeaders
19270 googleapi.Expand(req.URL, map[string]string{
19271 "parent": c.parent,
19272 })
19273 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19274 }
19275
19276
19277
19278
19279
19280
19281
19282 func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19283 gensupport.SetOptions(c.urlParams_, opts...)
19284 res, err := c.doRequest("json")
19285 if res != nil && res.StatusCode == http.StatusNotModified {
19286 if res.Body != nil {
19287 res.Body.Close()
19288 }
19289 return nil, gensupport.WrapError(&googleapi.Error{
19290 Code: res.StatusCode,
19291 Header: res.Header,
19292 })
19293 }
19294 if err != nil {
19295 return nil, err
19296 }
19297 defer googleapi.CloseBody(res)
19298 if err := googleapi.CheckResponse(res); err != nil {
19299 return nil, gensupport.WrapError(err)
19300 }
19301 ret := &GoogleLongrunningOperation{
19302 ServerResponse: googleapi.ServerResponse{
19303 Header: res.Header,
19304 HTTPStatusCode: res.StatusCode,
19305 },
19306 }
19307 target := &ret
19308 if err := gensupport.DecodeResponse(target, res); err != nil {
19309 return nil, err
19310 }
19311 return ret, nil
19312 }
19313
19314 type ProjectsAgentGetFulfillmentCall struct {
19315 s *Service
19316 name string
19317 urlParams_ gensupport.URLParams
19318 ifNoneMatch_ string
19319 ctx_ context.Context
19320 header_ http.Header
19321 }
19322
19323
19324
19325
19326 func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall {
19327 c := &ProjectsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19328 c.name = name
19329 return c
19330 }
19331
19332
19333
19334
19335 func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall {
19336 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19337 return c
19338 }
19339
19340
19341
19342
19343 func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall {
19344 c.ifNoneMatch_ = entityTag
19345 return c
19346 }
19347
19348
19349 func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall {
19350 c.ctx_ = ctx
19351 return c
19352 }
19353
19354
19355
19356 func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header {
19357 if c.header_ == nil {
19358 c.header_ = make(http.Header)
19359 }
19360 return c.header_
19361 }
19362
19363 func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
19364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19365 if c.ifNoneMatch_ != "" {
19366 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19367 }
19368 var body io.Reader = nil
19369 c.urlParams_.Set("alt", alt)
19370 c.urlParams_.Set("prettyPrint", "false")
19371 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
19372 urls += "?" + c.urlParams_.Encode()
19373 req, err := http.NewRequest("GET", urls, body)
19374 if err != nil {
19375 return nil, err
19376 }
19377 req.Header = reqHeaders
19378 googleapi.Expand(req.URL, map[string]string{
19379 "name": c.name,
19380 })
19381 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19382 }
19383
19384
19385
19386
19387
19388
19389
19390 func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
19391 gensupport.SetOptions(c.urlParams_, opts...)
19392 res, err := c.doRequest("json")
19393 if res != nil && res.StatusCode == http.StatusNotModified {
19394 if res.Body != nil {
19395 res.Body.Close()
19396 }
19397 return nil, gensupport.WrapError(&googleapi.Error{
19398 Code: res.StatusCode,
19399 Header: res.Header,
19400 })
19401 }
19402 if err != nil {
19403 return nil, err
19404 }
19405 defer googleapi.CloseBody(res)
19406 if err := googleapi.CheckResponse(res); err != nil {
19407 return nil, gensupport.WrapError(err)
19408 }
19409 ret := &GoogleCloudDialogflowV2Fulfillment{
19410 ServerResponse: googleapi.ServerResponse{
19411 Header: res.Header,
19412 HTTPStatusCode: res.StatusCode,
19413 },
19414 }
19415 target := &ret
19416 if err := gensupport.DecodeResponse(target, res); err != nil {
19417 return nil, err
19418 }
19419 return ret, nil
19420 }
19421
19422 type ProjectsAgentGetValidationResultCall struct {
19423 s *Service
19424 parent string
19425 urlParams_ gensupport.URLParams
19426 ifNoneMatch_ string
19427 ctx_ context.Context
19428 header_ http.Header
19429 }
19430
19431
19432
19433
19434
19435
19436
19437 func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall {
19438 c := &ProjectsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19439 c.parent = parent
19440 return c
19441 }
19442
19443
19444
19445
19446
19447
19448 func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall {
19449 c.urlParams_.Set("languageCode", languageCode)
19450 return c
19451 }
19452
19453
19454
19455
19456 func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall {
19457 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19458 return c
19459 }
19460
19461
19462
19463
19464 func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall {
19465 c.ifNoneMatch_ = entityTag
19466 return c
19467 }
19468
19469
19470 func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall {
19471 c.ctx_ = ctx
19472 return c
19473 }
19474
19475
19476
19477 func (c *ProjectsAgentGetValidationResultCall) Header() http.Header {
19478 if c.header_ == nil {
19479 c.header_ = make(http.Header)
19480 }
19481 return c.header_
19482 }
19483
19484 func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
19485 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19486 if c.ifNoneMatch_ != "" {
19487 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19488 }
19489 var body io.Reader = nil
19490 c.urlParams_.Set("alt", alt)
19491 c.urlParams_.Set("prettyPrint", "false")
19492 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent/validationResult")
19493 urls += "?" + c.urlParams_.Encode()
19494 req, err := http.NewRequest("GET", urls, body)
19495 if err != nil {
19496 return nil, err
19497 }
19498 req.Header = reqHeaders
19499 googleapi.Expand(req.URL, map[string]string{
19500 "parent": c.parent,
19501 })
19502 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19503 }
19504
19505
19506
19507
19508
19509
19510
19511 func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ValidationResult, error) {
19512 gensupport.SetOptions(c.urlParams_, opts...)
19513 res, err := c.doRequest("json")
19514 if res != nil && res.StatusCode == http.StatusNotModified {
19515 if res.Body != nil {
19516 res.Body.Close()
19517 }
19518 return nil, gensupport.WrapError(&googleapi.Error{
19519 Code: res.StatusCode,
19520 Header: res.Header,
19521 })
19522 }
19523 if err != nil {
19524 return nil, err
19525 }
19526 defer googleapi.CloseBody(res)
19527 if err := googleapi.CheckResponse(res); err != nil {
19528 return nil, gensupport.WrapError(err)
19529 }
19530 ret := &GoogleCloudDialogflowV2ValidationResult{
19531 ServerResponse: googleapi.ServerResponse{
19532 Header: res.Header,
19533 HTTPStatusCode: res.StatusCode,
19534 },
19535 }
19536 target := &ret
19537 if err := gensupport.DecodeResponse(target, res); err != nil {
19538 return nil, err
19539 }
19540 return ret, nil
19541 }
19542
19543 type ProjectsAgentImportCall struct {
19544 s *Service
19545 parent string
19546 googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest
19547 urlParams_ gensupport.URLParams
19548 ctx_ context.Context
19549 header_ http.Header
19550 }
19551
19552
19553
19554
19555
19556
19557
19558
19559
19560
19561
19562
19563
19564
19565
19566
19567
19568
19569
19570
19571
19572
19573 func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest) *ProjectsAgentImportCall {
19574 c := &ProjectsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19575 c.parent = parent
19576 c.googleclouddialogflowv2importagentrequest = googleclouddialogflowv2importagentrequest
19577 return c
19578 }
19579
19580
19581
19582
19583 func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall {
19584 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19585 return c
19586 }
19587
19588
19589 func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall {
19590 c.ctx_ = ctx
19591 return c
19592 }
19593
19594
19595
19596 func (c *ProjectsAgentImportCall) Header() http.Header {
19597 if c.header_ == nil {
19598 c.header_ = make(http.Header)
19599 }
19600 return c.header_
19601 }
19602
19603 func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) {
19604 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19605 var body io.Reader = nil
19606 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importagentrequest)
19607 if err != nil {
19608 return nil, err
19609 }
19610 c.urlParams_.Set("alt", alt)
19611 c.urlParams_.Set("prettyPrint", "false")
19612 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:import")
19613 urls += "?" + c.urlParams_.Encode()
19614 req, err := http.NewRequest("POST", urls, body)
19615 if err != nil {
19616 return nil, err
19617 }
19618 req.Header = reqHeaders
19619 googleapi.Expand(req.URL, map[string]string{
19620 "parent": c.parent,
19621 })
19622 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19623 }
19624
19625
19626
19627
19628
19629
19630
19631 func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19632 gensupport.SetOptions(c.urlParams_, opts...)
19633 res, err := c.doRequest("json")
19634 if res != nil && res.StatusCode == http.StatusNotModified {
19635 if res.Body != nil {
19636 res.Body.Close()
19637 }
19638 return nil, gensupport.WrapError(&googleapi.Error{
19639 Code: res.StatusCode,
19640 Header: res.Header,
19641 })
19642 }
19643 if err != nil {
19644 return nil, err
19645 }
19646 defer googleapi.CloseBody(res)
19647 if err := googleapi.CheckResponse(res); err != nil {
19648 return nil, gensupport.WrapError(err)
19649 }
19650 ret := &GoogleLongrunningOperation{
19651 ServerResponse: googleapi.ServerResponse{
19652 Header: res.Header,
19653 HTTPStatusCode: res.StatusCode,
19654 },
19655 }
19656 target := &ret
19657 if err := gensupport.DecodeResponse(target, res); err != nil {
19658 return nil, err
19659 }
19660 return ret, nil
19661 }
19662
19663 type ProjectsAgentRestoreCall struct {
19664 s *Service
19665 parent string
19666 googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest
19667 urlParams_ gensupport.URLParams
19668 ctx_ context.Context
19669 header_ http.Header
19670 }
19671
19672
19673
19674
19675
19676
19677
19678
19679
19680
19681
19682
19683
19684
19685
19686
19687
19688
19689
19690
19691
19692 func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest) *ProjectsAgentRestoreCall {
19693 c := &ProjectsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19694 c.parent = parent
19695 c.googleclouddialogflowv2restoreagentrequest = googleclouddialogflowv2restoreagentrequest
19696 return c
19697 }
19698
19699
19700
19701
19702 func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall {
19703 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19704 return c
19705 }
19706
19707
19708 func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall {
19709 c.ctx_ = ctx
19710 return c
19711 }
19712
19713
19714
19715 func (c *ProjectsAgentRestoreCall) Header() http.Header {
19716 if c.header_ == nil {
19717 c.header_ = make(http.Header)
19718 }
19719 return c.header_
19720 }
19721
19722 func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
19723 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19724 var body io.Reader = nil
19725 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2restoreagentrequest)
19726 if err != nil {
19727 return nil, err
19728 }
19729 c.urlParams_.Set("alt", alt)
19730 c.urlParams_.Set("prettyPrint", "false")
19731 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:restore")
19732 urls += "?" + c.urlParams_.Encode()
19733 req, err := http.NewRequest("POST", urls, body)
19734 if err != nil {
19735 return nil, err
19736 }
19737 req.Header = reqHeaders
19738 googleapi.Expand(req.URL, map[string]string{
19739 "parent": c.parent,
19740 })
19741 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19742 }
19743
19744
19745
19746
19747
19748
19749
19750 func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19751 gensupport.SetOptions(c.urlParams_, opts...)
19752 res, err := c.doRequest("json")
19753 if res != nil && res.StatusCode == http.StatusNotModified {
19754 if res.Body != nil {
19755 res.Body.Close()
19756 }
19757 return nil, gensupport.WrapError(&googleapi.Error{
19758 Code: res.StatusCode,
19759 Header: res.Header,
19760 })
19761 }
19762 if err != nil {
19763 return nil, err
19764 }
19765 defer googleapi.CloseBody(res)
19766 if err := googleapi.CheckResponse(res); err != nil {
19767 return nil, gensupport.WrapError(err)
19768 }
19769 ret := &GoogleLongrunningOperation{
19770 ServerResponse: googleapi.ServerResponse{
19771 Header: res.Header,
19772 HTTPStatusCode: res.StatusCode,
19773 },
19774 }
19775 target := &ret
19776 if err := gensupport.DecodeResponse(target, res); err != nil {
19777 return nil, err
19778 }
19779 return ret, nil
19780 }
19781
19782 type ProjectsAgentSearchCall struct {
19783 s *Service
19784 parent string
19785 urlParams_ gensupport.URLParams
19786 ifNoneMatch_ string
19787 ctx_ context.Context
19788 header_ http.Header
19789 }
19790
19791
19792
19793
19794
19795
19796
19797
19798
19799 func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall {
19800 c := &ProjectsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19801 c.parent = parent
19802 return c
19803 }
19804
19805
19806
19807 func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall {
19808 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19809 return c
19810 }
19811
19812
19813
19814 func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall {
19815 c.urlParams_.Set("pageToken", pageToken)
19816 return c
19817 }
19818
19819
19820
19821
19822 func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall {
19823 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19824 return c
19825 }
19826
19827
19828
19829
19830 func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall {
19831 c.ifNoneMatch_ = entityTag
19832 return c
19833 }
19834
19835
19836 func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall {
19837 c.ctx_ = ctx
19838 return c
19839 }
19840
19841
19842
19843 func (c *ProjectsAgentSearchCall) Header() http.Header {
19844 if c.header_ == nil {
19845 c.header_ = make(http.Header)
19846 }
19847 return c.header_
19848 }
19849
19850 func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
19851 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19852 if c.ifNoneMatch_ != "" {
19853 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19854 }
19855 var body io.Reader = nil
19856 c.urlParams_.Set("alt", alt)
19857 c.urlParams_.Set("prettyPrint", "false")
19858 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:search")
19859 urls += "?" + c.urlParams_.Encode()
19860 req, err := http.NewRequest("GET", urls, body)
19861 if err != nil {
19862 return nil, err
19863 }
19864 req.Header = reqHeaders
19865 googleapi.Expand(req.URL, map[string]string{
19866 "parent": c.parent,
19867 })
19868 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19869 }
19870
19871
19872
19873
19874
19875
19876
19877 func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchAgentsResponse, error) {
19878 gensupport.SetOptions(c.urlParams_, opts...)
19879 res, err := c.doRequest("json")
19880 if res != nil && res.StatusCode == http.StatusNotModified {
19881 if res.Body != nil {
19882 res.Body.Close()
19883 }
19884 return nil, gensupport.WrapError(&googleapi.Error{
19885 Code: res.StatusCode,
19886 Header: res.Header,
19887 })
19888 }
19889 if err != nil {
19890 return nil, err
19891 }
19892 defer googleapi.CloseBody(res)
19893 if err := googleapi.CheckResponse(res); err != nil {
19894 return nil, gensupport.WrapError(err)
19895 }
19896 ret := &GoogleCloudDialogflowV2SearchAgentsResponse{
19897 ServerResponse: googleapi.ServerResponse{
19898 Header: res.Header,
19899 HTTPStatusCode: res.StatusCode,
19900 },
19901 }
19902 target := &ret
19903 if err := gensupport.DecodeResponse(target, res); err != nil {
19904 return nil, err
19905 }
19906 return ret, nil
19907 }
19908
19909
19910
19911
19912 func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2SearchAgentsResponse) error) error {
19913 c.ctx_ = ctx
19914 defer c.PageToken(c.urlParams_.Get("pageToken"))
19915 for {
19916 x, err := c.Do()
19917 if err != nil {
19918 return err
19919 }
19920 if err := f(x); err != nil {
19921 return err
19922 }
19923 if x.NextPageToken == "" {
19924 return nil
19925 }
19926 c.PageToken(x.NextPageToken)
19927 }
19928 }
19929
19930 type ProjectsAgentTrainCall struct {
19931 s *Service
19932 parent string
19933 googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest
19934 urlParams_ gensupport.URLParams
19935 ctx_ context.Context
19936 header_ http.Header
19937 }
19938
19939
19940
19941
19942
19943
19944
19945
19946
19947
19948
19949
19950
19951
19952 func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest) *ProjectsAgentTrainCall {
19953 c := &ProjectsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19954 c.parent = parent
19955 c.googleclouddialogflowv2trainagentrequest = googleclouddialogflowv2trainagentrequest
19956 return c
19957 }
19958
19959
19960
19961
19962 func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall {
19963 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19964 return c
19965 }
19966
19967
19968 func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall {
19969 c.ctx_ = ctx
19970 return c
19971 }
19972
19973
19974
19975 func (c *ProjectsAgentTrainCall) Header() http.Header {
19976 if c.header_ == nil {
19977 c.header_ = make(http.Header)
19978 }
19979 return c.header_
19980 }
19981
19982 func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
19983 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19984 var body io.Reader = nil
19985 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2trainagentrequest)
19986 if err != nil {
19987 return nil, err
19988 }
19989 c.urlParams_.Set("alt", alt)
19990 c.urlParams_.Set("prettyPrint", "false")
19991 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:train")
19992 urls += "?" + c.urlParams_.Encode()
19993 req, err := http.NewRequest("POST", urls, body)
19994 if err != nil {
19995 return nil, err
19996 }
19997 req.Header = reqHeaders
19998 googleapi.Expand(req.URL, map[string]string{
19999 "parent": c.parent,
20000 })
20001 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20002 }
20003
20004
20005
20006
20007
20008
20009
20010 func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20011 gensupport.SetOptions(c.urlParams_, opts...)
20012 res, err := c.doRequest("json")
20013 if res != nil && res.StatusCode == http.StatusNotModified {
20014 if res.Body != nil {
20015 res.Body.Close()
20016 }
20017 return nil, gensupport.WrapError(&googleapi.Error{
20018 Code: res.StatusCode,
20019 Header: res.Header,
20020 })
20021 }
20022 if err != nil {
20023 return nil, err
20024 }
20025 defer googleapi.CloseBody(res)
20026 if err := googleapi.CheckResponse(res); err != nil {
20027 return nil, gensupport.WrapError(err)
20028 }
20029 ret := &GoogleLongrunningOperation{
20030 ServerResponse: googleapi.ServerResponse{
20031 Header: res.Header,
20032 HTTPStatusCode: res.StatusCode,
20033 },
20034 }
20035 target := &ret
20036 if err := gensupport.DecodeResponse(target, res); err != nil {
20037 return nil, err
20038 }
20039 return ret, nil
20040 }
20041
20042 type ProjectsAgentUpdateFulfillmentCall struct {
20043 s *Service
20044 nameid string
20045 googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment
20046 urlParams_ gensupport.URLParams
20047 ctx_ context.Context
20048 header_ http.Header
20049 }
20050
20051
20052
20053
20054
20055
20056 func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment) *ProjectsAgentUpdateFulfillmentCall {
20057 c := &ProjectsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20058 c.nameid = nameid
20059 c.googleclouddialogflowv2fulfillment = googleclouddialogflowv2fulfillment
20060 return c
20061 }
20062
20063
20064
20065
20066 func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall {
20067 c.urlParams_.Set("updateMask", updateMask)
20068 return c
20069 }
20070
20071
20072
20073
20074 func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall {
20075 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20076 return c
20077 }
20078
20079
20080 func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall {
20081 c.ctx_ = ctx
20082 return c
20083 }
20084
20085
20086
20087 func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header {
20088 if c.header_ == nil {
20089 c.header_ = make(http.Header)
20090 }
20091 return c.header_
20092 }
20093
20094 func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
20095 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20096 var body io.Reader = nil
20097 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2fulfillment)
20098 if err != nil {
20099 return nil, err
20100 }
20101 c.urlParams_.Set("alt", alt)
20102 c.urlParams_.Set("prettyPrint", "false")
20103 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20104 urls += "?" + c.urlParams_.Encode()
20105 req, err := http.NewRequest("PATCH", urls, body)
20106 if err != nil {
20107 return nil, err
20108 }
20109 req.Header = reqHeaders
20110 googleapi.Expand(req.URL, map[string]string{
20111 "name": c.nameid,
20112 })
20113 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20114 }
20115
20116
20117
20118
20119
20120
20121
20122 func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
20123 gensupport.SetOptions(c.urlParams_, opts...)
20124 res, err := c.doRequest("json")
20125 if res != nil && res.StatusCode == http.StatusNotModified {
20126 if res.Body != nil {
20127 res.Body.Close()
20128 }
20129 return nil, gensupport.WrapError(&googleapi.Error{
20130 Code: res.StatusCode,
20131 Header: res.Header,
20132 })
20133 }
20134 if err != nil {
20135 return nil, err
20136 }
20137 defer googleapi.CloseBody(res)
20138 if err := googleapi.CheckResponse(res); err != nil {
20139 return nil, gensupport.WrapError(err)
20140 }
20141 ret := &GoogleCloudDialogflowV2Fulfillment{
20142 ServerResponse: googleapi.ServerResponse{
20143 Header: res.Header,
20144 HTTPStatusCode: res.StatusCode,
20145 },
20146 }
20147 target := &ret
20148 if err := gensupport.DecodeResponse(target, res); err != nil {
20149 return nil, err
20150 }
20151 return ret, nil
20152 }
20153
20154 type ProjectsAgentEntityTypesBatchDeleteCall struct {
20155 s *Service
20156 parent string
20157 googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
20158 urlParams_ gensupport.URLParams
20159 ctx_ context.Context
20160 header_ http.Header
20161 }
20162
20163
20164
20165
20166
20167
20168
20169
20170
20171
20172
20173
20174
20175
20176
20177 func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall {
20178 c := &ProjectsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20179 c.parent = parent
20180 c.googleclouddialogflowv2batchdeleteentitytypesrequest = googleclouddialogflowv2batchdeleteentitytypesrequest
20181 return c
20182 }
20183
20184
20185
20186
20187 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall {
20188 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20189 return c
20190 }
20191
20192
20193 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall {
20194 c.ctx_ = ctx
20195 return c
20196 }
20197
20198
20199
20200 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header {
20201 if c.header_ == nil {
20202 c.header_ = make(http.Header)
20203 }
20204 return c.header_
20205 }
20206
20207 func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
20208 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20209 var body io.Reader = nil
20210 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitytypesrequest)
20211 if err != nil {
20212 return nil, err
20213 }
20214 c.urlParams_.Set("alt", alt)
20215 c.urlParams_.Set("prettyPrint", "false")
20216 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchDelete")
20217 urls += "?" + c.urlParams_.Encode()
20218 req, err := http.NewRequest("POST", urls, body)
20219 if err != nil {
20220 return nil, err
20221 }
20222 req.Header = reqHeaders
20223 googleapi.Expand(req.URL, map[string]string{
20224 "parent": c.parent,
20225 })
20226 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20227 }
20228
20229
20230
20231
20232
20233
20234
20235 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20236 gensupport.SetOptions(c.urlParams_, opts...)
20237 res, err := c.doRequest("json")
20238 if res != nil && res.StatusCode == http.StatusNotModified {
20239 if res.Body != nil {
20240 res.Body.Close()
20241 }
20242 return nil, gensupport.WrapError(&googleapi.Error{
20243 Code: res.StatusCode,
20244 Header: res.Header,
20245 })
20246 }
20247 if err != nil {
20248 return nil, err
20249 }
20250 defer googleapi.CloseBody(res)
20251 if err := googleapi.CheckResponse(res); err != nil {
20252 return nil, gensupport.WrapError(err)
20253 }
20254 ret := &GoogleLongrunningOperation{
20255 ServerResponse: googleapi.ServerResponse{
20256 Header: res.Header,
20257 HTTPStatusCode: res.StatusCode,
20258 },
20259 }
20260 target := &ret
20261 if err := gensupport.DecodeResponse(target, res); err != nil {
20262 return nil, err
20263 }
20264 return ret, nil
20265 }
20266
20267 type ProjectsAgentEntityTypesBatchUpdateCall struct {
20268 s *Service
20269 parent string
20270 googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
20271 urlParams_ gensupport.URLParams
20272 ctx_ context.Context
20273 header_ http.Header
20274 }
20275
20276
20277
20278
20279
20280
20281
20282
20283
20284
20285
20286
20287
20288 func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall {
20289 c := &ProjectsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20290 c.parent = parent
20291 c.googleclouddialogflowv2batchupdateentitytypesrequest = googleclouddialogflowv2batchupdateentitytypesrequest
20292 return c
20293 }
20294
20295
20296
20297
20298 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall {
20299 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20300 return c
20301 }
20302
20303
20304 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall {
20305 c.ctx_ = ctx
20306 return c
20307 }
20308
20309
20310
20311 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header {
20312 if c.header_ == nil {
20313 c.header_ = make(http.Header)
20314 }
20315 return c.header_
20316 }
20317
20318 func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
20319 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20320 var body io.Reader = nil
20321 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitytypesrequest)
20322 if err != nil {
20323 return nil, err
20324 }
20325 c.urlParams_.Set("alt", alt)
20326 c.urlParams_.Set("prettyPrint", "false")
20327 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchUpdate")
20328 urls += "?" + c.urlParams_.Encode()
20329 req, err := http.NewRequest("POST", urls, body)
20330 if err != nil {
20331 return nil, err
20332 }
20333 req.Header = reqHeaders
20334 googleapi.Expand(req.URL, map[string]string{
20335 "parent": c.parent,
20336 })
20337 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20338 }
20339
20340
20341
20342
20343
20344
20345
20346 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20347 gensupport.SetOptions(c.urlParams_, opts...)
20348 res, err := c.doRequest("json")
20349 if res != nil && res.StatusCode == http.StatusNotModified {
20350 if res.Body != nil {
20351 res.Body.Close()
20352 }
20353 return nil, gensupport.WrapError(&googleapi.Error{
20354 Code: res.StatusCode,
20355 Header: res.Header,
20356 })
20357 }
20358 if err != nil {
20359 return nil, err
20360 }
20361 defer googleapi.CloseBody(res)
20362 if err := googleapi.CheckResponse(res); err != nil {
20363 return nil, gensupport.WrapError(err)
20364 }
20365 ret := &GoogleLongrunningOperation{
20366 ServerResponse: googleapi.ServerResponse{
20367 Header: res.Header,
20368 HTTPStatusCode: res.StatusCode,
20369 },
20370 }
20371 target := &ret
20372 if err := gensupport.DecodeResponse(target, res); err != nil {
20373 return nil, err
20374 }
20375 return ret, nil
20376 }
20377
20378 type ProjectsAgentEntityTypesCreateCall struct {
20379 s *Service
20380 parent string
20381 googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
20382 urlParams_ gensupport.URLParams
20383 ctx_ context.Context
20384 header_ http.Header
20385 }
20386
20387
20388
20389
20390
20391
20392 func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsAgentEntityTypesCreateCall {
20393 c := &ProjectsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20394 c.parent = parent
20395 c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
20396 return c
20397 }
20398
20399
20400
20401
20402
20403
20404 func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall {
20405 c.urlParams_.Set("languageCode", languageCode)
20406 return c
20407 }
20408
20409
20410
20411
20412 func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall {
20413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20414 return c
20415 }
20416
20417
20418 func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall {
20419 c.ctx_ = ctx
20420 return c
20421 }
20422
20423
20424
20425 func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header {
20426 if c.header_ == nil {
20427 c.header_ = make(http.Header)
20428 }
20429 return c.header_
20430 }
20431
20432 func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
20433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20434 var body io.Reader = nil
20435 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
20436 if err != nil {
20437 return nil, err
20438 }
20439 c.urlParams_.Set("alt", alt)
20440 c.urlParams_.Set("prettyPrint", "false")
20441 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
20442 urls += "?" + c.urlParams_.Encode()
20443 req, err := http.NewRequest("POST", urls, body)
20444 if err != nil {
20445 return nil, err
20446 }
20447 req.Header = reqHeaders
20448 googleapi.Expand(req.URL, map[string]string{
20449 "parent": c.parent,
20450 })
20451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20452 }
20453
20454
20455
20456
20457
20458
20459
20460 func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
20461 gensupport.SetOptions(c.urlParams_, opts...)
20462 res, err := c.doRequest("json")
20463 if res != nil && res.StatusCode == http.StatusNotModified {
20464 if res.Body != nil {
20465 res.Body.Close()
20466 }
20467 return nil, gensupport.WrapError(&googleapi.Error{
20468 Code: res.StatusCode,
20469 Header: res.Header,
20470 })
20471 }
20472 if err != nil {
20473 return nil, err
20474 }
20475 defer googleapi.CloseBody(res)
20476 if err := googleapi.CheckResponse(res); err != nil {
20477 return nil, gensupport.WrapError(err)
20478 }
20479 ret := &GoogleCloudDialogflowV2EntityType{
20480 ServerResponse: googleapi.ServerResponse{
20481 Header: res.Header,
20482 HTTPStatusCode: res.StatusCode,
20483 },
20484 }
20485 target := &ret
20486 if err := gensupport.DecodeResponse(target, res); err != nil {
20487 return nil, err
20488 }
20489 return ret, nil
20490 }
20491
20492 type ProjectsAgentEntityTypesDeleteCall struct {
20493 s *Service
20494 name string
20495 urlParams_ gensupport.URLParams
20496 ctx_ context.Context
20497 header_ http.Header
20498 }
20499
20500
20501
20502
20503
20504
20505
20506 func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall {
20507 c := &ProjectsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20508 c.name = name
20509 return c
20510 }
20511
20512
20513
20514
20515 func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall {
20516 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20517 return c
20518 }
20519
20520
20521 func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall {
20522 c.ctx_ = ctx
20523 return c
20524 }
20525
20526
20527
20528 func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header {
20529 if c.header_ == nil {
20530 c.header_ = make(http.Header)
20531 }
20532 return c.header_
20533 }
20534
20535 func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
20536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20537 var body io.Reader = nil
20538 c.urlParams_.Set("alt", alt)
20539 c.urlParams_.Set("prettyPrint", "false")
20540 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20541 urls += "?" + c.urlParams_.Encode()
20542 req, err := http.NewRequest("DELETE", urls, body)
20543 if err != nil {
20544 return nil, err
20545 }
20546 req.Header = reqHeaders
20547 googleapi.Expand(req.URL, map[string]string{
20548 "name": c.name,
20549 })
20550 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20551 }
20552
20553
20554
20555
20556
20557
20558
20559 func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20560 gensupport.SetOptions(c.urlParams_, opts...)
20561 res, err := c.doRequest("json")
20562 if res != nil && res.StatusCode == http.StatusNotModified {
20563 if res.Body != nil {
20564 res.Body.Close()
20565 }
20566 return nil, gensupport.WrapError(&googleapi.Error{
20567 Code: res.StatusCode,
20568 Header: res.Header,
20569 })
20570 }
20571 if err != nil {
20572 return nil, err
20573 }
20574 defer googleapi.CloseBody(res)
20575 if err := googleapi.CheckResponse(res); err != nil {
20576 return nil, gensupport.WrapError(err)
20577 }
20578 ret := &GoogleProtobufEmpty{
20579 ServerResponse: googleapi.ServerResponse{
20580 Header: res.Header,
20581 HTTPStatusCode: res.StatusCode,
20582 },
20583 }
20584 target := &ret
20585 if err := gensupport.DecodeResponse(target, res); err != nil {
20586 return nil, err
20587 }
20588 return ret, nil
20589 }
20590
20591 type ProjectsAgentEntityTypesGetCall struct {
20592 s *Service
20593 name string
20594 urlParams_ gensupport.URLParams
20595 ifNoneMatch_ string
20596 ctx_ context.Context
20597 header_ http.Header
20598 }
20599
20600
20601
20602
20603 func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall {
20604 c := &ProjectsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20605 c.name = name
20606 return c
20607 }
20608
20609
20610
20611
20612
20613
20614 func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall {
20615 c.urlParams_.Set("languageCode", languageCode)
20616 return c
20617 }
20618
20619
20620
20621
20622 func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall {
20623 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20624 return c
20625 }
20626
20627
20628
20629
20630 func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall {
20631 c.ifNoneMatch_ = entityTag
20632 return c
20633 }
20634
20635
20636 func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall {
20637 c.ctx_ = ctx
20638 return c
20639 }
20640
20641
20642
20643 func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header {
20644 if c.header_ == nil {
20645 c.header_ = make(http.Header)
20646 }
20647 return c.header_
20648 }
20649
20650 func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
20651 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20652 if c.ifNoneMatch_ != "" {
20653 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20654 }
20655 var body io.Reader = nil
20656 c.urlParams_.Set("alt", alt)
20657 c.urlParams_.Set("prettyPrint", "false")
20658 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20659 urls += "?" + c.urlParams_.Encode()
20660 req, err := http.NewRequest("GET", urls, body)
20661 if err != nil {
20662 return nil, err
20663 }
20664 req.Header = reqHeaders
20665 googleapi.Expand(req.URL, map[string]string{
20666 "name": c.name,
20667 })
20668 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20669 }
20670
20671
20672
20673
20674
20675
20676
20677 func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
20678 gensupport.SetOptions(c.urlParams_, opts...)
20679 res, err := c.doRequest("json")
20680 if res != nil && res.StatusCode == http.StatusNotModified {
20681 if res.Body != nil {
20682 res.Body.Close()
20683 }
20684 return nil, gensupport.WrapError(&googleapi.Error{
20685 Code: res.StatusCode,
20686 Header: res.Header,
20687 })
20688 }
20689 if err != nil {
20690 return nil, err
20691 }
20692 defer googleapi.CloseBody(res)
20693 if err := googleapi.CheckResponse(res); err != nil {
20694 return nil, gensupport.WrapError(err)
20695 }
20696 ret := &GoogleCloudDialogflowV2EntityType{
20697 ServerResponse: googleapi.ServerResponse{
20698 Header: res.Header,
20699 HTTPStatusCode: res.StatusCode,
20700 },
20701 }
20702 target := &ret
20703 if err := gensupport.DecodeResponse(target, res); err != nil {
20704 return nil, err
20705 }
20706 return ret, nil
20707 }
20708
20709 type ProjectsAgentEntityTypesListCall struct {
20710 s *Service
20711 parent string
20712 urlParams_ gensupport.URLParams
20713 ifNoneMatch_ string
20714 ctx_ context.Context
20715 header_ http.Header
20716 }
20717
20718
20719
20720
20721
20722 func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall {
20723 c := &ProjectsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20724 c.parent = parent
20725 return c
20726 }
20727
20728
20729
20730
20731
20732
20733 func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall {
20734 c.urlParams_.Set("languageCode", languageCode)
20735 return c
20736 }
20737
20738
20739
20740 func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall {
20741 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20742 return c
20743 }
20744
20745
20746
20747 func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall {
20748 c.urlParams_.Set("pageToken", pageToken)
20749 return c
20750 }
20751
20752
20753
20754
20755 func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall {
20756 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20757 return c
20758 }
20759
20760
20761
20762
20763 func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall {
20764 c.ifNoneMatch_ = entityTag
20765 return c
20766 }
20767
20768
20769 func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall {
20770 c.ctx_ = ctx
20771 return c
20772 }
20773
20774
20775
20776 func (c *ProjectsAgentEntityTypesListCall) Header() http.Header {
20777 if c.header_ == nil {
20778 c.header_ = make(http.Header)
20779 }
20780 return c.header_
20781 }
20782
20783 func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
20784 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20785 if c.ifNoneMatch_ != "" {
20786 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20787 }
20788 var body io.Reader = nil
20789 c.urlParams_.Set("alt", alt)
20790 c.urlParams_.Set("prettyPrint", "false")
20791 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
20792 urls += "?" + c.urlParams_.Encode()
20793 req, err := http.NewRequest("GET", urls, body)
20794 if err != nil {
20795 return nil, err
20796 }
20797 req.Header = reqHeaders
20798 googleapi.Expand(req.URL, map[string]string{
20799 "parent": c.parent,
20800 })
20801 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20802 }
20803
20804
20805
20806
20807
20808
20809
20810 func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEntityTypesResponse, error) {
20811 gensupport.SetOptions(c.urlParams_, opts...)
20812 res, err := c.doRequest("json")
20813 if res != nil && res.StatusCode == http.StatusNotModified {
20814 if res.Body != nil {
20815 res.Body.Close()
20816 }
20817 return nil, gensupport.WrapError(&googleapi.Error{
20818 Code: res.StatusCode,
20819 Header: res.Header,
20820 })
20821 }
20822 if err != nil {
20823 return nil, err
20824 }
20825 defer googleapi.CloseBody(res)
20826 if err := googleapi.CheckResponse(res); err != nil {
20827 return nil, gensupport.WrapError(err)
20828 }
20829 ret := &GoogleCloudDialogflowV2ListEntityTypesResponse{
20830 ServerResponse: googleapi.ServerResponse{
20831 Header: res.Header,
20832 HTTPStatusCode: res.StatusCode,
20833 },
20834 }
20835 target := &ret
20836 if err := gensupport.DecodeResponse(target, res); err != nil {
20837 return nil, err
20838 }
20839 return ret, nil
20840 }
20841
20842
20843
20844
20845 func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEntityTypesResponse) error) error {
20846 c.ctx_ = ctx
20847 defer c.PageToken(c.urlParams_.Get("pageToken"))
20848 for {
20849 x, err := c.Do()
20850 if err != nil {
20851 return err
20852 }
20853 if err := f(x); err != nil {
20854 return err
20855 }
20856 if x.NextPageToken == "" {
20857 return nil
20858 }
20859 c.PageToken(x.NextPageToken)
20860 }
20861 }
20862
20863 type ProjectsAgentEntityTypesPatchCall struct {
20864 s *Service
20865 nameid string
20866 googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
20867 urlParams_ gensupport.URLParams
20868 ctx_ context.Context
20869 header_ http.Header
20870 }
20871
20872
20873
20874
20875
20876
20877
20878
20879 func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsAgentEntityTypesPatchCall {
20880 c := &ProjectsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20881 c.nameid = nameid
20882 c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
20883 return c
20884 }
20885
20886
20887
20888
20889
20890
20891 func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall {
20892 c.urlParams_.Set("languageCode", languageCode)
20893 return c
20894 }
20895
20896
20897
20898 func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall {
20899 c.urlParams_.Set("updateMask", updateMask)
20900 return c
20901 }
20902
20903
20904
20905
20906 func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall {
20907 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20908 return c
20909 }
20910
20911
20912 func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall {
20913 c.ctx_ = ctx
20914 return c
20915 }
20916
20917
20918
20919 func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header {
20920 if c.header_ == nil {
20921 c.header_ = make(http.Header)
20922 }
20923 return c.header_
20924 }
20925
20926 func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
20927 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20928 var body io.Reader = nil
20929 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
20930 if err != nil {
20931 return nil, err
20932 }
20933 c.urlParams_.Set("alt", alt)
20934 c.urlParams_.Set("prettyPrint", "false")
20935 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
20936 urls += "?" + c.urlParams_.Encode()
20937 req, err := http.NewRequest("PATCH", urls, body)
20938 if err != nil {
20939 return nil, err
20940 }
20941 req.Header = reqHeaders
20942 googleapi.Expand(req.URL, map[string]string{
20943 "name": c.nameid,
20944 })
20945 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20946 }
20947
20948
20949
20950
20951
20952
20953
20954 func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
20955 gensupport.SetOptions(c.urlParams_, opts...)
20956 res, err := c.doRequest("json")
20957 if res != nil && res.StatusCode == http.StatusNotModified {
20958 if res.Body != nil {
20959 res.Body.Close()
20960 }
20961 return nil, gensupport.WrapError(&googleapi.Error{
20962 Code: res.StatusCode,
20963 Header: res.Header,
20964 })
20965 }
20966 if err != nil {
20967 return nil, err
20968 }
20969 defer googleapi.CloseBody(res)
20970 if err := googleapi.CheckResponse(res); err != nil {
20971 return nil, gensupport.WrapError(err)
20972 }
20973 ret := &GoogleCloudDialogflowV2EntityType{
20974 ServerResponse: googleapi.ServerResponse{
20975 Header: res.Header,
20976 HTTPStatusCode: res.StatusCode,
20977 },
20978 }
20979 target := &ret
20980 if err := gensupport.DecodeResponse(target, res); err != nil {
20981 return nil, err
20982 }
20983 return ret, nil
20984 }
20985
20986 type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
20987 s *Service
20988 parent string
20989 googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest
20990 urlParams_ gensupport.URLParams
20991 ctx_ context.Context
20992 header_ http.Header
20993 }
20994
20995
20996
20997
20998
20999
21000
21001
21002
21003
21004
21005
21006
21007
21008
21009 func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21010 c := &ProjectsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21011 c.parent = parent
21012 c.googleclouddialogflowv2batchcreateentitiesrequest = googleclouddialogflowv2batchcreateentitiesrequest
21013 return c
21014 }
21015
21016
21017
21018
21019 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21020 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21021 return c
21022 }
21023
21024
21025 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21026 c.ctx_ = ctx
21027 return c
21028 }
21029
21030
21031
21032 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
21033 if c.header_ == nil {
21034 c.header_ = make(http.Header)
21035 }
21036 return c.header_
21037 }
21038
21039 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
21040 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21041 var body io.Reader = nil
21042 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchcreateentitiesrequest)
21043 if err != nil {
21044 return nil, err
21045 }
21046 c.urlParams_.Set("alt", alt)
21047 c.urlParams_.Set("prettyPrint", "false")
21048 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchCreate")
21049 urls += "?" + c.urlParams_.Encode()
21050 req, err := http.NewRequest("POST", urls, body)
21051 if err != nil {
21052 return nil, err
21053 }
21054 req.Header = reqHeaders
21055 googleapi.Expand(req.URL, map[string]string{
21056 "parent": c.parent,
21057 })
21058 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21059 }
21060
21061
21062
21063
21064
21065
21066
21067 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21068 gensupport.SetOptions(c.urlParams_, opts...)
21069 res, err := c.doRequest("json")
21070 if res != nil && res.StatusCode == http.StatusNotModified {
21071 if res.Body != nil {
21072 res.Body.Close()
21073 }
21074 return nil, gensupport.WrapError(&googleapi.Error{
21075 Code: res.StatusCode,
21076 Header: res.Header,
21077 })
21078 }
21079 if err != nil {
21080 return nil, err
21081 }
21082 defer googleapi.CloseBody(res)
21083 if err := googleapi.CheckResponse(res); err != nil {
21084 return nil, gensupport.WrapError(err)
21085 }
21086 ret := &GoogleLongrunningOperation{
21087 ServerResponse: googleapi.ServerResponse{
21088 Header: res.Header,
21089 HTTPStatusCode: res.StatusCode,
21090 },
21091 }
21092 target := &ret
21093 if err := gensupport.DecodeResponse(target, res); err != nil {
21094 return nil, err
21095 }
21096 return ret, nil
21097 }
21098
21099 type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
21100 s *Service
21101 parent string
21102 googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
21103 urlParams_ gensupport.URLParams
21104 ctx_ context.Context
21105 header_ http.Header
21106 }
21107
21108
21109
21110
21111
21112
21113
21114
21115
21116
21117
21118
21119
21120
21121
21122 func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21123 c := &ProjectsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21124 c.parent = parent
21125 c.googleclouddialogflowv2batchdeleteentitiesrequest = googleclouddialogflowv2batchdeleteentitiesrequest
21126 return c
21127 }
21128
21129
21130
21131
21132 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21133 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21134 return c
21135 }
21136
21137
21138 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21139 c.ctx_ = ctx
21140 return c
21141 }
21142
21143
21144
21145 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
21146 if c.header_ == nil {
21147 c.header_ = make(http.Header)
21148 }
21149 return c.header_
21150 }
21151
21152 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
21153 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21154 var body io.Reader = nil
21155 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitiesrequest)
21156 if err != nil {
21157 return nil, err
21158 }
21159 c.urlParams_.Set("alt", alt)
21160 c.urlParams_.Set("prettyPrint", "false")
21161 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchDelete")
21162 urls += "?" + c.urlParams_.Encode()
21163 req, err := http.NewRequest("POST", urls, body)
21164 if err != nil {
21165 return nil, err
21166 }
21167 req.Header = reqHeaders
21168 googleapi.Expand(req.URL, map[string]string{
21169 "parent": c.parent,
21170 })
21171 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21172 }
21173
21174
21175
21176
21177
21178
21179
21180 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21181 gensupport.SetOptions(c.urlParams_, opts...)
21182 res, err := c.doRequest("json")
21183 if res != nil && res.StatusCode == http.StatusNotModified {
21184 if res.Body != nil {
21185 res.Body.Close()
21186 }
21187 return nil, gensupport.WrapError(&googleapi.Error{
21188 Code: res.StatusCode,
21189 Header: res.Header,
21190 })
21191 }
21192 if err != nil {
21193 return nil, err
21194 }
21195 defer googleapi.CloseBody(res)
21196 if err := googleapi.CheckResponse(res); err != nil {
21197 return nil, gensupport.WrapError(err)
21198 }
21199 ret := &GoogleLongrunningOperation{
21200 ServerResponse: googleapi.ServerResponse{
21201 Header: res.Header,
21202 HTTPStatusCode: res.StatusCode,
21203 },
21204 }
21205 target := &ret
21206 if err := gensupport.DecodeResponse(target, res); err != nil {
21207 return nil, err
21208 }
21209 return ret, nil
21210 }
21211
21212 type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
21213 s *Service
21214 parent string
21215 googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
21216 urlParams_ gensupport.URLParams
21217 ctx_ context.Context
21218 header_ http.Header
21219 }
21220
21221
21222
21223
21224
21225
21226
21227
21228
21229
21230
21231
21232
21233
21234
21235
21236 func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21237 c := &ProjectsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21238 c.parent = parent
21239 c.googleclouddialogflowv2batchupdateentitiesrequest = googleclouddialogflowv2batchupdateentitiesrequest
21240 return c
21241 }
21242
21243
21244
21245
21246 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21247 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21248 return c
21249 }
21250
21251
21252 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21253 c.ctx_ = ctx
21254 return c
21255 }
21256
21257
21258
21259 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
21260 if c.header_ == nil {
21261 c.header_ = make(http.Header)
21262 }
21263 return c.header_
21264 }
21265
21266 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
21267 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21268 var body io.Reader = nil
21269 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitiesrequest)
21270 if err != nil {
21271 return nil, err
21272 }
21273 c.urlParams_.Set("alt", alt)
21274 c.urlParams_.Set("prettyPrint", "false")
21275 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchUpdate")
21276 urls += "?" + c.urlParams_.Encode()
21277 req, err := http.NewRequest("POST", urls, body)
21278 if err != nil {
21279 return nil, err
21280 }
21281 req.Header = reqHeaders
21282 googleapi.Expand(req.URL, map[string]string{
21283 "parent": c.parent,
21284 })
21285 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21286 }
21287
21288
21289
21290
21291
21292
21293
21294 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21295 gensupport.SetOptions(c.urlParams_, opts...)
21296 res, err := c.doRequest("json")
21297 if res != nil && res.StatusCode == http.StatusNotModified {
21298 if res.Body != nil {
21299 res.Body.Close()
21300 }
21301 return nil, gensupport.WrapError(&googleapi.Error{
21302 Code: res.StatusCode,
21303 Header: res.Header,
21304 })
21305 }
21306 if err != nil {
21307 return nil, err
21308 }
21309 defer googleapi.CloseBody(res)
21310 if err := googleapi.CheckResponse(res); err != nil {
21311 return nil, gensupport.WrapError(err)
21312 }
21313 ret := &GoogleLongrunningOperation{
21314 ServerResponse: googleapi.ServerResponse{
21315 Header: res.Header,
21316 HTTPStatusCode: res.StatusCode,
21317 },
21318 }
21319 target := &ret
21320 if err := gensupport.DecodeResponse(target, res); err != nil {
21321 return nil, err
21322 }
21323 return ret, nil
21324 }
21325
21326 type ProjectsAgentEnvironmentsCreateCall struct {
21327 s *Service
21328 parent string
21329 googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
21330 urlParams_ gensupport.URLParams
21331 ctx_ context.Context
21332 header_ http.Header
21333 }
21334
21335
21336
21337
21338
21339 func (r *ProjectsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsAgentEnvironmentsCreateCall {
21340 c := &ProjectsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21341 c.parent = parent
21342 c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
21343 return c
21344 }
21345
21346
21347
21348 func (c *ProjectsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsAgentEnvironmentsCreateCall {
21349 c.urlParams_.Set("environmentId", environmentId)
21350 return c
21351 }
21352
21353
21354
21355
21356 func (c *ProjectsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsCreateCall {
21357 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21358 return c
21359 }
21360
21361
21362 func (c *ProjectsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsCreateCall {
21363 c.ctx_ = ctx
21364 return c
21365 }
21366
21367
21368
21369 func (c *ProjectsAgentEnvironmentsCreateCall) Header() http.Header {
21370 if c.header_ == nil {
21371 c.header_ = make(http.Header)
21372 }
21373 return c.header_
21374 }
21375
21376 func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21377 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21378 var body io.Reader = nil
21379 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
21380 if err != nil {
21381 return nil, err
21382 }
21383 c.urlParams_.Set("alt", alt)
21384 c.urlParams_.Set("prettyPrint", "false")
21385 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
21386 urls += "?" + c.urlParams_.Encode()
21387 req, err := http.NewRequest("POST", urls, body)
21388 if err != nil {
21389 return nil, err
21390 }
21391 req.Header = reqHeaders
21392 googleapi.Expand(req.URL, map[string]string{
21393 "parent": c.parent,
21394 })
21395 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21396 }
21397
21398
21399
21400
21401
21402
21403
21404 func (c *ProjectsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
21405 gensupport.SetOptions(c.urlParams_, opts...)
21406 res, err := c.doRequest("json")
21407 if res != nil && res.StatusCode == http.StatusNotModified {
21408 if res.Body != nil {
21409 res.Body.Close()
21410 }
21411 return nil, gensupport.WrapError(&googleapi.Error{
21412 Code: res.StatusCode,
21413 Header: res.Header,
21414 })
21415 }
21416 if err != nil {
21417 return nil, err
21418 }
21419 defer googleapi.CloseBody(res)
21420 if err := googleapi.CheckResponse(res); err != nil {
21421 return nil, gensupport.WrapError(err)
21422 }
21423 ret := &GoogleCloudDialogflowV2Environment{
21424 ServerResponse: googleapi.ServerResponse{
21425 Header: res.Header,
21426 HTTPStatusCode: res.StatusCode,
21427 },
21428 }
21429 target := &ret
21430 if err := gensupport.DecodeResponse(target, res); err != nil {
21431 return nil, err
21432 }
21433 return ret, nil
21434 }
21435
21436 type ProjectsAgentEnvironmentsDeleteCall struct {
21437 s *Service
21438 name string
21439 urlParams_ gensupport.URLParams
21440 ctx_ context.Context
21441 header_ http.Header
21442 }
21443
21444
21445
21446
21447
21448
21449
21450 func (r *ProjectsAgentEnvironmentsService) Delete(name string) *ProjectsAgentEnvironmentsDeleteCall {
21451 c := &ProjectsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21452 c.name = name
21453 return c
21454 }
21455
21456
21457
21458
21459 func (c *ProjectsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsDeleteCall {
21460 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21461 return c
21462 }
21463
21464
21465 func (c *ProjectsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsDeleteCall {
21466 c.ctx_ = ctx
21467 return c
21468 }
21469
21470
21471
21472 func (c *ProjectsAgentEnvironmentsDeleteCall) Header() http.Header {
21473 if c.header_ == nil {
21474 c.header_ = make(http.Header)
21475 }
21476 return c.header_
21477 }
21478
21479 func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
21480 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21481 var body io.Reader = nil
21482 c.urlParams_.Set("alt", alt)
21483 c.urlParams_.Set("prettyPrint", "false")
21484 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
21485 urls += "?" + c.urlParams_.Encode()
21486 req, err := http.NewRequest("DELETE", urls, body)
21487 if err != nil {
21488 return nil, err
21489 }
21490 req.Header = reqHeaders
21491 googleapi.Expand(req.URL, map[string]string{
21492 "name": c.name,
21493 })
21494 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21495 }
21496
21497
21498
21499
21500
21501
21502
21503 func (c *ProjectsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21504 gensupport.SetOptions(c.urlParams_, opts...)
21505 res, err := c.doRequest("json")
21506 if res != nil && res.StatusCode == http.StatusNotModified {
21507 if res.Body != nil {
21508 res.Body.Close()
21509 }
21510 return nil, gensupport.WrapError(&googleapi.Error{
21511 Code: res.StatusCode,
21512 Header: res.Header,
21513 })
21514 }
21515 if err != nil {
21516 return nil, err
21517 }
21518 defer googleapi.CloseBody(res)
21519 if err := googleapi.CheckResponse(res); err != nil {
21520 return nil, gensupport.WrapError(err)
21521 }
21522 ret := &GoogleProtobufEmpty{
21523 ServerResponse: googleapi.ServerResponse{
21524 Header: res.Header,
21525 HTTPStatusCode: res.StatusCode,
21526 },
21527 }
21528 target := &ret
21529 if err := gensupport.DecodeResponse(target, res); err != nil {
21530 return nil, err
21531 }
21532 return ret, nil
21533 }
21534
21535 type ProjectsAgentEnvironmentsGetCall struct {
21536 s *Service
21537 name string
21538 urlParams_ gensupport.URLParams
21539 ifNoneMatch_ string
21540 ctx_ context.Context
21541 header_ http.Header
21542 }
21543
21544
21545
21546
21547
21548
21549
21550 func (r *ProjectsAgentEnvironmentsService) Get(name string) *ProjectsAgentEnvironmentsGetCall {
21551 c := &ProjectsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21552 c.name = name
21553 return c
21554 }
21555
21556
21557
21558
21559 func (c *ProjectsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetCall {
21560 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21561 return c
21562 }
21563
21564
21565
21566
21567 func (c *ProjectsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetCall {
21568 c.ifNoneMatch_ = entityTag
21569 return c
21570 }
21571
21572
21573 func (c *ProjectsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetCall {
21574 c.ctx_ = ctx
21575 return c
21576 }
21577
21578
21579
21580 func (c *ProjectsAgentEnvironmentsGetCall) Header() http.Header {
21581 if c.header_ == nil {
21582 c.header_ = make(http.Header)
21583 }
21584 return c.header_
21585 }
21586
21587 func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
21588 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21589 if c.ifNoneMatch_ != "" {
21590 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21591 }
21592 var body io.Reader = nil
21593 c.urlParams_.Set("alt", alt)
21594 c.urlParams_.Set("prettyPrint", "false")
21595 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
21596 urls += "?" + c.urlParams_.Encode()
21597 req, err := http.NewRequest("GET", urls, body)
21598 if err != nil {
21599 return nil, err
21600 }
21601 req.Header = reqHeaders
21602 googleapi.Expand(req.URL, map[string]string{
21603 "name": c.name,
21604 })
21605 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21606 }
21607
21608
21609
21610
21611
21612
21613
21614 func (c *ProjectsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
21615 gensupport.SetOptions(c.urlParams_, opts...)
21616 res, err := c.doRequest("json")
21617 if res != nil && res.StatusCode == http.StatusNotModified {
21618 if res.Body != nil {
21619 res.Body.Close()
21620 }
21621 return nil, gensupport.WrapError(&googleapi.Error{
21622 Code: res.StatusCode,
21623 Header: res.Header,
21624 })
21625 }
21626 if err != nil {
21627 return nil, err
21628 }
21629 defer googleapi.CloseBody(res)
21630 if err := googleapi.CheckResponse(res); err != nil {
21631 return nil, gensupport.WrapError(err)
21632 }
21633 ret := &GoogleCloudDialogflowV2Environment{
21634 ServerResponse: googleapi.ServerResponse{
21635 Header: res.Header,
21636 HTTPStatusCode: res.StatusCode,
21637 },
21638 }
21639 target := &ret
21640 if err := gensupport.DecodeResponse(target, res); err != nil {
21641 return nil, err
21642 }
21643 return ret, nil
21644 }
21645
21646 type ProjectsAgentEnvironmentsGetHistoryCall struct {
21647 s *Service
21648 parent string
21649 urlParams_ gensupport.URLParams
21650 ifNoneMatch_ string
21651 ctx_ context.Context
21652 header_ http.Header
21653 }
21654
21655
21656
21657
21658
21659
21660
21661 func (r *ProjectsAgentEnvironmentsService) GetHistory(parent string) *ProjectsAgentEnvironmentsGetHistoryCall {
21662 c := &ProjectsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21663 c.parent = parent
21664 return c
21665 }
21666
21667
21668
21669 func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsGetHistoryCall {
21670 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21671 return c
21672 }
21673
21674
21675
21676 func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsGetHistoryCall {
21677 c.urlParams_.Set("pageToken", pageToken)
21678 return c
21679 }
21680
21681
21682
21683
21684 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetHistoryCall {
21685 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21686 return c
21687 }
21688
21689
21690
21691
21692 func (c *ProjectsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetHistoryCall {
21693 c.ifNoneMatch_ = entityTag
21694 return c
21695 }
21696
21697
21698 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetHistoryCall {
21699 c.ctx_ = ctx
21700 return c
21701 }
21702
21703
21704
21705 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Header() http.Header {
21706 if c.header_ == nil {
21707 c.header_ = make(http.Header)
21708 }
21709 return c.header_
21710 }
21711
21712 func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
21713 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21714 if c.ifNoneMatch_ != "" {
21715 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21716 }
21717 var body io.Reader = nil
21718 c.urlParams_.Set("alt", alt)
21719 c.urlParams_.Set("prettyPrint", "false")
21720 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/history")
21721 urls += "?" + c.urlParams_.Encode()
21722 req, err := http.NewRequest("GET", urls, body)
21723 if err != nil {
21724 return nil, err
21725 }
21726 req.Header = reqHeaders
21727 googleapi.Expand(req.URL, map[string]string{
21728 "parent": c.parent,
21729 })
21730 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21731 }
21732
21733
21734
21735
21736
21737
21738
21739 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EnvironmentHistory, error) {
21740 gensupport.SetOptions(c.urlParams_, opts...)
21741 res, err := c.doRequest("json")
21742 if res != nil && res.StatusCode == http.StatusNotModified {
21743 if res.Body != nil {
21744 res.Body.Close()
21745 }
21746 return nil, gensupport.WrapError(&googleapi.Error{
21747 Code: res.StatusCode,
21748 Header: res.Header,
21749 })
21750 }
21751 if err != nil {
21752 return nil, err
21753 }
21754 defer googleapi.CloseBody(res)
21755 if err := googleapi.CheckResponse(res); err != nil {
21756 return nil, gensupport.WrapError(err)
21757 }
21758 ret := &GoogleCloudDialogflowV2EnvironmentHistory{
21759 ServerResponse: googleapi.ServerResponse{
21760 Header: res.Header,
21761 HTTPStatusCode: res.StatusCode,
21762 },
21763 }
21764 target := &ret
21765 if err := gensupport.DecodeResponse(target, res); err != nil {
21766 return nil, err
21767 }
21768 return ret, nil
21769 }
21770
21771
21772
21773
21774 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2EnvironmentHistory) error) error {
21775 c.ctx_ = ctx
21776 defer c.PageToken(c.urlParams_.Get("pageToken"))
21777 for {
21778 x, err := c.Do()
21779 if err != nil {
21780 return err
21781 }
21782 if err := f(x); err != nil {
21783 return err
21784 }
21785 if x.NextPageToken == "" {
21786 return nil
21787 }
21788 c.PageToken(x.NextPageToken)
21789 }
21790 }
21791
21792 type ProjectsAgentEnvironmentsListCall struct {
21793 s *Service
21794 parent string
21795 urlParams_ gensupport.URLParams
21796 ifNoneMatch_ string
21797 ctx_ context.Context
21798 header_ http.Header
21799 }
21800
21801
21802
21803
21804
21805
21806 func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall {
21807 c := &ProjectsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21808 c.parent = parent
21809 return c
21810 }
21811
21812
21813
21814 func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall {
21815 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21816 return c
21817 }
21818
21819
21820
21821 func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall {
21822 c.urlParams_.Set("pageToken", pageToken)
21823 return c
21824 }
21825
21826
21827
21828
21829 func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall {
21830 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21831 return c
21832 }
21833
21834
21835
21836
21837 func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall {
21838 c.ifNoneMatch_ = entityTag
21839 return c
21840 }
21841
21842
21843 func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall {
21844 c.ctx_ = ctx
21845 return c
21846 }
21847
21848
21849
21850 func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header {
21851 if c.header_ == nil {
21852 c.header_ = make(http.Header)
21853 }
21854 return c.header_
21855 }
21856
21857 func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
21858 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21859 if c.ifNoneMatch_ != "" {
21860 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21861 }
21862 var body io.Reader = nil
21863 c.urlParams_.Set("alt", alt)
21864 c.urlParams_.Set("prettyPrint", "false")
21865 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
21866 urls += "?" + c.urlParams_.Encode()
21867 req, err := http.NewRequest("GET", urls, body)
21868 if err != nil {
21869 return nil, err
21870 }
21871 req.Header = reqHeaders
21872 googleapi.Expand(req.URL, map[string]string{
21873 "parent": c.parent,
21874 })
21875 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21876 }
21877
21878
21879
21880
21881
21882
21883
21884 func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEnvironmentsResponse, error) {
21885 gensupport.SetOptions(c.urlParams_, opts...)
21886 res, err := c.doRequest("json")
21887 if res != nil && res.StatusCode == http.StatusNotModified {
21888 if res.Body != nil {
21889 res.Body.Close()
21890 }
21891 return nil, gensupport.WrapError(&googleapi.Error{
21892 Code: res.StatusCode,
21893 Header: res.Header,
21894 })
21895 }
21896 if err != nil {
21897 return nil, err
21898 }
21899 defer googleapi.CloseBody(res)
21900 if err := googleapi.CheckResponse(res); err != nil {
21901 return nil, gensupport.WrapError(err)
21902 }
21903 ret := &GoogleCloudDialogflowV2ListEnvironmentsResponse{
21904 ServerResponse: googleapi.ServerResponse{
21905 Header: res.Header,
21906 HTTPStatusCode: res.StatusCode,
21907 },
21908 }
21909 target := &ret
21910 if err := gensupport.DecodeResponse(target, res); err != nil {
21911 return nil, err
21912 }
21913 return ret, nil
21914 }
21915
21916
21917
21918
21919 func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEnvironmentsResponse) error) error {
21920 c.ctx_ = ctx
21921 defer c.PageToken(c.urlParams_.Get("pageToken"))
21922 for {
21923 x, err := c.Do()
21924 if err != nil {
21925 return err
21926 }
21927 if err := f(x); err != nil {
21928 return err
21929 }
21930 if x.NextPageToken == "" {
21931 return nil
21932 }
21933 c.PageToken(x.NextPageToken)
21934 }
21935 }
21936
21937 type ProjectsAgentEnvironmentsPatchCall struct {
21938 s *Service
21939 nameid string
21940 googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
21941 urlParams_ gensupport.URLParams
21942 ctx_ context.Context
21943 header_ http.Header
21944 }
21945
21946
21947
21948
21949
21950
21951
21952
21953
21954
21955
21956
21957
21958
21959
21960
21961 func (r *ProjectsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsAgentEnvironmentsPatchCall {
21962 c := &ProjectsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21963 c.nameid = nameid
21964 c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
21965 return c
21966 }
21967
21968
21969
21970
21971
21972
21973
21974 func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsAgentEnvironmentsPatchCall {
21975 c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
21976 return c
21977 }
21978
21979
21980
21981 func (c *ProjectsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsPatchCall {
21982 c.urlParams_.Set("updateMask", updateMask)
21983 return c
21984 }
21985
21986
21987
21988
21989 func (c *ProjectsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsPatchCall {
21990 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21991 return c
21992 }
21993
21994
21995 func (c *ProjectsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsPatchCall {
21996 c.ctx_ = ctx
21997 return c
21998 }
21999
22000
22001
22002 func (c *ProjectsAgentEnvironmentsPatchCall) Header() http.Header {
22003 if c.header_ == nil {
22004 c.header_ = make(http.Header)
22005 }
22006 return c.header_
22007 }
22008
22009 func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
22010 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22011 var body io.Reader = nil
22012 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
22013 if err != nil {
22014 return nil, err
22015 }
22016 c.urlParams_.Set("alt", alt)
22017 c.urlParams_.Set("prettyPrint", "false")
22018 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22019 urls += "?" + c.urlParams_.Encode()
22020 req, err := http.NewRequest("PATCH", urls, body)
22021 if err != nil {
22022 return nil, err
22023 }
22024 req.Header = reqHeaders
22025 googleapi.Expand(req.URL, map[string]string{
22026 "name": c.nameid,
22027 })
22028 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22029 }
22030
22031
22032
22033
22034
22035
22036
22037 func (c *ProjectsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
22038 gensupport.SetOptions(c.urlParams_, opts...)
22039 res, err := c.doRequest("json")
22040 if res != nil && res.StatusCode == http.StatusNotModified {
22041 if res.Body != nil {
22042 res.Body.Close()
22043 }
22044 return nil, gensupport.WrapError(&googleapi.Error{
22045 Code: res.StatusCode,
22046 Header: res.Header,
22047 })
22048 }
22049 if err != nil {
22050 return nil, err
22051 }
22052 defer googleapi.CloseBody(res)
22053 if err := googleapi.CheckResponse(res); err != nil {
22054 return nil, gensupport.WrapError(err)
22055 }
22056 ret := &GoogleCloudDialogflowV2Environment{
22057 ServerResponse: googleapi.ServerResponse{
22058 Header: res.Header,
22059 HTTPStatusCode: res.StatusCode,
22060 },
22061 }
22062 target := &ret
22063 if err := gensupport.DecodeResponse(target, res); err != nil {
22064 return nil, err
22065 }
22066 return ret, nil
22067 }
22068
22069 type ProjectsAgentEnvironmentsIntentsListCall struct {
22070 s *Service
22071 parent string
22072 urlParams_ gensupport.URLParams
22073 ifNoneMatch_ string
22074 ctx_ context.Context
22075 header_ http.Header
22076 }
22077
22078
22079
22080
22081
22082
22083
22084
22085 func (r *ProjectsAgentEnvironmentsIntentsService) List(parent string) *ProjectsAgentEnvironmentsIntentsListCall {
22086 c := &ProjectsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22087 c.parent = parent
22088 return c
22089 }
22090
22091
22092
22093
22094
22095
22096
22097
22098
22099
22100
22101 func (c *ProjectsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsAgentEnvironmentsIntentsListCall {
22102 c.urlParams_.Set("intentView", intentView)
22103 return c
22104 }
22105
22106
22107
22108
22109
22110
22111 func (c *ProjectsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentEnvironmentsIntentsListCall {
22112 c.urlParams_.Set("languageCode", languageCode)
22113 return c
22114 }
22115
22116
22117
22118 func (c *ProjectsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsIntentsListCall {
22119 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22120 return c
22121 }
22122
22123
22124
22125 func (c *ProjectsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsIntentsListCall {
22126 c.urlParams_.Set("pageToken", pageToken)
22127 return c
22128 }
22129
22130
22131
22132
22133 func (c *ProjectsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsIntentsListCall {
22134 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22135 return c
22136 }
22137
22138
22139
22140
22141 func (c *ProjectsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsIntentsListCall {
22142 c.ifNoneMatch_ = entityTag
22143 return c
22144 }
22145
22146
22147 func (c *ProjectsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsIntentsListCall {
22148 c.ctx_ = ctx
22149 return c
22150 }
22151
22152
22153
22154 func (c *ProjectsAgentEnvironmentsIntentsListCall) Header() http.Header {
22155 if c.header_ == nil {
22156 c.header_ = make(http.Header)
22157 }
22158 return c.header_
22159 }
22160
22161 func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
22162 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22163 if c.ifNoneMatch_ != "" {
22164 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22165 }
22166 var body io.Reader = nil
22167 c.urlParams_.Set("alt", alt)
22168 c.urlParams_.Set("prettyPrint", "false")
22169 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
22170 urls += "?" + c.urlParams_.Encode()
22171 req, err := http.NewRequest("GET", urls, body)
22172 if err != nil {
22173 return nil, err
22174 }
22175 req.Header = reqHeaders
22176 googleapi.Expand(req.URL, map[string]string{
22177 "parent": c.parent,
22178 })
22179 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22180 }
22181
22182
22183
22184
22185
22186
22187
22188 func (c *ProjectsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
22189 gensupport.SetOptions(c.urlParams_, opts...)
22190 res, err := c.doRequest("json")
22191 if res != nil && res.StatusCode == http.StatusNotModified {
22192 if res.Body != nil {
22193 res.Body.Close()
22194 }
22195 return nil, gensupport.WrapError(&googleapi.Error{
22196 Code: res.StatusCode,
22197 Header: res.Header,
22198 })
22199 }
22200 if err != nil {
22201 return nil, err
22202 }
22203 defer googleapi.CloseBody(res)
22204 if err := googleapi.CheckResponse(res); err != nil {
22205 return nil, gensupport.WrapError(err)
22206 }
22207 ret := &GoogleCloudDialogflowV2ListIntentsResponse{
22208 ServerResponse: googleapi.ServerResponse{
22209 Header: res.Header,
22210 HTTPStatusCode: res.StatusCode,
22211 },
22212 }
22213 target := &ret
22214 if err := gensupport.DecodeResponse(target, res); err != nil {
22215 return nil, err
22216 }
22217 return ret, nil
22218 }
22219
22220
22221
22222
22223 func (c *ProjectsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
22224 c.ctx_ = ctx
22225 defer c.PageToken(c.urlParams_.Get("pageToken"))
22226 for {
22227 x, err := c.Do()
22228 if err != nil {
22229 return err
22230 }
22231 if err := f(x); err != nil {
22232 return err
22233 }
22234 if x.NextPageToken == "" {
22235 return nil
22236 }
22237 c.PageToken(x.NextPageToken)
22238 }
22239 }
22240
22241 type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
22242 s *Service
22243 parent string
22244 urlParams_ gensupport.URLParams
22245 ctx_ context.Context
22246 header_ http.Header
22247 }
22248
22249
22250
22251
22252
22253
22254
22255
22256 func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22257 c := &ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22258 c.parent = parent
22259 return c
22260 }
22261
22262
22263
22264
22265 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22266 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22267 return c
22268 }
22269
22270
22271 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22272 c.ctx_ = ctx
22273 return c
22274 }
22275
22276
22277
22278 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
22279 if c.header_ == nil {
22280 c.header_ = make(http.Header)
22281 }
22282 return c.header_
22283 }
22284
22285 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
22286 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22287 var body io.Reader = nil
22288 c.urlParams_.Set("alt", alt)
22289 c.urlParams_.Set("prettyPrint", "false")
22290 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
22291 urls += "?" + c.urlParams_.Encode()
22292 req, err := http.NewRequest("DELETE", urls, body)
22293 if err != nil {
22294 return nil, err
22295 }
22296 req.Header = reqHeaders
22297 googleapi.Expand(req.URL, map[string]string{
22298 "parent": c.parent,
22299 })
22300 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22301 }
22302
22303
22304
22305
22306
22307
22308
22309 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22310 gensupport.SetOptions(c.urlParams_, opts...)
22311 res, err := c.doRequest("json")
22312 if res != nil && res.StatusCode == http.StatusNotModified {
22313 if res.Body != nil {
22314 res.Body.Close()
22315 }
22316 return nil, gensupport.WrapError(&googleapi.Error{
22317 Code: res.StatusCode,
22318 Header: res.Header,
22319 })
22320 }
22321 if err != nil {
22322 return nil, err
22323 }
22324 defer googleapi.CloseBody(res)
22325 if err := googleapi.CheckResponse(res); err != nil {
22326 return nil, gensupport.WrapError(err)
22327 }
22328 ret := &GoogleProtobufEmpty{
22329 ServerResponse: googleapi.ServerResponse{
22330 Header: res.Header,
22331 HTTPStatusCode: res.StatusCode,
22332 },
22333 }
22334 target := &ret
22335 if err := gensupport.DecodeResponse(target, res); err != nil {
22336 return nil, err
22337 }
22338 return ret, nil
22339 }
22340
22341 type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
22342 s *Service
22343 sessionid string
22344 googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
22345 urlParams_ gensupport.URLParams
22346 ctx_ context.Context
22347 header_ http.Header
22348 }
22349
22350
22351
22352
22353
22354
22355
22356
22357
22358
22359
22360
22361
22362
22363
22364
22365
22366
22367
22368
22369
22370
22371
22372
22373
22374 func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22375 c := &ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22376 c.sessionid = sessionid
22377 c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
22378 return c
22379 }
22380
22381
22382
22383
22384 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22385 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22386 return c
22387 }
22388
22389
22390 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22391 c.ctx_ = ctx
22392 return c
22393 }
22394
22395
22396
22397 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
22398 if c.header_ == nil {
22399 c.header_ = make(http.Header)
22400 }
22401 return c.header_
22402 }
22403
22404 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
22405 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22406 var body io.Reader = nil
22407 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
22408 if err != nil {
22409 return nil, err
22410 }
22411 c.urlParams_.Set("alt", alt)
22412 c.urlParams_.Set("prettyPrint", "false")
22413 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
22414 urls += "?" + c.urlParams_.Encode()
22415 req, err := http.NewRequest("POST", urls, body)
22416 if err != nil {
22417 return nil, err
22418 }
22419 req.Header = reqHeaders
22420 googleapi.Expand(req.URL, map[string]string{
22421 "session": c.sessionid,
22422 })
22423 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22424 }
22425
22426
22427
22428
22429
22430
22431
22432 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
22433 gensupport.SetOptions(c.urlParams_, opts...)
22434 res, err := c.doRequest("json")
22435 if res != nil && res.StatusCode == http.StatusNotModified {
22436 if res.Body != nil {
22437 res.Body.Close()
22438 }
22439 return nil, gensupport.WrapError(&googleapi.Error{
22440 Code: res.StatusCode,
22441 Header: res.Header,
22442 })
22443 }
22444 if err != nil {
22445 return nil, err
22446 }
22447 defer googleapi.CloseBody(res)
22448 if err := googleapi.CheckResponse(res); err != nil {
22449 return nil, gensupport.WrapError(err)
22450 }
22451 ret := &GoogleCloudDialogflowV2DetectIntentResponse{
22452 ServerResponse: googleapi.ServerResponse{
22453 Header: res.Header,
22454 HTTPStatusCode: res.StatusCode,
22455 },
22456 }
22457 target := &ret
22458 if err := gensupport.DecodeResponse(target, res); err != nil {
22459 return nil, err
22460 }
22461 return ret, nil
22462 }
22463
22464 type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
22465 s *Service
22466 parent string
22467 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
22468 urlParams_ gensupport.URLParams
22469 ctx_ context.Context
22470 header_ http.Header
22471 }
22472
22473
22474
22475
22476
22477
22478
22479
22480
22481 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
22482 c := &ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22483 c.parent = parent
22484 c.googleclouddialogflowv2context = googleclouddialogflowv2context
22485 return c
22486 }
22487
22488
22489
22490
22491 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
22492 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22493 return c
22494 }
22495
22496
22497 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
22498 c.ctx_ = ctx
22499 return c
22500 }
22501
22502
22503
22504 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
22505 if c.header_ == nil {
22506 c.header_ = make(http.Header)
22507 }
22508 return c.header_
22509 }
22510
22511 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
22512 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22513 var body io.Reader = nil
22514 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
22515 if err != nil {
22516 return nil, err
22517 }
22518 c.urlParams_.Set("alt", alt)
22519 c.urlParams_.Set("prettyPrint", "false")
22520 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
22521 urls += "?" + c.urlParams_.Encode()
22522 req, err := http.NewRequest("POST", urls, body)
22523 if err != nil {
22524 return nil, err
22525 }
22526 req.Header = reqHeaders
22527 googleapi.Expand(req.URL, map[string]string{
22528 "parent": c.parent,
22529 })
22530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22531 }
22532
22533
22534
22535
22536
22537
22538
22539 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
22540 gensupport.SetOptions(c.urlParams_, opts...)
22541 res, err := c.doRequest("json")
22542 if res != nil && res.StatusCode == http.StatusNotModified {
22543 if res.Body != nil {
22544 res.Body.Close()
22545 }
22546 return nil, gensupport.WrapError(&googleapi.Error{
22547 Code: res.StatusCode,
22548 Header: res.Header,
22549 })
22550 }
22551 if err != nil {
22552 return nil, err
22553 }
22554 defer googleapi.CloseBody(res)
22555 if err := googleapi.CheckResponse(res); err != nil {
22556 return nil, gensupport.WrapError(err)
22557 }
22558 ret := &GoogleCloudDialogflowV2Context{
22559 ServerResponse: googleapi.ServerResponse{
22560 Header: res.Header,
22561 HTTPStatusCode: res.StatusCode,
22562 },
22563 }
22564 target := &ret
22565 if err := gensupport.DecodeResponse(target, res); err != nil {
22566 return nil, err
22567 }
22568 return ret, nil
22569 }
22570
22571 type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
22572 s *Service
22573 name string
22574 urlParams_ gensupport.URLParams
22575 ctx_ context.Context
22576 header_ http.Header
22577 }
22578
22579
22580
22581
22582
22583
22584
22585
22586 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
22587 c := &ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22588 c.name = name
22589 return c
22590 }
22591
22592
22593
22594
22595 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
22596 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22597 return c
22598 }
22599
22600
22601 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
22602 c.ctx_ = ctx
22603 return c
22604 }
22605
22606
22607
22608 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
22609 if c.header_ == nil {
22610 c.header_ = make(http.Header)
22611 }
22612 return c.header_
22613 }
22614
22615 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
22616 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22617 var body io.Reader = nil
22618 c.urlParams_.Set("alt", alt)
22619 c.urlParams_.Set("prettyPrint", "false")
22620 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22621 urls += "?" + c.urlParams_.Encode()
22622 req, err := http.NewRequest("DELETE", urls, body)
22623 if err != nil {
22624 return nil, err
22625 }
22626 req.Header = reqHeaders
22627 googleapi.Expand(req.URL, map[string]string{
22628 "name": c.name,
22629 })
22630 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22631 }
22632
22633
22634
22635
22636
22637
22638
22639 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22640 gensupport.SetOptions(c.urlParams_, opts...)
22641 res, err := c.doRequest("json")
22642 if res != nil && res.StatusCode == http.StatusNotModified {
22643 if res.Body != nil {
22644 res.Body.Close()
22645 }
22646 return nil, gensupport.WrapError(&googleapi.Error{
22647 Code: res.StatusCode,
22648 Header: res.Header,
22649 })
22650 }
22651 if err != nil {
22652 return nil, err
22653 }
22654 defer googleapi.CloseBody(res)
22655 if err := googleapi.CheckResponse(res); err != nil {
22656 return nil, gensupport.WrapError(err)
22657 }
22658 ret := &GoogleProtobufEmpty{
22659 ServerResponse: googleapi.ServerResponse{
22660 Header: res.Header,
22661 HTTPStatusCode: res.StatusCode,
22662 },
22663 }
22664 target := &ret
22665 if err := gensupport.DecodeResponse(target, res); err != nil {
22666 return nil, err
22667 }
22668 return ret, nil
22669 }
22670
22671 type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
22672 s *Service
22673 name string
22674 urlParams_ gensupport.URLParams
22675 ifNoneMatch_ string
22676 ctx_ context.Context
22677 header_ http.Header
22678 }
22679
22680
22681
22682
22683
22684
22685
22686
22687 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22688 c := &ProjectsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22689 c.name = name
22690 return c
22691 }
22692
22693
22694
22695
22696 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22697 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22698 return c
22699 }
22700
22701
22702
22703
22704 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22705 c.ifNoneMatch_ = entityTag
22706 return c
22707 }
22708
22709
22710 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22711 c.ctx_ = ctx
22712 return c
22713 }
22714
22715
22716
22717 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
22718 if c.header_ == nil {
22719 c.header_ = make(http.Header)
22720 }
22721 return c.header_
22722 }
22723
22724 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
22725 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22726 if c.ifNoneMatch_ != "" {
22727 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22728 }
22729 var body io.Reader = nil
22730 c.urlParams_.Set("alt", alt)
22731 c.urlParams_.Set("prettyPrint", "false")
22732 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22733 urls += "?" + c.urlParams_.Encode()
22734 req, err := http.NewRequest("GET", urls, body)
22735 if err != nil {
22736 return nil, err
22737 }
22738 req.Header = reqHeaders
22739 googleapi.Expand(req.URL, map[string]string{
22740 "name": c.name,
22741 })
22742 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22743 }
22744
22745
22746
22747
22748
22749
22750
22751 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
22752 gensupport.SetOptions(c.urlParams_, opts...)
22753 res, err := c.doRequest("json")
22754 if res != nil && res.StatusCode == http.StatusNotModified {
22755 if res.Body != nil {
22756 res.Body.Close()
22757 }
22758 return nil, gensupport.WrapError(&googleapi.Error{
22759 Code: res.StatusCode,
22760 Header: res.Header,
22761 })
22762 }
22763 if err != nil {
22764 return nil, err
22765 }
22766 defer googleapi.CloseBody(res)
22767 if err := googleapi.CheckResponse(res); err != nil {
22768 return nil, gensupport.WrapError(err)
22769 }
22770 ret := &GoogleCloudDialogflowV2Context{
22771 ServerResponse: googleapi.ServerResponse{
22772 Header: res.Header,
22773 HTTPStatusCode: res.StatusCode,
22774 },
22775 }
22776 target := &ret
22777 if err := gensupport.DecodeResponse(target, res); err != nil {
22778 return nil, err
22779 }
22780 return ret, nil
22781 }
22782
22783 type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
22784 s *Service
22785 parent string
22786 urlParams_ gensupport.URLParams
22787 ifNoneMatch_ string
22788 ctx_ context.Context
22789 header_ http.Header
22790 }
22791
22792
22793
22794
22795
22796
22797
22798
22799 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22800 c := &ProjectsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22801 c.parent = parent
22802 return c
22803 }
22804
22805
22806
22807 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22808 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22809 return c
22810 }
22811
22812
22813
22814 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22815 c.urlParams_.Set("pageToken", pageToken)
22816 return c
22817 }
22818
22819
22820
22821
22822 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22823 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22824 return c
22825 }
22826
22827
22828
22829
22830 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22831 c.ifNoneMatch_ = entityTag
22832 return c
22833 }
22834
22835
22836 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22837 c.ctx_ = ctx
22838 return c
22839 }
22840
22841
22842
22843 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
22844 if c.header_ == nil {
22845 c.header_ = make(http.Header)
22846 }
22847 return c.header_
22848 }
22849
22850 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
22851 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22852 if c.ifNoneMatch_ != "" {
22853 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22854 }
22855 var body io.Reader = nil
22856 c.urlParams_.Set("alt", alt)
22857 c.urlParams_.Set("prettyPrint", "false")
22858 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
22859 urls += "?" + c.urlParams_.Encode()
22860 req, err := http.NewRequest("GET", urls, body)
22861 if err != nil {
22862 return nil, err
22863 }
22864 req.Header = reqHeaders
22865 googleapi.Expand(req.URL, map[string]string{
22866 "parent": c.parent,
22867 })
22868 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22869 }
22870
22871
22872
22873
22874
22875
22876
22877 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
22878 gensupport.SetOptions(c.urlParams_, opts...)
22879 res, err := c.doRequest("json")
22880 if res != nil && res.StatusCode == http.StatusNotModified {
22881 if res.Body != nil {
22882 res.Body.Close()
22883 }
22884 return nil, gensupport.WrapError(&googleapi.Error{
22885 Code: res.StatusCode,
22886 Header: res.Header,
22887 })
22888 }
22889 if err != nil {
22890 return nil, err
22891 }
22892 defer googleapi.CloseBody(res)
22893 if err := googleapi.CheckResponse(res); err != nil {
22894 return nil, gensupport.WrapError(err)
22895 }
22896 ret := &GoogleCloudDialogflowV2ListContextsResponse{
22897 ServerResponse: googleapi.ServerResponse{
22898 Header: res.Header,
22899 HTTPStatusCode: res.StatusCode,
22900 },
22901 }
22902 target := &ret
22903 if err := gensupport.DecodeResponse(target, res); err != nil {
22904 return nil, err
22905 }
22906 return ret, nil
22907 }
22908
22909
22910
22911
22912 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
22913 c.ctx_ = ctx
22914 defer c.PageToken(c.urlParams_.Get("pageToken"))
22915 for {
22916 x, err := c.Do()
22917 if err != nil {
22918 return err
22919 }
22920 if err := f(x); err != nil {
22921 return err
22922 }
22923 if x.NextPageToken == "" {
22924 return nil
22925 }
22926 c.PageToken(x.NextPageToken)
22927 }
22928 }
22929
22930 type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
22931 s *Service
22932 nameid string
22933 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
22934 urlParams_ gensupport.URLParams
22935 ctx_ context.Context
22936 header_ http.Header
22937 }
22938
22939
22940
22941
22942
22943
22944
22945
22946
22947
22948
22949
22950
22951 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
22952 c := &ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22953 c.nameid = nameid
22954 c.googleclouddialogflowv2context = googleclouddialogflowv2context
22955 return c
22956 }
22957
22958
22959
22960 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
22961 c.urlParams_.Set("updateMask", updateMask)
22962 return c
22963 }
22964
22965
22966
22967
22968 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
22969 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22970 return c
22971 }
22972
22973
22974 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
22975 c.ctx_ = ctx
22976 return c
22977 }
22978
22979
22980
22981 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
22982 if c.header_ == nil {
22983 c.header_ = make(http.Header)
22984 }
22985 return c.header_
22986 }
22987
22988 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
22989 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22990 var body io.Reader = nil
22991 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
22992 if err != nil {
22993 return nil, err
22994 }
22995 c.urlParams_.Set("alt", alt)
22996 c.urlParams_.Set("prettyPrint", "false")
22997 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
22998 urls += "?" + c.urlParams_.Encode()
22999 req, err := http.NewRequest("PATCH", urls, body)
23000 if err != nil {
23001 return nil, err
23002 }
23003 req.Header = reqHeaders
23004 googleapi.Expand(req.URL, map[string]string{
23005 "name": c.nameid,
23006 })
23007 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23008 }
23009
23010
23011
23012
23013
23014
23015
23016 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
23017 gensupport.SetOptions(c.urlParams_, opts...)
23018 res, err := c.doRequest("json")
23019 if res != nil && res.StatusCode == http.StatusNotModified {
23020 if res.Body != nil {
23021 res.Body.Close()
23022 }
23023 return nil, gensupport.WrapError(&googleapi.Error{
23024 Code: res.StatusCode,
23025 Header: res.Header,
23026 })
23027 }
23028 if err != nil {
23029 return nil, err
23030 }
23031 defer googleapi.CloseBody(res)
23032 if err := googleapi.CheckResponse(res); err != nil {
23033 return nil, gensupport.WrapError(err)
23034 }
23035 ret := &GoogleCloudDialogflowV2Context{
23036 ServerResponse: googleapi.ServerResponse{
23037 Header: res.Header,
23038 HTTPStatusCode: res.StatusCode,
23039 },
23040 }
23041 target := &ret
23042 if err := gensupport.DecodeResponse(target, res); err != nil {
23043 return nil, err
23044 }
23045 return ret, nil
23046 }
23047
23048 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
23049 s *Service
23050 parent string
23051 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
23052 urlParams_ gensupport.URLParams
23053 ctx_ context.Context
23054 header_ http.Header
23055 }
23056
23057
23058
23059
23060
23061
23062
23063
23064
23065
23066
23067 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23068 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23069 c.parent = parent
23070 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
23071 return c
23072 }
23073
23074
23075
23076
23077 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23078 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23079 return c
23080 }
23081
23082
23083 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23084 c.ctx_ = ctx
23085 return c
23086 }
23087
23088
23089
23090 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
23091 if c.header_ == nil {
23092 c.header_ = make(http.Header)
23093 }
23094 return c.header_
23095 }
23096
23097 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
23098 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23099 var body io.Reader = nil
23100 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
23101 if err != nil {
23102 return nil, err
23103 }
23104 c.urlParams_.Set("alt", alt)
23105 c.urlParams_.Set("prettyPrint", "false")
23106 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
23107 urls += "?" + c.urlParams_.Encode()
23108 req, err := http.NewRequest("POST", urls, body)
23109 if err != nil {
23110 return nil, err
23111 }
23112 req.Header = reqHeaders
23113 googleapi.Expand(req.URL, map[string]string{
23114 "parent": c.parent,
23115 })
23116 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23117 }
23118
23119
23120
23121
23122
23123
23124
23125 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
23126 gensupport.SetOptions(c.urlParams_, opts...)
23127 res, err := c.doRequest("json")
23128 if res != nil && res.StatusCode == http.StatusNotModified {
23129 if res.Body != nil {
23130 res.Body.Close()
23131 }
23132 return nil, gensupport.WrapError(&googleapi.Error{
23133 Code: res.StatusCode,
23134 Header: res.Header,
23135 })
23136 }
23137 if err != nil {
23138 return nil, err
23139 }
23140 defer googleapi.CloseBody(res)
23141 if err := googleapi.CheckResponse(res); err != nil {
23142 return nil, gensupport.WrapError(err)
23143 }
23144 ret := &GoogleCloudDialogflowV2SessionEntityType{
23145 ServerResponse: googleapi.ServerResponse{
23146 Header: res.Header,
23147 HTTPStatusCode: res.StatusCode,
23148 },
23149 }
23150 target := &ret
23151 if err := gensupport.DecodeResponse(target, res); err != nil {
23152 return nil, err
23153 }
23154 return ret, nil
23155 }
23156
23157 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
23158 s *Service
23159 name string
23160 urlParams_ gensupport.URLParams
23161 ctx_ context.Context
23162 header_ http.Header
23163 }
23164
23165
23166
23167
23168
23169
23170
23171
23172
23173
23174 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23175 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23176 c.name = name
23177 return c
23178 }
23179
23180
23181
23182
23183 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23184 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23185 return c
23186 }
23187
23188
23189 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23190 c.ctx_ = ctx
23191 return c
23192 }
23193
23194
23195
23196 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
23197 if c.header_ == nil {
23198 c.header_ = make(http.Header)
23199 }
23200 return c.header_
23201 }
23202
23203 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
23204 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23205 var body io.Reader = nil
23206 c.urlParams_.Set("alt", alt)
23207 c.urlParams_.Set("prettyPrint", "false")
23208 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23209 urls += "?" + c.urlParams_.Encode()
23210 req, err := http.NewRequest("DELETE", urls, body)
23211 if err != nil {
23212 return nil, err
23213 }
23214 req.Header = reqHeaders
23215 googleapi.Expand(req.URL, map[string]string{
23216 "name": c.name,
23217 })
23218 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23219 }
23220
23221
23222
23223
23224
23225
23226
23227 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23228 gensupport.SetOptions(c.urlParams_, opts...)
23229 res, err := c.doRequest("json")
23230 if res != nil && res.StatusCode == http.StatusNotModified {
23231 if res.Body != nil {
23232 res.Body.Close()
23233 }
23234 return nil, gensupport.WrapError(&googleapi.Error{
23235 Code: res.StatusCode,
23236 Header: res.Header,
23237 })
23238 }
23239 if err != nil {
23240 return nil, err
23241 }
23242 defer googleapi.CloseBody(res)
23243 if err := googleapi.CheckResponse(res); err != nil {
23244 return nil, gensupport.WrapError(err)
23245 }
23246 ret := &GoogleProtobufEmpty{
23247 ServerResponse: googleapi.ServerResponse{
23248 Header: res.Header,
23249 HTTPStatusCode: res.StatusCode,
23250 },
23251 }
23252 target := &ret
23253 if err := gensupport.DecodeResponse(target, res); err != nil {
23254 return nil, err
23255 }
23256 return ret, nil
23257 }
23258
23259 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
23260 s *Service
23261 name string
23262 urlParams_ gensupport.URLParams
23263 ifNoneMatch_ string
23264 ctx_ context.Context
23265 header_ http.Header
23266 }
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23278 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23279 c.name = name
23280 return c
23281 }
23282
23283
23284
23285
23286 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23288 return c
23289 }
23290
23291
23292
23293
23294 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23295 c.ifNoneMatch_ = entityTag
23296 return c
23297 }
23298
23299
23300 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23301 c.ctx_ = ctx
23302 return c
23303 }
23304
23305
23306
23307 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
23308 if c.header_ == nil {
23309 c.header_ = make(http.Header)
23310 }
23311 return c.header_
23312 }
23313
23314 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
23315 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23316 if c.ifNoneMatch_ != "" {
23317 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23318 }
23319 var body io.Reader = nil
23320 c.urlParams_.Set("alt", alt)
23321 c.urlParams_.Set("prettyPrint", "false")
23322 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23323 urls += "?" + c.urlParams_.Encode()
23324 req, err := http.NewRequest("GET", urls, body)
23325 if err != nil {
23326 return nil, err
23327 }
23328 req.Header = reqHeaders
23329 googleapi.Expand(req.URL, map[string]string{
23330 "name": c.name,
23331 })
23332 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23333 }
23334
23335
23336
23337
23338
23339
23340
23341 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
23342 gensupport.SetOptions(c.urlParams_, opts...)
23343 res, err := c.doRequest("json")
23344 if res != nil && res.StatusCode == http.StatusNotModified {
23345 if res.Body != nil {
23346 res.Body.Close()
23347 }
23348 return nil, gensupport.WrapError(&googleapi.Error{
23349 Code: res.StatusCode,
23350 Header: res.Header,
23351 })
23352 }
23353 if err != nil {
23354 return nil, err
23355 }
23356 defer googleapi.CloseBody(res)
23357 if err := googleapi.CheckResponse(res); err != nil {
23358 return nil, gensupport.WrapError(err)
23359 }
23360 ret := &GoogleCloudDialogflowV2SessionEntityType{
23361 ServerResponse: googleapi.ServerResponse{
23362 Header: res.Header,
23363 HTTPStatusCode: res.StatusCode,
23364 },
23365 }
23366 target := &ret
23367 if err := gensupport.DecodeResponse(target, res); err != nil {
23368 return nil, err
23369 }
23370 return ret, nil
23371 }
23372
23373 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
23374 s *Service
23375 parent string
23376 urlParams_ gensupport.URLParams
23377 ifNoneMatch_ string
23378 ctx_ context.Context
23379 header_ http.Header
23380 }
23381
23382
23383
23384
23385
23386
23387
23388
23389
23390
23391
23392 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23393 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23394 c.parent = parent
23395 return c
23396 }
23397
23398
23399
23400 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23401 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23402 return c
23403 }
23404
23405
23406
23407 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23408 c.urlParams_.Set("pageToken", pageToken)
23409 return c
23410 }
23411
23412
23413
23414
23415 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23417 return c
23418 }
23419
23420
23421
23422
23423 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23424 c.ifNoneMatch_ = entityTag
23425 return c
23426 }
23427
23428
23429 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23430 c.ctx_ = ctx
23431 return c
23432 }
23433
23434
23435
23436 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
23437 if c.header_ == nil {
23438 c.header_ = make(http.Header)
23439 }
23440 return c.header_
23441 }
23442
23443 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
23444 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23445 if c.ifNoneMatch_ != "" {
23446 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23447 }
23448 var body io.Reader = nil
23449 c.urlParams_.Set("alt", alt)
23450 c.urlParams_.Set("prettyPrint", "false")
23451 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
23452 urls += "?" + c.urlParams_.Encode()
23453 req, err := http.NewRequest("GET", urls, body)
23454 if err != nil {
23455 return nil, err
23456 }
23457 req.Header = reqHeaders
23458 googleapi.Expand(req.URL, map[string]string{
23459 "parent": c.parent,
23460 })
23461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23462 }
23463
23464
23465
23466
23467
23468
23469
23470 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
23471 gensupport.SetOptions(c.urlParams_, opts...)
23472 res, err := c.doRequest("json")
23473 if res != nil && res.StatusCode == http.StatusNotModified {
23474 if res.Body != nil {
23475 res.Body.Close()
23476 }
23477 return nil, gensupport.WrapError(&googleapi.Error{
23478 Code: res.StatusCode,
23479 Header: res.Header,
23480 })
23481 }
23482 if err != nil {
23483 return nil, err
23484 }
23485 defer googleapi.CloseBody(res)
23486 if err := googleapi.CheckResponse(res); err != nil {
23487 return nil, gensupport.WrapError(err)
23488 }
23489 ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
23490 ServerResponse: googleapi.ServerResponse{
23491 Header: res.Header,
23492 HTTPStatusCode: res.StatusCode,
23493 },
23494 }
23495 target := &ret
23496 if err := gensupport.DecodeResponse(target, res); err != nil {
23497 return nil, err
23498 }
23499 return ret, nil
23500 }
23501
23502
23503
23504
23505 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
23506 c.ctx_ = ctx
23507 defer c.PageToken(c.urlParams_.Get("pageToken"))
23508 for {
23509 x, err := c.Do()
23510 if err != nil {
23511 return err
23512 }
23513 if err := f(x); err != nil {
23514 return err
23515 }
23516 if x.NextPageToken == "" {
23517 return nil
23518 }
23519 c.PageToken(x.NextPageToken)
23520 }
23521 }
23522
23523 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
23524 s *Service
23525 nameid string
23526 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
23527 urlParams_ gensupport.URLParams
23528 ctx_ context.Context
23529 header_ http.Header
23530 }
23531
23532
23533
23534
23535
23536
23537
23538
23539
23540
23541
23542
23543 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23544 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23545 c.nameid = nameid
23546 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
23547 return c
23548 }
23549
23550
23551
23552 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23553 c.urlParams_.Set("updateMask", updateMask)
23554 return c
23555 }
23556
23557
23558
23559
23560 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23561 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23562 return c
23563 }
23564
23565
23566 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23567 c.ctx_ = ctx
23568 return c
23569 }
23570
23571
23572
23573 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
23574 if c.header_ == nil {
23575 c.header_ = make(http.Header)
23576 }
23577 return c.header_
23578 }
23579
23580 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
23581 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23582 var body io.Reader = nil
23583 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
23584 if err != nil {
23585 return nil, err
23586 }
23587 c.urlParams_.Set("alt", alt)
23588 c.urlParams_.Set("prettyPrint", "false")
23589 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
23590 urls += "?" + c.urlParams_.Encode()
23591 req, err := http.NewRequest("PATCH", urls, body)
23592 if err != nil {
23593 return nil, err
23594 }
23595 req.Header = reqHeaders
23596 googleapi.Expand(req.URL, map[string]string{
23597 "name": c.nameid,
23598 })
23599 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23600 }
23601
23602
23603
23604
23605
23606
23607
23608 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
23609 gensupport.SetOptions(c.urlParams_, opts...)
23610 res, err := c.doRequest("json")
23611 if res != nil && res.StatusCode == http.StatusNotModified {
23612 if res.Body != nil {
23613 res.Body.Close()
23614 }
23615 return nil, gensupport.WrapError(&googleapi.Error{
23616 Code: res.StatusCode,
23617 Header: res.Header,
23618 })
23619 }
23620 if err != nil {
23621 return nil, err
23622 }
23623 defer googleapi.CloseBody(res)
23624 if err := googleapi.CheckResponse(res); err != nil {
23625 return nil, gensupport.WrapError(err)
23626 }
23627 ret := &GoogleCloudDialogflowV2SessionEntityType{
23628 ServerResponse: googleapi.ServerResponse{
23629 Header: res.Header,
23630 HTTPStatusCode: res.StatusCode,
23631 },
23632 }
23633 target := &ret
23634 if err := gensupport.DecodeResponse(target, res); err != nil {
23635 return nil, err
23636 }
23637 return ret, nil
23638 }
23639
23640 type ProjectsAgentIntentsBatchDeleteCall struct {
23641 s *Service
23642 parent string
23643 googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest
23644 urlParams_ gensupport.URLParams
23645 ctx_ context.Context
23646 header_ http.Header
23647 }
23648
23649
23650
23651
23652
23653
23654
23655
23656
23657
23658
23659
23660
23661
23662
23663 func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall {
23664 c := &ProjectsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23665 c.parent = parent
23666 c.googleclouddialogflowv2batchdeleteintentsrequest = googleclouddialogflowv2batchdeleteintentsrequest
23667 return c
23668 }
23669
23670
23671
23672
23673 func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall {
23674 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23675 return c
23676 }
23677
23678
23679 func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall {
23680 c.ctx_ = ctx
23681 return c
23682 }
23683
23684
23685
23686 func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header {
23687 if c.header_ == nil {
23688 c.header_ = make(http.Header)
23689 }
23690 return c.header_
23691 }
23692
23693 func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
23694 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23695 var body io.Reader = nil
23696 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteintentsrequest)
23697 if err != nil {
23698 return nil, err
23699 }
23700 c.urlParams_.Set("alt", alt)
23701 c.urlParams_.Set("prettyPrint", "false")
23702 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchDelete")
23703 urls += "?" + c.urlParams_.Encode()
23704 req, err := http.NewRequest("POST", urls, body)
23705 if err != nil {
23706 return nil, err
23707 }
23708 req.Header = reqHeaders
23709 googleapi.Expand(req.URL, map[string]string{
23710 "parent": c.parent,
23711 })
23712 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23713 }
23714
23715
23716
23717
23718
23719
23720
23721 func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23722 gensupport.SetOptions(c.urlParams_, opts...)
23723 res, err := c.doRequest("json")
23724 if res != nil && res.StatusCode == http.StatusNotModified {
23725 if res.Body != nil {
23726 res.Body.Close()
23727 }
23728 return nil, gensupport.WrapError(&googleapi.Error{
23729 Code: res.StatusCode,
23730 Header: res.Header,
23731 })
23732 }
23733 if err != nil {
23734 return nil, err
23735 }
23736 defer googleapi.CloseBody(res)
23737 if err := googleapi.CheckResponse(res); err != nil {
23738 return nil, gensupport.WrapError(err)
23739 }
23740 ret := &GoogleLongrunningOperation{
23741 ServerResponse: googleapi.ServerResponse{
23742 Header: res.Header,
23743 HTTPStatusCode: res.StatusCode,
23744 },
23745 }
23746 target := &ret
23747 if err := gensupport.DecodeResponse(target, res); err != nil {
23748 return nil, err
23749 }
23750 return ret, nil
23751 }
23752
23753 type ProjectsAgentIntentsBatchUpdateCall struct {
23754 s *Service
23755 parent string
23756 googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest
23757 urlParams_ gensupport.URLParams
23758 ctx_ context.Context
23759 header_ http.Header
23760 }
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774 func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall {
23775 c := &ProjectsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23776 c.parent = parent
23777 c.googleclouddialogflowv2batchupdateintentsrequest = googleclouddialogflowv2batchupdateintentsrequest
23778 return c
23779 }
23780
23781
23782
23783
23784 func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall {
23785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23786 return c
23787 }
23788
23789
23790 func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall {
23791 c.ctx_ = ctx
23792 return c
23793 }
23794
23795
23796
23797 func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header {
23798 if c.header_ == nil {
23799 c.header_ = make(http.Header)
23800 }
23801 return c.header_
23802 }
23803
23804 func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
23805 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23806 var body io.Reader = nil
23807 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateintentsrequest)
23808 if err != nil {
23809 return nil, err
23810 }
23811 c.urlParams_.Set("alt", alt)
23812 c.urlParams_.Set("prettyPrint", "false")
23813 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchUpdate")
23814 urls += "?" + c.urlParams_.Encode()
23815 req, err := http.NewRequest("POST", urls, body)
23816 if err != nil {
23817 return nil, err
23818 }
23819 req.Header = reqHeaders
23820 googleapi.Expand(req.URL, map[string]string{
23821 "parent": c.parent,
23822 })
23823 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23824 }
23825
23826
23827
23828
23829
23830
23831
23832 func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23833 gensupport.SetOptions(c.urlParams_, opts...)
23834 res, err := c.doRequest("json")
23835 if res != nil && res.StatusCode == http.StatusNotModified {
23836 if res.Body != nil {
23837 res.Body.Close()
23838 }
23839 return nil, gensupport.WrapError(&googleapi.Error{
23840 Code: res.StatusCode,
23841 Header: res.Header,
23842 })
23843 }
23844 if err != nil {
23845 return nil, err
23846 }
23847 defer googleapi.CloseBody(res)
23848 if err := googleapi.CheckResponse(res); err != nil {
23849 return nil, gensupport.WrapError(err)
23850 }
23851 ret := &GoogleLongrunningOperation{
23852 ServerResponse: googleapi.ServerResponse{
23853 Header: res.Header,
23854 HTTPStatusCode: res.StatusCode,
23855 },
23856 }
23857 target := &ret
23858 if err := gensupport.DecodeResponse(target, res); err != nil {
23859 return nil, err
23860 }
23861 return ret, nil
23862 }
23863
23864 type ProjectsAgentIntentsCreateCall struct {
23865 s *Service
23866 parent string
23867 googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
23868 urlParams_ gensupport.URLParams
23869 ctx_ context.Context
23870 header_ http.Header
23871 }
23872
23873
23874
23875
23876
23877
23878 func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsCreateCall {
23879 c := &ProjectsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23880 c.parent = parent
23881 c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
23882 return c
23883 }
23884
23885
23886
23887
23888
23889
23890
23891
23892
23893
23894
23895 func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall {
23896 c.urlParams_.Set("intentView", intentView)
23897 return c
23898 }
23899
23900
23901
23902
23903
23904
23905 func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall {
23906 c.urlParams_.Set("languageCode", languageCode)
23907 return c
23908 }
23909
23910
23911
23912
23913 func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall {
23914 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23915 return c
23916 }
23917
23918
23919 func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall {
23920 c.ctx_ = ctx
23921 return c
23922 }
23923
23924
23925
23926 func (c *ProjectsAgentIntentsCreateCall) Header() http.Header {
23927 if c.header_ == nil {
23928 c.header_ = make(http.Header)
23929 }
23930 return c.header_
23931 }
23932
23933 func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
23934 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23935 var body io.Reader = nil
23936 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
23937 if err != nil {
23938 return nil, err
23939 }
23940 c.urlParams_.Set("alt", alt)
23941 c.urlParams_.Set("prettyPrint", "false")
23942 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
23943 urls += "?" + c.urlParams_.Encode()
23944 req, err := http.NewRequest("POST", urls, body)
23945 if err != nil {
23946 return nil, err
23947 }
23948 req.Header = reqHeaders
23949 googleapi.Expand(req.URL, map[string]string{
23950 "parent": c.parent,
23951 })
23952 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23953 }
23954
23955
23956
23957
23958
23959
23960
23961 func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
23962 gensupport.SetOptions(c.urlParams_, opts...)
23963 res, err := c.doRequest("json")
23964 if res != nil && res.StatusCode == http.StatusNotModified {
23965 if res.Body != nil {
23966 res.Body.Close()
23967 }
23968 return nil, gensupport.WrapError(&googleapi.Error{
23969 Code: res.StatusCode,
23970 Header: res.Header,
23971 })
23972 }
23973 if err != nil {
23974 return nil, err
23975 }
23976 defer googleapi.CloseBody(res)
23977 if err := googleapi.CheckResponse(res); err != nil {
23978 return nil, gensupport.WrapError(err)
23979 }
23980 ret := &GoogleCloudDialogflowV2Intent{
23981 ServerResponse: googleapi.ServerResponse{
23982 Header: res.Header,
23983 HTTPStatusCode: res.StatusCode,
23984 },
23985 }
23986 target := &ret
23987 if err := gensupport.DecodeResponse(target, res); err != nil {
23988 return nil, err
23989 }
23990 return ret, nil
23991 }
23992
23993 type ProjectsAgentIntentsDeleteCall struct {
23994 s *Service
23995 name string
23996 urlParams_ gensupport.URLParams
23997 ctx_ context.Context
23998 header_ http.Header
23999 }
24000
24001
24002
24003
24004
24005
24006
24007
24008
24009 func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall {
24010 c := &ProjectsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24011 c.name = name
24012 return c
24013 }
24014
24015
24016
24017
24018 func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall {
24019 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24020 return c
24021 }
24022
24023
24024 func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall {
24025 c.ctx_ = ctx
24026 return c
24027 }
24028
24029
24030
24031 func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header {
24032 if c.header_ == nil {
24033 c.header_ = make(http.Header)
24034 }
24035 return c.header_
24036 }
24037
24038 func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24039 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24040 var body io.Reader = nil
24041 c.urlParams_.Set("alt", alt)
24042 c.urlParams_.Set("prettyPrint", "false")
24043 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24044 urls += "?" + c.urlParams_.Encode()
24045 req, err := http.NewRequest("DELETE", urls, body)
24046 if err != nil {
24047 return nil, err
24048 }
24049 req.Header = reqHeaders
24050 googleapi.Expand(req.URL, map[string]string{
24051 "name": c.name,
24052 })
24053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24054 }
24055
24056
24057
24058
24059
24060
24061
24062 func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24063 gensupport.SetOptions(c.urlParams_, opts...)
24064 res, err := c.doRequest("json")
24065 if res != nil && res.StatusCode == http.StatusNotModified {
24066 if res.Body != nil {
24067 res.Body.Close()
24068 }
24069 return nil, gensupport.WrapError(&googleapi.Error{
24070 Code: res.StatusCode,
24071 Header: res.Header,
24072 })
24073 }
24074 if err != nil {
24075 return nil, err
24076 }
24077 defer googleapi.CloseBody(res)
24078 if err := googleapi.CheckResponse(res); err != nil {
24079 return nil, gensupport.WrapError(err)
24080 }
24081 ret := &GoogleProtobufEmpty{
24082 ServerResponse: googleapi.ServerResponse{
24083 Header: res.Header,
24084 HTTPStatusCode: res.StatusCode,
24085 },
24086 }
24087 target := &ret
24088 if err := gensupport.DecodeResponse(target, res); err != nil {
24089 return nil, err
24090 }
24091 return ret, nil
24092 }
24093
24094 type ProjectsAgentIntentsGetCall struct {
24095 s *Service
24096 name string
24097 urlParams_ gensupport.URLParams
24098 ifNoneMatch_ string
24099 ctx_ context.Context
24100 header_ http.Header
24101 }
24102
24103
24104
24105
24106 func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall {
24107 c := &ProjectsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24108 c.name = name
24109 return c
24110 }
24111
24112
24113
24114
24115
24116
24117
24118
24119
24120
24121
24122 func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall {
24123 c.urlParams_.Set("intentView", intentView)
24124 return c
24125 }
24126
24127
24128
24129
24130
24131
24132 func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall {
24133 c.urlParams_.Set("languageCode", languageCode)
24134 return c
24135 }
24136
24137
24138
24139
24140 func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall {
24141 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24142 return c
24143 }
24144
24145
24146
24147
24148 func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall {
24149 c.ifNoneMatch_ = entityTag
24150 return c
24151 }
24152
24153
24154 func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall {
24155 c.ctx_ = ctx
24156 return c
24157 }
24158
24159
24160
24161 func (c *ProjectsAgentIntentsGetCall) Header() http.Header {
24162 if c.header_ == nil {
24163 c.header_ = make(http.Header)
24164 }
24165 return c.header_
24166 }
24167
24168 func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
24169 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24170 if c.ifNoneMatch_ != "" {
24171 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24172 }
24173 var body io.Reader = nil
24174 c.urlParams_.Set("alt", alt)
24175 c.urlParams_.Set("prettyPrint", "false")
24176 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24177 urls += "?" + c.urlParams_.Encode()
24178 req, err := http.NewRequest("GET", urls, body)
24179 if err != nil {
24180 return nil, err
24181 }
24182 req.Header = reqHeaders
24183 googleapi.Expand(req.URL, map[string]string{
24184 "name": c.name,
24185 })
24186 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24187 }
24188
24189
24190
24191
24192
24193
24194
24195 func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
24196 gensupport.SetOptions(c.urlParams_, opts...)
24197 res, err := c.doRequest("json")
24198 if res != nil && res.StatusCode == http.StatusNotModified {
24199 if res.Body != nil {
24200 res.Body.Close()
24201 }
24202 return nil, gensupport.WrapError(&googleapi.Error{
24203 Code: res.StatusCode,
24204 Header: res.Header,
24205 })
24206 }
24207 if err != nil {
24208 return nil, err
24209 }
24210 defer googleapi.CloseBody(res)
24211 if err := googleapi.CheckResponse(res); err != nil {
24212 return nil, gensupport.WrapError(err)
24213 }
24214 ret := &GoogleCloudDialogflowV2Intent{
24215 ServerResponse: googleapi.ServerResponse{
24216 Header: res.Header,
24217 HTTPStatusCode: res.StatusCode,
24218 },
24219 }
24220 target := &ret
24221 if err := gensupport.DecodeResponse(target, res); err != nil {
24222 return nil, err
24223 }
24224 return ret, nil
24225 }
24226
24227 type ProjectsAgentIntentsListCall struct {
24228 s *Service
24229 parent string
24230 urlParams_ gensupport.URLParams
24231 ifNoneMatch_ string
24232 ctx_ context.Context
24233 header_ http.Header
24234 }
24235
24236
24237
24238
24239
24240
24241
24242
24243 func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall {
24244 c := &ProjectsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24245 c.parent = parent
24246 return c
24247 }
24248
24249
24250
24251
24252
24253
24254
24255
24256
24257
24258
24259 func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall {
24260 c.urlParams_.Set("intentView", intentView)
24261 return c
24262 }
24263
24264
24265
24266
24267
24268
24269 func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall {
24270 c.urlParams_.Set("languageCode", languageCode)
24271 return c
24272 }
24273
24274
24275
24276 func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall {
24277 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24278 return c
24279 }
24280
24281
24282
24283 func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall {
24284 c.urlParams_.Set("pageToken", pageToken)
24285 return c
24286 }
24287
24288
24289
24290
24291 func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall {
24292 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24293 return c
24294 }
24295
24296
24297
24298
24299 func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall {
24300 c.ifNoneMatch_ = entityTag
24301 return c
24302 }
24303
24304
24305 func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall {
24306 c.ctx_ = ctx
24307 return c
24308 }
24309
24310
24311
24312 func (c *ProjectsAgentIntentsListCall) Header() http.Header {
24313 if c.header_ == nil {
24314 c.header_ = make(http.Header)
24315 }
24316 return c.header_
24317 }
24318
24319 func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
24320 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24321 if c.ifNoneMatch_ != "" {
24322 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24323 }
24324 var body io.Reader = nil
24325 c.urlParams_.Set("alt", alt)
24326 c.urlParams_.Set("prettyPrint", "false")
24327 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
24328 urls += "?" + c.urlParams_.Encode()
24329 req, err := http.NewRequest("GET", urls, body)
24330 if err != nil {
24331 return nil, err
24332 }
24333 req.Header = reqHeaders
24334 googleapi.Expand(req.URL, map[string]string{
24335 "parent": c.parent,
24336 })
24337 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24338 }
24339
24340
24341
24342
24343
24344
24345
24346 func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
24347 gensupport.SetOptions(c.urlParams_, opts...)
24348 res, err := c.doRequest("json")
24349 if res != nil && res.StatusCode == http.StatusNotModified {
24350 if res.Body != nil {
24351 res.Body.Close()
24352 }
24353 return nil, gensupport.WrapError(&googleapi.Error{
24354 Code: res.StatusCode,
24355 Header: res.Header,
24356 })
24357 }
24358 if err != nil {
24359 return nil, err
24360 }
24361 defer googleapi.CloseBody(res)
24362 if err := googleapi.CheckResponse(res); err != nil {
24363 return nil, gensupport.WrapError(err)
24364 }
24365 ret := &GoogleCloudDialogflowV2ListIntentsResponse{
24366 ServerResponse: googleapi.ServerResponse{
24367 Header: res.Header,
24368 HTTPStatusCode: res.StatusCode,
24369 },
24370 }
24371 target := &ret
24372 if err := gensupport.DecodeResponse(target, res); err != nil {
24373 return nil, err
24374 }
24375 return ret, nil
24376 }
24377
24378
24379
24380
24381 func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
24382 c.ctx_ = ctx
24383 defer c.PageToken(c.urlParams_.Get("pageToken"))
24384 for {
24385 x, err := c.Do()
24386 if err != nil {
24387 return err
24388 }
24389 if err := f(x); err != nil {
24390 return err
24391 }
24392 if x.NextPageToken == "" {
24393 return nil
24394 }
24395 c.PageToken(x.NextPageToken)
24396 }
24397 }
24398
24399 type ProjectsAgentIntentsPatchCall struct {
24400 s *Service
24401 nameid string
24402 googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
24403 urlParams_ gensupport.URLParams
24404 ctx_ context.Context
24405 header_ http.Header
24406 }
24407
24408
24409
24410
24411
24412
24413
24414
24415 func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsAgentIntentsPatchCall {
24416 c := &ProjectsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24417 c.nameid = nameid
24418 c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
24419 return c
24420 }
24421
24422
24423
24424
24425
24426
24427
24428
24429
24430
24431
24432 func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall {
24433 c.urlParams_.Set("intentView", intentView)
24434 return c
24435 }
24436
24437
24438
24439
24440
24441
24442 func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall {
24443 c.urlParams_.Set("languageCode", languageCode)
24444 return c
24445 }
24446
24447
24448
24449 func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall {
24450 c.urlParams_.Set("updateMask", updateMask)
24451 return c
24452 }
24453
24454
24455
24456
24457 func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall {
24458 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24459 return c
24460 }
24461
24462
24463 func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall {
24464 c.ctx_ = ctx
24465 return c
24466 }
24467
24468
24469
24470 func (c *ProjectsAgentIntentsPatchCall) Header() http.Header {
24471 if c.header_ == nil {
24472 c.header_ = make(http.Header)
24473 }
24474 return c.header_
24475 }
24476
24477 func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
24478 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24479 var body io.Reader = nil
24480 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
24481 if err != nil {
24482 return nil, err
24483 }
24484 c.urlParams_.Set("alt", alt)
24485 c.urlParams_.Set("prettyPrint", "false")
24486 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24487 urls += "?" + c.urlParams_.Encode()
24488 req, err := http.NewRequest("PATCH", urls, body)
24489 if err != nil {
24490 return nil, err
24491 }
24492 req.Header = reqHeaders
24493 googleapi.Expand(req.URL, map[string]string{
24494 "name": c.nameid,
24495 })
24496 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24497 }
24498
24499
24500
24501
24502
24503
24504
24505 func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
24506 gensupport.SetOptions(c.urlParams_, opts...)
24507 res, err := c.doRequest("json")
24508 if res != nil && res.StatusCode == http.StatusNotModified {
24509 if res.Body != nil {
24510 res.Body.Close()
24511 }
24512 return nil, gensupport.WrapError(&googleapi.Error{
24513 Code: res.StatusCode,
24514 Header: res.Header,
24515 })
24516 }
24517 if err != nil {
24518 return nil, err
24519 }
24520 defer googleapi.CloseBody(res)
24521 if err := googleapi.CheckResponse(res); err != nil {
24522 return nil, gensupport.WrapError(err)
24523 }
24524 ret := &GoogleCloudDialogflowV2Intent{
24525 ServerResponse: googleapi.ServerResponse{
24526 Header: res.Header,
24527 HTTPStatusCode: res.StatusCode,
24528 },
24529 }
24530 target := &ret
24531 if err := gensupport.DecodeResponse(target, res); err != nil {
24532 return nil, err
24533 }
24534 return ret, nil
24535 }
24536
24537 type ProjectsAgentKnowledgeBasesCreateCall struct {
24538 s *Service
24539 parent string
24540 googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
24541 urlParams_ gensupport.URLParams
24542 ctx_ context.Context
24543 header_ http.Header
24544 }
24545
24546
24547
24548
24549
24550 func (r *ProjectsAgentKnowledgeBasesService) Create(parent string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsAgentKnowledgeBasesCreateCall {
24551 c := &ProjectsAgentKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24552 c.parent = parent
24553 c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
24554 return c
24555 }
24556
24557
24558
24559
24560 func (c *ProjectsAgentKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesCreateCall {
24561 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24562 return c
24563 }
24564
24565
24566 func (c *ProjectsAgentKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesCreateCall {
24567 c.ctx_ = ctx
24568 return c
24569 }
24570
24571
24572
24573 func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header {
24574 if c.header_ == nil {
24575 c.header_ = make(http.Header)
24576 }
24577 return c.header_
24578 }
24579
24580 func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
24581 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24582 var body io.Reader = nil
24583 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
24584 if err != nil {
24585 return nil, err
24586 }
24587 c.urlParams_.Set("alt", alt)
24588 c.urlParams_.Set("prettyPrint", "false")
24589 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
24590 urls += "?" + c.urlParams_.Encode()
24591 req, err := http.NewRequest("POST", urls, body)
24592 if err != nil {
24593 return nil, err
24594 }
24595 req.Header = reqHeaders
24596 googleapi.Expand(req.URL, map[string]string{
24597 "parent": c.parent,
24598 })
24599 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24600 }
24601
24602
24603
24604
24605
24606
24607
24608 func (c *ProjectsAgentKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
24609 gensupport.SetOptions(c.urlParams_, opts...)
24610 res, err := c.doRequest("json")
24611 if res != nil && res.StatusCode == http.StatusNotModified {
24612 if res.Body != nil {
24613 res.Body.Close()
24614 }
24615 return nil, gensupport.WrapError(&googleapi.Error{
24616 Code: res.StatusCode,
24617 Header: res.Header,
24618 })
24619 }
24620 if err != nil {
24621 return nil, err
24622 }
24623 defer googleapi.CloseBody(res)
24624 if err := googleapi.CheckResponse(res); err != nil {
24625 return nil, gensupport.WrapError(err)
24626 }
24627 ret := &GoogleCloudDialogflowV2KnowledgeBase{
24628 ServerResponse: googleapi.ServerResponse{
24629 Header: res.Header,
24630 HTTPStatusCode: res.StatusCode,
24631 },
24632 }
24633 target := &ret
24634 if err := gensupport.DecodeResponse(target, res); err != nil {
24635 return nil, err
24636 }
24637 return ret, nil
24638 }
24639
24640 type ProjectsAgentKnowledgeBasesDeleteCall struct {
24641 s *Service
24642 name string
24643 urlParams_ gensupport.URLParams
24644 ctx_ context.Context
24645 header_ http.Header
24646 }
24647
24648
24649
24650
24651
24652 func (r *ProjectsAgentKnowledgeBasesService) Delete(name string) *ProjectsAgentKnowledgeBasesDeleteCall {
24653 c := &ProjectsAgentKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24654 c.name = name
24655 return c
24656 }
24657
24658
24659
24660 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Force(force bool) *ProjectsAgentKnowledgeBasesDeleteCall {
24661 c.urlParams_.Set("force", fmt.Sprint(force))
24662 return c
24663 }
24664
24665
24666
24667
24668 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDeleteCall {
24669 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24670 return c
24671 }
24672
24673
24674 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDeleteCall {
24675 c.ctx_ = ctx
24676 return c
24677 }
24678
24679
24680
24681 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header {
24682 if c.header_ == nil {
24683 c.header_ = make(http.Header)
24684 }
24685 return c.header_
24686 }
24687
24688 func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
24689 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24690 var body io.Reader = nil
24691 c.urlParams_.Set("alt", alt)
24692 c.urlParams_.Set("prettyPrint", "false")
24693 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24694 urls += "?" + c.urlParams_.Encode()
24695 req, err := http.NewRequest("DELETE", urls, body)
24696 if err != nil {
24697 return nil, err
24698 }
24699 req.Header = reqHeaders
24700 googleapi.Expand(req.URL, map[string]string{
24701 "name": c.name,
24702 })
24703 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24704 }
24705
24706
24707
24708
24709
24710
24711
24712 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24713 gensupport.SetOptions(c.urlParams_, opts...)
24714 res, err := c.doRequest("json")
24715 if res != nil && res.StatusCode == http.StatusNotModified {
24716 if res.Body != nil {
24717 res.Body.Close()
24718 }
24719 return nil, gensupport.WrapError(&googleapi.Error{
24720 Code: res.StatusCode,
24721 Header: res.Header,
24722 })
24723 }
24724 if err != nil {
24725 return nil, err
24726 }
24727 defer googleapi.CloseBody(res)
24728 if err := googleapi.CheckResponse(res); err != nil {
24729 return nil, gensupport.WrapError(err)
24730 }
24731 ret := &GoogleProtobufEmpty{
24732 ServerResponse: googleapi.ServerResponse{
24733 Header: res.Header,
24734 HTTPStatusCode: res.StatusCode,
24735 },
24736 }
24737 target := &ret
24738 if err := gensupport.DecodeResponse(target, res); err != nil {
24739 return nil, err
24740 }
24741 return ret, nil
24742 }
24743
24744 type ProjectsAgentKnowledgeBasesGetCall struct {
24745 s *Service
24746 name string
24747 urlParams_ gensupport.URLParams
24748 ifNoneMatch_ string
24749 ctx_ context.Context
24750 header_ http.Header
24751 }
24752
24753
24754
24755
24756
24757 func (r *ProjectsAgentKnowledgeBasesService) Get(name string) *ProjectsAgentKnowledgeBasesGetCall {
24758 c := &ProjectsAgentKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24759 c.name = name
24760 return c
24761 }
24762
24763
24764
24765
24766 func (c *ProjectsAgentKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesGetCall {
24767 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24768 return c
24769 }
24770
24771
24772
24773
24774 func (c *ProjectsAgentKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesGetCall {
24775 c.ifNoneMatch_ = entityTag
24776 return c
24777 }
24778
24779
24780 func (c *ProjectsAgentKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesGetCall {
24781 c.ctx_ = ctx
24782 return c
24783 }
24784
24785
24786
24787 func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header {
24788 if c.header_ == nil {
24789 c.header_ = make(http.Header)
24790 }
24791 return c.header_
24792 }
24793
24794 func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
24795 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24796 if c.ifNoneMatch_ != "" {
24797 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24798 }
24799 var body io.Reader = nil
24800 c.urlParams_.Set("alt", alt)
24801 c.urlParams_.Set("prettyPrint", "false")
24802 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
24803 urls += "?" + c.urlParams_.Encode()
24804 req, err := http.NewRequest("GET", urls, body)
24805 if err != nil {
24806 return nil, err
24807 }
24808 req.Header = reqHeaders
24809 googleapi.Expand(req.URL, map[string]string{
24810 "name": c.name,
24811 })
24812 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24813 }
24814
24815
24816
24817
24818
24819
24820
24821 func (c *ProjectsAgentKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
24822 gensupport.SetOptions(c.urlParams_, opts...)
24823 res, err := c.doRequest("json")
24824 if res != nil && res.StatusCode == http.StatusNotModified {
24825 if res.Body != nil {
24826 res.Body.Close()
24827 }
24828 return nil, gensupport.WrapError(&googleapi.Error{
24829 Code: res.StatusCode,
24830 Header: res.Header,
24831 })
24832 }
24833 if err != nil {
24834 return nil, err
24835 }
24836 defer googleapi.CloseBody(res)
24837 if err := googleapi.CheckResponse(res); err != nil {
24838 return nil, gensupport.WrapError(err)
24839 }
24840 ret := &GoogleCloudDialogflowV2KnowledgeBase{
24841 ServerResponse: googleapi.ServerResponse{
24842 Header: res.Header,
24843 HTTPStatusCode: res.StatusCode,
24844 },
24845 }
24846 target := &ret
24847 if err := gensupport.DecodeResponse(target, res); err != nil {
24848 return nil, err
24849 }
24850 return ret, nil
24851 }
24852
24853 type ProjectsAgentKnowledgeBasesListCall struct {
24854 s *Service
24855 parent string
24856 urlParams_ gensupport.URLParams
24857 ifNoneMatch_ string
24858 ctx_ context.Context
24859 header_ http.Header
24860 }
24861
24862
24863
24864
24865
24866 func (r *ProjectsAgentKnowledgeBasesService) List(parent string) *ProjectsAgentKnowledgeBasesListCall {
24867 c := &ProjectsAgentKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24868 c.parent = parent
24869 return c
24870 }
24871
24872
24873
24874
24875
24876
24877
24878
24879
24880
24881
24882
24883
24884
24885 func (c *ProjectsAgentKnowledgeBasesListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesListCall {
24886 c.urlParams_.Set("filter", filter)
24887 return c
24888 }
24889
24890
24891
24892 func (c *ProjectsAgentKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesListCall {
24893 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24894 return c
24895 }
24896
24897
24898
24899 func (c *ProjectsAgentKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesListCall {
24900 c.urlParams_.Set("pageToken", pageToken)
24901 return c
24902 }
24903
24904
24905
24906
24907 func (c *ProjectsAgentKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesListCall {
24908 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24909 return c
24910 }
24911
24912
24913
24914
24915 func (c *ProjectsAgentKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesListCall {
24916 c.ifNoneMatch_ = entityTag
24917 return c
24918 }
24919
24920
24921 func (c *ProjectsAgentKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesListCall {
24922 c.ctx_ = ctx
24923 return c
24924 }
24925
24926
24927
24928 func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header {
24929 if c.header_ == nil {
24930 c.header_ = make(http.Header)
24931 }
24932 return c.header_
24933 }
24934
24935 func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
24936 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24937 if c.ifNoneMatch_ != "" {
24938 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24939 }
24940 var body io.Reader = nil
24941 c.urlParams_.Set("alt", alt)
24942 c.urlParams_.Set("prettyPrint", "false")
24943 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
24944 urls += "?" + c.urlParams_.Encode()
24945 req, err := http.NewRequest("GET", urls, body)
24946 if err != nil {
24947 return nil, err
24948 }
24949 req.Header = reqHeaders
24950 googleapi.Expand(req.URL, map[string]string{
24951 "parent": c.parent,
24952 })
24953 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24954 }
24955
24956
24957
24958
24959
24960
24961
24962 func (c *ProjectsAgentKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListKnowledgeBasesResponse, error) {
24963 gensupport.SetOptions(c.urlParams_, opts...)
24964 res, err := c.doRequest("json")
24965 if res != nil && res.StatusCode == http.StatusNotModified {
24966 if res.Body != nil {
24967 res.Body.Close()
24968 }
24969 return nil, gensupport.WrapError(&googleapi.Error{
24970 Code: res.StatusCode,
24971 Header: res.Header,
24972 })
24973 }
24974 if err != nil {
24975 return nil, err
24976 }
24977 defer googleapi.CloseBody(res)
24978 if err := googleapi.CheckResponse(res); err != nil {
24979 return nil, gensupport.WrapError(err)
24980 }
24981 ret := &GoogleCloudDialogflowV2ListKnowledgeBasesResponse{
24982 ServerResponse: googleapi.ServerResponse{
24983 Header: res.Header,
24984 HTTPStatusCode: res.StatusCode,
24985 },
24986 }
24987 target := &ret
24988 if err := gensupport.DecodeResponse(target, res); err != nil {
24989 return nil, err
24990 }
24991 return ret, nil
24992 }
24993
24994
24995
24996
24997 func (c *ProjectsAgentKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListKnowledgeBasesResponse) error) error {
24998 c.ctx_ = ctx
24999 defer c.PageToken(c.urlParams_.Get("pageToken"))
25000 for {
25001 x, err := c.Do()
25002 if err != nil {
25003 return err
25004 }
25005 if err := f(x); err != nil {
25006 return err
25007 }
25008 if x.NextPageToken == "" {
25009 return nil
25010 }
25011 c.PageToken(x.NextPageToken)
25012 }
25013 }
25014
25015 type ProjectsAgentKnowledgeBasesPatchCall struct {
25016 s *Service
25017 name string
25018 googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
25019 urlParams_ gensupport.URLParams
25020 ctx_ context.Context
25021 header_ http.Header
25022 }
25023
25024
25025
25026
25027
25028 func (r *ProjectsAgentKnowledgeBasesService) Patch(name string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsAgentKnowledgeBasesPatchCall {
25029 c := &ProjectsAgentKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25030 c.name = name
25031 c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
25032 return c
25033 }
25034
25035
25036
25037
25038 func (c *ProjectsAgentKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesPatchCall {
25039 c.urlParams_.Set("updateMask", updateMask)
25040 return c
25041 }
25042
25043
25044
25045
25046 func (c *ProjectsAgentKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesPatchCall {
25047 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25048 return c
25049 }
25050
25051
25052 func (c *ProjectsAgentKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesPatchCall {
25053 c.ctx_ = ctx
25054 return c
25055 }
25056
25057
25058
25059 func (c *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header {
25060 if c.header_ == nil {
25061 c.header_ = make(http.Header)
25062 }
25063 return c.header_
25064 }
25065
25066 func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
25067 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25068 var body io.Reader = nil
25069 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
25070 if err != nil {
25071 return nil, err
25072 }
25073 c.urlParams_.Set("alt", alt)
25074 c.urlParams_.Set("prettyPrint", "false")
25075 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25076 urls += "?" + c.urlParams_.Encode()
25077 req, err := http.NewRequest("PATCH", urls, body)
25078 if err != nil {
25079 return nil, err
25080 }
25081 req.Header = reqHeaders
25082 googleapi.Expand(req.URL, map[string]string{
25083 "name": c.name,
25084 })
25085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25086 }
25087
25088
25089
25090
25091
25092
25093
25094 func (c *ProjectsAgentKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
25095 gensupport.SetOptions(c.urlParams_, opts...)
25096 res, err := c.doRequest("json")
25097 if res != nil && res.StatusCode == http.StatusNotModified {
25098 if res.Body != nil {
25099 res.Body.Close()
25100 }
25101 return nil, gensupport.WrapError(&googleapi.Error{
25102 Code: res.StatusCode,
25103 Header: res.Header,
25104 })
25105 }
25106 if err != nil {
25107 return nil, err
25108 }
25109 defer googleapi.CloseBody(res)
25110 if err := googleapi.CheckResponse(res); err != nil {
25111 return nil, gensupport.WrapError(err)
25112 }
25113 ret := &GoogleCloudDialogflowV2KnowledgeBase{
25114 ServerResponse: googleapi.ServerResponse{
25115 Header: res.Header,
25116 HTTPStatusCode: res.StatusCode,
25117 },
25118 }
25119 target := &ret
25120 if err := gensupport.DecodeResponse(target, res); err != nil {
25121 return nil, err
25122 }
25123 return ret, nil
25124 }
25125
25126 type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {
25127 s *Service
25128 parent string
25129 googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
25130 urlParams_ gensupport.URLParams
25131 ctx_ context.Context
25132 header_ http.Header
25133 }
25134
25135
25136
25137
25138
25139
25140
25141
25142 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25143 c := &ProjectsAgentKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25144 c.parent = parent
25145 c.googleclouddialogflowv2document = googleclouddialogflowv2document
25146 return c
25147 }
25148
25149
25150
25151
25152 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25154 return c
25155 }
25156
25157
25158 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25159 c.ctx_ = ctx
25160 return c
25161 }
25162
25163
25164
25165 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header {
25166 if c.header_ == nil {
25167 c.header_ = make(http.Header)
25168 }
25169 return c.header_
25170 }
25171
25172 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
25173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25174 var body io.Reader = nil
25175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
25176 if err != nil {
25177 return nil, err
25178 }
25179 c.urlParams_.Set("alt", alt)
25180 c.urlParams_.Set("prettyPrint", "false")
25181 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
25182 urls += "?" + c.urlParams_.Encode()
25183 req, err := http.NewRequest("POST", urls, body)
25184 if err != nil {
25185 return nil, err
25186 }
25187 req.Header = reqHeaders
25188 googleapi.Expand(req.URL, map[string]string{
25189 "parent": c.parent,
25190 })
25191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25192 }
25193
25194
25195
25196
25197
25198
25199
25200 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25201 gensupport.SetOptions(c.urlParams_, opts...)
25202 res, err := c.doRequest("json")
25203 if res != nil && res.StatusCode == http.StatusNotModified {
25204 if res.Body != nil {
25205 res.Body.Close()
25206 }
25207 return nil, gensupport.WrapError(&googleapi.Error{
25208 Code: res.StatusCode,
25209 Header: res.Header,
25210 })
25211 }
25212 if err != nil {
25213 return nil, err
25214 }
25215 defer googleapi.CloseBody(res)
25216 if err := googleapi.CheckResponse(res); err != nil {
25217 return nil, gensupport.WrapError(err)
25218 }
25219 ret := &GoogleLongrunningOperation{
25220 ServerResponse: googleapi.ServerResponse{
25221 Header: res.Header,
25222 HTTPStatusCode: res.StatusCode,
25223 },
25224 }
25225 target := &ret
25226 if err := gensupport.DecodeResponse(target, res); err != nil {
25227 return nil, err
25228 }
25229 return ret, nil
25230 }
25231
25232 type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {
25233 s *Service
25234 name string
25235 urlParams_ gensupport.URLParams
25236 ctx_ context.Context
25237 header_ http.Header
25238 }
25239
25240
25241
25242
25243
25244
25245
25246
25247
25248
25249 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Delete(name string) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
25250 c := &ProjectsAgentKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25251 c.name = name
25252 return c
25253 }
25254
25255
25256
25257
25258 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
25259 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25260 return c
25261 }
25262
25263
25264 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
25265 c.ctx_ = ctx
25266 return c
25267 }
25268
25269
25270
25271 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
25272 if c.header_ == nil {
25273 c.header_ = make(http.Header)
25274 }
25275 return c.header_
25276 }
25277
25278 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25279 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25280 var body io.Reader = nil
25281 c.urlParams_.Set("alt", alt)
25282 c.urlParams_.Set("prettyPrint", "false")
25283 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25284 urls += "?" + c.urlParams_.Encode()
25285 req, err := http.NewRequest("DELETE", urls, body)
25286 if err != nil {
25287 return nil, err
25288 }
25289 req.Header = reqHeaders
25290 googleapi.Expand(req.URL, map[string]string{
25291 "name": c.name,
25292 })
25293 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25294 }
25295
25296
25297
25298
25299
25300
25301
25302 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25303 gensupport.SetOptions(c.urlParams_, opts...)
25304 res, err := c.doRequest("json")
25305 if res != nil && res.StatusCode == http.StatusNotModified {
25306 if res.Body != nil {
25307 res.Body.Close()
25308 }
25309 return nil, gensupport.WrapError(&googleapi.Error{
25310 Code: res.StatusCode,
25311 Header: res.Header,
25312 })
25313 }
25314 if err != nil {
25315 return nil, err
25316 }
25317 defer googleapi.CloseBody(res)
25318 if err := googleapi.CheckResponse(res); err != nil {
25319 return nil, gensupport.WrapError(err)
25320 }
25321 ret := &GoogleLongrunningOperation{
25322 ServerResponse: googleapi.ServerResponse{
25323 Header: res.Header,
25324 HTTPStatusCode: res.StatusCode,
25325 },
25326 }
25327 target := &ret
25328 if err := gensupport.DecodeResponse(target, res); err != nil {
25329 return nil, err
25330 }
25331 return ret, nil
25332 }
25333
25334 type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {
25335 s *Service
25336 name string
25337 urlParams_ gensupport.URLParams
25338 ifNoneMatch_ string
25339 ctx_ context.Context
25340 header_ http.Header
25341 }
25342
25343
25344
25345
25346
25347 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Get(name string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25348 c := &ProjectsAgentKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25349 c.name = name
25350 return c
25351 }
25352
25353
25354
25355
25356 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25357 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25358 return c
25359 }
25360
25361
25362
25363
25364 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25365 c.ifNoneMatch_ = entityTag
25366 return c
25367 }
25368
25369
25370 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25371 c.ctx_ = ctx
25372 return c
25373 }
25374
25375
25376
25377 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header {
25378 if c.header_ == nil {
25379 c.header_ = make(http.Header)
25380 }
25381 return c.header_
25382 }
25383
25384 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
25385 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25386 if c.ifNoneMatch_ != "" {
25387 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25388 }
25389 var body io.Reader = nil
25390 c.urlParams_.Set("alt", alt)
25391 c.urlParams_.Set("prettyPrint", "false")
25392 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25393 urls += "?" + c.urlParams_.Encode()
25394 req, err := http.NewRequest("GET", urls, body)
25395 if err != nil {
25396 return nil, err
25397 }
25398 req.Header = reqHeaders
25399 googleapi.Expand(req.URL, map[string]string{
25400 "name": c.name,
25401 })
25402 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25403 }
25404
25405
25406
25407
25408
25409
25410
25411 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Document, error) {
25412 gensupport.SetOptions(c.urlParams_, opts...)
25413 res, err := c.doRequest("json")
25414 if res != nil && res.StatusCode == http.StatusNotModified {
25415 if res.Body != nil {
25416 res.Body.Close()
25417 }
25418 return nil, gensupport.WrapError(&googleapi.Error{
25419 Code: res.StatusCode,
25420 Header: res.Header,
25421 })
25422 }
25423 if err != nil {
25424 return nil, err
25425 }
25426 defer googleapi.CloseBody(res)
25427 if err := googleapi.CheckResponse(res); err != nil {
25428 return nil, gensupport.WrapError(err)
25429 }
25430 ret := &GoogleCloudDialogflowV2Document{
25431 ServerResponse: googleapi.ServerResponse{
25432 Header: res.Header,
25433 HTTPStatusCode: res.StatusCode,
25434 },
25435 }
25436 target := &ret
25437 if err := gensupport.DecodeResponse(target, res); err != nil {
25438 return nil, err
25439 }
25440 return ret, nil
25441 }
25442
25443 type ProjectsAgentKnowledgeBasesDocumentsListCall struct {
25444 s *Service
25445 parent string
25446 urlParams_ gensupport.URLParams
25447 ifNoneMatch_ string
25448 ctx_ context.Context
25449 header_ http.Header
25450 }
25451
25452
25453
25454
25455
25456 func (r *ProjectsAgentKnowledgeBasesDocumentsService) List(parent string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25457 c := &ProjectsAgentKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25458 c.parent = parent
25459 return c
25460 }
25461
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25473 c.urlParams_.Set("filter", filter)
25474 return c
25475 }
25476
25477
25478
25479 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25480 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25481 return c
25482 }
25483
25484
25485
25486 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25487 c.urlParams_.Set("pageToken", pageToken)
25488 return c
25489 }
25490
25491
25492
25493
25494 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25495 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25496 return c
25497 }
25498
25499
25500
25501
25502 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25503 c.ifNoneMatch_ = entityTag
25504 return c
25505 }
25506
25507
25508 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25509 c.ctx_ = ctx
25510 return c
25511 }
25512
25513
25514
25515 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header {
25516 if c.header_ == nil {
25517 c.header_ = make(http.Header)
25518 }
25519 return c.header_
25520 }
25521
25522 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
25523 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25524 if c.ifNoneMatch_ != "" {
25525 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25526 }
25527 var body io.Reader = nil
25528 c.urlParams_.Set("alt", alt)
25529 c.urlParams_.Set("prettyPrint", "false")
25530 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
25531 urls += "?" + c.urlParams_.Encode()
25532 req, err := http.NewRequest("GET", urls, body)
25533 if err != nil {
25534 return nil, err
25535 }
25536 req.Header = reqHeaders
25537 googleapi.Expand(req.URL, map[string]string{
25538 "parent": c.parent,
25539 })
25540 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25541 }
25542
25543
25544
25545
25546
25547
25548
25549 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListDocumentsResponse, error) {
25550 gensupport.SetOptions(c.urlParams_, opts...)
25551 res, err := c.doRequest("json")
25552 if res != nil && res.StatusCode == http.StatusNotModified {
25553 if res.Body != nil {
25554 res.Body.Close()
25555 }
25556 return nil, gensupport.WrapError(&googleapi.Error{
25557 Code: res.StatusCode,
25558 Header: res.Header,
25559 })
25560 }
25561 if err != nil {
25562 return nil, err
25563 }
25564 defer googleapi.CloseBody(res)
25565 if err := googleapi.CheckResponse(res); err != nil {
25566 return nil, gensupport.WrapError(err)
25567 }
25568 ret := &GoogleCloudDialogflowV2ListDocumentsResponse{
25569 ServerResponse: googleapi.ServerResponse{
25570 Header: res.Header,
25571 HTTPStatusCode: res.StatusCode,
25572 },
25573 }
25574 target := &ret
25575 if err := gensupport.DecodeResponse(target, res); err != nil {
25576 return nil, err
25577 }
25578 return ret, nil
25579 }
25580
25581
25582
25583
25584 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListDocumentsResponse) error) error {
25585 c.ctx_ = ctx
25586 defer c.PageToken(c.urlParams_.Get("pageToken"))
25587 for {
25588 x, err := c.Do()
25589 if err != nil {
25590 return err
25591 }
25592 if err := f(x); err != nil {
25593 return err
25594 }
25595 if x.NextPageToken == "" {
25596 return nil
25597 }
25598 c.PageToken(x.NextPageToken)
25599 }
25600 }
25601
25602 type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {
25603 s *Service
25604 name string
25605 googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
25606 urlParams_ gensupport.URLParams
25607 ctx_ context.Context
25608 header_ http.Header
25609 }
25610
25611
25612
25613
25614
25615
25616
25617
25618
25619
25620 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25621 c := &ProjectsAgentKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25622 c.name = name
25623 c.googleclouddialogflowv2document = googleclouddialogflowv2document
25624 return c
25625 }
25626
25627
25628
25629
25630 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25631 c.urlParams_.Set("updateMask", updateMask)
25632 return c
25633 }
25634
25635
25636
25637
25638 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25639 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25640 return c
25641 }
25642
25643
25644 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25645 c.ctx_ = ctx
25646 return c
25647 }
25648
25649
25650
25651 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header {
25652 if c.header_ == nil {
25653 c.header_ = make(http.Header)
25654 }
25655 return c.header_
25656 }
25657
25658 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
25659 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25660 var body io.Reader = nil
25661 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
25662 if err != nil {
25663 return nil, err
25664 }
25665 c.urlParams_.Set("alt", alt)
25666 c.urlParams_.Set("prettyPrint", "false")
25667 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
25668 urls += "?" + c.urlParams_.Encode()
25669 req, err := http.NewRequest("PATCH", urls, body)
25670 if err != nil {
25671 return nil, err
25672 }
25673 req.Header = reqHeaders
25674 googleapi.Expand(req.URL, map[string]string{
25675 "name": c.name,
25676 })
25677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25678 }
25679
25680
25681
25682
25683
25684
25685
25686 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25687 gensupport.SetOptions(c.urlParams_, opts...)
25688 res, err := c.doRequest("json")
25689 if res != nil && res.StatusCode == http.StatusNotModified {
25690 if res.Body != nil {
25691 res.Body.Close()
25692 }
25693 return nil, gensupport.WrapError(&googleapi.Error{
25694 Code: res.StatusCode,
25695 Header: res.Header,
25696 })
25697 }
25698 if err != nil {
25699 return nil, err
25700 }
25701 defer googleapi.CloseBody(res)
25702 if err := googleapi.CheckResponse(res); err != nil {
25703 return nil, gensupport.WrapError(err)
25704 }
25705 ret := &GoogleLongrunningOperation{
25706 ServerResponse: googleapi.ServerResponse{
25707 Header: res.Header,
25708 HTTPStatusCode: res.StatusCode,
25709 },
25710 }
25711 target := &ret
25712 if err := gensupport.DecodeResponse(target, res); err != nil {
25713 return nil, err
25714 }
25715 return ret, nil
25716 }
25717
25718 type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {
25719 s *Service
25720 name string
25721 googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest
25722 urlParams_ gensupport.URLParams
25723 ctx_ context.Context
25724 header_ http.Header
25725 }
25726
25727
25728
25729
25730
25731
25732
25733
25734
25735
25736
25737
25738
25739
25740 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
25741 c := &ProjectsAgentKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25742 c.name = name
25743 c.googleclouddialogflowv2reloaddocumentrequest = googleclouddialogflowv2reloaddocumentrequest
25744 return c
25745 }
25746
25747
25748
25749
25750 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
25751 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25752 return c
25753 }
25754
25755
25756 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
25757 c.ctx_ = ctx
25758 return c
25759 }
25760
25761
25762
25763 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header {
25764 if c.header_ == nil {
25765 c.header_ = make(http.Header)
25766 }
25767 return c.header_
25768 }
25769
25770 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
25771 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25772 var body io.Reader = nil
25773 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2reloaddocumentrequest)
25774 if err != nil {
25775 return nil, err
25776 }
25777 c.urlParams_.Set("alt", alt)
25778 c.urlParams_.Set("prettyPrint", "false")
25779 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:reload")
25780 urls += "?" + c.urlParams_.Encode()
25781 req, err := http.NewRequest("POST", urls, body)
25782 if err != nil {
25783 return nil, err
25784 }
25785 req.Header = reqHeaders
25786 googleapi.Expand(req.URL, map[string]string{
25787 "name": c.name,
25788 })
25789 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25790 }
25791
25792
25793
25794
25795
25796
25797
25798 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25799 gensupport.SetOptions(c.urlParams_, opts...)
25800 res, err := c.doRequest("json")
25801 if res != nil && res.StatusCode == http.StatusNotModified {
25802 if res.Body != nil {
25803 res.Body.Close()
25804 }
25805 return nil, gensupport.WrapError(&googleapi.Error{
25806 Code: res.StatusCode,
25807 Header: res.Header,
25808 })
25809 }
25810 if err != nil {
25811 return nil, err
25812 }
25813 defer googleapi.CloseBody(res)
25814 if err := googleapi.CheckResponse(res); err != nil {
25815 return nil, gensupport.WrapError(err)
25816 }
25817 ret := &GoogleLongrunningOperation{
25818 ServerResponse: googleapi.ServerResponse{
25819 Header: res.Header,
25820 HTTPStatusCode: res.StatusCode,
25821 },
25822 }
25823 target := &ret
25824 if err := gensupport.DecodeResponse(target, res); err != nil {
25825 return nil, err
25826 }
25827 return ret, nil
25828 }
25829
25830 type ProjectsAgentSessionsDeleteContextsCall struct {
25831 s *Service
25832 parent string
25833 urlParams_ gensupport.URLParams
25834 ctx_ context.Context
25835 header_ http.Header
25836 }
25837
25838
25839
25840
25841
25842
25843
25844
25845 func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall {
25846 c := &ProjectsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25847 c.parent = parent
25848 return c
25849 }
25850
25851
25852
25853
25854 func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall {
25855 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25856 return c
25857 }
25858
25859
25860 func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall {
25861 c.ctx_ = ctx
25862 return c
25863 }
25864
25865
25866
25867 func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header {
25868 if c.header_ == nil {
25869 c.header_ = make(http.Header)
25870 }
25871 return c.header_
25872 }
25873
25874 func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
25875 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25876 var body io.Reader = nil
25877 c.urlParams_.Set("alt", alt)
25878 c.urlParams_.Set("prettyPrint", "false")
25879 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
25880 urls += "?" + c.urlParams_.Encode()
25881 req, err := http.NewRequest("DELETE", urls, body)
25882 if err != nil {
25883 return nil, err
25884 }
25885 req.Header = reqHeaders
25886 googleapi.Expand(req.URL, map[string]string{
25887 "parent": c.parent,
25888 })
25889 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25890 }
25891
25892
25893
25894
25895
25896
25897
25898 func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25899 gensupport.SetOptions(c.urlParams_, opts...)
25900 res, err := c.doRequest("json")
25901 if res != nil && res.StatusCode == http.StatusNotModified {
25902 if res.Body != nil {
25903 res.Body.Close()
25904 }
25905 return nil, gensupport.WrapError(&googleapi.Error{
25906 Code: res.StatusCode,
25907 Header: res.Header,
25908 })
25909 }
25910 if err != nil {
25911 return nil, err
25912 }
25913 defer googleapi.CloseBody(res)
25914 if err := googleapi.CheckResponse(res); err != nil {
25915 return nil, gensupport.WrapError(err)
25916 }
25917 ret := &GoogleProtobufEmpty{
25918 ServerResponse: googleapi.ServerResponse{
25919 Header: res.Header,
25920 HTTPStatusCode: res.StatusCode,
25921 },
25922 }
25923 target := &ret
25924 if err := gensupport.DecodeResponse(target, res); err != nil {
25925 return nil, err
25926 }
25927 return ret, nil
25928 }
25929
25930 type ProjectsAgentSessionsDetectIntentCall struct {
25931 s *Service
25932 sessionid string
25933 googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
25934 urlParams_ gensupport.URLParams
25935 ctx_ context.Context
25936 header_ http.Header
25937 }
25938
25939
25940
25941
25942
25943
25944
25945
25946
25947
25948
25949
25950
25951
25952
25953
25954
25955
25956
25957
25958
25959
25960
25961
25962
25963 func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall {
25964 c := &ProjectsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25965 c.sessionid = sessionid
25966 c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
25967 return c
25968 }
25969
25970
25971
25972
25973 func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall {
25974 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25975 return c
25976 }
25977
25978
25979 func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall {
25980 c.ctx_ = ctx
25981 return c
25982 }
25983
25984
25985
25986 func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header {
25987 if c.header_ == nil {
25988 c.header_ = make(http.Header)
25989 }
25990 return c.header_
25991 }
25992
25993 func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
25994 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25995 var body io.Reader = nil
25996 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
25997 if err != nil {
25998 return nil, err
25999 }
26000 c.urlParams_.Set("alt", alt)
26001 c.urlParams_.Set("prettyPrint", "false")
26002 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
26003 urls += "?" + c.urlParams_.Encode()
26004 req, err := http.NewRequest("POST", urls, body)
26005 if err != nil {
26006 return nil, err
26007 }
26008 req.Header = reqHeaders
26009 googleapi.Expand(req.URL, map[string]string{
26010 "session": c.sessionid,
26011 })
26012 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26013 }
26014
26015
26016
26017
26018
26019
26020
26021 func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
26022 gensupport.SetOptions(c.urlParams_, opts...)
26023 res, err := c.doRequest("json")
26024 if res != nil && res.StatusCode == http.StatusNotModified {
26025 if res.Body != nil {
26026 res.Body.Close()
26027 }
26028 return nil, gensupport.WrapError(&googleapi.Error{
26029 Code: res.StatusCode,
26030 Header: res.Header,
26031 })
26032 }
26033 if err != nil {
26034 return nil, err
26035 }
26036 defer googleapi.CloseBody(res)
26037 if err := googleapi.CheckResponse(res); err != nil {
26038 return nil, gensupport.WrapError(err)
26039 }
26040 ret := &GoogleCloudDialogflowV2DetectIntentResponse{
26041 ServerResponse: googleapi.ServerResponse{
26042 Header: res.Header,
26043 HTTPStatusCode: res.StatusCode,
26044 },
26045 }
26046 target := &ret
26047 if err := gensupport.DecodeResponse(target, res); err != nil {
26048 return nil, err
26049 }
26050 return ret, nil
26051 }
26052
26053 type ProjectsAgentSessionsContextsCreateCall struct {
26054 s *Service
26055 parent string
26056 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
26057 urlParams_ gensupport.URLParams
26058 ctx_ context.Context
26059 header_ http.Header
26060 }
26061
26062
26063
26064
26065
26066
26067
26068
26069
26070 func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsCreateCall {
26071 c := &ProjectsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26072 c.parent = parent
26073 c.googleclouddialogflowv2context = googleclouddialogflowv2context
26074 return c
26075 }
26076
26077
26078
26079
26080 func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall {
26081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26082 return c
26083 }
26084
26085
26086 func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall {
26087 c.ctx_ = ctx
26088 return c
26089 }
26090
26091
26092
26093 func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header {
26094 if c.header_ == nil {
26095 c.header_ = make(http.Header)
26096 }
26097 return c.header_
26098 }
26099
26100 func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
26101 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26102 var body io.Reader = nil
26103 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
26104 if err != nil {
26105 return nil, err
26106 }
26107 c.urlParams_.Set("alt", alt)
26108 c.urlParams_.Set("prettyPrint", "false")
26109 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
26110 urls += "?" + c.urlParams_.Encode()
26111 req, err := http.NewRequest("POST", urls, body)
26112 if err != nil {
26113 return nil, err
26114 }
26115 req.Header = reqHeaders
26116 googleapi.Expand(req.URL, map[string]string{
26117 "parent": c.parent,
26118 })
26119 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26120 }
26121
26122
26123
26124
26125
26126
26127
26128 func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
26129 gensupport.SetOptions(c.urlParams_, opts...)
26130 res, err := c.doRequest("json")
26131 if res != nil && res.StatusCode == http.StatusNotModified {
26132 if res.Body != nil {
26133 res.Body.Close()
26134 }
26135 return nil, gensupport.WrapError(&googleapi.Error{
26136 Code: res.StatusCode,
26137 Header: res.Header,
26138 })
26139 }
26140 if err != nil {
26141 return nil, err
26142 }
26143 defer googleapi.CloseBody(res)
26144 if err := googleapi.CheckResponse(res); err != nil {
26145 return nil, gensupport.WrapError(err)
26146 }
26147 ret := &GoogleCloudDialogflowV2Context{
26148 ServerResponse: googleapi.ServerResponse{
26149 Header: res.Header,
26150 HTTPStatusCode: res.StatusCode,
26151 },
26152 }
26153 target := &ret
26154 if err := gensupport.DecodeResponse(target, res); err != nil {
26155 return nil, err
26156 }
26157 return ret, nil
26158 }
26159
26160 type ProjectsAgentSessionsContextsDeleteCall struct {
26161 s *Service
26162 name string
26163 urlParams_ gensupport.URLParams
26164 ctx_ context.Context
26165 header_ http.Header
26166 }
26167
26168
26169
26170
26171
26172
26173
26174
26175 func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall {
26176 c := &ProjectsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26177 c.name = name
26178 return c
26179 }
26180
26181
26182
26183
26184 func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall {
26185 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26186 return c
26187 }
26188
26189
26190 func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall {
26191 c.ctx_ = ctx
26192 return c
26193 }
26194
26195
26196
26197 func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header {
26198 if c.header_ == nil {
26199 c.header_ = make(http.Header)
26200 }
26201 return c.header_
26202 }
26203
26204 func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
26205 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26206 var body io.Reader = nil
26207 c.urlParams_.Set("alt", alt)
26208 c.urlParams_.Set("prettyPrint", "false")
26209 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
26210 urls += "?" + c.urlParams_.Encode()
26211 req, err := http.NewRequest("DELETE", urls, body)
26212 if err != nil {
26213 return nil, err
26214 }
26215 req.Header = reqHeaders
26216 googleapi.Expand(req.URL, map[string]string{
26217 "name": c.name,
26218 })
26219 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26220 }
26221
26222
26223
26224
26225
26226
26227
26228 func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26229 gensupport.SetOptions(c.urlParams_, opts...)
26230 res, err := c.doRequest("json")
26231 if res != nil && res.StatusCode == http.StatusNotModified {
26232 if res.Body != nil {
26233 res.Body.Close()
26234 }
26235 return nil, gensupport.WrapError(&googleapi.Error{
26236 Code: res.StatusCode,
26237 Header: res.Header,
26238 })
26239 }
26240 if err != nil {
26241 return nil, err
26242 }
26243 defer googleapi.CloseBody(res)
26244 if err := googleapi.CheckResponse(res); err != nil {
26245 return nil, gensupport.WrapError(err)
26246 }
26247 ret := &GoogleProtobufEmpty{
26248 ServerResponse: googleapi.ServerResponse{
26249 Header: res.Header,
26250 HTTPStatusCode: res.StatusCode,
26251 },
26252 }
26253 target := &ret
26254 if err := gensupport.DecodeResponse(target, res); err != nil {
26255 return nil, err
26256 }
26257 return ret, nil
26258 }
26259
26260 type ProjectsAgentSessionsContextsGetCall struct {
26261 s *Service
26262 name string
26263 urlParams_ gensupport.URLParams
26264 ifNoneMatch_ string
26265 ctx_ context.Context
26266 header_ http.Header
26267 }
26268
26269
26270
26271
26272
26273
26274
26275
26276 func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall {
26277 c := &ProjectsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26278 c.name = name
26279 return c
26280 }
26281
26282
26283
26284
26285 func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall {
26286 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26287 return c
26288 }
26289
26290
26291
26292
26293 func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall {
26294 c.ifNoneMatch_ = entityTag
26295 return c
26296 }
26297
26298
26299 func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall {
26300 c.ctx_ = ctx
26301 return c
26302 }
26303
26304
26305
26306 func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header {
26307 if c.header_ == nil {
26308 c.header_ = make(http.Header)
26309 }
26310 return c.header_
26311 }
26312
26313 func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
26314 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26315 if c.ifNoneMatch_ != "" {
26316 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26317 }
26318 var body io.Reader = nil
26319 c.urlParams_.Set("alt", alt)
26320 c.urlParams_.Set("prettyPrint", "false")
26321 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
26322 urls += "?" + c.urlParams_.Encode()
26323 req, err := http.NewRequest("GET", urls, body)
26324 if err != nil {
26325 return nil, err
26326 }
26327 req.Header = reqHeaders
26328 googleapi.Expand(req.URL, map[string]string{
26329 "name": c.name,
26330 })
26331 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26332 }
26333
26334
26335
26336
26337
26338
26339
26340 func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
26341 gensupport.SetOptions(c.urlParams_, opts...)
26342 res, err := c.doRequest("json")
26343 if res != nil && res.StatusCode == http.StatusNotModified {
26344 if res.Body != nil {
26345 res.Body.Close()
26346 }
26347 return nil, gensupport.WrapError(&googleapi.Error{
26348 Code: res.StatusCode,
26349 Header: res.Header,
26350 })
26351 }
26352 if err != nil {
26353 return nil, err
26354 }
26355 defer googleapi.CloseBody(res)
26356 if err := googleapi.CheckResponse(res); err != nil {
26357 return nil, gensupport.WrapError(err)
26358 }
26359 ret := &GoogleCloudDialogflowV2Context{
26360 ServerResponse: googleapi.ServerResponse{
26361 Header: res.Header,
26362 HTTPStatusCode: res.StatusCode,
26363 },
26364 }
26365 target := &ret
26366 if err := gensupport.DecodeResponse(target, res); err != nil {
26367 return nil, err
26368 }
26369 return ret, nil
26370 }
26371
26372 type ProjectsAgentSessionsContextsListCall struct {
26373 s *Service
26374 parent string
26375 urlParams_ gensupport.URLParams
26376 ifNoneMatch_ string
26377 ctx_ context.Context
26378 header_ http.Header
26379 }
26380
26381
26382
26383
26384
26385
26386
26387
26388 func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall {
26389 c := &ProjectsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26390 c.parent = parent
26391 return c
26392 }
26393
26394
26395
26396 func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall {
26397 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26398 return c
26399 }
26400
26401
26402
26403 func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall {
26404 c.urlParams_.Set("pageToken", pageToken)
26405 return c
26406 }
26407
26408
26409
26410
26411 func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall {
26412 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26413 return c
26414 }
26415
26416
26417
26418
26419 func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall {
26420 c.ifNoneMatch_ = entityTag
26421 return c
26422 }
26423
26424
26425 func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall {
26426 c.ctx_ = ctx
26427 return c
26428 }
26429
26430
26431
26432 func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header {
26433 if c.header_ == nil {
26434 c.header_ = make(http.Header)
26435 }
26436 return c.header_
26437 }
26438
26439 func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
26440 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26441 if c.ifNoneMatch_ != "" {
26442 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26443 }
26444 var body io.Reader = nil
26445 c.urlParams_.Set("alt", alt)
26446 c.urlParams_.Set("prettyPrint", "false")
26447 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
26448 urls += "?" + c.urlParams_.Encode()
26449 req, err := http.NewRequest("GET", urls, body)
26450 if err != nil {
26451 return nil, err
26452 }
26453 req.Header = reqHeaders
26454 googleapi.Expand(req.URL, map[string]string{
26455 "parent": c.parent,
26456 })
26457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26458 }
26459
26460
26461
26462
26463
26464
26465
26466 func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
26467 gensupport.SetOptions(c.urlParams_, opts...)
26468 res, err := c.doRequest("json")
26469 if res != nil && res.StatusCode == http.StatusNotModified {
26470 if res.Body != nil {
26471 res.Body.Close()
26472 }
26473 return nil, gensupport.WrapError(&googleapi.Error{
26474 Code: res.StatusCode,
26475 Header: res.Header,
26476 })
26477 }
26478 if err != nil {
26479 return nil, err
26480 }
26481 defer googleapi.CloseBody(res)
26482 if err := googleapi.CheckResponse(res); err != nil {
26483 return nil, gensupport.WrapError(err)
26484 }
26485 ret := &GoogleCloudDialogflowV2ListContextsResponse{
26486 ServerResponse: googleapi.ServerResponse{
26487 Header: res.Header,
26488 HTTPStatusCode: res.StatusCode,
26489 },
26490 }
26491 target := &ret
26492 if err := gensupport.DecodeResponse(target, res); err != nil {
26493 return nil, err
26494 }
26495 return ret, nil
26496 }
26497
26498
26499
26500
26501 func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
26502 c.ctx_ = ctx
26503 defer c.PageToken(c.urlParams_.Get("pageToken"))
26504 for {
26505 x, err := c.Do()
26506 if err != nil {
26507 return err
26508 }
26509 if err := f(x); err != nil {
26510 return err
26511 }
26512 if x.NextPageToken == "" {
26513 return nil
26514 }
26515 c.PageToken(x.NextPageToken)
26516 }
26517 }
26518
26519 type ProjectsAgentSessionsContextsPatchCall struct {
26520 s *Service
26521 nameid string
26522 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
26523 urlParams_ gensupport.URLParams
26524 ctx_ context.Context
26525 header_ http.Header
26526 }
26527
26528
26529
26530
26531
26532
26533
26534
26535
26536
26537
26538
26539
26540 func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsAgentSessionsContextsPatchCall {
26541 c := &ProjectsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26542 c.nameid = nameid
26543 c.googleclouddialogflowv2context = googleclouddialogflowv2context
26544 return c
26545 }
26546
26547
26548
26549 func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall {
26550 c.urlParams_.Set("updateMask", updateMask)
26551 return c
26552 }
26553
26554
26555
26556
26557 func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall {
26558 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26559 return c
26560 }
26561
26562
26563 func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall {
26564 c.ctx_ = ctx
26565 return c
26566 }
26567
26568
26569
26570 func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header {
26571 if c.header_ == nil {
26572 c.header_ = make(http.Header)
26573 }
26574 return c.header_
26575 }
26576
26577 func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
26578 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26579 var body io.Reader = nil
26580 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
26581 if err != nil {
26582 return nil, err
26583 }
26584 c.urlParams_.Set("alt", alt)
26585 c.urlParams_.Set("prettyPrint", "false")
26586 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
26587 urls += "?" + c.urlParams_.Encode()
26588 req, err := http.NewRequest("PATCH", urls, body)
26589 if err != nil {
26590 return nil, err
26591 }
26592 req.Header = reqHeaders
26593 googleapi.Expand(req.URL, map[string]string{
26594 "name": c.nameid,
26595 })
26596 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26597 }
26598
26599
26600
26601
26602
26603
26604
26605 func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
26606 gensupport.SetOptions(c.urlParams_, opts...)
26607 res, err := c.doRequest("json")
26608 if res != nil && res.StatusCode == http.StatusNotModified {
26609 if res.Body != nil {
26610 res.Body.Close()
26611 }
26612 return nil, gensupport.WrapError(&googleapi.Error{
26613 Code: res.StatusCode,
26614 Header: res.Header,
26615 })
26616 }
26617 if err != nil {
26618 return nil, err
26619 }
26620 defer googleapi.CloseBody(res)
26621 if err := googleapi.CheckResponse(res); err != nil {
26622 return nil, gensupport.WrapError(err)
26623 }
26624 ret := &GoogleCloudDialogflowV2Context{
26625 ServerResponse: googleapi.ServerResponse{
26626 Header: res.Header,
26627 HTTPStatusCode: res.StatusCode,
26628 },
26629 }
26630 target := &ret
26631 if err := gensupport.DecodeResponse(target, res); err != nil {
26632 return nil, err
26633 }
26634 return ret, nil
26635 }
26636
26637 type ProjectsAgentSessionsEntityTypesCreateCall struct {
26638 s *Service
26639 parent string
26640 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
26641 urlParams_ gensupport.URLParams
26642 ctx_ context.Context
26643 header_ http.Header
26644 }
26645
26646
26647
26648
26649
26650
26651
26652
26653
26654
26655
26656 func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall {
26657 c := &ProjectsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26658 c.parent = parent
26659 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
26660 return c
26661 }
26662
26663
26664
26665
26666 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall {
26667 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26668 return c
26669 }
26670
26671
26672 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall {
26673 c.ctx_ = ctx
26674 return c
26675 }
26676
26677
26678
26679 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header {
26680 if c.header_ == nil {
26681 c.header_ = make(http.Header)
26682 }
26683 return c.header_
26684 }
26685
26686 func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
26687 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26688 var body io.Reader = nil
26689 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
26690 if err != nil {
26691 return nil, err
26692 }
26693 c.urlParams_.Set("alt", alt)
26694 c.urlParams_.Set("prettyPrint", "false")
26695 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
26696 urls += "?" + c.urlParams_.Encode()
26697 req, err := http.NewRequest("POST", urls, body)
26698 if err != nil {
26699 return nil, err
26700 }
26701 req.Header = reqHeaders
26702 googleapi.Expand(req.URL, map[string]string{
26703 "parent": c.parent,
26704 })
26705 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26706 }
26707
26708
26709
26710
26711
26712
26713
26714 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
26715 gensupport.SetOptions(c.urlParams_, opts...)
26716 res, err := c.doRequest("json")
26717 if res != nil && res.StatusCode == http.StatusNotModified {
26718 if res.Body != nil {
26719 res.Body.Close()
26720 }
26721 return nil, gensupport.WrapError(&googleapi.Error{
26722 Code: res.StatusCode,
26723 Header: res.Header,
26724 })
26725 }
26726 if err != nil {
26727 return nil, err
26728 }
26729 defer googleapi.CloseBody(res)
26730 if err := googleapi.CheckResponse(res); err != nil {
26731 return nil, gensupport.WrapError(err)
26732 }
26733 ret := &GoogleCloudDialogflowV2SessionEntityType{
26734 ServerResponse: googleapi.ServerResponse{
26735 Header: res.Header,
26736 HTTPStatusCode: res.StatusCode,
26737 },
26738 }
26739 target := &ret
26740 if err := gensupport.DecodeResponse(target, res); err != nil {
26741 return nil, err
26742 }
26743 return ret, nil
26744 }
26745
26746 type ProjectsAgentSessionsEntityTypesDeleteCall struct {
26747 s *Service
26748 name string
26749 urlParams_ gensupport.URLParams
26750 ctx_ context.Context
26751 header_ http.Header
26752 }
26753
26754
26755
26756
26757
26758
26759
26760
26761
26762
26763 func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall {
26764 c := &ProjectsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26765 c.name = name
26766 return c
26767 }
26768
26769
26770
26771
26772 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall {
26773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26774 return c
26775 }
26776
26777
26778 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall {
26779 c.ctx_ = ctx
26780 return c
26781 }
26782
26783
26784
26785 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
26786 if c.header_ == nil {
26787 c.header_ = make(http.Header)
26788 }
26789 return c.header_
26790 }
26791
26792 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
26793 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26794 var body io.Reader = nil
26795 c.urlParams_.Set("alt", alt)
26796 c.urlParams_.Set("prettyPrint", "false")
26797 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
26798 urls += "?" + c.urlParams_.Encode()
26799 req, err := http.NewRequest("DELETE", urls, body)
26800 if err != nil {
26801 return nil, err
26802 }
26803 req.Header = reqHeaders
26804 googleapi.Expand(req.URL, map[string]string{
26805 "name": c.name,
26806 })
26807 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26808 }
26809
26810
26811
26812
26813
26814
26815
26816 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26817 gensupport.SetOptions(c.urlParams_, opts...)
26818 res, err := c.doRequest("json")
26819 if res != nil && res.StatusCode == http.StatusNotModified {
26820 if res.Body != nil {
26821 res.Body.Close()
26822 }
26823 return nil, gensupport.WrapError(&googleapi.Error{
26824 Code: res.StatusCode,
26825 Header: res.Header,
26826 })
26827 }
26828 if err != nil {
26829 return nil, err
26830 }
26831 defer googleapi.CloseBody(res)
26832 if err := googleapi.CheckResponse(res); err != nil {
26833 return nil, gensupport.WrapError(err)
26834 }
26835 ret := &GoogleProtobufEmpty{
26836 ServerResponse: googleapi.ServerResponse{
26837 Header: res.Header,
26838 HTTPStatusCode: res.StatusCode,
26839 },
26840 }
26841 target := &ret
26842 if err := gensupport.DecodeResponse(target, res); err != nil {
26843 return nil, err
26844 }
26845 return ret, nil
26846 }
26847
26848 type ProjectsAgentSessionsEntityTypesGetCall struct {
26849 s *Service
26850 name string
26851 urlParams_ gensupport.URLParams
26852 ifNoneMatch_ string
26853 ctx_ context.Context
26854 header_ http.Header
26855 }
26856
26857
26858
26859
26860
26861
26862
26863
26864
26865
26866 func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall {
26867 c := &ProjectsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26868 c.name = name
26869 return c
26870 }
26871
26872
26873
26874
26875 func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall {
26876 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26877 return c
26878 }
26879
26880
26881
26882
26883 func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall {
26884 c.ifNoneMatch_ = entityTag
26885 return c
26886 }
26887
26888
26889 func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall {
26890 c.ctx_ = ctx
26891 return c
26892 }
26893
26894
26895
26896 func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header {
26897 if c.header_ == nil {
26898 c.header_ = make(http.Header)
26899 }
26900 return c.header_
26901 }
26902
26903 func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
26904 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26905 if c.ifNoneMatch_ != "" {
26906 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26907 }
26908 var body io.Reader = nil
26909 c.urlParams_.Set("alt", alt)
26910 c.urlParams_.Set("prettyPrint", "false")
26911 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
26912 urls += "?" + c.urlParams_.Encode()
26913 req, err := http.NewRequest("GET", urls, body)
26914 if err != nil {
26915 return nil, err
26916 }
26917 req.Header = reqHeaders
26918 googleapi.Expand(req.URL, map[string]string{
26919 "name": c.name,
26920 })
26921 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26922 }
26923
26924
26925
26926
26927
26928
26929
26930 func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
26931 gensupport.SetOptions(c.urlParams_, opts...)
26932 res, err := c.doRequest("json")
26933 if res != nil && res.StatusCode == http.StatusNotModified {
26934 if res.Body != nil {
26935 res.Body.Close()
26936 }
26937 return nil, gensupport.WrapError(&googleapi.Error{
26938 Code: res.StatusCode,
26939 Header: res.Header,
26940 })
26941 }
26942 if err != nil {
26943 return nil, err
26944 }
26945 defer googleapi.CloseBody(res)
26946 if err := googleapi.CheckResponse(res); err != nil {
26947 return nil, gensupport.WrapError(err)
26948 }
26949 ret := &GoogleCloudDialogflowV2SessionEntityType{
26950 ServerResponse: googleapi.ServerResponse{
26951 Header: res.Header,
26952 HTTPStatusCode: res.StatusCode,
26953 },
26954 }
26955 target := &ret
26956 if err := gensupport.DecodeResponse(target, res); err != nil {
26957 return nil, err
26958 }
26959 return ret, nil
26960 }
26961
26962 type ProjectsAgentSessionsEntityTypesListCall struct {
26963 s *Service
26964 parent string
26965 urlParams_ gensupport.URLParams
26966 ifNoneMatch_ string
26967 ctx_ context.Context
26968 header_ http.Header
26969 }
26970
26971
26972
26973
26974
26975
26976
26977
26978
26979
26980
26981 func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall {
26982 c := &ProjectsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26983 c.parent = parent
26984 return c
26985 }
26986
26987
26988
26989 func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall {
26990 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26991 return c
26992 }
26993
26994
26995
26996 func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall {
26997 c.urlParams_.Set("pageToken", pageToken)
26998 return c
26999 }
27000
27001
27002
27003
27004 func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall {
27005 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27006 return c
27007 }
27008
27009
27010
27011
27012 func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall {
27013 c.ifNoneMatch_ = entityTag
27014 return c
27015 }
27016
27017
27018 func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall {
27019 c.ctx_ = ctx
27020 return c
27021 }
27022
27023
27024
27025 func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header {
27026 if c.header_ == nil {
27027 c.header_ = make(http.Header)
27028 }
27029 return c.header_
27030 }
27031
27032 func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
27033 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27034 if c.ifNoneMatch_ != "" {
27035 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27036 }
27037 var body io.Reader = nil
27038 c.urlParams_.Set("alt", alt)
27039 c.urlParams_.Set("prettyPrint", "false")
27040 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
27041 urls += "?" + c.urlParams_.Encode()
27042 req, err := http.NewRequest("GET", urls, body)
27043 if err != nil {
27044 return nil, err
27045 }
27046 req.Header = reqHeaders
27047 googleapi.Expand(req.URL, map[string]string{
27048 "parent": c.parent,
27049 })
27050 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27051 }
27052
27053
27054
27055
27056
27057
27058
27059 func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
27060 gensupport.SetOptions(c.urlParams_, opts...)
27061 res, err := c.doRequest("json")
27062 if res != nil && res.StatusCode == http.StatusNotModified {
27063 if res.Body != nil {
27064 res.Body.Close()
27065 }
27066 return nil, gensupport.WrapError(&googleapi.Error{
27067 Code: res.StatusCode,
27068 Header: res.Header,
27069 })
27070 }
27071 if err != nil {
27072 return nil, err
27073 }
27074 defer googleapi.CloseBody(res)
27075 if err := googleapi.CheckResponse(res); err != nil {
27076 return nil, gensupport.WrapError(err)
27077 }
27078 ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
27079 ServerResponse: googleapi.ServerResponse{
27080 Header: res.Header,
27081 HTTPStatusCode: res.StatusCode,
27082 },
27083 }
27084 target := &ret
27085 if err := gensupport.DecodeResponse(target, res); err != nil {
27086 return nil, err
27087 }
27088 return ret, nil
27089 }
27090
27091
27092
27093
27094 func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
27095 c.ctx_ = ctx
27096 defer c.PageToken(c.urlParams_.Get("pageToken"))
27097 for {
27098 x, err := c.Do()
27099 if err != nil {
27100 return err
27101 }
27102 if err := f(x); err != nil {
27103 return err
27104 }
27105 if x.NextPageToken == "" {
27106 return nil
27107 }
27108 c.PageToken(x.NextPageToken)
27109 }
27110 }
27111
27112 type ProjectsAgentSessionsEntityTypesPatchCall struct {
27113 s *Service
27114 nameid string
27115 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
27116 urlParams_ gensupport.URLParams
27117 ctx_ context.Context
27118 header_ http.Header
27119 }
27120
27121
27122
27123
27124
27125
27126
27127
27128
27129
27130
27131
27132 func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall {
27133 c := &ProjectsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27134 c.nameid = nameid
27135 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
27136 return c
27137 }
27138
27139
27140
27141 func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall {
27142 c.urlParams_.Set("updateMask", updateMask)
27143 return c
27144 }
27145
27146
27147
27148
27149 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall {
27150 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27151 return c
27152 }
27153
27154
27155 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall {
27156 c.ctx_ = ctx
27157 return c
27158 }
27159
27160
27161
27162 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header {
27163 if c.header_ == nil {
27164 c.header_ = make(http.Header)
27165 }
27166 return c.header_
27167 }
27168
27169 func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
27170 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27171 var body io.Reader = nil
27172 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
27173 if err != nil {
27174 return nil, err
27175 }
27176 c.urlParams_.Set("alt", alt)
27177 c.urlParams_.Set("prettyPrint", "false")
27178 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
27179 urls += "?" + c.urlParams_.Encode()
27180 req, err := http.NewRequest("PATCH", urls, body)
27181 if err != nil {
27182 return nil, err
27183 }
27184 req.Header = reqHeaders
27185 googleapi.Expand(req.URL, map[string]string{
27186 "name": c.nameid,
27187 })
27188 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27189 }
27190
27191
27192
27193
27194
27195
27196
27197 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
27198 gensupport.SetOptions(c.urlParams_, opts...)
27199 res, err := c.doRequest("json")
27200 if res != nil && res.StatusCode == http.StatusNotModified {
27201 if res.Body != nil {
27202 res.Body.Close()
27203 }
27204 return nil, gensupport.WrapError(&googleapi.Error{
27205 Code: res.StatusCode,
27206 Header: res.Header,
27207 })
27208 }
27209 if err != nil {
27210 return nil, err
27211 }
27212 defer googleapi.CloseBody(res)
27213 if err := googleapi.CheckResponse(res); err != nil {
27214 return nil, gensupport.WrapError(err)
27215 }
27216 ret := &GoogleCloudDialogflowV2SessionEntityType{
27217 ServerResponse: googleapi.ServerResponse{
27218 Header: res.Header,
27219 HTTPStatusCode: res.StatusCode,
27220 },
27221 }
27222 target := &ret
27223 if err := gensupport.DecodeResponse(target, res); err != nil {
27224 return nil, err
27225 }
27226 return ret, nil
27227 }
27228
27229 type ProjectsAgentVersionsCreateCall struct {
27230 s *Service
27231 parent string
27232 googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
27233 urlParams_ gensupport.URLParams
27234 ctx_ context.Context
27235 header_ http.Header
27236 }
27237
27238
27239
27240
27241
27242
27243 func (r *ProjectsAgentVersionsService) Create(parent string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsAgentVersionsCreateCall {
27244 c := &ProjectsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27245 c.parent = parent
27246 c.googleclouddialogflowv2version = googleclouddialogflowv2version
27247 return c
27248 }
27249
27250
27251
27252
27253 func (c *ProjectsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsCreateCall {
27254 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27255 return c
27256 }
27257
27258
27259 func (c *ProjectsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsAgentVersionsCreateCall {
27260 c.ctx_ = ctx
27261 return c
27262 }
27263
27264
27265
27266 func (c *ProjectsAgentVersionsCreateCall) Header() http.Header {
27267 if c.header_ == nil {
27268 c.header_ = make(http.Header)
27269 }
27270 return c.header_
27271 }
27272
27273 func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
27274 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27275 var body io.Reader = nil
27276 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
27277 if err != nil {
27278 return nil, err
27279 }
27280 c.urlParams_.Set("alt", alt)
27281 c.urlParams_.Set("prettyPrint", "false")
27282 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
27283 urls += "?" + c.urlParams_.Encode()
27284 req, err := http.NewRequest("POST", urls, body)
27285 if err != nil {
27286 return nil, err
27287 }
27288 req.Header = reqHeaders
27289 googleapi.Expand(req.URL, map[string]string{
27290 "parent": c.parent,
27291 })
27292 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27293 }
27294
27295
27296
27297
27298
27299
27300
27301 func (c *ProjectsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
27302 gensupport.SetOptions(c.urlParams_, opts...)
27303 res, err := c.doRequest("json")
27304 if res != nil && res.StatusCode == http.StatusNotModified {
27305 if res.Body != nil {
27306 res.Body.Close()
27307 }
27308 return nil, gensupport.WrapError(&googleapi.Error{
27309 Code: res.StatusCode,
27310 Header: res.Header,
27311 })
27312 }
27313 if err != nil {
27314 return nil, err
27315 }
27316 defer googleapi.CloseBody(res)
27317 if err := googleapi.CheckResponse(res); err != nil {
27318 return nil, gensupport.WrapError(err)
27319 }
27320 ret := &GoogleCloudDialogflowV2Version{
27321 ServerResponse: googleapi.ServerResponse{
27322 Header: res.Header,
27323 HTTPStatusCode: res.StatusCode,
27324 },
27325 }
27326 target := &ret
27327 if err := gensupport.DecodeResponse(target, res); err != nil {
27328 return nil, err
27329 }
27330 return ret, nil
27331 }
27332
27333 type ProjectsAgentVersionsDeleteCall struct {
27334 s *Service
27335 name string
27336 urlParams_ gensupport.URLParams
27337 ctx_ context.Context
27338 header_ http.Header
27339 }
27340
27341
27342
27343
27344
27345 func (r *ProjectsAgentVersionsService) Delete(name string) *ProjectsAgentVersionsDeleteCall {
27346 c := &ProjectsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27347 c.name = name
27348 return c
27349 }
27350
27351
27352
27353
27354 func (c *ProjectsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsDeleteCall {
27355 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27356 return c
27357 }
27358
27359
27360 func (c *ProjectsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsAgentVersionsDeleteCall {
27361 c.ctx_ = ctx
27362 return c
27363 }
27364
27365
27366
27367 func (c *ProjectsAgentVersionsDeleteCall) Header() http.Header {
27368 if c.header_ == nil {
27369 c.header_ = make(http.Header)
27370 }
27371 return c.header_
27372 }
27373
27374 func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
27375 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27376 var body io.Reader = nil
27377 c.urlParams_.Set("alt", alt)
27378 c.urlParams_.Set("prettyPrint", "false")
27379 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
27380 urls += "?" + c.urlParams_.Encode()
27381 req, err := http.NewRequest("DELETE", urls, body)
27382 if err != nil {
27383 return nil, err
27384 }
27385 req.Header = reqHeaders
27386 googleapi.Expand(req.URL, map[string]string{
27387 "name": c.name,
27388 })
27389 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27390 }
27391
27392
27393
27394
27395
27396
27397
27398 func (c *ProjectsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27399 gensupport.SetOptions(c.urlParams_, opts...)
27400 res, err := c.doRequest("json")
27401 if res != nil && res.StatusCode == http.StatusNotModified {
27402 if res.Body != nil {
27403 res.Body.Close()
27404 }
27405 return nil, gensupport.WrapError(&googleapi.Error{
27406 Code: res.StatusCode,
27407 Header: res.Header,
27408 })
27409 }
27410 if err != nil {
27411 return nil, err
27412 }
27413 defer googleapi.CloseBody(res)
27414 if err := googleapi.CheckResponse(res); err != nil {
27415 return nil, gensupport.WrapError(err)
27416 }
27417 ret := &GoogleProtobufEmpty{
27418 ServerResponse: googleapi.ServerResponse{
27419 Header: res.Header,
27420 HTTPStatusCode: res.StatusCode,
27421 },
27422 }
27423 target := &ret
27424 if err := gensupport.DecodeResponse(target, res); err != nil {
27425 return nil, err
27426 }
27427 return ret, nil
27428 }
27429
27430 type ProjectsAgentVersionsGetCall struct {
27431 s *Service
27432 name string
27433 urlParams_ gensupport.URLParams
27434 ifNoneMatch_ string
27435 ctx_ context.Context
27436 header_ http.Header
27437 }
27438
27439
27440
27441
27442
27443 func (r *ProjectsAgentVersionsService) Get(name string) *ProjectsAgentVersionsGetCall {
27444 c := &ProjectsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27445 c.name = name
27446 return c
27447 }
27448
27449
27450
27451
27452 func (c *ProjectsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsGetCall {
27453 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27454 return c
27455 }
27456
27457
27458
27459
27460 func (c *ProjectsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsGetCall {
27461 c.ifNoneMatch_ = entityTag
27462 return c
27463 }
27464
27465
27466 func (c *ProjectsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsAgentVersionsGetCall {
27467 c.ctx_ = ctx
27468 return c
27469 }
27470
27471
27472
27473 func (c *ProjectsAgentVersionsGetCall) Header() http.Header {
27474 if c.header_ == nil {
27475 c.header_ = make(http.Header)
27476 }
27477 return c.header_
27478 }
27479
27480 func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
27481 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27482 if c.ifNoneMatch_ != "" {
27483 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27484 }
27485 var body io.Reader = nil
27486 c.urlParams_.Set("alt", alt)
27487 c.urlParams_.Set("prettyPrint", "false")
27488 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
27489 urls += "?" + c.urlParams_.Encode()
27490 req, err := http.NewRequest("GET", urls, body)
27491 if err != nil {
27492 return nil, err
27493 }
27494 req.Header = reqHeaders
27495 googleapi.Expand(req.URL, map[string]string{
27496 "name": c.name,
27497 })
27498 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27499 }
27500
27501
27502
27503
27504
27505
27506
27507 func (c *ProjectsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
27508 gensupport.SetOptions(c.urlParams_, opts...)
27509 res, err := c.doRequest("json")
27510 if res != nil && res.StatusCode == http.StatusNotModified {
27511 if res.Body != nil {
27512 res.Body.Close()
27513 }
27514 return nil, gensupport.WrapError(&googleapi.Error{
27515 Code: res.StatusCode,
27516 Header: res.Header,
27517 })
27518 }
27519 if err != nil {
27520 return nil, err
27521 }
27522 defer googleapi.CloseBody(res)
27523 if err := googleapi.CheckResponse(res); err != nil {
27524 return nil, gensupport.WrapError(err)
27525 }
27526 ret := &GoogleCloudDialogflowV2Version{
27527 ServerResponse: googleapi.ServerResponse{
27528 Header: res.Header,
27529 HTTPStatusCode: res.StatusCode,
27530 },
27531 }
27532 target := &ret
27533 if err := gensupport.DecodeResponse(target, res); err != nil {
27534 return nil, err
27535 }
27536 return ret, nil
27537 }
27538
27539 type ProjectsAgentVersionsListCall struct {
27540 s *Service
27541 parent string
27542 urlParams_ gensupport.URLParams
27543 ifNoneMatch_ string
27544 ctx_ context.Context
27545 header_ http.Header
27546 }
27547
27548
27549
27550
27551
27552 func (r *ProjectsAgentVersionsService) List(parent string) *ProjectsAgentVersionsListCall {
27553 c := &ProjectsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27554 c.parent = parent
27555 return c
27556 }
27557
27558
27559
27560 func (c *ProjectsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsAgentVersionsListCall {
27561 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27562 return c
27563 }
27564
27565
27566
27567 func (c *ProjectsAgentVersionsListCall) PageToken(pageToken string) *ProjectsAgentVersionsListCall {
27568 c.urlParams_.Set("pageToken", pageToken)
27569 return c
27570 }
27571
27572
27573
27574
27575 func (c *ProjectsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsListCall {
27576 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27577 return c
27578 }
27579
27580
27581
27582
27583 func (c *ProjectsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsListCall {
27584 c.ifNoneMatch_ = entityTag
27585 return c
27586 }
27587
27588
27589 func (c *ProjectsAgentVersionsListCall) Context(ctx context.Context) *ProjectsAgentVersionsListCall {
27590 c.ctx_ = ctx
27591 return c
27592 }
27593
27594
27595
27596 func (c *ProjectsAgentVersionsListCall) Header() http.Header {
27597 if c.header_ == nil {
27598 c.header_ = make(http.Header)
27599 }
27600 return c.header_
27601 }
27602
27603 func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
27604 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27605 if c.ifNoneMatch_ != "" {
27606 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27607 }
27608 var body io.Reader = nil
27609 c.urlParams_.Set("alt", alt)
27610 c.urlParams_.Set("prettyPrint", "false")
27611 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
27612 urls += "?" + c.urlParams_.Encode()
27613 req, err := http.NewRequest("GET", urls, body)
27614 if err != nil {
27615 return nil, err
27616 }
27617 req.Header = reqHeaders
27618 googleapi.Expand(req.URL, map[string]string{
27619 "parent": c.parent,
27620 })
27621 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27622 }
27623
27624
27625
27626
27627
27628
27629
27630 func (c *ProjectsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListVersionsResponse, error) {
27631 gensupport.SetOptions(c.urlParams_, opts...)
27632 res, err := c.doRequest("json")
27633 if res != nil && res.StatusCode == http.StatusNotModified {
27634 if res.Body != nil {
27635 res.Body.Close()
27636 }
27637 return nil, gensupport.WrapError(&googleapi.Error{
27638 Code: res.StatusCode,
27639 Header: res.Header,
27640 })
27641 }
27642 if err != nil {
27643 return nil, err
27644 }
27645 defer googleapi.CloseBody(res)
27646 if err := googleapi.CheckResponse(res); err != nil {
27647 return nil, gensupport.WrapError(err)
27648 }
27649 ret := &GoogleCloudDialogflowV2ListVersionsResponse{
27650 ServerResponse: googleapi.ServerResponse{
27651 Header: res.Header,
27652 HTTPStatusCode: res.StatusCode,
27653 },
27654 }
27655 target := &ret
27656 if err := gensupport.DecodeResponse(target, res); err != nil {
27657 return nil, err
27658 }
27659 return ret, nil
27660 }
27661
27662
27663
27664
27665 func (c *ProjectsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListVersionsResponse) error) error {
27666 c.ctx_ = ctx
27667 defer c.PageToken(c.urlParams_.Get("pageToken"))
27668 for {
27669 x, err := c.Do()
27670 if err != nil {
27671 return err
27672 }
27673 if err := f(x); err != nil {
27674 return err
27675 }
27676 if x.NextPageToken == "" {
27677 return nil
27678 }
27679 c.PageToken(x.NextPageToken)
27680 }
27681 }
27682
27683 type ProjectsAgentVersionsPatchCall struct {
27684 s *Service
27685 nameid string
27686 googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
27687 urlParams_ gensupport.URLParams
27688 ctx_ context.Context
27689 header_ http.Header
27690 }
27691
27692
27693
27694
27695
27696
27697
27698
27699 func (r *ProjectsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsAgentVersionsPatchCall {
27700 c := &ProjectsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27701 c.nameid = nameid
27702 c.googleclouddialogflowv2version = googleclouddialogflowv2version
27703 return c
27704 }
27705
27706
27707
27708 func (c *ProjectsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsAgentVersionsPatchCall {
27709 c.urlParams_.Set("updateMask", updateMask)
27710 return c
27711 }
27712
27713
27714
27715
27716 func (c *ProjectsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsPatchCall {
27717 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27718 return c
27719 }
27720
27721
27722 func (c *ProjectsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsAgentVersionsPatchCall {
27723 c.ctx_ = ctx
27724 return c
27725 }
27726
27727
27728
27729 func (c *ProjectsAgentVersionsPatchCall) Header() http.Header {
27730 if c.header_ == nil {
27731 c.header_ = make(http.Header)
27732 }
27733 return c.header_
27734 }
27735
27736 func (c *ProjectsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
27737 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27738 var body io.Reader = nil
27739 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
27740 if err != nil {
27741 return nil, err
27742 }
27743 c.urlParams_.Set("alt", alt)
27744 c.urlParams_.Set("prettyPrint", "false")
27745 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
27746 urls += "?" + c.urlParams_.Encode()
27747 req, err := http.NewRequest("PATCH", urls, body)
27748 if err != nil {
27749 return nil, err
27750 }
27751 req.Header = reqHeaders
27752 googleapi.Expand(req.URL, map[string]string{
27753 "name": c.nameid,
27754 })
27755 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27756 }
27757
27758
27759
27760
27761
27762
27763
27764 func (c *ProjectsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
27765 gensupport.SetOptions(c.urlParams_, opts...)
27766 res, err := c.doRequest("json")
27767 if res != nil && res.StatusCode == http.StatusNotModified {
27768 if res.Body != nil {
27769 res.Body.Close()
27770 }
27771 return nil, gensupport.WrapError(&googleapi.Error{
27772 Code: res.StatusCode,
27773 Header: res.Header,
27774 })
27775 }
27776 if err != nil {
27777 return nil, err
27778 }
27779 defer googleapi.CloseBody(res)
27780 if err := googleapi.CheckResponse(res); err != nil {
27781 return nil, gensupport.WrapError(err)
27782 }
27783 ret := &GoogleCloudDialogflowV2Version{
27784 ServerResponse: googleapi.ServerResponse{
27785 Header: res.Header,
27786 HTTPStatusCode: res.StatusCode,
27787 },
27788 }
27789 target := &ret
27790 if err := gensupport.DecodeResponse(target, res); err != nil {
27791 return nil, err
27792 }
27793 return ret, nil
27794 }
27795
27796 type ProjectsAnswerRecordsListCall struct {
27797 s *Service
27798 parent string
27799 urlParams_ gensupport.URLParams
27800 ifNoneMatch_ string
27801 ctx_ context.Context
27802 header_ http.Header
27803 }
27804
27805
27806
27807
27808
27809
27810 func (r *ProjectsAnswerRecordsService) List(parent string) *ProjectsAnswerRecordsListCall {
27811 c := &ProjectsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27812 c.parent = parent
27813 return c
27814 }
27815
27816
27817
27818
27819
27820 func (c *ProjectsAnswerRecordsListCall) Filter(filter string) *ProjectsAnswerRecordsListCall {
27821 c.urlParams_.Set("filter", filter)
27822 return c
27823 }
27824
27825
27826
27827
27828 func (c *ProjectsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsAnswerRecordsListCall {
27829 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27830 return c
27831 }
27832
27833
27834
27835
27836 func (c *ProjectsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsAnswerRecordsListCall {
27837 c.urlParams_.Set("pageToken", pageToken)
27838 return c
27839 }
27840
27841
27842
27843
27844 func (c *ProjectsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsListCall {
27845 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27846 return c
27847 }
27848
27849
27850
27851
27852 func (c *ProjectsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsListCall {
27853 c.ifNoneMatch_ = entityTag
27854 return c
27855 }
27856
27857
27858 func (c *ProjectsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsAnswerRecordsListCall {
27859 c.ctx_ = ctx
27860 return c
27861 }
27862
27863
27864
27865 func (c *ProjectsAnswerRecordsListCall) Header() http.Header {
27866 if c.header_ == nil {
27867 c.header_ = make(http.Header)
27868 }
27869 return c.header_
27870 }
27871
27872 func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
27873 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27874 if c.ifNoneMatch_ != "" {
27875 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27876 }
27877 var body io.Reader = nil
27878 c.urlParams_.Set("alt", alt)
27879 c.urlParams_.Set("prettyPrint", "false")
27880 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/answerRecords")
27881 urls += "?" + c.urlParams_.Encode()
27882 req, err := http.NewRequest("GET", urls, body)
27883 if err != nil {
27884 return nil, err
27885 }
27886 req.Header = reqHeaders
27887 googleapi.Expand(req.URL, map[string]string{
27888 "parent": c.parent,
27889 })
27890 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27891 }
27892
27893
27894
27895
27896
27897
27898
27899 func (c *ProjectsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListAnswerRecordsResponse, error) {
27900 gensupport.SetOptions(c.urlParams_, opts...)
27901 res, err := c.doRequest("json")
27902 if res != nil && res.StatusCode == http.StatusNotModified {
27903 if res.Body != nil {
27904 res.Body.Close()
27905 }
27906 return nil, gensupport.WrapError(&googleapi.Error{
27907 Code: res.StatusCode,
27908 Header: res.Header,
27909 })
27910 }
27911 if err != nil {
27912 return nil, err
27913 }
27914 defer googleapi.CloseBody(res)
27915 if err := googleapi.CheckResponse(res); err != nil {
27916 return nil, gensupport.WrapError(err)
27917 }
27918 ret := &GoogleCloudDialogflowV2ListAnswerRecordsResponse{
27919 ServerResponse: googleapi.ServerResponse{
27920 Header: res.Header,
27921 HTTPStatusCode: res.StatusCode,
27922 },
27923 }
27924 target := &ret
27925 if err := gensupport.DecodeResponse(target, res); err != nil {
27926 return nil, err
27927 }
27928 return ret, nil
27929 }
27930
27931
27932
27933
27934 func (c *ProjectsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListAnswerRecordsResponse) error) error {
27935 c.ctx_ = ctx
27936 defer c.PageToken(c.urlParams_.Get("pageToken"))
27937 for {
27938 x, err := c.Do()
27939 if err != nil {
27940 return err
27941 }
27942 if err := f(x); err != nil {
27943 return err
27944 }
27945 if x.NextPageToken == "" {
27946 return nil
27947 }
27948 c.PageToken(x.NextPageToken)
27949 }
27950 }
27951
27952 type ProjectsAnswerRecordsPatchCall struct {
27953 s *Service
27954 nameid string
27955 googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord
27956 urlParams_ gensupport.URLParams
27957 ctx_ context.Context
27958 header_ http.Header
27959 }
27960
27961
27962
27963
27964
27965 func (r *ProjectsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord) *ProjectsAnswerRecordsPatchCall {
27966 c := &ProjectsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27967 c.nameid = nameid
27968 c.googleclouddialogflowv2answerrecord = googleclouddialogflowv2answerrecord
27969 return c
27970 }
27971
27972
27973
27974 func (c *ProjectsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsAnswerRecordsPatchCall {
27975 c.urlParams_.Set("updateMask", updateMask)
27976 return c
27977 }
27978
27979
27980
27981
27982 func (c *ProjectsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsPatchCall {
27983 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27984 return c
27985 }
27986
27987
27988 func (c *ProjectsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsAnswerRecordsPatchCall {
27989 c.ctx_ = ctx
27990 return c
27991 }
27992
27993
27994
27995 func (c *ProjectsAnswerRecordsPatchCall) Header() http.Header {
27996 if c.header_ == nil {
27997 c.header_ = make(http.Header)
27998 }
27999 return c.header_
28000 }
28001
28002 func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
28003 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28004 var body io.Reader = nil
28005 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2answerrecord)
28006 if err != nil {
28007 return nil, err
28008 }
28009 c.urlParams_.Set("alt", alt)
28010 c.urlParams_.Set("prettyPrint", "false")
28011 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
28012 urls += "?" + c.urlParams_.Encode()
28013 req, err := http.NewRequest("PATCH", urls, body)
28014 if err != nil {
28015 return nil, err
28016 }
28017 req.Header = reqHeaders
28018 googleapi.Expand(req.URL, map[string]string{
28019 "name": c.nameid,
28020 })
28021 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28022 }
28023
28024
28025
28026
28027
28028
28029
28030 func (c *ProjectsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnswerRecord, error) {
28031 gensupport.SetOptions(c.urlParams_, opts...)
28032 res, err := c.doRequest("json")
28033 if res != nil && res.StatusCode == http.StatusNotModified {
28034 if res.Body != nil {
28035 res.Body.Close()
28036 }
28037 return nil, gensupport.WrapError(&googleapi.Error{
28038 Code: res.StatusCode,
28039 Header: res.Header,
28040 })
28041 }
28042 if err != nil {
28043 return nil, err
28044 }
28045 defer googleapi.CloseBody(res)
28046 if err := googleapi.CheckResponse(res); err != nil {
28047 return nil, gensupport.WrapError(err)
28048 }
28049 ret := &GoogleCloudDialogflowV2AnswerRecord{
28050 ServerResponse: googleapi.ServerResponse{
28051 Header: res.Header,
28052 HTTPStatusCode: res.StatusCode,
28053 },
28054 }
28055 target := &ret
28056 if err := gensupport.DecodeResponse(target, res); err != nil {
28057 return nil, err
28058 }
28059 return ret, nil
28060 }
28061
28062 type ProjectsConversationDatasetsGetCall struct {
28063 s *Service
28064 name string
28065 urlParams_ gensupport.URLParams
28066 ifNoneMatch_ string
28067 ctx_ context.Context
28068 header_ http.Header
28069 }
28070
28071
28072
28073
28074
28075 func (r *ProjectsConversationDatasetsService) Get(name string) *ProjectsConversationDatasetsGetCall {
28076 c := &ProjectsConversationDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28077 c.name = name
28078 return c
28079 }
28080
28081
28082
28083
28084 func (c *ProjectsConversationDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationDatasetsGetCall {
28085 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28086 return c
28087 }
28088
28089
28090
28091
28092 func (c *ProjectsConversationDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationDatasetsGetCall {
28093 c.ifNoneMatch_ = entityTag
28094 return c
28095 }
28096
28097
28098 func (c *ProjectsConversationDatasetsGetCall) Context(ctx context.Context) *ProjectsConversationDatasetsGetCall {
28099 c.ctx_ = ctx
28100 return c
28101 }
28102
28103
28104
28105 func (c *ProjectsConversationDatasetsGetCall) Header() http.Header {
28106 if c.header_ == nil {
28107 c.header_ = make(http.Header)
28108 }
28109 return c.header_
28110 }
28111
28112 func (c *ProjectsConversationDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
28113 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28114 if c.ifNoneMatch_ != "" {
28115 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28116 }
28117 var body io.Reader = nil
28118 c.urlParams_.Set("alt", alt)
28119 c.urlParams_.Set("prettyPrint", "false")
28120 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
28121 urls += "?" + c.urlParams_.Encode()
28122 req, err := http.NewRequest("GET", urls, body)
28123 if err != nil {
28124 return nil, err
28125 }
28126 req.Header = reqHeaders
28127 googleapi.Expand(req.URL, map[string]string{
28128 "name": c.name,
28129 })
28130 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28131 }
28132
28133
28134
28135
28136
28137
28138
28139 func (c *ProjectsConversationDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationDataset, error) {
28140 gensupport.SetOptions(c.urlParams_, opts...)
28141 res, err := c.doRequest("json")
28142 if res != nil && res.StatusCode == http.StatusNotModified {
28143 if res.Body != nil {
28144 res.Body.Close()
28145 }
28146 return nil, gensupport.WrapError(&googleapi.Error{
28147 Code: res.StatusCode,
28148 Header: res.Header,
28149 })
28150 }
28151 if err != nil {
28152 return nil, err
28153 }
28154 defer googleapi.CloseBody(res)
28155 if err := googleapi.CheckResponse(res); err != nil {
28156 return nil, gensupport.WrapError(err)
28157 }
28158 ret := &GoogleCloudDialogflowV2ConversationDataset{
28159 ServerResponse: googleapi.ServerResponse{
28160 Header: res.Header,
28161 HTTPStatusCode: res.StatusCode,
28162 },
28163 }
28164 target := &ret
28165 if err := gensupport.DecodeResponse(target, res); err != nil {
28166 return nil, err
28167 }
28168 return ret, nil
28169 }
28170
28171 type ProjectsConversationDatasetsImportConversationDataCall struct {
28172 s *Service
28173 name string
28174 googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest
28175 urlParams_ gensupport.URLParams
28176 ctx_ context.Context
28177 header_ http.Header
28178 }
28179
28180
28181
28182
28183
28184
28185
28186
28187
28188
28189
28190 func (r *ProjectsConversationDatasetsService) ImportConversationData(name string, googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest) *ProjectsConversationDatasetsImportConversationDataCall {
28191 c := &ProjectsConversationDatasetsImportConversationDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28192 c.name = name
28193 c.googleclouddialogflowv2importconversationdatarequest = googleclouddialogflowv2importconversationdatarequest
28194 return c
28195 }
28196
28197
28198
28199
28200 func (c *ProjectsConversationDatasetsImportConversationDataCall) Fields(s ...googleapi.Field) *ProjectsConversationDatasetsImportConversationDataCall {
28201 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28202 return c
28203 }
28204
28205
28206 func (c *ProjectsConversationDatasetsImportConversationDataCall) Context(ctx context.Context) *ProjectsConversationDatasetsImportConversationDataCall {
28207 c.ctx_ = ctx
28208 return c
28209 }
28210
28211
28212
28213 func (c *ProjectsConversationDatasetsImportConversationDataCall) Header() http.Header {
28214 if c.header_ == nil {
28215 c.header_ = make(http.Header)
28216 }
28217 return c.header_
28218 }
28219
28220 func (c *ProjectsConversationDatasetsImportConversationDataCall) doRequest(alt string) (*http.Response, error) {
28221 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28222 var body io.Reader = nil
28223 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importconversationdatarequest)
28224 if err != nil {
28225 return nil, err
28226 }
28227 c.urlParams_.Set("alt", alt)
28228 c.urlParams_.Set("prettyPrint", "false")
28229 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:importConversationData")
28230 urls += "?" + c.urlParams_.Encode()
28231 req, err := http.NewRequest("POST", urls, body)
28232 if err != nil {
28233 return nil, err
28234 }
28235 req.Header = reqHeaders
28236 googleapi.Expand(req.URL, map[string]string{
28237 "name": c.name,
28238 })
28239 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28240 }
28241
28242
28243
28244
28245
28246
28247
28248 func (c *ProjectsConversationDatasetsImportConversationDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28249 gensupport.SetOptions(c.urlParams_, opts...)
28250 res, err := c.doRequest("json")
28251 if res != nil && res.StatusCode == http.StatusNotModified {
28252 if res.Body != nil {
28253 res.Body.Close()
28254 }
28255 return nil, gensupport.WrapError(&googleapi.Error{
28256 Code: res.StatusCode,
28257 Header: res.Header,
28258 })
28259 }
28260 if err != nil {
28261 return nil, err
28262 }
28263 defer googleapi.CloseBody(res)
28264 if err := googleapi.CheckResponse(res); err != nil {
28265 return nil, gensupport.WrapError(err)
28266 }
28267 ret := &GoogleLongrunningOperation{
28268 ServerResponse: googleapi.ServerResponse{
28269 Header: res.Header,
28270 HTTPStatusCode: res.StatusCode,
28271 },
28272 }
28273 target := &ret
28274 if err := gensupport.DecodeResponse(target, res); err != nil {
28275 return nil, err
28276 }
28277 return ret, nil
28278 }
28279
28280 type ProjectsConversationDatasetsListCall struct {
28281 s *Service
28282 parent string
28283 urlParams_ gensupport.URLParams
28284 ifNoneMatch_ string
28285 ctx_ context.Context
28286 header_ http.Header
28287 }
28288
28289
28290
28291
28292
28293
28294 func (r *ProjectsConversationDatasetsService) List(parent string) *ProjectsConversationDatasetsListCall {
28295 c := &ProjectsConversationDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28296 c.parent = parent
28297 return c
28298 }
28299
28300
28301
28302
28303 func (c *ProjectsConversationDatasetsListCall) PageSize(pageSize int64) *ProjectsConversationDatasetsListCall {
28304 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28305 return c
28306 }
28307
28308
28309
28310 func (c *ProjectsConversationDatasetsListCall) PageToken(pageToken string) *ProjectsConversationDatasetsListCall {
28311 c.urlParams_.Set("pageToken", pageToken)
28312 return c
28313 }
28314
28315
28316
28317
28318 func (c *ProjectsConversationDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsConversationDatasetsListCall {
28319 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28320 return c
28321 }
28322
28323
28324
28325
28326 func (c *ProjectsConversationDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsConversationDatasetsListCall {
28327 c.ifNoneMatch_ = entityTag
28328 return c
28329 }
28330
28331
28332 func (c *ProjectsConversationDatasetsListCall) Context(ctx context.Context) *ProjectsConversationDatasetsListCall {
28333 c.ctx_ = ctx
28334 return c
28335 }
28336
28337
28338
28339 func (c *ProjectsConversationDatasetsListCall) Header() http.Header {
28340 if c.header_ == nil {
28341 c.header_ = make(http.Header)
28342 }
28343 return c.header_
28344 }
28345
28346 func (c *ProjectsConversationDatasetsListCall) doRequest(alt string) (*http.Response, error) {
28347 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28348 if c.ifNoneMatch_ != "" {
28349 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28350 }
28351 var body io.Reader = nil
28352 c.urlParams_.Set("alt", alt)
28353 c.urlParams_.Set("prettyPrint", "false")
28354 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationDatasets")
28355 urls += "?" + c.urlParams_.Encode()
28356 req, err := http.NewRequest("GET", urls, body)
28357 if err != nil {
28358 return nil, err
28359 }
28360 req.Header = reqHeaders
28361 googleapi.Expand(req.URL, map[string]string{
28362 "parent": c.parent,
28363 })
28364 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28365 }
28366
28367
28368
28369
28370
28371
28372
28373 func (c *ProjectsConversationDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationDatasetsResponse, error) {
28374 gensupport.SetOptions(c.urlParams_, opts...)
28375 res, err := c.doRequest("json")
28376 if res != nil && res.StatusCode == http.StatusNotModified {
28377 if res.Body != nil {
28378 res.Body.Close()
28379 }
28380 return nil, gensupport.WrapError(&googleapi.Error{
28381 Code: res.StatusCode,
28382 Header: res.Header,
28383 })
28384 }
28385 if err != nil {
28386 return nil, err
28387 }
28388 defer googleapi.CloseBody(res)
28389 if err := googleapi.CheckResponse(res); err != nil {
28390 return nil, gensupport.WrapError(err)
28391 }
28392 ret := &GoogleCloudDialogflowV2ListConversationDatasetsResponse{
28393 ServerResponse: googleapi.ServerResponse{
28394 Header: res.Header,
28395 HTTPStatusCode: res.StatusCode,
28396 },
28397 }
28398 target := &ret
28399 if err := gensupport.DecodeResponse(target, res); err != nil {
28400 return nil, err
28401 }
28402 return ret, nil
28403 }
28404
28405
28406
28407
28408 func (c *ProjectsConversationDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationDatasetsResponse) error) error {
28409 c.ctx_ = ctx
28410 defer c.PageToken(c.urlParams_.Get("pageToken"))
28411 for {
28412 x, err := c.Do()
28413 if err != nil {
28414 return err
28415 }
28416 if err := f(x); err != nil {
28417 return err
28418 }
28419 if x.NextPageToken == "" {
28420 return nil
28421 }
28422 c.PageToken(x.NextPageToken)
28423 }
28424 }
28425
28426 type ProjectsConversationModelsCreateCall struct {
28427 s *Service
28428 parent string
28429 googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel
28430 urlParams_ gensupport.URLParams
28431 ctx_ context.Context
28432 header_ http.Header
28433 }
28434
28435
28436
28437
28438
28439
28440
28441
28442 func (r *ProjectsConversationModelsService) Create(parent string, googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel) *ProjectsConversationModelsCreateCall {
28443 c := &ProjectsConversationModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28444 c.parent = parent
28445 c.googleclouddialogflowv2conversationmodel = googleclouddialogflowv2conversationmodel
28446 return c
28447 }
28448
28449
28450
28451
28452 func (c *ProjectsConversationModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsCreateCall {
28453 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28454 return c
28455 }
28456
28457
28458 func (c *ProjectsConversationModelsCreateCall) Context(ctx context.Context) *ProjectsConversationModelsCreateCall {
28459 c.ctx_ = ctx
28460 return c
28461 }
28462
28463
28464
28465 func (c *ProjectsConversationModelsCreateCall) Header() http.Header {
28466 if c.header_ == nil {
28467 c.header_ = make(http.Header)
28468 }
28469 return c.header_
28470 }
28471
28472 func (c *ProjectsConversationModelsCreateCall) doRequest(alt string) (*http.Response, error) {
28473 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28474 var body io.Reader = nil
28475 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationmodel)
28476 if err != nil {
28477 return nil, err
28478 }
28479 c.urlParams_.Set("alt", alt)
28480 c.urlParams_.Set("prettyPrint", "false")
28481 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
28482 urls += "?" + c.urlParams_.Encode()
28483 req, err := http.NewRequest("POST", urls, body)
28484 if err != nil {
28485 return nil, err
28486 }
28487 req.Header = reqHeaders
28488 googleapi.Expand(req.URL, map[string]string{
28489 "parent": c.parent,
28490 })
28491 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28492 }
28493
28494
28495
28496
28497
28498
28499
28500 func (c *ProjectsConversationModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28501 gensupport.SetOptions(c.urlParams_, opts...)
28502 res, err := c.doRequest("json")
28503 if res != nil && res.StatusCode == http.StatusNotModified {
28504 if res.Body != nil {
28505 res.Body.Close()
28506 }
28507 return nil, gensupport.WrapError(&googleapi.Error{
28508 Code: res.StatusCode,
28509 Header: res.Header,
28510 })
28511 }
28512 if err != nil {
28513 return nil, err
28514 }
28515 defer googleapi.CloseBody(res)
28516 if err := googleapi.CheckResponse(res); err != nil {
28517 return nil, gensupport.WrapError(err)
28518 }
28519 ret := &GoogleLongrunningOperation{
28520 ServerResponse: googleapi.ServerResponse{
28521 Header: res.Header,
28522 HTTPStatusCode: res.StatusCode,
28523 },
28524 }
28525 target := &ret
28526 if err := gensupport.DecodeResponse(target, res); err != nil {
28527 return nil, err
28528 }
28529 return ret, nil
28530 }
28531
28532 type ProjectsConversationModelsDeleteCall struct {
28533 s *Service
28534 name string
28535 urlParams_ gensupport.URLParams
28536 ctx_ context.Context
28537 header_ http.Header
28538 }
28539
28540
28541
28542
28543
28544
28545
28546
28547
28548
28549 func (r *ProjectsConversationModelsService) Delete(name string) *ProjectsConversationModelsDeleteCall {
28550 c := &ProjectsConversationModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28551 c.name = name
28552 return c
28553 }
28554
28555
28556
28557
28558 func (c *ProjectsConversationModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsDeleteCall {
28559 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28560 return c
28561 }
28562
28563
28564 func (c *ProjectsConversationModelsDeleteCall) Context(ctx context.Context) *ProjectsConversationModelsDeleteCall {
28565 c.ctx_ = ctx
28566 return c
28567 }
28568
28569
28570
28571 func (c *ProjectsConversationModelsDeleteCall) Header() http.Header {
28572 if c.header_ == nil {
28573 c.header_ = make(http.Header)
28574 }
28575 return c.header_
28576 }
28577
28578 func (c *ProjectsConversationModelsDeleteCall) doRequest(alt string) (*http.Response, error) {
28579 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28580 var body io.Reader = nil
28581 c.urlParams_.Set("alt", alt)
28582 c.urlParams_.Set("prettyPrint", "false")
28583 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
28584 urls += "?" + c.urlParams_.Encode()
28585 req, err := http.NewRequest("DELETE", urls, body)
28586 if err != nil {
28587 return nil, err
28588 }
28589 req.Header = reqHeaders
28590 googleapi.Expand(req.URL, map[string]string{
28591 "name": c.name,
28592 })
28593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28594 }
28595
28596
28597
28598
28599
28600
28601
28602 func (c *ProjectsConversationModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28603 gensupport.SetOptions(c.urlParams_, opts...)
28604 res, err := c.doRequest("json")
28605 if res != nil && res.StatusCode == http.StatusNotModified {
28606 if res.Body != nil {
28607 res.Body.Close()
28608 }
28609 return nil, gensupport.WrapError(&googleapi.Error{
28610 Code: res.StatusCode,
28611 Header: res.Header,
28612 })
28613 }
28614 if err != nil {
28615 return nil, err
28616 }
28617 defer googleapi.CloseBody(res)
28618 if err := googleapi.CheckResponse(res); err != nil {
28619 return nil, gensupport.WrapError(err)
28620 }
28621 ret := &GoogleLongrunningOperation{
28622 ServerResponse: googleapi.ServerResponse{
28623 Header: res.Header,
28624 HTTPStatusCode: res.StatusCode,
28625 },
28626 }
28627 target := &ret
28628 if err := gensupport.DecodeResponse(target, res); err != nil {
28629 return nil, err
28630 }
28631 return ret, nil
28632 }
28633
28634 type ProjectsConversationModelsDeployCall struct {
28635 s *Service
28636 name string
28637 googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest
28638 urlParams_ gensupport.URLParams
28639 ctx_ context.Context
28640 header_ http.Header
28641 }
28642
28643
28644
28645
28646
28647
28648
28649
28650
28651
28652
28653
28654
28655 func (r *ProjectsConversationModelsService) Deploy(name string, googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest) *ProjectsConversationModelsDeployCall {
28656 c := &ProjectsConversationModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28657 c.name = name
28658 c.googleclouddialogflowv2deployconversationmodelrequest = googleclouddialogflowv2deployconversationmodelrequest
28659 return c
28660 }
28661
28662
28663
28664
28665 func (c *ProjectsConversationModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsDeployCall {
28666 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28667 return c
28668 }
28669
28670
28671 func (c *ProjectsConversationModelsDeployCall) Context(ctx context.Context) *ProjectsConversationModelsDeployCall {
28672 c.ctx_ = ctx
28673 return c
28674 }
28675
28676
28677
28678 func (c *ProjectsConversationModelsDeployCall) Header() http.Header {
28679 if c.header_ == nil {
28680 c.header_ = make(http.Header)
28681 }
28682 return c.header_
28683 }
28684
28685 func (c *ProjectsConversationModelsDeployCall) doRequest(alt string) (*http.Response, error) {
28686 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28687 var body io.Reader = nil
28688 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2deployconversationmodelrequest)
28689 if err != nil {
28690 return nil, err
28691 }
28692 c.urlParams_.Set("alt", alt)
28693 c.urlParams_.Set("prettyPrint", "false")
28694 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:deploy")
28695 urls += "?" + c.urlParams_.Encode()
28696 req, err := http.NewRequest("POST", urls, body)
28697 if err != nil {
28698 return nil, err
28699 }
28700 req.Header = reqHeaders
28701 googleapi.Expand(req.URL, map[string]string{
28702 "name": c.name,
28703 })
28704 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28705 }
28706
28707
28708
28709
28710
28711
28712
28713 func (c *ProjectsConversationModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28714 gensupport.SetOptions(c.urlParams_, opts...)
28715 res, err := c.doRequest("json")
28716 if res != nil && res.StatusCode == http.StatusNotModified {
28717 if res.Body != nil {
28718 res.Body.Close()
28719 }
28720 return nil, gensupport.WrapError(&googleapi.Error{
28721 Code: res.StatusCode,
28722 Header: res.Header,
28723 })
28724 }
28725 if err != nil {
28726 return nil, err
28727 }
28728 defer googleapi.CloseBody(res)
28729 if err := googleapi.CheckResponse(res); err != nil {
28730 return nil, gensupport.WrapError(err)
28731 }
28732 ret := &GoogleLongrunningOperation{
28733 ServerResponse: googleapi.ServerResponse{
28734 Header: res.Header,
28735 HTTPStatusCode: res.StatusCode,
28736 },
28737 }
28738 target := &ret
28739 if err := gensupport.DecodeResponse(target, res); err != nil {
28740 return nil, err
28741 }
28742 return ret, nil
28743 }
28744
28745 type ProjectsConversationModelsGetCall struct {
28746 s *Service
28747 name string
28748 urlParams_ gensupport.URLParams
28749 ifNoneMatch_ string
28750 ctx_ context.Context
28751 header_ http.Header
28752 }
28753
28754
28755
28756
28757
28758 func (r *ProjectsConversationModelsService) Get(name string) *ProjectsConversationModelsGetCall {
28759 c := &ProjectsConversationModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28760 c.name = name
28761 return c
28762 }
28763
28764
28765
28766
28767 func (c *ProjectsConversationModelsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsGetCall {
28768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28769 return c
28770 }
28771
28772
28773
28774
28775 func (c *ProjectsConversationModelsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsGetCall {
28776 c.ifNoneMatch_ = entityTag
28777 return c
28778 }
28779
28780
28781 func (c *ProjectsConversationModelsGetCall) Context(ctx context.Context) *ProjectsConversationModelsGetCall {
28782 c.ctx_ = ctx
28783 return c
28784 }
28785
28786
28787
28788 func (c *ProjectsConversationModelsGetCall) Header() http.Header {
28789 if c.header_ == nil {
28790 c.header_ = make(http.Header)
28791 }
28792 return c.header_
28793 }
28794
28795 func (c *ProjectsConversationModelsGetCall) doRequest(alt string) (*http.Response, error) {
28796 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28797 if c.ifNoneMatch_ != "" {
28798 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28799 }
28800 var body io.Reader = nil
28801 c.urlParams_.Set("alt", alt)
28802 c.urlParams_.Set("prettyPrint", "false")
28803 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
28804 urls += "?" + c.urlParams_.Encode()
28805 req, err := http.NewRequest("GET", urls, body)
28806 if err != nil {
28807 return nil, err
28808 }
28809 req.Header = reqHeaders
28810 googleapi.Expand(req.URL, map[string]string{
28811 "name": c.name,
28812 })
28813 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28814 }
28815
28816
28817
28818
28819
28820
28821
28822 func (c *ProjectsConversationModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModel, error) {
28823 gensupport.SetOptions(c.urlParams_, opts...)
28824 res, err := c.doRequest("json")
28825 if res != nil && res.StatusCode == http.StatusNotModified {
28826 if res.Body != nil {
28827 res.Body.Close()
28828 }
28829 return nil, gensupport.WrapError(&googleapi.Error{
28830 Code: res.StatusCode,
28831 Header: res.Header,
28832 })
28833 }
28834 if err != nil {
28835 return nil, err
28836 }
28837 defer googleapi.CloseBody(res)
28838 if err := googleapi.CheckResponse(res); err != nil {
28839 return nil, gensupport.WrapError(err)
28840 }
28841 ret := &GoogleCloudDialogflowV2ConversationModel{
28842 ServerResponse: googleapi.ServerResponse{
28843 Header: res.Header,
28844 HTTPStatusCode: res.StatusCode,
28845 },
28846 }
28847 target := &ret
28848 if err := gensupport.DecodeResponse(target, res); err != nil {
28849 return nil, err
28850 }
28851 return ret, nil
28852 }
28853
28854 type ProjectsConversationModelsListCall struct {
28855 s *Service
28856 parent string
28857 urlParams_ gensupport.URLParams
28858 ifNoneMatch_ string
28859 ctx_ context.Context
28860 header_ http.Header
28861 }
28862
28863
28864
28865
28866
28867 func (r *ProjectsConversationModelsService) List(parent string) *ProjectsConversationModelsListCall {
28868 c := &ProjectsConversationModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28869 c.parent = parent
28870 return c
28871 }
28872
28873
28874
28875
28876 func (c *ProjectsConversationModelsListCall) PageSize(pageSize int64) *ProjectsConversationModelsListCall {
28877 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28878 return c
28879 }
28880
28881
28882
28883 func (c *ProjectsConversationModelsListCall) PageToken(pageToken string) *ProjectsConversationModelsListCall {
28884 c.urlParams_.Set("pageToken", pageToken)
28885 return c
28886 }
28887
28888
28889
28890
28891 func (c *ProjectsConversationModelsListCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsListCall {
28892 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28893 return c
28894 }
28895
28896
28897
28898
28899 func (c *ProjectsConversationModelsListCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsListCall {
28900 c.ifNoneMatch_ = entityTag
28901 return c
28902 }
28903
28904
28905 func (c *ProjectsConversationModelsListCall) Context(ctx context.Context) *ProjectsConversationModelsListCall {
28906 c.ctx_ = ctx
28907 return c
28908 }
28909
28910
28911
28912 func (c *ProjectsConversationModelsListCall) Header() http.Header {
28913 if c.header_ == nil {
28914 c.header_ = make(http.Header)
28915 }
28916 return c.header_
28917 }
28918
28919 func (c *ProjectsConversationModelsListCall) doRequest(alt string) (*http.Response, error) {
28920 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28921 if c.ifNoneMatch_ != "" {
28922 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28923 }
28924 var body io.Reader = nil
28925 c.urlParams_.Set("alt", alt)
28926 c.urlParams_.Set("prettyPrint", "false")
28927 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
28928 urls += "?" + c.urlParams_.Encode()
28929 req, err := http.NewRequest("GET", urls, body)
28930 if err != nil {
28931 return nil, err
28932 }
28933 req.Header = reqHeaders
28934 googleapi.Expand(req.URL, map[string]string{
28935 "parent": c.parent,
28936 })
28937 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28938 }
28939
28940
28941
28942
28943
28944
28945
28946 func (c *ProjectsConversationModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelsResponse, error) {
28947 gensupport.SetOptions(c.urlParams_, opts...)
28948 res, err := c.doRequest("json")
28949 if res != nil && res.StatusCode == http.StatusNotModified {
28950 if res.Body != nil {
28951 res.Body.Close()
28952 }
28953 return nil, gensupport.WrapError(&googleapi.Error{
28954 Code: res.StatusCode,
28955 Header: res.Header,
28956 })
28957 }
28958 if err != nil {
28959 return nil, err
28960 }
28961 defer googleapi.CloseBody(res)
28962 if err := googleapi.CheckResponse(res); err != nil {
28963 return nil, gensupport.WrapError(err)
28964 }
28965 ret := &GoogleCloudDialogflowV2ListConversationModelsResponse{
28966 ServerResponse: googleapi.ServerResponse{
28967 Header: res.Header,
28968 HTTPStatusCode: res.StatusCode,
28969 },
28970 }
28971 target := &ret
28972 if err := gensupport.DecodeResponse(target, res); err != nil {
28973 return nil, err
28974 }
28975 return ret, nil
28976 }
28977
28978
28979
28980
28981 func (c *ProjectsConversationModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelsResponse) error) error {
28982 c.ctx_ = ctx
28983 defer c.PageToken(c.urlParams_.Get("pageToken"))
28984 for {
28985 x, err := c.Do()
28986 if err != nil {
28987 return err
28988 }
28989 if err := f(x); err != nil {
28990 return err
28991 }
28992 if x.NextPageToken == "" {
28993 return nil
28994 }
28995 c.PageToken(x.NextPageToken)
28996 }
28997 }
28998
28999 type ProjectsConversationModelsUndeployCall struct {
29000 s *Service
29001 name string
29002 googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest
29003 urlParams_ gensupport.URLParams
29004 ctx_ context.Context
29005 header_ http.Header
29006 }
29007
29008
29009
29010
29011
29012
29013
29014
29015
29016
29017
29018
29019
29020 func (r *ProjectsConversationModelsService) Undeploy(name string, googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest) *ProjectsConversationModelsUndeployCall {
29021 c := &ProjectsConversationModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29022 c.name = name
29023 c.googleclouddialogflowv2undeployconversationmodelrequest = googleclouddialogflowv2undeployconversationmodelrequest
29024 return c
29025 }
29026
29027
29028
29029
29030 func (c *ProjectsConversationModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsUndeployCall {
29031 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29032 return c
29033 }
29034
29035
29036 func (c *ProjectsConversationModelsUndeployCall) Context(ctx context.Context) *ProjectsConversationModelsUndeployCall {
29037 c.ctx_ = ctx
29038 return c
29039 }
29040
29041
29042
29043 func (c *ProjectsConversationModelsUndeployCall) Header() http.Header {
29044 if c.header_ == nil {
29045 c.header_ = make(http.Header)
29046 }
29047 return c.header_
29048 }
29049
29050 func (c *ProjectsConversationModelsUndeployCall) doRequest(alt string) (*http.Response, error) {
29051 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29052 var body io.Reader = nil
29053 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2undeployconversationmodelrequest)
29054 if err != nil {
29055 return nil, err
29056 }
29057 c.urlParams_.Set("alt", alt)
29058 c.urlParams_.Set("prettyPrint", "false")
29059 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undeploy")
29060 urls += "?" + c.urlParams_.Encode()
29061 req, err := http.NewRequest("POST", urls, body)
29062 if err != nil {
29063 return nil, err
29064 }
29065 req.Header = reqHeaders
29066 googleapi.Expand(req.URL, map[string]string{
29067 "name": c.name,
29068 })
29069 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29070 }
29071
29072
29073
29074
29075
29076
29077
29078 func (c *ProjectsConversationModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29079 gensupport.SetOptions(c.urlParams_, opts...)
29080 res, err := c.doRequest("json")
29081 if res != nil && res.StatusCode == http.StatusNotModified {
29082 if res.Body != nil {
29083 res.Body.Close()
29084 }
29085 return nil, gensupport.WrapError(&googleapi.Error{
29086 Code: res.StatusCode,
29087 Header: res.Header,
29088 })
29089 }
29090 if err != nil {
29091 return nil, err
29092 }
29093 defer googleapi.CloseBody(res)
29094 if err := googleapi.CheckResponse(res); err != nil {
29095 return nil, gensupport.WrapError(err)
29096 }
29097 ret := &GoogleLongrunningOperation{
29098 ServerResponse: googleapi.ServerResponse{
29099 Header: res.Header,
29100 HTTPStatusCode: res.StatusCode,
29101 },
29102 }
29103 target := &ret
29104 if err := gensupport.DecodeResponse(target, res); err != nil {
29105 return nil, err
29106 }
29107 return ret, nil
29108 }
29109
29110 type ProjectsConversationModelsEvaluationsGetCall struct {
29111 s *Service
29112 name string
29113 urlParams_ gensupport.URLParams
29114 ifNoneMatch_ string
29115 ctx_ context.Context
29116 header_ http.Header
29117 }
29118
29119
29120
29121
29122
29123 func (r *ProjectsConversationModelsEvaluationsService) Get(name string) *ProjectsConversationModelsEvaluationsGetCall {
29124 c := &ProjectsConversationModelsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29125 c.name = name
29126 return c
29127 }
29128
29129
29130
29131
29132 func (c *ProjectsConversationModelsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsEvaluationsGetCall {
29133 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29134 return c
29135 }
29136
29137
29138
29139
29140 func (c *ProjectsConversationModelsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsEvaluationsGetCall {
29141 c.ifNoneMatch_ = entityTag
29142 return c
29143 }
29144
29145
29146 func (c *ProjectsConversationModelsEvaluationsGetCall) Context(ctx context.Context) *ProjectsConversationModelsEvaluationsGetCall {
29147 c.ctx_ = ctx
29148 return c
29149 }
29150
29151
29152
29153 func (c *ProjectsConversationModelsEvaluationsGetCall) Header() http.Header {
29154 if c.header_ == nil {
29155 c.header_ = make(http.Header)
29156 }
29157 return c.header_
29158 }
29159
29160 func (c *ProjectsConversationModelsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
29161 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29162 if c.ifNoneMatch_ != "" {
29163 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29164 }
29165 var body io.Reader = nil
29166 c.urlParams_.Set("alt", alt)
29167 c.urlParams_.Set("prettyPrint", "false")
29168 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
29169 urls += "?" + c.urlParams_.Encode()
29170 req, err := http.NewRequest("GET", urls, body)
29171 if err != nil {
29172 return nil, err
29173 }
29174 req.Header = reqHeaders
29175 googleapi.Expand(req.URL, map[string]string{
29176 "name": c.name,
29177 })
29178 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29179 }
29180
29181
29182
29183
29184
29185
29186
29187 func (c *ProjectsConversationModelsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModelEvaluation, error) {
29188 gensupport.SetOptions(c.urlParams_, opts...)
29189 res, err := c.doRequest("json")
29190 if res != nil && res.StatusCode == http.StatusNotModified {
29191 if res.Body != nil {
29192 res.Body.Close()
29193 }
29194 return nil, gensupport.WrapError(&googleapi.Error{
29195 Code: res.StatusCode,
29196 Header: res.Header,
29197 })
29198 }
29199 if err != nil {
29200 return nil, err
29201 }
29202 defer googleapi.CloseBody(res)
29203 if err := googleapi.CheckResponse(res); err != nil {
29204 return nil, gensupport.WrapError(err)
29205 }
29206 ret := &GoogleCloudDialogflowV2ConversationModelEvaluation{
29207 ServerResponse: googleapi.ServerResponse{
29208 Header: res.Header,
29209 HTTPStatusCode: res.StatusCode,
29210 },
29211 }
29212 target := &ret
29213 if err := gensupport.DecodeResponse(target, res); err != nil {
29214 return nil, err
29215 }
29216 return ret, nil
29217 }
29218
29219 type ProjectsConversationModelsEvaluationsListCall struct {
29220 s *Service
29221 parent string
29222 urlParams_ gensupport.URLParams
29223 ifNoneMatch_ string
29224 ctx_ context.Context
29225 header_ http.Header
29226 }
29227
29228
29229
29230
29231
29232 func (r *ProjectsConversationModelsEvaluationsService) List(parent string) *ProjectsConversationModelsEvaluationsListCall {
29233 c := &ProjectsConversationModelsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29234 c.parent = parent
29235 return c
29236 }
29237
29238
29239
29240 func (c *ProjectsConversationModelsEvaluationsListCall) PageSize(pageSize int64) *ProjectsConversationModelsEvaluationsListCall {
29241 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29242 return c
29243 }
29244
29245
29246
29247 func (c *ProjectsConversationModelsEvaluationsListCall) PageToken(pageToken string) *ProjectsConversationModelsEvaluationsListCall {
29248 c.urlParams_.Set("pageToken", pageToken)
29249 return c
29250 }
29251
29252
29253
29254
29255 func (c *ProjectsConversationModelsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationModelsEvaluationsListCall {
29256 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29257 return c
29258 }
29259
29260
29261
29262
29263 func (c *ProjectsConversationModelsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationModelsEvaluationsListCall {
29264 c.ifNoneMatch_ = entityTag
29265 return c
29266 }
29267
29268
29269 func (c *ProjectsConversationModelsEvaluationsListCall) Context(ctx context.Context) *ProjectsConversationModelsEvaluationsListCall {
29270 c.ctx_ = ctx
29271 return c
29272 }
29273
29274
29275
29276 func (c *ProjectsConversationModelsEvaluationsListCall) Header() http.Header {
29277 if c.header_ == nil {
29278 c.header_ = make(http.Header)
29279 }
29280 return c.header_
29281 }
29282
29283 func (c *ProjectsConversationModelsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
29284 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29285 if c.ifNoneMatch_ != "" {
29286 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29287 }
29288 var body io.Reader = nil
29289 c.urlParams_.Set("alt", alt)
29290 c.urlParams_.Set("prettyPrint", "false")
29291 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/evaluations")
29292 urls += "?" + c.urlParams_.Encode()
29293 req, err := http.NewRequest("GET", urls, body)
29294 if err != nil {
29295 return nil, err
29296 }
29297 req.Header = reqHeaders
29298 googleapi.Expand(req.URL, map[string]string{
29299 "parent": c.parent,
29300 })
29301 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29302 }
29303
29304
29305
29306
29307
29308
29309
29310 func (c *ProjectsConversationModelsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse, error) {
29311 gensupport.SetOptions(c.urlParams_, opts...)
29312 res, err := c.doRequest("json")
29313 if res != nil && res.StatusCode == http.StatusNotModified {
29314 if res.Body != nil {
29315 res.Body.Close()
29316 }
29317 return nil, gensupport.WrapError(&googleapi.Error{
29318 Code: res.StatusCode,
29319 Header: res.Header,
29320 })
29321 }
29322 if err != nil {
29323 return nil, err
29324 }
29325 defer googleapi.CloseBody(res)
29326 if err := googleapi.CheckResponse(res); err != nil {
29327 return nil, gensupport.WrapError(err)
29328 }
29329 ret := &GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse{
29330 ServerResponse: googleapi.ServerResponse{
29331 Header: res.Header,
29332 HTTPStatusCode: res.StatusCode,
29333 },
29334 }
29335 target := &ret
29336 if err := gensupport.DecodeResponse(target, res); err != nil {
29337 return nil, err
29338 }
29339 return ret, nil
29340 }
29341
29342
29343
29344
29345 func (c *ProjectsConversationModelsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse) error) error {
29346 c.ctx_ = ctx
29347 defer c.PageToken(c.urlParams_.Get("pageToken"))
29348 for {
29349 x, err := c.Do()
29350 if err != nil {
29351 return err
29352 }
29353 if err := f(x); err != nil {
29354 return err
29355 }
29356 if x.NextPageToken == "" {
29357 return nil
29358 }
29359 c.PageToken(x.NextPageToken)
29360 }
29361 }
29362
29363 type ProjectsConversationProfilesClearSuggestionFeatureConfigCall struct {
29364 s *Service
29365 conversationProfile string
29366 googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
29367 urlParams_ gensupport.URLParams
29368 ctx_ context.Context
29369 header_ http.Header
29370 }
29371
29372
29373
29374
29375
29376
29377
29378
29379
29380
29381
29382
29383 func (r *ProjectsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
29384 c := &ProjectsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29385 c.conversationProfile = conversationProfile
29386 c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest = googleclouddialogflowv2clearsuggestionfeatureconfigrequest
29387 return c
29388 }
29389
29390
29391
29392
29393 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
29394 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29395 return c
29396 }
29397
29398
29399 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
29400 c.ctx_ = ctx
29401 return c
29402 }
29403
29404
29405
29406 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
29407 if c.header_ == nil {
29408 c.header_ = make(http.Header)
29409 }
29410 return c.header_
29411 }
29412
29413 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
29414 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29415 var body io.Reader = nil
29416 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest)
29417 if err != nil {
29418 return nil, err
29419 }
29420 c.urlParams_.Set("alt", alt)
29421 c.urlParams_.Set("prettyPrint", "false")
29422 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:clearSuggestionFeatureConfig")
29423 urls += "?" + c.urlParams_.Encode()
29424 req, err := http.NewRequest("POST", urls, body)
29425 if err != nil {
29426 return nil, err
29427 }
29428 req.Header = reqHeaders
29429 googleapi.Expand(req.URL, map[string]string{
29430 "conversationProfile": c.conversationProfile,
29431 })
29432 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29433 }
29434
29435
29436
29437
29438
29439
29440
29441 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29442 gensupport.SetOptions(c.urlParams_, opts...)
29443 res, err := c.doRequest("json")
29444 if res != nil && res.StatusCode == http.StatusNotModified {
29445 if res.Body != nil {
29446 res.Body.Close()
29447 }
29448 return nil, gensupport.WrapError(&googleapi.Error{
29449 Code: res.StatusCode,
29450 Header: res.Header,
29451 })
29452 }
29453 if err != nil {
29454 return nil, err
29455 }
29456 defer googleapi.CloseBody(res)
29457 if err := googleapi.CheckResponse(res); err != nil {
29458 return nil, gensupport.WrapError(err)
29459 }
29460 ret := &GoogleLongrunningOperation{
29461 ServerResponse: googleapi.ServerResponse{
29462 Header: res.Header,
29463 HTTPStatusCode: res.StatusCode,
29464 },
29465 }
29466 target := &ret
29467 if err := gensupport.DecodeResponse(target, res); err != nil {
29468 return nil, err
29469 }
29470 return ret, nil
29471 }
29472
29473 type ProjectsConversationProfilesCreateCall struct {
29474 s *Service
29475 parent string
29476 googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
29477 urlParams_ gensupport.URLParams
29478 ctx_ context.Context
29479 header_ http.Header
29480 }
29481
29482
29483
29484
29485
29486
29487
29488
29489 func (r *ProjectsConversationProfilesService) Create(parent string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsConversationProfilesCreateCall {
29490 c := &ProjectsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29491 c.parent = parent
29492 c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
29493 return c
29494 }
29495
29496
29497
29498
29499 func (c *ProjectsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesCreateCall {
29500 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29501 return c
29502 }
29503
29504
29505 func (c *ProjectsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsConversationProfilesCreateCall {
29506 c.ctx_ = ctx
29507 return c
29508 }
29509
29510
29511
29512 func (c *ProjectsConversationProfilesCreateCall) Header() http.Header {
29513 if c.header_ == nil {
29514 c.header_ = make(http.Header)
29515 }
29516 return c.header_
29517 }
29518
29519 func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
29520 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29521 var body io.Reader = nil
29522 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
29523 if err != nil {
29524 return nil, err
29525 }
29526 c.urlParams_.Set("alt", alt)
29527 c.urlParams_.Set("prettyPrint", "false")
29528 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
29529 urls += "?" + c.urlParams_.Encode()
29530 req, err := http.NewRequest("POST", urls, body)
29531 if err != nil {
29532 return nil, err
29533 }
29534 req.Header = reqHeaders
29535 googleapi.Expand(req.URL, map[string]string{
29536 "parent": c.parent,
29537 })
29538 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29539 }
29540
29541
29542
29543
29544
29545
29546
29547 func (c *ProjectsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
29548 gensupport.SetOptions(c.urlParams_, opts...)
29549 res, err := c.doRequest("json")
29550 if res != nil && res.StatusCode == http.StatusNotModified {
29551 if res.Body != nil {
29552 res.Body.Close()
29553 }
29554 return nil, gensupport.WrapError(&googleapi.Error{
29555 Code: res.StatusCode,
29556 Header: res.Header,
29557 })
29558 }
29559 if err != nil {
29560 return nil, err
29561 }
29562 defer googleapi.CloseBody(res)
29563 if err := googleapi.CheckResponse(res); err != nil {
29564 return nil, gensupport.WrapError(err)
29565 }
29566 ret := &GoogleCloudDialogflowV2ConversationProfile{
29567 ServerResponse: googleapi.ServerResponse{
29568 Header: res.Header,
29569 HTTPStatusCode: res.StatusCode,
29570 },
29571 }
29572 target := &ret
29573 if err := gensupport.DecodeResponse(target, res); err != nil {
29574 return nil, err
29575 }
29576 return ret, nil
29577 }
29578
29579 type ProjectsConversationProfilesDeleteCall struct {
29580 s *Service
29581 name string
29582 urlParams_ gensupport.URLParams
29583 ctx_ context.Context
29584 header_ http.Header
29585 }
29586
29587
29588
29589
29590
29591 func (r *ProjectsConversationProfilesService) Delete(name string) *ProjectsConversationProfilesDeleteCall {
29592 c := &ProjectsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29593 c.name = name
29594 return c
29595 }
29596
29597
29598
29599
29600 func (c *ProjectsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesDeleteCall {
29601 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29602 return c
29603 }
29604
29605
29606 func (c *ProjectsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsConversationProfilesDeleteCall {
29607 c.ctx_ = ctx
29608 return c
29609 }
29610
29611
29612
29613 func (c *ProjectsConversationProfilesDeleteCall) Header() http.Header {
29614 if c.header_ == nil {
29615 c.header_ = make(http.Header)
29616 }
29617 return c.header_
29618 }
29619
29620 func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
29621 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29622 var body io.Reader = nil
29623 c.urlParams_.Set("alt", alt)
29624 c.urlParams_.Set("prettyPrint", "false")
29625 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
29626 urls += "?" + c.urlParams_.Encode()
29627 req, err := http.NewRequest("DELETE", urls, body)
29628 if err != nil {
29629 return nil, err
29630 }
29631 req.Header = reqHeaders
29632 googleapi.Expand(req.URL, map[string]string{
29633 "name": c.name,
29634 })
29635 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29636 }
29637
29638
29639
29640
29641
29642
29643
29644 func (c *ProjectsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29645 gensupport.SetOptions(c.urlParams_, opts...)
29646 res, err := c.doRequest("json")
29647 if res != nil && res.StatusCode == http.StatusNotModified {
29648 if res.Body != nil {
29649 res.Body.Close()
29650 }
29651 return nil, gensupport.WrapError(&googleapi.Error{
29652 Code: res.StatusCode,
29653 Header: res.Header,
29654 })
29655 }
29656 if err != nil {
29657 return nil, err
29658 }
29659 defer googleapi.CloseBody(res)
29660 if err := googleapi.CheckResponse(res); err != nil {
29661 return nil, gensupport.WrapError(err)
29662 }
29663 ret := &GoogleProtobufEmpty{
29664 ServerResponse: googleapi.ServerResponse{
29665 Header: res.Header,
29666 HTTPStatusCode: res.StatusCode,
29667 },
29668 }
29669 target := &ret
29670 if err := gensupport.DecodeResponse(target, res); err != nil {
29671 return nil, err
29672 }
29673 return ret, nil
29674 }
29675
29676 type ProjectsConversationProfilesGetCall struct {
29677 s *Service
29678 name string
29679 urlParams_ gensupport.URLParams
29680 ifNoneMatch_ string
29681 ctx_ context.Context
29682 header_ http.Header
29683 }
29684
29685
29686
29687
29688
29689 func (r *ProjectsConversationProfilesService) Get(name string) *ProjectsConversationProfilesGetCall {
29690 c := &ProjectsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29691 c.name = name
29692 return c
29693 }
29694
29695
29696
29697
29698 func (c *ProjectsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesGetCall {
29699 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29700 return c
29701 }
29702
29703
29704
29705
29706 func (c *ProjectsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesGetCall {
29707 c.ifNoneMatch_ = entityTag
29708 return c
29709 }
29710
29711
29712 func (c *ProjectsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsConversationProfilesGetCall {
29713 c.ctx_ = ctx
29714 return c
29715 }
29716
29717
29718
29719 func (c *ProjectsConversationProfilesGetCall) Header() http.Header {
29720 if c.header_ == nil {
29721 c.header_ = make(http.Header)
29722 }
29723 return c.header_
29724 }
29725
29726 func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
29727 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29728 if c.ifNoneMatch_ != "" {
29729 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29730 }
29731 var body io.Reader = nil
29732 c.urlParams_.Set("alt", alt)
29733 c.urlParams_.Set("prettyPrint", "false")
29734 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
29735 urls += "?" + c.urlParams_.Encode()
29736 req, err := http.NewRequest("GET", urls, body)
29737 if err != nil {
29738 return nil, err
29739 }
29740 req.Header = reqHeaders
29741 googleapi.Expand(req.URL, map[string]string{
29742 "name": c.name,
29743 })
29744 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29745 }
29746
29747
29748
29749
29750
29751
29752
29753 func (c *ProjectsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
29754 gensupport.SetOptions(c.urlParams_, opts...)
29755 res, err := c.doRequest("json")
29756 if res != nil && res.StatusCode == http.StatusNotModified {
29757 if res.Body != nil {
29758 res.Body.Close()
29759 }
29760 return nil, gensupport.WrapError(&googleapi.Error{
29761 Code: res.StatusCode,
29762 Header: res.Header,
29763 })
29764 }
29765 if err != nil {
29766 return nil, err
29767 }
29768 defer googleapi.CloseBody(res)
29769 if err := googleapi.CheckResponse(res); err != nil {
29770 return nil, gensupport.WrapError(err)
29771 }
29772 ret := &GoogleCloudDialogflowV2ConversationProfile{
29773 ServerResponse: googleapi.ServerResponse{
29774 Header: res.Header,
29775 HTTPStatusCode: res.StatusCode,
29776 },
29777 }
29778 target := &ret
29779 if err := gensupport.DecodeResponse(target, res); err != nil {
29780 return nil, err
29781 }
29782 return ret, nil
29783 }
29784
29785 type ProjectsConversationProfilesListCall struct {
29786 s *Service
29787 parent string
29788 urlParams_ gensupport.URLParams
29789 ifNoneMatch_ string
29790 ctx_ context.Context
29791 header_ http.Header
29792 }
29793
29794
29795
29796
29797
29798
29799 func (r *ProjectsConversationProfilesService) List(parent string) *ProjectsConversationProfilesListCall {
29800 c := &ProjectsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29801 c.parent = parent
29802 return c
29803 }
29804
29805
29806
29807 func (c *ProjectsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsConversationProfilesListCall {
29808 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29809 return c
29810 }
29811
29812
29813
29814 func (c *ProjectsConversationProfilesListCall) PageToken(pageToken string) *ProjectsConversationProfilesListCall {
29815 c.urlParams_.Set("pageToken", pageToken)
29816 return c
29817 }
29818
29819
29820
29821
29822 func (c *ProjectsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesListCall {
29823 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29824 return c
29825 }
29826
29827
29828
29829
29830 func (c *ProjectsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesListCall {
29831 c.ifNoneMatch_ = entityTag
29832 return c
29833 }
29834
29835
29836 func (c *ProjectsConversationProfilesListCall) Context(ctx context.Context) *ProjectsConversationProfilesListCall {
29837 c.ctx_ = ctx
29838 return c
29839 }
29840
29841
29842
29843 func (c *ProjectsConversationProfilesListCall) Header() http.Header {
29844 if c.header_ == nil {
29845 c.header_ = make(http.Header)
29846 }
29847 return c.header_
29848 }
29849
29850 func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
29851 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29852 if c.ifNoneMatch_ != "" {
29853 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29854 }
29855 var body io.Reader = nil
29856 c.urlParams_.Set("alt", alt)
29857 c.urlParams_.Set("prettyPrint", "false")
29858 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
29859 urls += "?" + c.urlParams_.Encode()
29860 req, err := http.NewRequest("GET", urls, body)
29861 if err != nil {
29862 return nil, err
29863 }
29864 req.Header = reqHeaders
29865 googleapi.Expand(req.URL, map[string]string{
29866 "parent": c.parent,
29867 })
29868 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29869 }
29870
29871
29872
29873
29874
29875
29876
29877 func (c *ProjectsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationProfilesResponse, error) {
29878 gensupport.SetOptions(c.urlParams_, opts...)
29879 res, err := c.doRequest("json")
29880 if res != nil && res.StatusCode == http.StatusNotModified {
29881 if res.Body != nil {
29882 res.Body.Close()
29883 }
29884 return nil, gensupport.WrapError(&googleapi.Error{
29885 Code: res.StatusCode,
29886 Header: res.Header,
29887 })
29888 }
29889 if err != nil {
29890 return nil, err
29891 }
29892 defer googleapi.CloseBody(res)
29893 if err := googleapi.CheckResponse(res); err != nil {
29894 return nil, gensupport.WrapError(err)
29895 }
29896 ret := &GoogleCloudDialogflowV2ListConversationProfilesResponse{
29897 ServerResponse: googleapi.ServerResponse{
29898 Header: res.Header,
29899 HTTPStatusCode: res.StatusCode,
29900 },
29901 }
29902 target := &ret
29903 if err := gensupport.DecodeResponse(target, res); err != nil {
29904 return nil, err
29905 }
29906 return ret, nil
29907 }
29908
29909
29910
29911
29912 func (c *ProjectsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationProfilesResponse) error) error {
29913 c.ctx_ = ctx
29914 defer c.PageToken(c.urlParams_.Get("pageToken"))
29915 for {
29916 x, err := c.Do()
29917 if err != nil {
29918 return err
29919 }
29920 if err := f(x); err != nil {
29921 return err
29922 }
29923 if x.NextPageToken == "" {
29924 return nil
29925 }
29926 c.PageToken(x.NextPageToken)
29927 }
29928 }
29929
29930 type ProjectsConversationProfilesPatchCall struct {
29931 s *Service
29932 nameid string
29933 googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
29934 urlParams_ gensupport.URLParams
29935 ctx_ context.Context
29936 header_ http.Header
29937 }
29938
29939
29940
29941
29942
29943
29944
29945
29946 func (r *ProjectsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsConversationProfilesPatchCall {
29947 c := &ProjectsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29948 c.nameid = nameid
29949 c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
29950 return c
29951 }
29952
29953
29954
29955 func (c *ProjectsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsConversationProfilesPatchCall {
29956 c.urlParams_.Set("updateMask", updateMask)
29957 return c
29958 }
29959
29960
29961
29962
29963 func (c *ProjectsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesPatchCall {
29964 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29965 return c
29966 }
29967
29968
29969 func (c *ProjectsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsConversationProfilesPatchCall {
29970 c.ctx_ = ctx
29971 return c
29972 }
29973
29974
29975
29976 func (c *ProjectsConversationProfilesPatchCall) Header() http.Header {
29977 if c.header_ == nil {
29978 c.header_ = make(http.Header)
29979 }
29980 return c.header_
29981 }
29982
29983 func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
29984 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29985 var body io.Reader = nil
29986 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
29987 if err != nil {
29988 return nil, err
29989 }
29990 c.urlParams_.Set("alt", alt)
29991 c.urlParams_.Set("prettyPrint", "false")
29992 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
29993 urls += "?" + c.urlParams_.Encode()
29994 req, err := http.NewRequest("PATCH", urls, body)
29995 if err != nil {
29996 return nil, err
29997 }
29998 req.Header = reqHeaders
29999 googleapi.Expand(req.URL, map[string]string{
30000 "name": c.nameid,
30001 })
30002 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30003 }
30004
30005
30006
30007
30008
30009
30010
30011 func (c *ProjectsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
30012 gensupport.SetOptions(c.urlParams_, opts...)
30013 res, err := c.doRequest("json")
30014 if res != nil && res.StatusCode == http.StatusNotModified {
30015 if res.Body != nil {
30016 res.Body.Close()
30017 }
30018 return nil, gensupport.WrapError(&googleapi.Error{
30019 Code: res.StatusCode,
30020 Header: res.Header,
30021 })
30022 }
30023 if err != nil {
30024 return nil, err
30025 }
30026 defer googleapi.CloseBody(res)
30027 if err := googleapi.CheckResponse(res); err != nil {
30028 return nil, gensupport.WrapError(err)
30029 }
30030 ret := &GoogleCloudDialogflowV2ConversationProfile{
30031 ServerResponse: googleapi.ServerResponse{
30032 Header: res.Header,
30033 HTTPStatusCode: res.StatusCode,
30034 },
30035 }
30036 target := &ret
30037 if err := gensupport.DecodeResponse(target, res); err != nil {
30038 return nil, err
30039 }
30040 return ret, nil
30041 }
30042
30043 type ProjectsConversationProfilesSetSuggestionFeatureConfigCall struct {
30044 s *Service
30045 conversationProfile string
30046 googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
30047 urlParams_ gensupport.URLParams
30048 ctx_ context.Context
30049 header_ http.Header
30050 }
30051
30052
30053
30054
30055
30056
30057
30058
30059
30060
30061
30062
30063
30064
30065
30066
30067
30068 func (r *ProjectsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
30069 c := &ProjectsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30070 c.conversationProfile = conversationProfile
30071 c.googleclouddialogflowv2setsuggestionfeatureconfigrequest = googleclouddialogflowv2setsuggestionfeatureconfigrequest
30072 return c
30073 }
30074
30075
30076
30077
30078 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
30079 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30080 return c
30081 }
30082
30083
30084 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
30085 c.ctx_ = ctx
30086 return c
30087 }
30088
30089
30090
30091 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
30092 if c.header_ == nil {
30093 c.header_ = make(http.Header)
30094 }
30095 return c.header_
30096 }
30097
30098 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
30099 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30100 var body io.Reader = nil
30101 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2setsuggestionfeatureconfigrequest)
30102 if err != nil {
30103 return nil, err
30104 }
30105 c.urlParams_.Set("alt", alt)
30106 c.urlParams_.Set("prettyPrint", "false")
30107 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:setSuggestionFeatureConfig")
30108 urls += "?" + c.urlParams_.Encode()
30109 req, err := http.NewRequest("POST", urls, body)
30110 if err != nil {
30111 return nil, err
30112 }
30113 req.Header = reqHeaders
30114 googleapi.Expand(req.URL, map[string]string{
30115 "conversationProfile": c.conversationProfile,
30116 })
30117 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30118 }
30119
30120
30121
30122
30123
30124
30125
30126 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30127 gensupport.SetOptions(c.urlParams_, opts...)
30128 res, err := c.doRequest("json")
30129 if res != nil && res.StatusCode == http.StatusNotModified {
30130 if res.Body != nil {
30131 res.Body.Close()
30132 }
30133 return nil, gensupport.WrapError(&googleapi.Error{
30134 Code: res.StatusCode,
30135 Header: res.Header,
30136 })
30137 }
30138 if err != nil {
30139 return nil, err
30140 }
30141 defer googleapi.CloseBody(res)
30142 if err := googleapi.CheckResponse(res); err != nil {
30143 return nil, gensupport.WrapError(err)
30144 }
30145 ret := &GoogleLongrunningOperation{
30146 ServerResponse: googleapi.ServerResponse{
30147 Header: res.Header,
30148 HTTPStatusCode: res.StatusCode,
30149 },
30150 }
30151 target := &ret
30152 if err := gensupport.DecodeResponse(target, res); err != nil {
30153 return nil, err
30154 }
30155 return ret, nil
30156 }
30157
30158 type ProjectsConversationsCompleteCall struct {
30159 s *Service
30160 nameid string
30161 googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest
30162 urlParams_ gensupport.URLParams
30163 ctx_ context.Context
30164 header_ http.Header
30165 }
30166
30167
30168
30169
30170
30171
30172 func (r *ProjectsConversationsService) Complete(nameid string, googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest) *ProjectsConversationsCompleteCall {
30173 c := &ProjectsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30174 c.nameid = nameid
30175 c.googleclouddialogflowv2completeconversationrequest = googleclouddialogflowv2completeconversationrequest
30176 return c
30177 }
30178
30179
30180
30181
30182 func (c *ProjectsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsConversationsCompleteCall {
30183 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30184 return c
30185 }
30186
30187
30188 func (c *ProjectsConversationsCompleteCall) Context(ctx context.Context) *ProjectsConversationsCompleteCall {
30189 c.ctx_ = ctx
30190 return c
30191 }
30192
30193
30194
30195 func (c *ProjectsConversationsCompleteCall) Header() http.Header {
30196 if c.header_ == nil {
30197 c.header_ = make(http.Header)
30198 }
30199 return c.header_
30200 }
30201
30202 func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
30203 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30204 var body io.Reader = nil
30205 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2completeconversationrequest)
30206 if err != nil {
30207 return nil, err
30208 }
30209 c.urlParams_.Set("alt", alt)
30210 c.urlParams_.Set("prettyPrint", "false")
30211 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:complete")
30212 urls += "?" + c.urlParams_.Encode()
30213 req, err := http.NewRequest("POST", urls, body)
30214 if err != nil {
30215 return nil, err
30216 }
30217 req.Header = reqHeaders
30218 googleapi.Expand(req.URL, map[string]string{
30219 "name": c.nameid,
30220 })
30221 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30222 }
30223
30224
30225
30226
30227
30228
30229
30230 func (c *ProjectsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
30231 gensupport.SetOptions(c.urlParams_, opts...)
30232 res, err := c.doRequest("json")
30233 if res != nil && res.StatusCode == http.StatusNotModified {
30234 if res.Body != nil {
30235 res.Body.Close()
30236 }
30237 return nil, gensupport.WrapError(&googleapi.Error{
30238 Code: res.StatusCode,
30239 Header: res.Header,
30240 })
30241 }
30242 if err != nil {
30243 return nil, err
30244 }
30245 defer googleapi.CloseBody(res)
30246 if err := googleapi.CheckResponse(res); err != nil {
30247 return nil, gensupport.WrapError(err)
30248 }
30249 ret := &GoogleCloudDialogflowV2Conversation{
30250 ServerResponse: googleapi.ServerResponse{
30251 Header: res.Header,
30252 HTTPStatusCode: res.StatusCode,
30253 },
30254 }
30255 target := &ret
30256 if err := gensupport.DecodeResponse(target, res); err != nil {
30257 return nil, err
30258 }
30259 return ret, nil
30260 }
30261
30262 type ProjectsConversationsCreateCall struct {
30263 s *Service
30264 parentid string
30265 googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation
30266 urlParams_ gensupport.URLParams
30267 ctx_ context.Context
30268 header_ http.Header
30269 }
30270
30271
30272
30273
30274
30275
30276
30277
30278
30279
30280
30281
30282
30283
30284
30285 func (r *ProjectsConversationsService) Create(parentid string, googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation) *ProjectsConversationsCreateCall {
30286 c := &ProjectsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30287 c.parentid = parentid
30288 c.googleclouddialogflowv2conversation = googleclouddialogflowv2conversation
30289 return c
30290 }
30291
30292
30293
30294
30295
30296
30297
30298
30299
30300 func (c *ProjectsConversationsCreateCall) ConversationId(conversationId string) *ProjectsConversationsCreateCall {
30301 c.urlParams_.Set("conversationId", conversationId)
30302 return c
30303 }
30304
30305
30306
30307
30308 func (c *ProjectsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsCreateCall {
30309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30310 return c
30311 }
30312
30313
30314 func (c *ProjectsConversationsCreateCall) Context(ctx context.Context) *ProjectsConversationsCreateCall {
30315 c.ctx_ = ctx
30316 return c
30317 }
30318
30319
30320
30321 func (c *ProjectsConversationsCreateCall) Header() http.Header {
30322 if c.header_ == nil {
30323 c.header_ = make(http.Header)
30324 }
30325 return c.header_
30326 }
30327
30328 func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
30329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30330 var body io.Reader = nil
30331 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversation)
30332 if err != nil {
30333 return nil, err
30334 }
30335 c.urlParams_.Set("alt", alt)
30336 c.urlParams_.Set("prettyPrint", "false")
30337 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
30338 urls += "?" + c.urlParams_.Encode()
30339 req, err := http.NewRequest("POST", urls, body)
30340 if err != nil {
30341 return nil, err
30342 }
30343 req.Header = reqHeaders
30344 googleapi.Expand(req.URL, map[string]string{
30345 "parent": c.parentid,
30346 })
30347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30348 }
30349
30350
30351
30352
30353
30354
30355
30356 func (c *ProjectsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
30357 gensupport.SetOptions(c.urlParams_, opts...)
30358 res, err := c.doRequest("json")
30359 if res != nil && res.StatusCode == http.StatusNotModified {
30360 if res.Body != nil {
30361 res.Body.Close()
30362 }
30363 return nil, gensupport.WrapError(&googleapi.Error{
30364 Code: res.StatusCode,
30365 Header: res.Header,
30366 })
30367 }
30368 if err != nil {
30369 return nil, err
30370 }
30371 defer googleapi.CloseBody(res)
30372 if err := googleapi.CheckResponse(res); err != nil {
30373 return nil, gensupport.WrapError(err)
30374 }
30375 ret := &GoogleCloudDialogflowV2Conversation{
30376 ServerResponse: googleapi.ServerResponse{
30377 Header: res.Header,
30378 HTTPStatusCode: res.StatusCode,
30379 },
30380 }
30381 target := &ret
30382 if err := gensupport.DecodeResponse(target, res); err != nil {
30383 return nil, err
30384 }
30385 return ret, nil
30386 }
30387
30388 type ProjectsConversationsGetCall struct {
30389 s *Service
30390 name string
30391 urlParams_ gensupport.URLParams
30392 ifNoneMatch_ string
30393 ctx_ context.Context
30394 header_ http.Header
30395 }
30396
30397
30398
30399
30400
30401 func (r *ProjectsConversationsService) Get(name string) *ProjectsConversationsGetCall {
30402 c := &ProjectsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30403 c.name = name
30404 return c
30405 }
30406
30407
30408
30409
30410 func (c *ProjectsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsGetCall {
30411 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30412 return c
30413 }
30414
30415
30416
30417
30418 func (c *ProjectsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsGetCall {
30419 c.ifNoneMatch_ = entityTag
30420 return c
30421 }
30422
30423
30424 func (c *ProjectsConversationsGetCall) Context(ctx context.Context) *ProjectsConversationsGetCall {
30425 c.ctx_ = ctx
30426 return c
30427 }
30428
30429
30430
30431 func (c *ProjectsConversationsGetCall) Header() http.Header {
30432 if c.header_ == nil {
30433 c.header_ = make(http.Header)
30434 }
30435 return c.header_
30436 }
30437
30438 func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
30439 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30440 if c.ifNoneMatch_ != "" {
30441 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30442 }
30443 var body io.Reader = nil
30444 c.urlParams_.Set("alt", alt)
30445 c.urlParams_.Set("prettyPrint", "false")
30446 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
30447 urls += "?" + c.urlParams_.Encode()
30448 req, err := http.NewRequest("GET", urls, body)
30449 if err != nil {
30450 return nil, err
30451 }
30452 req.Header = reqHeaders
30453 googleapi.Expand(req.URL, map[string]string{
30454 "name": c.name,
30455 })
30456 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30457 }
30458
30459
30460
30461
30462
30463
30464
30465 func (c *ProjectsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
30466 gensupport.SetOptions(c.urlParams_, opts...)
30467 res, err := c.doRequest("json")
30468 if res != nil && res.StatusCode == http.StatusNotModified {
30469 if res.Body != nil {
30470 res.Body.Close()
30471 }
30472 return nil, gensupport.WrapError(&googleapi.Error{
30473 Code: res.StatusCode,
30474 Header: res.Header,
30475 })
30476 }
30477 if err != nil {
30478 return nil, err
30479 }
30480 defer googleapi.CloseBody(res)
30481 if err := googleapi.CheckResponse(res); err != nil {
30482 return nil, gensupport.WrapError(err)
30483 }
30484 ret := &GoogleCloudDialogflowV2Conversation{
30485 ServerResponse: googleapi.ServerResponse{
30486 Header: res.Header,
30487 HTTPStatusCode: res.StatusCode,
30488 },
30489 }
30490 target := &ret
30491 if err := gensupport.DecodeResponse(target, res); err != nil {
30492 return nil, err
30493 }
30494 return ret, nil
30495 }
30496
30497 type ProjectsConversationsListCall struct {
30498 s *Service
30499 parent string
30500 urlParams_ gensupport.URLParams
30501 ifNoneMatch_ string
30502 ctx_ context.Context
30503 header_ http.Header
30504 }
30505
30506
30507
30508
30509
30510 func (r *ProjectsConversationsService) List(parent string) *ProjectsConversationsListCall {
30511 c := &ProjectsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30512 c.parent = parent
30513 return c
30514 }
30515
30516
30517
30518
30519
30520
30521
30522
30523
30524
30525
30526
30527 func (c *ProjectsConversationsListCall) Filter(filter string) *ProjectsConversationsListCall {
30528 c.urlParams_.Set("filter", filter)
30529 return c
30530 }
30531
30532
30533
30534 func (c *ProjectsConversationsListCall) PageSize(pageSize int64) *ProjectsConversationsListCall {
30535 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30536 return c
30537 }
30538
30539
30540
30541 func (c *ProjectsConversationsListCall) PageToken(pageToken string) *ProjectsConversationsListCall {
30542 c.urlParams_.Set("pageToken", pageToken)
30543 return c
30544 }
30545
30546
30547
30548
30549 func (c *ProjectsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsListCall {
30550 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30551 return c
30552 }
30553
30554
30555
30556
30557 func (c *ProjectsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsListCall {
30558 c.ifNoneMatch_ = entityTag
30559 return c
30560 }
30561
30562
30563 func (c *ProjectsConversationsListCall) Context(ctx context.Context) *ProjectsConversationsListCall {
30564 c.ctx_ = ctx
30565 return c
30566 }
30567
30568
30569
30570 func (c *ProjectsConversationsListCall) Header() http.Header {
30571 if c.header_ == nil {
30572 c.header_ = make(http.Header)
30573 }
30574 return c.header_
30575 }
30576
30577 func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, error) {
30578 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30579 if c.ifNoneMatch_ != "" {
30580 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30581 }
30582 var body io.Reader = nil
30583 c.urlParams_.Set("alt", alt)
30584 c.urlParams_.Set("prettyPrint", "false")
30585 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
30586 urls += "?" + c.urlParams_.Encode()
30587 req, err := http.NewRequest("GET", urls, body)
30588 if err != nil {
30589 return nil, err
30590 }
30591 req.Header = reqHeaders
30592 googleapi.Expand(req.URL, map[string]string{
30593 "parent": c.parent,
30594 })
30595 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30596 }
30597
30598
30599
30600
30601
30602
30603
30604 func (c *ProjectsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationsResponse, error) {
30605 gensupport.SetOptions(c.urlParams_, opts...)
30606 res, err := c.doRequest("json")
30607 if res != nil && res.StatusCode == http.StatusNotModified {
30608 if res.Body != nil {
30609 res.Body.Close()
30610 }
30611 return nil, gensupport.WrapError(&googleapi.Error{
30612 Code: res.StatusCode,
30613 Header: res.Header,
30614 })
30615 }
30616 if err != nil {
30617 return nil, err
30618 }
30619 defer googleapi.CloseBody(res)
30620 if err := googleapi.CheckResponse(res); err != nil {
30621 return nil, gensupport.WrapError(err)
30622 }
30623 ret := &GoogleCloudDialogflowV2ListConversationsResponse{
30624 ServerResponse: googleapi.ServerResponse{
30625 Header: res.Header,
30626 HTTPStatusCode: res.StatusCode,
30627 },
30628 }
30629 target := &ret
30630 if err := gensupport.DecodeResponse(target, res); err != nil {
30631 return nil, err
30632 }
30633 return ret, nil
30634 }
30635
30636
30637
30638
30639 func (c *ProjectsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationsResponse) error) error {
30640 c.ctx_ = ctx
30641 defer c.PageToken(c.urlParams_.Get("pageToken"))
30642 for {
30643 x, err := c.Do()
30644 if err != nil {
30645 return err
30646 }
30647 if err := f(x); err != nil {
30648 return err
30649 }
30650 if x.NextPageToken == "" {
30651 return nil
30652 }
30653 c.PageToken(x.NextPageToken)
30654 }
30655 }
30656
30657 type ProjectsConversationsMessagesListCall struct {
30658 s *Service
30659 parent string
30660 urlParams_ gensupport.URLParams
30661 ifNoneMatch_ string
30662 ctx_ context.Context
30663 header_ http.Header
30664 }
30665
30666
30667
30668
30669
30670
30671
30672
30673 func (r *ProjectsConversationsMessagesService) List(parent string) *ProjectsConversationsMessagesListCall {
30674 c := &ProjectsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30675 c.parent = parent
30676 return c
30677 }
30678
30679
30680
30681
30682
30683
30684
30685 func (c *ProjectsConversationsMessagesListCall) Filter(filter string) *ProjectsConversationsMessagesListCall {
30686 c.urlParams_.Set("filter", filter)
30687 return c
30688 }
30689
30690
30691
30692 func (c *ProjectsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsConversationsMessagesListCall {
30693 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30694 return c
30695 }
30696
30697
30698
30699 func (c *ProjectsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsConversationsMessagesListCall {
30700 c.urlParams_.Set("pageToken", pageToken)
30701 return c
30702 }
30703
30704
30705
30706
30707 func (c *ProjectsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesListCall {
30708 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30709 return c
30710 }
30711
30712
30713
30714
30715 func (c *ProjectsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsConversationsMessagesListCall {
30716 c.ifNoneMatch_ = entityTag
30717 return c
30718 }
30719
30720
30721 func (c *ProjectsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsConversationsMessagesListCall {
30722 c.ctx_ = ctx
30723 return c
30724 }
30725
30726
30727
30728 func (c *ProjectsConversationsMessagesListCall) Header() http.Header {
30729 if c.header_ == nil {
30730 c.header_ = make(http.Header)
30731 }
30732 return c.header_
30733 }
30734
30735 func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
30736 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30737 if c.ifNoneMatch_ != "" {
30738 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30739 }
30740 var body io.Reader = nil
30741 c.urlParams_.Set("alt", alt)
30742 c.urlParams_.Set("prettyPrint", "false")
30743 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/messages")
30744 urls += "?" + c.urlParams_.Encode()
30745 req, err := http.NewRequest("GET", urls, body)
30746 if err != nil {
30747 return nil, err
30748 }
30749 req.Header = reqHeaders
30750 googleapi.Expand(req.URL, map[string]string{
30751 "parent": c.parent,
30752 })
30753 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30754 }
30755
30756
30757
30758
30759
30760
30761
30762 func (c *ProjectsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListMessagesResponse, error) {
30763 gensupport.SetOptions(c.urlParams_, opts...)
30764 res, err := c.doRequest("json")
30765 if res != nil && res.StatusCode == http.StatusNotModified {
30766 if res.Body != nil {
30767 res.Body.Close()
30768 }
30769 return nil, gensupport.WrapError(&googleapi.Error{
30770 Code: res.StatusCode,
30771 Header: res.Header,
30772 })
30773 }
30774 if err != nil {
30775 return nil, err
30776 }
30777 defer googleapi.CloseBody(res)
30778 if err := googleapi.CheckResponse(res); err != nil {
30779 return nil, gensupport.WrapError(err)
30780 }
30781 ret := &GoogleCloudDialogflowV2ListMessagesResponse{
30782 ServerResponse: googleapi.ServerResponse{
30783 Header: res.Header,
30784 HTTPStatusCode: res.StatusCode,
30785 },
30786 }
30787 target := &ret
30788 if err := gensupport.DecodeResponse(target, res); err != nil {
30789 return nil, err
30790 }
30791 return ret, nil
30792 }
30793
30794
30795
30796
30797 func (c *ProjectsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListMessagesResponse) error) error {
30798 c.ctx_ = ctx
30799 defer c.PageToken(c.urlParams_.Get("pageToken"))
30800 for {
30801 x, err := c.Do()
30802 if err != nil {
30803 return err
30804 }
30805 if err := f(x); err != nil {
30806 return err
30807 }
30808 if x.NextPageToken == "" {
30809 return nil
30810 }
30811 c.PageToken(x.NextPageToken)
30812 }
30813 }
30814
30815 type ProjectsConversationsParticipantsAnalyzeContentCall struct {
30816 s *Service
30817 participant string
30818 googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest
30819 urlParams_ gensupport.URLParams
30820 ctx_ context.Context
30821 header_ http.Header
30822 }
30823
30824
30825
30826
30827
30828
30829
30830
30831
30832 func (r *ProjectsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest) *ProjectsConversationsParticipantsAnalyzeContentCall {
30833 c := &ProjectsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30834 c.participant = participant
30835 c.googleclouddialogflowv2analyzecontentrequest = googleclouddialogflowv2analyzecontentrequest
30836 return c
30837 }
30838
30839
30840
30841
30842 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsAnalyzeContentCall {
30843 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30844 return c
30845 }
30846
30847
30848 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsConversationsParticipantsAnalyzeContentCall {
30849 c.ctx_ = ctx
30850 return c
30851 }
30852
30853
30854
30855 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
30856 if c.header_ == nil {
30857 c.header_ = make(http.Header)
30858 }
30859 return c.header_
30860 }
30861
30862 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
30863 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30864 var body io.Reader = nil
30865 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2analyzecontentrequest)
30866 if err != nil {
30867 return nil, err
30868 }
30869 c.urlParams_.Set("alt", alt)
30870 c.urlParams_.Set("prettyPrint", "false")
30871 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+participant}:analyzeContent")
30872 urls += "?" + c.urlParams_.Encode()
30873 req, err := http.NewRequest("POST", urls, body)
30874 if err != nil {
30875 return nil, err
30876 }
30877 req.Header = reqHeaders
30878 googleapi.Expand(req.URL, map[string]string{
30879 "participant": c.participant,
30880 })
30881 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30882 }
30883
30884
30885
30886
30887
30888
30889
30890 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnalyzeContentResponse, error) {
30891 gensupport.SetOptions(c.urlParams_, opts...)
30892 res, err := c.doRequest("json")
30893 if res != nil && res.StatusCode == http.StatusNotModified {
30894 if res.Body != nil {
30895 res.Body.Close()
30896 }
30897 return nil, gensupport.WrapError(&googleapi.Error{
30898 Code: res.StatusCode,
30899 Header: res.Header,
30900 })
30901 }
30902 if err != nil {
30903 return nil, err
30904 }
30905 defer googleapi.CloseBody(res)
30906 if err := googleapi.CheckResponse(res); err != nil {
30907 return nil, gensupport.WrapError(err)
30908 }
30909 ret := &GoogleCloudDialogflowV2AnalyzeContentResponse{
30910 ServerResponse: googleapi.ServerResponse{
30911 Header: res.Header,
30912 HTTPStatusCode: res.StatusCode,
30913 },
30914 }
30915 target := &ret
30916 if err := gensupport.DecodeResponse(target, res); err != nil {
30917 return nil, err
30918 }
30919 return ret, nil
30920 }
30921
30922 type ProjectsConversationsParticipantsCreateCall struct {
30923 s *Service
30924 parentid string
30925 googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
30926 urlParams_ gensupport.URLParams
30927 ctx_ context.Context
30928 header_ http.Header
30929 }
30930
30931
30932
30933
30934
30935 func (r *ProjectsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsConversationsParticipantsCreateCall {
30936 c := &ProjectsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30937 c.parentid = parentid
30938 c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
30939 return c
30940 }
30941
30942
30943
30944
30945 func (c *ProjectsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsCreateCall {
30946 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30947 return c
30948 }
30949
30950
30951 func (c *ProjectsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsConversationsParticipantsCreateCall {
30952 c.ctx_ = ctx
30953 return c
30954 }
30955
30956
30957
30958 func (c *ProjectsConversationsParticipantsCreateCall) Header() http.Header {
30959 if c.header_ == nil {
30960 c.header_ = make(http.Header)
30961 }
30962 return c.header_
30963 }
30964
30965 func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
30966 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30967 var body io.Reader = nil
30968 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
30969 if err != nil {
30970 return nil, err
30971 }
30972 c.urlParams_.Set("alt", alt)
30973 c.urlParams_.Set("prettyPrint", "false")
30974 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
30975 urls += "?" + c.urlParams_.Encode()
30976 req, err := http.NewRequest("POST", urls, body)
30977 if err != nil {
30978 return nil, err
30979 }
30980 req.Header = reqHeaders
30981 googleapi.Expand(req.URL, map[string]string{
30982 "parent": c.parentid,
30983 })
30984 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30985 }
30986
30987
30988
30989
30990
30991
30992
30993 func (c *ProjectsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
30994 gensupport.SetOptions(c.urlParams_, opts...)
30995 res, err := c.doRequest("json")
30996 if res != nil && res.StatusCode == http.StatusNotModified {
30997 if res.Body != nil {
30998 res.Body.Close()
30999 }
31000 return nil, gensupport.WrapError(&googleapi.Error{
31001 Code: res.StatusCode,
31002 Header: res.Header,
31003 })
31004 }
31005 if err != nil {
31006 return nil, err
31007 }
31008 defer googleapi.CloseBody(res)
31009 if err := googleapi.CheckResponse(res); err != nil {
31010 return nil, gensupport.WrapError(err)
31011 }
31012 ret := &GoogleCloudDialogflowV2Participant{
31013 ServerResponse: googleapi.ServerResponse{
31014 Header: res.Header,
31015 HTTPStatusCode: res.StatusCode,
31016 },
31017 }
31018 target := &ret
31019 if err := gensupport.DecodeResponse(target, res); err != nil {
31020 return nil, err
31021 }
31022 return ret, nil
31023 }
31024
31025 type ProjectsConversationsParticipantsGetCall struct {
31026 s *Service
31027 name string
31028 urlParams_ gensupport.URLParams
31029 ifNoneMatch_ string
31030 ctx_ context.Context
31031 header_ http.Header
31032 }
31033
31034
31035
31036
31037
31038 func (r *ProjectsConversationsParticipantsService) Get(name string) *ProjectsConversationsParticipantsGetCall {
31039 c := &ProjectsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31040 c.name = name
31041 return c
31042 }
31043
31044
31045
31046
31047 func (c *ProjectsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsGetCall {
31048 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31049 return c
31050 }
31051
31052
31053
31054
31055 func (c *ProjectsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsGetCall {
31056 c.ifNoneMatch_ = entityTag
31057 return c
31058 }
31059
31060
31061 func (c *ProjectsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsConversationsParticipantsGetCall {
31062 c.ctx_ = ctx
31063 return c
31064 }
31065
31066
31067
31068 func (c *ProjectsConversationsParticipantsGetCall) Header() http.Header {
31069 if c.header_ == nil {
31070 c.header_ = make(http.Header)
31071 }
31072 return c.header_
31073 }
31074
31075 func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
31076 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31077 if c.ifNoneMatch_ != "" {
31078 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31079 }
31080 var body io.Reader = nil
31081 c.urlParams_.Set("alt", alt)
31082 c.urlParams_.Set("prettyPrint", "false")
31083 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
31084 urls += "?" + c.urlParams_.Encode()
31085 req, err := http.NewRequest("GET", urls, body)
31086 if err != nil {
31087 return nil, err
31088 }
31089 req.Header = reqHeaders
31090 googleapi.Expand(req.URL, map[string]string{
31091 "name": c.name,
31092 })
31093 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31094 }
31095
31096
31097
31098
31099
31100
31101
31102 func (c *ProjectsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
31103 gensupport.SetOptions(c.urlParams_, opts...)
31104 res, err := c.doRequest("json")
31105 if res != nil && res.StatusCode == http.StatusNotModified {
31106 if res.Body != nil {
31107 res.Body.Close()
31108 }
31109 return nil, gensupport.WrapError(&googleapi.Error{
31110 Code: res.StatusCode,
31111 Header: res.Header,
31112 })
31113 }
31114 if err != nil {
31115 return nil, err
31116 }
31117 defer googleapi.CloseBody(res)
31118 if err := googleapi.CheckResponse(res); err != nil {
31119 return nil, gensupport.WrapError(err)
31120 }
31121 ret := &GoogleCloudDialogflowV2Participant{
31122 ServerResponse: googleapi.ServerResponse{
31123 Header: res.Header,
31124 HTTPStatusCode: res.StatusCode,
31125 },
31126 }
31127 target := &ret
31128 if err := gensupport.DecodeResponse(target, res); err != nil {
31129 return nil, err
31130 }
31131 return ret, nil
31132 }
31133
31134 type ProjectsConversationsParticipantsListCall struct {
31135 s *Service
31136 parent string
31137 urlParams_ gensupport.URLParams
31138 ifNoneMatch_ string
31139 ctx_ context.Context
31140 header_ http.Header
31141 }
31142
31143
31144
31145
31146
31147 func (r *ProjectsConversationsParticipantsService) List(parent string) *ProjectsConversationsParticipantsListCall {
31148 c := &ProjectsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31149 c.parent = parent
31150 return c
31151 }
31152
31153
31154
31155 func (c *ProjectsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsListCall {
31156 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31157 return c
31158 }
31159
31160
31161
31162 func (c *ProjectsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsListCall {
31163 c.urlParams_.Set("pageToken", pageToken)
31164 return c
31165 }
31166
31167
31168
31169
31170 func (c *ProjectsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsListCall {
31171 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31172 return c
31173 }
31174
31175
31176
31177
31178 func (c *ProjectsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsListCall {
31179 c.ifNoneMatch_ = entityTag
31180 return c
31181 }
31182
31183
31184 func (c *ProjectsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsListCall {
31185 c.ctx_ = ctx
31186 return c
31187 }
31188
31189
31190
31191 func (c *ProjectsConversationsParticipantsListCall) Header() http.Header {
31192 if c.header_ == nil {
31193 c.header_ = make(http.Header)
31194 }
31195 return c.header_
31196 }
31197
31198 func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
31199 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31200 if c.ifNoneMatch_ != "" {
31201 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31202 }
31203 var body io.Reader = nil
31204 c.urlParams_.Set("alt", alt)
31205 c.urlParams_.Set("prettyPrint", "false")
31206 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
31207 urls += "?" + c.urlParams_.Encode()
31208 req, err := http.NewRequest("GET", urls, body)
31209 if err != nil {
31210 return nil, err
31211 }
31212 req.Header = reqHeaders
31213 googleapi.Expand(req.URL, map[string]string{
31214 "parent": c.parent,
31215 })
31216 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31217 }
31218
31219
31220
31221
31222
31223
31224
31225 func (c *ProjectsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListParticipantsResponse, error) {
31226 gensupport.SetOptions(c.urlParams_, opts...)
31227 res, err := c.doRequest("json")
31228 if res != nil && res.StatusCode == http.StatusNotModified {
31229 if res.Body != nil {
31230 res.Body.Close()
31231 }
31232 return nil, gensupport.WrapError(&googleapi.Error{
31233 Code: res.StatusCode,
31234 Header: res.Header,
31235 })
31236 }
31237 if err != nil {
31238 return nil, err
31239 }
31240 defer googleapi.CloseBody(res)
31241 if err := googleapi.CheckResponse(res); err != nil {
31242 return nil, gensupport.WrapError(err)
31243 }
31244 ret := &GoogleCloudDialogflowV2ListParticipantsResponse{
31245 ServerResponse: googleapi.ServerResponse{
31246 Header: res.Header,
31247 HTTPStatusCode: res.StatusCode,
31248 },
31249 }
31250 target := &ret
31251 if err := gensupport.DecodeResponse(target, res); err != nil {
31252 return nil, err
31253 }
31254 return ret, nil
31255 }
31256
31257
31258
31259
31260 func (c *ProjectsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListParticipantsResponse) error) error {
31261 c.ctx_ = ctx
31262 defer c.PageToken(c.urlParams_.Get("pageToken"))
31263 for {
31264 x, err := c.Do()
31265 if err != nil {
31266 return err
31267 }
31268 if err := f(x); err != nil {
31269 return err
31270 }
31271 if x.NextPageToken == "" {
31272 return nil
31273 }
31274 c.PageToken(x.NextPageToken)
31275 }
31276 }
31277
31278 type ProjectsConversationsParticipantsPatchCall struct {
31279 s *Service
31280 nameid string
31281 googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
31282 urlParams_ gensupport.URLParams
31283 ctx_ context.Context
31284 header_ http.Header
31285 }
31286
31287
31288
31289
31290
31291 func (r *ProjectsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsConversationsParticipantsPatchCall {
31292 c := &ProjectsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31293 c.nameid = nameid
31294 c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
31295 return c
31296 }
31297
31298
31299
31300 func (c *ProjectsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsConversationsParticipantsPatchCall {
31301 c.urlParams_.Set("updateMask", updateMask)
31302 return c
31303 }
31304
31305
31306
31307
31308 func (c *ProjectsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsPatchCall {
31309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31310 return c
31311 }
31312
31313
31314 func (c *ProjectsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsConversationsParticipantsPatchCall {
31315 c.ctx_ = ctx
31316 return c
31317 }
31318
31319
31320
31321 func (c *ProjectsConversationsParticipantsPatchCall) Header() http.Header {
31322 if c.header_ == nil {
31323 c.header_ = make(http.Header)
31324 }
31325 return c.header_
31326 }
31327
31328 func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
31329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31330 var body io.Reader = nil
31331 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
31332 if err != nil {
31333 return nil, err
31334 }
31335 c.urlParams_.Set("alt", alt)
31336 c.urlParams_.Set("prettyPrint", "false")
31337 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
31338 urls += "?" + c.urlParams_.Encode()
31339 req, err := http.NewRequest("PATCH", urls, body)
31340 if err != nil {
31341 return nil, err
31342 }
31343 req.Header = reqHeaders
31344 googleapi.Expand(req.URL, map[string]string{
31345 "name": c.nameid,
31346 })
31347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31348 }
31349
31350
31351
31352
31353
31354
31355
31356 func (c *ProjectsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
31357 gensupport.SetOptions(c.urlParams_, opts...)
31358 res, err := c.doRequest("json")
31359 if res != nil && res.StatusCode == http.StatusNotModified {
31360 if res.Body != nil {
31361 res.Body.Close()
31362 }
31363 return nil, gensupport.WrapError(&googleapi.Error{
31364 Code: res.StatusCode,
31365 Header: res.Header,
31366 })
31367 }
31368 if err != nil {
31369 return nil, err
31370 }
31371 defer googleapi.CloseBody(res)
31372 if err := googleapi.CheckResponse(res); err != nil {
31373 return nil, gensupport.WrapError(err)
31374 }
31375 ret := &GoogleCloudDialogflowV2Participant{
31376 ServerResponse: googleapi.ServerResponse{
31377 Header: res.Header,
31378 HTTPStatusCode: res.StatusCode,
31379 },
31380 }
31381 target := &ret
31382 if err := gensupport.DecodeResponse(target, res); err != nil {
31383 return nil, err
31384 }
31385 return ret, nil
31386 }
31387
31388 type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
31389 s *Service
31390 parent string
31391 googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest
31392 urlParams_ gensupport.URLParams
31393 ctx_ context.Context
31394 header_ http.Header
31395 }
31396
31397
31398
31399
31400
31401
31402 func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
31403 c := &ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31404 c.parent = parent
31405 c.googleclouddialogflowv2suggestarticlesrequest = googleclouddialogflowv2suggestarticlesrequest
31406 return c
31407 }
31408
31409
31410
31411
31412 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
31413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31414 return c
31415 }
31416
31417
31418 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
31419 c.ctx_ = ctx
31420 return c
31421 }
31422
31423
31424
31425 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
31426 if c.header_ == nil {
31427 c.header_ = make(http.Header)
31428 }
31429 return c.header_
31430 }
31431
31432 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
31433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31434 var body io.Reader = nil
31435 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestarticlesrequest)
31436 if err != nil {
31437 return nil, err
31438 }
31439 c.urlParams_.Set("alt", alt)
31440 c.urlParams_.Set("prettyPrint", "false")
31441 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestArticles")
31442 urls += "?" + c.urlParams_.Encode()
31443 req, err := http.NewRequest("POST", urls, body)
31444 if err != nil {
31445 return nil, err
31446 }
31447 req.Header = reqHeaders
31448 googleapi.Expand(req.URL, map[string]string{
31449 "parent": c.parent,
31450 })
31451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31452 }
31453
31454
31455
31456
31457
31458
31459
31460 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestArticlesResponse, error) {
31461 gensupport.SetOptions(c.urlParams_, opts...)
31462 res, err := c.doRequest("json")
31463 if res != nil && res.StatusCode == http.StatusNotModified {
31464 if res.Body != nil {
31465 res.Body.Close()
31466 }
31467 return nil, gensupport.WrapError(&googleapi.Error{
31468 Code: res.StatusCode,
31469 Header: res.Header,
31470 })
31471 }
31472 if err != nil {
31473 return nil, err
31474 }
31475 defer googleapi.CloseBody(res)
31476 if err := googleapi.CheckResponse(res); err != nil {
31477 return nil, gensupport.WrapError(err)
31478 }
31479 ret := &GoogleCloudDialogflowV2SuggestArticlesResponse{
31480 ServerResponse: googleapi.ServerResponse{
31481 Header: res.Header,
31482 HTTPStatusCode: res.StatusCode,
31483 },
31484 }
31485 target := &ret
31486 if err := gensupport.DecodeResponse(target, res); err != nil {
31487 return nil, err
31488 }
31489 return ret, nil
31490 }
31491
31492 type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
31493 s *Service
31494 parent string
31495 googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest
31496 urlParams_ gensupport.URLParams
31497 ctx_ context.Context
31498 header_ http.Header
31499 }
31500
31501
31502
31503
31504
31505
31506 func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
31507 c := &ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31508 c.parent = parent
31509 c.googleclouddialogflowv2suggestfaqanswersrequest = googleclouddialogflowv2suggestfaqanswersrequest
31510 return c
31511 }
31512
31513
31514
31515
31516 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
31517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31518 return c
31519 }
31520
31521
31522 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
31523 c.ctx_ = ctx
31524 return c
31525 }
31526
31527
31528
31529 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
31530 if c.header_ == nil {
31531 c.header_ = make(http.Header)
31532 }
31533 return c.header_
31534 }
31535
31536 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
31537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31538 var body io.Reader = nil
31539 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestfaqanswersrequest)
31540 if err != nil {
31541 return nil, err
31542 }
31543 c.urlParams_.Set("alt", alt)
31544 c.urlParams_.Set("prettyPrint", "false")
31545 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestFaqAnswers")
31546 urls += "?" + c.urlParams_.Encode()
31547 req, err := http.NewRequest("POST", urls, body)
31548 if err != nil {
31549 return nil, err
31550 }
31551 req.Header = reqHeaders
31552 googleapi.Expand(req.URL, map[string]string{
31553 "parent": c.parent,
31554 })
31555 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31556 }
31557
31558
31559
31560
31561
31562
31563
31564 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestFaqAnswersResponse, error) {
31565 gensupport.SetOptions(c.urlParams_, opts...)
31566 res, err := c.doRequest("json")
31567 if res != nil && res.StatusCode == http.StatusNotModified {
31568 if res.Body != nil {
31569 res.Body.Close()
31570 }
31571 return nil, gensupport.WrapError(&googleapi.Error{
31572 Code: res.StatusCode,
31573 Header: res.Header,
31574 })
31575 }
31576 if err != nil {
31577 return nil, err
31578 }
31579 defer googleapi.CloseBody(res)
31580 if err := googleapi.CheckResponse(res); err != nil {
31581 return nil, gensupport.WrapError(err)
31582 }
31583 ret := &GoogleCloudDialogflowV2SuggestFaqAnswersResponse{
31584 ServerResponse: googleapi.ServerResponse{
31585 Header: res.Header,
31586 HTTPStatusCode: res.StatusCode,
31587 },
31588 }
31589 target := &ret
31590 if err := gensupport.DecodeResponse(target, res); err != nil {
31591 return nil, err
31592 }
31593 return ret, nil
31594 }
31595
31596 type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
31597 s *Service
31598 parent string
31599 googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest
31600 urlParams_ gensupport.URLParams
31601 ctx_ context.Context
31602 header_ http.Header
31603 }
31604
31605
31606
31607
31608
31609
31610 func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
31611 c := &ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31612 c.parent = parent
31613 c.googleclouddialogflowv2suggestsmartrepliesrequest = googleclouddialogflowv2suggestsmartrepliesrequest
31614 return c
31615 }
31616
31617
31618
31619
31620 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
31621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31622 return c
31623 }
31624
31625
31626 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
31627 c.ctx_ = ctx
31628 return c
31629 }
31630
31631
31632
31633 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
31634 if c.header_ == nil {
31635 c.header_ = make(http.Header)
31636 }
31637 return c.header_
31638 }
31639
31640 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
31641 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31642 var body io.Reader = nil
31643 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestsmartrepliesrequest)
31644 if err != nil {
31645 return nil, err
31646 }
31647 c.urlParams_.Set("alt", alt)
31648 c.urlParams_.Set("prettyPrint", "false")
31649 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestSmartReplies")
31650 urls += "?" + c.urlParams_.Encode()
31651 req, err := http.NewRequest("POST", urls, body)
31652 if err != nil {
31653 return nil, err
31654 }
31655 req.Header = reqHeaders
31656 googleapi.Expand(req.URL, map[string]string{
31657 "parent": c.parent,
31658 })
31659 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31660 }
31661
31662
31663
31664
31665
31666
31667
31668 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestSmartRepliesResponse, error) {
31669 gensupport.SetOptions(c.urlParams_, opts...)
31670 res, err := c.doRequest("json")
31671 if res != nil && res.StatusCode == http.StatusNotModified {
31672 if res.Body != nil {
31673 res.Body.Close()
31674 }
31675 return nil, gensupport.WrapError(&googleapi.Error{
31676 Code: res.StatusCode,
31677 Header: res.Header,
31678 })
31679 }
31680 if err != nil {
31681 return nil, err
31682 }
31683 defer googleapi.CloseBody(res)
31684 if err := googleapi.CheckResponse(res); err != nil {
31685 return nil, gensupport.WrapError(err)
31686 }
31687 ret := &GoogleCloudDialogflowV2SuggestSmartRepliesResponse{
31688 ServerResponse: googleapi.ServerResponse{
31689 Header: res.Header,
31690 HTTPStatusCode: res.StatusCode,
31691 },
31692 }
31693 target := &ret
31694 if err := gensupport.DecodeResponse(target, res); err != nil {
31695 return nil, err
31696 }
31697 return ret, nil
31698 }
31699
31700 type ProjectsConversationsSuggestionsSearchKnowledgeCall struct {
31701 s *Service
31702 conversation string
31703 googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
31704 urlParams_ gensupport.URLParams
31705 ctx_ context.Context
31706 header_ http.Header
31707 }
31708
31709
31710
31711
31712
31713
31714
31715 func (r *ProjectsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
31716 c := &ProjectsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31717 c.conversation = conversation
31718 c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
31719 return c
31720 }
31721
31722
31723
31724
31725 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
31726 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31727 return c
31728 }
31729
31730
31731 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
31732 c.ctx_ = ctx
31733 return c
31734 }
31735
31736
31737
31738 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
31739 if c.header_ == nil {
31740 c.header_ = make(http.Header)
31741 }
31742 return c.header_
31743 }
31744
31745 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
31746 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31747 var body io.Reader = nil
31748 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
31749 if err != nil {
31750 return nil, err
31751 }
31752 c.urlParams_.Set("alt", alt)
31753 c.urlParams_.Set("prettyPrint", "false")
31754 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:searchKnowledge")
31755 urls += "?" + c.urlParams_.Encode()
31756 req, err := http.NewRequest("POST", urls, body)
31757 if err != nil {
31758 return nil, err
31759 }
31760 req.Header = reqHeaders
31761 googleapi.Expand(req.URL, map[string]string{
31762 "conversation": c.conversation,
31763 })
31764 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31765 }
31766
31767
31768
31769
31770
31771
31772
31773 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
31774 gensupport.SetOptions(c.urlParams_, opts...)
31775 res, err := c.doRequest("json")
31776 if res != nil && res.StatusCode == http.StatusNotModified {
31777 if res.Body != nil {
31778 res.Body.Close()
31779 }
31780 return nil, gensupport.WrapError(&googleapi.Error{
31781 Code: res.StatusCode,
31782 Header: res.Header,
31783 })
31784 }
31785 if err != nil {
31786 return nil, err
31787 }
31788 defer googleapi.CloseBody(res)
31789 if err := googleapi.CheckResponse(res); err != nil {
31790 return nil, gensupport.WrapError(err)
31791 }
31792 ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
31793 ServerResponse: googleapi.ServerResponse{
31794 Header: res.Header,
31795 HTTPStatusCode: res.StatusCode,
31796 },
31797 }
31798 target := &ret
31799 if err := gensupport.DecodeResponse(target, res); err != nil {
31800 return nil, err
31801 }
31802 return ret, nil
31803 }
31804
31805 type ProjectsConversationsSuggestionsSuggestConversationSummaryCall struct {
31806 s *Service
31807 conversation string
31808 googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest
31809 urlParams_ gensupport.URLParams
31810 ctx_ context.Context
31811 header_ http.Header
31812 }
31813
31814
31815
31816
31817
31818
31819
31820 func (r *ProjectsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
31821 c := &ProjectsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31822 c.conversation = conversation
31823 c.googleclouddialogflowv2suggestconversationsummaryrequest = googleclouddialogflowv2suggestconversationsummaryrequest
31824 return c
31825 }
31826
31827
31828
31829
31830 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
31831 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31832 return c
31833 }
31834
31835
31836 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
31837 c.ctx_ = ctx
31838 return c
31839 }
31840
31841
31842
31843 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
31844 if c.header_ == nil {
31845 c.header_ = make(http.Header)
31846 }
31847 return c.header_
31848 }
31849
31850 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
31851 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31852 var body io.Reader = nil
31853 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestconversationsummaryrequest)
31854 if err != nil {
31855 return nil, err
31856 }
31857 c.urlParams_.Set("alt", alt)
31858 c.urlParams_.Set("prettyPrint", "false")
31859 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:suggestConversationSummary")
31860 urls += "?" + c.urlParams_.Encode()
31861 req, err := http.NewRequest("POST", urls, body)
31862 if err != nil {
31863 return nil, err
31864 }
31865 req.Header = reqHeaders
31866 googleapi.Expand(req.URL, map[string]string{
31867 "conversation": c.conversation,
31868 })
31869 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31870 }
31871
31872
31873
31874
31875
31876
31877
31878 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestConversationSummaryResponse, error) {
31879 gensupport.SetOptions(c.urlParams_, opts...)
31880 res, err := c.doRequest("json")
31881 if res != nil && res.StatusCode == http.StatusNotModified {
31882 if res.Body != nil {
31883 res.Body.Close()
31884 }
31885 return nil, gensupport.WrapError(&googleapi.Error{
31886 Code: res.StatusCode,
31887 Header: res.Header,
31888 })
31889 }
31890 if err != nil {
31891 return nil, err
31892 }
31893 defer googleapi.CloseBody(res)
31894 if err := googleapi.CheckResponse(res); err != nil {
31895 return nil, gensupport.WrapError(err)
31896 }
31897 ret := &GoogleCloudDialogflowV2SuggestConversationSummaryResponse{
31898 ServerResponse: googleapi.ServerResponse{
31899 Header: res.Header,
31900 HTTPStatusCode: res.StatusCode,
31901 },
31902 }
31903 target := &ret
31904 if err := gensupport.DecodeResponse(target, res); err != nil {
31905 return nil, err
31906 }
31907 return ret, nil
31908 }
31909
31910 type ProjectsKnowledgeBasesCreateCall struct {
31911 s *Service
31912 parent string
31913 googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
31914 urlParams_ gensupport.URLParams
31915 ctx_ context.Context
31916 header_ http.Header
31917 }
31918
31919
31920
31921
31922
31923 func (r *ProjectsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsKnowledgeBasesCreateCall {
31924 c := &ProjectsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31925 c.parent = parent
31926 c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
31927 return c
31928 }
31929
31930
31931
31932
31933 func (c *ProjectsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesCreateCall {
31934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31935 return c
31936 }
31937
31938
31939 func (c *ProjectsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesCreateCall {
31940 c.ctx_ = ctx
31941 return c
31942 }
31943
31944
31945
31946 func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header {
31947 if c.header_ == nil {
31948 c.header_ = make(http.Header)
31949 }
31950 return c.header_
31951 }
31952
31953 func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
31954 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31955 var body io.Reader = nil
31956 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
31957 if err != nil {
31958 return nil, err
31959 }
31960 c.urlParams_.Set("alt", alt)
31961 c.urlParams_.Set("prettyPrint", "false")
31962 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
31963 urls += "?" + c.urlParams_.Encode()
31964 req, err := http.NewRequest("POST", urls, body)
31965 if err != nil {
31966 return nil, err
31967 }
31968 req.Header = reqHeaders
31969 googleapi.Expand(req.URL, map[string]string{
31970 "parent": c.parent,
31971 })
31972 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31973 }
31974
31975
31976
31977
31978
31979
31980
31981 func (c *ProjectsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
31982 gensupport.SetOptions(c.urlParams_, opts...)
31983 res, err := c.doRequest("json")
31984 if res != nil && res.StatusCode == http.StatusNotModified {
31985 if res.Body != nil {
31986 res.Body.Close()
31987 }
31988 return nil, gensupport.WrapError(&googleapi.Error{
31989 Code: res.StatusCode,
31990 Header: res.Header,
31991 })
31992 }
31993 if err != nil {
31994 return nil, err
31995 }
31996 defer googleapi.CloseBody(res)
31997 if err := googleapi.CheckResponse(res); err != nil {
31998 return nil, gensupport.WrapError(err)
31999 }
32000 ret := &GoogleCloudDialogflowV2KnowledgeBase{
32001 ServerResponse: googleapi.ServerResponse{
32002 Header: res.Header,
32003 HTTPStatusCode: res.StatusCode,
32004 },
32005 }
32006 target := &ret
32007 if err := gensupport.DecodeResponse(target, res); err != nil {
32008 return nil, err
32009 }
32010 return ret, nil
32011 }
32012
32013 type ProjectsKnowledgeBasesDeleteCall struct {
32014 s *Service
32015 name string
32016 urlParams_ gensupport.URLParams
32017 ctx_ context.Context
32018 header_ http.Header
32019 }
32020
32021
32022
32023
32024
32025 func (r *ProjectsKnowledgeBasesService) Delete(name string) *ProjectsKnowledgeBasesDeleteCall {
32026 c := &ProjectsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32027 c.name = name
32028 return c
32029 }
32030
32031
32032
32033 func (c *ProjectsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsKnowledgeBasesDeleteCall {
32034 c.urlParams_.Set("force", fmt.Sprint(force))
32035 return c
32036 }
32037
32038
32039
32040
32041 func (c *ProjectsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDeleteCall {
32042 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32043 return c
32044 }
32045
32046
32047 func (c *ProjectsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDeleteCall {
32048 c.ctx_ = ctx
32049 return c
32050 }
32051
32052
32053
32054 func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header {
32055 if c.header_ == nil {
32056 c.header_ = make(http.Header)
32057 }
32058 return c.header_
32059 }
32060
32061 func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
32062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32063 var body io.Reader = nil
32064 c.urlParams_.Set("alt", alt)
32065 c.urlParams_.Set("prettyPrint", "false")
32066 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
32067 urls += "?" + c.urlParams_.Encode()
32068 req, err := http.NewRequest("DELETE", urls, body)
32069 if err != nil {
32070 return nil, err
32071 }
32072 req.Header = reqHeaders
32073 googleapi.Expand(req.URL, map[string]string{
32074 "name": c.name,
32075 })
32076 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32077 }
32078
32079
32080
32081
32082
32083
32084
32085 func (c *ProjectsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
32086 gensupport.SetOptions(c.urlParams_, opts...)
32087 res, err := c.doRequest("json")
32088 if res != nil && res.StatusCode == http.StatusNotModified {
32089 if res.Body != nil {
32090 res.Body.Close()
32091 }
32092 return nil, gensupport.WrapError(&googleapi.Error{
32093 Code: res.StatusCode,
32094 Header: res.Header,
32095 })
32096 }
32097 if err != nil {
32098 return nil, err
32099 }
32100 defer googleapi.CloseBody(res)
32101 if err := googleapi.CheckResponse(res); err != nil {
32102 return nil, gensupport.WrapError(err)
32103 }
32104 ret := &GoogleProtobufEmpty{
32105 ServerResponse: googleapi.ServerResponse{
32106 Header: res.Header,
32107 HTTPStatusCode: res.StatusCode,
32108 },
32109 }
32110 target := &ret
32111 if err := gensupport.DecodeResponse(target, res); err != nil {
32112 return nil, err
32113 }
32114 return ret, nil
32115 }
32116
32117 type ProjectsKnowledgeBasesGetCall struct {
32118 s *Service
32119 name string
32120 urlParams_ gensupport.URLParams
32121 ifNoneMatch_ string
32122 ctx_ context.Context
32123 header_ http.Header
32124 }
32125
32126
32127
32128
32129
32130 func (r *ProjectsKnowledgeBasesService) Get(name string) *ProjectsKnowledgeBasesGetCall {
32131 c := &ProjectsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32132 c.name = name
32133 return c
32134 }
32135
32136
32137
32138
32139 func (c *ProjectsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesGetCall {
32140 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32141 return c
32142 }
32143
32144
32145
32146
32147 func (c *ProjectsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesGetCall {
32148 c.ifNoneMatch_ = entityTag
32149 return c
32150 }
32151
32152
32153 func (c *ProjectsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesGetCall {
32154 c.ctx_ = ctx
32155 return c
32156 }
32157
32158
32159
32160 func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header {
32161 if c.header_ == nil {
32162 c.header_ = make(http.Header)
32163 }
32164 return c.header_
32165 }
32166
32167 func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
32168 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32169 if c.ifNoneMatch_ != "" {
32170 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32171 }
32172 var body io.Reader = nil
32173 c.urlParams_.Set("alt", alt)
32174 c.urlParams_.Set("prettyPrint", "false")
32175 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
32176 urls += "?" + c.urlParams_.Encode()
32177 req, err := http.NewRequest("GET", urls, body)
32178 if err != nil {
32179 return nil, err
32180 }
32181 req.Header = reqHeaders
32182 googleapi.Expand(req.URL, map[string]string{
32183 "name": c.name,
32184 })
32185 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32186 }
32187
32188
32189
32190
32191
32192
32193
32194 func (c *ProjectsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
32195 gensupport.SetOptions(c.urlParams_, opts...)
32196 res, err := c.doRequest("json")
32197 if res != nil && res.StatusCode == http.StatusNotModified {
32198 if res.Body != nil {
32199 res.Body.Close()
32200 }
32201 return nil, gensupport.WrapError(&googleapi.Error{
32202 Code: res.StatusCode,
32203 Header: res.Header,
32204 })
32205 }
32206 if err != nil {
32207 return nil, err
32208 }
32209 defer googleapi.CloseBody(res)
32210 if err := googleapi.CheckResponse(res); err != nil {
32211 return nil, gensupport.WrapError(err)
32212 }
32213 ret := &GoogleCloudDialogflowV2KnowledgeBase{
32214 ServerResponse: googleapi.ServerResponse{
32215 Header: res.Header,
32216 HTTPStatusCode: res.StatusCode,
32217 },
32218 }
32219 target := &ret
32220 if err := gensupport.DecodeResponse(target, res); err != nil {
32221 return nil, err
32222 }
32223 return ret, nil
32224 }
32225
32226 type ProjectsKnowledgeBasesListCall struct {
32227 s *Service
32228 parent string
32229 urlParams_ gensupport.URLParams
32230 ifNoneMatch_ string
32231 ctx_ context.Context
32232 header_ http.Header
32233 }
32234
32235
32236
32237
32238
32239 func (r *ProjectsKnowledgeBasesService) List(parent string) *ProjectsKnowledgeBasesListCall {
32240 c := &ProjectsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32241 c.parent = parent
32242 return c
32243 }
32244
32245
32246
32247
32248
32249
32250
32251
32252
32253
32254
32255
32256
32257
32258 func (c *ProjectsKnowledgeBasesListCall) Filter(filter string) *ProjectsKnowledgeBasesListCall {
32259 c.urlParams_.Set("filter", filter)
32260 return c
32261 }
32262
32263
32264
32265 func (c *ProjectsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesListCall {
32266 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32267 return c
32268 }
32269
32270
32271
32272 func (c *ProjectsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesListCall {
32273 c.urlParams_.Set("pageToken", pageToken)
32274 return c
32275 }
32276
32277
32278
32279
32280 func (c *ProjectsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesListCall {
32281 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32282 return c
32283 }
32284
32285
32286
32287
32288 func (c *ProjectsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesListCall {
32289 c.ifNoneMatch_ = entityTag
32290 return c
32291 }
32292
32293
32294 func (c *ProjectsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesListCall {
32295 c.ctx_ = ctx
32296 return c
32297 }
32298
32299
32300
32301 func (c *ProjectsKnowledgeBasesListCall) Header() http.Header {
32302 if c.header_ == nil {
32303 c.header_ = make(http.Header)
32304 }
32305 return c.header_
32306 }
32307
32308 func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
32309 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32310 if c.ifNoneMatch_ != "" {
32311 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32312 }
32313 var body io.Reader = nil
32314 c.urlParams_.Set("alt", alt)
32315 c.urlParams_.Set("prettyPrint", "false")
32316 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
32317 urls += "?" + c.urlParams_.Encode()
32318 req, err := http.NewRequest("GET", urls, body)
32319 if err != nil {
32320 return nil, err
32321 }
32322 req.Header = reqHeaders
32323 googleapi.Expand(req.URL, map[string]string{
32324 "parent": c.parent,
32325 })
32326 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32327 }
32328
32329
32330
32331
32332
32333
32334
32335 func (c *ProjectsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListKnowledgeBasesResponse, error) {
32336 gensupport.SetOptions(c.urlParams_, opts...)
32337 res, err := c.doRequest("json")
32338 if res != nil && res.StatusCode == http.StatusNotModified {
32339 if res.Body != nil {
32340 res.Body.Close()
32341 }
32342 return nil, gensupport.WrapError(&googleapi.Error{
32343 Code: res.StatusCode,
32344 Header: res.Header,
32345 })
32346 }
32347 if err != nil {
32348 return nil, err
32349 }
32350 defer googleapi.CloseBody(res)
32351 if err := googleapi.CheckResponse(res); err != nil {
32352 return nil, gensupport.WrapError(err)
32353 }
32354 ret := &GoogleCloudDialogflowV2ListKnowledgeBasesResponse{
32355 ServerResponse: googleapi.ServerResponse{
32356 Header: res.Header,
32357 HTTPStatusCode: res.StatusCode,
32358 },
32359 }
32360 target := &ret
32361 if err := gensupport.DecodeResponse(target, res); err != nil {
32362 return nil, err
32363 }
32364 return ret, nil
32365 }
32366
32367
32368
32369
32370 func (c *ProjectsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListKnowledgeBasesResponse) error) error {
32371 c.ctx_ = ctx
32372 defer c.PageToken(c.urlParams_.Get("pageToken"))
32373 for {
32374 x, err := c.Do()
32375 if err != nil {
32376 return err
32377 }
32378 if err := f(x); err != nil {
32379 return err
32380 }
32381 if x.NextPageToken == "" {
32382 return nil
32383 }
32384 c.PageToken(x.NextPageToken)
32385 }
32386 }
32387
32388 type ProjectsKnowledgeBasesPatchCall struct {
32389 s *Service
32390 name string
32391 googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
32392 urlParams_ gensupport.URLParams
32393 ctx_ context.Context
32394 header_ http.Header
32395 }
32396
32397
32398
32399
32400
32401 func (r *ProjectsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsKnowledgeBasesPatchCall {
32402 c := &ProjectsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32403 c.name = name
32404 c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
32405 return c
32406 }
32407
32408
32409
32410
32411 func (c *ProjectsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesPatchCall {
32412 c.urlParams_.Set("updateMask", updateMask)
32413 return c
32414 }
32415
32416
32417
32418
32419 func (c *ProjectsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesPatchCall {
32420 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32421 return c
32422 }
32423
32424
32425 func (c *ProjectsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesPatchCall {
32426 c.ctx_ = ctx
32427 return c
32428 }
32429
32430
32431
32432 func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header {
32433 if c.header_ == nil {
32434 c.header_ = make(http.Header)
32435 }
32436 return c.header_
32437 }
32438
32439 func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
32440 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32441 var body io.Reader = nil
32442 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
32443 if err != nil {
32444 return nil, err
32445 }
32446 c.urlParams_.Set("alt", alt)
32447 c.urlParams_.Set("prettyPrint", "false")
32448 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
32449 urls += "?" + c.urlParams_.Encode()
32450 req, err := http.NewRequest("PATCH", urls, body)
32451 if err != nil {
32452 return nil, err
32453 }
32454 req.Header = reqHeaders
32455 googleapi.Expand(req.URL, map[string]string{
32456 "name": c.name,
32457 })
32458 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32459 }
32460
32461
32462
32463
32464
32465
32466
32467 func (c *ProjectsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
32468 gensupport.SetOptions(c.urlParams_, opts...)
32469 res, err := c.doRequest("json")
32470 if res != nil && res.StatusCode == http.StatusNotModified {
32471 if res.Body != nil {
32472 res.Body.Close()
32473 }
32474 return nil, gensupport.WrapError(&googleapi.Error{
32475 Code: res.StatusCode,
32476 Header: res.Header,
32477 })
32478 }
32479 if err != nil {
32480 return nil, err
32481 }
32482 defer googleapi.CloseBody(res)
32483 if err := googleapi.CheckResponse(res); err != nil {
32484 return nil, gensupport.WrapError(err)
32485 }
32486 ret := &GoogleCloudDialogflowV2KnowledgeBase{
32487 ServerResponse: googleapi.ServerResponse{
32488 Header: res.Header,
32489 HTTPStatusCode: res.StatusCode,
32490 },
32491 }
32492 target := &ret
32493 if err := gensupport.DecodeResponse(target, res); err != nil {
32494 return nil, err
32495 }
32496 return ret, nil
32497 }
32498
32499 type ProjectsKnowledgeBasesDocumentsCreateCall struct {
32500 s *Service
32501 parent string
32502 googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
32503 urlParams_ gensupport.URLParams
32504 ctx_ context.Context
32505 header_ http.Header
32506 }
32507
32508
32509
32510
32511
32512
32513
32514
32515 func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsKnowledgeBasesDocumentsCreateCall {
32516 c := &ProjectsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32517 c.parent = parent
32518 c.googleclouddialogflowv2document = googleclouddialogflowv2document
32519 return c
32520 }
32521
32522
32523
32524
32525 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsCreateCall {
32526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32527 return c
32528 }
32529
32530
32531 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsCreateCall {
32532 c.ctx_ = ctx
32533 return c
32534 }
32535
32536
32537
32538 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
32539 if c.header_ == nil {
32540 c.header_ = make(http.Header)
32541 }
32542 return c.header_
32543 }
32544
32545 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
32546 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32547 var body io.Reader = nil
32548 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
32549 if err != nil {
32550 return nil, err
32551 }
32552 c.urlParams_.Set("alt", alt)
32553 c.urlParams_.Set("prettyPrint", "false")
32554 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
32555 urls += "?" + c.urlParams_.Encode()
32556 req, err := http.NewRequest("POST", urls, body)
32557 if err != nil {
32558 return nil, err
32559 }
32560 req.Header = reqHeaders
32561 googleapi.Expand(req.URL, map[string]string{
32562 "parent": c.parent,
32563 })
32564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32565 }
32566
32567
32568
32569
32570
32571
32572
32573 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32574 gensupport.SetOptions(c.urlParams_, opts...)
32575 res, err := c.doRequest("json")
32576 if res != nil && res.StatusCode == http.StatusNotModified {
32577 if res.Body != nil {
32578 res.Body.Close()
32579 }
32580 return nil, gensupport.WrapError(&googleapi.Error{
32581 Code: res.StatusCode,
32582 Header: res.Header,
32583 })
32584 }
32585 if err != nil {
32586 return nil, err
32587 }
32588 defer googleapi.CloseBody(res)
32589 if err := googleapi.CheckResponse(res); err != nil {
32590 return nil, gensupport.WrapError(err)
32591 }
32592 ret := &GoogleLongrunningOperation{
32593 ServerResponse: googleapi.ServerResponse{
32594 Header: res.Header,
32595 HTTPStatusCode: res.StatusCode,
32596 },
32597 }
32598 target := &ret
32599 if err := gensupport.DecodeResponse(target, res); err != nil {
32600 return nil, err
32601 }
32602 return ret, nil
32603 }
32604
32605 type ProjectsKnowledgeBasesDocumentsDeleteCall struct {
32606 s *Service
32607 name string
32608 urlParams_ gensupport.URLParams
32609 ctx_ context.Context
32610 header_ http.Header
32611 }
32612
32613
32614
32615
32616
32617
32618
32619
32620
32621
32622 func (r *ProjectsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsKnowledgeBasesDocumentsDeleteCall {
32623 c := &ProjectsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32624 c.name = name
32625 return c
32626 }
32627
32628
32629
32630
32631 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsDeleteCall {
32632 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32633 return c
32634 }
32635
32636
32637 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsDeleteCall {
32638 c.ctx_ = ctx
32639 return c
32640 }
32641
32642
32643
32644 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
32645 if c.header_ == nil {
32646 c.header_ = make(http.Header)
32647 }
32648 return c.header_
32649 }
32650
32651 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
32652 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32653 var body io.Reader = nil
32654 c.urlParams_.Set("alt", alt)
32655 c.urlParams_.Set("prettyPrint", "false")
32656 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
32657 urls += "?" + c.urlParams_.Encode()
32658 req, err := http.NewRequest("DELETE", urls, body)
32659 if err != nil {
32660 return nil, err
32661 }
32662 req.Header = reqHeaders
32663 googleapi.Expand(req.URL, map[string]string{
32664 "name": c.name,
32665 })
32666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32667 }
32668
32669
32670
32671
32672
32673
32674
32675 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32676 gensupport.SetOptions(c.urlParams_, opts...)
32677 res, err := c.doRequest("json")
32678 if res != nil && res.StatusCode == http.StatusNotModified {
32679 if res.Body != nil {
32680 res.Body.Close()
32681 }
32682 return nil, gensupport.WrapError(&googleapi.Error{
32683 Code: res.StatusCode,
32684 Header: res.Header,
32685 })
32686 }
32687 if err != nil {
32688 return nil, err
32689 }
32690 defer googleapi.CloseBody(res)
32691 if err := googleapi.CheckResponse(res); err != nil {
32692 return nil, gensupport.WrapError(err)
32693 }
32694 ret := &GoogleLongrunningOperation{
32695 ServerResponse: googleapi.ServerResponse{
32696 Header: res.Header,
32697 HTTPStatusCode: res.StatusCode,
32698 },
32699 }
32700 target := &ret
32701 if err := gensupport.DecodeResponse(target, res); err != nil {
32702 return nil, err
32703 }
32704 return ret, nil
32705 }
32706
32707 type ProjectsKnowledgeBasesDocumentsExportCall struct {
32708 s *Service
32709 name string
32710 googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest
32711 urlParams_ gensupport.URLParams
32712 ctx_ context.Context
32713 header_ http.Header
32714 }
32715
32716
32717
32718
32719
32720
32721
32722
32723
32724 func (r *ProjectsKnowledgeBasesDocumentsService) Export(name string, googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest) *ProjectsKnowledgeBasesDocumentsExportCall {
32725 c := &ProjectsKnowledgeBasesDocumentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32726 c.name = name
32727 c.googleclouddialogflowv2exportdocumentrequest = googleclouddialogflowv2exportdocumentrequest
32728 return c
32729 }
32730
32731
32732
32733
32734 func (c *ProjectsKnowledgeBasesDocumentsExportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsExportCall {
32735 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32736 return c
32737 }
32738
32739
32740 func (c *ProjectsKnowledgeBasesDocumentsExportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsExportCall {
32741 c.ctx_ = ctx
32742 return c
32743 }
32744
32745
32746
32747 func (c *ProjectsKnowledgeBasesDocumentsExportCall) Header() http.Header {
32748 if c.header_ == nil {
32749 c.header_ = make(http.Header)
32750 }
32751 return c.header_
32752 }
32753
32754 func (c *ProjectsKnowledgeBasesDocumentsExportCall) doRequest(alt string) (*http.Response, error) {
32755 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32756 var body io.Reader = nil
32757 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportdocumentrequest)
32758 if err != nil {
32759 return nil, err
32760 }
32761 c.urlParams_.Set("alt", alt)
32762 c.urlParams_.Set("prettyPrint", "false")
32763 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:export")
32764 urls += "?" + c.urlParams_.Encode()
32765 req, err := http.NewRequest("POST", urls, body)
32766 if err != nil {
32767 return nil, err
32768 }
32769 req.Header = reqHeaders
32770 googleapi.Expand(req.URL, map[string]string{
32771 "name": c.name,
32772 })
32773 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32774 }
32775
32776
32777
32778
32779
32780
32781
32782 func (c *ProjectsKnowledgeBasesDocumentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32783 gensupport.SetOptions(c.urlParams_, opts...)
32784 res, err := c.doRequest("json")
32785 if res != nil && res.StatusCode == http.StatusNotModified {
32786 if res.Body != nil {
32787 res.Body.Close()
32788 }
32789 return nil, gensupport.WrapError(&googleapi.Error{
32790 Code: res.StatusCode,
32791 Header: res.Header,
32792 })
32793 }
32794 if err != nil {
32795 return nil, err
32796 }
32797 defer googleapi.CloseBody(res)
32798 if err := googleapi.CheckResponse(res); err != nil {
32799 return nil, gensupport.WrapError(err)
32800 }
32801 ret := &GoogleLongrunningOperation{
32802 ServerResponse: googleapi.ServerResponse{
32803 Header: res.Header,
32804 HTTPStatusCode: res.StatusCode,
32805 },
32806 }
32807 target := &ret
32808 if err := gensupport.DecodeResponse(target, res); err != nil {
32809 return nil, err
32810 }
32811 return ret, nil
32812 }
32813
32814 type ProjectsKnowledgeBasesDocumentsGetCall struct {
32815 s *Service
32816 name string
32817 urlParams_ gensupport.URLParams
32818 ifNoneMatch_ string
32819 ctx_ context.Context
32820 header_ http.Header
32821 }
32822
32823
32824
32825
32826
32827 func (r *ProjectsKnowledgeBasesDocumentsService) Get(name string) *ProjectsKnowledgeBasesDocumentsGetCall {
32828 c := &ProjectsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32829 c.name = name
32830 return c
32831 }
32832
32833
32834
32835
32836 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsGetCall {
32837 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32838 return c
32839 }
32840
32841
32842
32843
32844 func (c *ProjectsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsGetCall {
32845 c.ifNoneMatch_ = entityTag
32846 return c
32847 }
32848
32849
32850 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsGetCall {
32851 c.ctx_ = ctx
32852 return c
32853 }
32854
32855
32856
32857 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header {
32858 if c.header_ == nil {
32859 c.header_ = make(http.Header)
32860 }
32861 return c.header_
32862 }
32863
32864 func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
32865 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32866 if c.ifNoneMatch_ != "" {
32867 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32868 }
32869 var body io.Reader = nil
32870 c.urlParams_.Set("alt", alt)
32871 c.urlParams_.Set("prettyPrint", "false")
32872 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
32873 urls += "?" + c.urlParams_.Encode()
32874 req, err := http.NewRequest("GET", urls, body)
32875 if err != nil {
32876 return nil, err
32877 }
32878 req.Header = reqHeaders
32879 googleapi.Expand(req.URL, map[string]string{
32880 "name": c.name,
32881 })
32882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32883 }
32884
32885
32886
32887
32888
32889
32890
32891 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Document, error) {
32892 gensupport.SetOptions(c.urlParams_, opts...)
32893 res, err := c.doRequest("json")
32894 if res != nil && res.StatusCode == http.StatusNotModified {
32895 if res.Body != nil {
32896 res.Body.Close()
32897 }
32898 return nil, gensupport.WrapError(&googleapi.Error{
32899 Code: res.StatusCode,
32900 Header: res.Header,
32901 })
32902 }
32903 if err != nil {
32904 return nil, err
32905 }
32906 defer googleapi.CloseBody(res)
32907 if err := googleapi.CheckResponse(res); err != nil {
32908 return nil, gensupport.WrapError(err)
32909 }
32910 ret := &GoogleCloudDialogflowV2Document{
32911 ServerResponse: googleapi.ServerResponse{
32912 Header: res.Header,
32913 HTTPStatusCode: res.StatusCode,
32914 },
32915 }
32916 target := &ret
32917 if err := gensupport.DecodeResponse(target, res); err != nil {
32918 return nil, err
32919 }
32920 return ret, nil
32921 }
32922
32923 type ProjectsKnowledgeBasesDocumentsImportCall struct {
32924 s *Service
32925 parent string
32926 googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest
32927 urlParams_ gensupport.URLParams
32928 ctx_ context.Context
32929 header_ http.Header
32930 }
32931
32932
32933
32934
32935
32936
32937
32938
32939
32940
32941
32942 func (r *ProjectsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest) *ProjectsKnowledgeBasesDocumentsImportCall {
32943 c := &ProjectsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32944 c.parent = parent
32945 c.googleclouddialogflowv2importdocumentsrequest = googleclouddialogflowv2importdocumentsrequest
32946 return c
32947 }
32948
32949
32950
32951
32952 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsImportCall {
32953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32954 return c
32955 }
32956
32957
32958 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsImportCall {
32959 c.ctx_ = ctx
32960 return c
32961 }
32962
32963
32964
32965 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Header() http.Header {
32966 if c.header_ == nil {
32967 c.header_ = make(http.Header)
32968 }
32969 return c.header_
32970 }
32971
32972 func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
32973 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32974 var body io.Reader = nil
32975 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importdocumentsrequest)
32976 if err != nil {
32977 return nil, err
32978 }
32979 c.urlParams_.Set("alt", alt)
32980 c.urlParams_.Set("prettyPrint", "false")
32981 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents:import")
32982 urls += "?" + c.urlParams_.Encode()
32983 req, err := http.NewRequest("POST", urls, body)
32984 if err != nil {
32985 return nil, err
32986 }
32987 req.Header = reqHeaders
32988 googleapi.Expand(req.URL, map[string]string{
32989 "parent": c.parent,
32990 })
32991 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32992 }
32993
32994
32995
32996
32997
32998
32999
33000 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33001 gensupport.SetOptions(c.urlParams_, opts...)
33002 res, err := c.doRequest("json")
33003 if res != nil && res.StatusCode == http.StatusNotModified {
33004 if res.Body != nil {
33005 res.Body.Close()
33006 }
33007 return nil, gensupport.WrapError(&googleapi.Error{
33008 Code: res.StatusCode,
33009 Header: res.Header,
33010 })
33011 }
33012 if err != nil {
33013 return nil, err
33014 }
33015 defer googleapi.CloseBody(res)
33016 if err := googleapi.CheckResponse(res); err != nil {
33017 return nil, gensupport.WrapError(err)
33018 }
33019 ret := &GoogleLongrunningOperation{
33020 ServerResponse: googleapi.ServerResponse{
33021 Header: res.Header,
33022 HTTPStatusCode: res.StatusCode,
33023 },
33024 }
33025 target := &ret
33026 if err := gensupport.DecodeResponse(target, res); err != nil {
33027 return nil, err
33028 }
33029 return ret, nil
33030 }
33031
33032 type ProjectsKnowledgeBasesDocumentsListCall struct {
33033 s *Service
33034 parent string
33035 urlParams_ gensupport.URLParams
33036 ifNoneMatch_ string
33037 ctx_ context.Context
33038 header_ http.Header
33039 }
33040
33041
33042
33043
33044
33045 func (r *ProjectsKnowledgeBasesDocumentsService) List(parent string) *ProjectsKnowledgeBasesDocumentsListCall {
33046 c := &ProjectsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33047 c.parent = parent
33048 return c
33049 }
33050
33051
33052
33053
33054
33055
33056
33057
33058
33059
33060
33061 func (c *ProjectsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsKnowledgeBasesDocumentsListCall {
33062 c.urlParams_.Set("filter", filter)
33063 return c
33064 }
33065
33066
33067
33068 func (c *ProjectsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesDocumentsListCall {
33069 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33070 return c
33071 }
33072
33073
33074
33075 func (c *ProjectsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesDocumentsListCall {
33076 c.urlParams_.Set("pageToken", pageToken)
33077 return c
33078 }
33079
33080
33081
33082
33083 func (c *ProjectsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsListCall {
33084 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33085 return c
33086 }
33087
33088
33089
33090
33091 func (c *ProjectsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsListCall {
33092 c.ifNoneMatch_ = entityTag
33093 return c
33094 }
33095
33096
33097 func (c *ProjectsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsListCall {
33098 c.ctx_ = ctx
33099 return c
33100 }
33101
33102
33103
33104 func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header {
33105 if c.header_ == nil {
33106 c.header_ = make(http.Header)
33107 }
33108 return c.header_
33109 }
33110
33111 func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
33112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33113 if c.ifNoneMatch_ != "" {
33114 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33115 }
33116 var body io.Reader = nil
33117 c.urlParams_.Set("alt", alt)
33118 c.urlParams_.Set("prettyPrint", "false")
33119 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
33120 urls += "?" + c.urlParams_.Encode()
33121 req, err := http.NewRequest("GET", urls, body)
33122 if err != nil {
33123 return nil, err
33124 }
33125 req.Header = reqHeaders
33126 googleapi.Expand(req.URL, map[string]string{
33127 "parent": c.parent,
33128 })
33129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33130 }
33131
33132
33133
33134
33135
33136
33137
33138 func (c *ProjectsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListDocumentsResponse, error) {
33139 gensupport.SetOptions(c.urlParams_, opts...)
33140 res, err := c.doRequest("json")
33141 if res != nil && res.StatusCode == http.StatusNotModified {
33142 if res.Body != nil {
33143 res.Body.Close()
33144 }
33145 return nil, gensupport.WrapError(&googleapi.Error{
33146 Code: res.StatusCode,
33147 Header: res.Header,
33148 })
33149 }
33150 if err != nil {
33151 return nil, err
33152 }
33153 defer googleapi.CloseBody(res)
33154 if err := googleapi.CheckResponse(res); err != nil {
33155 return nil, gensupport.WrapError(err)
33156 }
33157 ret := &GoogleCloudDialogflowV2ListDocumentsResponse{
33158 ServerResponse: googleapi.ServerResponse{
33159 Header: res.Header,
33160 HTTPStatusCode: res.StatusCode,
33161 },
33162 }
33163 target := &ret
33164 if err := gensupport.DecodeResponse(target, res); err != nil {
33165 return nil, err
33166 }
33167 return ret, nil
33168 }
33169
33170
33171
33172
33173 func (c *ProjectsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListDocumentsResponse) error) error {
33174 c.ctx_ = ctx
33175 defer c.PageToken(c.urlParams_.Get("pageToken"))
33176 for {
33177 x, err := c.Do()
33178 if err != nil {
33179 return err
33180 }
33181 if err := f(x); err != nil {
33182 return err
33183 }
33184 if x.NextPageToken == "" {
33185 return nil
33186 }
33187 c.PageToken(x.NextPageToken)
33188 }
33189 }
33190
33191 type ProjectsKnowledgeBasesDocumentsPatchCall struct {
33192 s *Service
33193 name string
33194 googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
33195 urlParams_ gensupport.URLParams
33196 ctx_ context.Context
33197 header_ http.Header
33198 }
33199
33200
33201
33202
33203
33204
33205
33206
33207
33208
33209 func (r *ProjectsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsKnowledgeBasesDocumentsPatchCall {
33210 c := &ProjectsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33211 c.name = name
33212 c.googleclouddialogflowv2document = googleclouddialogflowv2document
33213 return c
33214 }
33215
33216
33217
33218
33219 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesDocumentsPatchCall {
33220 c.urlParams_.Set("updateMask", updateMask)
33221 return c
33222 }
33223
33224
33225
33226
33227 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsPatchCall {
33228 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33229 return c
33230 }
33231
33232
33233 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsPatchCall {
33234 c.ctx_ = ctx
33235 return c
33236 }
33237
33238
33239
33240 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
33241 if c.header_ == nil {
33242 c.header_ = make(http.Header)
33243 }
33244 return c.header_
33245 }
33246
33247 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
33248 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33249 var body io.Reader = nil
33250 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
33251 if err != nil {
33252 return nil, err
33253 }
33254 c.urlParams_.Set("alt", alt)
33255 c.urlParams_.Set("prettyPrint", "false")
33256 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
33257 urls += "?" + c.urlParams_.Encode()
33258 req, err := http.NewRequest("PATCH", urls, body)
33259 if err != nil {
33260 return nil, err
33261 }
33262 req.Header = reqHeaders
33263 googleapi.Expand(req.URL, map[string]string{
33264 "name": c.name,
33265 })
33266 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33267 }
33268
33269
33270
33271
33272
33273
33274
33275 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33276 gensupport.SetOptions(c.urlParams_, opts...)
33277 res, err := c.doRequest("json")
33278 if res != nil && res.StatusCode == http.StatusNotModified {
33279 if res.Body != nil {
33280 res.Body.Close()
33281 }
33282 return nil, gensupport.WrapError(&googleapi.Error{
33283 Code: res.StatusCode,
33284 Header: res.Header,
33285 })
33286 }
33287 if err != nil {
33288 return nil, err
33289 }
33290 defer googleapi.CloseBody(res)
33291 if err := googleapi.CheckResponse(res); err != nil {
33292 return nil, gensupport.WrapError(err)
33293 }
33294 ret := &GoogleLongrunningOperation{
33295 ServerResponse: googleapi.ServerResponse{
33296 Header: res.Header,
33297 HTTPStatusCode: res.StatusCode,
33298 },
33299 }
33300 target := &ret
33301 if err := gensupport.DecodeResponse(target, res); err != nil {
33302 return nil, err
33303 }
33304 return ret, nil
33305 }
33306
33307 type ProjectsKnowledgeBasesDocumentsReloadCall struct {
33308 s *Service
33309 name string
33310 googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest
33311 urlParams_ gensupport.URLParams
33312 ctx_ context.Context
33313 header_ http.Header
33314 }
33315
33316
33317
33318
33319
33320
33321
33322
33323
33324
33325
33326
33327
33328
33329 func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall {
33330 c := &ProjectsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33331 c.name = name
33332 c.googleclouddialogflowv2reloaddocumentrequest = googleclouddialogflowv2reloaddocumentrequest
33333 return c
33334 }
33335
33336
33337
33338
33339 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsReloadCall {
33340 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33341 return c
33342 }
33343
33344
33345 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsReloadCall {
33346 c.ctx_ = ctx
33347 return c
33348 }
33349
33350
33351
33352 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
33353 if c.header_ == nil {
33354 c.header_ = make(http.Header)
33355 }
33356 return c.header_
33357 }
33358
33359 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
33360 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33361 var body io.Reader = nil
33362 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2reloaddocumentrequest)
33363 if err != nil {
33364 return nil, err
33365 }
33366 c.urlParams_.Set("alt", alt)
33367 c.urlParams_.Set("prettyPrint", "false")
33368 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:reload")
33369 urls += "?" + c.urlParams_.Encode()
33370 req, err := http.NewRequest("POST", urls, body)
33371 if err != nil {
33372 return nil, err
33373 }
33374 req.Header = reqHeaders
33375 googleapi.Expand(req.URL, map[string]string{
33376 "name": c.name,
33377 })
33378 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33379 }
33380
33381
33382
33383
33384
33385
33386
33387 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33388 gensupport.SetOptions(c.urlParams_, opts...)
33389 res, err := c.doRequest("json")
33390 if res != nil && res.StatusCode == http.StatusNotModified {
33391 if res.Body != nil {
33392 res.Body.Close()
33393 }
33394 return nil, gensupport.WrapError(&googleapi.Error{
33395 Code: res.StatusCode,
33396 Header: res.Header,
33397 })
33398 }
33399 if err != nil {
33400 return nil, err
33401 }
33402 defer googleapi.CloseBody(res)
33403 if err := googleapi.CheckResponse(res); err != nil {
33404 return nil, gensupport.WrapError(err)
33405 }
33406 ret := &GoogleLongrunningOperation{
33407 ServerResponse: googleapi.ServerResponse{
33408 Header: res.Header,
33409 HTTPStatusCode: res.StatusCode,
33410 },
33411 }
33412 target := &ret
33413 if err := gensupport.DecodeResponse(target, res); err != nil {
33414 return nil, err
33415 }
33416 return ret, nil
33417 }
33418
33419 type ProjectsLocationsDeleteAgentCall struct {
33420 s *Service
33421 parent string
33422 urlParams_ gensupport.URLParams
33423 ctx_ context.Context
33424 header_ http.Header
33425 }
33426
33427
33428
33429
33430
33431 func (r *ProjectsLocationsService) DeleteAgent(parent string) *ProjectsLocationsDeleteAgentCall {
33432 c := &ProjectsLocationsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33433 c.parent = parent
33434 return c
33435 }
33436
33437
33438
33439
33440 func (c *ProjectsLocationsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteAgentCall {
33441 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33442 return c
33443 }
33444
33445
33446 func (c *ProjectsLocationsDeleteAgentCall) Context(ctx context.Context) *ProjectsLocationsDeleteAgentCall {
33447 c.ctx_ = ctx
33448 return c
33449 }
33450
33451
33452
33453 func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header {
33454 if c.header_ == nil {
33455 c.header_ = make(http.Header)
33456 }
33457 return c.header_
33458 }
33459
33460 func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
33461 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33462 var body io.Reader = nil
33463 c.urlParams_.Set("alt", alt)
33464 c.urlParams_.Set("prettyPrint", "false")
33465 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
33466 urls += "?" + c.urlParams_.Encode()
33467 req, err := http.NewRequest("DELETE", urls, body)
33468 if err != nil {
33469 return nil, err
33470 }
33471 req.Header = reqHeaders
33472 googleapi.Expand(req.URL, map[string]string{
33473 "parent": c.parent,
33474 })
33475 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33476 }
33477
33478
33479
33480
33481
33482
33483
33484 func (c *ProjectsLocationsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
33485 gensupport.SetOptions(c.urlParams_, opts...)
33486 res, err := c.doRequest("json")
33487 if res != nil && res.StatusCode == http.StatusNotModified {
33488 if res.Body != nil {
33489 res.Body.Close()
33490 }
33491 return nil, gensupport.WrapError(&googleapi.Error{
33492 Code: res.StatusCode,
33493 Header: res.Header,
33494 })
33495 }
33496 if err != nil {
33497 return nil, err
33498 }
33499 defer googleapi.CloseBody(res)
33500 if err := googleapi.CheckResponse(res); err != nil {
33501 return nil, gensupport.WrapError(err)
33502 }
33503 ret := &GoogleProtobufEmpty{
33504 ServerResponse: googleapi.ServerResponse{
33505 Header: res.Header,
33506 HTTPStatusCode: res.StatusCode,
33507 },
33508 }
33509 target := &ret
33510 if err := gensupport.DecodeResponse(target, res); err != nil {
33511 return nil, err
33512 }
33513 return ret, nil
33514 }
33515
33516 type ProjectsLocationsGetCall struct {
33517 s *Service
33518 name string
33519 urlParams_ gensupport.URLParams
33520 ifNoneMatch_ string
33521 ctx_ context.Context
33522 header_ http.Header
33523 }
33524
33525
33526
33527
33528 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
33529 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33530 c.name = name
33531 return c
33532 }
33533
33534
33535
33536
33537 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
33538 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33539 return c
33540 }
33541
33542
33543
33544
33545 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
33546 c.ifNoneMatch_ = entityTag
33547 return c
33548 }
33549
33550
33551 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
33552 c.ctx_ = ctx
33553 return c
33554 }
33555
33556
33557
33558 func (c *ProjectsLocationsGetCall) Header() http.Header {
33559 if c.header_ == nil {
33560 c.header_ = make(http.Header)
33561 }
33562 return c.header_
33563 }
33564
33565 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
33566 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33567 if c.ifNoneMatch_ != "" {
33568 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33569 }
33570 var body io.Reader = nil
33571 c.urlParams_.Set("alt", alt)
33572 c.urlParams_.Set("prettyPrint", "false")
33573 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
33574 urls += "?" + c.urlParams_.Encode()
33575 req, err := http.NewRequest("GET", urls, body)
33576 if err != nil {
33577 return nil, err
33578 }
33579 req.Header = reqHeaders
33580 googleapi.Expand(req.URL, map[string]string{
33581 "name": c.name,
33582 })
33583 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33584 }
33585
33586
33587
33588
33589
33590
33591
33592 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
33593 gensupport.SetOptions(c.urlParams_, opts...)
33594 res, err := c.doRequest("json")
33595 if res != nil && res.StatusCode == http.StatusNotModified {
33596 if res.Body != nil {
33597 res.Body.Close()
33598 }
33599 return nil, gensupport.WrapError(&googleapi.Error{
33600 Code: res.StatusCode,
33601 Header: res.Header,
33602 })
33603 }
33604 if err != nil {
33605 return nil, err
33606 }
33607 defer googleapi.CloseBody(res)
33608 if err := googleapi.CheckResponse(res); err != nil {
33609 return nil, gensupport.WrapError(err)
33610 }
33611 ret := &GoogleCloudLocationLocation{
33612 ServerResponse: googleapi.ServerResponse{
33613 Header: res.Header,
33614 HTTPStatusCode: res.StatusCode,
33615 },
33616 }
33617 target := &ret
33618 if err := gensupport.DecodeResponse(target, res); err != nil {
33619 return nil, err
33620 }
33621 return ret, nil
33622 }
33623
33624 type ProjectsLocationsGetAgentCall struct {
33625 s *Service
33626 parent string
33627 urlParams_ gensupport.URLParams
33628 ifNoneMatch_ string
33629 ctx_ context.Context
33630 header_ http.Header
33631 }
33632
33633
33634
33635
33636
33637 func (r *ProjectsLocationsService) GetAgent(parent string) *ProjectsLocationsGetAgentCall {
33638 c := &ProjectsLocationsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33639 c.parent = parent
33640 return c
33641 }
33642
33643
33644
33645
33646 func (c *ProjectsLocationsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAgentCall {
33647 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33648 return c
33649 }
33650
33651
33652
33653
33654 func (c *ProjectsLocationsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAgentCall {
33655 c.ifNoneMatch_ = entityTag
33656 return c
33657 }
33658
33659
33660 func (c *ProjectsLocationsGetAgentCall) Context(ctx context.Context) *ProjectsLocationsGetAgentCall {
33661 c.ctx_ = ctx
33662 return c
33663 }
33664
33665
33666
33667 func (c *ProjectsLocationsGetAgentCall) Header() http.Header {
33668 if c.header_ == nil {
33669 c.header_ = make(http.Header)
33670 }
33671 return c.header_
33672 }
33673
33674 func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) {
33675 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33676 if c.ifNoneMatch_ != "" {
33677 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33678 }
33679 var body io.Reader = nil
33680 c.urlParams_.Set("alt", alt)
33681 c.urlParams_.Set("prettyPrint", "false")
33682 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
33683 urls += "?" + c.urlParams_.Encode()
33684 req, err := http.NewRequest("GET", urls, body)
33685 if err != nil {
33686 return nil, err
33687 }
33688 req.Header = reqHeaders
33689 googleapi.Expand(req.URL, map[string]string{
33690 "parent": c.parent,
33691 })
33692 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33693 }
33694
33695
33696
33697
33698
33699
33700
33701 func (c *ProjectsLocationsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
33702 gensupport.SetOptions(c.urlParams_, opts...)
33703 res, err := c.doRequest("json")
33704 if res != nil && res.StatusCode == http.StatusNotModified {
33705 if res.Body != nil {
33706 res.Body.Close()
33707 }
33708 return nil, gensupport.WrapError(&googleapi.Error{
33709 Code: res.StatusCode,
33710 Header: res.Header,
33711 })
33712 }
33713 if err != nil {
33714 return nil, err
33715 }
33716 defer googleapi.CloseBody(res)
33717 if err := googleapi.CheckResponse(res); err != nil {
33718 return nil, gensupport.WrapError(err)
33719 }
33720 ret := &GoogleCloudDialogflowV2Agent{
33721 ServerResponse: googleapi.ServerResponse{
33722 Header: res.Header,
33723 HTTPStatusCode: res.StatusCode,
33724 },
33725 }
33726 target := &ret
33727 if err := gensupport.DecodeResponse(target, res); err != nil {
33728 return nil, err
33729 }
33730 return ret, nil
33731 }
33732
33733 type ProjectsLocationsListCall struct {
33734 s *Service
33735 name string
33736 urlParams_ gensupport.URLParams
33737 ifNoneMatch_ string
33738 ctx_ context.Context
33739 header_ http.Header
33740 }
33741
33742
33743
33744
33745 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
33746 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33747 c.name = name
33748 return c
33749 }
33750
33751
33752
33753
33754
33755 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
33756 c.urlParams_.Set("filter", filter)
33757 return c
33758 }
33759
33760
33761
33762 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
33763 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33764 return c
33765 }
33766
33767
33768
33769
33770 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
33771 c.urlParams_.Set("pageToken", pageToken)
33772 return c
33773 }
33774
33775
33776
33777
33778 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
33779 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33780 return c
33781 }
33782
33783
33784
33785
33786 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
33787 c.ifNoneMatch_ = entityTag
33788 return c
33789 }
33790
33791
33792 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
33793 c.ctx_ = ctx
33794 return c
33795 }
33796
33797
33798
33799 func (c *ProjectsLocationsListCall) Header() http.Header {
33800 if c.header_ == nil {
33801 c.header_ = make(http.Header)
33802 }
33803 return c.header_
33804 }
33805
33806 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
33807 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33808 if c.ifNoneMatch_ != "" {
33809 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33810 }
33811 var body io.Reader = nil
33812 c.urlParams_.Set("alt", alt)
33813 c.urlParams_.Set("prettyPrint", "false")
33814 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/locations")
33815 urls += "?" + c.urlParams_.Encode()
33816 req, err := http.NewRequest("GET", urls, body)
33817 if err != nil {
33818 return nil, err
33819 }
33820 req.Header = reqHeaders
33821 googleapi.Expand(req.URL, map[string]string{
33822 "name": c.name,
33823 })
33824 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33825 }
33826
33827
33828
33829
33830
33831
33832
33833 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
33834 gensupport.SetOptions(c.urlParams_, opts...)
33835 res, err := c.doRequest("json")
33836 if res != nil && res.StatusCode == http.StatusNotModified {
33837 if res.Body != nil {
33838 res.Body.Close()
33839 }
33840 return nil, gensupport.WrapError(&googleapi.Error{
33841 Code: res.StatusCode,
33842 Header: res.Header,
33843 })
33844 }
33845 if err != nil {
33846 return nil, err
33847 }
33848 defer googleapi.CloseBody(res)
33849 if err := googleapi.CheckResponse(res); err != nil {
33850 return nil, gensupport.WrapError(err)
33851 }
33852 ret := &GoogleCloudLocationListLocationsResponse{
33853 ServerResponse: googleapi.ServerResponse{
33854 Header: res.Header,
33855 HTTPStatusCode: res.StatusCode,
33856 },
33857 }
33858 target := &ret
33859 if err := gensupport.DecodeResponse(target, res); err != nil {
33860 return nil, err
33861 }
33862 return ret, nil
33863 }
33864
33865
33866
33867
33868 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
33869 c.ctx_ = ctx
33870 defer c.PageToken(c.urlParams_.Get("pageToken"))
33871 for {
33872 x, err := c.Do()
33873 if err != nil {
33874 return err
33875 }
33876 if err := f(x); err != nil {
33877 return err
33878 }
33879 if x.NextPageToken == "" {
33880 return nil
33881 }
33882 c.PageToken(x.NextPageToken)
33883 }
33884 }
33885
33886 type ProjectsLocationsSetAgentCall struct {
33887 s *Service
33888 parent string
33889 googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent
33890 urlParams_ gensupport.URLParams
33891 ctx_ context.Context
33892 header_ http.Header
33893 }
33894
33895
33896
33897
33898
33899
33900 func (r *ProjectsLocationsService) SetAgent(parent string, googleclouddialogflowv2agent *GoogleCloudDialogflowV2Agent) *ProjectsLocationsSetAgentCall {
33901 c := &ProjectsLocationsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33902 c.parent = parent
33903 c.googleclouddialogflowv2agent = googleclouddialogflowv2agent
33904 return c
33905 }
33906
33907
33908
33909 func (c *ProjectsLocationsSetAgentCall) UpdateMask(updateMask string) *ProjectsLocationsSetAgentCall {
33910 c.urlParams_.Set("updateMask", updateMask)
33911 return c
33912 }
33913
33914
33915
33916
33917 func (c *ProjectsLocationsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetAgentCall {
33918 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33919 return c
33920 }
33921
33922
33923 func (c *ProjectsLocationsSetAgentCall) Context(ctx context.Context) *ProjectsLocationsSetAgentCall {
33924 c.ctx_ = ctx
33925 return c
33926 }
33927
33928
33929
33930 func (c *ProjectsLocationsSetAgentCall) Header() http.Header {
33931 if c.header_ == nil {
33932 c.header_ = make(http.Header)
33933 }
33934 return c.header_
33935 }
33936
33937 func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) {
33938 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33939 var body io.Reader = nil
33940 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2agent)
33941 if err != nil {
33942 return nil, err
33943 }
33944 c.urlParams_.Set("alt", alt)
33945 c.urlParams_.Set("prettyPrint", "false")
33946 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent")
33947 urls += "?" + c.urlParams_.Encode()
33948 req, err := http.NewRequest("POST", urls, body)
33949 if err != nil {
33950 return nil, err
33951 }
33952 req.Header = reqHeaders
33953 googleapi.Expand(req.URL, map[string]string{
33954 "parent": c.parent,
33955 })
33956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33957 }
33958
33959
33960
33961
33962
33963
33964
33965 func (c *ProjectsLocationsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Agent, error) {
33966 gensupport.SetOptions(c.urlParams_, opts...)
33967 res, err := c.doRequest("json")
33968 if res != nil && res.StatusCode == http.StatusNotModified {
33969 if res.Body != nil {
33970 res.Body.Close()
33971 }
33972 return nil, gensupport.WrapError(&googleapi.Error{
33973 Code: res.StatusCode,
33974 Header: res.Header,
33975 })
33976 }
33977 if err != nil {
33978 return nil, err
33979 }
33980 defer googleapi.CloseBody(res)
33981 if err := googleapi.CheckResponse(res); err != nil {
33982 return nil, gensupport.WrapError(err)
33983 }
33984 ret := &GoogleCloudDialogflowV2Agent{
33985 ServerResponse: googleapi.ServerResponse{
33986 Header: res.Header,
33987 HTTPStatusCode: res.StatusCode,
33988 },
33989 }
33990 target := &ret
33991 if err := gensupport.DecodeResponse(target, res); err != nil {
33992 return nil, err
33993 }
33994 return ret, nil
33995 }
33996
33997 type ProjectsLocationsAgentExportCall struct {
33998 s *Service
33999 parent string
34000 googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest
34001 urlParams_ gensupport.URLParams
34002 ctx_ context.Context
34003 header_ http.Header
34004 }
34005
34006
34007
34008
34009
34010
34011
34012
34013
34014
34015
34016 func (r *ProjectsLocationsAgentService) Export(parent string, googleclouddialogflowv2exportagentrequest *GoogleCloudDialogflowV2ExportAgentRequest) *ProjectsLocationsAgentExportCall {
34017 c := &ProjectsLocationsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34018 c.parent = parent
34019 c.googleclouddialogflowv2exportagentrequest = googleclouddialogflowv2exportagentrequest
34020 return c
34021 }
34022
34023
34024
34025
34026 func (c *ProjectsLocationsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentExportCall {
34027 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34028 return c
34029 }
34030
34031
34032 func (c *ProjectsLocationsAgentExportCall) Context(ctx context.Context) *ProjectsLocationsAgentExportCall {
34033 c.ctx_ = ctx
34034 return c
34035 }
34036
34037
34038
34039 func (c *ProjectsLocationsAgentExportCall) Header() http.Header {
34040 if c.header_ == nil {
34041 c.header_ = make(http.Header)
34042 }
34043 return c.header_
34044 }
34045
34046 func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) {
34047 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34048 var body io.Reader = nil
34049 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportagentrequest)
34050 if err != nil {
34051 return nil, err
34052 }
34053 c.urlParams_.Set("alt", alt)
34054 c.urlParams_.Set("prettyPrint", "false")
34055 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:export")
34056 urls += "?" + c.urlParams_.Encode()
34057 req, err := http.NewRequest("POST", urls, body)
34058 if err != nil {
34059 return nil, err
34060 }
34061 req.Header = reqHeaders
34062 googleapi.Expand(req.URL, map[string]string{
34063 "parent": c.parent,
34064 })
34065 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34066 }
34067
34068
34069
34070
34071
34072
34073
34074 func (c *ProjectsLocationsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34075 gensupport.SetOptions(c.urlParams_, opts...)
34076 res, err := c.doRequest("json")
34077 if res != nil && res.StatusCode == http.StatusNotModified {
34078 if res.Body != nil {
34079 res.Body.Close()
34080 }
34081 return nil, gensupport.WrapError(&googleapi.Error{
34082 Code: res.StatusCode,
34083 Header: res.Header,
34084 })
34085 }
34086 if err != nil {
34087 return nil, err
34088 }
34089 defer googleapi.CloseBody(res)
34090 if err := googleapi.CheckResponse(res); err != nil {
34091 return nil, gensupport.WrapError(err)
34092 }
34093 ret := &GoogleLongrunningOperation{
34094 ServerResponse: googleapi.ServerResponse{
34095 Header: res.Header,
34096 HTTPStatusCode: res.StatusCode,
34097 },
34098 }
34099 target := &ret
34100 if err := gensupport.DecodeResponse(target, res); err != nil {
34101 return nil, err
34102 }
34103 return ret, nil
34104 }
34105
34106 type ProjectsLocationsAgentGetFulfillmentCall struct {
34107 s *Service
34108 name string
34109 urlParams_ gensupport.URLParams
34110 ifNoneMatch_ string
34111 ctx_ context.Context
34112 header_ http.Header
34113 }
34114
34115
34116
34117
34118 func (r *ProjectsLocationsAgentService) GetFulfillment(name string) *ProjectsLocationsAgentGetFulfillmentCall {
34119 c := &ProjectsLocationsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34120 c.name = name
34121 return c
34122 }
34123
34124
34125
34126
34127 func (c *ProjectsLocationsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetFulfillmentCall {
34128 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34129 return c
34130 }
34131
34132
34133
34134
34135 func (c *ProjectsLocationsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetFulfillmentCall {
34136 c.ifNoneMatch_ = entityTag
34137 return c
34138 }
34139
34140
34141 func (c *ProjectsLocationsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentGetFulfillmentCall {
34142 c.ctx_ = ctx
34143 return c
34144 }
34145
34146
34147
34148 func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header {
34149 if c.header_ == nil {
34150 c.header_ = make(http.Header)
34151 }
34152 return c.header_
34153 }
34154
34155 func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
34156 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34157 if c.ifNoneMatch_ != "" {
34158 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34159 }
34160 var body io.Reader = nil
34161 c.urlParams_.Set("alt", alt)
34162 c.urlParams_.Set("prettyPrint", "false")
34163 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
34164 urls += "?" + c.urlParams_.Encode()
34165 req, err := http.NewRequest("GET", urls, body)
34166 if err != nil {
34167 return nil, err
34168 }
34169 req.Header = reqHeaders
34170 googleapi.Expand(req.URL, map[string]string{
34171 "name": c.name,
34172 })
34173 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34174 }
34175
34176
34177
34178
34179
34180
34181
34182 func (c *ProjectsLocationsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
34183 gensupport.SetOptions(c.urlParams_, opts...)
34184 res, err := c.doRequest("json")
34185 if res != nil && res.StatusCode == http.StatusNotModified {
34186 if res.Body != nil {
34187 res.Body.Close()
34188 }
34189 return nil, gensupport.WrapError(&googleapi.Error{
34190 Code: res.StatusCode,
34191 Header: res.Header,
34192 })
34193 }
34194 if err != nil {
34195 return nil, err
34196 }
34197 defer googleapi.CloseBody(res)
34198 if err := googleapi.CheckResponse(res); err != nil {
34199 return nil, gensupport.WrapError(err)
34200 }
34201 ret := &GoogleCloudDialogflowV2Fulfillment{
34202 ServerResponse: googleapi.ServerResponse{
34203 Header: res.Header,
34204 HTTPStatusCode: res.StatusCode,
34205 },
34206 }
34207 target := &ret
34208 if err := gensupport.DecodeResponse(target, res); err != nil {
34209 return nil, err
34210 }
34211 return ret, nil
34212 }
34213
34214 type ProjectsLocationsAgentGetValidationResultCall struct {
34215 s *Service
34216 parent string
34217 urlParams_ gensupport.URLParams
34218 ifNoneMatch_ string
34219 ctx_ context.Context
34220 header_ http.Header
34221 }
34222
34223
34224
34225
34226
34227
34228
34229 func (r *ProjectsLocationsAgentService) GetValidationResult(parent string) *ProjectsLocationsAgentGetValidationResultCall {
34230 c := &ProjectsLocationsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34231 c.parent = parent
34232 return c
34233 }
34234
34235
34236
34237
34238
34239
34240 func (c *ProjectsLocationsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentGetValidationResultCall {
34241 c.urlParams_.Set("languageCode", languageCode)
34242 return c
34243 }
34244
34245
34246
34247
34248 func (c *ProjectsLocationsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetValidationResultCall {
34249 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34250 return c
34251 }
34252
34253
34254
34255
34256 func (c *ProjectsLocationsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetValidationResultCall {
34257 c.ifNoneMatch_ = entityTag
34258 return c
34259 }
34260
34261
34262 func (c *ProjectsLocationsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentGetValidationResultCall {
34263 c.ctx_ = ctx
34264 return c
34265 }
34266
34267
34268
34269 func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header {
34270 if c.header_ == nil {
34271 c.header_ = make(http.Header)
34272 }
34273 return c.header_
34274 }
34275
34276 func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
34277 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34278 if c.ifNoneMatch_ != "" {
34279 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34280 }
34281 var body io.Reader = nil
34282 c.urlParams_.Set("alt", alt)
34283 c.urlParams_.Set("prettyPrint", "false")
34284 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent/validationResult")
34285 urls += "?" + c.urlParams_.Encode()
34286 req, err := http.NewRequest("GET", urls, body)
34287 if err != nil {
34288 return nil, err
34289 }
34290 req.Header = reqHeaders
34291 googleapi.Expand(req.URL, map[string]string{
34292 "parent": c.parent,
34293 })
34294 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34295 }
34296
34297
34298
34299
34300
34301
34302
34303 func (c *ProjectsLocationsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ValidationResult, error) {
34304 gensupport.SetOptions(c.urlParams_, opts...)
34305 res, err := c.doRequest("json")
34306 if res != nil && res.StatusCode == http.StatusNotModified {
34307 if res.Body != nil {
34308 res.Body.Close()
34309 }
34310 return nil, gensupport.WrapError(&googleapi.Error{
34311 Code: res.StatusCode,
34312 Header: res.Header,
34313 })
34314 }
34315 if err != nil {
34316 return nil, err
34317 }
34318 defer googleapi.CloseBody(res)
34319 if err := googleapi.CheckResponse(res); err != nil {
34320 return nil, gensupport.WrapError(err)
34321 }
34322 ret := &GoogleCloudDialogflowV2ValidationResult{
34323 ServerResponse: googleapi.ServerResponse{
34324 Header: res.Header,
34325 HTTPStatusCode: res.StatusCode,
34326 },
34327 }
34328 target := &ret
34329 if err := gensupport.DecodeResponse(target, res); err != nil {
34330 return nil, err
34331 }
34332 return ret, nil
34333 }
34334
34335 type ProjectsLocationsAgentImportCall struct {
34336 s *Service
34337 parent string
34338 googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest
34339 urlParams_ gensupport.URLParams
34340 ctx_ context.Context
34341 header_ http.Header
34342 }
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353
34354
34355
34356
34357
34358
34359
34360
34361
34362
34363
34364
34365 func (r *ProjectsLocationsAgentService) Import(parent string, googleclouddialogflowv2importagentrequest *GoogleCloudDialogflowV2ImportAgentRequest) *ProjectsLocationsAgentImportCall {
34366 c := &ProjectsLocationsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34367 c.parent = parent
34368 c.googleclouddialogflowv2importagentrequest = googleclouddialogflowv2importagentrequest
34369 return c
34370 }
34371
34372
34373
34374
34375 func (c *ProjectsLocationsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentImportCall {
34376 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34377 return c
34378 }
34379
34380
34381 func (c *ProjectsLocationsAgentImportCall) Context(ctx context.Context) *ProjectsLocationsAgentImportCall {
34382 c.ctx_ = ctx
34383 return c
34384 }
34385
34386
34387
34388 func (c *ProjectsLocationsAgentImportCall) Header() http.Header {
34389 if c.header_ == nil {
34390 c.header_ = make(http.Header)
34391 }
34392 return c.header_
34393 }
34394
34395 func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) {
34396 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34397 var body io.Reader = nil
34398 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importagentrequest)
34399 if err != nil {
34400 return nil, err
34401 }
34402 c.urlParams_.Set("alt", alt)
34403 c.urlParams_.Set("prettyPrint", "false")
34404 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:import")
34405 urls += "?" + c.urlParams_.Encode()
34406 req, err := http.NewRequest("POST", urls, body)
34407 if err != nil {
34408 return nil, err
34409 }
34410 req.Header = reqHeaders
34411 googleapi.Expand(req.URL, map[string]string{
34412 "parent": c.parent,
34413 })
34414 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34415 }
34416
34417
34418
34419
34420
34421
34422
34423 func (c *ProjectsLocationsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34424 gensupport.SetOptions(c.urlParams_, opts...)
34425 res, err := c.doRequest("json")
34426 if res != nil && res.StatusCode == http.StatusNotModified {
34427 if res.Body != nil {
34428 res.Body.Close()
34429 }
34430 return nil, gensupport.WrapError(&googleapi.Error{
34431 Code: res.StatusCode,
34432 Header: res.Header,
34433 })
34434 }
34435 if err != nil {
34436 return nil, err
34437 }
34438 defer googleapi.CloseBody(res)
34439 if err := googleapi.CheckResponse(res); err != nil {
34440 return nil, gensupport.WrapError(err)
34441 }
34442 ret := &GoogleLongrunningOperation{
34443 ServerResponse: googleapi.ServerResponse{
34444 Header: res.Header,
34445 HTTPStatusCode: res.StatusCode,
34446 },
34447 }
34448 target := &ret
34449 if err := gensupport.DecodeResponse(target, res); err != nil {
34450 return nil, err
34451 }
34452 return ret, nil
34453 }
34454
34455 type ProjectsLocationsAgentRestoreCall struct {
34456 s *Service
34457 parent string
34458 googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest
34459 urlParams_ gensupport.URLParams
34460 ctx_ context.Context
34461 header_ http.Header
34462 }
34463
34464
34465
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478
34479
34480
34481
34482
34483
34484 func (r *ProjectsLocationsAgentService) Restore(parent string, googleclouddialogflowv2restoreagentrequest *GoogleCloudDialogflowV2RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall {
34485 c := &ProjectsLocationsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34486 c.parent = parent
34487 c.googleclouddialogflowv2restoreagentrequest = googleclouddialogflowv2restoreagentrequest
34488 return c
34489 }
34490
34491
34492
34493
34494 func (c *ProjectsLocationsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentRestoreCall {
34495 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34496 return c
34497 }
34498
34499
34500 func (c *ProjectsLocationsAgentRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentRestoreCall {
34501 c.ctx_ = ctx
34502 return c
34503 }
34504
34505
34506
34507 func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header {
34508 if c.header_ == nil {
34509 c.header_ = make(http.Header)
34510 }
34511 return c.header_
34512 }
34513
34514 func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
34515 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34516 var body io.Reader = nil
34517 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2restoreagentrequest)
34518 if err != nil {
34519 return nil, err
34520 }
34521 c.urlParams_.Set("alt", alt)
34522 c.urlParams_.Set("prettyPrint", "false")
34523 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:restore")
34524 urls += "?" + c.urlParams_.Encode()
34525 req, err := http.NewRequest("POST", urls, body)
34526 if err != nil {
34527 return nil, err
34528 }
34529 req.Header = reqHeaders
34530 googleapi.Expand(req.URL, map[string]string{
34531 "parent": c.parent,
34532 })
34533 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34534 }
34535
34536
34537
34538
34539
34540
34541
34542 func (c *ProjectsLocationsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34543 gensupport.SetOptions(c.urlParams_, opts...)
34544 res, err := c.doRequest("json")
34545 if res != nil && res.StatusCode == http.StatusNotModified {
34546 if res.Body != nil {
34547 res.Body.Close()
34548 }
34549 return nil, gensupport.WrapError(&googleapi.Error{
34550 Code: res.StatusCode,
34551 Header: res.Header,
34552 })
34553 }
34554 if err != nil {
34555 return nil, err
34556 }
34557 defer googleapi.CloseBody(res)
34558 if err := googleapi.CheckResponse(res); err != nil {
34559 return nil, gensupport.WrapError(err)
34560 }
34561 ret := &GoogleLongrunningOperation{
34562 ServerResponse: googleapi.ServerResponse{
34563 Header: res.Header,
34564 HTTPStatusCode: res.StatusCode,
34565 },
34566 }
34567 target := &ret
34568 if err := gensupport.DecodeResponse(target, res); err != nil {
34569 return nil, err
34570 }
34571 return ret, nil
34572 }
34573
34574 type ProjectsLocationsAgentSearchCall struct {
34575 s *Service
34576 parent string
34577 urlParams_ gensupport.URLParams
34578 ifNoneMatch_ string
34579 ctx_ context.Context
34580 header_ http.Header
34581 }
34582
34583
34584
34585
34586
34587
34588
34589
34590
34591 func (r *ProjectsLocationsAgentService) Search(parent string) *ProjectsLocationsAgentSearchCall {
34592 c := &ProjectsLocationsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34593 c.parent = parent
34594 return c
34595 }
34596
34597
34598
34599 func (c *ProjectsLocationsAgentSearchCall) PageSize(pageSize int64) *ProjectsLocationsAgentSearchCall {
34600 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34601 return c
34602 }
34603
34604
34605
34606 func (c *ProjectsLocationsAgentSearchCall) PageToken(pageToken string) *ProjectsLocationsAgentSearchCall {
34607 c.urlParams_.Set("pageToken", pageToken)
34608 return c
34609 }
34610
34611
34612
34613
34614 func (c *ProjectsLocationsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSearchCall {
34615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34616 return c
34617 }
34618
34619
34620
34621
34622 func (c *ProjectsLocationsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSearchCall {
34623 c.ifNoneMatch_ = entityTag
34624 return c
34625 }
34626
34627
34628 func (c *ProjectsLocationsAgentSearchCall) Context(ctx context.Context) *ProjectsLocationsAgentSearchCall {
34629 c.ctx_ = ctx
34630 return c
34631 }
34632
34633
34634
34635 func (c *ProjectsLocationsAgentSearchCall) Header() http.Header {
34636 if c.header_ == nil {
34637 c.header_ = make(http.Header)
34638 }
34639 return c.header_
34640 }
34641
34642 func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
34643 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34644 if c.ifNoneMatch_ != "" {
34645 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34646 }
34647 var body io.Reader = nil
34648 c.urlParams_.Set("alt", alt)
34649 c.urlParams_.Set("prettyPrint", "false")
34650 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:search")
34651 urls += "?" + c.urlParams_.Encode()
34652 req, err := http.NewRequest("GET", urls, body)
34653 if err != nil {
34654 return nil, err
34655 }
34656 req.Header = reqHeaders
34657 googleapi.Expand(req.URL, map[string]string{
34658 "parent": c.parent,
34659 })
34660 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34661 }
34662
34663
34664
34665
34666
34667
34668
34669 func (c *ProjectsLocationsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchAgentsResponse, error) {
34670 gensupport.SetOptions(c.urlParams_, opts...)
34671 res, err := c.doRequest("json")
34672 if res != nil && res.StatusCode == http.StatusNotModified {
34673 if res.Body != nil {
34674 res.Body.Close()
34675 }
34676 return nil, gensupport.WrapError(&googleapi.Error{
34677 Code: res.StatusCode,
34678 Header: res.Header,
34679 })
34680 }
34681 if err != nil {
34682 return nil, err
34683 }
34684 defer googleapi.CloseBody(res)
34685 if err := googleapi.CheckResponse(res); err != nil {
34686 return nil, gensupport.WrapError(err)
34687 }
34688 ret := &GoogleCloudDialogflowV2SearchAgentsResponse{
34689 ServerResponse: googleapi.ServerResponse{
34690 Header: res.Header,
34691 HTTPStatusCode: res.StatusCode,
34692 },
34693 }
34694 target := &ret
34695 if err := gensupport.DecodeResponse(target, res); err != nil {
34696 return nil, err
34697 }
34698 return ret, nil
34699 }
34700
34701
34702
34703
34704 func (c *ProjectsLocationsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2SearchAgentsResponse) error) error {
34705 c.ctx_ = ctx
34706 defer c.PageToken(c.urlParams_.Get("pageToken"))
34707 for {
34708 x, err := c.Do()
34709 if err != nil {
34710 return err
34711 }
34712 if err := f(x); err != nil {
34713 return err
34714 }
34715 if x.NextPageToken == "" {
34716 return nil
34717 }
34718 c.PageToken(x.NextPageToken)
34719 }
34720 }
34721
34722 type ProjectsLocationsAgentTrainCall struct {
34723 s *Service
34724 parent string
34725 googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest
34726 urlParams_ gensupport.URLParams
34727 ctx_ context.Context
34728 header_ http.Header
34729 }
34730
34731
34732
34733
34734
34735
34736
34737
34738
34739
34740
34741
34742
34743
34744 func (r *ProjectsLocationsAgentService) Train(parent string, googleclouddialogflowv2trainagentrequest *GoogleCloudDialogflowV2TrainAgentRequest) *ProjectsLocationsAgentTrainCall {
34745 c := &ProjectsLocationsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34746 c.parent = parent
34747 c.googleclouddialogflowv2trainagentrequest = googleclouddialogflowv2trainagentrequest
34748 return c
34749 }
34750
34751
34752
34753
34754 func (c *ProjectsLocationsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentTrainCall {
34755 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34756 return c
34757 }
34758
34759
34760 func (c *ProjectsLocationsAgentTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentTrainCall {
34761 c.ctx_ = ctx
34762 return c
34763 }
34764
34765
34766
34767 func (c *ProjectsLocationsAgentTrainCall) Header() http.Header {
34768 if c.header_ == nil {
34769 c.header_ = make(http.Header)
34770 }
34771 return c.header_
34772 }
34773
34774 func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
34775 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34776 var body io.Reader = nil
34777 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2trainagentrequest)
34778 if err != nil {
34779 return nil, err
34780 }
34781 c.urlParams_.Set("alt", alt)
34782 c.urlParams_.Set("prettyPrint", "false")
34783 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/agent:train")
34784 urls += "?" + c.urlParams_.Encode()
34785 req, err := http.NewRequest("POST", urls, body)
34786 if err != nil {
34787 return nil, err
34788 }
34789 req.Header = reqHeaders
34790 googleapi.Expand(req.URL, map[string]string{
34791 "parent": c.parent,
34792 })
34793 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34794 }
34795
34796
34797
34798
34799
34800
34801
34802 func (c *ProjectsLocationsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34803 gensupport.SetOptions(c.urlParams_, opts...)
34804 res, err := c.doRequest("json")
34805 if res != nil && res.StatusCode == http.StatusNotModified {
34806 if res.Body != nil {
34807 res.Body.Close()
34808 }
34809 return nil, gensupport.WrapError(&googleapi.Error{
34810 Code: res.StatusCode,
34811 Header: res.Header,
34812 })
34813 }
34814 if err != nil {
34815 return nil, err
34816 }
34817 defer googleapi.CloseBody(res)
34818 if err := googleapi.CheckResponse(res); err != nil {
34819 return nil, gensupport.WrapError(err)
34820 }
34821 ret := &GoogleLongrunningOperation{
34822 ServerResponse: googleapi.ServerResponse{
34823 Header: res.Header,
34824 HTTPStatusCode: res.StatusCode,
34825 },
34826 }
34827 target := &ret
34828 if err := gensupport.DecodeResponse(target, res); err != nil {
34829 return nil, err
34830 }
34831 return ret, nil
34832 }
34833
34834 type ProjectsLocationsAgentUpdateFulfillmentCall struct {
34835 s *Service
34836 nameid string
34837 googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment
34838 urlParams_ gensupport.URLParams
34839 ctx_ context.Context
34840 header_ http.Header
34841 }
34842
34843
34844
34845
34846
34847
34848 func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2fulfillment *GoogleCloudDialogflowV2Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall {
34849 c := &ProjectsLocationsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34850 c.nameid = nameid
34851 c.googleclouddialogflowv2fulfillment = googleclouddialogflowv2fulfillment
34852 return c
34853 }
34854
34855
34856
34857
34858 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsLocationsAgentUpdateFulfillmentCall {
34859 c.urlParams_.Set("updateMask", updateMask)
34860 return c
34861 }
34862
34863
34864
34865
34866 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentUpdateFulfillmentCall {
34867 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34868 return c
34869 }
34870
34871
34872 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentUpdateFulfillmentCall {
34873 c.ctx_ = ctx
34874 return c
34875 }
34876
34877
34878
34879 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header {
34880 if c.header_ == nil {
34881 c.header_ = make(http.Header)
34882 }
34883 return c.header_
34884 }
34885
34886 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
34887 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34888 var body io.Reader = nil
34889 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2fulfillment)
34890 if err != nil {
34891 return nil, err
34892 }
34893 c.urlParams_.Set("alt", alt)
34894 c.urlParams_.Set("prettyPrint", "false")
34895 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
34896 urls += "?" + c.urlParams_.Encode()
34897 req, err := http.NewRequest("PATCH", urls, body)
34898 if err != nil {
34899 return nil, err
34900 }
34901 req.Header = reqHeaders
34902 googleapi.Expand(req.URL, map[string]string{
34903 "name": c.nameid,
34904 })
34905 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34906 }
34907
34908
34909
34910
34911
34912
34913
34914 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Fulfillment, error) {
34915 gensupport.SetOptions(c.urlParams_, opts...)
34916 res, err := c.doRequest("json")
34917 if res != nil && res.StatusCode == http.StatusNotModified {
34918 if res.Body != nil {
34919 res.Body.Close()
34920 }
34921 return nil, gensupport.WrapError(&googleapi.Error{
34922 Code: res.StatusCode,
34923 Header: res.Header,
34924 })
34925 }
34926 if err != nil {
34927 return nil, err
34928 }
34929 defer googleapi.CloseBody(res)
34930 if err := googleapi.CheckResponse(res); err != nil {
34931 return nil, gensupport.WrapError(err)
34932 }
34933 ret := &GoogleCloudDialogflowV2Fulfillment{
34934 ServerResponse: googleapi.ServerResponse{
34935 Header: res.Header,
34936 HTTPStatusCode: res.StatusCode,
34937 },
34938 }
34939 target := &ret
34940 if err := gensupport.DecodeResponse(target, res); err != nil {
34941 return nil, err
34942 }
34943 return ret, nil
34944 }
34945
34946 type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {
34947 s *Service
34948 parent string
34949 googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
34950 urlParams_ gensupport.URLParams
34951 ctx_ context.Context
34952 header_ http.Header
34953 }
34954
34955
34956
34957
34958
34959
34960
34961
34962
34963
34964
34965
34966
34967
34968
34969 func (r *ProjectsLocationsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitytypesrequest *GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
34970 c := &ProjectsLocationsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34971 c.parent = parent
34972 c.googleclouddialogflowv2batchdeleteentitytypesrequest = googleclouddialogflowv2batchdeleteentitytypesrequest
34973 return c
34974 }
34975
34976
34977
34978
34979 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
34980 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34981 return c
34982 }
34983
34984
34985 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
34986 c.ctx_ = ctx
34987 return c
34988 }
34989
34990
34991
34992 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header {
34993 if c.header_ == nil {
34994 c.header_ = make(http.Header)
34995 }
34996 return c.header_
34997 }
34998
34999 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
35000 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35001 var body io.Reader = nil
35002 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitytypesrequest)
35003 if err != nil {
35004 return nil, err
35005 }
35006 c.urlParams_.Set("alt", alt)
35007 c.urlParams_.Set("prettyPrint", "false")
35008 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchDelete")
35009 urls += "?" + c.urlParams_.Encode()
35010 req, err := http.NewRequest("POST", urls, body)
35011 if err != nil {
35012 return nil, err
35013 }
35014 req.Header = reqHeaders
35015 googleapi.Expand(req.URL, map[string]string{
35016 "parent": c.parent,
35017 })
35018 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35019 }
35020
35021
35022
35023
35024
35025
35026
35027 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35028 gensupport.SetOptions(c.urlParams_, opts...)
35029 res, err := c.doRequest("json")
35030 if res != nil && res.StatusCode == http.StatusNotModified {
35031 if res.Body != nil {
35032 res.Body.Close()
35033 }
35034 return nil, gensupport.WrapError(&googleapi.Error{
35035 Code: res.StatusCode,
35036 Header: res.Header,
35037 })
35038 }
35039 if err != nil {
35040 return nil, err
35041 }
35042 defer googleapi.CloseBody(res)
35043 if err := googleapi.CheckResponse(res); err != nil {
35044 return nil, gensupport.WrapError(err)
35045 }
35046 ret := &GoogleLongrunningOperation{
35047 ServerResponse: googleapi.ServerResponse{
35048 Header: res.Header,
35049 HTTPStatusCode: res.StatusCode,
35050 },
35051 }
35052 target := &ret
35053 if err := gensupport.DecodeResponse(target, res); err != nil {
35054 return nil, err
35055 }
35056 return ret, nil
35057 }
35058
35059 type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {
35060 s *Service
35061 parent string
35062 googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
35063 urlParams_ gensupport.URLParams
35064 ctx_ context.Context
35065 header_ http.Header
35066 }
35067
35068
35069
35070
35071
35072
35073
35074
35075
35076
35077
35078
35079
35080 func (r *ProjectsLocationsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitytypesrequest *GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
35081 c := &ProjectsLocationsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35082 c.parent = parent
35083 c.googleclouddialogflowv2batchupdateentitytypesrequest = googleclouddialogflowv2batchupdateentitytypesrequest
35084 return c
35085 }
35086
35087
35088
35089
35090 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
35091 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35092 return c
35093 }
35094
35095
35096 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
35097 c.ctx_ = ctx
35098 return c
35099 }
35100
35101
35102
35103 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header {
35104 if c.header_ == nil {
35105 c.header_ = make(http.Header)
35106 }
35107 return c.header_
35108 }
35109
35110 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
35111 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35112 var body io.Reader = nil
35113 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitytypesrequest)
35114 if err != nil {
35115 return nil, err
35116 }
35117 c.urlParams_.Set("alt", alt)
35118 c.urlParams_.Set("prettyPrint", "false")
35119 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes:batchUpdate")
35120 urls += "?" + c.urlParams_.Encode()
35121 req, err := http.NewRequest("POST", urls, body)
35122 if err != nil {
35123 return nil, err
35124 }
35125 req.Header = reqHeaders
35126 googleapi.Expand(req.URL, map[string]string{
35127 "parent": c.parent,
35128 })
35129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35130 }
35131
35132
35133
35134
35135
35136
35137
35138 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35139 gensupport.SetOptions(c.urlParams_, opts...)
35140 res, err := c.doRequest("json")
35141 if res != nil && res.StatusCode == http.StatusNotModified {
35142 if res.Body != nil {
35143 res.Body.Close()
35144 }
35145 return nil, gensupport.WrapError(&googleapi.Error{
35146 Code: res.StatusCode,
35147 Header: res.Header,
35148 })
35149 }
35150 if err != nil {
35151 return nil, err
35152 }
35153 defer googleapi.CloseBody(res)
35154 if err := googleapi.CheckResponse(res); err != nil {
35155 return nil, gensupport.WrapError(err)
35156 }
35157 ret := &GoogleLongrunningOperation{
35158 ServerResponse: googleapi.ServerResponse{
35159 Header: res.Header,
35160 HTTPStatusCode: res.StatusCode,
35161 },
35162 }
35163 target := &ret
35164 if err := gensupport.DecodeResponse(target, res); err != nil {
35165 return nil, err
35166 }
35167 return ret, nil
35168 }
35169
35170 type ProjectsLocationsAgentEntityTypesCreateCall struct {
35171 s *Service
35172 parent string
35173 googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
35174 urlParams_ gensupport.URLParams
35175 ctx_ context.Context
35176 header_ http.Header
35177 }
35178
35179
35180
35181
35182
35183
35184 func (r *ProjectsLocationsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsLocationsAgentEntityTypesCreateCall {
35185 c := &ProjectsLocationsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35186 c.parent = parent
35187 c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
35188 return c
35189 }
35190
35191
35192
35193
35194
35195
35196 func (c *ProjectsLocationsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesCreateCall {
35197 c.urlParams_.Set("languageCode", languageCode)
35198 return c
35199 }
35200
35201
35202
35203
35204 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesCreateCall {
35205 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35206 return c
35207 }
35208
35209
35210 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesCreateCall {
35211 c.ctx_ = ctx
35212 return c
35213 }
35214
35215
35216
35217 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header {
35218 if c.header_ == nil {
35219 c.header_ = make(http.Header)
35220 }
35221 return c.header_
35222 }
35223
35224 func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
35225 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35226 var body io.Reader = nil
35227 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
35228 if err != nil {
35229 return nil, err
35230 }
35231 c.urlParams_.Set("alt", alt)
35232 c.urlParams_.Set("prettyPrint", "false")
35233 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
35234 urls += "?" + c.urlParams_.Encode()
35235 req, err := http.NewRequest("POST", urls, body)
35236 if err != nil {
35237 return nil, err
35238 }
35239 req.Header = reqHeaders
35240 googleapi.Expand(req.URL, map[string]string{
35241 "parent": c.parent,
35242 })
35243 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35244 }
35245
35246
35247
35248
35249
35250
35251
35252 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
35253 gensupport.SetOptions(c.urlParams_, opts...)
35254 res, err := c.doRequest("json")
35255 if res != nil && res.StatusCode == http.StatusNotModified {
35256 if res.Body != nil {
35257 res.Body.Close()
35258 }
35259 return nil, gensupport.WrapError(&googleapi.Error{
35260 Code: res.StatusCode,
35261 Header: res.Header,
35262 })
35263 }
35264 if err != nil {
35265 return nil, err
35266 }
35267 defer googleapi.CloseBody(res)
35268 if err := googleapi.CheckResponse(res); err != nil {
35269 return nil, gensupport.WrapError(err)
35270 }
35271 ret := &GoogleCloudDialogflowV2EntityType{
35272 ServerResponse: googleapi.ServerResponse{
35273 Header: res.Header,
35274 HTTPStatusCode: res.StatusCode,
35275 },
35276 }
35277 target := &ret
35278 if err := gensupport.DecodeResponse(target, res); err != nil {
35279 return nil, err
35280 }
35281 return ret, nil
35282 }
35283
35284 type ProjectsLocationsAgentEntityTypesDeleteCall struct {
35285 s *Service
35286 name string
35287 urlParams_ gensupport.URLParams
35288 ctx_ context.Context
35289 header_ http.Header
35290 }
35291
35292
35293
35294
35295
35296
35297
35298 func (r *ProjectsLocationsAgentEntityTypesService) Delete(name string) *ProjectsLocationsAgentEntityTypesDeleteCall {
35299 c := &ProjectsLocationsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35300 c.name = name
35301 return c
35302 }
35303
35304
35305
35306
35307 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesDeleteCall {
35308 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35309 return c
35310 }
35311
35312
35313 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesDeleteCall {
35314 c.ctx_ = ctx
35315 return c
35316 }
35317
35318
35319
35320 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header {
35321 if c.header_ == nil {
35322 c.header_ = make(http.Header)
35323 }
35324 return c.header_
35325 }
35326
35327 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
35328 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35329 var body io.Reader = nil
35330 c.urlParams_.Set("alt", alt)
35331 c.urlParams_.Set("prettyPrint", "false")
35332 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
35333 urls += "?" + c.urlParams_.Encode()
35334 req, err := http.NewRequest("DELETE", urls, body)
35335 if err != nil {
35336 return nil, err
35337 }
35338 req.Header = reqHeaders
35339 googleapi.Expand(req.URL, map[string]string{
35340 "name": c.name,
35341 })
35342 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35343 }
35344
35345
35346
35347
35348
35349
35350
35351 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
35352 gensupport.SetOptions(c.urlParams_, opts...)
35353 res, err := c.doRequest("json")
35354 if res != nil && res.StatusCode == http.StatusNotModified {
35355 if res.Body != nil {
35356 res.Body.Close()
35357 }
35358 return nil, gensupport.WrapError(&googleapi.Error{
35359 Code: res.StatusCode,
35360 Header: res.Header,
35361 })
35362 }
35363 if err != nil {
35364 return nil, err
35365 }
35366 defer googleapi.CloseBody(res)
35367 if err := googleapi.CheckResponse(res); err != nil {
35368 return nil, gensupport.WrapError(err)
35369 }
35370 ret := &GoogleProtobufEmpty{
35371 ServerResponse: googleapi.ServerResponse{
35372 Header: res.Header,
35373 HTTPStatusCode: res.StatusCode,
35374 },
35375 }
35376 target := &ret
35377 if err := gensupport.DecodeResponse(target, res); err != nil {
35378 return nil, err
35379 }
35380 return ret, nil
35381 }
35382
35383 type ProjectsLocationsAgentEntityTypesGetCall struct {
35384 s *Service
35385 name string
35386 urlParams_ gensupport.URLParams
35387 ifNoneMatch_ string
35388 ctx_ context.Context
35389 header_ http.Header
35390 }
35391
35392
35393
35394
35395 func (r *ProjectsLocationsAgentEntityTypesService) Get(name string) *ProjectsLocationsAgentEntityTypesGetCall {
35396 c := &ProjectsLocationsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35397 c.name = name
35398 return c
35399 }
35400
35401
35402
35403
35404
35405
35406 func (c *ProjectsLocationsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesGetCall {
35407 c.urlParams_.Set("languageCode", languageCode)
35408 return c
35409 }
35410
35411
35412
35413
35414 func (c *ProjectsLocationsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesGetCall {
35415 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35416 return c
35417 }
35418
35419
35420
35421
35422 func (c *ProjectsLocationsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesGetCall {
35423 c.ifNoneMatch_ = entityTag
35424 return c
35425 }
35426
35427
35428 func (c *ProjectsLocationsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesGetCall {
35429 c.ctx_ = ctx
35430 return c
35431 }
35432
35433
35434
35435 func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header {
35436 if c.header_ == nil {
35437 c.header_ = make(http.Header)
35438 }
35439 return c.header_
35440 }
35441
35442 func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
35443 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35444 if c.ifNoneMatch_ != "" {
35445 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35446 }
35447 var body io.Reader = nil
35448 c.urlParams_.Set("alt", alt)
35449 c.urlParams_.Set("prettyPrint", "false")
35450 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
35451 urls += "?" + c.urlParams_.Encode()
35452 req, err := http.NewRequest("GET", urls, body)
35453 if err != nil {
35454 return nil, err
35455 }
35456 req.Header = reqHeaders
35457 googleapi.Expand(req.URL, map[string]string{
35458 "name": c.name,
35459 })
35460 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35461 }
35462
35463
35464
35465
35466
35467
35468
35469 func (c *ProjectsLocationsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
35470 gensupport.SetOptions(c.urlParams_, opts...)
35471 res, err := c.doRequest("json")
35472 if res != nil && res.StatusCode == http.StatusNotModified {
35473 if res.Body != nil {
35474 res.Body.Close()
35475 }
35476 return nil, gensupport.WrapError(&googleapi.Error{
35477 Code: res.StatusCode,
35478 Header: res.Header,
35479 })
35480 }
35481 if err != nil {
35482 return nil, err
35483 }
35484 defer googleapi.CloseBody(res)
35485 if err := googleapi.CheckResponse(res); err != nil {
35486 return nil, gensupport.WrapError(err)
35487 }
35488 ret := &GoogleCloudDialogflowV2EntityType{
35489 ServerResponse: googleapi.ServerResponse{
35490 Header: res.Header,
35491 HTTPStatusCode: res.StatusCode,
35492 },
35493 }
35494 target := &ret
35495 if err := gensupport.DecodeResponse(target, res); err != nil {
35496 return nil, err
35497 }
35498 return ret, nil
35499 }
35500
35501 type ProjectsLocationsAgentEntityTypesListCall struct {
35502 s *Service
35503 parent string
35504 urlParams_ gensupport.URLParams
35505 ifNoneMatch_ string
35506 ctx_ context.Context
35507 header_ http.Header
35508 }
35509
35510
35511
35512
35513
35514 func (r *ProjectsLocationsAgentEntityTypesService) List(parent string) *ProjectsLocationsAgentEntityTypesListCall {
35515 c := &ProjectsLocationsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35516 c.parent = parent
35517 return c
35518 }
35519
35520
35521
35522
35523
35524
35525 func (c *ProjectsLocationsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesListCall {
35526 c.urlParams_.Set("languageCode", languageCode)
35527 return c
35528 }
35529
35530
35531
35532 func (c *ProjectsLocationsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEntityTypesListCall {
35533 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35534 return c
35535 }
35536
35537
35538
35539 func (c *ProjectsLocationsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEntityTypesListCall {
35540 c.urlParams_.Set("pageToken", pageToken)
35541 return c
35542 }
35543
35544
35545
35546
35547 func (c *ProjectsLocationsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesListCall {
35548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35549 return c
35550 }
35551
35552
35553
35554
35555 func (c *ProjectsLocationsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesListCall {
35556 c.ifNoneMatch_ = entityTag
35557 return c
35558 }
35559
35560
35561 func (c *ProjectsLocationsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesListCall {
35562 c.ctx_ = ctx
35563 return c
35564 }
35565
35566
35567
35568 func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header {
35569 if c.header_ == nil {
35570 c.header_ = make(http.Header)
35571 }
35572 return c.header_
35573 }
35574
35575 func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
35576 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35577 if c.ifNoneMatch_ != "" {
35578 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35579 }
35580 var body io.Reader = nil
35581 c.urlParams_.Set("alt", alt)
35582 c.urlParams_.Set("prettyPrint", "false")
35583 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
35584 urls += "?" + c.urlParams_.Encode()
35585 req, err := http.NewRequest("GET", urls, body)
35586 if err != nil {
35587 return nil, err
35588 }
35589 req.Header = reqHeaders
35590 googleapi.Expand(req.URL, map[string]string{
35591 "parent": c.parent,
35592 })
35593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35594 }
35595
35596
35597
35598
35599
35600
35601
35602 func (c *ProjectsLocationsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEntityTypesResponse, error) {
35603 gensupport.SetOptions(c.urlParams_, opts...)
35604 res, err := c.doRequest("json")
35605 if res != nil && res.StatusCode == http.StatusNotModified {
35606 if res.Body != nil {
35607 res.Body.Close()
35608 }
35609 return nil, gensupport.WrapError(&googleapi.Error{
35610 Code: res.StatusCode,
35611 Header: res.Header,
35612 })
35613 }
35614 if err != nil {
35615 return nil, err
35616 }
35617 defer googleapi.CloseBody(res)
35618 if err := googleapi.CheckResponse(res); err != nil {
35619 return nil, gensupport.WrapError(err)
35620 }
35621 ret := &GoogleCloudDialogflowV2ListEntityTypesResponse{
35622 ServerResponse: googleapi.ServerResponse{
35623 Header: res.Header,
35624 HTTPStatusCode: res.StatusCode,
35625 },
35626 }
35627 target := &ret
35628 if err := gensupport.DecodeResponse(target, res); err != nil {
35629 return nil, err
35630 }
35631 return ret, nil
35632 }
35633
35634
35635
35636
35637 func (c *ProjectsLocationsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEntityTypesResponse) error) error {
35638 c.ctx_ = ctx
35639 defer c.PageToken(c.urlParams_.Get("pageToken"))
35640 for {
35641 x, err := c.Do()
35642 if err != nil {
35643 return err
35644 }
35645 if err := f(x); err != nil {
35646 return err
35647 }
35648 if x.NextPageToken == "" {
35649 return nil
35650 }
35651 c.PageToken(x.NextPageToken)
35652 }
35653 }
35654
35655 type ProjectsLocationsAgentEntityTypesPatchCall struct {
35656 s *Service
35657 nameid string
35658 googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType
35659 urlParams_ gensupport.URLParams
35660 ctx_ context.Context
35661 header_ http.Header
35662 }
35663
35664
35665
35666
35667
35668
35669
35670
35671 func (r *ProjectsLocationsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2entitytype *GoogleCloudDialogflowV2EntityType) *ProjectsLocationsAgentEntityTypesPatchCall {
35672 c := &ProjectsLocationsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35673 c.nameid = nameid
35674 c.googleclouddialogflowv2entitytype = googleclouddialogflowv2entitytype
35675 return c
35676 }
35677
35678
35679
35680
35681
35682
35683 func (c *ProjectsLocationsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesPatchCall {
35684 c.urlParams_.Set("languageCode", languageCode)
35685 return c
35686 }
35687
35688
35689
35690 func (c *ProjectsLocationsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEntityTypesPatchCall {
35691 c.urlParams_.Set("updateMask", updateMask)
35692 return c
35693 }
35694
35695
35696
35697
35698 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesPatchCall {
35699 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35700 return c
35701 }
35702
35703
35704 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesPatchCall {
35705 c.ctx_ = ctx
35706 return c
35707 }
35708
35709
35710
35711 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header {
35712 if c.header_ == nil {
35713 c.header_ = make(http.Header)
35714 }
35715 return c.header_
35716 }
35717
35718 func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
35719 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35720 var body io.Reader = nil
35721 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2entitytype)
35722 if err != nil {
35723 return nil, err
35724 }
35725 c.urlParams_.Set("alt", alt)
35726 c.urlParams_.Set("prettyPrint", "false")
35727 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
35728 urls += "?" + c.urlParams_.Encode()
35729 req, err := http.NewRequest("PATCH", urls, body)
35730 if err != nil {
35731 return nil, err
35732 }
35733 req.Header = reqHeaders
35734 googleapi.Expand(req.URL, map[string]string{
35735 "name": c.nameid,
35736 })
35737 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35738 }
35739
35740
35741
35742
35743
35744
35745
35746 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EntityType, error) {
35747 gensupport.SetOptions(c.urlParams_, opts...)
35748 res, err := c.doRequest("json")
35749 if res != nil && res.StatusCode == http.StatusNotModified {
35750 if res.Body != nil {
35751 res.Body.Close()
35752 }
35753 return nil, gensupport.WrapError(&googleapi.Error{
35754 Code: res.StatusCode,
35755 Header: res.Header,
35756 })
35757 }
35758 if err != nil {
35759 return nil, err
35760 }
35761 defer googleapi.CloseBody(res)
35762 if err := googleapi.CheckResponse(res); err != nil {
35763 return nil, gensupport.WrapError(err)
35764 }
35765 ret := &GoogleCloudDialogflowV2EntityType{
35766 ServerResponse: googleapi.ServerResponse{
35767 Header: res.Header,
35768 HTTPStatusCode: res.StatusCode,
35769 },
35770 }
35771 target := &ret
35772 if err := gensupport.DecodeResponse(target, res); err != nil {
35773 return nil, err
35774 }
35775 return ret, nil
35776 }
35777
35778 type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {
35779 s *Service
35780 parent string
35781 googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest
35782 urlParams_ gensupport.URLParams
35783 ctx_ context.Context
35784 header_ http.Header
35785 }
35786
35787
35788
35789
35790
35791
35792
35793
35794
35795
35796
35797
35798
35799
35800
35801 func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2batchcreateentitiesrequest *GoogleCloudDialogflowV2BatchCreateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
35802 c := &ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35803 c.parent = parent
35804 c.googleclouddialogflowv2batchcreateentitiesrequest = googleclouddialogflowv2batchcreateentitiesrequest
35805 return c
35806 }
35807
35808
35809
35810
35811 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
35812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35813 return c
35814 }
35815
35816
35817 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
35818 c.ctx_ = ctx
35819 return c
35820 }
35821
35822
35823
35824 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
35825 if c.header_ == nil {
35826 c.header_ = make(http.Header)
35827 }
35828 return c.header_
35829 }
35830
35831 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
35832 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35833 var body io.Reader = nil
35834 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchcreateentitiesrequest)
35835 if err != nil {
35836 return nil, err
35837 }
35838 c.urlParams_.Set("alt", alt)
35839 c.urlParams_.Set("prettyPrint", "false")
35840 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchCreate")
35841 urls += "?" + c.urlParams_.Encode()
35842 req, err := http.NewRequest("POST", urls, body)
35843 if err != nil {
35844 return nil, err
35845 }
35846 req.Header = reqHeaders
35847 googleapi.Expand(req.URL, map[string]string{
35848 "parent": c.parent,
35849 })
35850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35851 }
35852
35853
35854
35855
35856
35857
35858
35859 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35860 gensupport.SetOptions(c.urlParams_, opts...)
35861 res, err := c.doRequest("json")
35862 if res != nil && res.StatusCode == http.StatusNotModified {
35863 if res.Body != nil {
35864 res.Body.Close()
35865 }
35866 return nil, gensupport.WrapError(&googleapi.Error{
35867 Code: res.StatusCode,
35868 Header: res.Header,
35869 })
35870 }
35871 if err != nil {
35872 return nil, err
35873 }
35874 defer googleapi.CloseBody(res)
35875 if err := googleapi.CheckResponse(res); err != nil {
35876 return nil, gensupport.WrapError(err)
35877 }
35878 ret := &GoogleLongrunningOperation{
35879 ServerResponse: googleapi.ServerResponse{
35880 Header: res.Header,
35881 HTTPStatusCode: res.StatusCode,
35882 },
35883 }
35884 target := &ret
35885 if err := gensupport.DecodeResponse(target, res); err != nil {
35886 return nil, err
35887 }
35888 return ret, nil
35889 }
35890
35891 type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {
35892 s *Service
35893 parent string
35894 googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
35895 urlParams_ gensupport.URLParams
35896 ctx_ context.Context
35897 header_ http.Header
35898 }
35899
35900
35901
35902
35903
35904
35905
35906
35907
35908
35909
35910
35911
35912
35913
35914 func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteentitiesrequest *GoogleCloudDialogflowV2BatchDeleteEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
35915 c := &ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35916 c.parent = parent
35917 c.googleclouddialogflowv2batchdeleteentitiesrequest = googleclouddialogflowv2batchdeleteentitiesrequest
35918 return c
35919 }
35920
35921
35922
35923
35924 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
35925 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35926 return c
35927 }
35928
35929
35930 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
35931 c.ctx_ = ctx
35932 return c
35933 }
35934
35935
35936
35937 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
35938 if c.header_ == nil {
35939 c.header_ = make(http.Header)
35940 }
35941 return c.header_
35942 }
35943
35944 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
35945 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35946 var body io.Reader = nil
35947 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteentitiesrequest)
35948 if err != nil {
35949 return nil, err
35950 }
35951 c.urlParams_.Set("alt", alt)
35952 c.urlParams_.Set("prettyPrint", "false")
35953 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchDelete")
35954 urls += "?" + c.urlParams_.Encode()
35955 req, err := http.NewRequest("POST", urls, body)
35956 if err != nil {
35957 return nil, err
35958 }
35959 req.Header = reqHeaders
35960 googleapi.Expand(req.URL, map[string]string{
35961 "parent": c.parent,
35962 })
35963 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35964 }
35965
35966
35967
35968
35969
35970
35971
35972 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35973 gensupport.SetOptions(c.urlParams_, opts...)
35974 res, err := c.doRequest("json")
35975 if res != nil && res.StatusCode == http.StatusNotModified {
35976 if res.Body != nil {
35977 res.Body.Close()
35978 }
35979 return nil, gensupport.WrapError(&googleapi.Error{
35980 Code: res.StatusCode,
35981 Header: res.Header,
35982 })
35983 }
35984 if err != nil {
35985 return nil, err
35986 }
35987 defer googleapi.CloseBody(res)
35988 if err := googleapi.CheckResponse(res); err != nil {
35989 return nil, gensupport.WrapError(err)
35990 }
35991 ret := &GoogleLongrunningOperation{
35992 ServerResponse: googleapi.ServerResponse{
35993 Header: res.Header,
35994 HTTPStatusCode: res.StatusCode,
35995 },
35996 }
35997 target := &ret
35998 if err := gensupport.DecodeResponse(target, res); err != nil {
35999 return nil, err
36000 }
36001 return ret, nil
36002 }
36003
36004 type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {
36005 s *Service
36006 parent string
36007 googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
36008 urlParams_ gensupport.URLParams
36009 ctx_ context.Context
36010 header_ http.Header
36011 }
36012
36013
36014
36015
36016
36017
36018
36019
36020
36021
36022
36023
36024
36025
36026
36027
36028 func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateentitiesrequest *GoogleCloudDialogflowV2BatchUpdateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
36029 c := &ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36030 c.parent = parent
36031 c.googleclouddialogflowv2batchupdateentitiesrequest = googleclouddialogflowv2batchupdateentitiesrequest
36032 return c
36033 }
36034
36035
36036
36037
36038 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
36039 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36040 return c
36041 }
36042
36043
36044 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
36045 c.ctx_ = ctx
36046 return c
36047 }
36048
36049
36050
36051 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
36052 if c.header_ == nil {
36053 c.header_ = make(http.Header)
36054 }
36055 return c.header_
36056 }
36057
36058 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
36059 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36060 var body io.Reader = nil
36061 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateentitiesrequest)
36062 if err != nil {
36063 return nil, err
36064 }
36065 c.urlParams_.Set("alt", alt)
36066 c.urlParams_.Set("prettyPrint", "false")
36067 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entities:batchUpdate")
36068 urls += "?" + c.urlParams_.Encode()
36069 req, err := http.NewRequest("POST", urls, body)
36070 if err != nil {
36071 return nil, err
36072 }
36073 req.Header = reqHeaders
36074 googleapi.Expand(req.URL, map[string]string{
36075 "parent": c.parent,
36076 })
36077 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36078 }
36079
36080
36081
36082
36083
36084
36085
36086 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
36087 gensupport.SetOptions(c.urlParams_, opts...)
36088 res, err := c.doRequest("json")
36089 if res != nil && res.StatusCode == http.StatusNotModified {
36090 if res.Body != nil {
36091 res.Body.Close()
36092 }
36093 return nil, gensupport.WrapError(&googleapi.Error{
36094 Code: res.StatusCode,
36095 Header: res.Header,
36096 })
36097 }
36098 if err != nil {
36099 return nil, err
36100 }
36101 defer googleapi.CloseBody(res)
36102 if err := googleapi.CheckResponse(res); err != nil {
36103 return nil, gensupport.WrapError(err)
36104 }
36105 ret := &GoogleLongrunningOperation{
36106 ServerResponse: googleapi.ServerResponse{
36107 Header: res.Header,
36108 HTTPStatusCode: res.StatusCode,
36109 },
36110 }
36111 target := &ret
36112 if err := gensupport.DecodeResponse(target, res); err != nil {
36113 return nil, err
36114 }
36115 return ret, nil
36116 }
36117
36118 type ProjectsLocationsAgentEnvironmentsCreateCall struct {
36119 s *Service
36120 parent string
36121 googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
36122 urlParams_ gensupport.URLParams
36123 ctx_ context.Context
36124 header_ http.Header
36125 }
36126
36127
36128
36129
36130
36131 func (r *ProjectsLocationsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsLocationsAgentEnvironmentsCreateCall {
36132 c := &ProjectsLocationsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36133 c.parent = parent
36134 c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
36135 return c
36136 }
36137
36138
36139
36140 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsAgentEnvironmentsCreateCall {
36141 c.urlParams_.Set("environmentId", environmentId)
36142 return c
36143 }
36144
36145
36146
36147
36148 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsCreateCall {
36149 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36150 return c
36151 }
36152
36153
36154 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsCreateCall {
36155 c.ctx_ = ctx
36156 return c
36157 }
36158
36159
36160
36161 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Header() http.Header {
36162 if c.header_ == nil {
36163 c.header_ = make(http.Header)
36164 }
36165 return c.header_
36166 }
36167
36168 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
36169 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36170 var body io.Reader = nil
36171 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
36172 if err != nil {
36173 return nil, err
36174 }
36175 c.urlParams_.Set("alt", alt)
36176 c.urlParams_.Set("prettyPrint", "false")
36177 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
36178 urls += "?" + c.urlParams_.Encode()
36179 req, err := http.NewRequest("POST", urls, body)
36180 if err != nil {
36181 return nil, err
36182 }
36183 req.Header = reqHeaders
36184 googleapi.Expand(req.URL, map[string]string{
36185 "parent": c.parent,
36186 })
36187 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36188 }
36189
36190
36191
36192
36193
36194
36195
36196 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
36197 gensupport.SetOptions(c.urlParams_, opts...)
36198 res, err := c.doRequest("json")
36199 if res != nil && res.StatusCode == http.StatusNotModified {
36200 if res.Body != nil {
36201 res.Body.Close()
36202 }
36203 return nil, gensupport.WrapError(&googleapi.Error{
36204 Code: res.StatusCode,
36205 Header: res.Header,
36206 })
36207 }
36208 if err != nil {
36209 return nil, err
36210 }
36211 defer googleapi.CloseBody(res)
36212 if err := googleapi.CheckResponse(res); err != nil {
36213 return nil, gensupport.WrapError(err)
36214 }
36215 ret := &GoogleCloudDialogflowV2Environment{
36216 ServerResponse: googleapi.ServerResponse{
36217 Header: res.Header,
36218 HTTPStatusCode: res.StatusCode,
36219 },
36220 }
36221 target := &ret
36222 if err := gensupport.DecodeResponse(target, res); err != nil {
36223 return nil, err
36224 }
36225 return ret, nil
36226 }
36227
36228 type ProjectsLocationsAgentEnvironmentsDeleteCall struct {
36229 s *Service
36230 name string
36231 urlParams_ gensupport.URLParams
36232 ctx_ context.Context
36233 header_ http.Header
36234 }
36235
36236
36237
36238
36239
36240
36241
36242 func (r *ProjectsLocationsAgentEnvironmentsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsDeleteCall {
36243 c := &ProjectsLocationsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36244 c.name = name
36245 return c
36246 }
36247
36248
36249
36250
36251 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsDeleteCall {
36252 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36253 return c
36254 }
36255
36256
36257 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsDeleteCall {
36258 c.ctx_ = ctx
36259 return c
36260 }
36261
36262
36263
36264 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Header() http.Header {
36265 if c.header_ == nil {
36266 c.header_ = make(http.Header)
36267 }
36268 return c.header_
36269 }
36270
36271 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
36272 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36273 var body io.Reader = nil
36274 c.urlParams_.Set("alt", alt)
36275 c.urlParams_.Set("prettyPrint", "false")
36276 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
36277 urls += "?" + c.urlParams_.Encode()
36278 req, err := http.NewRequest("DELETE", urls, body)
36279 if err != nil {
36280 return nil, err
36281 }
36282 req.Header = reqHeaders
36283 googleapi.Expand(req.URL, map[string]string{
36284 "name": c.name,
36285 })
36286 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36287 }
36288
36289
36290
36291
36292
36293
36294
36295 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
36296 gensupport.SetOptions(c.urlParams_, opts...)
36297 res, err := c.doRequest("json")
36298 if res != nil && res.StatusCode == http.StatusNotModified {
36299 if res.Body != nil {
36300 res.Body.Close()
36301 }
36302 return nil, gensupport.WrapError(&googleapi.Error{
36303 Code: res.StatusCode,
36304 Header: res.Header,
36305 })
36306 }
36307 if err != nil {
36308 return nil, err
36309 }
36310 defer googleapi.CloseBody(res)
36311 if err := googleapi.CheckResponse(res); err != nil {
36312 return nil, gensupport.WrapError(err)
36313 }
36314 ret := &GoogleProtobufEmpty{
36315 ServerResponse: googleapi.ServerResponse{
36316 Header: res.Header,
36317 HTTPStatusCode: res.StatusCode,
36318 },
36319 }
36320 target := &ret
36321 if err := gensupport.DecodeResponse(target, res); err != nil {
36322 return nil, err
36323 }
36324 return ret, nil
36325 }
36326
36327 type ProjectsLocationsAgentEnvironmentsGetCall struct {
36328 s *Service
36329 name string
36330 urlParams_ gensupport.URLParams
36331 ifNoneMatch_ string
36332 ctx_ context.Context
36333 header_ http.Header
36334 }
36335
36336
36337
36338
36339
36340
36341
36342 func (r *ProjectsLocationsAgentEnvironmentsService) Get(name string) *ProjectsLocationsAgentEnvironmentsGetCall {
36343 c := &ProjectsLocationsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36344 c.name = name
36345 return c
36346 }
36347
36348
36349
36350
36351 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetCall {
36352 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36353 return c
36354 }
36355
36356
36357
36358
36359 func (c *ProjectsLocationsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetCall {
36360 c.ifNoneMatch_ = entityTag
36361 return c
36362 }
36363
36364
36365 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetCall {
36366 c.ctx_ = ctx
36367 return c
36368 }
36369
36370
36371
36372 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Header() http.Header {
36373 if c.header_ == nil {
36374 c.header_ = make(http.Header)
36375 }
36376 return c.header_
36377 }
36378
36379 func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
36380 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36381 if c.ifNoneMatch_ != "" {
36382 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36383 }
36384 var body io.Reader = nil
36385 c.urlParams_.Set("alt", alt)
36386 c.urlParams_.Set("prettyPrint", "false")
36387 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
36388 urls += "?" + c.urlParams_.Encode()
36389 req, err := http.NewRequest("GET", urls, body)
36390 if err != nil {
36391 return nil, err
36392 }
36393 req.Header = reqHeaders
36394 googleapi.Expand(req.URL, map[string]string{
36395 "name": c.name,
36396 })
36397 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36398 }
36399
36400
36401
36402
36403
36404
36405
36406 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
36407 gensupport.SetOptions(c.urlParams_, opts...)
36408 res, err := c.doRequest("json")
36409 if res != nil && res.StatusCode == http.StatusNotModified {
36410 if res.Body != nil {
36411 res.Body.Close()
36412 }
36413 return nil, gensupport.WrapError(&googleapi.Error{
36414 Code: res.StatusCode,
36415 Header: res.Header,
36416 })
36417 }
36418 if err != nil {
36419 return nil, err
36420 }
36421 defer googleapi.CloseBody(res)
36422 if err := googleapi.CheckResponse(res); err != nil {
36423 return nil, gensupport.WrapError(err)
36424 }
36425 ret := &GoogleCloudDialogflowV2Environment{
36426 ServerResponse: googleapi.ServerResponse{
36427 Header: res.Header,
36428 HTTPStatusCode: res.StatusCode,
36429 },
36430 }
36431 target := &ret
36432 if err := gensupport.DecodeResponse(target, res); err != nil {
36433 return nil, err
36434 }
36435 return ret, nil
36436 }
36437
36438 type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {
36439 s *Service
36440 parent string
36441 urlParams_ gensupport.URLParams
36442 ifNoneMatch_ string
36443 ctx_ context.Context
36444 header_ http.Header
36445 }
36446
36447
36448
36449
36450
36451
36452
36453 func (r *ProjectsLocationsAgentEnvironmentsService) GetHistory(parent string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
36454 c := &ProjectsLocationsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36455 c.parent = parent
36456 return c
36457 }
36458
36459
36460
36461 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
36462 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36463 return c
36464 }
36465
36466
36467
36468 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
36469 c.urlParams_.Set("pageToken", pageToken)
36470 return c
36471 }
36472
36473
36474
36475
36476 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
36477 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36478 return c
36479 }
36480
36481
36482
36483
36484 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
36485 c.ifNoneMatch_ = entityTag
36486 return c
36487 }
36488
36489
36490 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
36491 c.ctx_ = ctx
36492 return c
36493 }
36494
36495
36496
36497 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Header() http.Header {
36498 if c.header_ == nil {
36499 c.header_ = make(http.Header)
36500 }
36501 return c.header_
36502 }
36503
36504 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
36505 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36506 if c.ifNoneMatch_ != "" {
36507 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36508 }
36509 var body io.Reader = nil
36510 c.urlParams_.Set("alt", alt)
36511 c.urlParams_.Set("prettyPrint", "false")
36512 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/history")
36513 urls += "?" + c.urlParams_.Encode()
36514 req, err := http.NewRequest("GET", urls, body)
36515 if err != nil {
36516 return nil, err
36517 }
36518 req.Header = reqHeaders
36519 googleapi.Expand(req.URL, map[string]string{
36520 "parent": c.parent,
36521 })
36522 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36523 }
36524
36525
36526
36527
36528
36529
36530
36531 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2EnvironmentHistory, error) {
36532 gensupport.SetOptions(c.urlParams_, opts...)
36533 res, err := c.doRequest("json")
36534 if res != nil && res.StatusCode == http.StatusNotModified {
36535 if res.Body != nil {
36536 res.Body.Close()
36537 }
36538 return nil, gensupport.WrapError(&googleapi.Error{
36539 Code: res.StatusCode,
36540 Header: res.Header,
36541 })
36542 }
36543 if err != nil {
36544 return nil, err
36545 }
36546 defer googleapi.CloseBody(res)
36547 if err := googleapi.CheckResponse(res); err != nil {
36548 return nil, gensupport.WrapError(err)
36549 }
36550 ret := &GoogleCloudDialogflowV2EnvironmentHistory{
36551 ServerResponse: googleapi.ServerResponse{
36552 Header: res.Header,
36553 HTTPStatusCode: res.StatusCode,
36554 },
36555 }
36556 target := &ret
36557 if err := gensupport.DecodeResponse(target, res); err != nil {
36558 return nil, err
36559 }
36560 return ret, nil
36561 }
36562
36563
36564
36565
36566 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2EnvironmentHistory) error) error {
36567 c.ctx_ = ctx
36568 defer c.PageToken(c.urlParams_.Get("pageToken"))
36569 for {
36570 x, err := c.Do()
36571 if err != nil {
36572 return err
36573 }
36574 if err := f(x); err != nil {
36575 return err
36576 }
36577 if x.NextPageToken == "" {
36578 return nil
36579 }
36580 c.PageToken(x.NextPageToken)
36581 }
36582 }
36583
36584 type ProjectsLocationsAgentEnvironmentsListCall struct {
36585 s *Service
36586 parent string
36587 urlParams_ gensupport.URLParams
36588 ifNoneMatch_ string
36589 ctx_ context.Context
36590 header_ http.Header
36591 }
36592
36593
36594
36595
36596
36597
36598 func (r *ProjectsLocationsAgentEnvironmentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsListCall {
36599 c := &ProjectsLocationsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36600 c.parent = parent
36601 return c
36602 }
36603
36604
36605
36606 func (c *ProjectsLocationsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsListCall {
36607 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36608 return c
36609 }
36610
36611
36612
36613 func (c *ProjectsLocationsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsListCall {
36614 c.urlParams_.Set("pageToken", pageToken)
36615 return c
36616 }
36617
36618
36619
36620
36621 func (c *ProjectsLocationsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsListCall {
36622 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36623 return c
36624 }
36625
36626
36627
36628
36629 func (c *ProjectsLocationsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsListCall {
36630 c.ifNoneMatch_ = entityTag
36631 return c
36632 }
36633
36634
36635 func (c *ProjectsLocationsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsListCall {
36636 c.ctx_ = ctx
36637 return c
36638 }
36639
36640
36641
36642 func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header {
36643 if c.header_ == nil {
36644 c.header_ = make(http.Header)
36645 }
36646 return c.header_
36647 }
36648
36649 func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
36650 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36651 if c.ifNoneMatch_ != "" {
36652 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36653 }
36654 var body io.Reader = nil
36655 c.urlParams_.Set("alt", alt)
36656 c.urlParams_.Set("prettyPrint", "false")
36657 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/environments")
36658 urls += "?" + c.urlParams_.Encode()
36659 req, err := http.NewRequest("GET", urls, body)
36660 if err != nil {
36661 return nil, err
36662 }
36663 req.Header = reqHeaders
36664 googleapi.Expand(req.URL, map[string]string{
36665 "parent": c.parent,
36666 })
36667 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36668 }
36669
36670
36671
36672
36673
36674
36675
36676 func (c *ProjectsLocationsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListEnvironmentsResponse, error) {
36677 gensupport.SetOptions(c.urlParams_, opts...)
36678 res, err := c.doRequest("json")
36679 if res != nil && res.StatusCode == http.StatusNotModified {
36680 if res.Body != nil {
36681 res.Body.Close()
36682 }
36683 return nil, gensupport.WrapError(&googleapi.Error{
36684 Code: res.StatusCode,
36685 Header: res.Header,
36686 })
36687 }
36688 if err != nil {
36689 return nil, err
36690 }
36691 defer googleapi.CloseBody(res)
36692 if err := googleapi.CheckResponse(res); err != nil {
36693 return nil, gensupport.WrapError(err)
36694 }
36695 ret := &GoogleCloudDialogflowV2ListEnvironmentsResponse{
36696 ServerResponse: googleapi.ServerResponse{
36697 Header: res.Header,
36698 HTTPStatusCode: res.StatusCode,
36699 },
36700 }
36701 target := &ret
36702 if err := gensupport.DecodeResponse(target, res); err != nil {
36703 return nil, err
36704 }
36705 return ret, nil
36706 }
36707
36708
36709
36710
36711 func (c *ProjectsLocationsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListEnvironmentsResponse) error) error {
36712 c.ctx_ = ctx
36713 defer c.PageToken(c.urlParams_.Get("pageToken"))
36714 for {
36715 x, err := c.Do()
36716 if err != nil {
36717 return err
36718 }
36719 if err := f(x); err != nil {
36720 return err
36721 }
36722 if x.NextPageToken == "" {
36723 return nil
36724 }
36725 c.PageToken(x.NextPageToken)
36726 }
36727 }
36728
36729 type ProjectsLocationsAgentEnvironmentsPatchCall struct {
36730 s *Service
36731 nameid string
36732 googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment
36733 urlParams_ gensupport.URLParams
36734 ctx_ context.Context
36735 header_ http.Header
36736 }
36737
36738
36739
36740
36741
36742
36743
36744
36745
36746
36747
36748
36749
36750
36751
36752
36753 func (r *ProjectsLocationsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2environment *GoogleCloudDialogflowV2Environment) *ProjectsLocationsAgentEnvironmentsPatchCall {
36754 c := &ProjectsLocationsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36755 c.nameid = nameid
36756 c.googleclouddialogflowv2environment = googleclouddialogflowv2environment
36757 return c
36758 }
36759
36760
36761
36762
36763
36764
36765
36766 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsLocationsAgentEnvironmentsPatchCall {
36767 c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
36768 return c
36769 }
36770
36771
36772
36773 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsPatchCall {
36774 c.urlParams_.Set("updateMask", updateMask)
36775 return c
36776 }
36777
36778
36779
36780
36781 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsPatchCall {
36782 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36783 return c
36784 }
36785
36786
36787 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsPatchCall {
36788 c.ctx_ = ctx
36789 return c
36790 }
36791
36792
36793
36794 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Header() http.Header {
36795 if c.header_ == nil {
36796 c.header_ = make(http.Header)
36797 }
36798 return c.header_
36799 }
36800
36801 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
36802 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36803 var body io.Reader = nil
36804 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2environment)
36805 if err != nil {
36806 return nil, err
36807 }
36808 c.urlParams_.Set("alt", alt)
36809 c.urlParams_.Set("prettyPrint", "false")
36810 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
36811 urls += "?" + c.urlParams_.Encode()
36812 req, err := http.NewRequest("PATCH", urls, body)
36813 if err != nil {
36814 return nil, err
36815 }
36816 req.Header = reqHeaders
36817 googleapi.Expand(req.URL, map[string]string{
36818 "name": c.nameid,
36819 })
36820 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36821 }
36822
36823
36824
36825
36826
36827
36828
36829 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Environment, error) {
36830 gensupport.SetOptions(c.urlParams_, opts...)
36831 res, err := c.doRequest("json")
36832 if res != nil && res.StatusCode == http.StatusNotModified {
36833 if res.Body != nil {
36834 res.Body.Close()
36835 }
36836 return nil, gensupport.WrapError(&googleapi.Error{
36837 Code: res.StatusCode,
36838 Header: res.Header,
36839 })
36840 }
36841 if err != nil {
36842 return nil, err
36843 }
36844 defer googleapi.CloseBody(res)
36845 if err := googleapi.CheckResponse(res); err != nil {
36846 return nil, gensupport.WrapError(err)
36847 }
36848 ret := &GoogleCloudDialogflowV2Environment{
36849 ServerResponse: googleapi.ServerResponse{
36850 Header: res.Header,
36851 HTTPStatusCode: res.StatusCode,
36852 },
36853 }
36854 target := &ret
36855 if err := gensupport.DecodeResponse(target, res); err != nil {
36856 return nil, err
36857 }
36858 return ret, nil
36859 }
36860
36861 type ProjectsLocationsAgentEnvironmentsIntentsListCall struct {
36862 s *Service
36863 parent string
36864 urlParams_ gensupport.URLParams
36865 ifNoneMatch_ string
36866 ctx_ context.Context
36867 header_ http.Header
36868 }
36869
36870
36871
36872
36873
36874
36875
36876
36877 func (r *ProjectsLocationsAgentEnvironmentsIntentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36878 c := &ProjectsLocationsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36879 c.parent = parent
36880 return c
36881 }
36882
36883
36884
36885
36886
36887
36888
36889
36890
36891
36892
36893 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36894 c.urlParams_.Set("intentView", intentView)
36895 return c
36896 }
36897
36898
36899
36900
36901
36902
36903 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36904 c.urlParams_.Set("languageCode", languageCode)
36905 return c
36906 }
36907
36908
36909
36910 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36911 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36912 return c
36913 }
36914
36915
36916
36917 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36918 c.urlParams_.Set("pageToken", pageToken)
36919 return c
36920 }
36921
36922
36923
36924
36925 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36926 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36927 return c
36928 }
36929
36930
36931
36932
36933 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36934 c.ifNoneMatch_ = entityTag
36935 return c
36936 }
36937
36938
36939 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36940 c.ctx_ = ctx
36941 return c
36942 }
36943
36944
36945
36946 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Header() http.Header {
36947 if c.header_ == nil {
36948 c.header_ = make(http.Header)
36949 }
36950 return c.header_
36951 }
36952
36953 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
36954 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36955 if c.ifNoneMatch_ != "" {
36956 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36957 }
36958 var body io.Reader = nil
36959 c.urlParams_.Set("alt", alt)
36960 c.urlParams_.Set("prettyPrint", "false")
36961 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
36962 urls += "?" + c.urlParams_.Encode()
36963 req, err := http.NewRequest("GET", urls, body)
36964 if err != nil {
36965 return nil, err
36966 }
36967 req.Header = reqHeaders
36968 googleapi.Expand(req.URL, map[string]string{
36969 "parent": c.parent,
36970 })
36971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36972 }
36973
36974
36975
36976
36977
36978
36979
36980 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
36981 gensupport.SetOptions(c.urlParams_, opts...)
36982 res, err := c.doRequest("json")
36983 if res != nil && res.StatusCode == http.StatusNotModified {
36984 if res.Body != nil {
36985 res.Body.Close()
36986 }
36987 return nil, gensupport.WrapError(&googleapi.Error{
36988 Code: res.StatusCode,
36989 Header: res.Header,
36990 })
36991 }
36992 if err != nil {
36993 return nil, err
36994 }
36995 defer googleapi.CloseBody(res)
36996 if err := googleapi.CheckResponse(res); err != nil {
36997 return nil, gensupport.WrapError(err)
36998 }
36999 ret := &GoogleCloudDialogflowV2ListIntentsResponse{
37000 ServerResponse: googleapi.ServerResponse{
37001 Header: res.Header,
37002 HTTPStatusCode: res.StatusCode,
37003 },
37004 }
37005 target := &ret
37006 if err := gensupport.DecodeResponse(target, res); err != nil {
37007 return nil, err
37008 }
37009 return ret, nil
37010 }
37011
37012
37013
37014
37015 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
37016 c.ctx_ = ctx
37017 defer c.PageToken(c.urlParams_.Get("pageToken"))
37018 for {
37019 x, err := c.Do()
37020 if err != nil {
37021 return err
37022 }
37023 if err := f(x); err != nil {
37024 return err
37025 }
37026 if x.NextPageToken == "" {
37027 return nil
37028 }
37029 c.PageToken(x.NextPageToken)
37030 }
37031 }
37032
37033 type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
37034 s *Service
37035 parent string
37036 urlParams_ gensupport.URLParams
37037 ctx_ context.Context
37038 header_ http.Header
37039 }
37040
37041
37042
37043
37044
37045
37046
37047
37048 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
37049 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37050 c.parent = parent
37051 return c
37052 }
37053
37054
37055
37056
37057 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
37058 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37059 return c
37060 }
37061
37062
37063 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
37064 c.ctx_ = ctx
37065 return c
37066 }
37067
37068
37069
37070 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
37071 if c.header_ == nil {
37072 c.header_ = make(http.Header)
37073 }
37074 return c.header_
37075 }
37076
37077 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
37078 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37079 var body io.Reader = nil
37080 c.urlParams_.Set("alt", alt)
37081 c.urlParams_.Set("prettyPrint", "false")
37082 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
37083 urls += "?" + c.urlParams_.Encode()
37084 req, err := http.NewRequest("DELETE", urls, body)
37085 if err != nil {
37086 return nil, err
37087 }
37088 req.Header = reqHeaders
37089 googleapi.Expand(req.URL, map[string]string{
37090 "parent": c.parent,
37091 })
37092 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37093 }
37094
37095
37096
37097
37098
37099
37100
37101 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
37102 gensupport.SetOptions(c.urlParams_, opts...)
37103 res, err := c.doRequest("json")
37104 if res != nil && res.StatusCode == http.StatusNotModified {
37105 if res.Body != nil {
37106 res.Body.Close()
37107 }
37108 return nil, gensupport.WrapError(&googleapi.Error{
37109 Code: res.StatusCode,
37110 Header: res.Header,
37111 })
37112 }
37113 if err != nil {
37114 return nil, err
37115 }
37116 defer googleapi.CloseBody(res)
37117 if err := googleapi.CheckResponse(res); err != nil {
37118 return nil, gensupport.WrapError(err)
37119 }
37120 ret := &GoogleProtobufEmpty{
37121 ServerResponse: googleapi.ServerResponse{
37122 Header: res.Header,
37123 HTTPStatusCode: res.StatusCode,
37124 },
37125 }
37126 target := &ret
37127 if err := gensupport.DecodeResponse(target, res); err != nil {
37128 return nil, err
37129 }
37130 return ret, nil
37131 }
37132
37133 type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
37134 s *Service
37135 sessionid string
37136 googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
37137 urlParams_ gensupport.URLParams
37138 ctx_ context.Context
37139 header_ http.Header
37140 }
37141
37142
37143
37144
37145
37146
37147
37148
37149
37150
37151
37152
37153
37154
37155
37156
37157
37158
37159
37160
37161
37162
37163
37164
37165
37166 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
37167 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37168 c.sessionid = sessionid
37169 c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
37170 return c
37171 }
37172
37173
37174
37175
37176 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
37177 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37178 return c
37179 }
37180
37181
37182 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
37183 c.ctx_ = ctx
37184 return c
37185 }
37186
37187
37188
37189 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
37190 if c.header_ == nil {
37191 c.header_ = make(http.Header)
37192 }
37193 return c.header_
37194 }
37195
37196 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
37197 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37198 var body io.Reader = nil
37199 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
37200 if err != nil {
37201 return nil, err
37202 }
37203 c.urlParams_.Set("alt", alt)
37204 c.urlParams_.Set("prettyPrint", "false")
37205 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
37206 urls += "?" + c.urlParams_.Encode()
37207 req, err := http.NewRequest("POST", urls, body)
37208 if err != nil {
37209 return nil, err
37210 }
37211 req.Header = reqHeaders
37212 googleapi.Expand(req.URL, map[string]string{
37213 "session": c.sessionid,
37214 })
37215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37216 }
37217
37218
37219
37220
37221
37222
37223
37224 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
37225 gensupport.SetOptions(c.urlParams_, opts...)
37226 res, err := c.doRequest("json")
37227 if res != nil && res.StatusCode == http.StatusNotModified {
37228 if res.Body != nil {
37229 res.Body.Close()
37230 }
37231 return nil, gensupport.WrapError(&googleapi.Error{
37232 Code: res.StatusCode,
37233 Header: res.Header,
37234 })
37235 }
37236 if err != nil {
37237 return nil, err
37238 }
37239 defer googleapi.CloseBody(res)
37240 if err := googleapi.CheckResponse(res); err != nil {
37241 return nil, gensupport.WrapError(err)
37242 }
37243 ret := &GoogleCloudDialogflowV2DetectIntentResponse{
37244 ServerResponse: googleapi.ServerResponse{
37245 Header: res.Header,
37246 HTTPStatusCode: res.StatusCode,
37247 },
37248 }
37249 target := &ret
37250 if err := gensupport.DecodeResponse(target, res); err != nil {
37251 return nil, err
37252 }
37253 return ret, nil
37254 }
37255
37256 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
37257 s *Service
37258 parent string
37259 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
37260 urlParams_ gensupport.URLParams
37261 ctx_ context.Context
37262 header_ http.Header
37263 }
37264
37265
37266
37267
37268
37269
37270
37271
37272
37273 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
37274 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37275 c.parent = parent
37276 c.googleclouddialogflowv2context = googleclouddialogflowv2context
37277 return c
37278 }
37279
37280
37281
37282
37283 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
37284 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37285 return c
37286 }
37287
37288
37289 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
37290 c.ctx_ = ctx
37291 return c
37292 }
37293
37294
37295
37296 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
37297 if c.header_ == nil {
37298 c.header_ = make(http.Header)
37299 }
37300 return c.header_
37301 }
37302
37303 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
37304 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37305 var body io.Reader = nil
37306 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
37307 if err != nil {
37308 return nil, err
37309 }
37310 c.urlParams_.Set("alt", alt)
37311 c.urlParams_.Set("prettyPrint", "false")
37312 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
37313 urls += "?" + c.urlParams_.Encode()
37314 req, err := http.NewRequest("POST", urls, body)
37315 if err != nil {
37316 return nil, err
37317 }
37318 req.Header = reqHeaders
37319 googleapi.Expand(req.URL, map[string]string{
37320 "parent": c.parent,
37321 })
37322 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37323 }
37324
37325
37326
37327
37328
37329
37330
37331 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
37332 gensupport.SetOptions(c.urlParams_, opts...)
37333 res, err := c.doRequest("json")
37334 if res != nil && res.StatusCode == http.StatusNotModified {
37335 if res.Body != nil {
37336 res.Body.Close()
37337 }
37338 return nil, gensupport.WrapError(&googleapi.Error{
37339 Code: res.StatusCode,
37340 Header: res.Header,
37341 })
37342 }
37343 if err != nil {
37344 return nil, err
37345 }
37346 defer googleapi.CloseBody(res)
37347 if err := googleapi.CheckResponse(res); err != nil {
37348 return nil, gensupport.WrapError(err)
37349 }
37350 ret := &GoogleCloudDialogflowV2Context{
37351 ServerResponse: googleapi.ServerResponse{
37352 Header: res.Header,
37353 HTTPStatusCode: res.StatusCode,
37354 },
37355 }
37356 target := &ret
37357 if err := gensupport.DecodeResponse(target, res); err != nil {
37358 return nil, err
37359 }
37360 return ret, nil
37361 }
37362
37363 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
37364 s *Service
37365 name string
37366 urlParams_ gensupport.URLParams
37367 ctx_ context.Context
37368 header_ http.Header
37369 }
37370
37371
37372
37373
37374
37375
37376
37377
37378 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
37379 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37380 c.name = name
37381 return c
37382 }
37383
37384
37385
37386
37387 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
37388 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37389 return c
37390 }
37391
37392
37393 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
37394 c.ctx_ = ctx
37395 return c
37396 }
37397
37398
37399
37400 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
37401 if c.header_ == nil {
37402 c.header_ = make(http.Header)
37403 }
37404 return c.header_
37405 }
37406
37407 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
37408 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37409 var body io.Reader = nil
37410 c.urlParams_.Set("alt", alt)
37411 c.urlParams_.Set("prettyPrint", "false")
37412 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
37413 urls += "?" + c.urlParams_.Encode()
37414 req, err := http.NewRequest("DELETE", urls, body)
37415 if err != nil {
37416 return nil, err
37417 }
37418 req.Header = reqHeaders
37419 googleapi.Expand(req.URL, map[string]string{
37420 "name": c.name,
37421 })
37422 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37423 }
37424
37425
37426
37427
37428
37429
37430
37431 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
37432 gensupport.SetOptions(c.urlParams_, opts...)
37433 res, err := c.doRequest("json")
37434 if res != nil && res.StatusCode == http.StatusNotModified {
37435 if res.Body != nil {
37436 res.Body.Close()
37437 }
37438 return nil, gensupport.WrapError(&googleapi.Error{
37439 Code: res.StatusCode,
37440 Header: res.Header,
37441 })
37442 }
37443 if err != nil {
37444 return nil, err
37445 }
37446 defer googleapi.CloseBody(res)
37447 if err := googleapi.CheckResponse(res); err != nil {
37448 return nil, gensupport.WrapError(err)
37449 }
37450 ret := &GoogleProtobufEmpty{
37451 ServerResponse: googleapi.ServerResponse{
37452 Header: res.Header,
37453 HTTPStatusCode: res.StatusCode,
37454 },
37455 }
37456 target := &ret
37457 if err := gensupport.DecodeResponse(target, res); err != nil {
37458 return nil, err
37459 }
37460 return ret, nil
37461 }
37462
37463 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {
37464 s *Service
37465 name string
37466 urlParams_ gensupport.URLParams
37467 ifNoneMatch_ string
37468 ctx_ context.Context
37469 header_ http.Header
37470 }
37471
37472
37473
37474
37475
37476
37477
37478
37479 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
37480 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37481 c.name = name
37482 return c
37483 }
37484
37485
37486
37487
37488 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
37489 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37490 return c
37491 }
37492
37493
37494
37495
37496 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
37497 c.ifNoneMatch_ = entityTag
37498 return c
37499 }
37500
37501
37502 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
37503 c.ctx_ = ctx
37504 return c
37505 }
37506
37507
37508
37509 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
37510 if c.header_ == nil {
37511 c.header_ = make(http.Header)
37512 }
37513 return c.header_
37514 }
37515
37516 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
37517 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37518 if c.ifNoneMatch_ != "" {
37519 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37520 }
37521 var body io.Reader = nil
37522 c.urlParams_.Set("alt", alt)
37523 c.urlParams_.Set("prettyPrint", "false")
37524 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
37525 urls += "?" + c.urlParams_.Encode()
37526 req, err := http.NewRequest("GET", urls, body)
37527 if err != nil {
37528 return nil, err
37529 }
37530 req.Header = reqHeaders
37531 googleapi.Expand(req.URL, map[string]string{
37532 "name": c.name,
37533 })
37534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37535 }
37536
37537
37538
37539
37540
37541
37542
37543 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
37544 gensupport.SetOptions(c.urlParams_, opts...)
37545 res, err := c.doRequest("json")
37546 if res != nil && res.StatusCode == http.StatusNotModified {
37547 if res.Body != nil {
37548 res.Body.Close()
37549 }
37550 return nil, gensupport.WrapError(&googleapi.Error{
37551 Code: res.StatusCode,
37552 Header: res.Header,
37553 })
37554 }
37555 if err != nil {
37556 return nil, err
37557 }
37558 defer googleapi.CloseBody(res)
37559 if err := googleapi.CheckResponse(res); err != nil {
37560 return nil, gensupport.WrapError(err)
37561 }
37562 ret := &GoogleCloudDialogflowV2Context{
37563 ServerResponse: googleapi.ServerResponse{
37564 Header: res.Header,
37565 HTTPStatusCode: res.StatusCode,
37566 },
37567 }
37568 target := &ret
37569 if err := gensupport.DecodeResponse(target, res); err != nil {
37570 return nil, err
37571 }
37572 return ret, nil
37573 }
37574
37575 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {
37576 s *Service
37577 parent string
37578 urlParams_ gensupport.URLParams
37579 ifNoneMatch_ string
37580 ctx_ context.Context
37581 header_ http.Header
37582 }
37583
37584
37585
37586
37587
37588
37589
37590
37591 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37592 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37593 c.parent = parent
37594 return c
37595 }
37596
37597
37598
37599 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37600 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37601 return c
37602 }
37603
37604
37605
37606 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37607 c.urlParams_.Set("pageToken", pageToken)
37608 return c
37609 }
37610
37611
37612
37613
37614 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37616 return c
37617 }
37618
37619
37620
37621
37622 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37623 c.ifNoneMatch_ = entityTag
37624 return c
37625 }
37626
37627
37628 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37629 c.ctx_ = ctx
37630 return c
37631 }
37632
37633
37634
37635 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
37636 if c.header_ == nil {
37637 c.header_ = make(http.Header)
37638 }
37639 return c.header_
37640 }
37641
37642 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
37643 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37644 if c.ifNoneMatch_ != "" {
37645 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37646 }
37647 var body io.Reader = nil
37648 c.urlParams_.Set("alt", alt)
37649 c.urlParams_.Set("prettyPrint", "false")
37650 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
37651 urls += "?" + c.urlParams_.Encode()
37652 req, err := http.NewRequest("GET", urls, body)
37653 if err != nil {
37654 return nil, err
37655 }
37656 req.Header = reqHeaders
37657 googleapi.Expand(req.URL, map[string]string{
37658 "parent": c.parent,
37659 })
37660 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37661 }
37662
37663
37664
37665
37666
37667
37668
37669 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
37670 gensupport.SetOptions(c.urlParams_, opts...)
37671 res, err := c.doRequest("json")
37672 if res != nil && res.StatusCode == http.StatusNotModified {
37673 if res.Body != nil {
37674 res.Body.Close()
37675 }
37676 return nil, gensupport.WrapError(&googleapi.Error{
37677 Code: res.StatusCode,
37678 Header: res.Header,
37679 })
37680 }
37681 if err != nil {
37682 return nil, err
37683 }
37684 defer googleapi.CloseBody(res)
37685 if err := googleapi.CheckResponse(res); err != nil {
37686 return nil, gensupport.WrapError(err)
37687 }
37688 ret := &GoogleCloudDialogflowV2ListContextsResponse{
37689 ServerResponse: googleapi.ServerResponse{
37690 Header: res.Header,
37691 HTTPStatusCode: res.StatusCode,
37692 },
37693 }
37694 target := &ret
37695 if err := gensupport.DecodeResponse(target, res); err != nil {
37696 return nil, err
37697 }
37698 return ret, nil
37699 }
37700
37701
37702
37703
37704 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
37705 c.ctx_ = ctx
37706 defer c.PageToken(c.urlParams_.Get("pageToken"))
37707 for {
37708 x, err := c.Do()
37709 if err != nil {
37710 return err
37711 }
37712 if err := f(x); err != nil {
37713 return err
37714 }
37715 if x.NextPageToken == "" {
37716 return nil
37717 }
37718 c.PageToken(x.NextPageToken)
37719 }
37720 }
37721
37722 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
37723 s *Service
37724 nameid string
37725 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
37726 urlParams_ gensupport.URLParams
37727 ctx_ context.Context
37728 header_ http.Header
37729 }
37730
37731
37732
37733
37734
37735
37736
37737
37738
37739
37740
37741
37742
37743 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37744 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37745 c.nameid = nameid
37746 c.googleclouddialogflowv2context = googleclouddialogflowv2context
37747 return c
37748 }
37749
37750
37751
37752 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37753 c.urlParams_.Set("updateMask", updateMask)
37754 return c
37755 }
37756
37757
37758
37759
37760 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37761 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37762 return c
37763 }
37764
37765
37766 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37767 c.ctx_ = ctx
37768 return c
37769 }
37770
37771
37772
37773 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
37774 if c.header_ == nil {
37775 c.header_ = make(http.Header)
37776 }
37777 return c.header_
37778 }
37779
37780 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
37781 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37782 var body io.Reader = nil
37783 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
37784 if err != nil {
37785 return nil, err
37786 }
37787 c.urlParams_.Set("alt", alt)
37788 c.urlParams_.Set("prettyPrint", "false")
37789 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
37790 urls += "?" + c.urlParams_.Encode()
37791 req, err := http.NewRequest("PATCH", urls, body)
37792 if err != nil {
37793 return nil, err
37794 }
37795 req.Header = reqHeaders
37796 googleapi.Expand(req.URL, map[string]string{
37797 "name": c.nameid,
37798 })
37799 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37800 }
37801
37802
37803
37804
37805
37806
37807
37808 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
37809 gensupport.SetOptions(c.urlParams_, opts...)
37810 res, err := c.doRequest("json")
37811 if res != nil && res.StatusCode == http.StatusNotModified {
37812 if res.Body != nil {
37813 res.Body.Close()
37814 }
37815 return nil, gensupport.WrapError(&googleapi.Error{
37816 Code: res.StatusCode,
37817 Header: res.Header,
37818 })
37819 }
37820 if err != nil {
37821 return nil, err
37822 }
37823 defer googleapi.CloseBody(res)
37824 if err := googleapi.CheckResponse(res); err != nil {
37825 return nil, gensupport.WrapError(err)
37826 }
37827 ret := &GoogleCloudDialogflowV2Context{
37828 ServerResponse: googleapi.ServerResponse{
37829 Header: res.Header,
37830 HTTPStatusCode: res.StatusCode,
37831 },
37832 }
37833 target := &ret
37834 if err := gensupport.DecodeResponse(target, res); err != nil {
37835 return nil, err
37836 }
37837 return ret, nil
37838 }
37839
37840 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
37841 s *Service
37842 parent string
37843 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
37844 urlParams_ gensupport.URLParams
37845 ctx_ context.Context
37846 header_ http.Header
37847 }
37848
37849
37850
37851
37852
37853
37854
37855
37856
37857
37858
37859 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
37860 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37861 c.parent = parent
37862 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
37863 return c
37864 }
37865
37866
37867
37868
37869 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
37870 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37871 return c
37872 }
37873
37874
37875 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
37876 c.ctx_ = ctx
37877 return c
37878 }
37879
37880
37881
37882 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
37883 if c.header_ == nil {
37884 c.header_ = make(http.Header)
37885 }
37886 return c.header_
37887 }
37888
37889 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
37890 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37891 var body io.Reader = nil
37892 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
37893 if err != nil {
37894 return nil, err
37895 }
37896 c.urlParams_.Set("alt", alt)
37897 c.urlParams_.Set("prettyPrint", "false")
37898 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
37899 urls += "?" + c.urlParams_.Encode()
37900 req, err := http.NewRequest("POST", urls, body)
37901 if err != nil {
37902 return nil, err
37903 }
37904 req.Header = reqHeaders
37905 googleapi.Expand(req.URL, map[string]string{
37906 "parent": c.parent,
37907 })
37908 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37909 }
37910
37911
37912
37913
37914
37915
37916
37917 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
37918 gensupport.SetOptions(c.urlParams_, opts...)
37919 res, err := c.doRequest("json")
37920 if res != nil && res.StatusCode == http.StatusNotModified {
37921 if res.Body != nil {
37922 res.Body.Close()
37923 }
37924 return nil, gensupport.WrapError(&googleapi.Error{
37925 Code: res.StatusCode,
37926 Header: res.Header,
37927 })
37928 }
37929 if err != nil {
37930 return nil, err
37931 }
37932 defer googleapi.CloseBody(res)
37933 if err := googleapi.CheckResponse(res); err != nil {
37934 return nil, gensupport.WrapError(err)
37935 }
37936 ret := &GoogleCloudDialogflowV2SessionEntityType{
37937 ServerResponse: googleapi.ServerResponse{
37938 Header: res.Header,
37939 HTTPStatusCode: res.StatusCode,
37940 },
37941 }
37942 target := &ret
37943 if err := gensupport.DecodeResponse(target, res); err != nil {
37944 return nil, err
37945 }
37946 return ret, nil
37947 }
37948
37949 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
37950 s *Service
37951 name string
37952 urlParams_ gensupport.URLParams
37953 ctx_ context.Context
37954 header_ http.Header
37955 }
37956
37957
37958
37959
37960
37961
37962
37963
37964
37965
37966 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
37967 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37968 c.name = name
37969 return c
37970 }
37971
37972
37973
37974
37975 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
37976 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37977 return c
37978 }
37979
37980
37981 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
37982 c.ctx_ = ctx
37983 return c
37984 }
37985
37986
37987
37988 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
37989 if c.header_ == nil {
37990 c.header_ = make(http.Header)
37991 }
37992 return c.header_
37993 }
37994
37995 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
37996 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37997 var body io.Reader = nil
37998 c.urlParams_.Set("alt", alt)
37999 c.urlParams_.Set("prettyPrint", "false")
38000 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
38001 urls += "?" + c.urlParams_.Encode()
38002 req, err := http.NewRequest("DELETE", urls, body)
38003 if err != nil {
38004 return nil, err
38005 }
38006 req.Header = reqHeaders
38007 googleapi.Expand(req.URL, map[string]string{
38008 "name": c.name,
38009 })
38010 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38011 }
38012
38013
38014
38015
38016
38017
38018
38019 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38020 gensupport.SetOptions(c.urlParams_, opts...)
38021 res, err := c.doRequest("json")
38022 if res != nil && res.StatusCode == http.StatusNotModified {
38023 if res.Body != nil {
38024 res.Body.Close()
38025 }
38026 return nil, gensupport.WrapError(&googleapi.Error{
38027 Code: res.StatusCode,
38028 Header: res.Header,
38029 })
38030 }
38031 if err != nil {
38032 return nil, err
38033 }
38034 defer googleapi.CloseBody(res)
38035 if err := googleapi.CheckResponse(res); err != nil {
38036 return nil, gensupport.WrapError(err)
38037 }
38038 ret := &GoogleProtobufEmpty{
38039 ServerResponse: googleapi.ServerResponse{
38040 Header: res.Header,
38041 HTTPStatusCode: res.StatusCode,
38042 },
38043 }
38044 target := &ret
38045 if err := gensupport.DecodeResponse(target, res); err != nil {
38046 return nil, err
38047 }
38048 return ret, nil
38049 }
38050
38051 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
38052 s *Service
38053 name string
38054 urlParams_ gensupport.URLParams
38055 ifNoneMatch_ string
38056 ctx_ context.Context
38057 header_ http.Header
38058 }
38059
38060
38061
38062
38063
38064
38065
38066
38067
38068
38069 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
38070 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38071 c.name = name
38072 return c
38073 }
38074
38075
38076
38077
38078 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
38079 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38080 return c
38081 }
38082
38083
38084
38085
38086 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
38087 c.ifNoneMatch_ = entityTag
38088 return c
38089 }
38090
38091
38092 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
38093 c.ctx_ = ctx
38094 return c
38095 }
38096
38097
38098
38099 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
38100 if c.header_ == nil {
38101 c.header_ = make(http.Header)
38102 }
38103 return c.header_
38104 }
38105
38106 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
38107 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38108 if c.ifNoneMatch_ != "" {
38109 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38110 }
38111 var body io.Reader = nil
38112 c.urlParams_.Set("alt", alt)
38113 c.urlParams_.Set("prettyPrint", "false")
38114 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
38115 urls += "?" + c.urlParams_.Encode()
38116 req, err := http.NewRequest("GET", urls, body)
38117 if err != nil {
38118 return nil, err
38119 }
38120 req.Header = reqHeaders
38121 googleapi.Expand(req.URL, map[string]string{
38122 "name": c.name,
38123 })
38124 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38125 }
38126
38127
38128
38129
38130
38131
38132
38133 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
38134 gensupport.SetOptions(c.urlParams_, opts...)
38135 res, err := c.doRequest("json")
38136 if res != nil && res.StatusCode == http.StatusNotModified {
38137 if res.Body != nil {
38138 res.Body.Close()
38139 }
38140 return nil, gensupport.WrapError(&googleapi.Error{
38141 Code: res.StatusCode,
38142 Header: res.Header,
38143 })
38144 }
38145 if err != nil {
38146 return nil, err
38147 }
38148 defer googleapi.CloseBody(res)
38149 if err := googleapi.CheckResponse(res); err != nil {
38150 return nil, gensupport.WrapError(err)
38151 }
38152 ret := &GoogleCloudDialogflowV2SessionEntityType{
38153 ServerResponse: googleapi.ServerResponse{
38154 Header: res.Header,
38155 HTTPStatusCode: res.StatusCode,
38156 },
38157 }
38158 target := &ret
38159 if err := gensupport.DecodeResponse(target, res); err != nil {
38160 return nil, err
38161 }
38162 return ret, nil
38163 }
38164
38165 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
38166 s *Service
38167 parent string
38168 urlParams_ gensupport.URLParams
38169 ifNoneMatch_ string
38170 ctx_ context.Context
38171 header_ http.Header
38172 }
38173
38174
38175
38176
38177
38178
38179
38180
38181
38182
38183
38184 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
38185 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38186 c.parent = parent
38187 return c
38188 }
38189
38190
38191
38192 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
38193 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38194 return c
38195 }
38196
38197
38198
38199 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
38200 c.urlParams_.Set("pageToken", pageToken)
38201 return c
38202 }
38203
38204
38205
38206
38207 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
38208 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38209 return c
38210 }
38211
38212
38213
38214
38215 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
38216 c.ifNoneMatch_ = entityTag
38217 return c
38218 }
38219
38220
38221 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
38222 c.ctx_ = ctx
38223 return c
38224 }
38225
38226
38227
38228 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
38229 if c.header_ == nil {
38230 c.header_ = make(http.Header)
38231 }
38232 return c.header_
38233 }
38234
38235 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
38236 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38237 if c.ifNoneMatch_ != "" {
38238 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38239 }
38240 var body io.Reader = nil
38241 c.urlParams_.Set("alt", alt)
38242 c.urlParams_.Set("prettyPrint", "false")
38243 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
38244 urls += "?" + c.urlParams_.Encode()
38245 req, err := http.NewRequest("GET", urls, body)
38246 if err != nil {
38247 return nil, err
38248 }
38249 req.Header = reqHeaders
38250 googleapi.Expand(req.URL, map[string]string{
38251 "parent": c.parent,
38252 })
38253 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38254 }
38255
38256
38257
38258
38259
38260
38261
38262 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
38263 gensupport.SetOptions(c.urlParams_, opts...)
38264 res, err := c.doRequest("json")
38265 if res != nil && res.StatusCode == http.StatusNotModified {
38266 if res.Body != nil {
38267 res.Body.Close()
38268 }
38269 return nil, gensupport.WrapError(&googleapi.Error{
38270 Code: res.StatusCode,
38271 Header: res.Header,
38272 })
38273 }
38274 if err != nil {
38275 return nil, err
38276 }
38277 defer googleapi.CloseBody(res)
38278 if err := googleapi.CheckResponse(res); err != nil {
38279 return nil, gensupport.WrapError(err)
38280 }
38281 ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
38282 ServerResponse: googleapi.ServerResponse{
38283 Header: res.Header,
38284 HTTPStatusCode: res.StatusCode,
38285 },
38286 }
38287 target := &ret
38288 if err := gensupport.DecodeResponse(target, res); err != nil {
38289 return nil, err
38290 }
38291 return ret, nil
38292 }
38293
38294
38295
38296
38297 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
38298 c.ctx_ = ctx
38299 defer c.PageToken(c.urlParams_.Get("pageToken"))
38300 for {
38301 x, err := c.Do()
38302 if err != nil {
38303 return err
38304 }
38305 if err := f(x); err != nil {
38306 return err
38307 }
38308 if x.NextPageToken == "" {
38309 return nil
38310 }
38311 c.PageToken(x.NextPageToken)
38312 }
38313 }
38314
38315 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
38316 s *Service
38317 nameid string
38318 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
38319 urlParams_ gensupport.URLParams
38320 ctx_ context.Context
38321 header_ http.Header
38322 }
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333
38334
38335 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
38336 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38337 c.nameid = nameid
38338 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
38339 return c
38340 }
38341
38342
38343
38344 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
38345 c.urlParams_.Set("updateMask", updateMask)
38346 return c
38347 }
38348
38349
38350
38351
38352 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
38353 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38354 return c
38355 }
38356
38357
38358 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
38359 c.ctx_ = ctx
38360 return c
38361 }
38362
38363
38364
38365 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
38366 if c.header_ == nil {
38367 c.header_ = make(http.Header)
38368 }
38369 return c.header_
38370 }
38371
38372 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
38373 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38374 var body io.Reader = nil
38375 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
38376 if err != nil {
38377 return nil, err
38378 }
38379 c.urlParams_.Set("alt", alt)
38380 c.urlParams_.Set("prettyPrint", "false")
38381 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
38382 urls += "?" + c.urlParams_.Encode()
38383 req, err := http.NewRequest("PATCH", urls, body)
38384 if err != nil {
38385 return nil, err
38386 }
38387 req.Header = reqHeaders
38388 googleapi.Expand(req.URL, map[string]string{
38389 "name": c.nameid,
38390 })
38391 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38392 }
38393
38394
38395
38396
38397
38398
38399
38400 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
38401 gensupport.SetOptions(c.urlParams_, opts...)
38402 res, err := c.doRequest("json")
38403 if res != nil && res.StatusCode == http.StatusNotModified {
38404 if res.Body != nil {
38405 res.Body.Close()
38406 }
38407 return nil, gensupport.WrapError(&googleapi.Error{
38408 Code: res.StatusCode,
38409 Header: res.Header,
38410 })
38411 }
38412 if err != nil {
38413 return nil, err
38414 }
38415 defer googleapi.CloseBody(res)
38416 if err := googleapi.CheckResponse(res); err != nil {
38417 return nil, gensupport.WrapError(err)
38418 }
38419 ret := &GoogleCloudDialogflowV2SessionEntityType{
38420 ServerResponse: googleapi.ServerResponse{
38421 Header: res.Header,
38422 HTTPStatusCode: res.StatusCode,
38423 },
38424 }
38425 target := &ret
38426 if err := gensupport.DecodeResponse(target, res); err != nil {
38427 return nil, err
38428 }
38429 return ret, nil
38430 }
38431
38432 type ProjectsLocationsAgentIntentsBatchDeleteCall struct {
38433 s *Service
38434 parent string
38435 googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest
38436 urlParams_ gensupport.URLParams
38437 ctx_ context.Context
38438 header_ http.Header
38439 }
38440
38441
38442
38443
38444
38445
38446
38447
38448
38449
38450
38451
38452
38453
38454
38455 func (r *ProjectsLocationsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2batchdeleteintentsrequest *GoogleCloudDialogflowV2BatchDeleteIntentsRequest) *ProjectsLocationsAgentIntentsBatchDeleteCall {
38456 c := &ProjectsLocationsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38457 c.parent = parent
38458 c.googleclouddialogflowv2batchdeleteintentsrequest = googleclouddialogflowv2batchdeleteintentsrequest
38459 return c
38460 }
38461
38462
38463
38464
38465 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchDeleteCall {
38466 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38467 return c
38468 }
38469
38470
38471 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchDeleteCall {
38472 c.ctx_ = ctx
38473 return c
38474 }
38475
38476
38477
38478 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header {
38479 if c.header_ == nil {
38480 c.header_ = make(http.Header)
38481 }
38482 return c.header_
38483 }
38484
38485 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
38486 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38487 var body io.Reader = nil
38488 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchdeleteintentsrequest)
38489 if err != nil {
38490 return nil, err
38491 }
38492 c.urlParams_.Set("alt", alt)
38493 c.urlParams_.Set("prettyPrint", "false")
38494 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchDelete")
38495 urls += "?" + c.urlParams_.Encode()
38496 req, err := http.NewRequest("POST", urls, body)
38497 if err != nil {
38498 return nil, err
38499 }
38500 req.Header = reqHeaders
38501 googleapi.Expand(req.URL, map[string]string{
38502 "parent": c.parent,
38503 })
38504 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38505 }
38506
38507
38508
38509
38510
38511
38512
38513 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38514 gensupport.SetOptions(c.urlParams_, opts...)
38515 res, err := c.doRequest("json")
38516 if res != nil && res.StatusCode == http.StatusNotModified {
38517 if res.Body != nil {
38518 res.Body.Close()
38519 }
38520 return nil, gensupport.WrapError(&googleapi.Error{
38521 Code: res.StatusCode,
38522 Header: res.Header,
38523 })
38524 }
38525 if err != nil {
38526 return nil, err
38527 }
38528 defer googleapi.CloseBody(res)
38529 if err := googleapi.CheckResponse(res); err != nil {
38530 return nil, gensupport.WrapError(err)
38531 }
38532 ret := &GoogleLongrunningOperation{
38533 ServerResponse: googleapi.ServerResponse{
38534 Header: res.Header,
38535 HTTPStatusCode: res.StatusCode,
38536 },
38537 }
38538 target := &ret
38539 if err := gensupport.DecodeResponse(target, res); err != nil {
38540 return nil, err
38541 }
38542 return ret, nil
38543 }
38544
38545 type ProjectsLocationsAgentIntentsBatchUpdateCall struct {
38546 s *Service
38547 parent string
38548 googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest
38549 urlParams_ gensupport.URLParams
38550 ctx_ context.Context
38551 header_ http.Header
38552 }
38553
38554
38555
38556
38557
38558
38559
38560
38561
38562
38563
38564
38565
38566 func (r *ProjectsLocationsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2batchupdateintentsrequest *GoogleCloudDialogflowV2BatchUpdateIntentsRequest) *ProjectsLocationsAgentIntentsBatchUpdateCall {
38567 c := &ProjectsLocationsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38568 c.parent = parent
38569 c.googleclouddialogflowv2batchupdateintentsrequest = googleclouddialogflowv2batchupdateintentsrequest
38570 return c
38571 }
38572
38573
38574
38575
38576 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchUpdateCall {
38577 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38578 return c
38579 }
38580
38581
38582 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchUpdateCall {
38583 c.ctx_ = ctx
38584 return c
38585 }
38586
38587
38588
38589 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header {
38590 if c.header_ == nil {
38591 c.header_ = make(http.Header)
38592 }
38593 return c.header_
38594 }
38595
38596 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
38597 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38598 var body io.Reader = nil
38599 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2batchupdateintentsrequest)
38600 if err != nil {
38601 return nil, err
38602 }
38603 c.urlParams_.Set("alt", alt)
38604 c.urlParams_.Set("prettyPrint", "false")
38605 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents:batchUpdate")
38606 urls += "?" + c.urlParams_.Encode()
38607 req, err := http.NewRequest("POST", urls, body)
38608 if err != nil {
38609 return nil, err
38610 }
38611 req.Header = reqHeaders
38612 googleapi.Expand(req.URL, map[string]string{
38613 "parent": c.parent,
38614 })
38615 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38616 }
38617
38618
38619
38620
38621
38622
38623
38624 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38625 gensupport.SetOptions(c.urlParams_, opts...)
38626 res, err := c.doRequest("json")
38627 if res != nil && res.StatusCode == http.StatusNotModified {
38628 if res.Body != nil {
38629 res.Body.Close()
38630 }
38631 return nil, gensupport.WrapError(&googleapi.Error{
38632 Code: res.StatusCode,
38633 Header: res.Header,
38634 })
38635 }
38636 if err != nil {
38637 return nil, err
38638 }
38639 defer googleapi.CloseBody(res)
38640 if err := googleapi.CheckResponse(res); err != nil {
38641 return nil, gensupport.WrapError(err)
38642 }
38643 ret := &GoogleLongrunningOperation{
38644 ServerResponse: googleapi.ServerResponse{
38645 Header: res.Header,
38646 HTTPStatusCode: res.StatusCode,
38647 },
38648 }
38649 target := &ret
38650 if err := gensupport.DecodeResponse(target, res); err != nil {
38651 return nil, err
38652 }
38653 return ret, nil
38654 }
38655
38656 type ProjectsLocationsAgentIntentsCreateCall struct {
38657 s *Service
38658 parent string
38659 googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
38660 urlParams_ gensupport.URLParams
38661 ctx_ context.Context
38662 header_ http.Header
38663 }
38664
38665
38666
38667
38668
38669
38670 func (r *ProjectsLocationsAgentIntentsService) Create(parent string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsLocationsAgentIntentsCreateCall {
38671 c := &ProjectsLocationsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38672 c.parent = parent
38673 c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
38674 return c
38675 }
38676
38677
38678
38679
38680
38681
38682
38683
38684
38685
38686
38687 func (c *ProjectsLocationsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsCreateCall {
38688 c.urlParams_.Set("intentView", intentView)
38689 return c
38690 }
38691
38692
38693
38694
38695
38696
38697 func (c *ProjectsLocationsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsCreateCall {
38698 c.urlParams_.Set("languageCode", languageCode)
38699 return c
38700 }
38701
38702
38703
38704
38705 func (c *ProjectsLocationsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsCreateCall {
38706 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38707 return c
38708 }
38709
38710
38711 func (c *ProjectsLocationsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsCreateCall {
38712 c.ctx_ = ctx
38713 return c
38714 }
38715
38716
38717
38718 func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header {
38719 if c.header_ == nil {
38720 c.header_ = make(http.Header)
38721 }
38722 return c.header_
38723 }
38724
38725 func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
38726 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38727 var body io.Reader = nil
38728 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
38729 if err != nil {
38730 return nil, err
38731 }
38732 c.urlParams_.Set("alt", alt)
38733 c.urlParams_.Set("prettyPrint", "false")
38734 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
38735 urls += "?" + c.urlParams_.Encode()
38736 req, err := http.NewRequest("POST", urls, body)
38737 if err != nil {
38738 return nil, err
38739 }
38740 req.Header = reqHeaders
38741 googleapi.Expand(req.URL, map[string]string{
38742 "parent": c.parent,
38743 })
38744 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38745 }
38746
38747
38748
38749
38750
38751
38752
38753 func (c *ProjectsLocationsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
38754 gensupport.SetOptions(c.urlParams_, opts...)
38755 res, err := c.doRequest("json")
38756 if res != nil && res.StatusCode == http.StatusNotModified {
38757 if res.Body != nil {
38758 res.Body.Close()
38759 }
38760 return nil, gensupport.WrapError(&googleapi.Error{
38761 Code: res.StatusCode,
38762 Header: res.Header,
38763 })
38764 }
38765 if err != nil {
38766 return nil, err
38767 }
38768 defer googleapi.CloseBody(res)
38769 if err := googleapi.CheckResponse(res); err != nil {
38770 return nil, gensupport.WrapError(err)
38771 }
38772 ret := &GoogleCloudDialogflowV2Intent{
38773 ServerResponse: googleapi.ServerResponse{
38774 Header: res.Header,
38775 HTTPStatusCode: res.StatusCode,
38776 },
38777 }
38778 target := &ret
38779 if err := gensupport.DecodeResponse(target, res); err != nil {
38780 return nil, err
38781 }
38782 return ret, nil
38783 }
38784
38785 type ProjectsLocationsAgentIntentsDeleteCall struct {
38786 s *Service
38787 name string
38788 urlParams_ gensupport.URLParams
38789 ctx_ context.Context
38790 header_ http.Header
38791 }
38792
38793
38794
38795
38796
38797
38798
38799
38800
38801 func (r *ProjectsLocationsAgentIntentsService) Delete(name string) *ProjectsLocationsAgentIntentsDeleteCall {
38802 c := &ProjectsLocationsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38803 c.name = name
38804 return c
38805 }
38806
38807
38808
38809
38810 func (c *ProjectsLocationsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsDeleteCall {
38811 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38812 return c
38813 }
38814
38815
38816 func (c *ProjectsLocationsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsDeleteCall {
38817 c.ctx_ = ctx
38818 return c
38819 }
38820
38821
38822
38823 func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header {
38824 if c.header_ == nil {
38825 c.header_ = make(http.Header)
38826 }
38827 return c.header_
38828 }
38829
38830 func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
38831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38832 var body io.Reader = nil
38833 c.urlParams_.Set("alt", alt)
38834 c.urlParams_.Set("prettyPrint", "false")
38835 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
38836 urls += "?" + c.urlParams_.Encode()
38837 req, err := http.NewRequest("DELETE", urls, body)
38838 if err != nil {
38839 return nil, err
38840 }
38841 req.Header = reqHeaders
38842 googleapi.Expand(req.URL, map[string]string{
38843 "name": c.name,
38844 })
38845 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38846 }
38847
38848
38849
38850
38851
38852
38853
38854 func (c *ProjectsLocationsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38855 gensupport.SetOptions(c.urlParams_, opts...)
38856 res, err := c.doRequest("json")
38857 if res != nil && res.StatusCode == http.StatusNotModified {
38858 if res.Body != nil {
38859 res.Body.Close()
38860 }
38861 return nil, gensupport.WrapError(&googleapi.Error{
38862 Code: res.StatusCode,
38863 Header: res.Header,
38864 })
38865 }
38866 if err != nil {
38867 return nil, err
38868 }
38869 defer googleapi.CloseBody(res)
38870 if err := googleapi.CheckResponse(res); err != nil {
38871 return nil, gensupport.WrapError(err)
38872 }
38873 ret := &GoogleProtobufEmpty{
38874 ServerResponse: googleapi.ServerResponse{
38875 Header: res.Header,
38876 HTTPStatusCode: res.StatusCode,
38877 },
38878 }
38879 target := &ret
38880 if err := gensupport.DecodeResponse(target, res); err != nil {
38881 return nil, err
38882 }
38883 return ret, nil
38884 }
38885
38886 type ProjectsLocationsAgentIntentsGetCall struct {
38887 s *Service
38888 name string
38889 urlParams_ gensupport.URLParams
38890 ifNoneMatch_ string
38891 ctx_ context.Context
38892 header_ http.Header
38893 }
38894
38895
38896
38897
38898 func (r *ProjectsLocationsAgentIntentsService) Get(name string) *ProjectsLocationsAgentIntentsGetCall {
38899 c := &ProjectsLocationsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38900 c.name = name
38901 return c
38902 }
38903
38904
38905
38906
38907
38908
38909
38910
38911
38912
38913
38914 func (c *ProjectsLocationsAgentIntentsGetCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsGetCall {
38915 c.urlParams_.Set("intentView", intentView)
38916 return c
38917 }
38918
38919
38920
38921
38922
38923
38924 func (c *ProjectsLocationsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsGetCall {
38925 c.urlParams_.Set("languageCode", languageCode)
38926 return c
38927 }
38928
38929
38930
38931
38932 func (c *ProjectsLocationsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsGetCall {
38933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38934 return c
38935 }
38936
38937
38938
38939
38940 func (c *ProjectsLocationsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsGetCall {
38941 c.ifNoneMatch_ = entityTag
38942 return c
38943 }
38944
38945
38946 func (c *ProjectsLocationsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsGetCall {
38947 c.ctx_ = ctx
38948 return c
38949 }
38950
38951
38952
38953 func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header {
38954 if c.header_ == nil {
38955 c.header_ = make(http.Header)
38956 }
38957 return c.header_
38958 }
38959
38960 func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
38961 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38962 if c.ifNoneMatch_ != "" {
38963 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38964 }
38965 var body io.Reader = nil
38966 c.urlParams_.Set("alt", alt)
38967 c.urlParams_.Set("prettyPrint", "false")
38968 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
38969 urls += "?" + c.urlParams_.Encode()
38970 req, err := http.NewRequest("GET", urls, body)
38971 if err != nil {
38972 return nil, err
38973 }
38974 req.Header = reqHeaders
38975 googleapi.Expand(req.URL, map[string]string{
38976 "name": c.name,
38977 })
38978 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38979 }
38980
38981
38982
38983
38984
38985
38986
38987 func (c *ProjectsLocationsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
38988 gensupport.SetOptions(c.urlParams_, opts...)
38989 res, err := c.doRequest("json")
38990 if res != nil && res.StatusCode == http.StatusNotModified {
38991 if res.Body != nil {
38992 res.Body.Close()
38993 }
38994 return nil, gensupport.WrapError(&googleapi.Error{
38995 Code: res.StatusCode,
38996 Header: res.Header,
38997 })
38998 }
38999 if err != nil {
39000 return nil, err
39001 }
39002 defer googleapi.CloseBody(res)
39003 if err := googleapi.CheckResponse(res); err != nil {
39004 return nil, gensupport.WrapError(err)
39005 }
39006 ret := &GoogleCloudDialogflowV2Intent{
39007 ServerResponse: googleapi.ServerResponse{
39008 Header: res.Header,
39009 HTTPStatusCode: res.StatusCode,
39010 },
39011 }
39012 target := &ret
39013 if err := gensupport.DecodeResponse(target, res); err != nil {
39014 return nil, err
39015 }
39016 return ret, nil
39017 }
39018
39019 type ProjectsLocationsAgentIntentsListCall struct {
39020 s *Service
39021 parent string
39022 urlParams_ gensupport.URLParams
39023 ifNoneMatch_ string
39024 ctx_ context.Context
39025 header_ http.Header
39026 }
39027
39028
39029
39030
39031
39032
39033
39034
39035 func (r *ProjectsLocationsAgentIntentsService) List(parent string) *ProjectsLocationsAgentIntentsListCall {
39036 c := &ProjectsLocationsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39037 c.parent = parent
39038 return c
39039 }
39040
39041
39042
39043
39044
39045
39046
39047
39048
39049
39050
39051 func (c *ProjectsLocationsAgentIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsListCall {
39052 c.urlParams_.Set("intentView", intentView)
39053 return c
39054 }
39055
39056
39057
39058
39059
39060
39061 func (c *ProjectsLocationsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsListCall {
39062 c.urlParams_.Set("languageCode", languageCode)
39063 return c
39064 }
39065
39066
39067
39068 func (c *ProjectsLocationsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentIntentsListCall {
39069 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39070 return c
39071 }
39072
39073
39074
39075 func (c *ProjectsLocationsAgentIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentIntentsListCall {
39076 c.urlParams_.Set("pageToken", pageToken)
39077 return c
39078 }
39079
39080
39081
39082
39083 func (c *ProjectsLocationsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsListCall {
39084 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39085 return c
39086 }
39087
39088
39089
39090
39091 func (c *ProjectsLocationsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsListCall {
39092 c.ifNoneMatch_ = entityTag
39093 return c
39094 }
39095
39096
39097 func (c *ProjectsLocationsAgentIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsListCall {
39098 c.ctx_ = ctx
39099 return c
39100 }
39101
39102
39103
39104 func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header {
39105 if c.header_ == nil {
39106 c.header_ = make(http.Header)
39107 }
39108 return c.header_
39109 }
39110
39111 func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
39112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39113 if c.ifNoneMatch_ != "" {
39114 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39115 }
39116 var body io.Reader = nil
39117 c.urlParams_.Set("alt", alt)
39118 c.urlParams_.Set("prettyPrint", "false")
39119 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/intents")
39120 urls += "?" + c.urlParams_.Encode()
39121 req, err := http.NewRequest("GET", urls, body)
39122 if err != nil {
39123 return nil, err
39124 }
39125 req.Header = reqHeaders
39126 googleapi.Expand(req.URL, map[string]string{
39127 "parent": c.parent,
39128 })
39129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39130 }
39131
39132
39133
39134
39135
39136
39137
39138 func (c *ProjectsLocationsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListIntentsResponse, error) {
39139 gensupport.SetOptions(c.urlParams_, opts...)
39140 res, err := c.doRequest("json")
39141 if res != nil && res.StatusCode == http.StatusNotModified {
39142 if res.Body != nil {
39143 res.Body.Close()
39144 }
39145 return nil, gensupport.WrapError(&googleapi.Error{
39146 Code: res.StatusCode,
39147 Header: res.Header,
39148 })
39149 }
39150 if err != nil {
39151 return nil, err
39152 }
39153 defer googleapi.CloseBody(res)
39154 if err := googleapi.CheckResponse(res); err != nil {
39155 return nil, gensupport.WrapError(err)
39156 }
39157 ret := &GoogleCloudDialogflowV2ListIntentsResponse{
39158 ServerResponse: googleapi.ServerResponse{
39159 Header: res.Header,
39160 HTTPStatusCode: res.StatusCode,
39161 },
39162 }
39163 target := &ret
39164 if err := gensupport.DecodeResponse(target, res); err != nil {
39165 return nil, err
39166 }
39167 return ret, nil
39168 }
39169
39170
39171
39172
39173 func (c *ProjectsLocationsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListIntentsResponse) error) error {
39174 c.ctx_ = ctx
39175 defer c.PageToken(c.urlParams_.Get("pageToken"))
39176 for {
39177 x, err := c.Do()
39178 if err != nil {
39179 return err
39180 }
39181 if err := f(x); err != nil {
39182 return err
39183 }
39184 if x.NextPageToken == "" {
39185 return nil
39186 }
39187 c.PageToken(x.NextPageToken)
39188 }
39189 }
39190
39191 type ProjectsLocationsAgentIntentsPatchCall struct {
39192 s *Service
39193 nameid string
39194 googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent
39195 urlParams_ gensupport.URLParams
39196 ctx_ context.Context
39197 header_ http.Header
39198 }
39199
39200
39201
39202
39203
39204
39205
39206
39207 func (r *ProjectsLocationsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2intent *GoogleCloudDialogflowV2Intent) *ProjectsLocationsAgentIntentsPatchCall {
39208 c := &ProjectsLocationsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39209 c.nameid = nameid
39210 c.googleclouddialogflowv2intent = googleclouddialogflowv2intent
39211 return c
39212 }
39213
39214
39215
39216
39217
39218
39219
39220
39221
39222
39223
39224 func (c *ProjectsLocationsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsPatchCall {
39225 c.urlParams_.Set("intentView", intentView)
39226 return c
39227 }
39228
39229
39230
39231
39232
39233
39234 func (c *ProjectsLocationsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsPatchCall {
39235 c.urlParams_.Set("languageCode", languageCode)
39236 return c
39237 }
39238
39239
39240
39241 func (c *ProjectsLocationsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentIntentsPatchCall {
39242 c.urlParams_.Set("updateMask", updateMask)
39243 return c
39244 }
39245
39246
39247
39248
39249 func (c *ProjectsLocationsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsPatchCall {
39250 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39251 return c
39252 }
39253
39254
39255 func (c *ProjectsLocationsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsPatchCall {
39256 c.ctx_ = ctx
39257 return c
39258 }
39259
39260
39261
39262 func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header {
39263 if c.header_ == nil {
39264 c.header_ = make(http.Header)
39265 }
39266 return c.header_
39267 }
39268
39269 func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
39270 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39271 var body io.Reader = nil
39272 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2intent)
39273 if err != nil {
39274 return nil, err
39275 }
39276 c.urlParams_.Set("alt", alt)
39277 c.urlParams_.Set("prettyPrint", "false")
39278 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
39279 urls += "?" + c.urlParams_.Encode()
39280 req, err := http.NewRequest("PATCH", urls, body)
39281 if err != nil {
39282 return nil, err
39283 }
39284 req.Header = reqHeaders
39285 googleapi.Expand(req.URL, map[string]string{
39286 "name": c.nameid,
39287 })
39288 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39289 }
39290
39291
39292
39293
39294
39295
39296
39297 func (c *ProjectsLocationsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Intent, error) {
39298 gensupport.SetOptions(c.urlParams_, opts...)
39299 res, err := c.doRequest("json")
39300 if res != nil && res.StatusCode == http.StatusNotModified {
39301 if res.Body != nil {
39302 res.Body.Close()
39303 }
39304 return nil, gensupport.WrapError(&googleapi.Error{
39305 Code: res.StatusCode,
39306 Header: res.Header,
39307 })
39308 }
39309 if err != nil {
39310 return nil, err
39311 }
39312 defer googleapi.CloseBody(res)
39313 if err := googleapi.CheckResponse(res); err != nil {
39314 return nil, gensupport.WrapError(err)
39315 }
39316 ret := &GoogleCloudDialogflowV2Intent{
39317 ServerResponse: googleapi.ServerResponse{
39318 Header: res.Header,
39319 HTTPStatusCode: res.StatusCode,
39320 },
39321 }
39322 target := &ret
39323 if err := gensupport.DecodeResponse(target, res); err != nil {
39324 return nil, err
39325 }
39326 return ret, nil
39327 }
39328
39329 type ProjectsLocationsAgentSessionsDeleteContextsCall struct {
39330 s *Service
39331 parent string
39332 urlParams_ gensupport.URLParams
39333 ctx_ context.Context
39334 header_ http.Header
39335 }
39336
39337
39338
39339
39340
39341
39342
39343
39344 func (r *ProjectsLocationsAgentSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentSessionsDeleteContextsCall {
39345 c := &ProjectsLocationsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39346 c.parent = parent
39347 return c
39348 }
39349
39350
39351
39352
39353 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDeleteContextsCall {
39354 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39355 return c
39356 }
39357
39358
39359 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDeleteContextsCall {
39360 c.ctx_ = ctx
39361 return c
39362 }
39363
39364
39365
39366 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header {
39367 if c.header_ == nil {
39368 c.header_ = make(http.Header)
39369 }
39370 return c.header_
39371 }
39372
39373 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
39374 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39375 var body io.Reader = nil
39376 c.urlParams_.Set("alt", alt)
39377 c.urlParams_.Set("prettyPrint", "false")
39378 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
39379 urls += "?" + c.urlParams_.Encode()
39380 req, err := http.NewRequest("DELETE", urls, body)
39381 if err != nil {
39382 return nil, err
39383 }
39384 req.Header = reqHeaders
39385 googleapi.Expand(req.URL, map[string]string{
39386 "parent": c.parent,
39387 })
39388 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39389 }
39390
39391
39392
39393
39394
39395
39396
39397 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
39398 gensupport.SetOptions(c.urlParams_, opts...)
39399 res, err := c.doRequest("json")
39400 if res != nil && res.StatusCode == http.StatusNotModified {
39401 if res.Body != nil {
39402 res.Body.Close()
39403 }
39404 return nil, gensupport.WrapError(&googleapi.Error{
39405 Code: res.StatusCode,
39406 Header: res.Header,
39407 })
39408 }
39409 if err != nil {
39410 return nil, err
39411 }
39412 defer googleapi.CloseBody(res)
39413 if err := googleapi.CheckResponse(res); err != nil {
39414 return nil, gensupport.WrapError(err)
39415 }
39416 ret := &GoogleProtobufEmpty{
39417 ServerResponse: googleapi.ServerResponse{
39418 Header: res.Header,
39419 HTTPStatusCode: res.StatusCode,
39420 },
39421 }
39422 target := &ret
39423 if err := gensupport.DecodeResponse(target, res); err != nil {
39424 return nil, err
39425 }
39426 return ret, nil
39427 }
39428
39429 type ProjectsLocationsAgentSessionsDetectIntentCall struct {
39430 s *Service
39431 sessionid string
39432 googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest
39433 urlParams_ gensupport.URLParams
39434 ctx_ context.Context
39435 header_ http.Header
39436 }
39437
39438
39439
39440
39441
39442
39443
39444
39445
39446
39447
39448
39449
39450
39451
39452
39453
39454
39455
39456
39457
39458
39459
39460
39461
39462 func (r *ProjectsLocationsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2detectintentrequest *GoogleCloudDialogflowV2DetectIntentRequest) *ProjectsLocationsAgentSessionsDetectIntentCall {
39463 c := &ProjectsLocationsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39464 c.sessionid = sessionid
39465 c.googleclouddialogflowv2detectintentrequest = googleclouddialogflowv2detectintentrequest
39466 return c
39467 }
39468
39469
39470
39471
39472 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDetectIntentCall {
39473 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39474 return c
39475 }
39476
39477
39478 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDetectIntentCall {
39479 c.ctx_ = ctx
39480 return c
39481 }
39482
39483
39484
39485 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header {
39486 if c.header_ == nil {
39487 c.header_ = make(http.Header)
39488 }
39489 return c.header_
39490 }
39491
39492 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
39493 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39494 var body io.Reader = nil
39495 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2detectintentrequest)
39496 if err != nil {
39497 return nil, err
39498 }
39499 c.urlParams_.Set("alt", alt)
39500 c.urlParams_.Set("prettyPrint", "false")
39501 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+session}:detectIntent")
39502 urls += "?" + c.urlParams_.Encode()
39503 req, err := http.NewRequest("POST", urls, body)
39504 if err != nil {
39505 return nil, err
39506 }
39507 req.Header = reqHeaders
39508 googleapi.Expand(req.URL, map[string]string{
39509 "session": c.sessionid,
39510 })
39511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39512 }
39513
39514
39515
39516
39517
39518
39519
39520 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2DetectIntentResponse, error) {
39521 gensupport.SetOptions(c.urlParams_, opts...)
39522 res, err := c.doRequest("json")
39523 if res != nil && res.StatusCode == http.StatusNotModified {
39524 if res.Body != nil {
39525 res.Body.Close()
39526 }
39527 return nil, gensupport.WrapError(&googleapi.Error{
39528 Code: res.StatusCode,
39529 Header: res.Header,
39530 })
39531 }
39532 if err != nil {
39533 return nil, err
39534 }
39535 defer googleapi.CloseBody(res)
39536 if err := googleapi.CheckResponse(res); err != nil {
39537 return nil, gensupport.WrapError(err)
39538 }
39539 ret := &GoogleCloudDialogflowV2DetectIntentResponse{
39540 ServerResponse: googleapi.ServerResponse{
39541 Header: res.Header,
39542 HTTPStatusCode: res.StatusCode,
39543 },
39544 }
39545 target := &ret
39546 if err := gensupport.DecodeResponse(target, res); err != nil {
39547 return nil, err
39548 }
39549 return ret, nil
39550 }
39551
39552 type ProjectsLocationsAgentSessionsContextsCreateCall struct {
39553 s *Service
39554 parent string
39555 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
39556 urlParams_ gensupport.URLParams
39557 ctx_ context.Context
39558 header_ http.Header
39559 }
39560
39561
39562
39563
39564
39565
39566
39567
39568
39569 func (r *ProjectsLocationsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
39570 c := &ProjectsLocationsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39571 c.parent = parent
39572 c.googleclouddialogflowv2context = googleclouddialogflowv2context
39573 return c
39574 }
39575
39576
39577
39578
39579 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsCreateCall {
39580 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39581 return c
39582 }
39583
39584
39585 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
39586 c.ctx_ = ctx
39587 return c
39588 }
39589
39590
39591
39592 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header {
39593 if c.header_ == nil {
39594 c.header_ = make(http.Header)
39595 }
39596 return c.header_
39597 }
39598
39599 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
39600 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39601 var body io.Reader = nil
39602 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
39603 if err != nil {
39604 return nil, err
39605 }
39606 c.urlParams_.Set("alt", alt)
39607 c.urlParams_.Set("prettyPrint", "false")
39608 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
39609 urls += "?" + c.urlParams_.Encode()
39610 req, err := http.NewRequest("POST", urls, body)
39611 if err != nil {
39612 return nil, err
39613 }
39614 req.Header = reqHeaders
39615 googleapi.Expand(req.URL, map[string]string{
39616 "parent": c.parent,
39617 })
39618 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39619 }
39620
39621
39622
39623
39624
39625
39626
39627 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
39628 gensupport.SetOptions(c.urlParams_, opts...)
39629 res, err := c.doRequest("json")
39630 if res != nil && res.StatusCode == http.StatusNotModified {
39631 if res.Body != nil {
39632 res.Body.Close()
39633 }
39634 return nil, gensupport.WrapError(&googleapi.Error{
39635 Code: res.StatusCode,
39636 Header: res.Header,
39637 })
39638 }
39639 if err != nil {
39640 return nil, err
39641 }
39642 defer googleapi.CloseBody(res)
39643 if err := googleapi.CheckResponse(res); err != nil {
39644 return nil, gensupport.WrapError(err)
39645 }
39646 ret := &GoogleCloudDialogflowV2Context{
39647 ServerResponse: googleapi.ServerResponse{
39648 Header: res.Header,
39649 HTTPStatusCode: res.StatusCode,
39650 },
39651 }
39652 target := &ret
39653 if err := gensupport.DecodeResponse(target, res); err != nil {
39654 return nil, err
39655 }
39656 return ret, nil
39657 }
39658
39659 type ProjectsLocationsAgentSessionsContextsDeleteCall struct {
39660 s *Service
39661 name string
39662 urlParams_ gensupport.URLParams
39663 ctx_ context.Context
39664 header_ http.Header
39665 }
39666
39667
39668
39669
39670
39671
39672
39673
39674 func (r *ProjectsLocationsAgentSessionsContextsService) Delete(name string) *ProjectsLocationsAgentSessionsContextsDeleteCall {
39675 c := &ProjectsLocationsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39676 c.name = name
39677 return c
39678 }
39679
39680
39681
39682
39683 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsDeleteCall {
39684 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39685 return c
39686 }
39687
39688
39689 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsDeleteCall {
39690 c.ctx_ = ctx
39691 return c
39692 }
39693
39694
39695
39696 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header {
39697 if c.header_ == nil {
39698 c.header_ = make(http.Header)
39699 }
39700 return c.header_
39701 }
39702
39703 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
39704 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39705 var body io.Reader = nil
39706 c.urlParams_.Set("alt", alt)
39707 c.urlParams_.Set("prettyPrint", "false")
39708 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
39709 urls += "?" + c.urlParams_.Encode()
39710 req, err := http.NewRequest("DELETE", urls, body)
39711 if err != nil {
39712 return nil, err
39713 }
39714 req.Header = reqHeaders
39715 googleapi.Expand(req.URL, map[string]string{
39716 "name": c.name,
39717 })
39718 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39719 }
39720
39721
39722
39723
39724
39725
39726
39727 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
39728 gensupport.SetOptions(c.urlParams_, opts...)
39729 res, err := c.doRequest("json")
39730 if res != nil && res.StatusCode == http.StatusNotModified {
39731 if res.Body != nil {
39732 res.Body.Close()
39733 }
39734 return nil, gensupport.WrapError(&googleapi.Error{
39735 Code: res.StatusCode,
39736 Header: res.Header,
39737 })
39738 }
39739 if err != nil {
39740 return nil, err
39741 }
39742 defer googleapi.CloseBody(res)
39743 if err := googleapi.CheckResponse(res); err != nil {
39744 return nil, gensupport.WrapError(err)
39745 }
39746 ret := &GoogleProtobufEmpty{
39747 ServerResponse: googleapi.ServerResponse{
39748 Header: res.Header,
39749 HTTPStatusCode: res.StatusCode,
39750 },
39751 }
39752 target := &ret
39753 if err := gensupport.DecodeResponse(target, res); err != nil {
39754 return nil, err
39755 }
39756 return ret, nil
39757 }
39758
39759 type ProjectsLocationsAgentSessionsContextsGetCall struct {
39760 s *Service
39761 name string
39762 urlParams_ gensupport.URLParams
39763 ifNoneMatch_ string
39764 ctx_ context.Context
39765 header_ http.Header
39766 }
39767
39768
39769
39770
39771
39772
39773
39774
39775 func (r *ProjectsLocationsAgentSessionsContextsService) Get(name string) *ProjectsLocationsAgentSessionsContextsGetCall {
39776 c := &ProjectsLocationsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39777 c.name = name
39778 return c
39779 }
39780
39781
39782
39783
39784 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsGetCall {
39785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39786 return c
39787 }
39788
39789
39790
39791
39792 func (c *ProjectsLocationsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsGetCall {
39793 c.ifNoneMatch_ = entityTag
39794 return c
39795 }
39796
39797
39798 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsGetCall {
39799 c.ctx_ = ctx
39800 return c
39801 }
39802
39803
39804
39805 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header {
39806 if c.header_ == nil {
39807 c.header_ = make(http.Header)
39808 }
39809 return c.header_
39810 }
39811
39812 func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
39813 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39814 if c.ifNoneMatch_ != "" {
39815 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39816 }
39817 var body io.Reader = nil
39818 c.urlParams_.Set("alt", alt)
39819 c.urlParams_.Set("prettyPrint", "false")
39820 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
39821 urls += "?" + c.urlParams_.Encode()
39822 req, err := http.NewRequest("GET", urls, body)
39823 if err != nil {
39824 return nil, err
39825 }
39826 req.Header = reqHeaders
39827 googleapi.Expand(req.URL, map[string]string{
39828 "name": c.name,
39829 })
39830 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39831 }
39832
39833
39834
39835
39836
39837
39838
39839 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
39840 gensupport.SetOptions(c.urlParams_, opts...)
39841 res, err := c.doRequest("json")
39842 if res != nil && res.StatusCode == http.StatusNotModified {
39843 if res.Body != nil {
39844 res.Body.Close()
39845 }
39846 return nil, gensupport.WrapError(&googleapi.Error{
39847 Code: res.StatusCode,
39848 Header: res.Header,
39849 })
39850 }
39851 if err != nil {
39852 return nil, err
39853 }
39854 defer googleapi.CloseBody(res)
39855 if err := googleapi.CheckResponse(res); err != nil {
39856 return nil, gensupport.WrapError(err)
39857 }
39858 ret := &GoogleCloudDialogflowV2Context{
39859 ServerResponse: googleapi.ServerResponse{
39860 Header: res.Header,
39861 HTTPStatusCode: res.StatusCode,
39862 },
39863 }
39864 target := &ret
39865 if err := gensupport.DecodeResponse(target, res); err != nil {
39866 return nil, err
39867 }
39868 return ret, nil
39869 }
39870
39871 type ProjectsLocationsAgentSessionsContextsListCall struct {
39872 s *Service
39873 parent string
39874 urlParams_ gensupport.URLParams
39875 ifNoneMatch_ string
39876 ctx_ context.Context
39877 header_ http.Header
39878 }
39879
39880
39881
39882
39883
39884
39885
39886
39887 func (r *ProjectsLocationsAgentSessionsContextsService) List(parent string) *ProjectsLocationsAgentSessionsContextsListCall {
39888 c := &ProjectsLocationsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39889 c.parent = parent
39890 return c
39891 }
39892
39893
39894
39895 func (c *ProjectsLocationsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsContextsListCall {
39896 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39897 return c
39898 }
39899
39900
39901
39902 func (c *ProjectsLocationsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsContextsListCall {
39903 c.urlParams_.Set("pageToken", pageToken)
39904 return c
39905 }
39906
39907
39908
39909
39910 func (c *ProjectsLocationsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsListCall {
39911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39912 return c
39913 }
39914
39915
39916
39917
39918 func (c *ProjectsLocationsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsListCall {
39919 c.ifNoneMatch_ = entityTag
39920 return c
39921 }
39922
39923
39924 func (c *ProjectsLocationsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsListCall {
39925 c.ctx_ = ctx
39926 return c
39927 }
39928
39929
39930
39931 func (c *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header {
39932 if c.header_ == nil {
39933 c.header_ = make(http.Header)
39934 }
39935 return c.header_
39936 }
39937
39938 func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
39939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39940 if c.ifNoneMatch_ != "" {
39941 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39942 }
39943 var body io.Reader = nil
39944 c.urlParams_.Set("alt", alt)
39945 c.urlParams_.Set("prettyPrint", "false")
39946 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/contexts")
39947 urls += "?" + c.urlParams_.Encode()
39948 req, err := http.NewRequest("GET", urls, body)
39949 if err != nil {
39950 return nil, err
39951 }
39952 req.Header = reqHeaders
39953 googleapi.Expand(req.URL, map[string]string{
39954 "parent": c.parent,
39955 })
39956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39957 }
39958
39959
39960
39961
39962
39963
39964
39965 func (c *ProjectsLocationsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListContextsResponse, error) {
39966 gensupport.SetOptions(c.urlParams_, opts...)
39967 res, err := c.doRequest("json")
39968 if res != nil && res.StatusCode == http.StatusNotModified {
39969 if res.Body != nil {
39970 res.Body.Close()
39971 }
39972 return nil, gensupport.WrapError(&googleapi.Error{
39973 Code: res.StatusCode,
39974 Header: res.Header,
39975 })
39976 }
39977 if err != nil {
39978 return nil, err
39979 }
39980 defer googleapi.CloseBody(res)
39981 if err := googleapi.CheckResponse(res); err != nil {
39982 return nil, gensupport.WrapError(err)
39983 }
39984 ret := &GoogleCloudDialogflowV2ListContextsResponse{
39985 ServerResponse: googleapi.ServerResponse{
39986 Header: res.Header,
39987 HTTPStatusCode: res.StatusCode,
39988 },
39989 }
39990 target := &ret
39991 if err := gensupport.DecodeResponse(target, res); err != nil {
39992 return nil, err
39993 }
39994 return ret, nil
39995 }
39996
39997
39998
39999
40000 func (c *ProjectsLocationsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListContextsResponse) error) error {
40001 c.ctx_ = ctx
40002 defer c.PageToken(c.urlParams_.Get("pageToken"))
40003 for {
40004 x, err := c.Do()
40005 if err != nil {
40006 return err
40007 }
40008 if err := f(x); err != nil {
40009 return err
40010 }
40011 if x.NextPageToken == "" {
40012 return nil
40013 }
40014 c.PageToken(x.NextPageToken)
40015 }
40016 }
40017
40018 type ProjectsLocationsAgentSessionsContextsPatchCall struct {
40019 s *Service
40020 nameid string
40021 googleclouddialogflowv2context *GoogleCloudDialogflowV2Context
40022 urlParams_ gensupport.URLParams
40023 ctx_ context.Context
40024 header_ http.Header
40025 }
40026
40027
40028
40029
40030
40031
40032
40033
40034
40035
40036
40037
40038
40039 func (r *ProjectsLocationsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2context *GoogleCloudDialogflowV2Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
40040 c := &ProjectsLocationsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40041 c.nameid = nameid
40042 c.googleclouddialogflowv2context = googleclouddialogflowv2context
40043 return c
40044 }
40045
40046
40047
40048 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsContextsPatchCall {
40049 c.urlParams_.Set("updateMask", updateMask)
40050 return c
40051 }
40052
40053
40054
40055
40056 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsPatchCall {
40057 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40058 return c
40059 }
40060
40061
40062 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
40063 c.ctx_ = ctx
40064 return c
40065 }
40066
40067
40068
40069 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header {
40070 if c.header_ == nil {
40071 c.header_ = make(http.Header)
40072 }
40073 return c.header_
40074 }
40075
40076 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
40077 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40078 var body io.Reader = nil
40079 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2context)
40080 if err != nil {
40081 return nil, err
40082 }
40083 c.urlParams_.Set("alt", alt)
40084 c.urlParams_.Set("prettyPrint", "false")
40085 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
40086 urls += "?" + c.urlParams_.Encode()
40087 req, err := http.NewRequest("PATCH", urls, body)
40088 if err != nil {
40089 return nil, err
40090 }
40091 req.Header = reqHeaders
40092 googleapi.Expand(req.URL, map[string]string{
40093 "name": c.nameid,
40094 })
40095 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40096 }
40097
40098
40099
40100
40101
40102
40103
40104 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Context, error) {
40105 gensupport.SetOptions(c.urlParams_, opts...)
40106 res, err := c.doRequest("json")
40107 if res != nil && res.StatusCode == http.StatusNotModified {
40108 if res.Body != nil {
40109 res.Body.Close()
40110 }
40111 return nil, gensupport.WrapError(&googleapi.Error{
40112 Code: res.StatusCode,
40113 Header: res.Header,
40114 })
40115 }
40116 if err != nil {
40117 return nil, err
40118 }
40119 defer googleapi.CloseBody(res)
40120 if err := googleapi.CheckResponse(res); err != nil {
40121 return nil, gensupport.WrapError(err)
40122 }
40123 ret := &GoogleCloudDialogflowV2Context{
40124 ServerResponse: googleapi.ServerResponse{
40125 Header: res.Header,
40126 HTTPStatusCode: res.StatusCode,
40127 },
40128 }
40129 target := &ret
40130 if err := gensupport.DecodeResponse(target, res); err != nil {
40131 return nil, err
40132 }
40133 return ret, nil
40134 }
40135
40136 type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {
40137 s *Service
40138 parent string
40139 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
40140 urlParams_ gensupport.URLParams
40141 ctx_ context.Context
40142 header_ http.Header
40143 }
40144
40145
40146
40147
40148
40149
40150
40151
40152
40153
40154
40155 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
40156 c := &ProjectsLocationsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40157 c.parent = parent
40158 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
40159 return c
40160 }
40161
40162
40163
40164
40165 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
40166 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40167 return c
40168 }
40169
40170
40171 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
40172 c.ctx_ = ctx
40173 return c
40174 }
40175
40176
40177
40178 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Header {
40179 if c.header_ == nil {
40180 c.header_ = make(http.Header)
40181 }
40182 return c.header_
40183 }
40184
40185 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
40186 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40187 var body io.Reader = nil
40188 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
40189 if err != nil {
40190 return nil, err
40191 }
40192 c.urlParams_.Set("alt", alt)
40193 c.urlParams_.Set("prettyPrint", "false")
40194 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
40195 urls += "?" + c.urlParams_.Encode()
40196 req, err := http.NewRequest("POST", urls, body)
40197 if err != nil {
40198 return nil, err
40199 }
40200 req.Header = reqHeaders
40201 googleapi.Expand(req.URL, map[string]string{
40202 "parent": c.parent,
40203 })
40204 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40205 }
40206
40207
40208
40209
40210
40211
40212
40213 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
40214 gensupport.SetOptions(c.urlParams_, opts...)
40215 res, err := c.doRequest("json")
40216 if res != nil && res.StatusCode == http.StatusNotModified {
40217 if res.Body != nil {
40218 res.Body.Close()
40219 }
40220 return nil, gensupport.WrapError(&googleapi.Error{
40221 Code: res.StatusCode,
40222 Header: res.Header,
40223 })
40224 }
40225 if err != nil {
40226 return nil, err
40227 }
40228 defer googleapi.CloseBody(res)
40229 if err := googleapi.CheckResponse(res); err != nil {
40230 return nil, gensupport.WrapError(err)
40231 }
40232 ret := &GoogleCloudDialogflowV2SessionEntityType{
40233 ServerResponse: googleapi.ServerResponse{
40234 Header: res.Header,
40235 HTTPStatusCode: res.StatusCode,
40236 },
40237 }
40238 target := &ret
40239 if err := gensupport.DecodeResponse(target, res); err != nil {
40240 return nil, err
40241 }
40242 return ret, nil
40243 }
40244
40245 type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {
40246 s *Service
40247 name string
40248 urlParams_ gensupport.URLParams
40249 ctx_ context.Context
40250 header_ http.Header
40251 }
40252
40253
40254
40255
40256
40257
40258
40259
40260
40261
40262 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
40263 c := &ProjectsLocationsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40264 c.name = name
40265 return c
40266 }
40267
40268
40269
40270
40271 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
40272 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40273 return c
40274 }
40275
40276
40277 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
40278 c.ctx_ = ctx
40279 return c
40280 }
40281
40282
40283
40284 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
40285 if c.header_ == nil {
40286 c.header_ = make(http.Header)
40287 }
40288 return c.header_
40289 }
40290
40291 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
40292 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40293 var body io.Reader = nil
40294 c.urlParams_.Set("alt", alt)
40295 c.urlParams_.Set("prettyPrint", "false")
40296 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
40297 urls += "?" + c.urlParams_.Encode()
40298 req, err := http.NewRequest("DELETE", urls, body)
40299 if err != nil {
40300 return nil, err
40301 }
40302 req.Header = reqHeaders
40303 googleapi.Expand(req.URL, map[string]string{
40304 "name": c.name,
40305 })
40306 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40307 }
40308
40309
40310
40311
40312
40313
40314
40315 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
40316 gensupport.SetOptions(c.urlParams_, opts...)
40317 res, err := c.doRequest("json")
40318 if res != nil && res.StatusCode == http.StatusNotModified {
40319 if res.Body != nil {
40320 res.Body.Close()
40321 }
40322 return nil, gensupport.WrapError(&googleapi.Error{
40323 Code: res.StatusCode,
40324 Header: res.Header,
40325 })
40326 }
40327 if err != nil {
40328 return nil, err
40329 }
40330 defer googleapi.CloseBody(res)
40331 if err := googleapi.CheckResponse(res); err != nil {
40332 return nil, gensupport.WrapError(err)
40333 }
40334 ret := &GoogleProtobufEmpty{
40335 ServerResponse: googleapi.ServerResponse{
40336 Header: res.Header,
40337 HTTPStatusCode: res.StatusCode,
40338 },
40339 }
40340 target := &ret
40341 if err := gensupport.DecodeResponse(target, res); err != nil {
40342 return nil, err
40343 }
40344 return ret, nil
40345 }
40346
40347 type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {
40348 s *Service
40349 name string
40350 urlParams_ gensupport.URLParams
40351 ifNoneMatch_ string
40352 ctx_ context.Context
40353 header_ http.Header
40354 }
40355
40356
40357
40358
40359
40360
40361
40362
40363
40364
40365 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
40366 c := &ProjectsLocationsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40367 c.name = name
40368 return c
40369 }
40370
40371
40372
40373
40374 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
40375 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40376 return c
40377 }
40378
40379
40380
40381
40382 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
40383 c.ifNoneMatch_ = entityTag
40384 return c
40385 }
40386
40387
40388 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
40389 c.ctx_ = ctx
40390 return c
40391 }
40392
40393
40394
40395 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header {
40396 if c.header_ == nil {
40397 c.header_ = make(http.Header)
40398 }
40399 return c.header_
40400 }
40401
40402 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
40403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40404 if c.ifNoneMatch_ != "" {
40405 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40406 }
40407 var body io.Reader = nil
40408 c.urlParams_.Set("alt", alt)
40409 c.urlParams_.Set("prettyPrint", "false")
40410 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
40411 urls += "?" + c.urlParams_.Encode()
40412 req, err := http.NewRequest("GET", urls, body)
40413 if err != nil {
40414 return nil, err
40415 }
40416 req.Header = reqHeaders
40417 googleapi.Expand(req.URL, map[string]string{
40418 "name": c.name,
40419 })
40420 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40421 }
40422
40423
40424
40425
40426
40427
40428
40429 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
40430 gensupport.SetOptions(c.urlParams_, opts...)
40431 res, err := c.doRequest("json")
40432 if res != nil && res.StatusCode == http.StatusNotModified {
40433 if res.Body != nil {
40434 res.Body.Close()
40435 }
40436 return nil, gensupport.WrapError(&googleapi.Error{
40437 Code: res.StatusCode,
40438 Header: res.Header,
40439 })
40440 }
40441 if err != nil {
40442 return nil, err
40443 }
40444 defer googleapi.CloseBody(res)
40445 if err := googleapi.CheckResponse(res); err != nil {
40446 return nil, gensupport.WrapError(err)
40447 }
40448 ret := &GoogleCloudDialogflowV2SessionEntityType{
40449 ServerResponse: googleapi.ServerResponse{
40450 Header: res.Header,
40451 HTTPStatusCode: res.StatusCode,
40452 },
40453 }
40454 target := &ret
40455 if err := gensupport.DecodeResponse(target, res); err != nil {
40456 return nil, err
40457 }
40458 return ret, nil
40459 }
40460
40461 type ProjectsLocationsAgentSessionsEntityTypesListCall struct {
40462 s *Service
40463 parent string
40464 urlParams_ gensupport.URLParams
40465 ifNoneMatch_ string
40466 ctx_ context.Context
40467 header_ http.Header
40468 }
40469
40470
40471
40472
40473
40474
40475
40476
40477
40478
40479
40480 func (r *ProjectsLocationsAgentSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
40481 c := &ProjectsLocationsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40482 c.parent = parent
40483 return c
40484 }
40485
40486
40487
40488 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsEntityTypesListCall {
40489 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40490 return c
40491 }
40492
40493
40494
40495 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
40496 c.urlParams_.Set("pageToken", pageToken)
40497 return c
40498 }
40499
40500
40501
40502
40503 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesListCall {
40504 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40505 return c
40506 }
40507
40508
40509
40510
40511 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
40512 c.ifNoneMatch_ = entityTag
40513 return c
40514 }
40515
40516
40517 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesListCall {
40518 c.ctx_ = ctx
40519 return c
40520 }
40521
40522
40523
40524 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header {
40525 if c.header_ == nil {
40526 c.header_ = make(http.Header)
40527 }
40528 return c.header_
40529 }
40530
40531 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
40532 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40533 if c.ifNoneMatch_ != "" {
40534 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40535 }
40536 var body io.Reader = nil
40537 c.urlParams_.Set("alt", alt)
40538 c.urlParams_.Set("prettyPrint", "false")
40539 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/entityTypes")
40540 urls += "?" + c.urlParams_.Encode()
40541 req, err := http.NewRequest("GET", urls, body)
40542 if err != nil {
40543 return nil, err
40544 }
40545 req.Header = reqHeaders
40546 googleapi.Expand(req.URL, map[string]string{
40547 "parent": c.parent,
40548 })
40549 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40550 }
40551
40552
40553
40554
40555
40556
40557
40558 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListSessionEntityTypesResponse, error) {
40559 gensupport.SetOptions(c.urlParams_, opts...)
40560 res, err := c.doRequest("json")
40561 if res != nil && res.StatusCode == http.StatusNotModified {
40562 if res.Body != nil {
40563 res.Body.Close()
40564 }
40565 return nil, gensupport.WrapError(&googleapi.Error{
40566 Code: res.StatusCode,
40567 Header: res.Header,
40568 })
40569 }
40570 if err != nil {
40571 return nil, err
40572 }
40573 defer googleapi.CloseBody(res)
40574 if err := googleapi.CheckResponse(res); err != nil {
40575 return nil, gensupport.WrapError(err)
40576 }
40577 ret := &GoogleCloudDialogflowV2ListSessionEntityTypesResponse{
40578 ServerResponse: googleapi.ServerResponse{
40579 Header: res.Header,
40580 HTTPStatusCode: res.StatusCode,
40581 },
40582 }
40583 target := &ret
40584 if err := gensupport.DecodeResponse(target, res); err != nil {
40585 return nil, err
40586 }
40587 return ret, nil
40588 }
40589
40590
40591
40592
40593 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListSessionEntityTypesResponse) error) error {
40594 c.ctx_ = ctx
40595 defer c.PageToken(c.urlParams_.Get("pageToken"))
40596 for {
40597 x, err := c.Do()
40598 if err != nil {
40599 return err
40600 }
40601 if err := f(x); err != nil {
40602 return err
40603 }
40604 if x.NextPageToken == "" {
40605 return nil
40606 }
40607 c.PageToken(x.NextPageToken)
40608 }
40609 }
40610
40611 type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {
40612 s *Service
40613 nameid string
40614 googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType
40615 urlParams_ gensupport.URLParams
40616 ctx_ context.Context
40617 header_ http.Header
40618 }
40619
40620
40621
40622
40623
40624
40625
40626
40627
40628
40629
40630
40631 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2sessionentitytype *GoogleCloudDialogflowV2SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40632 c := &ProjectsLocationsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40633 c.nameid = nameid
40634 c.googleclouddialogflowv2sessionentitytype = googleclouddialogflowv2sessionentitytype
40635 return c
40636 }
40637
40638
40639
40640 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40641 c.urlParams_.Set("updateMask", updateMask)
40642 return c
40643 }
40644
40645
40646
40647
40648 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40649 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40650 return c
40651 }
40652
40653
40654 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40655 c.ctx_ = ctx
40656 return c
40657 }
40658
40659
40660
40661 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Header {
40662 if c.header_ == nil {
40663 c.header_ = make(http.Header)
40664 }
40665 return c.header_
40666 }
40667
40668 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
40669 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40670 var body io.Reader = nil
40671 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2sessionentitytype)
40672 if err != nil {
40673 return nil, err
40674 }
40675 c.urlParams_.Set("alt", alt)
40676 c.urlParams_.Set("prettyPrint", "false")
40677 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
40678 urls += "?" + c.urlParams_.Encode()
40679 req, err := http.NewRequest("PATCH", urls, body)
40680 if err != nil {
40681 return nil, err
40682 }
40683 req.Header = reqHeaders
40684 googleapi.Expand(req.URL, map[string]string{
40685 "name": c.nameid,
40686 })
40687 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40688 }
40689
40690
40691
40692
40693
40694
40695
40696 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SessionEntityType, error) {
40697 gensupport.SetOptions(c.urlParams_, opts...)
40698 res, err := c.doRequest("json")
40699 if res != nil && res.StatusCode == http.StatusNotModified {
40700 if res.Body != nil {
40701 res.Body.Close()
40702 }
40703 return nil, gensupport.WrapError(&googleapi.Error{
40704 Code: res.StatusCode,
40705 Header: res.Header,
40706 })
40707 }
40708 if err != nil {
40709 return nil, err
40710 }
40711 defer googleapi.CloseBody(res)
40712 if err := googleapi.CheckResponse(res); err != nil {
40713 return nil, gensupport.WrapError(err)
40714 }
40715 ret := &GoogleCloudDialogflowV2SessionEntityType{
40716 ServerResponse: googleapi.ServerResponse{
40717 Header: res.Header,
40718 HTTPStatusCode: res.StatusCode,
40719 },
40720 }
40721 target := &ret
40722 if err := gensupport.DecodeResponse(target, res); err != nil {
40723 return nil, err
40724 }
40725 return ret, nil
40726 }
40727
40728 type ProjectsLocationsAgentVersionsCreateCall struct {
40729 s *Service
40730 parent string
40731 googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
40732 urlParams_ gensupport.URLParams
40733 ctx_ context.Context
40734 header_ http.Header
40735 }
40736
40737
40738
40739
40740
40741
40742 func (r *ProjectsLocationsAgentVersionsService) Create(parent string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsLocationsAgentVersionsCreateCall {
40743 c := &ProjectsLocationsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40744 c.parent = parent
40745 c.googleclouddialogflowv2version = googleclouddialogflowv2version
40746 return c
40747 }
40748
40749
40750
40751
40752 func (c *ProjectsLocationsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsCreateCall {
40753 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40754 return c
40755 }
40756
40757
40758 func (c *ProjectsLocationsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsCreateCall {
40759 c.ctx_ = ctx
40760 return c
40761 }
40762
40763
40764
40765 func (c *ProjectsLocationsAgentVersionsCreateCall) Header() http.Header {
40766 if c.header_ == nil {
40767 c.header_ = make(http.Header)
40768 }
40769 return c.header_
40770 }
40771
40772 func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
40773 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40774 var body io.Reader = nil
40775 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
40776 if err != nil {
40777 return nil, err
40778 }
40779 c.urlParams_.Set("alt", alt)
40780 c.urlParams_.Set("prettyPrint", "false")
40781 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
40782 urls += "?" + c.urlParams_.Encode()
40783 req, err := http.NewRequest("POST", urls, body)
40784 if err != nil {
40785 return nil, err
40786 }
40787 req.Header = reqHeaders
40788 googleapi.Expand(req.URL, map[string]string{
40789 "parent": c.parent,
40790 })
40791 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40792 }
40793
40794
40795
40796
40797
40798
40799
40800 func (c *ProjectsLocationsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
40801 gensupport.SetOptions(c.urlParams_, opts...)
40802 res, err := c.doRequest("json")
40803 if res != nil && res.StatusCode == http.StatusNotModified {
40804 if res.Body != nil {
40805 res.Body.Close()
40806 }
40807 return nil, gensupport.WrapError(&googleapi.Error{
40808 Code: res.StatusCode,
40809 Header: res.Header,
40810 })
40811 }
40812 if err != nil {
40813 return nil, err
40814 }
40815 defer googleapi.CloseBody(res)
40816 if err := googleapi.CheckResponse(res); err != nil {
40817 return nil, gensupport.WrapError(err)
40818 }
40819 ret := &GoogleCloudDialogflowV2Version{
40820 ServerResponse: googleapi.ServerResponse{
40821 Header: res.Header,
40822 HTTPStatusCode: res.StatusCode,
40823 },
40824 }
40825 target := &ret
40826 if err := gensupport.DecodeResponse(target, res); err != nil {
40827 return nil, err
40828 }
40829 return ret, nil
40830 }
40831
40832 type ProjectsLocationsAgentVersionsDeleteCall struct {
40833 s *Service
40834 name string
40835 urlParams_ gensupport.URLParams
40836 ctx_ context.Context
40837 header_ http.Header
40838 }
40839
40840
40841
40842
40843
40844 func (r *ProjectsLocationsAgentVersionsService) Delete(name string) *ProjectsLocationsAgentVersionsDeleteCall {
40845 c := &ProjectsLocationsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40846 c.name = name
40847 return c
40848 }
40849
40850
40851
40852
40853 func (c *ProjectsLocationsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsDeleteCall {
40854 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40855 return c
40856 }
40857
40858
40859 func (c *ProjectsLocationsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsDeleteCall {
40860 c.ctx_ = ctx
40861 return c
40862 }
40863
40864
40865
40866 func (c *ProjectsLocationsAgentVersionsDeleteCall) Header() http.Header {
40867 if c.header_ == nil {
40868 c.header_ = make(http.Header)
40869 }
40870 return c.header_
40871 }
40872
40873 func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
40874 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40875 var body io.Reader = nil
40876 c.urlParams_.Set("alt", alt)
40877 c.urlParams_.Set("prettyPrint", "false")
40878 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
40879 urls += "?" + c.urlParams_.Encode()
40880 req, err := http.NewRequest("DELETE", urls, body)
40881 if err != nil {
40882 return nil, err
40883 }
40884 req.Header = reqHeaders
40885 googleapi.Expand(req.URL, map[string]string{
40886 "name": c.name,
40887 })
40888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40889 }
40890
40891
40892
40893
40894
40895
40896
40897 func (c *ProjectsLocationsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
40898 gensupport.SetOptions(c.urlParams_, opts...)
40899 res, err := c.doRequest("json")
40900 if res != nil && res.StatusCode == http.StatusNotModified {
40901 if res.Body != nil {
40902 res.Body.Close()
40903 }
40904 return nil, gensupport.WrapError(&googleapi.Error{
40905 Code: res.StatusCode,
40906 Header: res.Header,
40907 })
40908 }
40909 if err != nil {
40910 return nil, err
40911 }
40912 defer googleapi.CloseBody(res)
40913 if err := googleapi.CheckResponse(res); err != nil {
40914 return nil, gensupport.WrapError(err)
40915 }
40916 ret := &GoogleProtobufEmpty{
40917 ServerResponse: googleapi.ServerResponse{
40918 Header: res.Header,
40919 HTTPStatusCode: res.StatusCode,
40920 },
40921 }
40922 target := &ret
40923 if err := gensupport.DecodeResponse(target, res); err != nil {
40924 return nil, err
40925 }
40926 return ret, nil
40927 }
40928
40929 type ProjectsLocationsAgentVersionsGetCall struct {
40930 s *Service
40931 name string
40932 urlParams_ gensupport.URLParams
40933 ifNoneMatch_ string
40934 ctx_ context.Context
40935 header_ http.Header
40936 }
40937
40938
40939
40940
40941
40942 func (r *ProjectsLocationsAgentVersionsService) Get(name string) *ProjectsLocationsAgentVersionsGetCall {
40943 c := &ProjectsLocationsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40944 c.name = name
40945 return c
40946 }
40947
40948
40949
40950
40951 func (c *ProjectsLocationsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsGetCall {
40952 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40953 return c
40954 }
40955
40956
40957
40958
40959 func (c *ProjectsLocationsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsGetCall {
40960 c.ifNoneMatch_ = entityTag
40961 return c
40962 }
40963
40964
40965 func (c *ProjectsLocationsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsGetCall {
40966 c.ctx_ = ctx
40967 return c
40968 }
40969
40970
40971
40972 func (c *ProjectsLocationsAgentVersionsGetCall) Header() http.Header {
40973 if c.header_ == nil {
40974 c.header_ = make(http.Header)
40975 }
40976 return c.header_
40977 }
40978
40979 func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
40980 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40981 if c.ifNoneMatch_ != "" {
40982 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40983 }
40984 var body io.Reader = nil
40985 c.urlParams_.Set("alt", alt)
40986 c.urlParams_.Set("prettyPrint", "false")
40987 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
40988 urls += "?" + c.urlParams_.Encode()
40989 req, err := http.NewRequest("GET", urls, body)
40990 if err != nil {
40991 return nil, err
40992 }
40993 req.Header = reqHeaders
40994 googleapi.Expand(req.URL, map[string]string{
40995 "name": c.name,
40996 })
40997 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40998 }
40999
41000
41001
41002
41003
41004
41005
41006 func (c *ProjectsLocationsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
41007 gensupport.SetOptions(c.urlParams_, opts...)
41008 res, err := c.doRequest("json")
41009 if res != nil && res.StatusCode == http.StatusNotModified {
41010 if res.Body != nil {
41011 res.Body.Close()
41012 }
41013 return nil, gensupport.WrapError(&googleapi.Error{
41014 Code: res.StatusCode,
41015 Header: res.Header,
41016 })
41017 }
41018 if err != nil {
41019 return nil, err
41020 }
41021 defer googleapi.CloseBody(res)
41022 if err := googleapi.CheckResponse(res); err != nil {
41023 return nil, gensupport.WrapError(err)
41024 }
41025 ret := &GoogleCloudDialogflowV2Version{
41026 ServerResponse: googleapi.ServerResponse{
41027 Header: res.Header,
41028 HTTPStatusCode: res.StatusCode,
41029 },
41030 }
41031 target := &ret
41032 if err := gensupport.DecodeResponse(target, res); err != nil {
41033 return nil, err
41034 }
41035 return ret, nil
41036 }
41037
41038 type ProjectsLocationsAgentVersionsListCall struct {
41039 s *Service
41040 parent string
41041 urlParams_ gensupport.URLParams
41042 ifNoneMatch_ string
41043 ctx_ context.Context
41044 header_ http.Header
41045 }
41046
41047
41048
41049
41050
41051 func (r *ProjectsLocationsAgentVersionsService) List(parent string) *ProjectsLocationsAgentVersionsListCall {
41052 c := &ProjectsLocationsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41053 c.parent = parent
41054 return c
41055 }
41056
41057
41058
41059 func (c *ProjectsLocationsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentVersionsListCall {
41060 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41061 return c
41062 }
41063
41064
41065
41066 func (c *ProjectsLocationsAgentVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentVersionsListCall {
41067 c.urlParams_.Set("pageToken", pageToken)
41068 return c
41069 }
41070
41071
41072
41073
41074 func (c *ProjectsLocationsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsListCall {
41075 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41076 return c
41077 }
41078
41079
41080
41081
41082 func (c *ProjectsLocationsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsListCall {
41083 c.ifNoneMatch_ = entityTag
41084 return c
41085 }
41086
41087
41088 func (c *ProjectsLocationsAgentVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsListCall {
41089 c.ctx_ = ctx
41090 return c
41091 }
41092
41093
41094
41095 func (c *ProjectsLocationsAgentVersionsListCall) Header() http.Header {
41096 if c.header_ == nil {
41097 c.header_ = make(http.Header)
41098 }
41099 return c.header_
41100 }
41101
41102 func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
41103 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41104 if c.ifNoneMatch_ != "" {
41105 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41106 }
41107 var body io.Reader = nil
41108 c.urlParams_.Set("alt", alt)
41109 c.urlParams_.Set("prettyPrint", "false")
41110 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/versions")
41111 urls += "?" + c.urlParams_.Encode()
41112 req, err := http.NewRequest("GET", urls, body)
41113 if err != nil {
41114 return nil, err
41115 }
41116 req.Header = reqHeaders
41117 googleapi.Expand(req.URL, map[string]string{
41118 "parent": c.parent,
41119 })
41120 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41121 }
41122
41123
41124
41125
41126
41127
41128
41129 func (c *ProjectsLocationsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListVersionsResponse, error) {
41130 gensupport.SetOptions(c.urlParams_, opts...)
41131 res, err := c.doRequest("json")
41132 if res != nil && res.StatusCode == http.StatusNotModified {
41133 if res.Body != nil {
41134 res.Body.Close()
41135 }
41136 return nil, gensupport.WrapError(&googleapi.Error{
41137 Code: res.StatusCode,
41138 Header: res.Header,
41139 })
41140 }
41141 if err != nil {
41142 return nil, err
41143 }
41144 defer googleapi.CloseBody(res)
41145 if err := googleapi.CheckResponse(res); err != nil {
41146 return nil, gensupport.WrapError(err)
41147 }
41148 ret := &GoogleCloudDialogflowV2ListVersionsResponse{
41149 ServerResponse: googleapi.ServerResponse{
41150 Header: res.Header,
41151 HTTPStatusCode: res.StatusCode,
41152 },
41153 }
41154 target := &ret
41155 if err := gensupport.DecodeResponse(target, res); err != nil {
41156 return nil, err
41157 }
41158 return ret, nil
41159 }
41160
41161
41162
41163
41164 func (c *ProjectsLocationsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListVersionsResponse) error) error {
41165 c.ctx_ = ctx
41166 defer c.PageToken(c.urlParams_.Get("pageToken"))
41167 for {
41168 x, err := c.Do()
41169 if err != nil {
41170 return err
41171 }
41172 if err := f(x); err != nil {
41173 return err
41174 }
41175 if x.NextPageToken == "" {
41176 return nil
41177 }
41178 c.PageToken(x.NextPageToken)
41179 }
41180 }
41181
41182 type ProjectsLocationsAgentVersionsPatchCall struct {
41183 s *Service
41184 nameid string
41185 googleclouddialogflowv2version *GoogleCloudDialogflowV2Version
41186 urlParams_ gensupport.URLParams
41187 ctx_ context.Context
41188 header_ http.Header
41189 }
41190
41191
41192
41193
41194
41195
41196
41197
41198 func (r *ProjectsLocationsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2version *GoogleCloudDialogflowV2Version) *ProjectsLocationsAgentVersionsPatchCall {
41199 c := &ProjectsLocationsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41200 c.nameid = nameid
41201 c.googleclouddialogflowv2version = googleclouddialogflowv2version
41202 return c
41203 }
41204
41205
41206
41207 func (c *ProjectsLocationsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentVersionsPatchCall {
41208 c.urlParams_.Set("updateMask", updateMask)
41209 return c
41210 }
41211
41212
41213
41214
41215 func (c *ProjectsLocationsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsPatchCall {
41216 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41217 return c
41218 }
41219
41220
41221 func (c *ProjectsLocationsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsPatchCall {
41222 c.ctx_ = ctx
41223 return c
41224 }
41225
41226
41227
41228 func (c *ProjectsLocationsAgentVersionsPatchCall) Header() http.Header {
41229 if c.header_ == nil {
41230 c.header_ = make(http.Header)
41231 }
41232 return c.header_
41233 }
41234
41235 func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
41236 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41237 var body io.Reader = nil
41238 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2version)
41239 if err != nil {
41240 return nil, err
41241 }
41242 c.urlParams_.Set("alt", alt)
41243 c.urlParams_.Set("prettyPrint", "false")
41244 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
41245 urls += "?" + c.urlParams_.Encode()
41246 req, err := http.NewRequest("PATCH", urls, body)
41247 if err != nil {
41248 return nil, err
41249 }
41250 req.Header = reqHeaders
41251 googleapi.Expand(req.URL, map[string]string{
41252 "name": c.nameid,
41253 })
41254 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41255 }
41256
41257
41258
41259
41260
41261
41262
41263 func (c *ProjectsLocationsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Version, error) {
41264 gensupport.SetOptions(c.urlParams_, opts...)
41265 res, err := c.doRequest("json")
41266 if res != nil && res.StatusCode == http.StatusNotModified {
41267 if res.Body != nil {
41268 res.Body.Close()
41269 }
41270 return nil, gensupport.WrapError(&googleapi.Error{
41271 Code: res.StatusCode,
41272 Header: res.Header,
41273 })
41274 }
41275 if err != nil {
41276 return nil, err
41277 }
41278 defer googleapi.CloseBody(res)
41279 if err := googleapi.CheckResponse(res); err != nil {
41280 return nil, gensupport.WrapError(err)
41281 }
41282 ret := &GoogleCloudDialogflowV2Version{
41283 ServerResponse: googleapi.ServerResponse{
41284 Header: res.Header,
41285 HTTPStatusCode: res.StatusCode,
41286 },
41287 }
41288 target := &ret
41289 if err := gensupport.DecodeResponse(target, res); err != nil {
41290 return nil, err
41291 }
41292 return ret, nil
41293 }
41294
41295 type ProjectsLocationsAnswerRecordsListCall struct {
41296 s *Service
41297 parent string
41298 urlParams_ gensupport.URLParams
41299 ifNoneMatch_ string
41300 ctx_ context.Context
41301 header_ http.Header
41302 }
41303
41304
41305
41306
41307
41308
41309 func (r *ProjectsLocationsAnswerRecordsService) List(parent string) *ProjectsLocationsAnswerRecordsListCall {
41310 c := &ProjectsLocationsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41311 c.parent = parent
41312 return c
41313 }
41314
41315
41316
41317
41318
41319 func (c *ProjectsLocationsAnswerRecordsListCall) Filter(filter string) *ProjectsLocationsAnswerRecordsListCall {
41320 c.urlParams_.Set("filter", filter)
41321 return c
41322 }
41323
41324
41325
41326
41327 func (c *ProjectsLocationsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsLocationsAnswerRecordsListCall {
41328 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41329 return c
41330 }
41331
41332
41333
41334
41335 func (c *ProjectsLocationsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsLocationsAnswerRecordsListCall {
41336 c.urlParams_.Set("pageToken", pageToken)
41337 return c
41338 }
41339
41340
41341
41342
41343 func (c *ProjectsLocationsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsListCall {
41344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41345 return c
41346 }
41347
41348
41349
41350
41351 func (c *ProjectsLocationsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsListCall {
41352 c.ifNoneMatch_ = entityTag
41353 return c
41354 }
41355
41356
41357 func (c *ProjectsLocationsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsListCall {
41358 c.ctx_ = ctx
41359 return c
41360 }
41361
41362
41363
41364 func (c *ProjectsLocationsAnswerRecordsListCall) Header() http.Header {
41365 if c.header_ == nil {
41366 c.header_ = make(http.Header)
41367 }
41368 return c.header_
41369 }
41370
41371 func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
41372 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41373 if c.ifNoneMatch_ != "" {
41374 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41375 }
41376 var body io.Reader = nil
41377 c.urlParams_.Set("alt", alt)
41378 c.urlParams_.Set("prettyPrint", "false")
41379 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/answerRecords")
41380 urls += "?" + c.urlParams_.Encode()
41381 req, err := http.NewRequest("GET", urls, body)
41382 if err != nil {
41383 return nil, err
41384 }
41385 req.Header = reqHeaders
41386 googleapi.Expand(req.URL, map[string]string{
41387 "parent": c.parent,
41388 })
41389 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41390 }
41391
41392
41393
41394
41395
41396
41397
41398 func (c *ProjectsLocationsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListAnswerRecordsResponse, error) {
41399 gensupport.SetOptions(c.urlParams_, opts...)
41400 res, err := c.doRequest("json")
41401 if res != nil && res.StatusCode == http.StatusNotModified {
41402 if res.Body != nil {
41403 res.Body.Close()
41404 }
41405 return nil, gensupport.WrapError(&googleapi.Error{
41406 Code: res.StatusCode,
41407 Header: res.Header,
41408 })
41409 }
41410 if err != nil {
41411 return nil, err
41412 }
41413 defer googleapi.CloseBody(res)
41414 if err := googleapi.CheckResponse(res); err != nil {
41415 return nil, gensupport.WrapError(err)
41416 }
41417 ret := &GoogleCloudDialogflowV2ListAnswerRecordsResponse{
41418 ServerResponse: googleapi.ServerResponse{
41419 Header: res.Header,
41420 HTTPStatusCode: res.StatusCode,
41421 },
41422 }
41423 target := &ret
41424 if err := gensupport.DecodeResponse(target, res); err != nil {
41425 return nil, err
41426 }
41427 return ret, nil
41428 }
41429
41430
41431
41432
41433 func (c *ProjectsLocationsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListAnswerRecordsResponse) error) error {
41434 c.ctx_ = ctx
41435 defer c.PageToken(c.urlParams_.Get("pageToken"))
41436 for {
41437 x, err := c.Do()
41438 if err != nil {
41439 return err
41440 }
41441 if err := f(x); err != nil {
41442 return err
41443 }
41444 if x.NextPageToken == "" {
41445 return nil
41446 }
41447 c.PageToken(x.NextPageToken)
41448 }
41449 }
41450
41451 type ProjectsLocationsAnswerRecordsPatchCall struct {
41452 s *Service
41453 nameid string
41454 googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord
41455 urlParams_ gensupport.URLParams
41456 ctx_ context.Context
41457 header_ http.Header
41458 }
41459
41460
41461
41462
41463
41464 func (r *ProjectsLocationsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2answerrecord *GoogleCloudDialogflowV2AnswerRecord) *ProjectsLocationsAnswerRecordsPatchCall {
41465 c := &ProjectsLocationsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41466 c.nameid = nameid
41467 c.googleclouddialogflowv2answerrecord = googleclouddialogflowv2answerrecord
41468 return c
41469 }
41470
41471
41472
41473 func (c *ProjectsLocationsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnswerRecordsPatchCall {
41474 c.urlParams_.Set("updateMask", updateMask)
41475 return c
41476 }
41477
41478
41479
41480
41481 func (c *ProjectsLocationsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsPatchCall {
41482 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41483 return c
41484 }
41485
41486
41487 func (c *ProjectsLocationsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsPatchCall {
41488 c.ctx_ = ctx
41489 return c
41490 }
41491
41492
41493
41494 func (c *ProjectsLocationsAnswerRecordsPatchCall) Header() http.Header {
41495 if c.header_ == nil {
41496 c.header_ = make(http.Header)
41497 }
41498 return c.header_
41499 }
41500
41501 func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
41502 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41503 var body io.Reader = nil
41504 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2answerrecord)
41505 if err != nil {
41506 return nil, err
41507 }
41508 c.urlParams_.Set("alt", alt)
41509 c.urlParams_.Set("prettyPrint", "false")
41510 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
41511 urls += "?" + c.urlParams_.Encode()
41512 req, err := http.NewRequest("PATCH", urls, body)
41513 if err != nil {
41514 return nil, err
41515 }
41516 req.Header = reqHeaders
41517 googleapi.Expand(req.URL, map[string]string{
41518 "name": c.nameid,
41519 })
41520 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41521 }
41522
41523
41524
41525
41526
41527
41528
41529 func (c *ProjectsLocationsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnswerRecord, error) {
41530 gensupport.SetOptions(c.urlParams_, opts...)
41531 res, err := c.doRequest("json")
41532 if res != nil && res.StatusCode == http.StatusNotModified {
41533 if res.Body != nil {
41534 res.Body.Close()
41535 }
41536 return nil, gensupport.WrapError(&googleapi.Error{
41537 Code: res.StatusCode,
41538 Header: res.Header,
41539 })
41540 }
41541 if err != nil {
41542 return nil, err
41543 }
41544 defer googleapi.CloseBody(res)
41545 if err := googleapi.CheckResponse(res); err != nil {
41546 return nil, gensupport.WrapError(err)
41547 }
41548 ret := &GoogleCloudDialogflowV2AnswerRecord{
41549 ServerResponse: googleapi.ServerResponse{
41550 Header: res.Header,
41551 HTTPStatusCode: res.StatusCode,
41552 },
41553 }
41554 target := &ret
41555 if err := gensupport.DecodeResponse(target, res); err != nil {
41556 return nil, err
41557 }
41558 return ret, nil
41559 }
41560
41561 type ProjectsLocationsConversationDatasetsCreateCall struct {
41562 s *Service
41563 parent string
41564 googleclouddialogflowv2conversationdataset *GoogleCloudDialogflowV2ConversationDataset
41565 urlParams_ gensupport.URLParams
41566 ctx_ context.Context
41567 header_ http.Header
41568 }
41569
41570
41571
41572
41573
41574
41575
41576
41577
41578
41579 func (r *ProjectsLocationsConversationDatasetsService) Create(parent string, googleclouddialogflowv2conversationdataset *GoogleCloudDialogflowV2ConversationDataset) *ProjectsLocationsConversationDatasetsCreateCall {
41580 c := &ProjectsLocationsConversationDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41581 c.parent = parent
41582 c.googleclouddialogflowv2conversationdataset = googleclouddialogflowv2conversationdataset
41583 return c
41584 }
41585
41586
41587
41588
41589 func (c *ProjectsLocationsConversationDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsCreateCall {
41590 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41591 return c
41592 }
41593
41594
41595 func (c *ProjectsLocationsConversationDatasetsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsCreateCall {
41596 c.ctx_ = ctx
41597 return c
41598 }
41599
41600
41601
41602 func (c *ProjectsLocationsConversationDatasetsCreateCall) Header() http.Header {
41603 if c.header_ == nil {
41604 c.header_ = make(http.Header)
41605 }
41606 return c.header_
41607 }
41608
41609 func (c *ProjectsLocationsConversationDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
41610 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41611 var body io.Reader = nil
41612 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationdataset)
41613 if err != nil {
41614 return nil, err
41615 }
41616 c.urlParams_.Set("alt", alt)
41617 c.urlParams_.Set("prettyPrint", "false")
41618 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationDatasets")
41619 urls += "?" + c.urlParams_.Encode()
41620 req, err := http.NewRequest("POST", urls, body)
41621 if err != nil {
41622 return nil, err
41623 }
41624 req.Header = reqHeaders
41625 googleapi.Expand(req.URL, map[string]string{
41626 "parent": c.parent,
41627 })
41628 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41629 }
41630
41631
41632
41633
41634
41635
41636
41637 func (c *ProjectsLocationsConversationDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41638 gensupport.SetOptions(c.urlParams_, opts...)
41639 res, err := c.doRequest("json")
41640 if res != nil && res.StatusCode == http.StatusNotModified {
41641 if res.Body != nil {
41642 res.Body.Close()
41643 }
41644 return nil, gensupport.WrapError(&googleapi.Error{
41645 Code: res.StatusCode,
41646 Header: res.Header,
41647 })
41648 }
41649 if err != nil {
41650 return nil, err
41651 }
41652 defer googleapi.CloseBody(res)
41653 if err := googleapi.CheckResponse(res); err != nil {
41654 return nil, gensupport.WrapError(err)
41655 }
41656 ret := &GoogleLongrunningOperation{
41657 ServerResponse: googleapi.ServerResponse{
41658 Header: res.Header,
41659 HTTPStatusCode: res.StatusCode,
41660 },
41661 }
41662 target := &ret
41663 if err := gensupport.DecodeResponse(target, res); err != nil {
41664 return nil, err
41665 }
41666 return ret, nil
41667 }
41668
41669 type ProjectsLocationsConversationDatasetsDeleteCall struct {
41670 s *Service
41671 name string
41672 urlParams_ gensupport.URLParams
41673 ctx_ context.Context
41674 header_ http.Header
41675 }
41676
41677
41678
41679
41680
41681
41682
41683
41684
41685
41686
41687 func (r *ProjectsLocationsConversationDatasetsService) Delete(name string) *ProjectsLocationsConversationDatasetsDeleteCall {
41688 c := &ProjectsLocationsConversationDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41689 c.name = name
41690 return c
41691 }
41692
41693
41694
41695
41696 func (c *ProjectsLocationsConversationDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsDeleteCall {
41697 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41698 return c
41699 }
41700
41701
41702 func (c *ProjectsLocationsConversationDatasetsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsDeleteCall {
41703 c.ctx_ = ctx
41704 return c
41705 }
41706
41707
41708
41709 func (c *ProjectsLocationsConversationDatasetsDeleteCall) Header() http.Header {
41710 if c.header_ == nil {
41711 c.header_ = make(http.Header)
41712 }
41713 return c.header_
41714 }
41715
41716 func (c *ProjectsLocationsConversationDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
41717 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41718 var body io.Reader = nil
41719 c.urlParams_.Set("alt", alt)
41720 c.urlParams_.Set("prettyPrint", "false")
41721 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
41722 urls += "?" + c.urlParams_.Encode()
41723 req, err := http.NewRequest("DELETE", urls, body)
41724 if err != nil {
41725 return nil, err
41726 }
41727 req.Header = reqHeaders
41728 googleapi.Expand(req.URL, map[string]string{
41729 "name": c.name,
41730 })
41731 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41732 }
41733
41734
41735
41736
41737
41738
41739
41740 func (c *ProjectsLocationsConversationDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41741 gensupport.SetOptions(c.urlParams_, opts...)
41742 res, err := c.doRequest("json")
41743 if res != nil && res.StatusCode == http.StatusNotModified {
41744 if res.Body != nil {
41745 res.Body.Close()
41746 }
41747 return nil, gensupport.WrapError(&googleapi.Error{
41748 Code: res.StatusCode,
41749 Header: res.Header,
41750 })
41751 }
41752 if err != nil {
41753 return nil, err
41754 }
41755 defer googleapi.CloseBody(res)
41756 if err := googleapi.CheckResponse(res); err != nil {
41757 return nil, gensupport.WrapError(err)
41758 }
41759 ret := &GoogleLongrunningOperation{
41760 ServerResponse: googleapi.ServerResponse{
41761 Header: res.Header,
41762 HTTPStatusCode: res.StatusCode,
41763 },
41764 }
41765 target := &ret
41766 if err := gensupport.DecodeResponse(target, res); err != nil {
41767 return nil, err
41768 }
41769 return ret, nil
41770 }
41771
41772 type ProjectsLocationsConversationDatasetsGetCall struct {
41773 s *Service
41774 name string
41775 urlParams_ gensupport.URLParams
41776 ifNoneMatch_ string
41777 ctx_ context.Context
41778 header_ http.Header
41779 }
41780
41781
41782
41783
41784
41785 func (r *ProjectsLocationsConversationDatasetsService) Get(name string) *ProjectsLocationsConversationDatasetsGetCall {
41786 c := &ProjectsLocationsConversationDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41787 c.name = name
41788 return c
41789 }
41790
41791
41792
41793
41794 func (c *ProjectsLocationsConversationDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsGetCall {
41795 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41796 return c
41797 }
41798
41799
41800
41801
41802 func (c *ProjectsLocationsConversationDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationDatasetsGetCall {
41803 c.ifNoneMatch_ = entityTag
41804 return c
41805 }
41806
41807
41808 func (c *ProjectsLocationsConversationDatasetsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsGetCall {
41809 c.ctx_ = ctx
41810 return c
41811 }
41812
41813
41814
41815 func (c *ProjectsLocationsConversationDatasetsGetCall) Header() http.Header {
41816 if c.header_ == nil {
41817 c.header_ = make(http.Header)
41818 }
41819 return c.header_
41820 }
41821
41822 func (c *ProjectsLocationsConversationDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
41823 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41824 if c.ifNoneMatch_ != "" {
41825 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41826 }
41827 var body io.Reader = nil
41828 c.urlParams_.Set("alt", alt)
41829 c.urlParams_.Set("prettyPrint", "false")
41830 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
41831 urls += "?" + c.urlParams_.Encode()
41832 req, err := http.NewRequest("GET", urls, body)
41833 if err != nil {
41834 return nil, err
41835 }
41836 req.Header = reqHeaders
41837 googleapi.Expand(req.URL, map[string]string{
41838 "name": c.name,
41839 })
41840 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41841 }
41842
41843
41844
41845
41846
41847
41848
41849 func (c *ProjectsLocationsConversationDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationDataset, error) {
41850 gensupport.SetOptions(c.urlParams_, opts...)
41851 res, err := c.doRequest("json")
41852 if res != nil && res.StatusCode == http.StatusNotModified {
41853 if res.Body != nil {
41854 res.Body.Close()
41855 }
41856 return nil, gensupport.WrapError(&googleapi.Error{
41857 Code: res.StatusCode,
41858 Header: res.Header,
41859 })
41860 }
41861 if err != nil {
41862 return nil, err
41863 }
41864 defer googleapi.CloseBody(res)
41865 if err := googleapi.CheckResponse(res); err != nil {
41866 return nil, gensupport.WrapError(err)
41867 }
41868 ret := &GoogleCloudDialogflowV2ConversationDataset{
41869 ServerResponse: googleapi.ServerResponse{
41870 Header: res.Header,
41871 HTTPStatusCode: res.StatusCode,
41872 },
41873 }
41874 target := &ret
41875 if err := gensupport.DecodeResponse(target, res); err != nil {
41876 return nil, err
41877 }
41878 return ret, nil
41879 }
41880
41881 type ProjectsLocationsConversationDatasetsImportConversationDataCall struct {
41882 s *Service
41883 name string
41884 googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest
41885 urlParams_ gensupport.URLParams
41886 ctx_ context.Context
41887 header_ http.Header
41888 }
41889
41890
41891
41892
41893
41894
41895
41896
41897
41898
41899
41900 func (r *ProjectsLocationsConversationDatasetsService) ImportConversationData(name string, googleclouddialogflowv2importconversationdatarequest *GoogleCloudDialogflowV2ImportConversationDataRequest) *ProjectsLocationsConversationDatasetsImportConversationDataCall {
41901 c := &ProjectsLocationsConversationDatasetsImportConversationDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41902 c.name = name
41903 c.googleclouddialogflowv2importconversationdatarequest = googleclouddialogflowv2importconversationdatarequest
41904 return c
41905 }
41906
41907
41908
41909
41910 func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsImportConversationDataCall {
41911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41912 return c
41913 }
41914
41915
41916 func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsImportConversationDataCall {
41917 c.ctx_ = ctx
41918 return c
41919 }
41920
41921
41922
41923 func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Header() http.Header {
41924 if c.header_ == nil {
41925 c.header_ = make(http.Header)
41926 }
41927 return c.header_
41928 }
41929
41930 func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) doRequest(alt string) (*http.Response, error) {
41931 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41932 var body io.Reader = nil
41933 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importconversationdatarequest)
41934 if err != nil {
41935 return nil, err
41936 }
41937 c.urlParams_.Set("alt", alt)
41938 c.urlParams_.Set("prettyPrint", "false")
41939 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:importConversationData")
41940 urls += "?" + c.urlParams_.Encode()
41941 req, err := http.NewRequest("POST", urls, body)
41942 if err != nil {
41943 return nil, err
41944 }
41945 req.Header = reqHeaders
41946 googleapi.Expand(req.URL, map[string]string{
41947 "name": c.name,
41948 })
41949 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41950 }
41951
41952
41953
41954
41955
41956
41957
41958 func (c *ProjectsLocationsConversationDatasetsImportConversationDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41959 gensupport.SetOptions(c.urlParams_, opts...)
41960 res, err := c.doRequest("json")
41961 if res != nil && res.StatusCode == http.StatusNotModified {
41962 if res.Body != nil {
41963 res.Body.Close()
41964 }
41965 return nil, gensupport.WrapError(&googleapi.Error{
41966 Code: res.StatusCode,
41967 Header: res.Header,
41968 })
41969 }
41970 if err != nil {
41971 return nil, err
41972 }
41973 defer googleapi.CloseBody(res)
41974 if err := googleapi.CheckResponse(res); err != nil {
41975 return nil, gensupport.WrapError(err)
41976 }
41977 ret := &GoogleLongrunningOperation{
41978 ServerResponse: googleapi.ServerResponse{
41979 Header: res.Header,
41980 HTTPStatusCode: res.StatusCode,
41981 },
41982 }
41983 target := &ret
41984 if err := gensupport.DecodeResponse(target, res); err != nil {
41985 return nil, err
41986 }
41987 return ret, nil
41988 }
41989
41990 type ProjectsLocationsConversationDatasetsListCall struct {
41991 s *Service
41992 parent string
41993 urlParams_ gensupport.URLParams
41994 ifNoneMatch_ string
41995 ctx_ context.Context
41996 header_ http.Header
41997 }
41998
41999
42000
42001
42002
42003
42004 func (r *ProjectsLocationsConversationDatasetsService) List(parent string) *ProjectsLocationsConversationDatasetsListCall {
42005 c := &ProjectsLocationsConversationDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42006 c.parent = parent
42007 return c
42008 }
42009
42010
42011
42012
42013 func (c *ProjectsLocationsConversationDatasetsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationDatasetsListCall {
42014 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42015 return c
42016 }
42017
42018
42019
42020 func (c *ProjectsLocationsConversationDatasetsListCall) PageToken(pageToken string) *ProjectsLocationsConversationDatasetsListCall {
42021 c.urlParams_.Set("pageToken", pageToken)
42022 return c
42023 }
42024
42025
42026
42027
42028 func (c *ProjectsLocationsConversationDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationDatasetsListCall {
42029 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42030 return c
42031 }
42032
42033
42034
42035
42036 func (c *ProjectsLocationsConversationDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationDatasetsListCall {
42037 c.ifNoneMatch_ = entityTag
42038 return c
42039 }
42040
42041
42042 func (c *ProjectsLocationsConversationDatasetsListCall) Context(ctx context.Context) *ProjectsLocationsConversationDatasetsListCall {
42043 c.ctx_ = ctx
42044 return c
42045 }
42046
42047
42048
42049 func (c *ProjectsLocationsConversationDatasetsListCall) Header() http.Header {
42050 if c.header_ == nil {
42051 c.header_ = make(http.Header)
42052 }
42053 return c.header_
42054 }
42055
42056 func (c *ProjectsLocationsConversationDatasetsListCall) doRequest(alt string) (*http.Response, error) {
42057 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42058 if c.ifNoneMatch_ != "" {
42059 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42060 }
42061 var body io.Reader = nil
42062 c.urlParams_.Set("alt", alt)
42063 c.urlParams_.Set("prettyPrint", "false")
42064 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationDatasets")
42065 urls += "?" + c.urlParams_.Encode()
42066 req, err := http.NewRequest("GET", urls, body)
42067 if err != nil {
42068 return nil, err
42069 }
42070 req.Header = reqHeaders
42071 googleapi.Expand(req.URL, map[string]string{
42072 "parent": c.parent,
42073 })
42074 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42075 }
42076
42077
42078
42079
42080
42081
42082
42083 func (c *ProjectsLocationsConversationDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationDatasetsResponse, error) {
42084 gensupport.SetOptions(c.urlParams_, opts...)
42085 res, err := c.doRequest("json")
42086 if res != nil && res.StatusCode == http.StatusNotModified {
42087 if res.Body != nil {
42088 res.Body.Close()
42089 }
42090 return nil, gensupport.WrapError(&googleapi.Error{
42091 Code: res.StatusCode,
42092 Header: res.Header,
42093 })
42094 }
42095 if err != nil {
42096 return nil, err
42097 }
42098 defer googleapi.CloseBody(res)
42099 if err := googleapi.CheckResponse(res); err != nil {
42100 return nil, gensupport.WrapError(err)
42101 }
42102 ret := &GoogleCloudDialogflowV2ListConversationDatasetsResponse{
42103 ServerResponse: googleapi.ServerResponse{
42104 Header: res.Header,
42105 HTTPStatusCode: res.StatusCode,
42106 },
42107 }
42108 target := &ret
42109 if err := gensupport.DecodeResponse(target, res); err != nil {
42110 return nil, err
42111 }
42112 return ret, nil
42113 }
42114
42115
42116
42117
42118 func (c *ProjectsLocationsConversationDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationDatasetsResponse) error) error {
42119 c.ctx_ = ctx
42120 defer c.PageToken(c.urlParams_.Get("pageToken"))
42121 for {
42122 x, err := c.Do()
42123 if err != nil {
42124 return err
42125 }
42126 if err := f(x); err != nil {
42127 return err
42128 }
42129 if x.NextPageToken == "" {
42130 return nil
42131 }
42132 c.PageToken(x.NextPageToken)
42133 }
42134 }
42135
42136 type ProjectsLocationsConversationModelsCreateCall struct {
42137 s *Service
42138 parent string
42139 googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel
42140 urlParams_ gensupport.URLParams
42141 ctx_ context.Context
42142 header_ http.Header
42143 }
42144
42145
42146
42147
42148
42149
42150
42151
42152 func (r *ProjectsLocationsConversationModelsService) Create(parent string, googleclouddialogflowv2conversationmodel *GoogleCloudDialogflowV2ConversationModel) *ProjectsLocationsConversationModelsCreateCall {
42153 c := &ProjectsLocationsConversationModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42154 c.parent = parent
42155 c.googleclouddialogflowv2conversationmodel = googleclouddialogflowv2conversationmodel
42156 return c
42157 }
42158
42159
42160
42161
42162 func (c *ProjectsLocationsConversationModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsCreateCall {
42163 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42164 return c
42165 }
42166
42167
42168 func (c *ProjectsLocationsConversationModelsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsCreateCall {
42169 c.ctx_ = ctx
42170 return c
42171 }
42172
42173
42174
42175 func (c *ProjectsLocationsConversationModelsCreateCall) Header() http.Header {
42176 if c.header_ == nil {
42177 c.header_ = make(http.Header)
42178 }
42179 return c.header_
42180 }
42181
42182 func (c *ProjectsLocationsConversationModelsCreateCall) doRequest(alt string) (*http.Response, error) {
42183 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42184 var body io.Reader = nil
42185 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationmodel)
42186 if err != nil {
42187 return nil, err
42188 }
42189 c.urlParams_.Set("alt", alt)
42190 c.urlParams_.Set("prettyPrint", "false")
42191 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
42192 urls += "?" + c.urlParams_.Encode()
42193 req, err := http.NewRequest("POST", urls, body)
42194 if err != nil {
42195 return nil, err
42196 }
42197 req.Header = reqHeaders
42198 googleapi.Expand(req.URL, map[string]string{
42199 "parent": c.parent,
42200 })
42201 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42202 }
42203
42204
42205
42206
42207
42208
42209
42210 func (c *ProjectsLocationsConversationModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42211 gensupport.SetOptions(c.urlParams_, opts...)
42212 res, err := c.doRequest("json")
42213 if res != nil && res.StatusCode == http.StatusNotModified {
42214 if res.Body != nil {
42215 res.Body.Close()
42216 }
42217 return nil, gensupport.WrapError(&googleapi.Error{
42218 Code: res.StatusCode,
42219 Header: res.Header,
42220 })
42221 }
42222 if err != nil {
42223 return nil, err
42224 }
42225 defer googleapi.CloseBody(res)
42226 if err := googleapi.CheckResponse(res); err != nil {
42227 return nil, gensupport.WrapError(err)
42228 }
42229 ret := &GoogleLongrunningOperation{
42230 ServerResponse: googleapi.ServerResponse{
42231 Header: res.Header,
42232 HTTPStatusCode: res.StatusCode,
42233 },
42234 }
42235 target := &ret
42236 if err := gensupport.DecodeResponse(target, res); err != nil {
42237 return nil, err
42238 }
42239 return ret, nil
42240 }
42241
42242 type ProjectsLocationsConversationModelsDeleteCall struct {
42243 s *Service
42244 name string
42245 urlParams_ gensupport.URLParams
42246 ctx_ context.Context
42247 header_ http.Header
42248 }
42249
42250
42251
42252
42253
42254
42255
42256
42257
42258
42259 func (r *ProjectsLocationsConversationModelsService) Delete(name string) *ProjectsLocationsConversationModelsDeleteCall {
42260 c := &ProjectsLocationsConversationModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42261 c.name = name
42262 return c
42263 }
42264
42265
42266
42267
42268 func (c *ProjectsLocationsConversationModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsDeleteCall {
42269 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42270 return c
42271 }
42272
42273
42274 func (c *ProjectsLocationsConversationModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsDeleteCall {
42275 c.ctx_ = ctx
42276 return c
42277 }
42278
42279
42280
42281 func (c *ProjectsLocationsConversationModelsDeleteCall) Header() http.Header {
42282 if c.header_ == nil {
42283 c.header_ = make(http.Header)
42284 }
42285 return c.header_
42286 }
42287
42288 func (c *ProjectsLocationsConversationModelsDeleteCall) doRequest(alt string) (*http.Response, error) {
42289 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42290 var body io.Reader = nil
42291 c.urlParams_.Set("alt", alt)
42292 c.urlParams_.Set("prettyPrint", "false")
42293 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
42294 urls += "?" + c.urlParams_.Encode()
42295 req, err := http.NewRequest("DELETE", urls, body)
42296 if err != nil {
42297 return nil, err
42298 }
42299 req.Header = reqHeaders
42300 googleapi.Expand(req.URL, map[string]string{
42301 "name": c.name,
42302 })
42303 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42304 }
42305
42306
42307
42308
42309
42310
42311
42312 func (c *ProjectsLocationsConversationModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42313 gensupport.SetOptions(c.urlParams_, opts...)
42314 res, err := c.doRequest("json")
42315 if res != nil && res.StatusCode == http.StatusNotModified {
42316 if res.Body != nil {
42317 res.Body.Close()
42318 }
42319 return nil, gensupport.WrapError(&googleapi.Error{
42320 Code: res.StatusCode,
42321 Header: res.Header,
42322 })
42323 }
42324 if err != nil {
42325 return nil, err
42326 }
42327 defer googleapi.CloseBody(res)
42328 if err := googleapi.CheckResponse(res); err != nil {
42329 return nil, gensupport.WrapError(err)
42330 }
42331 ret := &GoogleLongrunningOperation{
42332 ServerResponse: googleapi.ServerResponse{
42333 Header: res.Header,
42334 HTTPStatusCode: res.StatusCode,
42335 },
42336 }
42337 target := &ret
42338 if err := gensupport.DecodeResponse(target, res); err != nil {
42339 return nil, err
42340 }
42341 return ret, nil
42342 }
42343
42344 type ProjectsLocationsConversationModelsDeployCall struct {
42345 s *Service
42346 name string
42347 googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest
42348 urlParams_ gensupport.URLParams
42349 ctx_ context.Context
42350 header_ http.Header
42351 }
42352
42353
42354
42355
42356
42357
42358
42359
42360
42361
42362
42363
42364
42365 func (r *ProjectsLocationsConversationModelsService) Deploy(name string, googleclouddialogflowv2deployconversationmodelrequest *GoogleCloudDialogflowV2DeployConversationModelRequest) *ProjectsLocationsConversationModelsDeployCall {
42366 c := &ProjectsLocationsConversationModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42367 c.name = name
42368 c.googleclouddialogflowv2deployconversationmodelrequest = googleclouddialogflowv2deployconversationmodelrequest
42369 return c
42370 }
42371
42372
42373
42374
42375 func (c *ProjectsLocationsConversationModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsDeployCall {
42376 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42377 return c
42378 }
42379
42380
42381 func (c *ProjectsLocationsConversationModelsDeployCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsDeployCall {
42382 c.ctx_ = ctx
42383 return c
42384 }
42385
42386
42387
42388 func (c *ProjectsLocationsConversationModelsDeployCall) Header() http.Header {
42389 if c.header_ == nil {
42390 c.header_ = make(http.Header)
42391 }
42392 return c.header_
42393 }
42394
42395 func (c *ProjectsLocationsConversationModelsDeployCall) doRequest(alt string) (*http.Response, error) {
42396 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42397 var body io.Reader = nil
42398 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2deployconversationmodelrequest)
42399 if err != nil {
42400 return nil, err
42401 }
42402 c.urlParams_.Set("alt", alt)
42403 c.urlParams_.Set("prettyPrint", "false")
42404 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:deploy")
42405 urls += "?" + c.urlParams_.Encode()
42406 req, err := http.NewRequest("POST", urls, body)
42407 if err != nil {
42408 return nil, err
42409 }
42410 req.Header = reqHeaders
42411 googleapi.Expand(req.URL, map[string]string{
42412 "name": c.name,
42413 })
42414 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42415 }
42416
42417
42418
42419
42420
42421
42422
42423 func (c *ProjectsLocationsConversationModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42424 gensupport.SetOptions(c.urlParams_, opts...)
42425 res, err := c.doRequest("json")
42426 if res != nil && res.StatusCode == http.StatusNotModified {
42427 if res.Body != nil {
42428 res.Body.Close()
42429 }
42430 return nil, gensupport.WrapError(&googleapi.Error{
42431 Code: res.StatusCode,
42432 Header: res.Header,
42433 })
42434 }
42435 if err != nil {
42436 return nil, err
42437 }
42438 defer googleapi.CloseBody(res)
42439 if err := googleapi.CheckResponse(res); err != nil {
42440 return nil, gensupport.WrapError(err)
42441 }
42442 ret := &GoogleLongrunningOperation{
42443 ServerResponse: googleapi.ServerResponse{
42444 Header: res.Header,
42445 HTTPStatusCode: res.StatusCode,
42446 },
42447 }
42448 target := &ret
42449 if err := gensupport.DecodeResponse(target, res); err != nil {
42450 return nil, err
42451 }
42452 return ret, nil
42453 }
42454
42455 type ProjectsLocationsConversationModelsGetCall struct {
42456 s *Service
42457 name string
42458 urlParams_ gensupport.URLParams
42459 ifNoneMatch_ string
42460 ctx_ context.Context
42461 header_ http.Header
42462 }
42463
42464
42465
42466
42467
42468 func (r *ProjectsLocationsConversationModelsService) Get(name string) *ProjectsLocationsConversationModelsGetCall {
42469 c := &ProjectsLocationsConversationModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42470 c.name = name
42471 return c
42472 }
42473
42474
42475
42476
42477 func (c *ProjectsLocationsConversationModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsGetCall {
42478 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42479 return c
42480 }
42481
42482
42483
42484
42485 func (c *ProjectsLocationsConversationModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsGetCall {
42486 c.ifNoneMatch_ = entityTag
42487 return c
42488 }
42489
42490
42491 func (c *ProjectsLocationsConversationModelsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsGetCall {
42492 c.ctx_ = ctx
42493 return c
42494 }
42495
42496
42497
42498 func (c *ProjectsLocationsConversationModelsGetCall) Header() http.Header {
42499 if c.header_ == nil {
42500 c.header_ = make(http.Header)
42501 }
42502 return c.header_
42503 }
42504
42505 func (c *ProjectsLocationsConversationModelsGetCall) doRequest(alt string) (*http.Response, error) {
42506 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42507 if c.ifNoneMatch_ != "" {
42508 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42509 }
42510 var body io.Reader = nil
42511 c.urlParams_.Set("alt", alt)
42512 c.urlParams_.Set("prettyPrint", "false")
42513 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
42514 urls += "?" + c.urlParams_.Encode()
42515 req, err := http.NewRequest("GET", urls, body)
42516 if err != nil {
42517 return nil, err
42518 }
42519 req.Header = reqHeaders
42520 googleapi.Expand(req.URL, map[string]string{
42521 "name": c.name,
42522 })
42523 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42524 }
42525
42526
42527
42528
42529
42530
42531
42532 func (c *ProjectsLocationsConversationModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModel, error) {
42533 gensupport.SetOptions(c.urlParams_, opts...)
42534 res, err := c.doRequest("json")
42535 if res != nil && res.StatusCode == http.StatusNotModified {
42536 if res.Body != nil {
42537 res.Body.Close()
42538 }
42539 return nil, gensupport.WrapError(&googleapi.Error{
42540 Code: res.StatusCode,
42541 Header: res.Header,
42542 })
42543 }
42544 if err != nil {
42545 return nil, err
42546 }
42547 defer googleapi.CloseBody(res)
42548 if err := googleapi.CheckResponse(res); err != nil {
42549 return nil, gensupport.WrapError(err)
42550 }
42551 ret := &GoogleCloudDialogflowV2ConversationModel{
42552 ServerResponse: googleapi.ServerResponse{
42553 Header: res.Header,
42554 HTTPStatusCode: res.StatusCode,
42555 },
42556 }
42557 target := &ret
42558 if err := gensupport.DecodeResponse(target, res); err != nil {
42559 return nil, err
42560 }
42561 return ret, nil
42562 }
42563
42564 type ProjectsLocationsConversationModelsListCall struct {
42565 s *Service
42566 parent string
42567 urlParams_ gensupport.URLParams
42568 ifNoneMatch_ string
42569 ctx_ context.Context
42570 header_ http.Header
42571 }
42572
42573
42574
42575
42576
42577 func (r *ProjectsLocationsConversationModelsService) List(parent string) *ProjectsLocationsConversationModelsListCall {
42578 c := &ProjectsLocationsConversationModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42579 c.parent = parent
42580 return c
42581 }
42582
42583
42584
42585
42586 func (c *ProjectsLocationsConversationModelsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationModelsListCall {
42587 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42588 return c
42589 }
42590
42591
42592
42593 func (c *ProjectsLocationsConversationModelsListCall) PageToken(pageToken string) *ProjectsLocationsConversationModelsListCall {
42594 c.urlParams_.Set("pageToken", pageToken)
42595 return c
42596 }
42597
42598
42599
42600
42601 func (c *ProjectsLocationsConversationModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsListCall {
42602 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42603 return c
42604 }
42605
42606
42607
42608
42609 func (c *ProjectsLocationsConversationModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsListCall {
42610 c.ifNoneMatch_ = entityTag
42611 return c
42612 }
42613
42614
42615 func (c *ProjectsLocationsConversationModelsListCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsListCall {
42616 c.ctx_ = ctx
42617 return c
42618 }
42619
42620
42621
42622 func (c *ProjectsLocationsConversationModelsListCall) Header() http.Header {
42623 if c.header_ == nil {
42624 c.header_ = make(http.Header)
42625 }
42626 return c.header_
42627 }
42628
42629 func (c *ProjectsLocationsConversationModelsListCall) doRequest(alt string) (*http.Response, error) {
42630 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42631 if c.ifNoneMatch_ != "" {
42632 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42633 }
42634 var body io.Reader = nil
42635 c.urlParams_.Set("alt", alt)
42636 c.urlParams_.Set("prettyPrint", "false")
42637 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationModels")
42638 urls += "?" + c.urlParams_.Encode()
42639 req, err := http.NewRequest("GET", urls, body)
42640 if err != nil {
42641 return nil, err
42642 }
42643 req.Header = reqHeaders
42644 googleapi.Expand(req.URL, map[string]string{
42645 "parent": c.parent,
42646 })
42647 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42648 }
42649
42650
42651
42652
42653
42654
42655
42656 func (c *ProjectsLocationsConversationModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelsResponse, error) {
42657 gensupport.SetOptions(c.urlParams_, opts...)
42658 res, err := c.doRequest("json")
42659 if res != nil && res.StatusCode == http.StatusNotModified {
42660 if res.Body != nil {
42661 res.Body.Close()
42662 }
42663 return nil, gensupport.WrapError(&googleapi.Error{
42664 Code: res.StatusCode,
42665 Header: res.Header,
42666 })
42667 }
42668 if err != nil {
42669 return nil, err
42670 }
42671 defer googleapi.CloseBody(res)
42672 if err := googleapi.CheckResponse(res); err != nil {
42673 return nil, gensupport.WrapError(err)
42674 }
42675 ret := &GoogleCloudDialogflowV2ListConversationModelsResponse{
42676 ServerResponse: googleapi.ServerResponse{
42677 Header: res.Header,
42678 HTTPStatusCode: res.StatusCode,
42679 },
42680 }
42681 target := &ret
42682 if err := gensupport.DecodeResponse(target, res); err != nil {
42683 return nil, err
42684 }
42685 return ret, nil
42686 }
42687
42688
42689
42690
42691 func (c *ProjectsLocationsConversationModelsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelsResponse) error) error {
42692 c.ctx_ = ctx
42693 defer c.PageToken(c.urlParams_.Get("pageToken"))
42694 for {
42695 x, err := c.Do()
42696 if err != nil {
42697 return err
42698 }
42699 if err := f(x); err != nil {
42700 return err
42701 }
42702 if x.NextPageToken == "" {
42703 return nil
42704 }
42705 c.PageToken(x.NextPageToken)
42706 }
42707 }
42708
42709 type ProjectsLocationsConversationModelsUndeployCall struct {
42710 s *Service
42711 name string
42712 googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest
42713 urlParams_ gensupport.URLParams
42714 ctx_ context.Context
42715 header_ http.Header
42716 }
42717
42718
42719
42720
42721
42722
42723
42724
42725
42726
42727
42728
42729
42730 func (r *ProjectsLocationsConversationModelsService) Undeploy(name string, googleclouddialogflowv2undeployconversationmodelrequest *GoogleCloudDialogflowV2UndeployConversationModelRequest) *ProjectsLocationsConversationModelsUndeployCall {
42731 c := &ProjectsLocationsConversationModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42732 c.name = name
42733 c.googleclouddialogflowv2undeployconversationmodelrequest = googleclouddialogflowv2undeployconversationmodelrequest
42734 return c
42735 }
42736
42737
42738
42739
42740 func (c *ProjectsLocationsConversationModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsUndeployCall {
42741 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42742 return c
42743 }
42744
42745
42746 func (c *ProjectsLocationsConversationModelsUndeployCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsUndeployCall {
42747 c.ctx_ = ctx
42748 return c
42749 }
42750
42751
42752
42753 func (c *ProjectsLocationsConversationModelsUndeployCall) Header() http.Header {
42754 if c.header_ == nil {
42755 c.header_ = make(http.Header)
42756 }
42757 return c.header_
42758 }
42759
42760 func (c *ProjectsLocationsConversationModelsUndeployCall) doRequest(alt string) (*http.Response, error) {
42761 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42762 var body io.Reader = nil
42763 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2undeployconversationmodelrequest)
42764 if err != nil {
42765 return nil, err
42766 }
42767 c.urlParams_.Set("alt", alt)
42768 c.urlParams_.Set("prettyPrint", "false")
42769 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:undeploy")
42770 urls += "?" + c.urlParams_.Encode()
42771 req, err := http.NewRequest("POST", urls, body)
42772 if err != nil {
42773 return nil, err
42774 }
42775 req.Header = reqHeaders
42776 googleapi.Expand(req.URL, map[string]string{
42777 "name": c.name,
42778 })
42779 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42780 }
42781
42782
42783
42784
42785
42786
42787
42788 func (c *ProjectsLocationsConversationModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42789 gensupport.SetOptions(c.urlParams_, opts...)
42790 res, err := c.doRequest("json")
42791 if res != nil && res.StatusCode == http.StatusNotModified {
42792 if res.Body != nil {
42793 res.Body.Close()
42794 }
42795 return nil, gensupport.WrapError(&googleapi.Error{
42796 Code: res.StatusCode,
42797 Header: res.Header,
42798 })
42799 }
42800 if err != nil {
42801 return nil, err
42802 }
42803 defer googleapi.CloseBody(res)
42804 if err := googleapi.CheckResponse(res); err != nil {
42805 return nil, gensupport.WrapError(err)
42806 }
42807 ret := &GoogleLongrunningOperation{
42808 ServerResponse: googleapi.ServerResponse{
42809 Header: res.Header,
42810 HTTPStatusCode: res.StatusCode,
42811 },
42812 }
42813 target := &ret
42814 if err := gensupport.DecodeResponse(target, res); err != nil {
42815 return nil, err
42816 }
42817 return ret, nil
42818 }
42819
42820 type ProjectsLocationsConversationModelsEvaluationsCreateCall struct {
42821 s *Service
42822 parent string
42823 googleclouddialogflowv2createconversationmodelevaluationrequest *GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest
42824 urlParams_ gensupport.URLParams
42825 ctx_ context.Context
42826 header_ http.Header
42827 }
42828
42829
42830
42831
42832
42833 func (r *ProjectsLocationsConversationModelsEvaluationsService) Create(parent string, googleclouddialogflowv2createconversationmodelevaluationrequest *GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest) *ProjectsLocationsConversationModelsEvaluationsCreateCall {
42834 c := &ProjectsLocationsConversationModelsEvaluationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42835 c.parent = parent
42836 c.googleclouddialogflowv2createconversationmodelevaluationrequest = googleclouddialogflowv2createconversationmodelevaluationrequest
42837 return c
42838 }
42839
42840
42841
42842
42843 func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsEvaluationsCreateCall {
42844 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42845 return c
42846 }
42847
42848
42849 func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsEvaluationsCreateCall {
42850 c.ctx_ = ctx
42851 return c
42852 }
42853
42854
42855
42856 func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Header() http.Header {
42857 if c.header_ == nil {
42858 c.header_ = make(http.Header)
42859 }
42860 return c.header_
42861 }
42862
42863 func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) doRequest(alt string) (*http.Response, error) {
42864 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42865 var body io.Reader = nil
42866 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2createconversationmodelevaluationrequest)
42867 if err != nil {
42868 return nil, err
42869 }
42870 c.urlParams_.Set("alt", alt)
42871 c.urlParams_.Set("prettyPrint", "false")
42872 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/evaluations")
42873 urls += "?" + c.urlParams_.Encode()
42874 req, err := http.NewRequest("POST", urls, body)
42875 if err != nil {
42876 return nil, err
42877 }
42878 req.Header = reqHeaders
42879 googleapi.Expand(req.URL, map[string]string{
42880 "parent": c.parent,
42881 })
42882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42883 }
42884
42885
42886
42887
42888
42889
42890
42891 func (c *ProjectsLocationsConversationModelsEvaluationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
42892 gensupport.SetOptions(c.urlParams_, opts...)
42893 res, err := c.doRequest("json")
42894 if res != nil && res.StatusCode == http.StatusNotModified {
42895 if res.Body != nil {
42896 res.Body.Close()
42897 }
42898 return nil, gensupport.WrapError(&googleapi.Error{
42899 Code: res.StatusCode,
42900 Header: res.Header,
42901 })
42902 }
42903 if err != nil {
42904 return nil, err
42905 }
42906 defer googleapi.CloseBody(res)
42907 if err := googleapi.CheckResponse(res); err != nil {
42908 return nil, gensupport.WrapError(err)
42909 }
42910 ret := &GoogleLongrunningOperation{
42911 ServerResponse: googleapi.ServerResponse{
42912 Header: res.Header,
42913 HTTPStatusCode: res.StatusCode,
42914 },
42915 }
42916 target := &ret
42917 if err := gensupport.DecodeResponse(target, res); err != nil {
42918 return nil, err
42919 }
42920 return ret, nil
42921 }
42922
42923 type ProjectsLocationsConversationModelsEvaluationsGetCall struct {
42924 s *Service
42925 name string
42926 urlParams_ gensupport.URLParams
42927 ifNoneMatch_ string
42928 ctx_ context.Context
42929 header_ http.Header
42930 }
42931
42932
42933
42934
42935
42936 func (r *ProjectsLocationsConversationModelsEvaluationsService) Get(name string) *ProjectsLocationsConversationModelsEvaluationsGetCall {
42937 c := &ProjectsLocationsConversationModelsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42938 c.name = name
42939 return c
42940 }
42941
42942
42943
42944
42945 func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsEvaluationsGetCall {
42946 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42947 return c
42948 }
42949
42950
42951
42952
42953 func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsEvaluationsGetCall {
42954 c.ifNoneMatch_ = entityTag
42955 return c
42956 }
42957
42958
42959 func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsEvaluationsGetCall {
42960 c.ctx_ = ctx
42961 return c
42962 }
42963
42964
42965
42966 func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Header() http.Header {
42967 if c.header_ == nil {
42968 c.header_ = make(http.Header)
42969 }
42970 return c.header_
42971 }
42972
42973 func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
42974 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42975 if c.ifNoneMatch_ != "" {
42976 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42977 }
42978 var body io.Reader = nil
42979 c.urlParams_.Set("alt", alt)
42980 c.urlParams_.Set("prettyPrint", "false")
42981 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
42982 urls += "?" + c.urlParams_.Encode()
42983 req, err := http.NewRequest("GET", urls, body)
42984 if err != nil {
42985 return nil, err
42986 }
42987 req.Header = reqHeaders
42988 googleapi.Expand(req.URL, map[string]string{
42989 "name": c.name,
42990 })
42991 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42992 }
42993
42994
42995
42996
42997
42998
42999
43000 func (c *ProjectsLocationsConversationModelsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationModelEvaluation, error) {
43001 gensupport.SetOptions(c.urlParams_, opts...)
43002 res, err := c.doRequest("json")
43003 if res != nil && res.StatusCode == http.StatusNotModified {
43004 if res.Body != nil {
43005 res.Body.Close()
43006 }
43007 return nil, gensupport.WrapError(&googleapi.Error{
43008 Code: res.StatusCode,
43009 Header: res.Header,
43010 })
43011 }
43012 if err != nil {
43013 return nil, err
43014 }
43015 defer googleapi.CloseBody(res)
43016 if err := googleapi.CheckResponse(res); err != nil {
43017 return nil, gensupport.WrapError(err)
43018 }
43019 ret := &GoogleCloudDialogflowV2ConversationModelEvaluation{
43020 ServerResponse: googleapi.ServerResponse{
43021 Header: res.Header,
43022 HTTPStatusCode: res.StatusCode,
43023 },
43024 }
43025 target := &ret
43026 if err := gensupport.DecodeResponse(target, res); err != nil {
43027 return nil, err
43028 }
43029 return ret, nil
43030 }
43031
43032 type ProjectsLocationsConversationModelsEvaluationsListCall struct {
43033 s *Service
43034 parent string
43035 urlParams_ gensupport.URLParams
43036 ifNoneMatch_ string
43037 ctx_ context.Context
43038 header_ http.Header
43039 }
43040
43041
43042
43043
43044
43045 func (r *ProjectsLocationsConversationModelsEvaluationsService) List(parent string) *ProjectsLocationsConversationModelsEvaluationsListCall {
43046 c := &ProjectsLocationsConversationModelsEvaluationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43047 c.parent = parent
43048 return c
43049 }
43050
43051
43052
43053 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationModelsEvaluationsListCall {
43054 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
43055 return c
43056 }
43057
43058
43059
43060 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationModelsEvaluationsListCall {
43061 c.urlParams_.Set("pageToken", pageToken)
43062 return c
43063 }
43064
43065
43066
43067
43068 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationModelsEvaluationsListCall {
43069 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43070 return c
43071 }
43072
43073
43074
43075
43076 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationModelsEvaluationsListCall {
43077 c.ifNoneMatch_ = entityTag
43078 return c
43079 }
43080
43081
43082 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationModelsEvaluationsListCall {
43083 c.ctx_ = ctx
43084 return c
43085 }
43086
43087
43088
43089 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Header() http.Header {
43090 if c.header_ == nil {
43091 c.header_ = make(http.Header)
43092 }
43093 return c.header_
43094 }
43095
43096 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) doRequest(alt string) (*http.Response, error) {
43097 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43098 if c.ifNoneMatch_ != "" {
43099 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43100 }
43101 var body io.Reader = nil
43102 c.urlParams_.Set("alt", alt)
43103 c.urlParams_.Set("prettyPrint", "false")
43104 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/evaluations")
43105 urls += "?" + c.urlParams_.Encode()
43106 req, err := http.NewRequest("GET", urls, body)
43107 if err != nil {
43108 return nil, err
43109 }
43110 req.Header = reqHeaders
43111 googleapi.Expand(req.URL, map[string]string{
43112 "parent": c.parent,
43113 })
43114 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43115 }
43116
43117
43118
43119
43120
43121
43122
43123 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse, error) {
43124 gensupport.SetOptions(c.urlParams_, opts...)
43125 res, err := c.doRequest("json")
43126 if res != nil && res.StatusCode == http.StatusNotModified {
43127 if res.Body != nil {
43128 res.Body.Close()
43129 }
43130 return nil, gensupport.WrapError(&googleapi.Error{
43131 Code: res.StatusCode,
43132 Header: res.Header,
43133 })
43134 }
43135 if err != nil {
43136 return nil, err
43137 }
43138 defer googleapi.CloseBody(res)
43139 if err := googleapi.CheckResponse(res); err != nil {
43140 return nil, gensupport.WrapError(err)
43141 }
43142 ret := &GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse{
43143 ServerResponse: googleapi.ServerResponse{
43144 Header: res.Header,
43145 HTTPStatusCode: res.StatusCode,
43146 },
43147 }
43148 target := &ret
43149 if err := gensupport.DecodeResponse(target, res); err != nil {
43150 return nil, err
43151 }
43152 return ret, nil
43153 }
43154
43155
43156
43157
43158 func (c *ProjectsLocationsConversationModelsEvaluationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse) error) error {
43159 c.ctx_ = ctx
43160 defer c.PageToken(c.urlParams_.Get("pageToken"))
43161 for {
43162 x, err := c.Do()
43163 if err != nil {
43164 return err
43165 }
43166 if err := f(x); err != nil {
43167 return err
43168 }
43169 if x.NextPageToken == "" {
43170 return nil
43171 }
43172 c.PageToken(x.NextPageToken)
43173 }
43174 }
43175
43176 type ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall struct {
43177 s *Service
43178 conversationProfile string
43179 googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
43180 urlParams_ gensupport.URLParams
43181 ctx_ context.Context
43182 header_ http.Header
43183 }
43184
43185
43186
43187
43188
43189
43190
43191
43192
43193
43194
43195
43196 func (r *ProjectsLocationsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
43197 c := &ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43198 c.conversationProfile = conversationProfile
43199 c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest = googleclouddialogflowv2clearsuggestionfeatureconfigrequest
43200 return c
43201 }
43202
43203
43204
43205
43206 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
43207 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43208 return c
43209 }
43210
43211
43212 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
43213 c.ctx_ = ctx
43214 return c
43215 }
43216
43217
43218
43219 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
43220 if c.header_ == nil {
43221 c.header_ = make(http.Header)
43222 }
43223 return c.header_
43224 }
43225
43226 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
43227 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43228 var body io.Reader = nil
43229 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2clearsuggestionfeatureconfigrequest)
43230 if err != nil {
43231 return nil, err
43232 }
43233 c.urlParams_.Set("alt", alt)
43234 c.urlParams_.Set("prettyPrint", "false")
43235 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:clearSuggestionFeatureConfig")
43236 urls += "?" + c.urlParams_.Encode()
43237 req, err := http.NewRequest("POST", urls, body)
43238 if err != nil {
43239 return nil, err
43240 }
43241 req.Header = reqHeaders
43242 googleapi.Expand(req.URL, map[string]string{
43243 "conversationProfile": c.conversationProfile,
43244 })
43245 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43246 }
43247
43248
43249
43250
43251
43252
43253
43254 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43255 gensupport.SetOptions(c.urlParams_, opts...)
43256 res, err := c.doRequest("json")
43257 if res != nil && res.StatusCode == http.StatusNotModified {
43258 if res.Body != nil {
43259 res.Body.Close()
43260 }
43261 return nil, gensupport.WrapError(&googleapi.Error{
43262 Code: res.StatusCode,
43263 Header: res.Header,
43264 })
43265 }
43266 if err != nil {
43267 return nil, err
43268 }
43269 defer googleapi.CloseBody(res)
43270 if err := googleapi.CheckResponse(res); err != nil {
43271 return nil, gensupport.WrapError(err)
43272 }
43273 ret := &GoogleLongrunningOperation{
43274 ServerResponse: googleapi.ServerResponse{
43275 Header: res.Header,
43276 HTTPStatusCode: res.StatusCode,
43277 },
43278 }
43279 target := &ret
43280 if err := gensupport.DecodeResponse(target, res); err != nil {
43281 return nil, err
43282 }
43283 return ret, nil
43284 }
43285
43286 type ProjectsLocationsConversationProfilesCreateCall struct {
43287 s *Service
43288 parent string
43289 googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
43290 urlParams_ gensupport.URLParams
43291 ctx_ context.Context
43292 header_ http.Header
43293 }
43294
43295
43296
43297
43298
43299
43300
43301
43302 func (r *ProjectsLocationsConversationProfilesService) Create(parent string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsLocationsConversationProfilesCreateCall {
43303 c := &ProjectsLocationsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43304 c.parent = parent
43305 c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
43306 return c
43307 }
43308
43309
43310
43311
43312 func (c *ProjectsLocationsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesCreateCall {
43313 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43314 return c
43315 }
43316
43317
43318 func (c *ProjectsLocationsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesCreateCall {
43319 c.ctx_ = ctx
43320 return c
43321 }
43322
43323
43324
43325 func (c *ProjectsLocationsConversationProfilesCreateCall) Header() http.Header {
43326 if c.header_ == nil {
43327 c.header_ = make(http.Header)
43328 }
43329 return c.header_
43330 }
43331
43332 func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
43333 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43334 var body io.Reader = nil
43335 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
43336 if err != nil {
43337 return nil, err
43338 }
43339 c.urlParams_.Set("alt", alt)
43340 c.urlParams_.Set("prettyPrint", "false")
43341 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
43342 urls += "?" + c.urlParams_.Encode()
43343 req, err := http.NewRequest("POST", urls, body)
43344 if err != nil {
43345 return nil, err
43346 }
43347 req.Header = reqHeaders
43348 googleapi.Expand(req.URL, map[string]string{
43349 "parent": c.parent,
43350 })
43351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43352 }
43353
43354
43355
43356
43357
43358
43359
43360 func (c *ProjectsLocationsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
43361 gensupport.SetOptions(c.urlParams_, opts...)
43362 res, err := c.doRequest("json")
43363 if res != nil && res.StatusCode == http.StatusNotModified {
43364 if res.Body != nil {
43365 res.Body.Close()
43366 }
43367 return nil, gensupport.WrapError(&googleapi.Error{
43368 Code: res.StatusCode,
43369 Header: res.Header,
43370 })
43371 }
43372 if err != nil {
43373 return nil, err
43374 }
43375 defer googleapi.CloseBody(res)
43376 if err := googleapi.CheckResponse(res); err != nil {
43377 return nil, gensupport.WrapError(err)
43378 }
43379 ret := &GoogleCloudDialogflowV2ConversationProfile{
43380 ServerResponse: googleapi.ServerResponse{
43381 Header: res.Header,
43382 HTTPStatusCode: res.StatusCode,
43383 },
43384 }
43385 target := &ret
43386 if err := gensupport.DecodeResponse(target, res); err != nil {
43387 return nil, err
43388 }
43389 return ret, nil
43390 }
43391
43392 type ProjectsLocationsConversationProfilesDeleteCall struct {
43393 s *Service
43394 name string
43395 urlParams_ gensupport.URLParams
43396 ctx_ context.Context
43397 header_ http.Header
43398 }
43399
43400
43401
43402
43403
43404 func (r *ProjectsLocationsConversationProfilesService) Delete(name string) *ProjectsLocationsConversationProfilesDeleteCall {
43405 c := &ProjectsLocationsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43406 c.name = name
43407 return c
43408 }
43409
43410
43411
43412
43413 func (c *ProjectsLocationsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesDeleteCall {
43414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43415 return c
43416 }
43417
43418
43419 func (c *ProjectsLocationsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesDeleteCall {
43420 c.ctx_ = ctx
43421 return c
43422 }
43423
43424
43425
43426 func (c *ProjectsLocationsConversationProfilesDeleteCall) Header() http.Header {
43427 if c.header_ == nil {
43428 c.header_ = make(http.Header)
43429 }
43430 return c.header_
43431 }
43432
43433 func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
43434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43435 var body io.Reader = nil
43436 c.urlParams_.Set("alt", alt)
43437 c.urlParams_.Set("prettyPrint", "false")
43438 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
43439 urls += "?" + c.urlParams_.Encode()
43440 req, err := http.NewRequest("DELETE", urls, body)
43441 if err != nil {
43442 return nil, err
43443 }
43444 req.Header = reqHeaders
43445 googleapi.Expand(req.URL, map[string]string{
43446 "name": c.name,
43447 })
43448 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43449 }
43450
43451
43452
43453
43454
43455
43456
43457 func (c *ProjectsLocationsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
43458 gensupport.SetOptions(c.urlParams_, opts...)
43459 res, err := c.doRequest("json")
43460 if res != nil && res.StatusCode == http.StatusNotModified {
43461 if res.Body != nil {
43462 res.Body.Close()
43463 }
43464 return nil, gensupport.WrapError(&googleapi.Error{
43465 Code: res.StatusCode,
43466 Header: res.Header,
43467 })
43468 }
43469 if err != nil {
43470 return nil, err
43471 }
43472 defer googleapi.CloseBody(res)
43473 if err := googleapi.CheckResponse(res); err != nil {
43474 return nil, gensupport.WrapError(err)
43475 }
43476 ret := &GoogleProtobufEmpty{
43477 ServerResponse: googleapi.ServerResponse{
43478 Header: res.Header,
43479 HTTPStatusCode: res.StatusCode,
43480 },
43481 }
43482 target := &ret
43483 if err := gensupport.DecodeResponse(target, res); err != nil {
43484 return nil, err
43485 }
43486 return ret, nil
43487 }
43488
43489 type ProjectsLocationsConversationProfilesGetCall struct {
43490 s *Service
43491 name string
43492 urlParams_ gensupport.URLParams
43493 ifNoneMatch_ string
43494 ctx_ context.Context
43495 header_ http.Header
43496 }
43497
43498
43499
43500
43501
43502 func (r *ProjectsLocationsConversationProfilesService) Get(name string) *ProjectsLocationsConversationProfilesGetCall {
43503 c := &ProjectsLocationsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43504 c.name = name
43505 return c
43506 }
43507
43508
43509
43510
43511 func (c *ProjectsLocationsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesGetCall {
43512 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43513 return c
43514 }
43515
43516
43517
43518
43519 func (c *ProjectsLocationsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesGetCall {
43520 c.ifNoneMatch_ = entityTag
43521 return c
43522 }
43523
43524
43525 func (c *ProjectsLocationsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesGetCall {
43526 c.ctx_ = ctx
43527 return c
43528 }
43529
43530
43531
43532 func (c *ProjectsLocationsConversationProfilesGetCall) Header() http.Header {
43533 if c.header_ == nil {
43534 c.header_ = make(http.Header)
43535 }
43536 return c.header_
43537 }
43538
43539 func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
43540 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43541 if c.ifNoneMatch_ != "" {
43542 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43543 }
43544 var body io.Reader = nil
43545 c.urlParams_.Set("alt", alt)
43546 c.urlParams_.Set("prettyPrint", "false")
43547 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
43548 urls += "?" + c.urlParams_.Encode()
43549 req, err := http.NewRequest("GET", urls, body)
43550 if err != nil {
43551 return nil, err
43552 }
43553 req.Header = reqHeaders
43554 googleapi.Expand(req.URL, map[string]string{
43555 "name": c.name,
43556 })
43557 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43558 }
43559
43560
43561
43562
43563
43564
43565
43566 func (c *ProjectsLocationsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
43567 gensupport.SetOptions(c.urlParams_, opts...)
43568 res, err := c.doRequest("json")
43569 if res != nil && res.StatusCode == http.StatusNotModified {
43570 if res.Body != nil {
43571 res.Body.Close()
43572 }
43573 return nil, gensupport.WrapError(&googleapi.Error{
43574 Code: res.StatusCode,
43575 Header: res.Header,
43576 })
43577 }
43578 if err != nil {
43579 return nil, err
43580 }
43581 defer googleapi.CloseBody(res)
43582 if err := googleapi.CheckResponse(res); err != nil {
43583 return nil, gensupport.WrapError(err)
43584 }
43585 ret := &GoogleCloudDialogflowV2ConversationProfile{
43586 ServerResponse: googleapi.ServerResponse{
43587 Header: res.Header,
43588 HTTPStatusCode: res.StatusCode,
43589 },
43590 }
43591 target := &ret
43592 if err := gensupport.DecodeResponse(target, res); err != nil {
43593 return nil, err
43594 }
43595 return ret, nil
43596 }
43597
43598 type ProjectsLocationsConversationProfilesListCall struct {
43599 s *Service
43600 parent string
43601 urlParams_ gensupport.URLParams
43602 ifNoneMatch_ string
43603 ctx_ context.Context
43604 header_ http.Header
43605 }
43606
43607
43608
43609
43610
43611
43612 func (r *ProjectsLocationsConversationProfilesService) List(parent string) *ProjectsLocationsConversationProfilesListCall {
43613 c := &ProjectsLocationsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43614 c.parent = parent
43615 return c
43616 }
43617
43618
43619
43620 func (c *ProjectsLocationsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationProfilesListCall {
43621 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
43622 return c
43623 }
43624
43625
43626
43627 func (c *ProjectsLocationsConversationProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConversationProfilesListCall {
43628 c.urlParams_.Set("pageToken", pageToken)
43629 return c
43630 }
43631
43632
43633
43634
43635 func (c *ProjectsLocationsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesListCall {
43636 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43637 return c
43638 }
43639
43640
43641
43642
43643 func (c *ProjectsLocationsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesListCall {
43644 c.ifNoneMatch_ = entityTag
43645 return c
43646 }
43647
43648
43649 func (c *ProjectsLocationsConversationProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesListCall {
43650 c.ctx_ = ctx
43651 return c
43652 }
43653
43654
43655
43656 func (c *ProjectsLocationsConversationProfilesListCall) Header() http.Header {
43657 if c.header_ == nil {
43658 c.header_ = make(http.Header)
43659 }
43660 return c.header_
43661 }
43662
43663 func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
43664 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43665 if c.ifNoneMatch_ != "" {
43666 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43667 }
43668 var body io.Reader = nil
43669 c.urlParams_.Set("alt", alt)
43670 c.urlParams_.Set("prettyPrint", "false")
43671 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversationProfiles")
43672 urls += "?" + c.urlParams_.Encode()
43673 req, err := http.NewRequest("GET", urls, body)
43674 if err != nil {
43675 return nil, err
43676 }
43677 req.Header = reqHeaders
43678 googleapi.Expand(req.URL, map[string]string{
43679 "parent": c.parent,
43680 })
43681 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43682 }
43683
43684
43685
43686
43687
43688
43689
43690 func (c *ProjectsLocationsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationProfilesResponse, error) {
43691 gensupport.SetOptions(c.urlParams_, opts...)
43692 res, err := c.doRequest("json")
43693 if res != nil && res.StatusCode == http.StatusNotModified {
43694 if res.Body != nil {
43695 res.Body.Close()
43696 }
43697 return nil, gensupport.WrapError(&googleapi.Error{
43698 Code: res.StatusCode,
43699 Header: res.Header,
43700 })
43701 }
43702 if err != nil {
43703 return nil, err
43704 }
43705 defer googleapi.CloseBody(res)
43706 if err := googleapi.CheckResponse(res); err != nil {
43707 return nil, gensupport.WrapError(err)
43708 }
43709 ret := &GoogleCloudDialogflowV2ListConversationProfilesResponse{
43710 ServerResponse: googleapi.ServerResponse{
43711 Header: res.Header,
43712 HTTPStatusCode: res.StatusCode,
43713 },
43714 }
43715 target := &ret
43716 if err := gensupport.DecodeResponse(target, res); err != nil {
43717 return nil, err
43718 }
43719 return ret, nil
43720 }
43721
43722
43723
43724
43725 func (c *ProjectsLocationsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationProfilesResponse) error) error {
43726 c.ctx_ = ctx
43727 defer c.PageToken(c.urlParams_.Get("pageToken"))
43728 for {
43729 x, err := c.Do()
43730 if err != nil {
43731 return err
43732 }
43733 if err := f(x); err != nil {
43734 return err
43735 }
43736 if x.NextPageToken == "" {
43737 return nil
43738 }
43739 c.PageToken(x.NextPageToken)
43740 }
43741 }
43742
43743 type ProjectsLocationsConversationProfilesPatchCall struct {
43744 s *Service
43745 nameid string
43746 googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile
43747 urlParams_ gensupport.URLParams
43748 ctx_ context.Context
43749 header_ http.Header
43750 }
43751
43752
43753
43754
43755
43756
43757
43758
43759 func (r *ProjectsLocationsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2conversationprofile *GoogleCloudDialogflowV2ConversationProfile) *ProjectsLocationsConversationProfilesPatchCall {
43760 c := &ProjectsLocationsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43761 c.nameid = nameid
43762 c.googleclouddialogflowv2conversationprofile = googleclouddialogflowv2conversationprofile
43763 return c
43764 }
43765
43766
43767
43768 func (c *ProjectsLocationsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationProfilesPatchCall {
43769 c.urlParams_.Set("updateMask", updateMask)
43770 return c
43771 }
43772
43773
43774
43775
43776 func (c *ProjectsLocationsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesPatchCall {
43777 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43778 return c
43779 }
43780
43781
43782 func (c *ProjectsLocationsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesPatchCall {
43783 c.ctx_ = ctx
43784 return c
43785 }
43786
43787
43788
43789 func (c *ProjectsLocationsConversationProfilesPatchCall) Header() http.Header {
43790 if c.header_ == nil {
43791 c.header_ = make(http.Header)
43792 }
43793 return c.header_
43794 }
43795
43796 func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
43797 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43798 var body io.Reader = nil
43799 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversationprofile)
43800 if err != nil {
43801 return nil, err
43802 }
43803 c.urlParams_.Set("alt", alt)
43804 c.urlParams_.Set("prettyPrint", "false")
43805 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
43806 urls += "?" + c.urlParams_.Encode()
43807 req, err := http.NewRequest("PATCH", urls, body)
43808 if err != nil {
43809 return nil, err
43810 }
43811 req.Header = reqHeaders
43812 googleapi.Expand(req.URL, map[string]string{
43813 "name": c.nameid,
43814 })
43815 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43816 }
43817
43818
43819
43820
43821
43822
43823
43824 func (c *ProjectsLocationsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ConversationProfile, error) {
43825 gensupport.SetOptions(c.urlParams_, opts...)
43826 res, err := c.doRequest("json")
43827 if res != nil && res.StatusCode == http.StatusNotModified {
43828 if res.Body != nil {
43829 res.Body.Close()
43830 }
43831 return nil, gensupport.WrapError(&googleapi.Error{
43832 Code: res.StatusCode,
43833 Header: res.Header,
43834 })
43835 }
43836 if err != nil {
43837 return nil, err
43838 }
43839 defer googleapi.CloseBody(res)
43840 if err := googleapi.CheckResponse(res); err != nil {
43841 return nil, gensupport.WrapError(err)
43842 }
43843 ret := &GoogleCloudDialogflowV2ConversationProfile{
43844 ServerResponse: googleapi.ServerResponse{
43845 Header: res.Header,
43846 HTTPStatusCode: res.StatusCode,
43847 },
43848 }
43849 target := &ret
43850 if err := gensupport.DecodeResponse(target, res); err != nil {
43851 return nil, err
43852 }
43853 return ret, nil
43854 }
43855
43856 type ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall struct {
43857 s *Service
43858 conversationProfile string
43859 googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
43860 urlParams_ gensupport.URLParams
43861 ctx_ context.Context
43862 header_ http.Header
43863 }
43864
43865
43866
43867
43868
43869
43870
43871
43872
43873
43874
43875
43876
43877
43878
43879
43880
43881 func (r *ProjectsLocationsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
43882 c := &ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43883 c.conversationProfile = conversationProfile
43884 c.googleclouddialogflowv2setsuggestionfeatureconfigrequest = googleclouddialogflowv2setsuggestionfeatureconfigrequest
43885 return c
43886 }
43887
43888
43889
43890
43891 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
43892 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43893 return c
43894 }
43895
43896
43897 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
43898 c.ctx_ = ctx
43899 return c
43900 }
43901
43902
43903
43904 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
43905 if c.header_ == nil {
43906 c.header_ = make(http.Header)
43907 }
43908 return c.header_
43909 }
43910
43911 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
43912 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43913 var body io.Reader = nil
43914 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2setsuggestionfeatureconfigrequest)
43915 if err != nil {
43916 return nil, err
43917 }
43918 c.urlParams_.Set("alt", alt)
43919 c.urlParams_.Set("prettyPrint", "false")
43920 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversationProfile}:setSuggestionFeatureConfig")
43921 urls += "?" + c.urlParams_.Encode()
43922 req, err := http.NewRequest("POST", urls, body)
43923 if err != nil {
43924 return nil, err
43925 }
43926 req.Header = reqHeaders
43927 googleapi.Expand(req.URL, map[string]string{
43928 "conversationProfile": c.conversationProfile,
43929 })
43930 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43931 }
43932
43933
43934
43935
43936
43937
43938
43939 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
43940 gensupport.SetOptions(c.urlParams_, opts...)
43941 res, err := c.doRequest("json")
43942 if res != nil && res.StatusCode == http.StatusNotModified {
43943 if res.Body != nil {
43944 res.Body.Close()
43945 }
43946 return nil, gensupport.WrapError(&googleapi.Error{
43947 Code: res.StatusCode,
43948 Header: res.Header,
43949 })
43950 }
43951 if err != nil {
43952 return nil, err
43953 }
43954 defer googleapi.CloseBody(res)
43955 if err := googleapi.CheckResponse(res); err != nil {
43956 return nil, gensupport.WrapError(err)
43957 }
43958 ret := &GoogleLongrunningOperation{
43959 ServerResponse: googleapi.ServerResponse{
43960 Header: res.Header,
43961 HTTPStatusCode: res.StatusCode,
43962 },
43963 }
43964 target := &ret
43965 if err := gensupport.DecodeResponse(target, res); err != nil {
43966 return nil, err
43967 }
43968 return ret, nil
43969 }
43970
43971 type ProjectsLocationsConversationsCompleteCall struct {
43972 s *Service
43973 nameid string
43974 googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest
43975 urlParams_ gensupport.URLParams
43976 ctx_ context.Context
43977 header_ http.Header
43978 }
43979
43980
43981
43982
43983
43984
43985 func (r *ProjectsLocationsConversationsService) Complete(nameid string, googleclouddialogflowv2completeconversationrequest *GoogleCloudDialogflowV2CompleteConversationRequest) *ProjectsLocationsConversationsCompleteCall {
43986 c := &ProjectsLocationsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43987 c.nameid = nameid
43988 c.googleclouddialogflowv2completeconversationrequest = googleclouddialogflowv2completeconversationrequest
43989 return c
43990 }
43991
43992
43993
43994
43995 func (c *ProjectsLocationsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCompleteCall {
43996 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43997 return c
43998 }
43999
44000
44001 func (c *ProjectsLocationsConversationsCompleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsCompleteCall {
44002 c.ctx_ = ctx
44003 return c
44004 }
44005
44006
44007
44008 func (c *ProjectsLocationsConversationsCompleteCall) Header() http.Header {
44009 if c.header_ == nil {
44010 c.header_ = make(http.Header)
44011 }
44012 return c.header_
44013 }
44014
44015 func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
44016 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44017 var body io.Reader = nil
44018 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2completeconversationrequest)
44019 if err != nil {
44020 return nil, err
44021 }
44022 c.urlParams_.Set("alt", alt)
44023 c.urlParams_.Set("prettyPrint", "false")
44024 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:complete")
44025 urls += "?" + c.urlParams_.Encode()
44026 req, err := http.NewRequest("POST", urls, body)
44027 if err != nil {
44028 return nil, err
44029 }
44030 req.Header = reqHeaders
44031 googleapi.Expand(req.URL, map[string]string{
44032 "name": c.nameid,
44033 })
44034 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44035 }
44036
44037
44038
44039
44040
44041
44042
44043 func (c *ProjectsLocationsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
44044 gensupport.SetOptions(c.urlParams_, opts...)
44045 res, err := c.doRequest("json")
44046 if res != nil && res.StatusCode == http.StatusNotModified {
44047 if res.Body != nil {
44048 res.Body.Close()
44049 }
44050 return nil, gensupport.WrapError(&googleapi.Error{
44051 Code: res.StatusCode,
44052 Header: res.Header,
44053 })
44054 }
44055 if err != nil {
44056 return nil, err
44057 }
44058 defer googleapi.CloseBody(res)
44059 if err := googleapi.CheckResponse(res); err != nil {
44060 return nil, gensupport.WrapError(err)
44061 }
44062 ret := &GoogleCloudDialogflowV2Conversation{
44063 ServerResponse: googleapi.ServerResponse{
44064 Header: res.Header,
44065 HTTPStatusCode: res.StatusCode,
44066 },
44067 }
44068 target := &ret
44069 if err := gensupport.DecodeResponse(target, res); err != nil {
44070 return nil, err
44071 }
44072 return ret, nil
44073 }
44074
44075 type ProjectsLocationsConversationsCreateCall struct {
44076 s *Service
44077 parentid string
44078 googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation
44079 urlParams_ gensupport.URLParams
44080 ctx_ context.Context
44081 header_ http.Header
44082 }
44083
44084
44085
44086
44087
44088
44089
44090
44091
44092
44093
44094
44095
44096
44097
44098 func (r *ProjectsLocationsConversationsService) Create(parentid string, googleclouddialogflowv2conversation *GoogleCloudDialogflowV2Conversation) *ProjectsLocationsConversationsCreateCall {
44099 c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44100 c.parentid = parentid
44101 c.googleclouddialogflowv2conversation = googleclouddialogflowv2conversation
44102 return c
44103 }
44104
44105
44106
44107
44108
44109
44110
44111
44112
44113 func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
44114 c.urlParams_.Set("conversationId", conversationId)
44115 return c
44116 }
44117
44118
44119
44120
44121 func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
44122 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44123 return c
44124 }
44125
44126
44127 func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
44128 c.ctx_ = ctx
44129 return c
44130 }
44131
44132
44133
44134 func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
44135 if c.header_ == nil {
44136 c.header_ = make(http.Header)
44137 }
44138 return c.header_
44139 }
44140
44141 func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
44142 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44143 var body io.Reader = nil
44144 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2conversation)
44145 if err != nil {
44146 return nil, err
44147 }
44148 c.urlParams_.Set("alt", alt)
44149 c.urlParams_.Set("prettyPrint", "false")
44150 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
44151 urls += "?" + c.urlParams_.Encode()
44152 req, err := http.NewRequest("POST", urls, body)
44153 if err != nil {
44154 return nil, err
44155 }
44156 req.Header = reqHeaders
44157 googleapi.Expand(req.URL, map[string]string{
44158 "parent": c.parentid,
44159 })
44160 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44161 }
44162
44163
44164
44165
44166
44167
44168
44169 func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
44170 gensupport.SetOptions(c.urlParams_, opts...)
44171 res, err := c.doRequest("json")
44172 if res != nil && res.StatusCode == http.StatusNotModified {
44173 if res.Body != nil {
44174 res.Body.Close()
44175 }
44176 return nil, gensupport.WrapError(&googleapi.Error{
44177 Code: res.StatusCode,
44178 Header: res.Header,
44179 })
44180 }
44181 if err != nil {
44182 return nil, err
44183 }
44184 defer googleapi.CloseBody(res)
44185 if err := googleapi.CheckResponse(res); err != nil {
44186 return nil, gensupport.WrapError(err)
44187 }
44188 ret := &GoogleCloudDialogflowV2Conversation{
44189 ServerResponse: googleapi.ServerResponse{
44190 Header: res.Header,
44191 HTTPStatusCode: res.StatusCode,
44192 },
44193 }
44194 target := &ret
44195 if err := gensupport.DecodeResponse(target, res); err != nil {
44196 return nil, err
44197 }
44198 return ret, nil
44199 }
44200
44201 type ProjectsLocationsConversationsGetCall struct {
44202 s *Service
44203 name string
44204 urlParams_ gensupport.URLParams
44205 ifNoneMatch_ string
44206 ctx_ context.Context
44207 header_ http.Header
44208 }
44209
44210
44211
44212
44213
44214 func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
44215 c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44216 c.name = name
44217 return c
44218 }
44219
44220
44221
44222
44223 func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
44224 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44225 return c
44226 }
44227
44228
44229
44230
44231 func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
44232 c.ifNoneMatch_ = entityTag
44233 return c
44234 }
44235
44236
44237 func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
44238 c.ctx_ = ctx
44239 return c
44240 }
44241
44242
44243
44244 func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
44245 if c.header_ == nil {
44246 c.header_ = make(http.Header)
44247 }
44248 return c.header_
44249 }
44250
44251 func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
44252 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44253 if c.ifNoneMatch_ != "" {
44254 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44255 }
44256 var body io.Reader = nil
44257 c.urlParams_.Set("alt", alt)
44258 c.urlParams_.Set("prettyPrint", "false")
44259 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
44260 urls += "?" + c.urlParams_.Encode()
44261 req, err := http.NewRequest("GET", urls, body)
44262 if err != nil {
44263 return nil, err
44264 }
44265 req.Header = reqHeaders
44266 googleapi.Expand(req.URL, map[string]string{
44267 "name": c.name,
44268 })
44269 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44270 }
44271
44272
44273
44274
44275
44276
44277
44278 func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Conversation, error) {
44279 gensupport.SetOptions(c.urlParams_, opts...)
44280 res, err := c.doRequest("json")
44281 if res != nil && res.StatusCode == http.StatusNotModified {
44282 if res.Body != nil {
44283 res.Body.Close()
44284 }
44285 return nil, gensupport.WrapError(&googleapi.Error{
44286 Code: res.StatusCode,
44287 Header: res.Header,
44288 })
44289 }
44290 if err != nil {
44291 return nil, err
44292 }
44293 defer googleapi.CloseBody(res)
44294 if err := googleapi.CheckResponse(res); err != nil {
44295 return nil, gensupport.WrapError(err)
44296 }
44297 ret := &GoogleCloudDialogflowV2Conversation{
44298 ServerResponse: googleapi.ServerResponse{
44299 Header: res.Header,
44300 HTTPStatusCode: res.StatusCode,
44301 },
44302 }
44303 target := &ret
44304 if err := gensupport.DecodeResponse(target, res); err != nil {
44305 return nil, err
44306 }
44307 return ret, nil
44308 }
44309
44310 type ProjectsLocationsConversationsListCall struct {
44311 s *Service
44312 parent string
44313 urlParams_ gensupport.URLParams
44314 ifNoneMatch_ string
44315 ctx_ context.Context
44316 header_ http.Header
44317 }
44318
44319
44320
44321
44322
44323 func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
44324 c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44325 c.parent = parent
44326 return c
44327 }
44328
44329
44330
44331
44332
44333
44334
44335
44336
44337
44338
44339
44340 func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
44341 c.urlParams_.Set("filter", filter)
44342 return c
44343 }
44344
44345
44346
44347 func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
44348 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44349 return c
44350 }
44351
44352
44353
44354 func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
44355 c.urlParams_.Set("pageToken", pageToken)
44356 return c
44357 }
44358
44359
44360
44361
44362 func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
44363 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44364 return c
44365 }
44366
44367
44368
44369
44370 func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
44371 c.ifNoneMatch_ = entityTag
44372 return c
44373 }
44374
44375
44376 func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
44377 c.ctx_ = ctx
44378 return c
44379 }
44380
44381
44382
44383 func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
44384 if c.header_ == nil {
44385 c.header_ = make(http.Header)
44386 }
44387 return c.header_
44388 }
44389
44390 func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
44391 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44392 if c.ifNoneMatch_ != "" {
44393 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44394 }
44395 var body io.Reader = nil
44396 c.urlParams_.Set("alt", alt)
44397 c.urlParams_.Set("prettyPrint", "false")
44398 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/conversations")
44399 urls += "?" + c.urlParams_.Encode()
44400 req, err := http.NewRequest("GET", urls, body)
44401 if err != nil {
44402 return nil, err
44403 }
44404 req.Header = reqHeaders
44405 googleapi.Expand(req.URL, map[string]string{
44406 "parent": c.parent,
44407 })
44408 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44409 }
44410
44411
44412
44413
44414
44415
44416
44417 func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListConversationsResponse, error) {
44418 gensupport.SetOptions(c.urlParams_, opts...)
44419 res, err := c.doRequest("json")
44420 if res != nil && res.StatusCode == http.StatusNotModified {
44421 if res.Body != nil {
44422 res.Body.Close()
44423 }
44424 return nil, gensupport.WrapError(&googleapi.Error{
44425 Code: res.StatusCode,
44426 Header: res.Header,
44427 })
44428 }
44429 if err != nil {
44430 return nil, err
44431 }
44432 defer googleapi.CloseBody(res)
44433 if err := googleapi.CheckResponse(res); err != nil {
44434 return nil, gensupport.WrapError(err)
44435 }
44436 ret := &GoogleCloudDialogflowV2ListConversationsResponse{
44437 ServerResponse: googleapi.ServerResponse{
44438 Header: res.Header,
44439 HTTPStatusCode: res.StatusCode,
44440 },
44441 }
44442 target := &ret
44443 if err := gensupport.DecodeResponse(target, res); err != nil {
44444 return nil, err
44445 }
44446 return ret, nil
44447 }
44448
44449
44450
44451
44452 func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListConversationsResponse) error) error {
44453 c.ctx_ = ctx
44454 defer c.PageToken(c.urlParams_.Get("pageToken"))
44455 for {
44456 x, err := c.Do()
44457 if err != nil {
44458 return err
44459 }
44460 if err := f(x); err != nil {
44461 return err
44462 }
44463 if x.NextPageToken == "" {
44464 return nil
44465 }
44466 c.PageToken(x.NextPageToken)
44467 }
44468 }
44469
44470 type ProjectsLocationsConversationsMessagesListCall struct {
44471 s *Service
44472 parent string
44473 urlParams_ gensupport.URLParams
44474 ifNoneMatch_ string
44475 ctx_ context.Context
44476 header_ http.Header
44477 }
44478
44479
44480
44481
44482
44483
44484
44485
44486 func (r *ProjectsLocationsConversationsMessagesService) List(parent string) *ProjectsLocationsConversationsMessagesListCall {
44487 c := &ProjectsLocationsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44488 c.parent = parent
44489 return c
44490 }
44491
44492
44493
44494
44495
44496
44497
44498 func (c *ProjectsLocationsConversationsMessagesListCall) Filter(filter string) *ProjectsLocationsConversationsMessagesListCall {
44499 c.urlParams_.Set("filter", filter)
44500 return c
44501 }
44502
44503
44504
44505 func (c *ProjectsLocationsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsMessagesListCall {
44506 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44507 return c
44508 }
44509
44510
44511
44512 func (c *ProjectsLocationsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsMessagesListCall {
44513 c.urlParams_.Set("pageToken", pageToken)
44514 return c
44515 }
44516
44517
44518
44519
44520 func (c *ProjectsLocationsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesListCall {
44521 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44522 return c
44523 }
44524
44525
44526
44527
44528 func (c *ProjectsLocationsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsMessagesListCall {
44529 c.ifNoneMatch_ = entityTag
44530 return c
44531 }
44532
44533
44534 func (c *ProjectsLocationsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesListCall {
44535 c.ctx_ = ctx
44536 return c
44537 }
44538
44539
44540
44541 func (c *ProjectsLocationsConversationsMessagesListCall) Header() http.Header {
44542 if c.header_ == nil {
44543 c.header_ = make(http.Header)
44544 }
44545 return c.header_
44546 }
44547
44548 func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
44549 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44550 if c.ifNoneMatch_ != "" {
44551 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44552 }
44553 var body io.Reader = nil
44554 c.urlParams_.Set("alt", alt)
44555 c.urlParams_.Set("prettyPrint", "false")
44556 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/messages")
44557 urls += "?" + c.urlParams_.Encode()
44558 req, err := http.NewRequest("GET", urls, body)
44559 if err != nil {
44560 return nil, err
44561 }
44562 req.Header = reqHeaders
44563 googleapi.Expand(req.URL, map[string]string{
44564 "parent": c.parent,
44565 })
44566 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44567 }
44568
44569
44570
44571
44572
44573
44574
44575 func (c *ProjectsLocationsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListMessagesResponse, error) {
44576 gensupport.SetOptions(c.urlParams_, opts...)
44577 res, err := c.doRequest("json")
44578 if res != nil && res.StatusCode == http.StatusNotModified {
44579 if res.Body != nil {
44580 res.Body.Close()
44581 }
44582 return nil, gensupport.WrapError(&googleapi.Error{
44583 Code: res.StatusCode,
44584 Header: res.Header,
44585 })
44586 }
44587 if err != nil {
44588 return nil, err
44589 }
44590 defer googleapi.CloseBody(res)
44591 if err := googleapi.CheckResponse(res); err != nil {
44592 return nil, gensupport.WrapError(err)
44593 }
44594 ret := &GoogleCloudDialogflowV2ListMessagesResponse{
44595 ServerResponse: googleapi.ServerResponse{
44596 Header: res.Header,
44597 HTTPStatusCode: res.StatusCode,
44598 },
44599 }
44600 target := &ret
44601 if err := gensupport.DecodeResponse(target, res); err != nil {
44602 return nil, err
44603 }
44604 return ret, nil
44605 }
44606
44607
44608
44609
44610 func (c *ProjectsLocationsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListMessagesResponse) error) error {
44611 c.ctx_ = ctx
44612 defer c.PageToken(c.urlParams_.Get("pageToken"))
44613 for {
44614 x, err := c.Do()
44615 if err != nil {
44616 return err
44617 }
44618 if err := f(x); err != nil {
44619 return err
44620 }
44621 if x.NextPageToken == "" {
44622 return nil
44623 }
44624 c.PageToken(x.NextPageToken)
44625 }
44626 }
44627
44628 type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {
44629 s *Service
44630 participant string
44631 googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest
44632 urlParams_ gensupport.URLParams
44633 ctx_ context.Context
44634 header_ http.Header
44635 }
44636
44637
44638
44639
44640
44641
44642
44643
44644
44645 func (r *ProjectsLocationsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2analyzecontentrequest *GoogleCloudDialogflowV2AnalyzeContentRequest) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
44646 c := &ProjectsLocationsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44647 c.participant = participant
44648 c.googleclouddialogflowv2analyzecontentrequest = googleclouddialogflowv2analyzecontentrequest
44649 return c
44650 }
44651
44652
44653
44654
44655 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
44656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44657 return c
44658 }
44659
44660
44661 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
44662 c.ctx_ = ctx
44663 return c
44664 }
44665
44666
44667
44668 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
44669 if c.header_ == nil {
44670 c.header_ = make(http.Header)
44671 }
44672 return c.header_
44673 }
44674
44675 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
44676 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44677 var body io.Reader = nil
44678 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2analyzecontentrequest)
44679 if err != nil {
44680 return nil, err
44681 }
44682 c.urlParams_.Set("alt", alt)
44683 c.urlParams_.Set("prettyPrint", "false")
44684 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+participant}:analyzeContent")
44685 urls += "?" + c.urlParams_.Encode()
44686 req, err := http.NewRequest("POST", urls, body)
44687 if err != nil {
44688 return nil, err
44689 }
44690 req.Header = reqHeaders
44691 googleapi.Expand(req.URL, map[string]string{
44692 "participant": c.participant,
44693 })
44694 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44695 }
44696
44697
44698
44699
44700
44701
44702
44703 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2AnalyzeContentResponse, error) {
44704 gensupport.SetOptions(c.urlParams_, opts...)
44705 res, err := c.doRequest("json")
44706 if res != nil && res.StatusCode == http.StatusNotModified {
44707 if res.Body != nil {
44708 res.Body.Close()
44709 }
44710 return nil, gensupport.WrapError(&googleapi.Error{
44711 Code: res.StatusCode,
44712 Header: res.Header,
44713 })
44714 }
44715 if err != nil {
44716 return nil, err
44717 }
44718 defer googleapi.CloseBody(res)
44719 if err := googleapi.CheckResponse(res); err != nil {
44720 return nil, gensupport.WrapError(err)
44721 }
44722 ret := &GoogleCloudDialogflowV2AnalyzeContentResponse{
44723 ServerResponse: googleapi.ServerResponse{
44724 Header: res.Header,
44725 HTTPStatusCode: res.StatusCode,
44726 },
44727 }
44728 target := &ret
44729 if err := gensupport.DecodeResponse(target, res); err != nil {
44730 return nil, err
44731 }
44732 return ret, nil
44733 }
44734
44735 type ProjectsLocationsConversationsParticipantsCreateCall struct {
44736 s *Service
44737 parentid string
44738 googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
44739 urlParams_ gensupport.URLParams
44740 ctx_ context.Context
44741 header_ http.Header
44742 }
44743
44744
44745
44746
44747
44748 func (r *ProjectsLocationsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsLocationsConversationsParticipantsCreateCall {
44749 c := &ProjectsLocationsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44750 c.parentid = parentid
44751 c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
44752 return c
44753 }
44754
44755
44756
44757
44758 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsCreateCall {
44759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44760 return c
44761 }
44762
44763
44764 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsCreateCall {
44765 c.ctx_ = ctx
44766 return c
44767 }
44768
44769
44770
44771 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Header() http.Header {
44772 if c.header_ == nil {
44773 c.header_ = make(http.Header)
44774 }
44775 return c.header_
44776 }
44777
44778 func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
44779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44780 var body io.Reader = nil
44781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
44782 if err != nil {
44783 return nil, err
44784 }
44785 c.urlParams_.Set("alt", alt)
44786 c.urlParams_.Set("prettyPrint", "false")
44787 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
44788 urls += "?" + c.urlParams_.Encode()
44789 req, err := http.NewRequest("POST", urls, body)
44790 if err != nil {
44791 return nil, err
44792 }
44793 req.Header = reqHeaders
44794 googleapi.Expand(req.URL, map[string]string{
44795 "parent": c.parentid,
44796 })
44797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44798 }
44799
44800
44801
44802
44803
44804
44805
44806 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
44807 gensupport.SetOptions(c.urlParams_, opts...)
44808 res, err := c.doRequest("json")
44809 if res != nil && res.StatusCode == http.StatusNotModified {
44810 if res.Body != nil {
44811 res.Body.Close()
44812 }
44813 return nil, gensupport.WrapError(&googleapi.Error{
44814 Code: res.StatusCode,
44815 Header: res.Header,
44816 })
44817 }
44818 if err != nil {
44819 return nil, err
44820 }
44821 defer googleapi.CloseBody(res)
44822 if err := googleapi.CheckResponse(res); err != nil {
44823 return nil, gensupport.WrapError(err)
44824 }
44825 ret := &GoogleCloudDialogflowV2Participant{
44826 ServerResponse: googleapi.ServerResponse{
44827 Header: res.Header,
44828 HTTPStatusCode: res.StatusCode,
44829 },
44830 }
44831 target := &ret
44832 if err := gensupport.DecodeResponse(target, res); err != nil {
44833 return nil, err
44834 }
44835 return ret, nil
44836 }
44837
44838 type ProjectsLocationsConversationsParticipantsGetCall struct {
44839 s *Service
44840 name string
44841 urlParams_ gensupport.URLParams
44842 ifNoneMatch_ string
44843 ctx_ context.Context
44844 header_ http.Header
44845 }
44846
44847
44848
44849
44850
44851 func (r *ProjectsLocationsConversationsParticipantsService) Get(name string) *ProjectsLocationsConversationsParticipantsGetCall {
44852 c := &ProjectsLocationsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44853 c.name = name
44854 return c
44855 }
44856
44857
44858
44859
44860 func (c *ProjectsLocationsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsGetCall {
44861 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44862 return c
44863 }
44864
44865
44866
44867
44868 func (c *ProjectsLocationsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsGetCall {
44869 c.ifNoneMatch_ = entityTag
44870 return c
44871 }
44872
44873
44874 func (c *ProjectsLocationsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsGetCall {
44875 c.ctx_ = ctx
44876 return c
44877 }
44878
44879
44880
44881 func (c *ProjectsLocationsConversationsParticipantsGetCall) Header() http.Header {
44882 if c.header_ == nil {
44883 c.header_ = make(http.Header)
44884 }
44885 return c.header_
44886 }
44887
44888 func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
44889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44890 if c.ifNoneMatch_ != "" {
44891 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44892 }
44893 var body io.Reader = nil
44894 c.urlParams_.Set("alt", alt)
44895 c.urlParams_.Set("prettyPrint", "false")
44896 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
44897 urls += "?" + c.urlParams_.Encode()
44898 req, err := http.NewRequest("GET", urls, body)
44899 if err != nil {
44900 return nil, err
44901 }
44902 req.Header = reqHeaders
44903 googleapi.Expand(req.URL, map[string]string{
44904 "name": c.name,
44905 })
44906 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44907 }
44908
44909
44910
44911
44912
44913
44914
44915 func (c *ProjectsLocationsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
44916 gensupport.SetOptions(c.urlParams_, opts...)
44917 res, err := c.doRequest("json")
44918 if res != nil && res.StatusCode == http.StatusNotModified {
44919 if res.Body != nil {
44920 res.Body.Close()
44921 }
44922 return nil, gensupport.WrapError(&googleapi.Error{
44923 Code: res.StatusCode,
44924 Header: res.Header,
44925 })
44926 }
44927 if err != nil {
44928 return nil, err
44929 }
44930 defer googleapi.CloseBody(res)
44931 if err := googleapi.CheckResponse(res); err != nil {
44932 return nil, gensupport.WrapError(err)
44933 }
44934 ret := &GoogleCloudDialogflowV2Participant{
44935 ServerResponse: googleapi.ServerResponse{
44936 Header: res.Header,
44937 HTTPStatusCode: res.StatusCode,
44938 },
44939 }
44940 target := &ret
44941 if err := gensupport.DecodeResponse(target, res); err != nil {
44942 return nil, err
44943 }
44944 return ret, nil
44945 }
44946
44947 type ProjectsLocationsConversationsParticipantsListCall struct {
44948 s *Service
44949 parent string
44950 urlParams_ gensupport.URLParams
44951 ifNoneMatch_ string
44952 ctx_ context.Context
44953 header_ http.Header
44954 }
44955
44956
44957
44958
44959
44960 func (r *ProjectsLocationsConversationsParticipantsService) List(parent string) *ProjectsLocationsConversationsParticipantsListCall {
44961 c := &ProjectsLocationsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44962 c.parent = parent
44963 return c
44964 }
44965
44966
44967
44968 func (c *ProjectsLocationsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsParticipantsListCall {
44969 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44970 return c
44971 }
44972
44973
44974
44975 func (c *ProjectsLocationsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsParticipantsListCall {
44976 c.urlParams_.Set("pageToken", pageToken)
44977 return c
44978 }
44979
44980
44981
44982
44983 func (c *ProjectsLocationsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsListCall {
44984 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44985 return c
44986 }
44987
44988
44989
44990
44991 func (c *ProjectsLocationsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsListCall {
44992 c.ifNoneMatch_ = entityTag
44993 return c
44994 }
44995
44996
44997 func (c *ProjectsLocationsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsListCall {
44998 c.ctx_ = ctx
44999 return c
45000 }
45001
45002
45003
45004 func (c *ProjectsLocationsConversationsParticipantsListCall) Header() http.Header {
45005 if c.header_ == nil {
45006 c.header_ = make(http.Header)
45007 }
45008 return c.header_
45009 }
45010
45011 func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
45012 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45013 if c.ifNoneMatch_ != "" {
45014 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45015 }
45016 var body io.Reader = nil
45017 c.urlParams_.Set("alt", alt)
45018 c.urlParams_.Set("prettyPrint", "false")
45019 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/participants")
45020 urls += "?" + c.urlParams_.Encode()
45021 req, err := http.NewRequest("GET", urls, body)
45022 if err != nil {
45023 return nil, err
45024 }
45025 req.Header = reqHeaders
45026 googleapi.Expand(req.URL, map[string]string{
45027 "parent": c.parent,
45028 })
45029 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45030 }
45031
45032
45033
45034
45035
45036
45037
45038 func (c *ProjectsLocationsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListParticipantsResponse, error) {
45039 gensupport.SetOptions(c.urlParams_, opts...)
45040 res, err := c.doRequest("json")
45041 if res != nil && res.StatusCode == http.StatusNotModified {
45042 if res.Body != nil {
45043 res.Body.Close()
45044 }
45045 return nil, gensupport.WrapError(&googleapi.Error{
45046 Code: res.StatusCode,
45047 Header: res.Header,
45048 })
45049 }
45050 if err != nil {
45051 return nil, err
45052 }
45053 defer googleapi.CloseBody(res)
45054 if err := googleapi.CheckResponse(res); err != nil {
45055 return nil, gensupport.WrapError(err)
45056 }
45057 ret := &GoogleCloudDialogflowV2ListParticipantsResponse{
45058 ServerResponse: googleapi.ServerResponse{
45059 Header: res.Header,
45060 HTTPStatusCode: res.StatusCode,
45061 },
45062 }
45063 target := &ret
45064 if err := gensupport.DecodeResponse(target, res); err != nil {
45065 return nil, err
45066 }
45067 return ret, nil
45068 }
45069
45070
45071
45072
45073 func (c *ProjectsLocationsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListParticipantsResponse) error) error {
45074 c.ctx_ = ctx
45075 defer c.PageToken(c.urlParams_.Get("pageToken"))
45076 for {
45077 x, err := c.Do()
45078 if err != nil {
45079 return err
45080 }
45081 if err := f(x); err != nil {
45082 return err
45083 }
45084 if x.NextPageToken == "" {
45085 return nil
45086 }
45087 c.PageToken(x.NextPageToken)
45088 }
45089 }
45090
45091 type ProjectsLocationsConversationsParticipantsPatchCall struct {
45092 s *Service
45093 nameid string
45094 googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant
45095 urlParams_ gensupport.URLParams
45096 ctx_ context.Context
45097 header_ http.Header
45098 }
45099
45100
45101
45102
45103
45104 func (r *ProjectsLocationsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2participant *GoogleCloudDialogflowV2Participant) *ProjectsLocationsConversationsParticipantsPatchCall {
45105 c := &ProjectsLocationsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45106 c.nameid = nameid
45107 c.googleclouddialogflowv2participant = googleclouddialogflowv2participant
45108 return c
45109 }
45110
45111
45112
45113 func (c *ProjectsLocationsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsParticipantsPatchCall {
45114 c.urlParams_.Set("updateMask", updateMask)
45115 return c
45116 }
45117
45118
45119
45120
45121 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsPatchCall {
45122 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45123 return c
45124 }
45125
45126
45127 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsPatchCall {
45128 c.ctx_ = ctx
45129 return c
45130 }
45131
45132
45133
45134 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Header() http.Header {
45135 if c.header_ == nil {
45136 c.header_ = make(http.Header)
45137 }
45138 return c.header_
45139 }
45140
45141 func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
45142 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45143 var body io.Reader = nil
45144 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2participant)
45145 if err != nil {
45146 return nil, err
45147 }
45148 c.urlParams_.Set("alt", alt)
45149 c.urlParams_.Set("prettyPrint", "false")
45150 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
45151 urls += "?" + c.urlParams_.Encode()
45152 req, err := http.NewRequest("PATCH", urls, body)
45153 if err != nil {
45154 return nil, err
45155 }
45156 req.Header = reqHeaders
45157 googleapi.Expand(req.URL, map[string]string{
45158 "name": c.nameid,
45159 })
45160 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45161 }
45162
45163
45164
45165
45166
45167
45168
45169 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Participant, error) {
45170 gensupport.SetOptions(c.urlParams_, opts...)
45171 res, err := c.doRequest("json")
45172 if res != nil && res.StatusCode == http.StatusNotModified {
45173 if res.Body != nil {
45174 res.Body.Close()
45175 }
45176 return nil, gensupport.WrapError(&googleapi.Error{
45177 Code: res.StatusCode,
45178 Header: res.Header,
45179 })
45180 }
45181 if err != nil {
45182 return nil, err
45183 }
45184 defer googleapi.CloseBody(res)
45185 if err := googleapi.CheckResponse(res); err != nil {
45186 return nil, gensupport.WrapError(err)
45187 }
45188 ret := &GoogleCloudDialogflowV2Participant{
45189 ServerResponse: googleapi.ServerResponse{
45190 Header: res.Header,
45191 HTTPStatusCode: res.StatusCode,
45192 },
45193 }
45194 target := &ret
45195 if err := gensupport.DecodeResponse(target, res); err != nil {
45196 return nil, err
45197 }
45198 return ret, nil
45199 }
45200
45201 type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
45202 s *Service
45203 parent string
45204 googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest
45205 urlParams_ gensupport.URLParams
45206 ctx_ context.Context
45207 header_ http.Header
45208 }
45209
45210
45211
45212
45213
45214
45215 func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2suggestarticlesrequest *GoogleCloudDialogflowV2SuggestArticlesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
45216 c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45217 c.parent = parent
45218 c.googleclouddialogflowv2suggestarticlesrequest = googleclouddialogflowv2suggestarticlesrequest
45219 return c
45220 }
45221
45222
45223
45224
45225 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
45226 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45227 return c
45228 }
45229
45230
45231 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
45232 c.ctx_ = ctx
45233 return c
45234 }
45235
45236
45237
45238 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
45239 if c.header_ == nil {
45240 c.header_ = make(http.Header)
45241 }
45242 return c.header_
45243 }
45244
45245 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
45246 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45247 var body io.Reader = nil
45248 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestarticlesrequest)
45249 if err != nil {
45250 return nil, err
45251 }
45252 c.urlParams_.Set("alt", alt)
45253 c.urlParams_.Set("prettyPrint", "false")
45254 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestArticles")
45255 urls += "?" + c.urlParams_.Encode()
45256 req, err := http.NewRequest("POST", urls, body)
45257 if err != nil {
45258 return nil, err
45259 }
45260 req.Header = reqHeaders
45261 googleapi.Expand(req.URL, map[string]string{
45262 "parent": c.parent,
45263 })
45264 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45265 }
45266
45267
45268
45269
45270
45271
45272
45273 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestArticlesResponse, error) {
45274 gensupport.SetOptions(c.urlParams_, opts...)
45275 res, err := c.doRequest("json")
45276 if res != nil && res.StatusCode == http.StatusNotModified {
45277 if res.Body != nil {
45278 res.Body.Close()
45279 }
45280 return nil, gensupport.WrapError(&googleapi.Error{
45281 Code: res.StatusCode,
45282 Header: res.Header,
45283 })
45284 }
45285 if err != nil {
45286 return nil, err
45287 }
45288 defer googleapi.CloseBody(res)
45289 if err := googleapi.CheckResponse(res); err != nil {
45290 return nil, gensupport.WrapError(err)
45291 }
45292 ret := &GoogleCloudDialogflowV2SuggestArticlesResponse{
45293 ServerResponse: googleapi.ServerResponse{
45294 Header: res.Header,
45295 HTTPStatusCode: res.StatusCode,
45296 },
45297 }
45298 target := &ret
45299 if err := gensupport.DecodeResponse(target, res); err != nil {
45300 return nil, err
45301 }
45302 return ret, nil
45303 }
45304
45305 type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
45306 s *Service
45307 parent string
45308 googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest
45309 urlParams_ gensupport.URLParams
45310 ctx_ context.Context
45311 header_ http.Header
45312 }
45313
45314
45315
45316
45317
45318
45319 func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2suggestfaqanswersrequest *GoogleCloudDialogflowV2SuggestFaqAnswersRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
45320 c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45321 c.parent = parent
45322 c.googleclouddialogflowv2suggestfaqanswersrequest = googleclouddialogflowv2suggestfaqanswersrequest
45323 return c
45324 }
45325
45326
45327
45328
45329 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
45330 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45331 return c
45332 }
45333
45334
45335 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
45336 c.ctx_ = ctx
45337 return c
45338 }
45339
45340
45341
45342 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
45343 if c.header_ == nil {
45344 c.header_ = make(http.Header)
45345 }
45346 return c.header_
45347 }
45348
45349 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
45350 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45351 var body io.Reader = nil
45352 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestfaqanswersrequest)
45353 if err != nil {
45354 return nil, err
45355 }
45356 c.urlParams_.Set("alt", alt)
45357 c.urlParams_.Set("prettyPrint", "false")
45358 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestFaqAnswers")
45359 urls += "?" + c.urlParams_.Encode()
45360 req, err := http.NewRequest("POST", urls, body)
45361 if err != nil {
45362 return nil, err
45363 }
45364 req.Header = reqHeaders
45365 googleapi.Expand(req.URL, map[string]string{
45366 "parent": c.parent,
45367 })
45368 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45369 }
45370
45371
45372
45373
45374
45375
45376
45377 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestFaqAnswersResponse, error) {
45378 gensupport.SetOptions(c.urlParams_, opts...)
45379 res, err := c.doRequest("json")
45380 if res != nil && res.StatusCode == http.StatusNotModified {
45381 if res.Body != nil {
45382 res.Body.Close()
45383 }
45384 return nil, gensupport.WrapError(&googleapi.Error{
45385 Code: res.StatusCode,
45386 Header: res.Header,
45387 })
45388 }
45389 if err != nil {
45390 return nil, err
45391 }
45392 defer googleapi.CloseBody(res)
45393 if err := googleapi.CheckResponse(res); err != nil {
45394 return nil, gensupport.WrapError(err)
45395 }
45396 ret := &GoogleCloudDialogflowV2SuggestFaqAnswersResponse{
45397 ServerResponse: googleapi.ServerResponse{
45398 Header: res.Header,
45399 HTTPStatusCode: res.StatusCode,
45400 },
45401 }
45402 target := &ret
45403 if err := gensupport.DecodeResponse(target, res); err != nil {
45404 return nil, err
45405 }
45406 return ret, nil
45407 }
45408
45409 type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
45410 s *Service
45411 parent string
45412 googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest
45413 urlParams_ gensupport.URLParams
45414 ctx_ context.Context
45415 header_ http.Header
45416 }
45417
45418
45419
45420
45421
45422
45423 func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2suggestsmartrepliesrequest *GoogleCloudDialogflowV2SuggestSmartRepliesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
45424 c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45425 c.parent = parent
45426 c.googleclouddialogflowv2suggestsmartrepliesrequest = googleclouddialogflowv2suggestsmartrepliesrequest
45427 return c
45428 }
45429
45430
45431
45432
45433 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
45434 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45435 return c
45436 }
45437
45438
45439 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
45440 c.ctx_ = ctx
45441 return c
45442 }
45443
45444
45445
45446 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
45447 if c.header_ == nil {
45448 c.header_ = make(http.Header)
45449 }
45450 return c.header_
45451 }
45452
45453 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
45454 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45455 var body io.Reader = nil
45456 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestsmartrepliesrequest)
45457 if err != nil {
45458 return nil, err
45459 }
45460 c.urlParams_.Set("alt", alt)
45461 c.urlParams_.Set("prettyPrint", "false")
45462 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:suggestSmartReplies")
45463 urls += "?" + c.urlParams_.Encode()
45464 req, err := http.NewRequest("POST", urls, body)
45465 if err != nil {
45466 return nil, err
45467 }
45468 req.Header = reqHeaders
45469 googleapi.Expand(req.URL, map[string]string{
45470 "parent": c.parent,
45471 })
45472 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45473 }
45474
45475
45476
45477
45478
45479
45480
45481 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestSmartRepliesResponse, error) {
45482 gensupport.SetOptions(c.urlParams_, opts...)
45483 res, err := c.doRequest("json")
45484 if res != nil && res.StatusCode == http.StatusNotModified {
45485 if res.Body != nil {
45486 res.Body.Close()
45487 }
45488 return nil, gensupport.WrapError(&googleapi.Error{
45489 Code: res.StatusCode,
45490 Header: res.Header,
45491 })
45492 }
45493 if err != nil {
45494 return nil, err
45495 }
45496 defer googleapi.CloseBody(res)
45497 if err := googleapi.CheckResponse(res); err != nil {
45498 return nil, gensupport.WrapError(err)
45499 }
45500 ret := &GoogleCloudDialogflowV2SuggestSmartRepliesResponse{
45501 ServerResponse: googleapi.ServerResponse{
45502 Header: res.Header,
45503 HTTPStatusCode: res.StatusCode,
45504 },
45505 }
45506 target := &ret
45507 if err := gensupport.DecodeResponse(target, res); err != nil {
45508 return nil, err
45509 }
45510 return ret, nil
45511 }
45512
45513 type ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall struct {
45514 s *Service
45515 conversation string
45516 googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
45517 urlParams_ gensupport.URLParams
45518 ctx_ context.Context
45519 header_ http.Header
45520 }
45521
45522
45523
45524
45525
45526
45527
45528 func (r *ProjectsLocationsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
45529 c := &ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45530 c.conversation = conversation
45531 c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
45532 return c
45533 }
45534
45535
45536
45537
45538 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
45539 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45540 return c
45541 }
45542
45543
45544 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
45545 c.ctx_ = ctx
45546 return c
45547 }
45548
45549
45550
45551 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
45552 if c.header_ == nil {
45553 c.header_ = make(http.Header)
45554 }
45555 return c.header_
45556 }
45557
45558 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
45559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45560 var body io.Reader = nil
45561 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
45562 if err != nil {
45563 return nil, err
45564 }
45565 c.urlParams_.Set("alt", alt)
45566 c.urlParams_.Set("prettyPrint", "false")
45567 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:searchKnowledge")
45568 urls += "?" + c.urlParams_.Encode()
45569 req, err := http.NewRequest("POST", urls, body)
45570 if err != nil {
45571 return nil, err
45572 }
45573 req.Header = reqHeaders
45574 googleapi.Expand(req.URL, map[string]string{
45575 "conversation": c.conversation,
45576 })
45577 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45578 }
45579
45580
45581
45582
45583
45584
45585
45586 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
45587 gensupport.SetOptions(c.urlParams_, opts...)
45588 res, err := c.doRequest("json")
45589 if res != nil && res.StatusCode == http.StatusNotModified {
45590 if res.Body != nil {
45591 res.Body.Close()
45592 }
45593 return nil, gensupport.WrapError(&googleapi.Error{
45594 Code: res.StatusCode,
45595 Header: res.Header,
45596 })
45597 }
45598 if err != nil {
45599 return nil, err
45600 }
45601 defer googleapi.CloseBody(res)
45602 if err := googleapi.CheckResponse(res); err != nil {
45603 return nil, gensupport.WrapError(err)
45604 }
45605 ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
45606 ServerResponse: googleapi.ServerResponse{
45607 Header: res.Header,
45608 HTTPStatusCode: res.StatusCode,
45609 },
45610 }
45611 target := &ret
45612 if err := gensupport.DecodeResponse(target, res); err != nil {
45613 return nil, err
45614 }
45615 return ret, nil
45616 }
45617
45618 type ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall struct {
45619 s *Service
45620 conversation string
45621 googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest
45622 urlParams_ gensupport.URLParams
45623 ctx_ context.Context
45624 header_ http.Header
45625 }
45626
45627
45628
45629
45630
45631
45632
45633 func (r *ProjectsLocationsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2suggestconversationsummaryrequest *GoogleCloudDialogflowV2SuggestConversationSummaryRequest) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
45634 c := &ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45635 c.conversation = conversation
45636 c.googleclouddialogflowv2suggestconversationsummaryrequest = googleclouddialogflowv2suggestconversationsummaryrequest
45637 return c
45638 }
45639
45640
45641
45642
45643 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
45644 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45645 return c
45646 }
45647
45648
45649 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
45650 c.ctx_ = ctx
45651 return c
45652 }
45653
45654
45655
45656 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
45657 if c.header_ == nil {
45658 c.header_ = make(http.Header)
45659 }
45660 return c.header_
45661 }
45662
45663 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
45664 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45665 var body io.Reader = nil
45666 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2suggestconversationsummaryrequest)
45667 if err != nil {
45668 return nil, err
45669 }
45670 c.urlParams_.Set("alt", alt)
45671 c.urlParams_.Set("prettyPrint", "false")
45672 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+conversation}/suggestions:suggestConversationSummary")
45673 urls += "?" + c.urlParams_.Encode()
45674 req, err := http.NewRequest("POST", urls, body)
45675 if err != nil {
45676 return nil, err
45677 }
45678 req.Header = reqHeaders
45679 googleapi.Expand(req.URL, map[string]string{
45680 "conversation": c.conversation,
45681 })
45682 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45683 }
45684
45685
45686
45687
45688
45689
45690
45691 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SuggestConversationSummaryResponse, error) {
45692 gensupport.SetOptions(c.urlParams_, opts...)
45693 res, err := c.doRequest("json")
45694 if res != nil && res.StatusCode == http.StatusNotModified {
45695 if res.Body != nil {
45696 res.Body.Close()
45697 }
45698 return nil, gensupport.WrapError(&googleapi.Error{
45699 Code: res.StatusCode,
45700 Header: res.Header,
45701 })
45702 }
45703 if err != nil {
45704 return nil, err
45705 }
45706 defer googleapi.CloseBody(res)
45707 if err := googleapi.CheckResponse(res); err != nil {
45708 return nil, gensupport.WrapError(err)
45709 }
45710 ret := &GoogleCloudDialogflowV2SuggestConversationSummaryResponse{
45711 ServerResponse: googleapi.ServerResponse{
45712 Header: res.Header,
45713 HTTPStatusCode: res.StatusCode,
45714 },
45715 }
45716 target := &ret
45717 if err := gensupport.DecodeResponse(target, res); err != nil {
45718 return nil, err
45719 }
45720 return ret, nil
45721 }
45722
45723 type ProjectsLocationsKnowledgeBasesCreateCall struct {
45724 s *Service
45725 parent string
45726 googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
45727 urlParams_ gensupport.URLParams
45728 ctx_ context.Context
45729 header_ http.Header
45730 }
45731
45732
45733
45734
45735
45736 func (r *ProjectsLocationsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsLocationsKnowledgeBasesCreateCall {
45737 c := &ProjectsLocationsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45738 c.parent = parent
45739 c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
45740 return c
45741 }
45742
45743
45744
45745
45746 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesCreateCall {
45747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45748 return c
45749 }
45750
45751
45752 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesCreateCall {
45753 c.ctx_ = ctx
45754 return c
45755 }
45756
45757
45758
45759 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Header() http.Header {
45760 if c.header_ == nil {
45761 c.header_ = make(http.Header)
45762 }
45763 return c.header_
45764 }
45765
45766 func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
45767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45768 var body io.Reader = nil
45769 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
45770 if err != nil {
45771 return nil, err
45772 }
45773 c.urlParams_.Set("alt", alt)
45774 c.urlParams_.Set("prettyPrint", "false")
45775 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
45776 urls += "?" + c.urlParams_.Encode()
45777 req, err := http.NewRequest("POST", urls, body)
45778 if err != nil {
45779 return nil, err
45780 }
45781 req.Header = reqHeaders
45782 googleapi.Expand(req.URL, map[string]string{
45783 "parent": c.parent,
45784 })
45785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45786 }
45787
45788
45789
45790
45791
45792
45793
45794 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
45795 gensupport.SetOptions(c.urlParams_, opts...)
45796 res, err := c.doRequest("json")
45797 if res != nil && res.StatusCode == http.StatusNotModified {
45798 if res.Body != nil {
45799 res.Body.Close()
45800 }
45801 return nil, gensupport.WrapError(&googleapi.Error{
45802 Code: res.StatusCode,
45803 Header: res.Header,
45804 })
45805 }
45806 if err != nil {
45807 return nil, err
45808 }
45809 defer googleapi.CloseBody(res)
45810 if err := googleapi.CheckResponse(res); err != nil {
45811 return nil, gensupport.WrapError(err)
45812 }
45813 ret := &GoogleCloudDialogflowV2KnowledgeBase{
45814 ServerResponse: googleapi.ServerResponse{
45815 Header: res.Header,
45816 HTTPStatusCode: res.StatusCode,
45817 },
45818 }
45819 target := &ret
45820 if err := gensupport.DecodeResponse(target, res); err != nil {
45821 return nil, err
45822 }
45823 return ret, nil
45824 }
45825
45826 type ProjectsLocationsKnowledgeBasesDeleteCall struct {
45827 s *Service
45828 name string
45829 urlParams_ gensupport.URLParams
45830 ctx_ context.Context
45831 header_ http.Header
45832 }
45833
45834
45835
45836
45837
45838 func (r *ProjectsLocationsKnowledgeBasesService) Delete(name string) *ProjectsLocationsKnowledgeBasesDeleteCall {
45839 c := &ProjectsLocationsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45840 c.name = name
45841 return c
45842 }
45843
45844
45845
45846 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsLocationsKnowledgeBasesDeleteCall {
45847 c.urlParams_.Set("force", fmt.Sprint(force))
45848 return c
45849 }
45850
45851
45852
45853
45854 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDeleteCall {
45855 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45856 return c
45857 }
45858
45859
45860 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDeleteCall {
45861 c.ctx_ = ctx
45862 return c
45863 }
45864
45865
45866
45867 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Header() http.Header {
45868 if c.header_ == nil {
45869 c.header_ = make(http.Header)
45870 }
45871 return c.header_
45872 }
45873
45874 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
45875 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45876 var body io.Reader = nil
45877 c.urlParams_.Set("alt", alt)
45878 c.urlParams_.Set("prettyPrint", "false")
45879 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
45880 urls += "?" + c.urlParams_.Encode()
45881 req, err := http.NewRequest("DELETE", urls, body)
45882 if err != nil {
45883 return nil, err
45884 }
45885 req.Header = reqHeaders
45886 googleapi.Expand(req.URL, map[string]string{
45887 "name": c.name,
45888 })
45889 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45890 }
45891
45892
45893
45894
45895
45896
45897
45898 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45899 gensupport.SetOptions(c.urlParams_, opts...)
45900 res, err := c.doRequest("json")
45901 if res != nil && res.StatusCode == http.StatusNotModified {
45902 if res.Body != nil {
45903 res.Body.Close()
45904 }
45905 return nil, gensupport.WrapError(&googleapi.Error{
45906 Code: res.StatusCode,
45907 Header: res.Header,
45908 })
45909 }
45910 if err != nil {
45911 return nil, err
45912 }
45913 defer googleapi.CloseBody(res)
45914 if err := googleapi.CheckResponse(res); err != nil {
45915 return nil, gensupport.WrapError(err)
45916 }
45917 ret := &GoogleProtobufEmpty{
45918 ServerResponse: googleapi.ServerResponse{
45919 Header: res.Header,
45920 HTTPStatusCode: res.StatusCode,
45921 },
45922 }
45923 target := &ret
45924 if err := gensupport.DecodeResponse(target, res); err != nil {
45925 return nil, err
45926 }
45927 return ret, nil
45928 }
45929
45930 type ProjectsLocationsKnowledgeBasesGetCall struct {
45931 s *Service
45932 name string
45933 urlParams_ gensupport.URLParams
45934 ifNoneMatch_ string
45935 ctx_ context.Context
45936 header_ http.Header
45937 }
45938
45939
45940
45941
45942
45943 func (r *ProjectsLocationsKnowledgeBasesService) Get(name string) *ProjectsLocationsKnowledgeBasesGetCall {
45944 c := &ProjectsLocationsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45945 c.name = name
45946 return c
45947 }
45948
45949
45950
45951
45952 func (c *ProjectsLocationsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesGetCall {
45953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45954 return c
45955 }
45956
45957
45958
45959
45960 func (c *ProjectsLocationsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesGetCall {
45961 c.ifNoneMatch_ = entityTag
45962 return c
45963 }
45964
45965
45966 func (c *ProjectsLocationsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesGetCall {
45967 c.ctx_ = ctx
45968 return c
45969 }
45970
45971
45972
45973 func (c *ProjectsLocationsKnowledgeBasesGetCall) Header() http.Header {
45974 if c.header_ == nil {
45975 c.header_ = make(http.Header)
45976 }
45977 return c.header_
45978 }
45979
45980 func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
45981 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45982 if c.ifNoneMatch_ != "" {
45983 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45984 }
45985 var body io.Reader = nil
45986 c.urlParams_.Set("alt", alt)
45987 c.urlParams_.Set("prettyPrint", "false")
45988 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
45989 urls += "?" + c.urlParams_.Encode()
45990 req, err := http.NewRequest("GET", urls, body)
45991 if err != nil {
45992 return nil, err
45993 }
45994 req.Header = reqHeaders
45995 googleapi.Expand(req.URL, map[string]string{
45996 "name": c.name,
45997 })
45998 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45999 }
46000
46001
46002
46003
46004
46005
46006
46007 func (c *ProjectsLocationsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
46008 gensupport.SetOptions(c.urlParams_, opts...)
46009 res, err := c.doRequest("json")
46010 if res != nil && res.StatusCode == http.StatusNotModified {
46011 if res.Body != nil {
46012 res.Body.Close()
46013 }
46014 return nil, gensupport.WrapError(&googleapi.Error{
46015 Code: res.StatusCode,
46016 Header: res.Header,
46017 })
46018 }
46019 if err != nil {
46020 return nil, err
46021 }
46022 defer googleapi.CloseBody(res)
46023 if err := googleapi.CheckResponse(res); err != nil {
46024 return nil, gensupport.WrapError(err)
46025 }
46026 ret := &GoogleCloudDialogflowV2KnowledgeBase{
46027 ServerResponse: googleapi.ServerResponse{
46028 Header: res.Header,
46029 HTTPStatusCode: res.StatusCode,
46030 },
46031 }
46032 target := &ret
46033 if err := gensupport.DecodeResponse(target, res); err != nil {
46034 return nil, err
46035 }
46036 return ret, nil
46037 }
46038
46039 type ProjectsLocationsKnowledgeBasesListCall struct {
46040 s *Service
46041 parent string
46042 urlParams_ gensupport.URLParams
46043 ifNoneMatch_ string
46044 ctx_ context.Context
46045 header_ http.Header
46046 }
46047
46048
46049
46050
46051
46052 func (r *ProjectsLocationsKnowledgeBasesService) List(parent string) *ProjectsLocationsKnowledgeBasesListCall {
46053 c := &ProjectsLocationsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46054 c.parent = parent
46055 return c
46056 }
46057
46058
46059
46060
46061
46062
46063
46064
46065
46066
46067
46068
46069
46070
46071 func (c *ProjectsLocationsKnowledgeBasesListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesListCall {
46072 c.urlParams_.Set("filter", filter)
46073 return c
46074 }
46075
46076
46077
46078 func (c *ProjectsLocationsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesListCall {
46079 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46080 return c
46081 }
46082
46083
46084
46085 func (c *ProjectsLocationsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesListCall {
46086 c.urlParams_.Set("pageToken", pageToken)
46087 return c
46088 }
46089
46090
46091
46092
46093 func (c *ProjectsLocationsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesListCall {
46094 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46095 return c
46096 }
46097
46098
46099
46100
46101 func (c *ProjectsLocationsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesListCall {
46102 c.ifNoneMatch_ = entityTag
46103 return c
46104 }
46105
46106
46107 func (c *ProjectsLocationsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesListCall {
46108 c.ctx_ = ctx
46109 return c
46110 }
46111
46112
46113
46114 func (c *ProjectsLocationsKnowledgeBasesListCall) Header() http.Header {
46115 if c.header_ == nil {
46116 c.header_ = make(http.Header)
46117 }
46118 return c.header_
46119 }
46120
46121 func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
46122 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46123 if c.ifNoneMatch_ != "" {
46124 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46125 }
46126 var body io.Reader = nil
46127 c.urlParams_.Set("alt", alt)
46128 c.urlParams_.Set("prettyPrint", "false")
46129 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/knowledgeBases")
46130 urls += "?" + c.urlParams_.Encode()
46131 req, err := http.NewRequest("GET", urls, body)
46132 if err != nil {
46133 return nil, err
46134 }
46135 req.Header = reqHeaders
46136 googleapi.Expand(req.URL, map[string]string{
46137 "parent": c.parent,
46138 })
46139 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46140 }
46141
46142
46143
46144
46145
46146
46147
46148 func (c *ProjectsLocationsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListKnowledgeBasesResponse, error) {
46149 gensupport.SetOptions(c.urlParams_, opts...)
46150 res, err := c.doRequest("json")
46151 if res != nil && res.StatusCode == http.StatusNotModified {
46152 if res.Body != nil {
46153 res.Body.Close()
46154 }
46155 return nil, gensupport.WrapError(&googleapi.Error{
46156 Code: res.StatusCode,
46157 Header: res.Header,
46158 })
46159 }
46160 if err != nil {
46161 return nil, err
46162 }
46163 defer googleapi.CloseBody(res)
46164 if err := googleapi.CheckResponse(res); err != nil {
46165 return nil, gensupport.WrapError(err)
46166 }
46167 ret := &GoogleCloudDialogflowV2ListKnowledgeBasesResponse{
46168 ServerResponse: googleapi.ServerResponse{
46169 Header: res.Header,
46170 HTTPStatusCode: res.StatusCode,
46171 },
46172 }
46173 target := &ret
46174 if err := gensupport.DecodeResponse(target, res); err != nil {
46175 return nil, err
46176 }
46177 return ret, nil
46178 }
46179
46180
46181
46182
46183 func (c *ProjectsLocationsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListKnowledgeBasesResponse) error) error {
46184 c.ctx_ = ctx
46185 defer c.PageToken(c.urlParams_.Get("pageToken"))
46186 for {
46187 x, err := c.Do()
46188 if err != nil {
46189 return err
46190 }
46191 if err := f(x); err != nil {
46192 return err
46193 }
46194 if x.NextPageToken == "" {
46195 return nil
46196 }
46197 c.PageToken(x.NextPageToken)
46198 }
46199 }
46200
46201 type ProjectsLocationsKnowledgeBasesPatchCall struct {
46202 s *Service
46203 name string
46204 googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase
46205 urlParams_ gensupport.URLParams
46206 ctx_ context.Context
46207 header_ http.Header
46208 }
46209
46210
46211
46212
46213
46214 func (r *ProjectsLocationsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2knowledgebase *GoogleCloudDialogflowV2KnowledgeBase) *ProjectsLocationsKnowledgeBasesPatchCall {
46215 c := &ProjectsLocationsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46216 c.name = name
46217 c.googleclouddialogflowv2knowledgebase = googleclouddialogflowv2knowledgebase
46218 return c
46219 }
46220
46221
46222
46223
46224 func (c *ProjectsLocationsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesPatchCall {
46225 c.urlParams_.Set("updateMask", updateMask)
46226 return c
46227 }
46228
46229
46230
46231
46232 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesPatchCall {
46233 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46234 return c
46235 }
46236
46237
46238 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesPatchCall {
46239 c.ctx_ = ctx
46240 return c
46241 }
46242
46243
46244
46245 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Header() http.Header {
46246 if c.header_ == nil {
46247 c.header_ = make(http.Header)
46248 }
46249 return c.header_
46250 }
46251
46252 func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
46253 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46254 var body io.Reader = nil
46255 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2knowledgebase)
46256 if err != nil {
46257 return nil, err
46258 }
46259 c.urlParams_.Set("alt", alt)
46260 c.urlParams_.Set("prettyPrint", "false")
46261 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
46262 urls += "?" + c.urlParams_.Encode()
46263 req, err := http.NewRequest("PATCH", urls, body)
46264 if err != nil {
46265 return nil, err
46266 }
46267 req.Header = reqHeaders
46268 googleapi.Expand(req.URL, map[string]string{
46269 "name": c.name,
46270 })
46271 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46272 }
46273
46274
46275
46276
46277
46278
46279
46280 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2KnowledgeBase, error) {
46281 gensupport.SetOptions(c.urlParams_, opts...)
46282 res, err := c.doRequest("json")
46283 if res != nil && res.StatusCode == http.StatusNotModified {
46284 if res.Body != nil {
46285 res.Body.Close()
46286 }
46287 return nil, gensupport.WrapError(&googleapi.Error{
46288 Code: res.StatusCode,
46289 Header: res.Header,
46290 })
46291 }
46292 if err != nil {
46293 return nil, err
46294 }
46295 defer googleapi.CloseBody(res)
46296 if err := googleapi.CheckResponse(res); err != nil {
46297 return nil, gensupport.WrapError(err)
46298 }
46299 ret := &GoogleCloudDialogflowV2KnowledgeBase{
46300 ServerResponse: googleapi.ServerResponse{
46301 Header: res.Header,
46302 HTTPStatusCode: res.StatusCode,
46303 },
46304 }
46305 target := &ret
46306 if err := gensupport.DecodeResponse(target, res); err != nil {
46307 return nil, err
46308 }
46309 return ret, nil
46310 }
46311
46312 type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {
46313 s *Service
46314 parent string
46315 googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
46316 urlParams_ gensupport.URLParams
46317 ctx_ context.Context
46318 header_ http.Header
46319 }
46320
46321
46322
46323
46324
46325
46326
46327
46328 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
46329 c := &ProjectsLocationsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46330 c.parent = parent
46331 c.googleclouddialogflowv2document = googleclouddialogflowv2document
46332 return c
46333 }
46334
46335
46336
46337
46338 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
46339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46340 return c
46341 }
46342
46343
46344 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
46345 c.ctx_ = ctx
46346 return c
46347 }
46348
46349
46350
46351 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
46352 if c.header_ == nil {
46353 c.header_ = make(http.Header)
46354 }
46355 return c.header_
46356 }
46357
46358 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
46359 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46360 var body io.Reader = nil
46361 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
46362 if err != nil {
46363 return nil, err
46364 }
46365 c.urlParams_.Set("alt", alt)
46366 c.urlParams_.Set("prettyPrint", "false")
46367 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
46368 urls += "?" + c.urlParams_.Encode()
46369 req, err := http.NewRequest("POST", urls, body)
46370 if err != nil {
46371 return nil, err
46372 }
46373 req.Header = reqHeaders
46374 googleapi.Expand(req.URL, map[string]string{
46375 "parent": c.parent,
46376 })
46377 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46378 }
46379
46380
46381
46382
46383
46384
46385
46386 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
46387 gensupport.SetOptions(c.urlParams_, opts...)
46388 res, err := c.doRequest("json")
46389 if res != nil && res.StatusCode == http.StatusNotModified {
46390 if res.Body != nil {
46391 res.Body.Close()
46392 }
46393 return nil, gensupport.WrapError(&googleapi.Error{
46394 Code: res.StatusCode,
46395 Header: res.Header,
46396 })
46397 }
46398 if err != nil {
46399 return nil, err
46400 }
46401 defer googleapi.CloseBody(res)
46402 if err := googleapi.CheckResponse(res); err != nil {
46403 return nil, gensupport.WrapError(err)
46404 }
46405 ret := &GoogleLongrunningOperation{
46406 ServerResponse: googleapi.ServerResponse{
46407 Header: res.Header,
46408 HTTPStatusCode: res.StatusCode,
46409 },
46410 }
46411 target := &ret
46412 if err := gensupport.DecodeResponse(target, res); err != nil {
46413 return nil, err
46414 }
46415 return ret, nil
46416 }
46417
46418 type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {
46419 s *Service
46420 name string
46421 urlParams_ gensupport.URLParams
46422 ctx_ context.Context
46423 header_ http.Header
46424 }
46425
46426
46427
46428
46429
46430
46431
46432
46433
46434
46435 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
46436 c := &ProjectsLocationsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46437 c.name = name
46438 return c
46439 }
46440
46441
46442
46443
46444 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
46445 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46446 return c
46447 }
46448
46449
46450 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
46451 c.ctx_ = ctx
46452 return c
46453 }
46454
46455
46456
46457 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
46458 if c.header_ == nil {
46459 c.header_ = make(http.Header)
46460 }
46461 return c.header_
46462 }
46463
46464 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
46465 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46466 var body io.Reader = nil
46467 c.urlParams_.Set("alt", alt)
46468 c.urlParams_.Set("prettyPrint", "false")
46469 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
46470 urls += "?" + c.urlParams_.Encode()
46471 req, err := http.NewRequest("DELETE", urls, body)
46472 if err != nil {
46473 return nil, err
46474 }
46475 req.Header = reqHeaders
46476 googleapi.Expand(req.URL, map[string]string{
46477 "name": c.name,
46478 })
46479 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46480 }
46481
46482
46483
46484
46485
46486
46487
46488 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
46489 gensupport.SetOptions(c.urlParams_, opts...)
46490 res, err := c.doRequest("json")
46491 if res != nil && res.StatusCode == http.StatusNotModified {
46492 if res.Body != nil {
46493 res.Body.Close()
46494 }
46495 return nil, gensupport.WrapError(&googleapi.Error{
46496 Code: res.StatusCode,
46497 Header: res.Header,
46498 })
46499 }
46500 if err != nil {
46501 return nil, err
46502 }
46503 defer googleapi.CloseBody(res)
46504 if err := googleapi.CheckResponse(res); err != nil {
46505 return nil, gensupport.WrapError(err)
46506 }
46507 ret := &GoogleLongrunningOperation{
46508 ServerResponse: googleapi.ServerResponse{
46509 Header: res.Header,
46510 HTTPStatusCode: res.StatusCode,
46511 },
46512 }
46513 target := &ret
46514 if err := gensupport.DecodeResponse(target, res); err != nil {
46515 return nil, err
46516 }
46517 return ret, nil
46518 }
46519
46520 type ProjectsLocationsKnowledgeBasesDocumentsExportCall struct {
46521 s *Service
46522 name string
46523 googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest
46524 urlParams_ gensupport.URLParams
46525 ctx_ context.Context
46526 header_ http.Header
46527 }
46528
46529
46530
46531
46532
46533
46534
46535
46536
46537 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Export(name string, googleclouddialogflowv2exportdocumentrequest *GoogleCloudDialogflowV2ExportDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsExportCall {
46538 c := &ProjectsLocationsKnowledgeBasesDocumentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46539 c.name = name
46540 c.googleclouddialogflowv2exportdocumentrequest = googleclouddialogflowv2exportdocumentrequest
46541 return c
46542 }
46543
46544
46545
46546
46547 func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsExportCall {
46548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46549 return c
46550 }
46551
46552
46553 func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsExportCall {
46554 c.ctx_ = ctx
46555 return c
46556 }
46557
46558
46559
46560 func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Header() http.Header {
46561 if c.header_ == nil {
46562 c.header_ = make(http.Header)
46563 }
46564 return c.header_
46565 }
46566
46567 func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) doRequest(alt string) (*http.Response, error) {
46568 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46569 var body io.Reader = nil
46570 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2exportdocumentrequest)
46571 if err != nil {
46572 return nil, err
46573 }
46574 c.urlParams_.Set("alt", alt)
46575 c.urlParams_.Set("prettyPrint", "false")
46576 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:export")
46577 urls += "?" + c.urlParams_.Encode()
46578 req, err := http.NewRequest("POST", urls, body)
46579 if err != nil {
46580 return nil, err
46581 }
46582 req.Header = reqHeaders
46583 googleapi.Expand(req.URL, map[string]string{
46584 "name": c.name,
46585 })
46586 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46587 }
46588
46589
46590
46591
46592
46593
46594
46595 func (c *ProjectsLocationsKnowledgeBasesDocumentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
46596 gensupport.SetOptions(c.urlParams_, opts...)
46597 res, err := c.doRequest("json")
46598 if res != nil && res.StatusCode == http.StatusNotModified {
46599 if res.Body != nil {
46600 res.Body.Close()
46601 }
46602 return nil, gensupport.WrapError(&googleapi.Error{
46603 Code: res.StatusCode,
46604 Header: res.Header,
46605 })
46606 }
46607 if err != nil {
46608 return nil, err
46609 }
46610 defer googleapi.CloseBody(res)
46611 if err := googleapi.CheckResponse(res); err != nil {
46612 return nil, gensupport.WrapError(err)
46613 }
46614 ret := &GoogleLongrunningOperation{
46615 ServerResponse: googleapi.ServerResponse{
46616 Header: res.Header,
46617 HTTPStatusCode: res.StatusCode,
46618 },
46619 }
46620 target := &ret
46621 if err := gensupport.DecodeResponse(target, res); err != nil {
46622 return nil, err
46623 }
46624 return ret, nil
46625 }
46626
46627 type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {
46628 s *Service
46629 name string
46630 urlParams_ gensupport.URLParams
46631 ifNoneMatch_ string
46632 ctx_ context.Context
46633 header_ http.Header
46634 }
46635
46636
46637
46638
46639
46640 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Get(name string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
46641 c := &ProjectsLocationsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46642 c.name = name
46643 return c
46644 }
46645
46646
46647
46648
46649 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
46650 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46651 return c
46652 }
46653
46654
46655
46656
46657 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
46658 c.ifNoneMatch_ = entityTag
46659 return c
46660 }
46661
46662
46663 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
46664 c.ctx_ = ctx
46665 return c
46666 }
46667
46668
46669
46670 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Header() http.Header {
46671 if c.header_ == nil {
46672 c.header_ = make(http.Header)
46673 }
46674 return c.header_
46675 }
46676
46677 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
46678 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46679 if c.ifNoneMatch_ != "" {
46680 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46681 }
46682 var body io.Reader = nil
46683 c.urlParams_.Set("alt", alt)
46684 c.urlParams_.Set("prettyPrint", "false")
46685 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
46686 urls += "?" + c.urlParams_.Encode()
46687 req, err := http.NewRequest("GET", urls, body)
46688 if err != nil {
46689 return nil, err
46690 }
46691 req.Header = reqHeaders
46692 googleapi.Expand(req.URL, map[string]string{
46693 "name": c.name,
46694 })
46695 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46696 }
46697
46698
46699
46700
46701
46702
46703
46704 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2Document, error) {
46705 gensupport.SetOptions(c.urlParams_, opts...)
46706 res, err := c.doRequest("json")
46707 if res != nil && res.StatusCode == http.StatusNotModified {
46708 if res.Body != nil {
46709 res.Body.Close()
46710 }
46711 return nil, gensupport.WrapError(&googleapi.Error{
46712 Code: res.StatusCode,
46713 Header: res.Header,
46714 })
46715 }
46716 if err != nil {
46717 return nil, err
46718 }
46719 defer googleapi.CloseBody(res)
46720 if err := googleapi.CheckResponse(res); err != nil {
46721 return nil, gensupport.WrapError(err)
46722 }
46723 ret := &GoogleCloudDialogflowV2Document{
46724 ServerResponse: googleapi.ServerResponse{
46725 Header: res.Header,
46726 HTTPStatusCode: res.StatusCode,
46727 },
46728 }
46729 target := &ret
46730 if err := gensupport.DecodeResponse(target, res); err != nil {
46731 return nil, err
46732 }
46733 return ret, nil
46734 }
46735
46736 type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {
46737 s *Service
46738 parent string
46739 googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest
46740 urlParams_ gensupport.URLParams
46741 ctx_ context.Context
46742 header_ http.Header
46743 }
46744
46745
46746
46747
46748
46749
46750
46751
46752
46753
46754
46755 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2importdocumentsrequest *GoogleCloudDialogflowV2ImportDocumentsRequest) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
46756 c := &ProjectsLocationsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46757 c.parent = parent
46758 c.googleclouddialogflowv2importdocumentsrequest = googleclouddialogflowv2importdocumentsrequest
46759 return c
46760 }
46761
46762
46763
46764
46765 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
46766 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46767 return c
46768 }
46769
46770
46771 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
46772 c.ctx_ = ctx
46773 return c
46774 }
46775
46776
46777
46778 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Header() http.Header {
46779 if c.header_ == nil {
46780 c.header_ = make(http.Header)
46781 }
46782 return c.header_
46783 }
46784
46785 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
46786 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46787 var body io.Reader = nil
46788 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2importdocumentsrequest)
46789 if err != nil {
46790 return nil, err
46791 }
46792 c.urlParams_.Set("alt", alt)
46793 c.urlParams_.Set("prettyPrint", "false")
46794 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents:import")
46795 urls += "?" + c.urlParams_.Encode()
46796 req, err := http.NewRequest("POST", urls, body)
46797 if err != nil {
46798 return nil, err
46799 }
46800 req.Header = reqHeaders
46801 googleapi.Expand(req.URL, map[string]string{
46802 "parent": c.parent,
46803 })
46804 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46805 }
46806
46807
46808
46809
46810
46811
46812
46813 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
46814 gensupport.SetOptions(c.urlParams_, opts...)
46815 res, err := c.doRequest("json")
46816 if res != nil && res.StatusCode == http.StatusNotModified {
46817 if res.Body != nil {
46818 res.Body.Close()
46819 }
46820 return nil, gensupport.WrapError(&googleapi.Error{
46821 Code: res.StatusCode,
46822 Header: res.Header,
46823 })
46824 }
46825 if err != nil {
46826 return nil, err
46827 }
46828 defer googleapi.CloseBody(res)
46829 if err := googleapi.CheckResponse(res); err != nil {
46830 return nil, gensupport.WrapError(err)
46831 }
46832 ret := &GoogleLongrunningOperation{
46833 ServerResponse: googleapi.ServerResponse{
46834 Header: res.Header,
46835 HTTPStatusCode: res.StatusCode,
46836 },
46837 }
46838 target := &ret
46839 if err := gensupport.DecodeResponse(target, res); err != nil {
46840 return nil, err
46841 }
46842 return ret, nil
46843 }
46844
46845 type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {
46846 s *Service
46847 parent string
46848 urlParams_ gensupport.URLParams
46849 ifNoneMatch_ string
46850 ctx_ context.Context
46851 header_ http.Header
46852 }
46853
46854
46855
46856
46857
46858 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) List(parent string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46859 c := &ProjectsLocationsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46860 c.parent = parent
46861 return c
46862 }
46863
46864
46865
46866
46867
46868
46869
46870
46871
46872
46873
46874 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46875 c.urlParams_.Set("filter", filter)
46876 return c
46877 }
46878
46879
46880
46881 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46882 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46883 return c
46884 }
46885
46886
46887
46888 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46889 c.urlParams_.Set("pageToken", pageToken)
46890 return c
46891 }
46892
46893
46894
46895
46896 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46897 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46898 return c
46899 }
46900
46901
46902
46903
46904 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46905 c.ifNoneMatch_ = entityTag
46906 return c
46907 }
46908
46909
46910 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
46911 c.ctx_ = ctx
46912 return c
46913 }
46914
46915
46916
46917 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Header() http.Header {
46918 if c.header_ == nil {
46919 c.header_ = make(http.Header)
46920 }
46921 return c.header_
46922 }
46923
46924 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
46925 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46926 if c.ifNoneMatch_ != "" {
46927 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46928 }
46929 var body io.Reader = nil
46930 c.urlParams_.Set("alt", alt)
46931 c.urlParams_.Set("prettyPrint", "false")
46932 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/documents")
46933 urls += "?" + c.urlParams_.Encode()
46934 req, err := http.NewRequest("GET", urls, body)
46935 if err != nil {
46936 return nil, err
46937 }
46938 req.Header = reqHeaders
46939 googleapi.Expand(req.URL, map[string]string{
46940 "parent": c.parent,
46941 })
46942 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46943 }
46944
46945
46946
46947
46948
46949
46950
46951 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2ListDocumentsResponse, error) {
46952 gensupport.SetOptions(c.urlParams_, opts...)
46953 res, err := c.doRequest("json")
46954 if res != nil && res.StatusCode == http.StatusNotModified {
46955 if res.Body != nil {
46956 res.Body.Close()
46957 }
46958 return nil, gensupport.WrapError(&googleapi.Error{
46959 Code: res.StatusCode,
46960 Header: res.Header,
46961 })
46962 }
46963 if err != nil {
46964 return nil, err
46965 }
46966 defer googleapi.CloseBody(res)
46967 if err := googleapi.CheckResponse(res); err != nil {
46968 return nil, gensupport.WrapError(err)
46969 }
46970 ret := &GoogleCloudDialogflowV2ListDocumentsResponse{
46971 ServerResponse: googleapi.ServerResponse{
46972 Header: res.Header,
46973 HTTPStatusCode: res.StatusCode,
46974 },
46975 }
46976 target := &ret
46977 if err := gensupport.DecodeResponse(target, res); err != nil {
46978 return nil, err
46979 }
46980 return ret, nil
46981 }
46982
46983
46984
46985
46986 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2ListDocumentsResponse) error) error {
46987 c.ctx_ = ctx
46988 defer c.PageToken(c.urlParams_.Get("pageToken"))
46989 for {
46990 x, err := c.Do()
46991 if err != nil {
46992 return err
46993 }
46994 if err := f(x); err != nil {
46995 return err
46996 }
46997 if x.NextPageToken == "" {
46998 return nil
46999 }
47000 c.PageToken(x.NextPageToken)
47001 }
47002 }
47003
47004 type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {
47005 s *Service
47006 name string
47007 googleclouddialogflowv2document *GoogleCloudDialogflowV2Document
47008 urlParams_ gensupport.URLParams
47009 ctx_ context.Context
47010 header_ http.Header
47011 }
47012
47013
47014
47015
47016
47017
47018
47019
47020
47021
47022 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2document *GoogleCloudDialogflowV2Document) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
47023 c := &ProjectsLocationsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47024 c.name = name
47025 c.googleclouddialogflowv2document = googleclouddialogflowv2document
47026 return c
47027 }
47028
47029
47030
47031
47032 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
47033 c.urlParams_.Set("updateMask", updateMask)
47034 return c
47035 }
47036
47037
47038
47039
47040 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
47041 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47042 return c
47043 }
47044
47045
47046 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
47047 c.ctx_ = ctx
47048 return c
47049 }
47050
47051
47052
47053 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
47054 if c.header_ == nil {
47055 c.header_ = make(http.Header)
47056 }
47057 return c.header_
47058 }
47059
47060 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
47061 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47062 var body io.Reader = nil
47063 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2document)
47064 if err != nil {
47065 return nil, err
47066 }
47067 c.urlParams_.Set("alt", alt)
47068 c.urlParams_.Set("prettyPrint", "false")
47069 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
47070 urls += "?" + c.urlParams_.Encode()
47071 req, err := http.NewRequest("PATCH", urls, body)
47072 if err != nil {
47073 return nil, err
47074 }
47075 req.Header = reqHeaders
47076 googleapi.Expand(req.URL, map[string]string{
47077 "name": c.name,
47078 })
47079 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47080 }
47081
47082
47083
47084
47085
47086
47087
47088 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
47089 gensupport.SetOptions(c.urlParams_, opts...)
47090 res, err := c.doRequest("json")
47091 if res != nil && res.StatusCode == http.StatusNotModified {
47092 if res.Body != nil {
47093 res.Body.Close()
47094 }
47095 return nil, gensupport.WrapError(&googleapi.Error{
47096 Code: res.StatusCode,
47097 Header: res.Header,
47098 })
47099 }
47100 if err != nil {
47101 return nil, err
47102 }
47103 defer googleapi.CloseBody(res)
47104 if err := googleapi.CheckResponse(res); err != nil {
47105 return nil, gensupport.WrapError(err)
47106 }
47107 ret := &GoogleLongrunningOperation{
47108 ServerResponse: googleapi.ServerResponse{
47109 Header: res.Header,
47110 HTTPStatusCode: res.StatusCode,
47111 },
47112 }
47113 target := &ret
47114 if err := gensupport.DecodeResponse(target, res); err != nil {
47115 return nil, err
47116 }
47117 return ret, nil
47118 }
47119
47120 type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {
47121 s *Service
47122 name string
47123 googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest
47124 urlParams_ gensupport.URLParams
47125 ctx_ context.Context
47126 header_ http.Header
47127 }
47128
47129
47130
47131
47132
47133
47134
47135
47136
47137
47138
47139
47140
47141
47142 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2reloaddocumentrequest *GoogleCloudDialogflowV2ReloadDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
47143 c := &ProjectsLocationsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47144 c.name = name
47145 c.googleclouddialogflowv2reloaddocumentrequest = googleclouddialogflowv2reloaddocumentrequest
47146 return c
47147 }
47148
47149
47150
47151
47152 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
47153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47154 return c
47155 }
47156
47157
47158 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
47159 c.ctx_ = ctx
47160 return c
47161 }
47162
47163
47164
47165 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
47166 if c.header_ == nil {
47167 c.header_ = make(http.Header)
47168 }
47169 return c.header_
47170 }
47171
47172 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
47173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47174 var body io.Reader = nil
47175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2reloaddocumentrequest)
47176 if err != nil {
47177 return nil, err
47178 }
47179 c.urlParams_.Set("alt", alt)
47180 c.urlParams_.Set("prettyPrint", "false")
47181 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:reload")
47182 urls += "?" + c.urlParams_.Encode()
47183 req, err := http.NewRequest("POST", urls, body)
47184 if err != nil {
47185 return nil, err
47186 }
47187 req.Header = reqHeaders
47188 googleapi.Expand(req.URL, map[string]string{
47189 "name": c.name,
47190 })
47191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47192 }
47193
47194
47195
47196
47197
47198
47199
47200 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
47201 gensupport.SetOptions(c.urlParams_, opts...)
47202 res, err := c.doRequest("json")
47203 if res != nil && res.StatusCode == http.StatusNotModified {
47204 if res.Body != nil {
47205 res.Body.Close()
47206 }
47207 return nil, gensupport.WrapError(&googleapi.Error{
47208 Code: res.StatusCode,
47209 Header: res.Header,
47210 })
47211 }
47212 if err != nil {
47213 return nil, err
47214 }
47215 defer googleapi.CloseBody(res)
47216 if err := googleapi.CheckResponse(res); err != nil {
47217 return nil, gensupport.WrapError(err)
47218 }
47219 ret := &GoogleLongrunningOperation{
47220 ServerResponse: googleapi.ServerResponse{
47221 Header: res.Header,
47222 HTTPStatusCode: res.StatusCode,
47223 },
47224 }
47225 target := &ret
47226 if err := gensupport.DecodeResponse(target, res); err != nil {
47227 return nil, err
47228 }
47229 return ret, nil
47230 }
47231
47232 type ProjectsLocationsOperationsCancelCall struct {
47233 s *Service
47234 name string
47235 urlParams_ gensupport.URLParams
47236 ctx_ context.Context
47237 header_ http.Header
47238 }
47239
47240
47241
47242
47243
47244
47245
47246
47247
47248
47249
47250
47251 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
47252 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47253 c.name = name
47254 return c
47255 }
47256
47257
47258
47259
47260 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
47261 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47262 return c
47263 }
47264
47265
47266 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
47267 c.ctx_ = ctx
47268 return c
47269 }
47270
47271
47272
47273 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
47274 if c.header_ == nil {
47275 c.header_ = make(http.Header)
47276 }
47277 return c.header_
47278 }
47279
47280 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
47281 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47282 var body io.Reader = nil
47283 c.urlParams_.Set("alt", alt)
47284 c.urlParams_.Set("prettyPrint", "false")
47285 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
47286 urls += "?" + c.urlParams_.Encode()
47287 req, err := http.NewRequest("POST", urls, body)
47288 if err != nil {
47289 return nil, err
47290 }
47291 req.Header = reqHeaders
47292 googleapi.Expand(req.URL, map[string]string{
47293 "name": c.name,
47294 })
47295 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47296 }
47297
47298
47299
47300
47301
47302
47303
47304 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
47305 gensupport.SetOptions(c.urlParams_, opts...)
47306 res, err := c.doRequest("json")
47307 if res != nil && res.StatusCode == http.StatusNotModified {
47308 if res.Body != nil {
47309 res.Body.Close()
47310 }
47311 return nil, gensupport.WrapError(&googleapi.Error{
47312 Code: res.StatusCode,
47313 Header: res.Header,
47314 })
47315 }
47316 if err != nil {
47317 return nil, err
47318 }
47319 defer googleapi.CloseBody(res)
47320 if err := googleapi.CheckResponse(res); err != nil {
47321 return nil, gensupport.WrapError(err)
47322 }
47323 ret := &GoogleProtobufEmpty{
47324 ServerResponse: googleapi.ServerResponse{
47325 Header: res.Header,
47326 HTTPStatusCode: res.StatusCode,
47327 },
47328 }
47329 target := &ret
47330 if err := gensupport.DecodeResponse(target, res); err != nil {
47331 return nil, err
47332 }
47333 return ret, nil
47334 }
47335
47336 type ProjectsLocationsOperationsGetCall struct {
47337 s *Service
47338 name string
47339 urlParams_ gensupport.URLParams
47340 ifNoneMatch_ string
47341 ctx_ context.Context
47342 header_ http.Header
47343 }
47344
47345
47346
47347
47348
47349
47350 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
47351 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47352 c.name = name
47353 return c
47354 }
47355
47356
47357
47358
47359 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
47360 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47361 return c
47362 }
47363
47364
47365
47366
47367 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
47368 c.ifNoneMatch_ = entityTag
47369 return c
47370 }
47371
47372
47373 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
47374 c.ctx_ = ctx
47375 return c
47376 }
47377
47378
47379
47380 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
47381 if c.header_ == nil {
47382 c.header_ = make(http.Header)
47383 }
47384 return c.header_
47385 }
47386
47387 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
47388 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47389 if c.ifNoneMatch_ != "" {
47390 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47391 }
47392 var body io.Reader = nil
47393 c.urlParams_.Set("alt", alt)
47394 c.urlParams_.Set("prettyPrint", "false")
47395 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
47396 urls += "?" + c.urlParams_.Encode()
47397 req, err := http.NewRequest("GET", urls, body)
47398 if err != nil {
47399 return nil, err
47400 }
47401 req.Header = reqHeaders
47402 googleapi.Expand(req.URL, map[string]string{
47403 "name": c.name,
47404 })
47405 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47406 }
47407
47408
47409
47410
47411
47412
47413
47414 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
47415 gensupport.SetOptions(c.urlParams_, opts...)
47416 res, err := c.doRequest("json")
47417 if res != nil && res.StatusCode == http.StatusNotModified {
47418 if res.Body != nil {
47419 res.Body.Close()
47420 }
47421 return nil, gensupport.WrapError(&googleapi.Error{
47422 Code: res.StatusCode,
47423 Header: res.Header,
47424 })
47425 }
47426 if err != nil {
47427 return nil, err
47428 }
47429 defer googleapi.CloseBody(res)
47430 if err := googleapi.CheckResponse(res); err != nil {
47431 return nil, gensupport.WrapError(err)
47432 }
47433 ret := &GoogleLongrunningOperation{
47434 ServerResponse: googleapi.ServerResponse{
47435 Header: res.Header,
47436 HTTPStatusCode: res.StatusCode,
47437 },
47438 }
47439 target := &ret
47440 if err := gensupport.DecodeResponse(target, res); err != nil {
47441 return nil, err
47442 }
47443 return ret, nil
47444 }
47445
47446 type ProjectsLocationsOperationsListCall struct {
47447 s *Service
47448 name string
47449 urlParams_ gensupport.URLParams
47450 ifNoneMatch_ string
47451 ctx_ context.Context
47452 header_ http.Header
47453 }
47454
47455
47456
47457
47458
47459 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
47460 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47461 c.name = name
47462 return c
47463 }
47464
47465
47466 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
47467 c.urlParams_.Set("filter", filter)
47468 return c
47469 }
47470
47471
47472
47473 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
47474 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
47475 return c
47476 }
47477
47478
47479
47480 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
47481 c.urlParams_.Set("pageToken", pageToken)
47482 return c
47483 }
47484
47485
47486
47487
47488 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
47489 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47490 return c
47491 }
47492
47493
47494
47495
47496 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
47497 c.ifNoneMatch_ = entityTag
47498 return c
47499 }
47500
47501
47502 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
47503 c.ctx_ = ctx
47504 return c
47505 }
47506
47507
47508
47509 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
47510 if c.header_ == nil {
47511 c.header_ = make(http.Header)
47512 }
47513 return c.header_
47514 }
47515
47516 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
47517 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47518 if c.ifNoneMatch_ != "" {
47519 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47520 }
47521 var body io.Reader = nil
47522 c.urlParams_.Set("alt", alt)
47523 c.urlParams_.Set("prettyPrint", "false")
47524 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/operations")
47525 urls += "?" + c.urlParams_.Encode()
47526 req, err := http.NewRequest("GET", urls, body)
47527 if err != nil {
47528 return nil, err
47529 }
47530 req.Header = reqHeaders
47531 googleapi.Expand(req.URL, map[string]string{
47532 "name": c.name,
47533 })
47534 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47535 }
47536
47537
47538
47539
47540
47541
47542
47543 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
47544 gensupport.SetOptions(c.urlParams_, opts...)
47545 res, err := c.doRequest("json")
47546 if res != nil && res.StatusCode == http.StatusNotModified {
47547 if res.Body != nil {
47548 res.Body.Close()
47549 }
47550 return nil, gensupport.WrapError(&googleapi.Error{
47551 Code: res.StatusCode,
47552 Header: res.Header,
47553 })
47554 }
47555 if err != nil {
47556 return nil, err
47557 }
47558 defer googleapi.CloseBody(res)
47559 if err := googleapi.CheckResponse(res); err != nil {
47560 return nil, gensupport.WrapError(err)
47561 }
47562 ret := &GoogleLongrunningListOperationsResponse{
47563 ServerResponse: googleapi.ServerResponse{
47564 Header: res.Header,
47565 HTTPStatusCode: res.StatusCode,
47566 },
47567 }
47568 target := &ret
47569 if err := gensupport.DecodeResponse(target, res); err != nil {
47570 return nil, err
47571 }
47572 return ret, nil
47573 }
47574
47575
47576
47577
47578 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
47579 c.ctx_ = ctx
47580 defer c.PageToken(c.urlParams_.Get("pageToken"))
47581 for {
47582 x, err := c.Do()
47583 if err != nil {
47584 return err
47585 }
47586 if err := f(x); err != nil {
47587 return err
47588 }
47589 if x.NextPageToken == "" {
47590 return nil
47591 }
47592 c.PageToken(x.NextPageToken)
47593 }
47594 }
47595
47596 type ProjectsLocationsSuggestionsGenerateStatelessSummaryCall struct {
47597 s *Service
47598 parent string
47599 googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
47600 urlParams_ gensupport.URLParams
47601 ctx_ context.Context
47602 header_ http.Header
47603 }
47604
47605
47606
47607
47608
47609
47610 func (r *ProjectsLocationsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
47611 c := &ProjectsLocationsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47612 c.parent = parent
47613 c.googleclouddialogflowv2generatestatelesssummaryrequest = googleclouddialogflowv2generatestatelesssummaryrequest
47614 return c
47615 }
47616
47617
47618
47619
47620 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
47621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47622 return c
47623 }
47624
47625
47626 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
47627 c.ctx_ = ctx
47628 return c
47629 }
47630
47631
47632
47633 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
47634 if c.header_ == nil {
47635 c.header_ = make(http.Header)
47636 }
47637 return c.header_
47638 }
47639
47640 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
47641 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47642 var body io.Reader = nil
47643 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2generatestatelesssummaryrequest)
47644 if err != nil {
47645 return nil, err
47646 }
47647 c.urlParams_.Set("alt", alt)
47648 c.urlParams_.Set("prettyPrint", "false")
47649 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:generateStatelessSummary")
47650 urls += "?" + c.urlParams_.Encode()
47651 req, err := http.NewRequest("POST", urls, body)
47652 if err != nil {
47653 return nil, err
47654 }
47655 req.Header = reqHeaders
47656 googleapi.Expand(req.URL, map[string]string{
47657 "parent": c.parent,
47658 })
47659 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47660 }
47661
47662
47663
47664
47665
47666
47667
47668 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2GenerateStatelessSummaryResponse, error) {
47669 gensupport.SetOptions(c.urlParams_, opts...)
47670 res, err := c.doRequest("json")
47671 if res != nil && res.StatusCode == http.StatusNotModified {
47672 if res.Body != nil {
47673 res.Body.Close()
47674 }
47675 return nil, gensupport.WrapError(&googleapi.Error{
47676 Code: res.StatusCode,
47677 Header: res.Header,
47678 })
47679 }
47680 if err != nil {
47681 return nil, err
47682 }
47683 defer googleapi.CloseBody(res)
47684 if err := googleapi.CheckResponse(res); err != nil {
47685 return nil, gensupport.WrapError(err)
47686 }
47687 ret := &GoogleCloudDialogflowV2GenerateStatelessSummaryResponse{
47688 ServerResponse: googleapi.ServerResponse{
47689 Header: res.Header,
47690 HTTPStatusCode: res.StatusCode,
47691 },
47692 }
47693 target := &ret
47694 if err := gensupport.DecodeResponse(target, res); err != nil {
47695 return nil, err
47696 }
47697 return ret, nil
47698 }
47699
47700 type ProjectsLocationsSuggestionsSearchKnowledgeCall struct {
47701 s *Service
47702 parent string
47703 googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
47704 urlParams_ gensupport.URLParams
47705 ctx_ context.Context
47706 header_ http.Header
47707 }
47708
47709
47710
47711
47712
47713
47714 func (r *ProjectsLocationsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
47715 c := &ProjectsLocationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47716 c.parent = parent
47717 c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
47718 return c
47719 }
47720
47721
47722
47723
47724 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
47725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47726 return c
47727 }
47728
47729
47730 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
47731 c.ctx_ = ctx
47732 return c
47733 }
47734
47735
47736
47737 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Header() http.Header {
47738 if c.header_ == nil {
47739 c.header_ = make(http.Header)
47740 }
47741 return c.header_
47742 }
47743
47744 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
47745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
47746 var body io.Reader = nil
47747 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
47748 if err != nil {
47749 return nil, err
47750 }
47751 c.urlParams_.Set("alt", alt)
47752 c.urlParams_.Set("prettyPrint", "false")
47753 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:searchKnowledge")
47754 urls += "?" + c.urlParams_.Encode()
47755 req, err := http.NewRequest("POST", urls, body)
47756 if err != nil {
47757 return nil, err
47758 }
47759 req.Header = reqHeaders
47760 googleapi.Expand(req.URL, map[string]string{
47761 "parent": c.parent,
47762 })
47763 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47764 }
47765
47766
47767
47768
47769
47770
47771
47772 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
47773 gensupport.SetOptions(c.urlParams_, opts...)
47774 res, err := c.doRequest("json")
47775 if res != nil && res.StatusCode == http.StatusNotModified {
47776 if res.Body != nil {
47777 res.Body.Close()
47778 }
47779 return nil, gensupport.WrapError(&googleapi.Error{
47780 Code: res.StatusCode,
47781 Header: res.Header,
47782 })
47783 }
47784 if err != nil {
47785 return nil, err
47786 }
47787 defer googleapi.CloseBody(res)
47788 if err := googleapi.CheckResponse(res); err != nil {
47789 return nil, gensupport.WrapError(err)
47790 }
47791 ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
47792 ServerResponse: googleapi.ServerResponse{
47793 Header: res.Header,
47794 HTTPStatusCode: res.StatusCode,
47795 },
47796 }
47797 target := &ret
47798 if err := gensupport.DecodeResponse(target, res); err != nil {
47799 return nil, err
47800 }
47801 return ret, nil
47802 }
47803
47804 type ProjectsOperationsCancelCall struct {
47805 s *Service
47806 name string
47807 urlParams_ gensupport.URLParams
47808 ctx_ context.Context
47809 header_ http.Header
47810 }
47811
47812
47813
47814
47815
47816
47817
47818
47819
47820
47821
47822
47823 func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
47824 c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47825 c.name = name
47826 return c
47827 }
47828
47829
47830
47831
47832 func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
47833 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47834 return c
47835 }
47836
47837
47838 func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
47839 c.ctx_ = ctx
47840 return c
47841 }
47842
47843
47844
47845 func (c *ProjectsOperationsCancelCall) Header() http.Header {
47846 if c.header_ == nil {
47847 c.header_ = make(http.Header)
47848 }
47849 return c.header_
47850 }
47851
47852 func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
47853 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47854 var body io.Reader = nil
47855 c.urlParams_.Set("alt", alt)
47856 c.urlParams_.Set("prettyPrint", "false")
47857 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}:cancel")
47858 urls += "?" + c.urlParams_.Encode()
47859 req, err := http.NewRequest("POST", urls, body)
47860 if err != nil {
47861 return nil, err
47862 }
47863 req.Header = reqHeaders
47864 googleapi.Expand(req.URL, map[string]string{
47865 "name": c.name,
47866 })
47867 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47868 }
47869
47870
47871
47872
47873
47874
47875
47876 func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
47877 gensupport.SetOptions(c.urlParams_, opts...)
47878 res, err := c.doRequest("json")
47879 if res != nil && res.StatusCode == http.StatusNotModified {
47880 if res.Body != nil {
47881 res.Body.Close()
47882 }
47883 return nil, gensupport.WrapError(&googleapi.Error{
47884 Code: res.StatusCode,
47885 Header: res.Header,
47886 })
47887 }
47888 if err != nil {
47889 return nil, err
47890 }
47891 defer googleapi.CloseBody(res)
47892 if err := googleapi.CheckResponse(res); err != nil {
47893 return nil, gensupport.WrapError(err)
47894 }
47895 ret := &GoogleProtobufEmpty{
47896 ServerResponse: googleapi.ServerResponse{
47897 Header: res.Header,
47898 HTTPStatusCode: res.StatusCode,
47899 },
47900 }
47901 target := &ret
47902 if err := gensupport.DecodeResponse(target, res); err != nil {
47903 return nil, err
47904 }
47905 return ret, nil
47906 }
47907
47908 type ProjectsOperationsGetCall struct {
47909 s *Service
47910 name string
47911 urlParams_ gensupport.URLParams
47912 ifNoneMatch_ string
47913 ctx_ context.Context
47914 header_ http.Header
47915 }
47916
47917
47918
47919
47920
47921
47922 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
47923 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
47924 c.name = name
47925 return c
47926 }
47927
47928
47929
47930
47931 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
47932 c.urlParams_.Set("fields", googleapi.CombineFields(s))
47933 return c
47934 }
47935
47936
47937
47938
47939 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
47940 c.ifNoneMatch_ = entityTag
47941 return c
47942 }
47943
47944
47945 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
47946 c.ctx_ = ctx
47947 return c
47948 }
47949
47950
47951
47952 func (c *ProjectsOperationsGetCall) Header() http.Header {
47953 if c.header_ == nil {
47954 c.header_ = make(http.Header)
47955 }
47956 return c.header_
47957 }
47958
47959 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
47960 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
47961 if c.ifNoneMatch_ != "" {
47962 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
47963 }
47964 var body io.Reader = nil
47965 c.urlParams_.Set("alt", alt)
47966 c.urlParams_.Set("prettyPrint", "false")
47967 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}")
47968 urls += "?" + c.urlParams_.Encode()
47969 req, err := http.NewRequest("GET", urls, body)
47970 if err != nil {
47971 return nil, err
47972 }
47973 req.Header = reqHeaders
47974 googleapi.Expand(req.URL, map[string]string{
47975 "name": c.name,
47976 })
47977 return gensupport.SendRequest(c.ctx_, c.s.client, req)
47978 }
47979
47980
47981
47982
47983
47984
47985
47986 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
47987 gensupport.SetOptions(c.urlParams_, opts...)
47988 res, err := c.doRequest("json")
47989 if res != nil && res.StatusCode == http.StatusNotModified {
47990 if res.Body != nil {
47991 res.Body.Close()
47992 }
47993 return nil, gensupport.WrapError(&googleapi.Error{
47994 Code: res.StatusCode,
47995 Header: res.Header,
47996 })
47997 }
47998 if err != nil {
47999 return nil, err
48000 }
48001 defer googleapi.CloseBody(res)
48002 if err := googleapi.CheckResponse(res); err != nil {
48003 return nil, gensupport.WrapError(err)
48004 }
48005 ret := &GoogleLongrunningOperation{
48006 ServerResponse: googleapi.ServerResponse{
48007 Header: res.Header,
48008 HTTPStatusCode: res.StatusCode,
48009 },
48010 }
48011 target := &ret
48012 if err := gensupport.DecodeResponse(target, res); err != nil {
48013 return nil, err
48014 }
48015 return ret, nil
48016 }
48017
48018 type ProjectsOperationsListCall struct {
48019 s *Service
48020 name string
48021 urlParams_ gensupport.URLParams
48022 ifNoneMatch_ string
48023 ctx_ context.Context
48024 header_ http.Header
48025 }
48026
48027
48028
48029
48030
48031 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
48032 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48033 c.name = name
48034 return c
48035 }
48036
48037
48038 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
48039 c.urlParams_.Set("filter", filter)
48040 return c
48041 }
48042
48043
48044
48045 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
48046 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
48047 return c
48048 }
48049
48050
48051
48052 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
48053 c.urlParams_.Set("pageToken", pageToken)
48054 return c
48055 }
48056
48057
48058
48059
48060 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
48061 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48062 return c
48063 }
48064
48065
48066
48067
48068 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
48069 c.ifNoneMatch_ = entityTag
48070 return c
48071 }
48072
48073
48074 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
48075 c.ctx_ = ctx
48076 return c
48077 }
48078
48079
48080
48081 func (c *ProjectsOperationsListCall) Header() http.Header {
48082 if c.header_ == nil {
48083 c.header_ = make(http.Header)
48084 }
48085 return c.header_
48086 }
48087
48088 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
48089 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
48090 if c.ifNoneMatch_ != "" {
48091 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
48092 }
48093 var body io.Reader = nil
48094 c.urlParams_.Set("alt", alt)
48095 c.urlParams_.Set("prettyPrint", "false")
48096 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+name}/operations")
48097 urls += "?" + c.urlParams_.Encode()
48098 req, err := http.NewRequest("GET", urls, body)
48099 if err != nil {
48100 return nil, err
48101 }
48102 req.Header = reqHeaders
48103 googleapi.Expand(req.URL, map[string]string{
48104 "name": c.name,
48105 })
48106 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48107 }
48108
48109
48110
48111
48112
48113
48114
48115 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
48116 gensupport.SetOptions(c.urlParams_, opts...)
48117 res, err := c.doRequest("json")
48118 if res != nil && res.StatusCode == http.StatusNotModified {
48119 if res.Body != nil {
48120 res.Body.Close()
48121 }
48122 return nil, gensupport.WrapError(&googleapi.Error{
48123 Code: res.StatusCode,
48124 Header: res.Header,
48125 })
48126 }
48127 if err != nil {
48128 return nil, err
48129 }
48130 defer googleapi.CloseBody(res)
48131 if err := googleapi.CheckResponse(res); err != nil {
48132 return nil, gensupport.WrapError(err)
48133 }
48134 ret := &GoogleLongrunningListOperationsResponse{
48135 ServerResponse: googleapi.ServerResponse{
48136 Header: res.Header,
48137 HTTPStatusCode: res.StatusCode,
48138 },
48139 }
48140 target := &ret
48141 if err := gensupport.DecodeResponse(target, res); err != nil {
48142 return nil, err
48143 }
48144 return ret, nil
48145 }
48146
48147
48148
48149
48150 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
48151 c.ctx_ = ctx
48152 defer c.PageToken(c.urlParams_.Get("pageToken"))
48153 for {
48154 x, err := c.Do()
48155 if err != nil {
48156 return err
48157 }
48158 if err := f(x); err != nil {
48159 return err
48160 }
48161 if x.NextPageToken == "" {
48162 return nil
48163 }
48164 c.PageToken(x.NextPageToken)
48165 }
48166 }
48167
48168 type ProjectsSuggestionsGenerateStatelessSummaryCall struct {
48169 s *Service
48170 parent string
48171 googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest
48172 urlParams_ gensupport.URLParams
48173 ctx_ context.Context
48174 header_ http.Header
48175 }
48176
48177
48178
48179
48180
48181
48182 func (r *ProjectsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2generatestatelesssummaryrequest *GoogleCloudDialogflowV2GenerateStatelessSummaryRequest) *ProjectsSuggestionsGenerateStatelessSummaryCall {
48183 c := &ProjectsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48184 c.parent = parent
48185 c.googleclouddialogflowv2generatestatelesssummaryrequest = googleclouddialogflowv2generatestatelesssummaryrequest
48186 return c
48187 }
48188
48189
48190
48191
48192 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsGenerateStatelessSummaryCall {
48193 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48194 return c
48195 }
48196
48197
48198 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsSuggestionsGenerateStatelessSummaryCall {
48199 c.ctx_ = ctx
48200 return c
48201 }
48202
48203
48204
48205 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
48206 if c.header_ == nil {
48207 c.header_ = make(http.Header)
48208 }
48209 return c.header_
48210 }
48211
48212 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
48213 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
48214 var body io.Reader = nil
48215 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2generatestatelesssummaryrequest)
48216 if err != nil {
48217 return nil, err
48218 }
48219 c.urlParams_.Set("alt", alt)
48220 c.urlParams_.Set("prettyPrint", "false")
48221 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:generateStatelessSummary")
48222 urls += "?" + c.urlParams_.Encode()
48223 req, err := http.NewRequest("POST", urls, body)
48224 if err != nil {
48225 return nil, err
48226 }
48227 req.Header = reqHeaders
48228 googleapi.Expand(req.URL, map[string]string{
48229 "parent": c.parent,
48230 })
48231 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48232 }
48233
48234
48235
48236
48237
48238
48239
48240 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2GenerateStatelessSummaryResponse, error) {
48241 gensupport.SetOptions(c.urlParams_, opts...)
48242 res, err := c.doRequest("json")
48243 if res != nil && res.StatusCode == http.StatusNotModified {
48244 if res.Body != nil {
48245 res.Body.Close()
48246 }
48247 return nil, gensupport.WrapError(&googleapi.Error{
48248 Code: res.StatusCode,
48249 Header: res.Header,
48250 })
48251 }
48252 if err != nil {
48253 return nil, err
48254 }
48255 defer googleapi.CloseBody(res)
48256 if err := googleapi.CheckResponse(res); err != nil {
48257 return nil, gensupport.WrapError(err)
48258 }
48259 ret := &GoogleCloudDialogflowV2GenerateStatelessSummaryResponse{
48260 ServerResponse: googleapi.ServerResponse{
48261 Header: res.Header,
48262 HTTPStatusCode: res.StatusCode,
48263 },
48264 }
48265 target := &ret
48266 if err := gensupport.DecodeResponse(target, res); err != nil {
48267 return nil, err
48268 }
48269 return ret, nil
48270 }
48271
48272 type ProjectsSuggestionsSearchKnowledgeCall struct {
48273 s *Service
48274 parent string
48275 googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest
48276 urlParams_ gensupport.URLParams
48277 ctx_ context.Context
48278 header_ http.Header
48279 }
48280
48281
48282
48283
48284
48285
48286 func (r *ProjectsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2searchknowledgerequest *GoogleCloudDialogflowV2SearchKnowledgeRequest) *ProjectsSuggestionsSearchKnowledgeCall {
48287 c := &ProjectsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
48288 c.parent = parent
48289 c.googleclouddialogflowv2searchknowledgerequest = googleclouddialogflowv2searchknowledgerequest
48290 return c
48291 }
48292
48293
48294
48295
48296 func (c *ProjectsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsSearchKnowledgeCall {
48297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
48298 return c
48299 }
48300
48301
48302 func (c *ProjectsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsSuggestionsSearchKnowledgeCall {
48303 c.ctx_ = ctx
48304 return c
48305 }
48306
48307
48308
48309 func (c *ProjectsSuggestionsSearchKnowledgeCall) Header() http.Header {
48310 if c.header_ == nil {
48311 c.header_ = make(http.Header)
48312 }
48313 return c.header_
48314 }
48315
48316 func (c *ProjectsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
48317 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
48318 var body io.Reader = nil
48319 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2searchknowledgerequest)
48320 if err != nil {
48321 return nil, err
48322 }
48323 c.urlParams_.Set("alt", alt)
48324 c.urlParams_.Set("prettyPrint", "false")
48325 urls := googleapi.ResolveRelative(c.s.BasePath, "v2/{+parent}/suggestions:searchKnowledge")
48326 urls += "?" + c.urlParams_.Encode()
48327 req, err := http.NewRequest("POST", urls, body)
48328 if err != nil {
48329 return nil, err
48330 }
48331 req.Header = reqHeaders
48332 googleapi.Expand(req.URL, map[string]string{
48333 "parent": c.parent,
48334 })
48335 return gensupport.SendRequest(c.ctx_, c.s.client, req)
48336 }
48337
48338
48339
48340
48341
48342
48343
48344 func (c *ProjectsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2SearchKnowledgeResponse, error) {
48345 gensupport.SetOptions(c.urlParams_, opts...)
48346 res, err := c.doRequest("json")
48347 if res != nil && res.StatusCode == http.StatusNotModified {
48348 if res.Body != nil {
48349 res.Body.Close()
48350 }
48351 return nil, gensupport.WrapError(&googleapi.Error{
48352 Code: res.StatusCode,
48353 Header: res.Header,
48354 })
48355 }
48356 if err != nil {
48357 return nil, err
48358 }
48359 defer googleapi.CloseBody(res)
48360 if err := googleapi.CheckResponse(res); err != nil {
48361 return nil, gensupport.WrapError(err)
48362 }
48363 ret := &GoogleCloudDialogflowV2SearchKnowledgeResponse{
48364 ServerResponse: googleapi.ServerResponse{
48365 Header: res.Header,
48366 HTTPStatusCode: res.StatusCode,
48367 },
48368 }
48369 target := &ret
48370 if err := gensupport.DecodeResponse(target, res); err != nil {
48371 return nil, err
48372 }
48373 return ret, nil
48374 }
48375
View as plain text