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:v2beta1"
97 const apiName = "dialogflow"
98 const apiVersion = "v2beta1"
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.ConversationProfiles = NewProjectsConversationProfilesService(s)
173 rs.Conversations = NewProjectsConversationsService(s)
174 rs.KnowledgeBases = NewProjectsKnowledgeBasesService(s)
175 rs.Locations = NewProjectsLocationsService(s)
176 rs.Operations = NewProjectsOperationsService(s)
177 rs.Suggestions = NewProjectsSuggestionsService(s)
178 return rs
179 }
180
181 type ProjectsService struct {
182 s *Service
183
184 Agent *ProjectsAgentService
185
186 AnswerRecords *ProjectsAnswerRecordsService
187
188 ConversationProfiles *ProjectsConversationProfilesService
189
190 Conversations *ProjectsConversationsService
191
192 KnowledgeBases *ProjectsKnowledgeBasesService
193
194 Locations *ProjectsLocationsService
195
196 Operations *ProjectsOperationsService
197
198 Suggestions *ProjectsSuggestionsService
199 }
200
201 func NewProjectsAgentService(s *Service) *ProjectsAgentService {
202 rs := &ProjectsAgentService{s: s}
203 rs.EntityTypes = NewProjectsAgentEntityTypesService(s)
204 rs.Environments = NewProjectsAgentEnvironmentsService(s)
205 rs.Intents = NewProjectsAgentIntentsService(s)
206 rs.KnowledgeBases = NewProjectsAgentKnowledgeBasesService(s)
207 rs.Sessions = NewProjectsAgentSessionsService(s)
208 rs.Versions = NewProjectsAgentVersionsService(s)
209 return rs
210 }
211
212 type ProjectsAgentService struct {
213 s *Service
214
215 EntityTypes *ProjectsAgentEntityTypesService
216
217 Environments *ProjectsAgentEnvironmentsService
218
219 Intents *ProjectsAgentIntentsService
220
221 KnowledgeBases *ProjectsAgentKnowledgeBasesService
222
223 Sessions *ProjectsAgentSessionsService
224
225 Versions *ProjectsAgentVersionsService
226 }
227
228 func NewProjectsAgentEntityTypesService(s *Service) *ProjectsAgentEntityTypesService {
229 rs := &ProjectsAgentEntityTypesService{s: s}
230 rs.Entities = NewProjectsAgentEntityTypesEntitiesService(s)
231 return rs
232 }
233
234 type ProjectsAgentEntityTypesService struct {
235 s *Service
236
237 Entities *ProjectsAgentEntityTypesEntitiesService
238 }
239
240 func NewProjectsAgentEntityTypesEntitiesService(s *Service) *ProjectsAgentEntityTypesEntitiesService {
241 rs := &ProjectsAgentEntityTypesEntitiesService{s: s}
242 return rs
243 }
244
245 type ProjectsAgentEntityTypesEntitiesService struct {
246 s *Service
247 }
248
249 func NewProjectsAgentEnvironmentsService(s *Service) *ProjectsAgentEnvironmentsService {
250 rs := &ProjectsAgentEnvironmentsService{s: s}
251 rs.Intents = NewProjectsAgentEnvironmentsIntentsService(s)
252 rs.Users = NewProjectsAgentEnvironmentsUsersService(s)
253 return rs
254 }
255
256 type ProjectsAgentEnvironmentsService struct {
257 s *Service
258
259 Intents *ProjectsAgentEnvironmentsIntentsService
260
261 Users *ProjectsAgentEnvironmentsUsersService
262 }
263
264 func NewProjectsAgentEnvironmentsIntentsService(s *Service) *ProjectsAgentEnvironmentsIntentsService {
265 rs := &ProjectsAgentEnvironmentsIntentsService{s: s}
266 return rs
267 }
268
269 type ProjectsAgentEnvironmentsIntentsService struct {
270 s *Service
271 }
272
273 func NewProjectsAgentEnvironmentsUsersService(s *Service) *ProjectsAgentEnvironmentsUsersService {
274 rs := &ProjectsAgentEnvironmentsUsersService{s: s}
275 rs.Sessions = NewProjectsAgentEnvironmentsUsersSessionsService(s)
276 return rs
277 }
278
279 type ProjectsAgentEnvironmentsUsersService struct {
280 s *Service
281
282 Sessions *ProjectsAgentEnvironmentsUsersSessionsService
283 }
284
285 func NewProjectsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsService {
286 rs := &ProjectsAgentEnvironmentsUsersSessionsService{s: s}
287 rs.Contexts = NewProjectsAgentEnvironmentsUsersSessionsContextsService(s)
288 rs.EntityTypes = NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s)
289 return rs
290 }
291
292 type ProjectsAgentEnvironmentsUsersSessionsService struct {
293 s *Service
294
295 Contexts *ProjectsAgentEnvironmentsUsersSessionsContextsService
296
297 EntityTypes *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService
298 }
299
300 func NewProjectsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsContextsService {
301 rs := &ProjectsAgentEnvironmentsUsersSessionsContextsService{s: s}
302 return rs
303 }
304
305 type ProjectsAgentEnvironmentsUsersSessionsContextsService struct {
306 s *Service
307 }
308
309 func NewProjectsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService {
310 rs := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
311 return rs
312 }
313
314 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesService struct {
315 s *Service
316 }
317
318 func NewProjectsAgentIntentsService(s *Service) *ProjectsAgentIntentsService {
319 rs := &ProjectsAgentIntentsService{s: s}
320 return rs
321 }
322
323 type ProjectsAgentIntentsService struct {
324 s *Service
325 }
326
327 func NewProjectsAgentKnowledgeBasesService(s *Service) *ProjectsAgentKnowledgeBasesService {
328 rs := &ProjectsAgentKnowledgeBasesService{s: s}
329 rs.Documents = NewProjectsAgentKnowledgeBasesDocumentsService(s)
330 return rs
331 }
332
333 type ProjectsAgentKnowledgeBasesService struct {
334 s *Service
335
336 Documents *ProjectsAgentKnowledgeBasesDocumentsService
337 }
338
339 func NewProjectsAgentKnowledgeBasesDocumentsService(s *Service) *ProjectsAgentKnowledgeBasesDocumentsService {
340 rs := &ProjectsAgentKnowledgeBasesDocumentsService{s: s}
341 return rs
342 }
343
344 type ProjectsAgentKnowledgeBasesDocumentsService struct {
345 s *Service
346 }
347
348 func NewProjectsAgentSessionsService(s *Service) *ProjectsAgentSessionsService {
349 rs := &ProjectsAgentSessionsService{s: s}
350 rs.Contexts = NewProjectsAgentSessionsContextsService(s)
351 rs.EntityTypes = NewProjectsAgentSessionsEntityTypesService(s)
352 return rs
353 }
354
355 type ProjectsAgentSessionsService struct {
356 s *Service
357
358 Contexts *ProjectsAgentSessionsContextsService
359
360 EntityTypes *ProjectsAgentSessionsEntityTypesService
361 }
362
363 func NewProjectsAgentSessionsContextsService(s *Service) *ProjectsAgentSessionsContextsService {
364 rs := &ProjectsAgentSessionsContextsService{s: s}
365 return rs
366 }
367
368 type ProjectsAgentSessionsContextsService struct {
369 s *Service
370 }
371
372 func NewProjectsAgentSessionsEntityTypesService(s *Service) *ProjectsAgentSessionsEntityTypesService {
373 rs := &ProjectsAgentSessionsEntityTypesService{s: s}
374 return rs
375 }
376
377 type ProjectsAgentSessionsEntityTypesService struct {
378 s *Service
379 }
380
381 func NewProjectsAgentVersionsService(s *Service) *ProjectsAgentVersionsService {
382 rs := &ProjectsAgentVersionsService{s: s}
383 return rs
384 }
385
386 type ProjectsAgentVersionsService struct {
387 s *Service
388 }
389
390 func NewProjectsAnswerRecordsService(s *Service) *ProjectsAnswerRecordsService {
391 rs := &ProjectsAnswerRecordsService{s: s}
392 return rs
393 }
394
395 type ProjectsAnswerRecordsService struct {
396 s *Service
397 }
398
399 func NewProjectsConversationProfilesService(s *Service) *ProjectsConversationProfilesService {
400 rs := &ProjectsConversationProfilesService{s: s}
401 return rs
402 }
403
404 type ProjectsConversationProfilesService struct {
405 s *Service
406 }
407
408 func NewProjectsConversationsService(s *Service) *ProjectsConversationsService {
409 rs := &ProjectsConversationsService{s: s}
410 rs.Messages = NewProjectsConversationsMessagesService(s)
411 rs.Participants = NewProjectsConversationsParticipantsService(s)
412 rs.Suggestions = NewProjectsConversationsSuggestionsService(s)
413 return rs
414 }
415
416 type ProjectsConversationsService struct {
417 s *Service
418
419 Messages *ProjectsConversationsMessagesService
420
421 Participants *ProjectsConversationsParticipantsService
422
423 Suggestions *ProjectsConversationsSuggestionsService
424 }
425
426 func NewProjectsConversationsMessagesService(s *Service) *ProjectsConversationsMessagesService {
427 rs := &ProjectsConversationsMessagesService{s: s}
428 return rs
429 }
430
431 type ProjectsConversationsMessagesService struct {
432 s *Service
433 }
434
435 func NewProjectsConversationsParticipantsService(s *Service) *ProjectsConversationsParticipantsService {
436 rs := &ProjectsConversationsParticipantsService{s: s}
437 rs.Suggestions = NewProjectsConversationsParticipantsSuggestionsService(s)
438 return rs
439 }
440
441 type ProjectsConversationsParticipantsService struct {
442 s *Service
443
444 Suggestions *ProjectsConversationsParticipantsSuggestionsService
445 }
446
447 func NewProjectsConversationsParticipantsSuggestionsService(s *Service) *ProjectsConversationsParticipantsSuggestionsService {
448 rs := &ProjectsConversationsParticipantsSuggestionsService{s: s}
449 return rs
450 }
451
452 type ProjectsConversationsParticipantsSuggestionsService struct {
453 s *Service
454 }
455
456 func NewProjectsConversationsSuggestionsService(s *Service) *ProjectsConversationsSuggestionsService {
457 rs := &ProjectsConversationsSuggestionsService{s: s}
458 return rs
459 }
460
461 type ProjectsConversationsSuggestionsService struct {
462 s *Service
463 }
464
465 func NewProjectsKnowledgeBasesService(s *Service) *ProjectsKnowledgeBasesService {
466 rs := &ProjectsKnowledgeBasesService{s: s}
467 rs.Documents = NewProjectsKnowledgeBasesDocumentsService(s)
468 return rs
469 }
470
471 type ProjectsKnowledgeBasesService struct {
472 s *Service
473
474 Documents *ProjectsKnowledgeBasesDocumentsService
475 }
476
477 func NewProjectsKnowledgeBasesDocumentsService(s *Service) *ProjectsKnowledgeBasesDocumentsService {
478 rs := &ProjectsKnowledgeBasesDocumentsService{s: s}
479 return rs
480 }
481
482 type ProjectsKnowledgeBasesDocumentsService struct {
483 s *Service
484 }
485
486 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
487 rs := &ProjectsLocationsService{s: s}
488 rs.Agent = NewProjectsLocationsAgentService(s)
489 rs.AnswerRecords = NewProjectsLocationsAnswerRecordsService(s)
490 rs.ConversationProfiles = NewProjectsLocationsConversationProfilesService(s)
491 rs.Conversations = NewProjectsLocationsConversationsService(s)
492 rs.KnowledgeBases = NewProjectsLocationsKnowledgeBasesService(s)
493 rs.Operations = NewProjectsLocationsOperationsService(s)
494 rs.Suggestions = NewProjectsLocationsSuggestionsService(s)
495 return rs
496 }
497
498 type ProjectsLocationsService struct {
499 s *Service
500
501 Agent *ProjectsLocationsAgentService
502
503 AnswerRecords *ProjectsLocationsAnswerRecordsService
504
505 ConversationProfiles *ProjectsLocationsConversationProfilesService
506
507 Conversations *ProjectsLocationsConversationsService
508
509 KnowledgeBases *ProjectsLocationsKnowledgeBasesService
510
511 Operations *ProjectsLocationsOperationsService
512
513 Suggestions *ProjectsLocationsSuggestionsService
514 }
515
516 func NewProjectsLocationsAgentService(s *Service) *ProjectsLocationsAgentService {
517 rs := &ProjectsLocationsAgentService{s: s}
518 rs.EntityTypes = NewProjectsLocationsAgentEntityTypesService(s)
519 rs.Environments = NewProjectsLocationsAgentEnvironmentsService(s)
520 rs.Intents = NewProjectsLocationsAgentIntentsService(s)
521 rs.Sessions = NewProjectsLocationsAgentSessionsService(s)
522 rs.Versions = NewProjectsLocationsAgentVersionsService(s)
523 return rs
524 }
525
526 type ProjectsLocationsAgentService struct {
527 s *Service
528
529 EntityTypes *ProjectsLocationsAgentEntityTypesService
530
531 Environments *ProjectsLocationsAgentEnvironmentsService
532
533 Intents *ProjectsLocationsAgentIntentsService
534
535 Sessions *ProjectsLocationsAgentSessionsService
536
537 Versions *ProjectsLocationsAgentVersionsService
538 }
539
540 func NewProjectsLocationsAgentEntityTypesService(s *Service) *ProjectsLocationsAgentEntityTypesService {
541 rs := &ProjectsLocationsAgentEntityTypesService{s: s}
542 rs.Entities = NewProjectsLocationsAgentEntityTypesEntitiesService(s)
543 return rs
544 }
545
546 type ProjectsLocationsAgentEntityTypesService struct {
547 s *Service
548
549 Entities *ProjectsLocationsAgentEntityTypesEntitiesService
550 }
551
552 func NewProjectsLocationsAgentEntityTypesEntitiesService(s *Service) *ProjectsLocationsAgentEntityTypesEntitiesService {
553 rs := &ProjectsLocationsAgentEntityTypesEntitiesService{s: s}
554 return rs
555 }
556
557 type ProjectsLocationsAgentEntityTypesEntitiesService struct {
558 s *Service
559 }
560
561 func NewProjectsLocationsAgentEnvironmentsService(s *Service) *ProjectsLocationsAgentEnvironmentsService {
562 rs := &ProjectsLocationsAgentEnvironmentsService{s: s}
563 rs.Intents = NewProjectsLocationsAgentEnvironmentsIntentsService(s)
564 rs.Users = NewProjectsLocationsAgentEnvironmentsUsersService(s)
565 return rs
566 }
567
568 type ProjectsLocationsAgentEnvironmentsService struct {
569 s *Service
570
571 Intents *ProjectsLocationsAgentEnvironmentsIntentsService
572
573 Users *ProjectsLocationsAgentEnvironmentsUsersService
574 }
575
576 func NewProjectsLocationsAgentEnvironmentsIntentsService(s *Service) *ProjectsLocationsAgentEnvironmentsIntentsService {
577 rs := &ProjectsLocationsAgentEnvironmentsIntentsService{s: s}
578 return rs
579 }
580
581 type ProjectsLocationsAgentEnvironmentsIntentsService struct {
582 s *Service
583 }
584
585 func NewProjectsLocationsAgentEnvironmentsUsersService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersService {
586 rs := &ProjectsLocationsAgentEnvironmentsUsersService{s: s}
587 rs.Sessions = NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s)
588 return rs
589 }
590
591 type ProjectsLocationsAgentEnvironmentsUsersService struct {
592 s *Service
593
594 Sessions *ProjectsLocationsAgentEnvironmentsUsersSessionsService
595 }
596
597 func NewProjectsLocationsAgentEnvironmentsUsersSessionsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsService {
598 rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsService{s: s}
599 rs.Contexts = NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s)
600 rs.EntityTypes = NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s)
601 return rs
602 }
603
604 type ProjectsLocationsAgentEnvironmentsUsersSessionsService struct {
605 s *Service
606
607 Contexts *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService
608
609 EntityTypes *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService
610 }
611
612 func NewProjectsLocationsAgentEnvironmentsUsersSessionsContextsService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService {
613 rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService{s: s}
614 return rs
615 }
616
617 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService struct {
618 s *Service
619 }
620
621 func NewProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService {
622 rs := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService{s: s}
623 return rs
624 }
625
626 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService struct {
627 s *Service
628 }
629
630 func NewProjectsLocationsAgentIntentsService(s *Service) *ProjectsLocationsAgentIntentsService {
631 rs := &ProjectsLocationsAgentIntentsService{s: s}
632 return rs
633 }
634
635 type ProjectsLocationsAgentIntentsService struct {
636 s *Service
637 }
638
639 func NewProjectsLocationsAgentSessionsService(s *Service) *ProjectsLocationsAgentSessionsService {
640 rs := &ProjectsLocationsAgentSessionsService{s: s}
641 rs.Contexts = NewProjectsLocationsAgentSessionsContextsService(s)
642 rs.EntityTypes = NewProjectsLocationsAgentSessionsEntityTypesService(s)
643 return rs
644 }
645
646 type ProjectsLocationsAgentSessionsService struct {
647 s *Service
648
649 Contexts *ProjectsLocationsAgentSessionsContextsService
650
651 EntityTypes *ProjectsLocationsAgentSessionsEntityTypesService
652 }
653
654 func NewProjectsLocationsAgentSessionsContextsService(s *Service) *ProjectsLocationsAgentSessionsContextsService {
655 rs := &ProjectsLocationsAgentSessionsContextsService{s: s}
656 return rs
657 }
658
659 type ProjectsLocationsAgentSessionsContextsService struct {
660 s *Service
661 }
662
663 func NewProjectsLocationsAgentSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentSessionsEntityTypesService {
664 rs := &ProjectsLocationsAgentSessionsEntityTypesService{s: s}
665 return rs
666 }
667
668 type ProjectsLocationsAgentSessionsEntityTypesService struct {
669 s *Service
670 }
671
672 func NewProjectsLocationsAgentVersionsService(s *Service) *ProjectsLocationsAgentVersionsService {
673 rs := &ProjectsLocationsAgentVersionsService{s: s}
674 return rs
675 }
676
677 type ProjectsLocationsAgentVersionsService struct {
678 s *Service
679 }
680
681 func NewProjectsLocationsAnswerRecordsService(s *Service) *ProjectsLocationsAnswerRecordsService {
682 rs := &ProjectsLocationsAnswerRecordsService{s: s}
683 return rs
684 }
685
686 type ProjectsLocationsAnswerRecordsService struct {
687 s *Service
688 }
689
690 func NewProjectsLocationsConversationProfilesService(s *Service) *ProjectsLocationsConversationProfilesService {
691 rs := &ProjectsLocationsConversationProfilesService{s: s}
692 return rs
693 }
694
695 type ProjectsLocationsConversationProfilesService struct {
696 s *Service
697 }
698
699 func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
700 rs := &ProjectsLocationsConversationsService{s: s}
701 rs.Messages = NewProjectsLocationsConversationsMessagesService(s)
702 rs.Participants = NewProjectsLocationsConversationsParticipantsService(s)
703 rs.Suggestions = NewProjectsLocationsConversationsSuggestionsService(s)
704 return rs
705 }
706
707 type ProjectsLocationsConversationsService struct {
708 s *Service
709
710 Messages *ProjectsLocationsConversationsMessagesService
711
712 Participants *ProjectsLocationsConversationsParticipantsService
713
714 Suggestions *ProjectsLocationsConversationsSuggestionsService
715 }
716
717 func NewProjectsLocationsConversationsMessagesService(s *Service) *ProjectsLocationsConversationsMessagesService {
718 rs := &ProjectsLocationsConversationsMessagesService{s: s}
719 return rs
720 }
721
722 type ProjectsLocationsConversationsMessagesService struct {
723 s *Service
724 }
725
726 func NewProjectsLocationsConversationsParticipantsService(s *Service) *ProjectsLocationsConversationsParticipantsService {
727 rs := &ProjectsLocationsConversationsParticipantsService{s: s}
728 rs.Suggestions = NewProjectsLocationsConversationsParticipantsSuggestionsService(s)
729 return rs
730 }
731
732 type ProjectsLocationsConversationsParticipantsService struct {
733 s *Service
734
735 Suggestions *ProjectsLocationsConversationsParticipantsSuggestionsService
736 }
737
738 func NewProjectsLocationsConversationsParticipantsSuggestionsService(s *Service) *ProjectsLocationsConversationsParticipantsSuggestionsService {
739 rs := &ProjectsLocationsConversationsParticipantsSuggestionsService{s: s}
740 return rs
741 }
742
743 type ProjectsLocationsConversationsParticipantsSuggestionsService struct {
744 s *Service
745 }
746
747 func NewProjectsLocationsConversationsSuggestionsService(s *Service) *ProjectsLocationsConversationsSuggestionsService {
748 rs := &ProjectsLocationsConversationsSuggestionsService{s: s}
749 return rs
750 }
751
752 type ProjectsLocationsConversationsSuggestionsService struct {
753 s *Service
754 }
755
756 func NewProjectsLocationsKnowledgeBasesService(s *Service) *ProjectsLocationsKnowledgeBasesService {
757 rs := &ProjectsLocationsKnowledgeBasesService{s: s}
758 rs.Documents = NewProjectsLocationsKnowledgeBasesDocumentsService(s)
759 return rs
760 }
761
762 type ProjectsLocationsKnowledgeBasesService struct {
763 s *Service
764
765 Documents *ProjectsLocationsKnowledgeBasesDocumentsService
766 }
767
768 func NewProjectsLocationsKnowledgeBasesDocumentsService(s *Service) *ProjectsLocationsKnowledgeBasesDocumentsService {
769 rs := &ProjectsLocationsKnowledgeBasesDocumentsService{s: s}
770 return rs
771 }
772
773 type ProjectsLocationsKnowledgeBasesDocumentsService struct {
774 s *Service
775 }
776
777 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
778 rs := &ProjectsLocationsOperationsService{s: s}
779 return rs
780 }
781
782 type ProjectsLocationsOperationsService struct {
783 s *Service
784 }
785
786 func NewProjectsLocationsSuggestionsService(s *Service) *ProjectsLocationsSuggestionsService {
787 rs := &ProjectsLocationsSuggestionsService{s: s}
788 return rs
789 }
790
791 type ProjectsLocationsSuggestionsService struct {
792 s *Service
793 }
794
795 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
796 rs := &ProjectsOperationsService{s: s}
797 return rs
798 }
799
800 type ProjectsOperationsService struct {
801 s *Service
802 }
803
804 func NewProjectsSuggestionsService(s *Service) *ProjectsSuggestionsService {
805 rs := &ProjectsSuggestionsService{s: s}
806 return rs
807 }
808
809 type ProjectsSuggestionsService struct {
810 s *Service
811 }
812
813
814
815
816
817
818
819
820
821
822 type GoogleCloudDialogflowCxV3AdvancedSettings struct {
823
824
825
826 AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
827
828
829 DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
830
831
832
833 LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
834
835
836 SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
837
838
839
840
841
842 ForceSendFields []string `json:"-"`
843
844
845
846
847 NullFields []string `json:"-"`
848 }
849
850 func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
851 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
853 }
854
855
856
857 type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
858
859
860
861
862
863
864 Enabled bool `json:"enabled,omitempty"`
865
866
867 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
868
869 FinishDigit string `json:"finishDigit,omitempty"`
870
871
872 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
873
874 MaxDigits int64 `json:"maxDigits,omitempty"`
875
876
877
878
879
880 ForceSendFields []string `json:"-"`
881
882
883
884
885 NullFields []string `json:"-"`
886 }
887
888 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
889 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
891 }
892
893
894
895 type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
896
897
898 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
899
900 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
901
902
903
904
905
906 ForceSendFields []string `json:"-"`
907
908
909
910
911 NullFields []string `json:"-"`
912 }
913
914 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
915 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
917 }
918
919
920
921 type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
922
923
924 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
925
926
927
928
929 Models map[string]string `json:"models,omitempty"`
930
931 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
932
933
934 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
935
936
937
938
939
940 ForceSendFields []string `json:"-"`
941
942
943
944
945 NullFields []string `json:"-"`
946 }
947
948 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
949 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
951 }
952
953
954
955 type GoogleCloudDialogflowCxV3AudioInput struct {
956
957
958
959
960
961
962 Audio string `json:"audio,omitempty"`
963
964
965 Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
966
967
968
969
970
971 ForceSendFields []string `json:"-"`
972
973
974
975
976 NullFields []string `json:"-"`
977 }
978
979 func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
980 type NoMethod GoogleCloudDialogflowCxV3AudioInput
981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
982 }
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000 type GoogleCloudDialogflowCxV3BargeInConfig struct {
1001
1002
1003 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
1004
1005
1006 TotalDuration string `json:"totalDuration,omitempty"`
1007
1008
1009
1010
1011
1012 ForceSendFields []string `json:"-"`
1013
1014
1015
1016
1017 NullFields []string `json:"-"`
1018 }
1019
1020 func (s *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
1021 type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
1022 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1023 }
1024
1025
1026
1027 type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
1028
1029 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
1030
1031
1032
1033
1034
1035 ForceSendFields []string `json:"-"`
1036
1037
1038
1039
1040 NullFields []string `json:"-"`
1041 }
1042
1043 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
1044 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
1045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1046 }
1047
1048
1049
1050 type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
1051
1052
1053 Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
1054
1055
1056
1057
1058
1059 ForceSendFields []string `json:"-"`
1060
1061
1062
1063
1064 NullFields []string `json:"-"`
1065 }
1066
1067 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
1068 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
1069 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1070 }
1071
1072
1073
1074 type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
1075
1076
1077 Name string `json:"name,omitempty"`
1078
1079
1080
1081
1082
1083
1084
1085
1086 Result string `json:"result,omitempty"`
1087
1088 RunTime string `json:"runTime,omitempty"`
1089
1090
1091 TestCaseResults []string `json:"testCaseResults,omitempty"`
1092
1093
1094
1095
1096
1097 ForceSendFields []string `json:"-"`
1098
1099
1100
1101
1102 NullFields []string `json:"-"`
1103 }
1104
1105 func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
1106 type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
1107 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1108 }
1109
1110
1111
1112
1113 type GoogleCloudDialogflowCxV3ConversationSignals struct {
1114
1115 TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
1116
1117
1118
1119
1120
1121 ForceSendFields []string `json:"-"`
1122
1123
1124
1125
1126 NullFields []string `json:"-"`
1127 }
1128
1129 func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
1130 type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
1131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1132 }
1133
1134
1135
1136
1137 type GoogleCloudDialogflowCxV3ConversationTurn struct {
1138
1139 UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
1140
1141 VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
1142
1143
1144
1145
1146
1147 ForceSendFields []string `json:"-"`
1148
1149
1150
1151
1152 NullFields []string `json:"-"`
1153 }
1154
1155 func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
1156 type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
1157 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1158 }
1159
1160
1161
1162 type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
1163
1164 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
1165
1166
1167 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
1168
1169 Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
1170
1171
1172
1173 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
1174
1175
1176
1177
1178
1179 ForceSendFields []string `json:"-"`
1180
1181
1182
1183
1184 NullFields []string `json:"-"`
1185 }
1186
1187 func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
1188 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
1189 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1190 }
1191
1192
1193
1194 type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
1195
1196
1197 CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
1198
1199
1200 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
1201
1202
1203
1204 Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
1205
1206
1207 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
1208
1209
1210 Status *GoogleRpcStatus `json:"status,omitempty"`
1211
1212 TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
1213
1214
1215 TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
1216
1217
1218
1219
1220
1221 ForceSendFields []string `json:"-"`
1222
1223
1224
1225
1226 NullFields []string `json:"-"`
1227 }
1228
1229 func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
1230 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
1231 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1232 }
1233
1234
1235
1236 type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
1237
1238 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1239
1240
1241
1242
1243
1244 ForceSendFields []string `json:"-"`
1245
1246
1247
1248
1249 NullFields []string `json:"-"`
1250 }
1251
1252 func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1253 type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
1254 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1255 }
1256
1257
1258
1259 type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
1260
1261
1262 Version string `json:"version,omitempty"`
1263
1264
1265
1266
1267
1268 ForceSendFields []string `json:"-"`
1269
1270
1271
1272
1273 NullFields []string `json:"-"`
1274 }
1275
1276 func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
1277 type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
1278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1279 }
1280
1281
1282
1283
1284 type GoogleCloudDialogflowCxV3DataStoreConnection struct {
1285
1286
1287
1288
1289 DataStore string `json:"dataStore,omitempty"`
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299 DataStoreType string `json:"dataStoreType,omitempty"`
1300
1301
1302
1303
1304
1305 ForceSendFields []string `json:"-"`
1306
1307
1308
1309
1310 NullFields []string `json:"-"`
1311 }
1312
1313 func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
1314 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
1315 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1316 }
1317
1318
1319
1320 type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
1321
1322 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1323
1324
1325
1326
1327
1328 ForceSendFields []string `json:"-"`
1329
1330
1331
1332
1333 NullFields []string `json:"-"`
1334 }
1335
1336 func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1337 type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
1338 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1339 }
1340
1341
1342
1343 type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
1344
1345 TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
1346
1347
1348
1349
1350
1351 ForceSendFields []string `json:"-"`
1352
1353
1354
1355
1356 NullFields []string `json:"-"`
1357 }
1358
1359 func (s *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
1360 type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
1361 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1362 }
1363
1364
1365
1366 type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
1367
1368
1369 Deployment string `json:"deployment,omitempty"`
1370
1371 Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
1372
1373
1374
1375
1376
1377 ForceSendFields []string `json:"-"`
1378
1379
1380
1381
1382 NullFields []string `json:"-"`
1383 }
1384
1385 func (s *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
1386 type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
1387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1388 }
1389
1390
1391 type GoogleCloudDialogflowCxV3DtmfInput struct {
1392
1393 Digits string `json:"digits,omitempty"`
1394
1395 FinishDigit string `json:"finishDigit,omitempty"`
1396
1397
1398
1399
1400
1401 ForceSendFields []string `json:"-"`
1402
1403
1404
1405
1406 NullFields []string `json:"-"`
1407 }
1408
1409 func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
1410 type NoMethod GoogleCloudDialogflowCxV3DtmfInput
1411 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1412 }
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422 type GoogleCloudDialogflowCxV3Environment struct {
1423
1424
1425 Description string `json:"description,omitempty"`
1426
1427
1428 DisplayName string `json:"displayName,omitempty"`
1429
1430
1431 Name string `json:"name,omitempty"`
1432
1433
1434 TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
1435
1436 UpdateTime string `json:"updateTime,omitempty"`
1437
1438
1439
1440 VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
1441
1442 WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
1443
1444
1445
1446
1447
1448 ForceSendFields []string `json:"-"`
1449
1450
1451
1452
1453 NullFields []string `json:"-"`
1454 }
1455
1456 func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
1457 type NoMethod GoogleCloudDialogflowCxV3Environment
1458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1459 }
1460
1461
1462
1463 type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
1464
1465
1466 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
1467
1468
1469
1470 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
1471
1472
1473
1474 TestCases []string `json:"testCases,omitempty"`
1475
1476
1477
1478
1479
1480 ForceSendFields []string `json:"-"`
1481
1482
1483
1484
1485 NullFields []string `json:"-"`
1486 }
1487
1488 func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
1489 type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
1490 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1491 }
1492
1493
1494
1495 type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
1496
1497 Version string `json:"version,omitempty"`
1498
1499
1500
1501
1502
1503 ForceSendFields []string `json:"-"`
1504
1505
1506
1507
1508 NullFields []string `json:"-"`
1509 }
1510
1511 func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
1512 type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
1513 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1514 }
1515
1516
1517
1518 type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
1519
1520
1521
1522 WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
1523
1524
1525
1526
1527
1528 ForceSendFields []string `json:"-"`
1529
1530
1531
1532
1533 NullFields []string `json:"-"`
1534 }
1535
1536 func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
1537 type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
1538 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1539 }
1540
1541
1542
1543
1544
1545
1546
1547
1548 type GoogleCloudDialogflowCxV3EventHandler struct {
1549
1550 Event string `json:"event,omitempty"`
1551
1552 Name string `json:"name,omitempty"`
1553
1554
1555 TargetFlow string `json:"targetFlow,omitempty"`
1556
1557
1558 TargetPage string `json:"targetPage,omitempty"`
1559
1560
1561
1562
1563 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
1564
1565
1566
1567
1568
1569 ForceSendFields []string `json:"-"`
1570
1571
1572
1573
1574 NullFields []string `json:"-"`
1575 }
1576
1577 func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
1578 type NoMethod GoogleCloudDialogflowCxV3EventHandler
1579 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1580 }
1581
1582
1583 type GoogleCloudDialogflowCxV3EventInput struct {
1584
1585 Event string `json:"event,omitempty"`
1586
1587
1588
1589
1590
1591 ForceSendFields []string `json:"-"`
1592
1593
1594
1595
1596 NullFields []string `json:"-"`
1597 }
1598
1599 func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
1600 type NoMethod GoogleCloudDialogflowCxV3EventInput
1601 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1602 }
1603
1604
1605
1606 type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
1607
1608
1609
1610 AgentContent string `json:"agentContent,omitempty"`
1611
1612
1613 AgentUri string `json:"agentUri,omitempty"`
1614
1615
1616 CommitSha string `json:"commitSha,omitempty"`
1617
1618
1619
1620
1621
1622 ForceSendFields []string `json:"-"`
1623
1624
1625
1626
1627 NullFields []string `json:"-"`
1628 }
1629
1630 func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
1631 type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
1632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1633 }
1634
1635
1636
1637 type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
1638 }
1639
1640
1641
1642 type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
1643
1644
1645
1646 EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
1647
1648
1649
1650 EntityTypesUri string `json:"entityTypesUri,omitempty"`
1651
1652
1653
1654
1655
1656 ForceSendFields []string `json:"-"`
1657
1658
1659
1660
1661 NullFields []string `json:"-"`
1662 }
1663
1664 func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
1665 type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
1666 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1667 }
1668
1669
1670
1671 type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
1672
1673 FlowContent string `json:"flowContent,omitempty"`
1674
1675
1676 FlowUri string `json:"flowUri,omitempty"`
1677
1678
1679
1680
1681
1682 ForceSendFields []string `json:"-"`
1683
1684
1685
1686
1687 NullFields []string `json:"-"`
1688 }
1689
1690 func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
1691 type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
1692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1693 }
1694
1695
1696
1697 type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
1698 }
1699
1700
1701
1702 type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
1703
1704
1705
1706 IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
1707
1708
1709 IntentsUri string `json:"intentsUri,omitempty"`
1710
1711
1712
1713
1714
1715 ForceSendFields []string `json:"-"`
1716
1717
1718
1719
1720 NullFields []string `json:"-"`
1721 }
1722
1723 func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
1724 type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
1725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1726 }
1727
1728
1729
1730
1731 type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
1732 }
1733
1734
1735
1736 type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
1737
1738 Content string `json:"content,omitempty"`
1739
1740
1741 GcsUri string `json:"gcsUri,omitempty"`
1742
1743
1744
1745
1746
1747 ForceSendFields []string `json:"-"`
1748
1749
1750
1751
1752 NullFields []string `json:"-"`
1753 }
1754
1755 func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
1756 type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
1757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1758 }
1759
1760
1761
1762
1763
1764
1765 type GoogleCloudDialogflowCxV3Form struct {
1766
1767 Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
1768
1769
1770
1771
1772
1773 ForceSendFields []string `json:"-"`
1774
1775
1776
1777
1778 NullFields []string `json:"-"`
1779 }
1780
1781 func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
1782 type NoMethod GoogleCloudDialogflowCxV3Form
1783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1784 }
1785
1786
1787 type GoogleCloudDialogflowCxV3FormParameter struct {
1788
1789
1790
1791 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
1792
1793
1794 DefaultValue interface{} `json:"defaultValue,omitempty"`
1795
1796
1797 DisplayName string `json:"displayName,omitempty"`
1798
1799
1800
1801
1802 EntityType string `json:"entityType,omitempty"`
1803
1804 FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
1805
1806 IsList bool `json:"isList,omitempty"`
1807
1808
1809
1810
1811 Redact bool `json:"redact,omitempty"`
1812
1813
1814
1815 Required bool `json:"required,omitempty"`
1816
1817
1818
1819
1820
1821 ForceSendFields []string `json:"-"`
1822
1823
1824
1825
1826 NullFields []string `json:"-"`
1827 }
1828
1829 func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
1830 type NoMethod GoogleCloudDialogflowCxV3FormParameter
1831 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1832 }
1833
1834
1835
1836 type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
1837
1838
1839
1840 InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
1841
1842
1843
1844
1845
1846
1847
1848
1849
1850
1851
1852
1853
1854
1855
1856
1857
1858
1859
1860
1861
1862 RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
1863
1864
1865
1866
1867
1868 ForceSendFields []string `json:"-"`
1869
1870
1871
1872
1873 NullFields []string `json:"-"`
1874 }
1875
1876 func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
1877 type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
1878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1879 }
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889 type GoogleCloudDialogflowCxV3Fulfillment struct {
1890
1891
1892
1893 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
1894
1895 ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
1896
1897
1898
1899
1900 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
1901
1902 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
1903
1904
1905
1906
1907
1908
1909
1910 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
1911
1912 SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
1913
1914
1915
1916
1917
1918 Tag string `json:"tag,omitempty"`
1919
1920
1921 Webhook string `json:"webhook,omitempty"`
1922
1923
1924
1925
1926
1927 ForceSendFields []string `json:"-"`
1928
1929
1930
1931
1932 NullFields []string `json:"-"`
1933 }
1934
1935 func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
1936 type NoMethod GoogleCloudDialogflowCxV3Fulfillment
1937 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1938 }
1939
1940
1941
1942
1943 type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
1944
1945 Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
1946
1947
1948
1949
1950
1951 ForceSendFields []string `json:"-"`
1952
1953
1954
1955
1956 NullFields []string `json:"-"`
1957 }
1958
1959 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
1960 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
1961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1962 }
1963
1964
1965
1966
1967 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
1968
1969 CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
1970
1971
1972
1973
1974 Condition string `json:"condition,omitempty"`
1975
1976
1977
1978
1979
1980 ForceSendFields []string `json:"-"`
1981
1982
1983
1984
1985 NullFields []string `json:"-"`
1986 }
1987
1988 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
1989 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
1990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1991 }
1992
1993
1994
1995 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
1996
1997 AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
1998
1999 Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
2000
2001
2002
2003
2004
2005 ForceSendFields []string `json:"-"`
2006
2007
2008
2009
2010 NullFields []string `json:"-"`
2011 }
2012
2013 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
2014 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
2015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2016 }
2017
2018
2019
2020 type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
2021
2022 Parameter string `json:"parameter,omitempty"`
2023
2024 Value interface{} `json:"value,omitempty"`
2025
2026
2027
2028
2029
2030 ForceSendFields []string `json:"-"`
2031
2032
2033
2034
2035 NullFields []string `json:"-"`
2036 }
2037
2038 func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
2039 type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
2040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2041 }
2042
2043
2044
2045
2046 type GoogleCloudDialogflowCxV3GcsDestination struct {
2047
2048
2049
2050 Uri string `json:"uri,omitempty"`
2051
2052
2053
2054
2055
2056 ForceSendFields []string `json:"-"`
2057
2058
2059
2060
2061 NullFields []string `json:"-"`
2062 }
2063
2064 func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
2065 type NoMethod GoogleCloudDialogflowCxV3GcsDestination
2066 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2067 }
2068
2069
2070
2071 type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
2072
2073
2074
2075
2076
2077
2078
2079 State string `json:"state,omitempty"`
2080
2081
2082
2083
2084
2085 ForceSendFields []string `json:"-"`
2086
2087
2088
2089
2090 NullFields []string `json:"-"`
2091 }
2092
2093 func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
2094 type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
2095 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2096 }
2097
2098
2099
2100 type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
2101
2102 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2103
2104
2105
2106
2107
2108 ForceSendFields []string `json:"-"`
2109
2110
2111
2112
2113 NullFields []string `json:"-"`
2114 }
2115
2116 func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
2117 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
2118 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2119 }
2120
2121
2122
2123 type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
2124
2125 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
2126
2127
2128
2129
2130
2131 ForceSendFields []string `json:"-"`
2132
2133
2134
2135
2136 NullFields []string `json:"-"`
2137 }
2138
2139 func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
2140 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
2141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2142 }
2143
2144
2145
2146 type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
2147 }
2148
2149
2150
2151 type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
2152
2153
2154 ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
2155
2156
2157 EntityTypes []string `json:"entityTypes,omitempty"`
2158
2159
2160
2161
2162
2163 ForceSendFields []string `json:"-"`
2164
2165
2166
2167
2168 NullFields []string `json:"-"`
2169 }
2170
2171 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
2172 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
2173 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2174 }
2175
2176
2177
2178
2179
2180 type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
2181
2182 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
2183
2184 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
2185
2186
2187
2188
2189
2190 ForceSendFields []string `json:"-"`
2191
2192
2193
2194
2195 NullFields []string `json:"-"`
2196 }
2197
2198 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
2199 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
2200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2201 }
2202
2203
2204
2205 type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
2206
2207
2208 Flow string `json:"flow,omitempty"`
2209
2210
2211
2212
2213
2214 ForceSendFields []string `json:"-"`
2215
2216
2217
2218
2219 NullFields []string `json:"-"`
2220 }
2221
2222 func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
2223 type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
2224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2225 }
2226
2227
2228
2229 type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
2230 }
2231
2232
2233
2234 type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
2235
2236
2237 ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
2238
2239
2240 Intents []string `json:"intents,omitempty"`
2241
2242
2243
2244
2245
2246 ForceSendFields []string `json:"-"`
2247
2248
2249
2250
2251 NullFields []string `json:"-"`
2252 }
2253
2254 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
2255 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
2256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2257 }
2258
2259
2260
2261
2262
2263 type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
2264
2265 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
2266
2267 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
2268
2269
2270
2271
2272
2273 ForceSendFields []string `json:"-"`
2274
2275
2276
2277
2278 NullFields []string `json:"-"`
2279 }
2280
2281 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
2282 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
2283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2284 }
2285
2286
2287
2288 type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
2289
2290 Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
2291
2292
2293
2294
2295
2296 ForceSendFields []string `json:"-"`
2297
2298
2299
2300
2301 NullFields []string `json:"-"`
2302 }
2303
2304 func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
2305 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
2306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2307 }
2308
2309
2310
2311 type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
2312
2313
2314 Names []string `json:"names,omitempty"`
2315
2316
2317
2318
2319
2320 ForceSendFields []string `json:"-"`
2321
2322
2323
2324
2325 NullFields []string `json:"-"`
2326 }
2327
2328 func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
2329 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
2330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2331 }
2332
2333
2334
2335
2336 type GoogleCloudDialogflowCxV3InlineDestination struct {
2337
2338
2339 Content string `json:"content,omitempty"`
2340
2341
2342
2343
2344
2345 ForceSendFields []string `json:"-"`
2346
2347
2348
2349
2350 NullFields []string `json:"-"`
2351 }
2352
2353 func (s *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
2354 type NoMethod GoogleCloudDialogflowCxV3InlineDestination
2355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2356 }
2357
2358
2359
2360 type GoogleCloudDialogflowCxV3InputAudioConfig struct {
2361
2362
2363
2364
2365
2366
2367
2368
2369
2370
2371
2372
2373
2374
2375
2376
2377
2378
2379
2380
2381
2382
2383
2384
2385
2386
2387
2388
2389
2390
2391
2392
2393
2394 AudioEncoding string `json:"audioEncoding,omitempty"`
2395
2396
2397 BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
2398
2399
2400
2401
2402 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
2403
2404
2405
2406 Model string `json:"model,omitempty"`
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419
2420
2421
2422
2423 ModelVariant string `json:"modelVariant,omitempty"`
2424
2425
2426
2427
2428
2429 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
2430
2431
2432
2433
2434
2435 PhraseHints []string `json:"phraseHints,omitempty"`
2436
2437
2438
2439 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
2440
2441
2442
2443
2444
2445
2446
2447 SingleUtterance bool `json:"singleUtterance,omitempty"`
2448
2449
2450
2451
2452
2453 ForceSendFields []string `json:"-"`
2454
2455
2456
2457
2458 NullFields []string `json:"-"`
2459 }
2460
2461 func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
2462 type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
2463 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2464 }
2465
2466
2467
2468
2469
2470 type GoogleCloudDialogflowCxV3Intent struct {
2471
2472
2473
2474 Description string `json:"description,omitempty"`
2475
2476
2477 DisplayName string `json:"displayName,omitempty"`
2478
2479
2480
2481
2482
2483 IsFallback bool `json:"isFallback,omitempty"`
2484
2485
2486
2487
2488
2489
2490
2491
2492
2493 Labels map[string]string `json:"labels,omitempty"`
2494
2495
2496
2497 Name string `json:"name,omitempty"`
2498
2499 Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
2500
2501
2502
2503
2504
2505 Priority int64 `json:"priority,omitempty"`
2506
2507
2508 TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
2509
2510
2511
2512
2513
2514 ForceSendFields []string `json:"-"`
2515
2516
2517
2518
2519 NullFields []string `json:"-"`
2520 }
2521
2522 func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
2523 type NoMethod GoogleCloudDialogflowCxV3Intent
2524 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2525 }
2526
2527
2528
2529 type GoogleCloudDialogflowCxV3IntentInput struct {
2530
2531
2532 Intent string `json:"intent,omitempty"`
2533
2534
2535
2536
2537
2538 ForceSendFields []string `json:"-"`
2539
2540
2541
2542
2543 NullFields []string `json:"-"`
2544 }
2545
2546 func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
2547 type NoMethod GoogleCloudDialogflowCxV3IntentInput
2548 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2549 }
2550
2551
2552 type GoogleCloudDialogflowCxV3IntentParameter struct {
2553
2554
2555
2556
2557 EntityType string `json:"entityType,omitempty"`
2558
2559
2560 Id string `json:"id,omitempty"`
2561
2562 IsList bool `json:"isList,omitempty"`
2563
2564
2565
2566
2567 Redact bool `json:"redact,omitempty"`
2568
2569
2570
2571
2572
2573 ForceSendFields []string `json:"-"`
2574
2575
2576
2577
2578 NullFields []string `json:"-"`
2579 }
2580
2581 func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
2582 type NoMethod GoogleCloudDialogflowCxV3IntentParameter
2583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2584 }
2585
2586
2587
2588 type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
2589
2590 Id string `json:"id,omitempty"`
2591
2592
2593
2594
2595
2596
2597
2598
2599
2600
2601
2602 Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
2603
2604 RepeatCount int64 `json:"repeatCount,omitempty"`
2605
2606
2607
2608
2609
2610 ForceSendFields []string `json:"-"`
2611
2612
2613
2614
2615 NullFields []string `json:"-"`
2616 }
2617
2618 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
2619 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
2620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2621 }
2622
2623
2624
2625 type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
2626
2627
2628 ParameterId string `json:"parameterId,omitempty"`
2629
2630 Text string `json:"text,omitempty"`
2631
2632
2633
2634
2635
2636 ForceSendFields []string `json:"-"`
2637
2638
2639
2640
2641 NullFields []string `json:"-"`
2642 }
2643
2644 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
2645 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
2646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2647 }
2648
2649
2650
2651
2652 type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
2653
2654 DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
2655
2656 Enabled bool `json:"enabled,omitempty"`
2657
2658
2659 TargetFlow string `json:"targetFlow,omitempty"`
2660
2661
2662 TargetPage string `json:"targetPage,omitempty"`
2663
2664
2665
2666
2667
2668 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
2669
2670
2671
2672
2673
2674 ForceSendFields []string `json:"-"`
2675
2676
2677
2678
2679 NullFields []string `json:"-"`
2680 }
2681
2682 func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
2683 type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
2684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2685 }
2686
2687
2688
2689 type GoogleCloudDialogflowCxV3LanguageInfo struct {
2690
2691
2692 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
2693
2694 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
2695
2696
2697 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
2698
2699
2700
2701
2702
2703 ForceSendFields []string `json:"-"`
2704
2705
2706
2707
2708 NullFields []string `json:"-"`
2709 }
2710
2711 func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
2712 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
2713 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2714 }
2715
2716 func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
2717 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
2718 var s1 struct {
2719 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
2720 *NoMethod
2721 }
2722 s1.NoMethod = (*NoMethod)(s)
2723 if err := json.Unmarshal(data, &s1); err != nil {
2724 return err
2725 }
2726 s.ConfidenceScore = float64(s1.ConfidenceScore)
2727 return nil
2728 }
2729
2730
2731
2732
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743 type GoogleCloudDialogflowCxV3Page struct {
2744
2745
2746
2747 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
2748
2749
2750 Description string `json:"description,omitempty"`
2751
2752
2753 DisplayName string `json:"displayName,omitempty"`
2754
2755
2756 EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
2757
2758
2759 EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
2760
2761
2762 Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
2763
2764 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
2765
2766
2767
2768 Name string `json:"name,omitempty"`
2769
2770
2771
2772
2773
2774
2775
2776
2777
2778
2779
2780
2781 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
2782
2783
2784
2785
2786
2787
2788
2789
2790
2791
2792 TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
2793
2794
2795
2796
2797
2798 ForceSendFields []string `json:"-"`
2799
2800
2801
2802
2803 NullFields []string `json:"-"`
2804 }
2805
2806 func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
2807 type NoMethod GoogleCloudDialogflowCxV3Page
2808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2809 }
2810
2811
2812
2813 type GoogleCloudDialogflowCxV3PageInfo struct {
2814
2815
2816
2817 CurrentPage string `json:"currentPage,omitempty"`
2818
2819
2820 DisplayName string `json:"displayName,omitempty"`
2821
2822
2823 FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
2824
2825
2826
2827
2828
2829 ForceSendFields []string `json:"-"`
2830
2831
2832
2833
2834 NullFields []string `json:"-"`
2835 }
2836
2837 func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
2838 type NoMethod GoogleCloudDialogflowCxV3PageInfo
2839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2840 }
2841
2842
2843 type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
2844
2845
2846
2847 ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
2848
2849
2850
2851
2852
2853 ForceSendFields []string `json:"-"`
2854
2855
2856
2857
2858 NullFields []string `json:"-"`
2859 }
2860
2861 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
2862 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
2863 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2864 }
2865
2866
2867
2868 type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
2869
2870
2871
2872 DisplayName string `json:"displayName,omitempty"`
2873
2874
2875
2876 JustCollected bool `json:"justCollected,omitempty"`
2877
2878
2879
2880
2881 Required bool `json:"required,omitempty"`
2882
2883
2884
2885
2886
2887
2888
2889
2890
2891
2892
2893
2894 State string `json:"state,omitempty"`
2895
2896
2897
2898 Value interface{} `json:"value,omitempty"`
2899
2900
2901
2902
2903
2904 ForceSendFields []string `json:"-"`
2905
2906
2907
2908
2909 NullFields []string `json:"-"`
2910 }
2911
2912 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
2913 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
2914 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2915 }
2916
2917
2918
2919
2920
2921
2922
2923 type GoogleCloudDialogflowCxV3QueryInput struct {
2924
2925 Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
2926
2927 Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
2928
2929 Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
2930
2931 Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
2932
2933
2934
2935
2936 LanguageCode string `json:"languageCode,omitempty"`
2937
2938 Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
2939
2940
2941
2942
2943
2944 ForceSendFields []string `json:"-"`
2945
2946
2947
2948
2949 NullFields []string `json:"-"`
2950 }
2951
2952 func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
2953 type NoMethod GoogleCloudDialogflowCxV3QueryInput
2954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2955 }
2956
2957
2958
2959 type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
2960
2961 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2962
2963
2964
2965
2966
2967 ForceSendFields []string `json:"-"`
2968
2969
2970
2971
2972 NullFields []string `json:"-"`
2973 }
2974
2975 func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
2976 type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
2977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2978 }
2979
2980
2981
2982
2983
2984
2985
2986
2987
2988
2989
2990
2991
2992
2993 type GoogleCloudDialogflowCxV3ResponseMessage struct {
2994
2995
2996
2997 Channel string `json:"channel,omitempty"`
2998
2999 ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
3000
3001
3002
3003
3004
3005 EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
3006
3007
3008 KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
3009
3010 LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
3011
3012
3013
3014
3015 MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
3016
3017
3018
3019 OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
3020
3021 Payload googleapi.RawMessage `json:"payload,omitempty"`
3022
3023
3024
3025 PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
3026
3027
3028
3029
3030
3031
3032
3033
3034 ResponseType string `json:"responseType,omitempty"`
3035
3036
3037 TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
3038
3039 Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
3040
3041
3042
3043
3044
3045 ForceSendFields []string `json:"-"`
3046
3047
3048
3049
3050 NullFields []string `json:"-"`
3051 }
3052
3053 func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
3054 type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
3055 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3056 }
3057
3058
3059
3060
3061
3062
3063
3064
3065
3066
3067
3068 type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
3069
3070 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3071
3072
3073
3074
3075
3076 ForceSendFields []string `json:"-"`
3077
3078
3079
3080
3081 NullFields []string `json:"-"`
3082 }
3083
3084 func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
3085 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
3086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3087 }
3088
3089
3090
3091
3092 type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
3093 }
3094
3095
3096
3097
3098
3099 type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
3100 }
3101
3102
3103
3104
3105
3106
3107
3108
3109
3110 type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
3111
3112
3113 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
3114
3115
3116
3117
3118
3119 ForceSendFields []string `json:"-"`
3120
3121
3122
3123
3124 NullFields []string `json:"-"`
3125 }
3126
3127 func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
3128 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
3129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3130 }
3131
3132
3133
3134
3135
3136
3137 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
3138
3139 Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
3140
3141
3142
3143
3144
3145 ForceSendFields []string `json:"-"`
3146
3147
3148
3149
3150 NullFields []string `json:"-"`
3151 }
3152
3153 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
3154 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
3155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3156 }
3157
3158
3159
3160 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
3161
3162
3163
3164 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3165
3166
3167 Audio string `json:"audio,omitempty"`
3168
3169
3170 Uri string `json:"uri,omitempty"`
3171
3172
3173
3174
3175
3176 ForceSendFields []string `json:"-"`
3177
3178
3179
3180
3181 NullFields []string `json:"-"`
3182 }
3183
3184 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
3185 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
3186 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3187 }
3188
3189
3190
3191
3192 type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
3193
3194
3195
3196 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3197
3198
3199 Ssml string `json:"ssml,omitempty"`
3200
3201 Text string `json:"text,omitempty"`
3202
3203
3204
3205
3206
3207 ForceSendFields []string `json:"-"`
3208
3209
3210
3211
3212 NullFields []string `json:"-"`
3213 }
3214
3215 func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
3216 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
3217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3218 }
3219
3220
3221
3222 type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
3223
3224
3225
3226 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3227
3228
3229 AudioUri string `json:"audioUri,omitempty"`
3230
3231
3232
3233
3234
3235 ForceSendFields []string `json:"-"`
3236
3237
3238
3239
3240 NullFields []string `json:"-"`
3241 }
3242
3243 func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
3244 type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
3245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3246 }
3247
3248
3249
3250
3251 type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
3252
3253
3254 PhoneNumber string `json:"phoneNumber,omitempty"`
3255
3256
3257
3258
3259
3260 ForceSendFields []string `json:"-"`
3261
3262
3263
3264
3265 NullFields []string `json:"-"`
3266 }
3267
3268 func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
3269 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
3270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3271 }
3272
3273
3274 type GoogleCloudDialogflowCxV3ResponseMessageText struct {
3275
3276
3277
3278 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
3279
3280 Text []string `json:"text,omitempty"`
3281
3282
3283
3284
3285
3286 ForceSendFields []string `json:"-"`
3287
3288
3289
3290
3291 NullFields []string `json:"-"`
3292 }
3293
3294 func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
3295 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
3296 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3297 }
3298
3299
3300
3301 type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
3302
3303 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
3304
3305
3306
3307
3308
3309 ForceSendFields []string `json:"-"`
3310
3311
3312
3313
3314 NullFields []string `json:"-"`
3315 }
3316
3317 func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
3318 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
3319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3320 }
3321
3322
3323
3324 type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
3325
3326 ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
3327
3328
3329
3330
3331
3332 ForceSendFields []string `json:"-"`
3333
3334
3335
3336
3337 NullFields []string `json:"-"`
3338 }
3339
3340 func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
3341 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
3342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3343 }
3344
3345
3346
3347
3348 type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
3349 }
3350
3351
3352
3353 type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
3354
3355 Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
3356
3357
3358
3359
3360
3361 ForceSendFields []string `json:"-"`
3362
3363
3364
3365
3366 NullFields []string `json:"-"`
3367 }
3368
3369 func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
3370 type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
3371 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3372 }
3373
3374
3375
3376 type GoogleCloudDialogflowCxV3SessionInfo struct {
3377
3378
3379
3380
3381
3382 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
3383
3384
3385
3386
3387
3388 Session string `json:"session,omitempty"`
3389
3390
3391
3392
3393
3394 ForceSendFields []string `json:"-"`
3395
3396
3397
3398
3399 NullFields []string `json:"-"`
3400 }
3401
3402 func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
3403 type NoMethod GoogleCloudDialogflowCxV3SessionInfo
3404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3405 }
3406
3407
3408 type GoogleCloudDialogflowCxV3TestCase struct {
3409
3410 CreationTime string `json:"creationTime,omitempty"`
3411
3412
3413 DisplayName string `json:"displayName,omitempty"`
3414
3415 LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
3416
3417
3418
3419 Name string `json:"name,omitempty"`
3420
3421
3422 Notes string `json:"notes,omitempty"`
3423
3424
3425
3426 Tags []string `json:"tags,omitempty"`
3427
3428
3429
3430 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
3431
3432 TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
3433
3434
3435
3436
3437
3438 ForceSendFields []string `json:"-"`
3439
3440
3441
3442
3443 NullFields []string `json:"-"`
3444 }
3445
3446 func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
3447 type NoMethod GoogleCloudDialogflowCxV3TestCase
3448 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3449 }
3450
3451
3452 type GoogleCloudDialogflowCxV3TestCaseError struct {
3453
3454 Status *GoogleRpcStatus `json:"status,omitempty"`
3455
3456 TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
3457
3458
3459
3460
3461
3462 ForceSendFields []string `json:"-"`
3463
3464
3465
3466
3467 NullFields []string `json:"-"`
3468 }
3469
3470 func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
3471 type NoMethod GoogleCloudDialogflowCxV3TestCaseError
3472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3473 }
3474
3475
3476
3477 type GoogleCloudDialogflowCxV3TestCaseResult struct {
3478
3479
3480 ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
3481
3482
3483 Environment string `json:"environment,omitempty"`
3484
3485
3486 Name string `json:"name,omitempty"`
3487
3488
3489
3490
3491
3492
3493 TestResult string `json:"testResult,omitempty"`
3494
3495 TestTime string `json:"testTime,omitempty"`
3496
3497
3498
3499
3500
3501 ForceSendFields []string `json:"-"`
3502
3503
3504
3505
3506 NullFields []string `json:"-"`
3507 }
3508
3509 func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
3510 type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
3511 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3512 }
3513
3514
3515
3516 type GoogleCloudDialogflowCxV3TestConfig struct {
3517
3518
3519
3520
3521
3522 Flow string `json:"flow,omitempty"`
3523
3524
3525
3526
3527
3528 Page string `json:"page,omitempty"`
3529
3530
3531 TrackingParameters []string `json:"trackingParameters,omitempty"`
3532
3533
3534
3535
3536
3537 ForceSendFields []string `json:"-"`
3538
3539
3540
3541
3542 NullFields []string `json:"-"`
3543 }
3544
3545 func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
3546 type NoMethod GoogleCloudDialogflowCxV3TestConfig
3547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3548 }
3549
3550
3551 type GoogleCloudDialogflowCxV3TestError struct {
3552
3553 Status *GoogleRpcStatus `json:"status,omitempty"`
3554
3555 TestCase string `json:"testCase,omitempty"`
3556
3557 TestTime string `json:"testTime,omitempty"`
3558
3559
3560
3561
3562
3563 ForceSendFields []string `json:"-"`
3564
3565
3566
3567
3568 NullFields []string `json:"-"`
3569 }
3570
3571 func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
3572 type NoMethod GoogleCloudDialogflowCxV3TestError
3573 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3574 }
3575
3576
3577
3578 type GoogleCloudDialogflowCxV3TestRunDifference struct {
3579
3580
3581 Description string `json:"description,omitempty"`
3582
3583
3584
3585
3586
3587
3588
3589
3590
3591 Type string `json:"type,omitempty"`
3592
3593
3594
3595
3596
3597 ForceSendFields []string `json:"-"`
3598
3599
3600
3601
3602 NullFields []string `json:"-"`
3603 }
3604
3605 func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
3606 type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
3607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3608 }
3609
3610
3611
3612 type GoogleCloudDialogflowCxV3TextInput struct {
3613
3614 Text string `json:"text,omitempty"`
3615
3616
3617
3618
3619
3620 ForceSendFields []string `json:"-"`
3621
3622
3623
3624
3625 NullFields []string `json:"-"`
3626 }
3627
3628 func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
3629 type NoMethod GoogleCloudDialogflowCxV3TextInput
3630 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3631 }
3632
3633
3634
3635
3636
3637
3638
3639
3640
3641 type GoogleCloudDialogflowCxV3TransitionRoute struct {
3642
3643
3644
3645
3646
3647
3648 Condition string `json:"condition,omitempty"`
3649
3650
3651 Description string `json:"description,omitempty"`
3652
3653
3654
3655
3656
3657 Intent string `json:"intent,omitempty"`
3658
3659 Name string `json:"name,omitempty"`
3660
3661
3662 TargetFlow string `json:"targetFlow,omitempty"`
3663
3664
3665 TargetPage string `json:"targetPage,omitempty"`
3666
3667
3668
3669 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
3670
3671
3672
3673
3674
3675 ForceSendFields []string `json:"-"`
3676
3677
3678
3679
3680 NullFields []string `json:"-"`
3681 }
3682
3683 func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
3684 type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
3685 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3686 }
3687
3688
3689
3690 type GoogleCloudDialogflowCxV3TurnSignals struct {
3691
3692 AgentEscalated bool `json:"agentEscalated,omitempty"`
3693
3694 DtmfUsed bool `json:"dtmfUsed,omitempty"`
3695
3696
3697
3698
3699
3700
3701 FailureReasons []string `json:"failureReasons,omitempty"`
3702
3703 NoMatch bool `json:"noMatch,omitempty"`
3704
3705 NoUserInput bool `json:"noUserInput,omitempty"`
3706
3707 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
3708
3709
3710 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
3711
3712
3713 SentimentScore float64 `json:"sentimentScore,omitempty"`
3714
3715 UserEscalated bool `json:"userEscalated,omitempty"`
3716
3717
3718 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
3719
3720
3721
3722
3723
3724 ForceSendFields []string `json:"-"`
3725
3726
3727
3728
3729 NullFields []string `json:"-"`
3730 }
3731
3732 func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
3733 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
3734 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3735 }
3736
3737 func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
3738 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
3739 var s1 struct {
3740 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
3741 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
3742 *NoMethod
3743 }
3744 s1.NoMethod = (*NoMethod)(s)
3745 if err := json.Unmarshal(data, &s1); err != nil {
3746 return err
3747 }
3748 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
3749 s.SentimentScore = float64(s1.SentimentScore)
3750 return nil
3751 }
3752
3753
3754
3755 type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
3756
3757 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3758
3759
3760
3761
3762
3763 ForceSendFields []string `json:"-"`
3764
3765
3766
3767
3768 NullFields []string `json:"-"`
3769 }
3770
3771 func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3772 type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
3773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3774 }
3775
3776
3777
3778
3779
3780 type GoogleCloudDialogflowCxV3Webhook struct {
3781
3782 Disabled bool `json:"disabled,omitempty"`
3783
3784
3785 DisplayName string `json:"displayName,omitempty"`
3786
3787 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
3788
3789
3790
3791 Name string `json:"name,omitempty"`
3792
3793
3794 ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
3795
3796
3797
3798 Timeout string `json:"timeout,omitempty"`
3799
3800
3801
3802
3803
3804 ForceSendFields []string `json:"-"`
3805
3806
3807
3808
3809 NullFields []string `json:"-"`
3810 }
3811
3812 func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
3813 type NoMethod GoogleCloudDialogflowCxV3Webhook
3814 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3815 }
3816
3817
3818
3819 type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
3820
3821
3822
3823
3824
3825
3826
3827
3828 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
3829
3830
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841 HttpMethod string `json:"httpMethod,omitempty"`
3842
3843
3844
3845 OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
3846
3847
3848
3849 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
3850
3851 Password string `json:"password,omitempty"`
3852
3853
3854 RequestBody string `json:"requestBody,omitempty"`
3855
3856
3857 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
3858
3859
3860
3861
3862
3863
3864
3865
3866
3867
3868
3869
3870
3871
3872
3873
3874
3875
3876
3877 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
3878
3879
3880 Uri string `json:"uri,omitempty"`
3881
3882 Username string `json:"username,omitempty"`
3883
3884
3885
3886
3887
3888
3889 WebhookType string `json:"webhookType,omitempty"`
3890
3891
3892
3893
3894
3895 ForceSendFields []string `json:"-"`
3896
3897
3898
3899
3900 NullFields []string `json:"-"`
3901 }
3902
3903 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
3904 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
3905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3906 }
3907
3908
3909
3910
3911 type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
3912
3913 ClientId string `json:"clientId,omitempty"`
3914
3915
3916 ClientSecret string `json:"clientSecret,omitempty"`
3917
3918 Scopes []string `json:"scopes,omitempty"`
3919
3920
3921 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
3922
3923
3924
3925
3926
3927 ForceSendFields []string `json:"-"`
3928
3929
3930
3931
3932 NullFields []string `json:"-"`
3933 }
3934
3935 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
3936 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
3937 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3938 }
3939
3940
3941
3942
3943
3944
3945 type GoogleCloudDialogflowCxV3WebhookRequest struct {
3946
3947
3948 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
3949
3950
3951 DtmfDigits string `json:"dtmfDigits,omitempty"`
3952
3953
3954 FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
3955
3956 IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
3957
3958 LanguageCode string `json:"languageCode,omitempty"`
3959
3960 LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
3961
3962
3963
3964 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3965
3966 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3967
3968 Payload googleapi.RawMessage `json:"payload,omitempty"`
3969
3970
3971
3972 SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
3973
3974 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3975
3976
3977 Text string `json:"text,omitempty"`
3978
3979
3980 Transcript string `json:"transcript,omitempty"`
3981
3982
3983 TriggerEvent string `json:"triggerEvent,omitempty"`
3984
3985
3986
3987 TriggerIntent string `json:"triggerIntent,omitempty"`
3988
3989
3990
3991
3992
3993 ForceSendFields []string `json:"-"`
3994
3995
3996
3997
3998 NullFields []string `json:"-"`
3999 }
4000
4001 func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
4002 type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
4003 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4004 }
4005
4006
4007
4008 type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
4009
4010
4011
4012
4013 Tag string `json:"tag,omitempty"`
4014
4015
4016
4017
4018
4019 ForceSendFields []string `json:"-"`
4020
4021
4022
4023
4024 NullFields []string `json:"-"`
4025 }
4026
4027 func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
4028 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
4029 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4030 }
4031
4032
4033
4034 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
4035
4036
4037 Confidence float64 `json:"confidence,omitempty"`
4038
4039 DisplayName string `json:"displayName,omitempty"`
4040
4041
4042 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
4043
4044
4045
4046
4047 Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
4048
4049
4050
4051
4052
4053 ForceSendFields []string `json:"-"`
4054
4055
4056
4057
4058 NullFields []string `json:"-"`
4059 }
4060
4061 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
4062 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
4063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4064 }
4065
4066 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
4067 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
4068 var s1 struct {
4069 Confidence gensupport.JSONFloat64 `json:"confidence"`
4070 *NoMethod
4071 }
4072 s1.NoMethod = (*NoMethod)(s)
4073 if err := json.Unmarshal(data, &s1); err != nil {
4074 return err
4075 }
4076 s.Confidence = float64(s1.Confidence)
4077 return nil
4078 }
4079
4080
4081
4082 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
4083
4084
4085 OriginalValue string `json:"originalValue,omitempty"`
4086
4087
4088 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
4089
4090
4091
4092
4093
4094 ForceSendFields []string `json:"-"`
4095
4096
4097
4098
4099 NullFields []string `json:"-"`
4100 }
4101
4102 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
4103 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
4104 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4105 }
4106
4107
4108
4109 type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
4110
4111
4112
4113 Magnitude float64 `json:"magnitude,omitempty"`
4114
4115
4116 Score float64 `json:"score,omitempty"`
4117
4118
4119
4120
4121
4122 ForceSendFields []string `json:"-"`
4123
4124
4125
4126
4127 NullFields []string `json:"-"`
4128 }
4129
4130 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
4131 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
4132 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4133 }
4134
4135 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
4136 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
4137 var s1 struct {
4138 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
4139 Score gensupport.JSONFloat64 `json:"score"`
4140 *NoMethod
4141 }
4142 s1.NoMethod = (*NoMethod)(s)
4143 if err := json.Unmarshal(data, &s1); err != nil {
4144 return err
4145 }
4146 s.Magnitude = float64(s1.Magnitude)
4147 s.Score = float64(s1.Score)
4148 return nil
4149 }
4150
4151
4152
4153 type GoogleCloudDialogflowCxV3WebhookResponse struct {
4154
4155
4156
4157 FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
4158
4159
4160 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
4161
4162 Payload googleapi.RawMessage `json:"payload,omitempty"`
4163
4164
4165 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
4166
4167
4168 TargetFlow string `json:"targetFlow,omitempty"`
4169
4170
4171 TargetPage string `json:"targetPage,omitempty"`
4172
4173
4174
4175
4176
4177 ForceSendFields []string `json:"-"`
4178
4179
4180
4181
4182 NullFields []string `json:"-"`
4183 }
4184
4185 func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
4186 type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
4187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4188 }
4189
4190
4191
4192 type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
4193
4194
4195
4196
4197
4198
4199
4200
4201 MergeBehavior string `json:"mergeBehavior,omitempty"`
4202
4203 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
4204
4205
4206
4207
4208
4209 ForceSendFields []string `json:"-"`
4210
4211
4212
4213
4214 NullFields []string `json:"-"`
4215 }
4216
4217 func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
4218 type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
4219 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4220 }
4221
4222
4223
4224
4225 type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
4226
4227 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
4228
4229
4230
4231
4232 Service string `json:"service,omitempty"`
4233
4234
4235
4236
4237
4238 ForceSendFields []string `json:"-"`
4239
4240
4241
4242
4243 NullFields []string `json:"-"`
4244 }
4245
4246 func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
4247 type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
4248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4249 }
4250
4251
4252
4253
4254
4255
4256
4257
4258
4259
4260 type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
4261
4262
4263
4264 AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
4265
4266
4267 DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
4268
4269
4270
4271 LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
4272
4273
4274 SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
4275
4276
4277
4278
4279
4280 ForceSendFields []string `json:"-"`
4281
4282
4283
4284
4285 NullFields []string `json:"-"`
4286 }
4287
4288 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
4289 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
4290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4291 }
4292
4293
4294
4295 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
4296
4297
4298
4299
4300
4301
4302 Enabled bool `json:"enabled,omitempty"`
4303
4304
4305 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
4306
4307 FinishDigit string `json:"finishDigit,omitempty"`
4308
4309
4310 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
4311
4312 MaxDigits int64 `json:"maxDigits,omitempty"`
4313
4314
4315
4316
4317
4318 ForceSendFields []string `json:"-"`
4319
4320
4321
4322
4323 NullFields []string `json:"-"`
4324 }
4325
4326 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
4327 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
4328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4329 }
4330
4331
4332
4333 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
4334
4335
4336 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
4337
4338 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
4339
4340
4341
4342
4343
4344 ForceSendFields []string `json:"-"`
4345
4346
4347
4348
4349 NullFields []string `json:"-"`
4350 }
4351
4352 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
4353 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
4354 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4355 }
4356
4357
4358
4359 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
4360
4361
4362 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
4363
4364
4365
4366
4367 Models map[string]string `json:"models,omitempty"`
4368
4369 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
4370
4371
4372 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
4373
4374
4375
4376
4377
4378 ForceSendFields []string `json:"-"`
4379
4380
4381
4382
4383 NullFields []string `json:"-"`
4384 }
4385
4386 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
4387 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
4388 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4389 }
4390
4391
4392
4393 type GoogleCloudDialogflowCxV3beta1AudioInput struct {
4394
4395
4396
4397
4398
4399
4400 Audio string `json:"audio,omitempty"`
4401
4402
4403 Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
4404
4405
4406
4407
4408
4409 ForceSendFields []string `json:"-"`
4410
4411
4412
4413
4414 NullFields []string `json:"-"`
4415 }
4416
4417 func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
4418 type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
4419 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4420 }
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434
4435
4436
4437
4438 type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
4439
4440
4441 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
4442
4443
4444 TotalDuration string `json:"totalDuration,omitempty"`
4445
4446
4447
4448
4449
4450 ForceSendFields []string `json:"-"`
4451
4452
4453
4454
4455 NullFields []string `json:"-"`
4456 }
4457
4458 func (s *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
4459 type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
4460 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4461 }
4462
4463
4464
4465 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
4466
4467 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
4468
4469
4470
4471
4472
4473 ForceSendFields []string `json:"-"`
4474
4475
4476
4477
4478 NullFields []string `json:"-"`
4479 }
4480
4481 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
4482 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
4483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4484 }
4485
4486
4487
4488 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
4489
4490
4491 Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
4492
4493
4494
4495
4496
4497 ForceSendFields []string `json:"-"`
4498
4499
4500
4501
4502 NullFields []string `json:"-"`
4503 }
4504
4505 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
4506 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
4507 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4508 }
4509
4510
4511
4512 type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
4513
4514
4515 Name string `json:"name,omitempty"`
4516
4517
4518
4519
4520
4521
4522
4523
4524 Result string `json:"result,omitempty"`
4525
4526 RunTime string `json:"runTime,omitempty"`
4527
4528
4529 TestCaseResults []string `json:"testCaseResults,omitempty"`
4530
4531
4532
4533
4534
4535 ForceSendFields []string `json:"-"`
4536
4537
4538
4539
4540 NullFields []string `json:"-"`
4541 }
4542
4543 func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
4544 type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
4545 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4546 }
4547
4548
4549
4550
4551 type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
4552
4553 TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
4554
4555
4556
4557
4558
4559 ForceSendFields []string `json:"-"`
4560
4561
4562
4563
4564 NullFields []string `json:"-"`
4565 }
4566
4567 func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
4568 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
4569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4570 }
4571
4572
4573
4574
4575 type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
4576
4577 UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
4578
4579 VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
4580
4581
4582
4583
4584
4585 ForceSendFields []string `json:"-"`
4586
4587
4588
4589
4590 NullFields []string `json:"-"`
4591 }
4592
4593 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
4594 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
4595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4596 }
4597
4598
4599
4600 type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
4601
4602 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
4603
4604
4605 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
4606
4607 Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
4608
4609
4610
4611 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
4612
4613
4614
4615
4616
4617 ForceSendFields []string `json:"-"`
4618
4619
4620
4621
4622 NullFields []string `json:"-"`
4623 }
4624
4625 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
4626 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
4627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4628 }
4629
4630
4631
4632 type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
4633
4634
4635 CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
4636
4637
4638 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
4639
4640
4641
4642 Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
4643
4644
4645 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
4646
4647
4648 Status *GoogleRpcStatus `json:"status,omitempty"`
4649
4650 TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
4651
4652
4653 TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
4654
4655
4656
4657
4658
4659 ForceSendFields []string `json:"-"`
4660
4661
4662
4663
4664 NullFields []string `json:"-"`
4665 }
4666
4667 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
4668 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
4669 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4670 }
4671
4672
4673
4674 type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
4675
4676 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4677
4678
4679
4680
4681
4682 ForceSendFields []string `json:"-"`
4683
4684
4685
4686
4687 NullFields []string `json:"-"`
4688 }
4689
4690 func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
4691 type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
4692 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4693 }
4694
4695
4696
4697 type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
4698
4699
4700 Version string `json:"version,omitempty"`
4701
4702
4703
4704
4705
4706 ForceSendFields []string `json:"-"`
4707
4708
4709
4710
4711 NullFields []string `json:"-"`
4712 }
4713
4714 func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
4715 type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
4716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4717 }
4718
4719
4720
4721
4722 type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
4723
4724
4725
4726
4727 DataStore string `json:"dataStore,omitempty"`
4728
4729
4730
4731
4732
4733
4734
4735
4736
4737 DataStoreType string `json:"dataStoreType,omitempty"`
4738
4739
4740
4741
4742
4743 ForceSendFields []string `json:"-"`
4744
4745
4746
4747
4748 NullFields []string `json:"-"`
4749 }
4750
4751 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
4752 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
4753 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4754 }
4755
4756
4757
4758 type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
4759
4760 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
4761
4762
4763
4764
4765
4766 ForceSendFields []string `json:"-"`
4767
4768
4769
4770
4771 NullFields []string `json:"-"`
4772 }
4773
4774 func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
4775 type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
4776 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4777 }
4778
4779
4780
4781 type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
4782
4783 TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
4784
4785
4786
4787
4788
4789 ForceSendFields []string `json:"-"`
4790
4791
4792
4793
4794 NullFields []string `json:"-"`
4795 }
4796
4797 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
4798 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
4799 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4800 }
4801
4802
4803
4804 type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
4805
4806
4807 Deployment string `json:"deployment,omitempty"`
4808
4809 Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
4810
4811
4812
4813
4814
4815 ForceSendFields []string `json:"-"`
4816
4817
4818
4819
4820 NullFields []string `json:"-"`
4821 }
4822
4823 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
4824 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
4825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4826 }
4827
4828
4829
4830 type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
4831
4832 Digits string `json:"digits,omitempty"`
4833
4834 FinishDigit string `json:"finishDigit,omitempty"`
4835
4836
4837
4838
4839
4840 ForceSendFields []string `json:"-"`
4841
4842
4843
4844
4845 NullFields []string `json:"-"`
4846 }
4847
4848 func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
4849 type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
4850 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4851 }
4852
4853
4854
4855
4856
4857
4858
4859
4860
4861 type GoogleCloudDialogflowCxV3beta1Environment struct {
4862
4863
4864 Description string `json:"description,omitempty"`
4865
4866
4867 DisplayName string `json:"displayName,omitempty"`
4868
4869
4870 Name string `json:"name,omitempty"`
4871
4872
4873 TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
4874
4875 UpdateTime string `json:"updateTime,omitempty"`
4876
4877
4878
4879 VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
4880
4881 WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
4882
4883
4884
4885
4886
4887 ForceSendFields []string `json:"-"`
4888
4889
4890
4891
4892 NullFields []string `json:"-"`
4893 }
4894
4895 func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
4896 type NoMethod GoogleCloudDialogflowCxV3beta1Environment
4897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4898 }
4899
4900
4901
4902 type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
4903
4904
4905 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
4906
4907
4908
4909 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
4910
4911
4912
4913 TestCases []string `json:"testCases,omitempty"`
4914
4915
4916
4917
4918
4919 ForceSendFields []string `json:"-"`
4920
4921
4922
4923
4924 NullFields []string `json:"-"`
4925 }
4926
4927 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
4928 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
4929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4930 }
4931
4932
4933
4934 type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
4935
4936 Version string `json:"version,omitempty"`
4937
4938
4939
4940
4941
4942 ForceSendFields []string `json:"-"`
4943
4944
4945
4946
4947 NullFields []string `json:"-"`
4948 }
4949
4950 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
4951 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
4952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4953 }
4954
4955
4956
4957 type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
4958
4959
4960
4961 WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
4962
4963
4964
4965
4966
4967 ForceSendFields []string `json:"-"`
4968
4969
4970
4971
4972 NullFields []string `json:"-"`
4973 }
4974
4975 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
4976 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
4977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4978 }
4979
4980
4981
4982
4983
4984
4985
4986
4987 type GoogleCloudDialogflowCxV3beta1EventHandler struct {
4988
4989 Event string `json:"event,omitempty"`
4990
4991 Name string `json:"name,omitempty"`
4992
4993
4994 TargetFlow string `json:"targetFlow,omitempty"`
4995
4996
4997 TargetPage string `json:"targetPage,omitempty"`
4998
4999
5000
5001
5002 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
5003
5004
5005
5006
5007
5008 ForceSendFields []string `json:"-"`
5009
5010
5011
5012
5013 NullFields []string `json:"-"`
5014 }
5015
5016 func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
5017 type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
5018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5019 }
5020
5021
5022 type GoogleCloudDialogflowCxV3beta1EventInput struct {
5023
5024 Event string `json:"event,omitempty"`
5025
5026
5027
5028
5029
5030 ForceSendFields []string `json:"-"`
5031
5032
5033
5034
5035 NullFields []string `json:"-"`
5036 }
5037
5038 func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
5039 type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
5040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5041 }
5042
5043
5044
5045 type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
5046
5047
5048
5049 AgentContent string `json:"agentContent,omitempty"`
5050
5051
5052 AgentUri string `json:"agentUri,omitempty"`
5053
5054
5055 CommitSha string `json:"commitSha,omitempty"`
5056
5057
5058
5059
5060
5061 ForceSendFields []string `json:"-"`
5062
5063
5064
5065
5066 NullFields []string `json:"-"`
5067 }
5068
5069 func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
5070 type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
5071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5072 }
5073
5074
5075
5076 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
5077 }
5078
5079
5080
5081 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
5082
5083
5084
5085 EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
5086
5087
5088
5089 EntityTypesUri string `json:"entityTypesUri,omitempty"`
5090
5091
5092
5093
5094
5095 ForceSendFields []string `json:"-"`
5096
5097
5098
5099
5100 NullFields []string `json:"-"`
5101 }
5102
5103 func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
5104 type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
5105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5106 }
5107
5108
5109
5110 type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
5111
5112 FlowContent string `json:"flowContent,omitempty"`
5113
5114
5115 FlowUri string `json:"flowUri,omitempty"`
5116
5117
5118
5119
5120
5121 ForceSendFields []string `json:"-"`
5122
5123
5124
5125
5126 NullFields []string `json:"-"`
5127 }
5128
5129 func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
5130 type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
5131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5132 }
5133
5134
5135
5136 type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
5137 }
5138
5139
5140
5141 type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
5142
5143
5144
5145 IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
5146
5147
5148 IntentsUri string `json:"intentsUri,omitempty"`
5149
5150
5151
5152
5153
5154 ForceSendFields []string `json:"-"`
5155
5156
5157
5158
5159 NullFields []string `json:"-"`
5160 }
5161
5162 func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
5163 type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
5164 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5165 }
5166
5167
5168
5169
5170 type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
5171 }
5172
5173
5174
5175 type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
5176
5177 Content string `json:"content,omitempty"`
5178
5179
5180 GcsUri string `json:"gcsUri,omitempty"`
5181
5182
5183
5184
5185
5186 ForceSendFields []string `json:"-"`
5187
5188
5189
5190
5191 NullFields []string `json:"-"`
5192 }
5193
5194 func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
5195 type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
5196 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5197 }
5198
5199
5200
5201
5202
5203
5204 type GoogleCloudDialogflowCxV3beta1Form struct {
5205
5206 Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
5207
5208
5209
5210
5211
5212 ForceSendFields []string `json:"-"`
5213
5214
5215
5216
5217 NullFields []string `json:"-"`
5218 }
5219
5220 func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
5221 type NoMethod GoogleCloudDialogflowCxV3beta1Form
5222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5223 }
5224
5225
5226 type GoogleCloudDialogflowCxV3beta1FormParameter struct {
5227
5228
5229
5230 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
5231
5232
5233 DefaultValue interface{} `json:"defaultValue,omitempty"`
5234
5235
5236 DisplayName string `json:"displayName,omitempty"`
5237
5238
5239
5240
5241 EntityType string `json:"entityType,omitempty"`
5242
5243 FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
5244
5245 IsList bool `json:"isList,omitempty"`
5246
5247
5248
5249
5250 Redact bool `json:"redact,omitempty"`
5251
5252
5253
5254 Required bool `json:"required,omitempty"`
5255
5256
5257
5258
5259
5260 ForceSendFields []string `json:"-"`
5261
5262
5263
5264
5265 NullFields []string `json:"-"`
5266 }
5267
5268 func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
5269 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
5270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5271 }
5272
5273
5274
5275 type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
5276
5277
5278
5279 InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
5280
5281
5282
5283
5284
5285
5286
5287
5288
5289
5290
5291
5292
5293
5294
5295
5296
5297
5298
5299
5300
5301 RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
5302
5303
5304
5305
5306
5307 ForceSendFields []string `json:"-"`
5308
5309
5310
5311
5312 NullFields []string `json:"-"`
5313 }
5314
5315 func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
5316 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
5317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5318 }
5319
5320
5321
5322
5323
5324
5325
5326
5327
5328 type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
5329
5330
5331
5332 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
5333
5334 ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
5335
5336
5337
5338
5339 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
5340
5341 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
5342
5343
5344
5345
5346
5347
5348
5349 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
5350
5351 SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
5352
5353
5354
5355
5356
5357 Tag string `json:"tag,omitempty"`
5358
5359
5360 Webhook string `json:"webhook,omitempty"`
5361
5362
5363
5364
5365
5366 ForceSendFields []string `json:"-"`
5367
5368
5369
5370
5371 NullFields []string `json:"-"`
5372 }
5373
5374 func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
5375 type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
5376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5377 }
5378
5379
5380
5381
5382 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
5383
5384 Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
5385
5386
5387
5388
5389
5390 ForceSendFields []string `json:"-"`
5391
5392
5393
5394
5395 NullFields []string `json:"-"`
5396 }
5397
5398 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
5399 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
5400 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5401 }
5402
5403
5404
5405
5406 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
5407
5408 CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
5409
5410
5411
5412
5413 Condition string `json:"condition,omitempty"`
5414
5415
5416
5417
5418
5419 ForceSendFields []string `json:"-"`
5420
5421
5422
5423
5424 NullFields []string `json:"-"`
5425 }
5426
5427 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
5428 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
5429 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5430 }
5431
5432
5433
5434 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
5435
5436 AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
5437
5438 Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
5439
5440
5441
5442
5443
5444 ForceSendFields []string `json:"-"`
5445
5446
5447
5448
5449 NullFields []string `json:"-"`
5450 }
5451
5452 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
5453 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
5454 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5455 }
5456
5457
5458
5459 type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
5460
5461 Parameter string `json:"parameter,omitempty"`
5462
5463 Value interface{} `json:"value,omitempty"`
5464
5465
5466
5467
5468
5469 ForceSendFields []string `json:"-"`
5470
5471
5472
5473
5474 NullFields []string `json:"-"`
5475 }
5476
5477 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
5478 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
5479 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5480 }
5481
5482
5483
5484
5485 type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
5486
5487
5488
5489 Uri string `json:"uri,omitempty"`
5490
5491
5492
5493
5494
5495 ForceSendFields []string `json:"-"`
5496
5497
5498
5499
5500 NullFields []string `json:"-"`
5501 }
5502
5503 func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
5504 type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
5505 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5506 }
5507
5508
5509
5510 type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
5511
5512
5513
5514
5515
5516
5517
5518 State string `json:"state,omitempty"`
5519
5520
5521
5522
5523
5524 ForceSendFields []string `json:"-"`
5525
5526
5527
5528
5529 NullFields []string `json:"-"`
5530 }
5531
5532 func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
5533 type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
5534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5535 }
5536
5537
5538
5539 type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
5540
5541 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5542
5543
5544
5545
5546
5547 ForceSendFields []string `json:"-"`
5548
5549
5550
5551
5552 NullFields []string `json:"-"`
5553 }
5554
5555 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
5556 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
5557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5558 }
5559
5560
5561
5562 type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
5563
5564 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
5565
5566
5567
5568
5569
5570 ForceSendFields []string `json:"-"`
5571
5572
5573
5574
5575 NullFields []string `json:"-"`
5576 }
5577
5578 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
5579 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
5580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5581 }
5582
5583
5584
5585 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
5586 }
5587
5588
5589
5590 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
5591
5592
5593 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
5594
5595
5596 EntityTypes []string `json:"entityTypes,omitempty"`
5597
5598
5599
5600
5601
5602 ForceSendFields []string `json:"-"`
5603
5604
5605
5606
5607 NullFields []string `json:"-"`
5608 }
5609
5610 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
5611 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
5612 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5613 }
5614
5615
5616
5617
5618
5619 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
5620
5621 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
5622
5623 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
5624
5625
5626
5627
5628
5629 ForceSendFields []string `json:"-"`
5630
5631
5632
5633
5634 NullFields []string `json:"-"`
5635 }
5636
5637 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
5638 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
5639 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5640 }
5641
5642
5643
5644 type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
5645
5646
5647 Flow string `json:"flow,omitempty"`
5648
5649
5650
5651
5652
5653 ForceSendFields []string `json:"-"`
5654
5655
5656
5657
5658 NullFields []string `json:"-"`
5659 }
5660
5661 func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
5662 type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
5663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5664 }
5665
5666
5667
5668 type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
5669 }
5670
5671
5672
5673 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
5674
5675
5676 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
5677
5678
5679 Intents []string `json:"intents,omitempty"`
5680
5681
5682
5683
5684
5685 ForceSendFields []string `json:"-"`
5686
5687
5688
5689
5690 NullFields []string `json:"-"`
5691 }
5692
5693 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
5694 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
5695 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5696 }
5697
5698
5699
5700
5701
5702 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
5703
5704 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
5705
5706 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
5707
5708
5709
5710
5711
5712 ForceSendFields []string `json:"-"`
5713
5714
5715
5716
5717 NullFields []string `json:"-"`
5718 }
5719
5720 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
5721 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
5722 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5723 }
5724
5725
5726
5727 type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
5728
5729 Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
5730
5731
5732
5733
5734
5735 ForceSendFields []string `json:"-"`
5736
5737
5738
5739
5740 NullFields []string `json:"-"`
5741 }
5742
5743 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
5744 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
5745 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5746 }
5747
5748
5749
5750 type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
5751
5752
5753 Names []string `json:"names,omitempty"`
5754
5755
5756
5757
5758
5759 ForceSendFields []string `json:"-"`
5760
5761
5762
5763
5764 NullFields []string `json:"-"`
5765 }
5766
5767 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
5768 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
5769 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5770 }
5771
5772
5773
5774
5775 type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
5776
5777
5778 Content string `json:"content,omitempty"`
5779
5780
5781
5782
5783
5784 ForceSendFields []string `json:"-"`
5785
5786
5787
5788
5789 NullFields []string `json:"-"`
5790 }
5791
5792 func (s *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
5793 type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
5794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5795 }
5796
5797
5798
5799 type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
5800
5801
5802
5803
5804
5805
5806
5807
5808
5809
5810
5811
5812
5813
5814
5815
5816
5817
5818
5819
5820
5821
5822
5823
5824
5825
5826
5827
5828
5829
5830
5831
5832
5833 AudioEncoding string `json:"audioEncoding,omitempty"`
5834
5835
5836 BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
5837
5838
5839
5840
5841 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
5842
5843
5844
5845 Model string `json:"model,omitempty"`
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857
5858
5859
5860
5861
5862 ModelVariant string `json:"modelVariant,omitempty"`
5863
5864
5865
5866
5867
5868 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
5869
5870
5871
5872
5873
5874 PhraseHints []string `json:"phraseHints,omitempty"`
5875
5876
5877
5878 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
5879
5880
5881
5882
5883
5884
5885
5886 SingleUtterance bool `json:"singleUtterance,omitempty"`
5887
5888
5889
5890
5891
5892 ForceSendFields []string `json:"-"`
5893
5894
5895
5896
5897 NullFields []string `json:"-"`
5898 }
5899
5900 func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
5901 type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
5902 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5903 }
5904
5905
5906
5907
5908
5909 type GoogleCloudDialogflowCxV3beta1Intent struct {
5910
5911
5912
5913 Description string `json:"description,omitempty"`
5914
5915
5916 DisplayName string `json:"displayName,omitempty"`
5917
5918
5919
5920
5921
5922 IsFallback bool `json:"isFallback,omitempty"`
5923
5924
5925
5926
5927
5928
5929
5930
5931
5932 Labels map[string]string `json:"labels,omitempty"`
5933
5934
5935
5936 Name string `json:"name,omitempty"`
5937
5938 Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
5939
5940
5941
5942
5943
5944 Priority int64 `json:"priority,omitempty"`
5945
5946
5947 TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
5948
5949
5950
5951
5952
5953 ForceSendFields []string `json:"-"`
5954
5955
5956
5957
5958 NullFields []string `json:"-"`
5959 }
5960
5961 func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
5962 type NoMethod GoogleCloudDialogflowCxV3beta1Intent
5963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5964 }
5965
5966
5967
5968 type GoogleCloudDialogflowCxV3beta1IntentInput struct {
5969
5970
5971 Intent string `json:"intent,omitempty"`
5972
5973
5974
5975
5976
5977 ForceSendFields []string `json:"-"`
5978
5979
5980
5981
5982 NullFields []string `json:"-"`
5983 }
5984
5985 func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
5986 type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
5987 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5988 }
5989
5990
5991
5992 type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
5993
5994
5995
5996
5997 EntityType string `json:"entityType,omitempty"`
5998
5999
6000 Id string `json:"id,omitempty"`
6001
6002 IsList bool `json:"isList,omitempty"`
6003
6004
6005
6006
6007 Redact bool `json:"redact,omitempty"`
6008
6009
6010
6011
6012
6013 ForceSendFields []string `json:"-"`
6014
6015
6016
6017
6018 NullFields []string `json:"-"`
6019 }
6020
6021 func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
6022 type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
6023 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6024 }
6025
6026
6027
6028 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
6029
6030 Id string `json:"id,omitempty"`
6031
6032
6033
6034
6035
6036
6037
6038
6039
6040
6041
6042 Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
6043
6044 RepeatCount int64 `json:"repeatCount,omitempty"`
6045
6046
6047
6048
6049
6050 ForceSendFields []string `json:"-"`
6051
6052
6053
6054
6055 NullFields []string `json:"-"`
6056 }
6057
6058 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
6059 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
6060 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6061 }
6062
6063
6064
6065 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
6066
6067
6068 ParameterId string `json:"parameterId,omitempty"`
6069
6070 Text string `json:"text,omitempty"`
6071
6072
6073
6074
6075
6076 ForceSendFields []string `json:"-"`
6077
6078
6079
6080
6081 NullFields []string `json:"-"`
6082 }
6083
6084 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
6085 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
6086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6087 }
6088
6089
6090
6091
6092 type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
6093
6094 DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
6095
6096 Enabled bool `json:"enabled,omitempty"`
6097
6098
6099 TargetFlow string `json:"targetFlow,omitempty"`
6100
6101
6102 TargetPage string `json:"targetPage,omitempty"`
6103
6104
6105
6106
6107
6108 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
6109
6110
6111
6112
6113
6114 ForceSendFields []string `json:"-"`
6115
6116
6117
6118
6119 NullFields []string `json:"-"`
6120 }
6121
6122 func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
6123 type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
6124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6125 }
6126
6127
6128
6129 type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
6130
6131
6132 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
6133
6134 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
6135
6136
6137 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
6138
6139
6140
6141
6142
6143 ForceSendFields []string `json:"-"`
6144
6145
6146
6147
6148 NullFields []string `json:"-"`
6149 }
6150
6151 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
6152 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
6153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6154 }
6155
6156 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
6157 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
6158 var s1 struct {
6159 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
6160 *NoMethod
6161 }
6162 s1.NoMethod = (*NoMethod)(s)
6163 if err := json.Unmarshal(data, &s1); err != nil {
6164 return err
6165 }
6166 s.ConfidenceScore = float64(s1.ConfidenceScore)
6167 return nil
6168 }
6169
6170
6171
6172
6173
6174
6175
6176
6177
6178
6179
6180
6181
6182
6183 type GoogleCloudDialogflowCxV3beta1Page struct {
6184
6185
6186
6187 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
6188
6189
6190 Description string `json:"description,omitempty"`
6191
6192
6193 DisplayName string `json:"displayName,omitempty"`
6194
6195
6196 EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
6197
6198
6199 EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
6200
6201
6202 Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
6203
6204 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
6205
6206
6207
6208 Name string `json:"name,omitempty"`
6209
6210
6211
6212
6213
6214
6215
6216
6217
6218
6219
6220
6221 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232 TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
6233
6234
6235
6236
6237
6238 ForceSendFields []string `json:"-"`
6239
6240
6241
6242
6243 NullFields []string `json:"-"`
6244 }
6245
6246 func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
6247 type NoMethod GoogleCloudDialogflowCxV3beta1Page
6248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6249 }
6250
6251
6252
6253 type GoogleCloudDialogflowCxV3beta1PageInfo struct {
6254
6255
6256
6257 CurrentPage string `json:"currentPage,omitempty"`
6258
6259
6260 DisplayName string `json:"displayName,omitempty"`
6261
6262
6263 FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
6264
6265
6266
6267
6268
6269 ForceSendFields []string `json:"-"`
6270
6271
6272
6273
6274 NullFields []string `json:"-"`
6275 }
6276
6277 func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
6278 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
6279 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6280 }
6281
6282
6283 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
6284
6285
6286
6287 ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
6288
6289
6290
6291
6292
6293 ForceSendFields []string `json:"-"`
6294
6295
6296
6297
6298 NullFields []string `json:"-"`
6299 }
6300
6301 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
6302 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
6303 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6304 }
6305
6306
6307
6308 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
6309
6310
6311
6312 DisplayName string `json:"displayName,omitempty"`
6313
6314
6315
6316 JustCollected bool `json:"justCollected,omitempty"`
6317
6318
6319
6320
6321 Required bool `json:"required,omitempty"`
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334 State string `json:"state,omitempty"`
6335
6336
6337
6338 Value interface{} `json:"value,omitempty"`
6339
6340
6341
6342
6343
6344 ForceSendFields []string `json:"-"`
6345
6346
6347
6348
6349 NullFields []string `json:"-"`
6350 }
6351
6352 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
6353 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
6354 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6355 }
6356
6357
6358
6359
6360
6361
6362
6363 type GoogleCloudDialogflowCxV3beta1QueryInput struct {
6364
6365 Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
6366
6367 Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
6368
6369 Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
6370
6371 Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
6372
6373
6374
6375
6376 LanguageCode string `json:"languageCode,omitempty"`
6377
6378 Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
6379
6380
6381
6382
6383
6384 ForceSendFields []string `json:"-"`
6385
6386
6387
6388
6389 NullFields []string `json:"-"`
6390 }
6391
6392 func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
6393 type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
6394 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6395 }
6396
6397
6398
6399 type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
6400
6401 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
6402
6403
6404
6405
6406
6407 ForceSendFields []string `json:"-"`
6408
6409
6410
6411
6412 NullFields []string `json:"-"`
6413 }
6414
6415 func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
6416 type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
6417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6418 }
6419
6420
6421
6422
6423
6424
6425
6426
6427
6428
6429
6430
6431
6432
6433 type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
6434
6435
6436
6437 Channel string `json:"channel,omitempty"`
6438
6439 ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
6440
6441
6442
6443
6444
6445 EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
6446
6447
6448 KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
6449
6450 LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
6451
6452
6453
6454
6455 MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
6456
6457
6458
6459 OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
6460
6461 Payload googleapi.RawMessage `json:"payload,omitempty"`
6462
6463
6464
6465 PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
6466
6467
6468 TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
6469
6470 Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
6471
6472
6473
6474
6475
6476 ForceSendFields []string `json:"-"`
6477
6478
6479
6480
6481 NullFields []string `json:"-"`
6482 }
6483
6484 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
6485 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
6486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6487 }
6488
6489
6490
6491
6492
6493
6494
6495
6496
6497
6498
6499 type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
6500
6501 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6502
6503
6504
6505
6506
6507 ForceSendFields []string `json:"-"`
6508
6509
6510
6511
6512 NullFields []string `json:"-"`
6513 }
6514
6515 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
6516 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
6517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6518 }
6519
6520
6521
6522
6523 type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
6524 }
6525
6526
6527
6528
6529
6530 type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
6531 }
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541 type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
6542
6543
6544 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6545
6546
6547
6548
6549
6550 ForceSendFields []string `json:"-"`
6551
6552
6553
6554
6555 NullFields []string `json:"-"`
6556 }
6557
6558 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
6559 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
6560 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6561 }
6562
6563
6564
6565
6566
6567
6568 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
6569
6570 Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
6571
6572
6573
6574
6575
6576 ForceSendFields []string `json:"-"`
6577
6578
6579
6580
6581 NullFields []string `json:"-"`
6582 }
6583
6584 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
6585 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
6586 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6587 }
6588
6589
6590
6591 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
6592
6593
6594
6595 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6596
6597
6598 Audio string `json:"audio,omitempty"`
6599
6600
6601 Uri string `json:"uri,omitempty"`
6602
6603
6604
6605
6606
6607 ForceSendFields []string `json:"-"`
6608
6609
6610
6611
6612 NullFields []string `json:"-"`
6613 }
6614
6615 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
6616 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
6617 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6618 }
6619
6620
6621
6622
6623 type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
6624
6625
6626
6627 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6628
6629
6630 Ssml string `json:"ssml,omitempty"`
6631
6632 Text string `json:"text,omitempty"`
6633
6634
6635
6636
6637
6638 ForceSendFields []string `json:"-"`
6639
6640
6641
6642
6643 NullFields []string `json:"-"`
6644 }
6645
6646 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
6647 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
6648 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6649 }
6650
6651
6652
6653 type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
6654
6655
6656
6657 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6658
6659
6660 AudioUri string `json:"audioUri,omitempty"`
6661
6662
6663
6664
6665
6666 ForceSendFields []string `json:"-"`
6667
6668
6669
6670
6671 NullFields []string `json:"-"`
6672 }
6673
6674 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
6675 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
6676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6677 }
6678
6679
6680
6681
6682 type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
6683
6684
6685 PhoneNumber string `json:"phoneNumber,omitempty"`
6686
6687
6688
6689
6690
6691 ForceSendFields []string `json:"-"`
6692
6693
6694
6695
6696 NullFields []string `json:"-"`
6697 }
6698
6699 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
6700 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
6701 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6702 }
6703
6704
6705
6706 type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
6707
6708
6709
6710 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6711
6712 Text []string `json:"text,omitempty"`
6713
6714
6715
6716
6717
6718 ForceSendFields []string `json:"-"`
6719
6720
6721
6722
6723 NullFields []string `json:"-"`
6724 }
6725
6726 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
6727 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
6728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6729 }
6730
6731
6732
6733 type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
6734
6735 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
6736
6737
6738
6739
6740
6741 ForceSendFields []string `json:"-"`
6742
6743
6744
6745
6746 NullFields []string `json:"-"`
6747 }
6748
6749 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
6750 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
6751 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6752 }
6753
6754
6755
6756 type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
6757
6758 ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
6759
6760
6761
6762
6763
6764 ForceSendFields []string `json:"-"`
6765
6766
6767
6768
6769 NullFields []string `json:"-"`
6770 }
6771
6772 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
6773 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
6774 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6775 }
6776
6777
6778
6779
6780 type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
6781 }
6782
6783
6784
6785 type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
6786
6787 Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
6788
6789
6790
6791
6792
6793 ForceSendFields []string `json:"-"`
6794
6795
6796
6797
6798 NullFields []string `json:"-"`
6799 }
6800
6801 func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
6802 type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
6803 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6804 }
6805
6806
6807
6808 type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
6809
6810
6811
6812
6813
6814 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6815
6816
6817
6818
6819
6820 Session string `json:"session,omitempty"`
6821
6822
6823
6824
6825
6826 ForceSendFields []string `json:"-"`
6827
6828
6829
6830
6831 NullFields []string `json:"-"`
6832 }
6833
6834 func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
6835 type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
6836 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6837 }
6838
6839
6840 type GoogleCloudDialogflowCxV3beta1TestCase struct {
6841
6842 CreationTime string `json:"creationTime,omitempty"`
6843
6844
6845 DisplayName string `json:"displayName,omitempty"`
6846
6847 LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
6848
6849
6850
6851 Name string `json:"name,omitempty"`
6852
6853
6854 Notes string `json:"notes,omitempty"`
6855
6856
6857
6858 Tags []string `json:"tags,omitempty"`
6859
6860
6861
6862 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
6863
6864 TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
6865
6866
6867
6868
6869
6870 ForceSendFields []string `json:"-"`
6871
6872
6873
6874
6875 NullFields []string `json:"-"`
6876 }
6877
6878 func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
6879 type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
6880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6881 }
6882
6883
6884
6885 type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
6886
6887 Status *GoogleRpcStatus `json:"status,omitempty"`
6888
6889 TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
6890
6891
6892
6893
6894
6895 ForceSendFields []string `json:"-"`
6896
6897
6898
6899
6900 NullFields []string `json:"-"`
6901 }
6902
6903 func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
6904 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
6905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6906 }
6907
6908
6909
6910 type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
6911
6912
6913 ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
6914
6915
6916 Environment string `json:"environment,omitempty"`
6917
6918
6919 Name string `json:"name,omitempty"`
6920
6921
6922
6923
6924
6925
6926 TestResult string `json:"testResult,omitempty"`
6927
6928 TestTime string `json:"testTime,omitempty"`
6929
6930
6931
6932
6933
6934 ForceSendFields []string `json:"-"`
6935
6936
6937
6938
6939 NullFields []string `json:"-"`
6940 }
6941
6942 func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
6943 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
6944 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6945 }
6946
6947
6948
6949 type GoogleCloudDialogflowCxV3beta1TestConfig struct {
6950
6951
6952
6953
6954
6955 Flow string `json:"flow,omitempty"`
6956
6957
6958
6959
6960
6961 Page string `json:"page,omitempty"`
6962
6963
6964 TrackingParameters []string `json:"trackingParameters,omitempty"`
6965
6966
6967
6968
6969
6970 ForceSendFields []string `json:"-"`
6971
6972
6973
6974
6975 NullFields []string `json:"-"`
6976 }
6977
6978 func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
6979 type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
6980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6981 }
6982
6983
6984 type GoogleCloudDialogflowCxV3beta1TestError struct {
6985
6986 Status *GoogleRpcStatus `json:"status,omitempty"`
6987
6988 TestCase string `json:"testCase,omitempty"`
6989
6990 TestTime string `json:"testTime,omitempty"`
6991
6992
6993
6994
6995
6996 ForceSendFields []string `json:"-"`
6997
6998
6999
7000
7001 NullFields []string `json:"-"`
7002 }
7003
7004 func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
7005 type NoMethod GoogleCloudDialogflowCxV3beta1TestError
7006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7007 }
7008
7009
7010
7011 type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
7012
7013
7014 Description string `json:"description,omitempty"`
7015
7016
7017
7018
7019
7020
7021
7022
7023
7024 Type string `json:"type,omitempty"`
7025
7026
7027
7028
7029
7030 ForceSendFields []string `json:"-"`
7031
7032
7033
7034
7035 NullFields []string `json:"-"`
7036 }
7037
7038 func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
7039 type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
7040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7041 }
7042
7043
7044
7045 type GoogleCloudDialogflowCxV3beta1TextInput struct {
7046
7047 Text string `json:"text,omitempty"`
7048
7049
7050
7051
7052
7053 ForceSendFields []string `json:"-"`
7054
7055
7056
7057
7058 NullFields []string `json:"-"`
7059 }
7060
7061 func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
7062 type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
7063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7064 }
7065
7066
7067
7068
7069
7070
7071
7072
7073
7074 type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
7075
7076
7077
7078
7079
7080
7081 Condition string `json:"condition,omitempty"`
7082
7083
7084 Description string `json:"description,omitempty"`
7085
7086
7087
7088
7089
7090 Intent string `json:"intent,omitempty"`
7091
7092 Name string `json:"name,omitempty"`
7093
7094
7095 TargetFlow string `json:"targetFlow,omitempty"`
7096
7097
7098 TargetPage string `json:"targetPage,omitempty"`
7099
7100
7101
7102 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
7103
7104
7105
7106
7107
7108 ForceSendFields []string `json:"-"`
7109
7110
7111
7112
7113 NullFields []string `json:"-"`
7114 }
7115
7116 func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
7117 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
7118 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7119 }
7120
7121
7122
7123 type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
7124
7125 AgentEscalated bool `json:"agentEscalated,omitempty"`
7126
7127 DtmfUsed bool `json:"dtmfUsed,omitempty"`
7128
7129
7130
7131
7132
7133
7134 FailureReasons []string `json:"failureReasons,omitempty"`
7135
7136 NoMatch bool `json:"noMatch,omitempty"`
7137
7138 NoUserInput bool `json:"noUserInput,omitempty"`
7139
7140 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
7141
7142
7143 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
7144
7145
7146 SentimentScore float64 `json:"sentimentScore,omitempty"`
7147
7148 UserEscalated bool `json:"userEscalated,omitempty"`
7149
7150
7151 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
7152
7153
7154
7155
7156
7157 ForceSendFields []string `json:"-"`
7158
7159
7160
7161
7162 NullFields []string `json:"-"`
7163 }
7164
7165 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
7166 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
7167 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7168 }
7169
7170 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
7171 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
7172 var s1 struct {
7173 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
7174 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
7175 *NoMethod
7176 }
7177 s1.NoMethod = (*NoMethod)(s)
7178 if err := json.Unmarshal(data, &s1); err != nil {
7179 return err
7180 }
7181 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
7182 s.SentimentScore = float64(s1.SentimentScore)
7183 return nil
7184 }
7185
7186
7187
7188 type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
7189
7190 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
7191
7192
7193
7194
7195
7196 ForceSendFields []string `json:"-"`
7197
7198
7199
7200
7201 NullFields []string `json:"-"`
7202 }
7203
7204 func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
7205 type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
7206 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7207 }
7208
7209
7210
7211
7212
7213
7214 type GoogleCloudDialogflowCxV3beta1Webhook struct {
7215
7216 Disabled bool `json:"disabled,omitempty"`
7217
7218
7219 DisplayName string `json:"displayName,omitempty"`
7220
7221 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
7222
7223
7224
7225 Name string `json:"name,omitempty"`
7226
7227
7228 ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
7229
7230
7231
7232 Timeout string `json:"timeout,omitempty"`
7233
7234
7235
7236
7237
7238 ForceSendFields []string `json:"-"`
7239
7240
7241
7242
7243 NullFields []string `json:"-"`
7244 }
7245
7246 func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
7247 type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
7248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7249 }
7250
7251
7252
7253 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
7254
7255
7256
7257
7258
7259
7260
7261
7262 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
7263
7264
7265
7266
7267
7268
7269
7270
7271
7272
7273
7274
7275 HttpMethod string `json:"httpMethod,omitempty"`
7276
7277
7278
7279 OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
7280
7281
7282
7283 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
7284
7285 Password string `json:"password,omitempty"`
7286
7287
7288 RequestBody string `json:"requestBody,omitempty"`
7289
7290
7291 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
7292
7293
7294
7295
7296
7297
7298
7299
7300
7301
7302
7303
7304
7305
7306
7307
7308
7309
7310
7311 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
7312
7313
7314 Uri string `json:"uri,omitempty"`
7315
7316 Username string `json:"username,omitempty"`
7317
7318
7319
7320
7321
7322
7323 WebhookType string `json:"webhookType,omitempty"`
7324
7325
7326
7327
7328
7329 ForceSendFields []string `json:"-"`
7330
7331
7332
7333
7334 NullFields []string `json:"-"`
7335 }
7336
7337 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
7338 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
7339 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7340 }
7341
7342
7343
7344
7345 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
7346
7347 ClientId string `json:"clientId,omitempty"`
7348
7349
7350 ClientSecret string `json:"clientSecret,omitempty"`
7351
7352 Scopes []string `json:"scopes,omitempty"`
7353
7354
7355 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
7356
7357
7358
7359
7360
7361 ForceSendFields []string `json:"-"`
7362
7363
7364
7365
7366 NullFields []string `json:"-"`
7367 }
7368
7369 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
7370 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
7371 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7372 }
7373
7374
7375
7376
7377
7378
7379 type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
7380
7381
7382 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
7383
7384
7385 DtmfDigits string `json:"dtmfDigits,omitempty"`
7386
7387
7388 FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
7389
7390 IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
7391
7392 LanguageCode string `json:"languageCode,omitempty"`
7393
7394 LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
7395
7396
7397
7398 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
7399
7400 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
7401
7402 Payload googleapi.RawMessage `json:"payload,omitempty"`
7403
7404
7405
7406 SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
7407
7408 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
7409
7410
7411 Text string `json:"text,omitempty"`
7412
7413
7414 Transcript string `json:"transcript,omitempty"`
7415
7416
7417 TriggerEvent string `json:"triggerEvent,omitempty"`
7418
7419
7420
7421 TriggerIntent string `json:"triggerIntent,omitempty"`
7422
7423
7424
7425
7426
7427 ForceSendFields []string `json:"-"`
7428
7429
7430
7431
7432 NullFields []string `json:"-"`
7433 }
7434
7435 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
7436 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
7437 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7438 }
7439
7440
7441
7442 type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
7443
7444
7445
7446
7447 Tag string `json:"tag,omitempty"`
7448
7449
7450
7451
7452
7453 ForceSendFields []string `json:"-"`
7454
7455
7456
7457
7458 NullFields []string `json:"-"`
7459 }
7460
7461 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
7462 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
7463 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7464 }
7465
7466
7467
7468 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
7469
7470
7471 Confidence float64 `json:"confidence,omitempty"`
7472
7473 DisplayName string `json:"displayName,omitempty"`
7474
7475
7476 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
7477
7478
7479
7480
7481 Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
7482
7483
7484
7485
7486
7487 ForceSendFields []string `json:"-"`
7488
7489
7490
7491
7492 NullFields []string `json:"-"`
7493 }
7494
7495 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
7496 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
7497 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7498 }
7499
7500 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
7501 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
7502 var s1 struct {
7503 Confidence gensupport.JSONFloat64 `json:"confidence"`
7504 *NoMethod
7505 }
7506 s1.NoMethod = (*NoMethod)(s)
7507 if err := json.Unmarshal(data, &s1); err != nil {
7508 return err
7509 }
7510 s.Confidence = float64(s1.Confidence)
7511 return nil
7512 }
7513
7514
7515
7516 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
7517
7518
7519 OriginalValue string `json:"originalValue,omitempty"`
7520
7521
7522 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
7523
7524
7525
7526
7527
7528 ForceSendFields []string `json:"-"`
7529
7530
7531
7532
7533 NullFields []string `json:"-"`
7534 }
7535
7536 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
7537 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
7538 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7539 }
7540
7541
7542
7543 type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
7544
7545
7546
7547 Magnitude float64 `json:"magnitude,omitempty"`
7548
7549
7550 Score float64 `json:"score,omitempty"`
7551
7552
7553
7554
7555
7556 ForceSendFields []string `json:"-"`
7557
7558
7559
7560
7561 NullFields []string `json:"-"`
7562 }
7563
7564 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
7565 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
7566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7567 }
7568
7569 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
7570 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
7571 var s1 struct {
7572 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
7573 Score gensupport.JSONFloat64 `json:"score"`
7574 *NoMethod
7575 }
7576 s1.NoMethod = (*NoMethod)(s)
7577 if err := json.Unmarshal(data, &s1); err != nil {
7578 return err
7579 }
7580 s.Magnitude = float64(s1.Magnitude)
7581 s.Score = float64(s1.Score)
7582 return nil
7583 }
7584
7585
7586
7587 type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
7588
7589
7590
7591 FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
7592
7593
7594 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
7595
7596 Payload googleapi.RawMessage `json:"payload,omitempty"`
7597
7598
7599 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
7600
7601
7602 TargetFlow string `json:"targetFlow,omitempty"`
7603
7604
7605 TargetPage string `json:"targetPage,omitempty"`
7606
7607
7608
7609
7610
7611 ForceSendFields []string `json:"-"`
7612
7613
7614
7615
7616 NullFields []string `json:"-"`
7617 }
7618
7619 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
7620 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
7621 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7622 }
7623
7624
7625
7626 type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
7627
7628
7629
7630
7631
7632
7633
7634
7635 MergeBehavior string `json:"mergeBehavior,omitempty"`
7636
7637 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
7638
7639
7640
7641
7642
7643 ForceSendFields []string `json:"-"`
7644
7645
7646
7647
7648 NullFields []string `json:"-"`
7649 }
7650
7651 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
7652 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
7653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7654 }
7655
7656
7657
7658
7659 type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
7660
7661 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
7662
7663
7664
7665
7666 Service string `json:"service,omitempty"`
7667
7668
7669
7670
7671
7672 ForceSendFields []string `json:"-"`
7673
7674
7675
7676
7677 NullFields []string `json:"-"`
7678 }
7679
7680 func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
7681 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
7682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7683 }
7684
7685
7686
7687
7688 type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
7689
7690
7691
7692
7693 EntityType string `json:"entityType,omitempty"`
7694
7695
7696
7697
7698 FormattedValue interface{} `json:"formattedValue,omitempty"`
7699
7700 Text string `json:"text,omitempty"`
7701
7702
7703
7704
7705
7706 ForceSendFields []string `json:"-"`
7707
7708
7709
7710
7711 NullFields []string `json:"-"`
7712 }
7713
7714 func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
7715 type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
7716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7717 }
7718
7719
7720 type GoogleCloudDialogflowV2ArticleAnswer struct {
7721
7722
7723 AnswerRecord string `json:"answerRecord,omitempty"`
7724
7725
7726
7727 Confidence float64 `json:"confidence,omitempty"`
7728
7729
7730 Metadata map[string]string `json:"metadata,omitempty"`
7731
7732 Snippets []string `json:"snippets,omitempty"`
7733
7734 Title string `json:"title,omitempty"`
7735
7736 Uri string `json:"uri,omitempty"`
7737
7738
7739
7740
7741
7742 ForceSendFields []string `json:"-"`
7743
7744
7745
7746
7747 NullFields []string `json:"-"`
7748 }
7749
7750 func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
7751 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
7752 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7753 }
7754
7755 func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
7756 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
7757 var s1 struct {
7758 Confidence gensupport.JSONFloat64 `json:"confidence"`
7759 *NoMethod
7760 }
7761 s1.NoMethod = (*NoMethod)(s)
7762 if err := json.Unmarshal(data, &s1); err != nil {
7763 return err
7764 }
7765 s.Confidence = float64(s1.Confidence)
7766 return nil
7767 }
7768
7769
7770
7771 type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
7772
7773
7774
7775
7776
7777
7778
7779
7780 TrainingModelType string `json:"trainingModelType,omitempty"`
7781
7782
7783
7784
7785
7786 ForceSendFields []string `json:"-"`
7787
7788
7789
7790
7791 NullFields []string `json:"-"`
7792 }
7793
7794 func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
7795 type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
7796 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7797 }
7798
7799
7800
7801 type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
7802
7803 EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
7804
7805
7806
7807
7808
7809 ForceSendFields []string `json:"-"`
7810
7811
7812
7813
7814 NullFields []string `json:"-"`
7815 }
7816
7817 func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
7818 type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
7819 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7820 }
7821
7822
7823
7824 type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
7825
7826 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
7827
7828
7829
7830
7831
7832 ForceSendFields []string `json:"-"`
7833
7834
7835
7836
7837 NullFields []string `json:"-"`
7838 }
7839
7840 func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
7841 type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
7842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7843 }
7844
7845
7846
7847 type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
7848
7849
7850 ConversationProfile string `json:"conversationProfile,omitempty"`
7851
7852
7853 CreateTime string `json:"createTime,omitempty"`
7854
7855
7856
7857
7858
7859
7860
7861
7862
7863
7864 ParticipantRole string `json:"participantRole,omitempty"`
7865
7866
7867
7868
7869
7870
7871
7872
7873
7874
7875 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
7876
7877
7878
7879
7880
7881 ForceSendFields []string `json:"-"`
7882
7883
7884
7885
7886 NullFields []string `json:"-"`
7887 }
7888
7889 func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
7890 type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
7891 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7892 }
7893
7894
7895
7896
7897
7898
7899
7900
7901
7902
7903
7904
7905
7906
7907 type GoogleCloudDialogflowV2Context struct {
7908
7909
7910
7911
7912 LifespanCount int64 `json:"lifespanCount,omitempty"`
7913
7914
7915
7916
7917
7918
7919
7920
7921
7922
7923 Name string `json:"name,omitempty"`
7924
7925
7926
7927
7928
7929
7930
7931
7932
7933
7934 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
7935
7936
7937
7938
7939
7940 ForceSendFields []string `json:"-"`
7941
7942
7943
7944
7945 NullFields []string `json:"-"`
7946 }
7947
7948 func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
7949 type NoMethod GoogleCloudDialogflowV2Context
7950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7951 }
7952
7953
7954
7955 type GoogleCloudDialogflowV2ConversationEvent struct {
7956
7957
7958 Conversation string `json:"conversation,omitempty"`
7959
7960
7961 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
7962
7963 NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
7964
7965
7966
7967
7968
7969
7970
7971
7972
7973
7974
7975
7976
7977
7978
7979
7980
7981
7982
7983
7984 Type string `json:"type,omitempty"`
7985
7986
7987
7988
7989
7990 ForceSendFields []string `json:"-"`
7991
7992
7993
7994
7995 NullFields []string `json:"-"`
7996 }
7997
7998 func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
7999 type NoMethod GoogleCloudDialogflowV2ConversationEvent
8000 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8001 }
8002
8003
8004 type GoogleCloudDialogflowV2ConversationModel struct {
8005
8006 ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
8007
8008 CreateTime string `json:"createTime,omitempty"`
8009
8010 Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
8011
8012 DisplayName string `json:"displayName,omitempty"`
8013
8014
8015
8016
8017
8018 LanguageCode string `json:"languageCode,omitempty"`
8019
8020
8021 Name string `json:"name,omitempty"`
8022
8023 SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
8024
8025
8026
8027
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040 State string `json:"state,omitempty"`
8041
8042
8043
8044
8045
8046
8047 ForceSendFields []string `json:"-"`
8048
8049
8050
8051
8052 NullFields []string `json:"-"`
8053 }
8054
8055 func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
8056 type NoMethod GoogleCloudDialogflowV2ConversationModel
8057 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8058 }
8059
8060
8061
8062 type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
8063
8064
8065 ConversationDataset string `json:"conversationDataset,omitempty"`
8066
8067
8068
8069
8070
8071 ForceSendFields []string `json:"-"`
8072
8073
8074
8075
8076 NullFields []string `json:"-"`
8077 }
8078
8079 func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
8080 type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
8081 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8082 }
8083
8084
8085
8086
8087 type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
8088
8089
8090 ConversationModel string `json:"conversationModel,omitempty"`
8091
8092
8093 ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
8094
8095
8096 CreateTime string `json:"createTime,omitempty"`
8097
8098
8099
8100
8101
8102
8103
8104
8105
8106 State string `json:"state,omitempty"`
8107
8108
8109
8110
8111
8112 ForceSendFields []string `json:"-"`
8113
8114
8115
8116
8117 NullFields []string `json:"-"`
8118 }
8119
8120 func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
8121 type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
8122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8123 }
8124
8125
8126
8127 type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
8128
8129
8130 ConversationModel string `json:"conversationModel,omitempty"`
8131
8132
8133 CreateTime string `json:"createTime,omitempty"`
8134
8135
8136
8137
8138
8139
8140
8141
8142
8143
8144
8145
8146 State string `json:"state,omitempty"`
8147
8148
8149
8150
8151
8152 ForceSendFields []string `json:"-"`
8153
8154
8155
8156
8157 NullFields []string `json:"-"`
8158 }
8159
8160 func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
8161 type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
8162 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8163 }
8164
8165
8166
8167 type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
8168 }
8169
8170
8171
8172 type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
8173
8174
8175 ConversationModel string `json:"conversationModel,omitempty"`
8176
8177
8178 CreateTime string `json:"createTime,omitempty"`
8179
8180
8181
8182
8183
8184 ForceSendFields []string `json:"-"`
8185
8186
8187
8188
8189 NullFields []string `json:"-"`
8190 }
8191
8192 func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
8193 type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
8194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8195 }
8196
8197
8198
8199 type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
8200
8201
8202 ConversationModel string `json:"conversationModel,omitempty"`
8203
8204
8205 CreateTime string `json:"createTime,omitempty"`
8206
8207
8208
8209
8210
8211 ForceSendFields []string `json:"-"`
8212
8213
8214
8215
8216 NullFields []string `json:"-"`
8217 }
8218
8219 func (s *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
8220 type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
8221 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8222 }
8223
8224
8225
8226
8227
8228
8229
8230
8231
8232
8233
8234 type GoogleCloudDialogflowV2EntityType struct {
8235
8236
8237
8238
8239
8240
8241
8242
8243 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
8244
8245 DisplayName string `json:"displayName,omitempty"`
8246
8247
8248 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
8249
8250
8251 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
8252
8253
8254
8255
8256
8257
8258
8259
8260
8261
8262
8263 Kind string `json:"kind,omitempty"`
8264
8265
8266
8267 Name string `json:"name,omitempty"`
8268
8269
8270
8271
8272
8273 ForceSendFields []string `json:"-"`
8274
8275
8276
8277
8278 NullFields []string `json:"-"`
8279 }
8280
8281 func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
8282 type NoMethod GoogleCloudDialogflowV2EntityType
8283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8284 }
8285
8286
8287
8288 type GoogleCloudDialogflowV2EntityTypeEntity struct {
8289
8290
8291
8292
8293 Synonyms []string `json:"synonyms,omitempty"`
8294
8295
8296
8297
8298
8299 Value string `json:"value,omitempty"`
8300
8301
8302
8303
8304
8305 ForceSendFields []string `json:"-"`
8306
8307
8308
8309
8310 NullFields []string `json:"-"`
8311 }
8312
8313 func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
8314 type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
8315 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8316 }
8317
8318
8319
8320
8321
8322
8323 type GoogleCloudDialogflowV2EventInput struct {
8324
8325
8326
8327
8328
8329
8330
8331 LanguageCode string `json:"languageCode,omitempty"`
8332
8333 Name string `json:"name,omitempty"`
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
8345
8346
8347
8348
8349
8350 ForceSendFields []string `json:"-"`
8351
8352
8353
8354
8355 NullFields []string `json:"-"`
8356 }
8357
8358 func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
8359 type NoMethod GoogleCloudDialogflowV2EventInput
8360 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8361 }
8362
8363
8364
8365 type GoogleCloudDialogflowV2ExportAgentResponse struct {
8366
8367 AgentContent string `json:"agentContent,omitempty"`
8368
8369
8370 AgentUri string `json:"agentUri,omitempty"`
8371
8372
8373
8374
8375
8376 ForceSendFields []string `json:"-"`
8377
8378
8379
8380
8381 NullFields []string `json:"-"`
8382 }
8383
8384 func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
8385 type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
8386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8387 }
8388
8389
8390
8391 type GoogleCloudDialogflowV2ExportOperationMetadata struct {
8392
8393 ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
8394
8395
8396
8397
8398
8399 ForceSendFields []string `json:"-"`
8400
8401
8402
8403
8404 NullFields []string `json:"-"`
8405 }
8406
8407 func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
8408 type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
8409 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8410 }
8411
8412
8413
8414 type GoogleCloudDialogflowV2FaqAnswer struct {
8415
8416 Answer string `json:"answer,omitempty"`
8417
8418
8419 AnswerRecord string `json:"answerRecord,omitempty"`
8420
8421
8422
8423 Confidence float64 `json:"confidence,omitempty"`
8424
8425
8426 Metadata map[string]string `json:"metadata,omitempty"`
8427
8428 Question string `json:"question,omitempty"`
8429
8430
8431 Source string `json:"source,omitempty"`
8432
8433
8434
8435
8436
8437 ForceSendFields []string `json:"-"`
8438
8439
8440
8441
8442 NullFields []string `json:"-"`
8443 }
8444
8445 func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
8446 type NoMethod GoogleCloudDialogflowV2FaqAnswer
8447 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8448 }
8449
8450 func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
8451 type NoMethod GoogleCloudDialogflowV2FaqAnswer
8452 var s1 struct {
8453 Confidence gensupport.JSONFloat64 `json:"confidence"`
8454 *NoMethod
8455 }
8456 s1.NoMethod = (*NoMethod)(s)
8457 if err := json.Unmarshal(data, &s1); err != nil {
8458 return err
8459 }
8460 s.Confidence = float64(s1.Confidence)
8461 return nil
8462 }
8463
8464
8465
8466 type GoogleCloudDialogflowV2GcsDestination struct {
8467
8468
8469
8470
8471 Uri string `json:"uri,omitempty"`
8472
8473
8474
8475
8476
8477 ForceSendFields []string `json:"-"`
8478
8479
8480
8481
8482 NullFields []string `json:"-"`
8483 }
8484
8485 func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
8486 type NoMethod GoogleCloudDialogflowV2GcsDestination
8487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8488 }
8489
8490
8491
8492
8493 type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
8494
8495
8496 Conversation string `json:"conversation,omitempty"`
8497
8498
8499
8500 Participant string `json:"participant,omitempty"`
8501
8502
8503 SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
8504
8505
8506
8507
8508
8509 ForceSendFields []string `json:"-"`
8510
8511
8512
8513
8514 NullFields []string `json:"-"`
8515 }
8516
8517 func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
8518 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
8519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8520 }
8521
8522
8523
8524 type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
8525
8526
8527 ConversationDataset string `json:"conversationDataset,omitempty"`
8528
8529
8530 CreateTime string `json:"createTime,omitempty"`
8531
8532
8533 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
8534
8535
8536
8537
8538
8539 ForceSendFields []string `json:"-"`
8540
8541
8542
8543
8544 NullFields []string `json:"-"`
8545 }
8546
8547 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
8548 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
8549 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8550 }
8551
8552
8553
8554 type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
8555
8556
8557 ConversationDataset string `json:"conversationDataset,omitempty"`
8558
8559 ImportCount int64 `json:"importCount,omitempty"`
8560
8561
8562
8563
8564
8565 ForceSendFields []string `json:"-"`
8566
8567
8568
8569
8570 NullFields []string `json:"-"`
8571 }
8572
8573 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
8574 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
8575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8576 }
8577
8578
8579
8580 type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
8581
8582 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
8583
8584
8585
8586
8587
8588 ForceSendFields []string `json:"-"`
8589
8590
8591
8592
8593 NullFields []string `json:"-"`
8594 }
8595
8596 func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
8597 type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
8598 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8599 }
8600
8601
8602
8603 type GoogleCloudDialogflowV2InputDataset struct {
8604
8605
8606 Dataset string `json:"dataset,omitempty"`
8607
8608
8609
8610
8611
8612 ForceSendFields []string `json:"-"`
8613
8614
8615
8616
8617 NullFields []string `json:"-"`
8618 }
8619
8620 func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
8621 type NoMethod GoogleCloudDialogflowV2InputDataset
8622 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8623 }
8624
8625
8626
8627
8628
8629
8630
8631
8632
8633 type GoogleCloudDialogflowV2Intent struct {
8634
8635
8636 Action string `json:"action,omitempty"`
8637
8638
8639
8640
8641
8642
8643
8644
8645
8646
8647
8648
8649
8650
8651
8652
8653
8654 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
8655
8656 DisplayName string `json:"displayName,omitempty"`
8657
8658
8659
8660 EndInteraction bool `json:"endInteraction,omitempty"`
8661
8662
8663
8664
8665 Events []string `json:"events,omitempty"`
8666
8667
8668
8669 FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
8670
8671
8672 InputContextNames []string `json:"inputContextNames,omitempty"`
8673
8674 IsFallback bool `json:"isFallback,omitempty"`
8675
8676
8677
8678
8679 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
8680
8681
8682 Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
8683
8684
8685
8686
8687 MlDisabled bool `json:"mlDisabled,omitempty"`
8688
8689
8690
8691 Name string `json:"name,omitempty"`
8692
8693
8694
8695
8696
8697 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
8698
8699
8700 Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
8701
8702
8703
8704
8705
8706 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
8707
8708
8709
8710
8711
8712 Priority int64 `json:"priority,omitempty"`
8713
8714
8715 ResetContexts bool `json:"resetContexts,omitempty"`
8716
8717
8718
8719
8720 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
8721
8722
8723 TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
8724
8725
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735 WebhookState string `json:"webhookState,omitempty"`
8736
8737
8738
8739
8740
8741 ForceSendFields []string `json:"-"`
8742
8743
8744
8745
8746 NullFields []string `json:"-"`
8747 }
8748
8749 func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
8750 type NoMethod GoogleCloudDialogflowV2Intent
8751 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8752 }
8753
8754
8755
8756 type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
8757
8758
8759 FollowupIntentName string `json:"followupIntentName,omitempty"`
8760
8761
8762 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
8763
8764
8765
8766
8767
8768 ForceSendFields []string `json:"-"`
8769
8770
8771
8772
8773 NullFields []string `json:"-"`
8774 }
8775
8776 func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
8777 type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
8778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8779 }
8780
8781
8782
8783
8784
8785 type GoogleCloudDialogflowV2IntentMessage struct {
8786
8787 BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
8788
8789 BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
8790
8791 Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
8792
8793 CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
8794
8795 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
8796
8797 LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
8798
8799 ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
8800
8801 MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
8802
8803 Payload googleapi.RawMessage `json:"payload,omitempty"`
8804
8805
8806
8807
8808
8809
8810
8811
8812
8813
8814
8815
8816
8817
8818
8819 Platform string `json:"platform,omitempty"`
8820
8821 QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
8822
8823 SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
8824
8825 Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
8826
8827 TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
8828
8829 Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
8830
8831
8832
8833
8834
8835 ForceSendFields []string `json:"-"`
8836
8837
8838
8839
8840 NullFields []string `json:"-"`
8841 }
8842
8843 func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
8844 type NoMethod GoogleCloudDialogflowV2IntentMessage
8845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8846 }
8847
8848
8849
8850 type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
8851
8852 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
8853
8854 FormattedText string `json:"formattedText,omitempty"`
8855
8856 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
8857
8858 Subtitle string `json:"subtitle,omitempty"`
8859
8860 Title string `json:"title,omitempty"`
8861
8862
8863
8864
8865
8866 ForceSendFields []string `json:"-"`
8867
8868
8869
8870
8871 NullFields []string `json:"-"`
8872 }
8873
8874 func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
8875 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
8876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8877 }
8878
8879
8880
8881 type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
8882
8883 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
8884
8885 Title string `json:"title,omitempty"`
8886
8887
8888
8889
8890
8891 ForceSendFields []string `json:"-"`
8892
8893
8894
8895
8896 NullFields []string `json:"-"`
8897 }
8898
8899 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
8900 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
8901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8902 }
8903
8904
8905
8906 type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
8907
8908 Uri string `json:"uri,omitempty"`
8909
8910
8911
8912
8913
8914 ForceSendFields []string `json:"-"`
8915
8916
8917
8918
8919 NullFields []string `json:"-"`
8920 }
8921
8922 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
8923 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
8924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8925 }
8926
8927
8928
8929
8930 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
8931
8932
8933
8934
8935
8936
8937
8938
8939
8940
8941
8942
8943
8944
8945
8946
8947
8948
8949 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
8950
8951
8952 Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
8953
8954
8955
8956
8957
8958 ForceSendFields []string `json:"-"`
8959
8960
8961
8962
8963 NullFields []string `json:"-"`
8964 }
8965
8966 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
8967 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
8968 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8969 }
8970
8971
8972
8973
8974 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
8975
8976
8977 Description string `json:"description,omitempty"`
8978
8979
8980 Footer string `json:"footer,omitempty"`
8981
8982 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
8983
8984 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
8985
8986 Title string `json:"title,omitempty"`
8987
8988
8989
8990
8991
8992 ForceSendFields []string `json:"-"`
8993
8994
8995
8996
8997 NullFields []string `json:"-"`
8998 }
8999
9000 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
9001 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
9002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9003 }
9004
9005
9006
9007 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
9008
9009 Url string `json:"url,omitempty"`
9010
9011
9012
9013
9014
9015
9016
9017
9018 UrlTypeHint string `json:"urlTypeHint,omitempty"`
9019
9020
9021
9022
9023
9024 ForceSendFields []string `json:"-"`
9025
9026
9027
9028
9029 NullFields []string `json:"-"`
9030 }
9031
9032 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
9033 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
9034 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9035 }
9036
9037
9038 type GoogleCloudDialogflowV2IntentMessageCard struct {
9039
9040 Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
9041
9042 ImageUri string `json:"imageUri,omitempty"`
9043
9044 Subtitle string `json:"subtitle,omitempty"`
9045
9046 Title string `json:"title,omitempty"`
9047
9048
9049
9050
9051
9052 ForceSendFields []string `json:"-"`
9053
9054
9055
9056
9057 NullFields []string `json:"-"`
9058 }
9059
9060 func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
9061 type NoMethod GoogleCloudDialogflowV2IntentMessageCard
9062 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9063 }
9064
9065
9066
9067 type GoogleCloudDialogflowV2IntentMessageCardButton struct {
9068
9069
9070 Postback string `json:"postback,omitempty"`
9071
9072 Text string `json:"text,omitempty"`
9073
9074
9075
9076
9077
9078 ForceSendFields []string `json:"-"`
9079
9080
9081
9082
9083 NullFields []string `json:"-"`
9084 }
9085
9086 func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
9087 type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
9088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9089 }
9090
9091
9092
9093 type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
9094
9095 Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
9096
9097
9098
9099
9100
9101 ForceSendFields []string `json:"-"`
9102
9103
9104
9105
9106 NullFields []string `json:"-"`
9107 }
9108
9109 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
9110 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
9111 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9112 }
9113
9114
9115
9116 type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
9117
9118 Description string `json:"description,omitempty"`
9119
9120 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
9121
9122 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
9123
9124 Title string `json:"title,omitempty"`
9125
9126
9127
9128
9129
9130 ForceSendFields []string `json:"-"`
9131
9132
9133
9134
9135 NullFields []string `json:"-"`
9136 }
9137
9138 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
9139 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
9140 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9141 }
9142
9143
9144
9145 type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
9146
9147 Header string `json:"header,omitempty"`
9148
9149
9150
9151
9152
9153
9154
9155
9156
9157 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
9158
9159
9160
9161
9162
9163 ForceSendFields []string `json:"-"`
9164
9165
9166
9167
9168 NullFields []string `json:"-"`
9169 }
9170
9171 func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
9172 type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
9173 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9174 }
9175
9176
9177 type GoogleCloudDialogflowV2IntentMessageImage struct {
9178
9179
9180 AccessibilityText string `json:"accessibilityText,omitempty"`
9181
9182 ImageUri string `json:"imageUri,omitempty"`
9183
9184
9185
9186
9187
9188 ForceSendFields []string `json:"-"`
9189
9190
9191
9192
9193 NullFields []string `json:"-"`
9194 }
9195
9196 func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
9197 type NoMethod GoogleCloudDialogflowV2IntentMessageImage
9198 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9199 }
9200
9201
9202
9203
9204 type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
9205
9206
9207 DestinationName string `json:"destinationName,omitempty"`
9208
9209
9210 Uri string `json:"uri,omitempty"`
9211
9212
9213
9214
9215
9216 ForceSendFields []string `json:"-"`
9217
9218
9219
9220
9221 NullFields []string `json:"-"`
9222 }
9223
9224 func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
9225 type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
9226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9227 }
9228
9229
9230
9231 type GoogleCloudDialogflowV2IntentMessageListSelect struct {
9232
9233 Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
9234
9235 Subtitle string `json:"subtitle,omitempty"`
9236
9237 Title string `json:"title,omitempty"`
9238
9239
9240
9241
9242
9243 ForceSendFields []string `json:"-"`
9244
9245
9246
9247
9248 NullFields []string `json:"-"`
9249 }
9250
9251 func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
9252 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
9253 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9254 }
9255
9256
9257 type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
9258
9259 Description string `json:"description,omitempty"`
9260
9261 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
9262
9263 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
9264
9265 Title string `json:"title,omitempty"`
9266
9267
9268
9269
9270
9271 ForceSendFields []string `json:"-"`
9272
9273
9274
9275
9276 NullFields []string `json:"-"`
9277 }
9278
9279 func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
9280 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
9281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9282 }
9283
9284
9285
9286 type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
9287
9288 MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
9289
9290
9291
9292
9293
9294 MediaType string `json:"mediaType,omitempty"`
9295
9296
9297
9298
9299
9300 ForceSendFields []string `json:"-"`
9301
9302
9303
9304
9305 NullFields []string `json:"-"`
9306 }
9307
9308 func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
9309 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
9310 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9311 }
9312
9313
9314
9315 type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
9316
9317 ContentUrl string `json:"contentUrl,omitempty"`
9318
9319 Description string `json:"description,omitempty"`
9320
9321 Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
9322
9323 LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
9324
9325 Name string `json:"name,omitempty"`
9326
9327
9328
9329
9330
9331 ForceSendFields []string `json:"-"`
9332
9333
9334
9335
9336 NullFields []string `json:"-"`
9337 }
9338
9339 func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
9340 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
9341 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9342 }
9343
9344
9345
9346 type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
9347
9348 QuickReplies []string `json:"quickReplies,omitempty"`
9349
9350 Title string `json:"title,omitempty"`
9351
9352
9353
9354
9355
9356 ForceSendFields []string `json:"-"`
9357
9358
9359
9360
9361 NullFields []string `json:"-"`
9362 }
9363
9364 func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
9365 type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
9366 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9367 }
9368
9369
9370
9371 type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
9372
9373
9374 Key string `json:"key,omitempty"`
9375
9376
9377 Synonyms []string `json:"synonyms,omitempty"`
9378
9379
9380
9381
9382
9383 ForceSendFields []string `json:"-"`
9384
9385
9386
9387
9388 NullFields []string `json:"-"`
9389 }
9390
9391 func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
9392 type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
9393 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9394 }
9395
9396
9397
9398 type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
9399
9400 DisplayText string `json:"displayText,omitempty"`
9401
9402
9403
9404 Ssml string `json:"ssml,omitempty"`
9405
9406
9407 TextToSpeech string `json:"textToSpeech,omitempty"`
9408
9409
9410
9411
9412
9413 ForceSendFields []string `json:"-"`
9414
9415
9416
9417
9418 NullFields []string `json:"-"`
9419 }
9420
9421 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
9422 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
9423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9424 }
9425
9426
9427
9428
9429
9430
9431 type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
9432
9433 SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
9434
9435
9436
9437
9438
9439 ForceSendFields []string `json:"-"`
9440
9441
9442
9443
9444 NullFields []string `json:"-"`
9445 }
9446
9447 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
9448 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
9449 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9450 }
9451
9452
9453
9454 type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
9455
9456 Title string `json:"title,omitempty"`
9457
9458
9459
9460
9461
9462 ForceSendFields []string `json:"-"`
9463
9464
9465
9466
9467 NullFields []string `json:"-"`
9468 }
9469
9470 func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
9471 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
9472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9473 }
9474
9475
9476
9477 type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
9478
9479 Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
9480
9481
9482
9483
9484
9485 ForceSendFields []string `json:"-"`
9486
9487
9488
9489
9490 NullFields []string `json:"-"`
9491 }
9492
9493 func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
9494 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
9495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9496 }
9497
9498
9499
9500 type GoogleCloudDialogflowV2IntentMessageTableCard struct {
9501
9502 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
9503
9504
9505 ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
9506
9507 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
9508
9509 Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
9510
9511 Subtitle string `json:"subtitle,omitempty"`
9512
9513 Title string `json:"title,omitempty"`
9514
9515
9516
9517
9518
9519 ForceSendFields []string `json:"-"`
9520
9521
9522
9523
9524 NullFields []string `json:"-"`
9525 }
9526
9527 func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
9528 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
9529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9530 }
9531
9532
9533 type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
9534
9535 Text string `json:"text,omitempty"`
9536
9537
9538
9539
9540
9541 ForceSendFields []string `json:"-"`
9542
9543
9544
9545
9546 NullFields []string `json:"-"`
9547 }
9548
9549 func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
9550 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
9551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9552 }
9553
9554
9555 type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
9556
9557 Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
9558
9559 DividerAfter bool `json:"dividerAfter,omitempty"`
9560
9561
9562
9563
9564
9565 ForceSendFields []string `json:"-"`
9566
9567
9568
9569
9570 NullFields []string `json:"-"`
9571 }
9572
9573 func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
9574 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
9575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9576 }
9577
9578
9579 type GoogleCloudDialogflowV2IntentMessageText struct {
9580
9581 Text []string `json:"text,omitempty"`
9582
9583
9584
9585
9586
9587 ForceSendFields []string `json:"-"`
9588
9589
9590
9591
9592 NullFields []string `json:"-"`
9593 }
9594
9595 func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
9596 type NoMethod GoogleCloudDialogflowV2IntentMessageText
9597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9598 }
9599
9600
9601 type GoogleCloudDialogflowV2IntentParameter struct {
9602
9603
9604
9605 DefaultValue string `json:"defaultValue,omitempty"`
9606
9607 DisplayName string `json:"displayName,omitempty"`
9608
9609
9610
9611 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
9612
9613
9614 IsList bool `json:"isList,omitempty"`
9615
9616
9617
9618 Mandatory bool `json:"mandatory,omitempty"`
9619
9620 Name string `json:"name,omitempty"`
9621
9622
9623 Prompts []string `json:"prompts,omitempty"`
9624
9625
9626
9627
9628 Value string `json:"value,omitempty"`
9629
9630
9631
9632
9633
9634 ForceSendFields []string `json:"-"`
9635
9636
9637
9638
9639 NullFields []string `json:"-"`
9640 }
9641
9642 func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
9643 type NoMethod GoogleCloudDialogflowV2IntentParameter
9644 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9645 }
9646
9647
9648
9649 type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
9650
9651 Name string `json:"name,omitempty"`
9652
9653
9654
9655
9656
9657
9658
9659
9660
9661
9662
9663
9664 Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
9665
9666
9667
9668 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
9669
9670
9671
9672
9673
9674
9675
9676
9677
9678
9679
9680 Type string `json:"type,omitempty"`
9681
9682
9683
9684
9685
9686 ForceSendFields []string `json:"-"`
9687
9688
9689
9690
9691 NullFields []string `json:"-"`
9692 }
9693
9694 func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
9695 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
9696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9697 }
9698
9699
9700
9701 type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
9702
9703
9704
9705 Alias string `json:"alias,omitempty"`
9706
9707
9708 EntityType string `json:"entityType,omitempty"`
9709
9710 Text string `json:"text,omitempty"`
9711
9712
9713
9714
9715 UserDefined bool `json:"userDefined,omitempty"`
9716
9717
9718
9719
9720
9721 ForceSendFields []string `json:"-"`
9722
9723
9724
9725
9726 NullFields []string `json:"-"`
9727 }
9728
9729 func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
9730 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
9731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9732 }
9733
9734
9735
9736 type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
9737
9738
9739 ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
9740
9741
9742 KnowledgeBase string `json:"knowledgeBase,omitempty"`
9743
9744
9745
9746
9747
9748
9749
9750 State string `json:"state,omitempty"`
9751
9752
9753
9754
9755
9756 ForceSendFields []string `json:"-"`
9757
9758
9759
9760
9761 NullFields []string `json:"-"`
9762 }
9763
9764 func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
9765 type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
9766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9767 }
9768
9769
9770
9771 type GoogleCloudDialogflowV2Message struct {
9772
9773 Content string `json:"content,omitempty"`
9774
9775
9776 CreateTime string `json:"createTime,omitempty"`
9777
9778
9779
9780 LanguageCode string `json:"languageCode,omitempty"`
9781
9782 MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
9783
9784
9785 Name string `json:"name,omitempty"`
9786
9787 Participant string `json:"participant,omitempty"`
9788
9789
9790
9791
9792
9793
9794
9795
9796
9797 ParticipantRole string `json:"participantRole,omitempty"`
9798
9799 SendTime string `json:"sendTime,omitempty"`
9800
9801
9802 SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
9803
9804
9805
9806
9807
9808 ForceSendFields []string `json:"-"`
9809
9810
9811
9812
9813 NullFields []string `json:"-"`
9814 }
9815
9816 func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
9817 type NoMethod GoogleCloudDialogflowV2Message
9818 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9819 }
9820
9821
9822
9823 type GoogleCloudDialogflowV2MessageAnnotation struct {
9824
9825 ContainEntities bool `json:"containEntities,omitempty"`
9826
9827
9828
9829 Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
9830
9831
9832
9833
9834
9835 ForceSendFields []string `json:"-"`
9836
9837
9838
9839
9840 NullFields []string `json:"-"`
9841 }
9842
9843 func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
9844 type NoMethod GoogleCloudDialogflowV2MessageAnnotation
9845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9846 }
9847
9848
9849
9850
9851 type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
9852
9853
9854
9855
9856
9857
9858
9859
9860 Payload googleapi.RawMessage `json:"payload,omitempty"`
9861
9862
9863 Source string `json:"source,omitempty"`
9864
9865
9866 Version string `json:"version,omitempty"`
9867
9868
9869
9870
9871
9872 ForceSendFields []string `json:"-"`
9873
9874
9875
9876
9877 NullFields []string `json:"-"`
9878 }
9879
9880 func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
9881 type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
9882 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9883 }
9884
9885
9886
9887 type GoogleCloudDialogflowV2QueryResult struct {
9888
9889 Action string `json:"action,omitempty"`
9890
9891
9892
9893
9894 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
9895
9896
9897
9898
9899 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
9900
9901
9902
9903
9904 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
9905
9906 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
9907
9908
9909
9910 FulfillmentText string `json:"fulfillmentText,omitempty"`
9911
9912
9913
9914 Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
9915
9916
9917
9918
9919
9920
9921
9922
9923 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
9924
9925
9926
9927
9928 LanguageCode string `json:"languageCode,omitempty"`
9929
9930
9931
9932 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
9933
9934
9935
9936
9937
9938
9939
9940
9941
9942 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
9943
9944
9945
9946
9947
9948
9949 QueryText string `json:"queryText,omitempty"`
9950
9951
9952 SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
9953
9954
9955
9956
9957
9958
9959
9960 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
9961
9962
9963 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
9964
9965
9966 WebhookSource string `json:"webhookSource,omitempty"`
9967
9968
9969
9970
9971
9972 ForceSendFields []string `json:"-"`
9973
9974
9975
9976
9977 NullFields []string `json:"-"`
9978 }
9979
9980 func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
9981 type NoMethod GoogleCloudDialogflowV2QueryResult
9982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9983 }
9984
9985 func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
9986 type NoMethod GoogleCloudDialogflowV2QueryResult
9987 var s1 struct {
9988 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
9989 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
9990 *NoMethod
9991 }
9992 s1.NoMethod = (*NoMethod)(s)
9993 if err := json.Unmarshal(data, &s1); err != nil {
9994 return err
9995 }
9996 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
9997 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
9998 return nil
9999 }
10000
10001
10002
10003
10004
10005 type GoogleCloudDialogflowV2Sentiment struct {
10006
10007
10008
10009 Magnitude float64 `json:"magnitude,omitempty"`
10010
10011
10012 Score float64 `json:"score,omitempty"`
10013
10014
10015
10016
10017
10018 ForceSendFields []string `json:"-"`
10019
10020
10021
10022
10023 NullFields []string `json:"-"`
10024 }
10025
10026 func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
10027 type NoMethod GoogleCloudDialogflowV2Sentiment
10028 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10029 }
10030
10031 func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
10032 type NoMethod GoogleCloudDialogflowV2Sentiment
10033 var s1 struct {
10034 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
10035 Score gensupport.JSONFloat64 `json:"score"`
10036 *NoMethod
10037 }
10038 s1.NoMethod = (*NoMethod)(s)
10039 if err := json.Unmarshal(data, &s1); err != nil {
10040 return err
10041 }
10042 s.Magnitude = float64(s1.Magnitude)
10043 s.Score = float64(s1.Score)
10044 return nil
10045 }
10046
10047
10048
10049
10050
10051
10052
10053
10054
10055
10056 type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
10057
10058 QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
10059
10060
10061
10062
10063
10064 ForceSendFields []string `json:"-"`
10065
10066
10067
10068
10069 NullFields []string `json:"-"`
10070 }
10071
10072 func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
10073 type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
10074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10075 }
10076
10077
10078
10079
10080
10081
10082
10083
10084
10085 type GoogleCloudDialogflowV2SessionEntityType struct {
10086
10087
10088 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
10089
10090
10091
10092
10093
10094
10095
10096
10097
10098
10099
10100
10101
10102
10103
10104
10105 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
10106
10107
10108
10109
10110
10111
10112
10113 Name string `json:"name,omitempty"`
10114
10115
10116
10117
10118
10119 ForceSendFields []string `json:"-"`
10120
10121
10122
10123
10124 NullFields []string `json:"-"`
10125 }
10126
10127 func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
10128 type NoMethod GoogleCloudDialogflowV2SessionEntityType
10129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10130 }
10131
10132
10133
10134 type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
10135
10136
10137 ConversationProfile string `json:"conversationProfile,omitempty"`
10138
10139
10140 CreateTime string `json:"createTime,omitempty"`
10141
10142
10143
10144
10145
10146
10147
10148
10149
10150
10151 ParticipantRole string `json:"participantRole,omitempty"`
10152
10153
10154
10155
10156
10157
10158
10159
10160
10161
10162 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
10163
10164
10165
10166
10167
10168 ForceSendFields []string `json:"-"`
10169
10170
10171
10172
10173 NullFields []string `json:"-"`
10174 }
10175
10176 func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
10177 type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
10178 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10179 }
10180
10181
10182 type GoogleCloudDialogflowV2SmartReplyAnswer struct {
10183
10184
10185 AnswerRecord string `json:"answerRecord,omitempty"`
10186
10187
10188
10189 Confidence float64 `json:"confidence,omitempty"`
10190
10191 Reply string `json:"reply,omitempty"`
10192
10193
10194
10195
10196
10197 ForceSendFields []string `json:"-"`
10198
10199
10200
10201
10202 NullFields []string `json:"-"`
10203 }
10204
10205 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
10206 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
10207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10208 }
10209
10210 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
10211 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
10212 var s1 struct {
10213 Confidence gensupport.JSONFloat64 `json:"confidence"`
10214 *NoMethod
10215 }
10216 s1.NoMethod = (*NoMethod)(s)
10217 if err := json.Unmarshal(data, &s1); err != nil {
10218 return err
10219 }
10220 s.Confidence = float64(s1.Confidence)
10221 return nil
10222 }
10223
10224
10225
10226 type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
10227
10228
10229
10230
10231
10232
10233
10234
10235 TrainingModelType string `json:"trainingModelType,omitempty"`
10236
10237
10238
10239
10240
10241 ForceSendFields []string `json:"-"`
10242
10243
10244
10245
10246 NullFields []string `json:"-"`
10247 }
10248
10249 func (s *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
10250 type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
10251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10252 }
10253
10254
10255
10256 type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
10257
10258 ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
10259
10260
10261
10262
10263 ContextSize int64 `json:"contextSize,omitempty"`
10264
10265
10266 LatestMessage string `json:"latestMessage,omitempty"`
10267
10268
10269
10270
10271
10272 ForceSendFields []string `json:"-"`
10273
10274
10275
10276
10277 NullFields []string `json:"-"`
10278 }
10279
10280 func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
10281 type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
10282 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10283 }
10284
10285
10286
10287 type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
10288
10289
10290
10291
10292 ContextSize int64 `json:"contextSize,omitempty"`
10293
10294 FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
10295
10296
10297 LatestMessage string `json:"latestMessage,omitempty"`
10298
10299
10300
10301
10302
10303 ForceSendFields []string `json:"-"`
10304
10305
10306
10307
10308 NullFields []string `json:"-"`
10309 }
10310
10311 func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
10312 type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
10313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10314 }
10315
10316
10317
10318 type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
10319
10320
10321
10322
10323 ContextSize int64 `json:"contextSize,omitempty"`
10324
10325
10326 LatestMessage string `json:"latestMessage,omitempty"`
10327
10328
10329
10330 SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
10331
10332
10333
10334
10335
10336 ForceSendFields []string `json:"-"`
10337
10338
10339
10340
10341 NullFields []string `json:"-"`
10342 }
10343
10344 func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
10345 type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
10346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10347 }
10348
10349
10350
10351
10352
10353 type GoogleCloudDialogflowV2SuggestionResult struct {
10354
10355 Error *GoogleRpcStatus `json:"error,omitempty"`
10356
10357
10358 SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
10359
10360
10361 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
10362
10363
10364 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
10365
10366
10367
10368
10369
10370 ForceSendFields []string `json:"-"`
10371
10372
10373
10374
10375 NullFields []string `json:"-"`
10376 }
10377
10378 func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
10379 type NoMethod GoogleCloudDialogflowV2SuggestionResult
10380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10381 }
10382
10383
10384
10385 type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
10386
10387
10388 ConversationModel string `json:"conversationModel,omitempty"`
10389
10390
10391 CreateTime string `json:"createTime,omitempty"`
10392
10393
10394
10395
10396
10397 ForceSendFields []string `json:"-"`
10398
10399
10400
10401
10402 NullFields []string `json:"-"`
10403 }
10404
10405 func (s *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
10406 type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
10407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10408 }
10409
10410
10411
10412 type GoogleCloudDialogflowV2WebhookRequest struct {
10413
10414
10415 OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
10416
10417
10418 QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
10419
10420
10421 ResponseId string `json:"responseId,omitempty"`
10422
10423
10424
10425
10426 Session string `json:"session,omitempty"`
10427
10428
10429
10430
10431
10432 ForceSendFields []string `json:"-"`
10433
10434
10435
10436
10437 NullFields []string `json:"-"`
10438 }
10439
10440 func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
10441 type NoMethod GoogleCloudDialogflowV2WebhookRequest
10442 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10443 }
10444
10445
10446
10447
10448
10449
10450
10451
10452
10453 type GoogleCloudDialogflowV2WebhookResponse struct {
10454
10455
10456
10457 FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
10458
10459
10460
10461 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
10462
10463
10464
10465
10466 FulfillmentText string `json:"fulfillmentText,omitempty"`
10467
10468
10469
10470
10471 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
10472
10473
10474
10475
10476
10477
10478
10479
10480
10481 Payload googleapi.RawMessage `json:"payload,omitempty"`
10482
10483
10484
10485
10486
10487 SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
10488
10489
10490
10491
10492 Source string `json:"source,omitempty"`
10493
10494
10495
10496
10497
10498 ForceSendFields []string `json:"-"`
10499
10500
10501
10502
10503 NullFields []string `json:"-"`
10504 }
10505
10506 func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
10507 type NoMethod GoogleCloudDialogflowV2WebhookResponse
10508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10509 }
10510
10511
10512
10513
10514
10515
10516
10517
10518
10519 type GoogleCloudDialogflowV2beta1Agent struct {
10520
10521
10522
10523
10524
10525
10526
10527
10528
10529
10530 ApiVersion string `json:"apiVersion,omitempty"`
10531
10532
10533
10534
10535 AvatarUri string `json:"avatarUri,omitempty"`
10536
10537
10538
10539
10540
10541
10542
10543 ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
10544
10545
10546
10547
10548
10549 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
10550
10551
10552 Description string `json:"description,omitempty"`
10553
10554 DisplayName string `json:"displayName,omitempty"`
10555
10556
10557 EnableLogging bool `json:"enableLogging,omitempty"`
10558
10559
10560
10561
10562
10563
10564
10565
10566
10567 MatchMode string `json:"matchMode,omitempty"`
10568
10569
10570 Parent string `json:"parent,omitempty"`
10571
10572
10573 SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
10574
10575
10576
10577
10578
10579
10580
10581
10582
10583 Tier string `json:"tier,omitempty"`
10584
10585
10586 TimeZone string `json:"timeZone,omitempty"`
10587
10588
10589 googleapi.ServerResponse `json:"-"`
10590
10591
10592
10593
10594
10595 ForceSendFields []string `json:"-"`
10596
10597
10598
10599
10600 NullFields []string `json:"-"`
10601 }
10602
10603 func (s *GoogleCloudDialogflowV2beta1Agent) MarshalJSON() ([]byte, error) {
10604 type NoMethod GoogleCloudDialogflowV2beta1Agent
10605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10606 }
10607
10608 func (s *GoogleCloudDialogflowV2beta1Agent) UnmarshalJSON(data []byte) error {
10609 type NoMethod GoogleCloudDialogflowV2beta1Agent
10610 var s1 struct {
10611 ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
10612 *NoMethod
10613 }
10614 s1.NoMethod = (*NoMethod)(s)
10615 if err := json.Unmarshal(data, &s1); err != nil {
10616 return err
10617 }
10618 s.ClassificationThreshold = float64(s1.ClassificationThreshold)
10619 return nil
10620 }
10621
10622
10623
10624 type GoogleCloudDialogflowV2beta1AgentAssistantFeedback struct {
10625
10626
10627
10628
10629
10630
10631
10632
10633
10634 AnswerRelevance string `json:"answerRelevance,omitempty"`
10635
10636
10637
10638
10639
10640
10641
10642
10643
10644
10645 DocumentCorrectness string `json:"documentCorrectness,omitempty"`
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655 DocumentEfficiency string `json:"documentEfficiency,omitempty"`
10656
10657 KnowledgeSearchFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback `json:"knowledgeSearchFeedback,omitempty"`
10658
10659 SummarizationFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback `json:"summarizationFeedback,omitempty"`
10660
10661
10662
10663
10664
10665 ForceSendFields []string `json:"-"`
10666
10667
10668
10669
10670 NullFields []string `json:"-"`
10671 }
10672
10673 func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedback) MarshalJSON() ([]byte, error) {
10674 type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedback
10675 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10676 }
10677
10678
10679
10680 type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback struct {
10681
10682
10683
10684 AnswerCopied bool `json:"answerCopied,omitempty"`
10685
10686
10687
10688 ClickedUris []string `json:"clickedUris,omitempty"`
10689
10690
10691
10692
10693
10694 ForceSendFields []string `json:"-"`
10695
10696
10697
10698
10699 NullFields []string `json:"-"`
10700 }
10701
10702 func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback) MarshalJSON() ([]byte, error) {
10703 type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
10704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10705 }
10706
10707
10708
10709 type GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback struct {
10710
10711 StartTimestamp string `json:"startTimestamp,omitempty"`
10712
10713 SubmitTimestamp string `json:"submitTimestamp,omitempty"`
10714
10715 SummaryText string `json:"summaryText,omitempty"`
10716
10717 TextSections map[string]string `json:"textSections,omitempty"`
10718
10719
10720
10721
10722
10723 ForceSendFields []string `json:"-"`
10724
10725
10726
10727
10728 NullFields []string `json:"-"`
10729 }
10730
10731 func (s *GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback) MarshalJSON() ([]byte, error) {
10732 type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
10733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10734 }
10735
10736
10737
10738 type GoogleCloudDialogflowV2beta1AgentAssistantRecord struct {
10739
10740 ArticleSuggestionAnswer *GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleSuggestionAnswer,omitempty"`
10741
10742 DialogflowAssistAnswer *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswer,omitempty"`
10743
10744 FaqAnswer *GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswer,omitempty"`
10745
10746
10747
10748
10749
10750 ForceSendFields []string `json:"-"`
10751
10752
10753
10754
10755 NullFields []string `json:"-"`
10756 }
10757
10758 func (s *GoogleCloudDialogflowV2beta1AgentAssistantRecord) MarshalJSON() ([]byte, error) {
10759 type NoMethod GoogleCloudDialogflowV2beta1AgentAssistantRecord
10760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10761 }
10762
10763
10764
10765 type GoogleCloudDialogflowV2beta1AnalyzeContentRequest struct {
10766
10767 AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
10768
10769 AudioInput *GoogleCloudDialogflowV2beta1AudioInput `json:"audioInput,omitempty"`
10770
10771
10772
10773
10774
10775
10776
10777
10778 CxCurrentPage string `json:"cxCurrentPage,omitempty"`
10779
10780
10781
10782
10783 CxParameters googleapi.RawMessage `json:"cxParameters,omitempty"`
10784
10785 EventInput *GoogleCloudDialogflowV2beta1EventInput `json:"eventInput,omitempty"`
10786
10787 IntentInput *GoogleCloudDialogflowV2beta1IntentInput `json:"intentInput,omitempty"`
10788
10789
10790
10791
10792
10793
10794
10795
10796
10797
10798 MessageSendTime string `json:"messageSendTime,omitempty"`
10799
10800 QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
10801
10802
10803
10804
10805 ReplyAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"replyAudioConfig,omitempty"`
10806
10807
10808
10809 RequestId string `json:"requestId,omitempty"`
10810
10811 SuggestionInput *GoogleCloudDialogflowV2beta1SuggestionInput `json:"suggestionInput,omitempty"`
10812
10813 TextInput *GoogleCloudDialogflowV2beta1TextInput `json:"textInput,omitempty"`
10814
10815
10816
10817
10818
10819 ForceSendFields []string `json:"-"`
10820
10821
10822
10823
10824 NullFields []string `json:"-"`
10825 }
10826
10827 func (s *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) MarshalJSON() ([]byte, error) {
10828 type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentRequest
10829 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10830 }
10831
10832
10833
10834 type GoogleCloudDialogflowV2beta1AnalyzeContentResponse struct {
10835
10836
10837
10838
10839
10840 AutomatedAgentReply *GoogleCloudDialogflowV2beta1AutomatedAgentReply `json:"automatedAgentReply,omitempty"`
10841
10842 DtmfParameters *GoogleCloudDialogflowV2beta1DtmfParameters `json:"dtmfParameters,omitempty"`
10843
10844
10845
10846
10847
10848
10849
10850 EndUserSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"endUserSuggestionResults,omitempty"`
10851
10852
10853
10854
10855
10856
10857
10858 HumanAgentSuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"humanAgentSuggestionResults,omitempty"`
10859
10860 Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
10861
10862
10863
10864
10865
10866
10867
10868 ReplyAudio *GoogleCloudDialogflowV2beta1OutputAudio `json:"replyAudio,omitempty"`
10869
10870
10871 ReplyText string `json:"replyText,omitempty"`
10872
10873
10874 googleapi.ServerResponse `json:"-"`
10875
10876
10877
10878
10879
10880 ForceSendFields []string `json:"-"`
10881
10882
10883
10884
10885 NullFields []string `json:"-"`
10886 }
10887
10888 func (s *GoogleCloudDialogflowV2beta1AnalyzeContentResponse) MarshalJSON() ([]byte, error) {
10889 type NoMethod GoogleCloudDialogflowV2beta1AnalyzeContentResponse
10890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10891 }
10892
10893
10894
10895
10896 type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
10897
10898
10899
10900
10901 EntityType string `json:"entityType,omitempty"`
10902
10903
10904
10905
10906 FormattedValue interface{} `json:"formattedValue,omitempty"`
10907
10908 Text string `json:"text,omitempty"`
10909
10910
10911
10912
10913
10914 ForceSendFields []string `json:"-"`
10915
10916
10917
10918
10919 NullFields []string `json:"-"`
10920 }
10921
10922 func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
10923 type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
10924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10925 }
10926
10927
10928
10929 type GoogleCloudDialogflowV2beta1AnswerFeedback struct {
10930
10931
10932 AgentAssistantDetailFeedback *GoogleCloudDialogflowV2beta1AgentAssistantFeedback `json:"agentAssistantDetailFeedback,omitempty"`
10933
10934 ClickTime string `json:"clickTime,omitempty"`
10935
10936
10937
10938 Clicked bool `json:"clicked,omitempty"`
10939
10940
10941
10942
10943
10944
10945
10946 CorrectnessLevel string `json:"correctnessLevel,omitempty"`
10947
10948 DisplayTime string `json:"displayTime,omitempty"`
10949
10950
10951 Displayed bool `json:"displayed,omitempty"`
10952
10953
10954
10955
10956
10957 ForceSendFields []string `json:"-"`
10958
10959
10960
10961
10962 NullFields []string `json:"-"`
10963 }
10964
10965 func (s *GoogleCloudDialogflowV2beta1AnswerFeedback) MarshalJSON() ([]byte, error) {
10966 type NoMethod GoogleCloudDialogflowV2beta1AnswerFeedback
10967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10968 }
10969
10970
10971
10972
10973
10974
10975
10976
10977
10978
10979
10980
10981
10982
10983 type GoogleCloudDialogflowV2beta1AnswerRecord struct {
10984
10985 AgentAssistantRecord *GoogleCloudDialogflowV2beta1AgentAssistantRecord `json:"agentAssistantRecord,omitempty"`
10986
10987
10988
10989 AnswerFeedback *GoogleCloudDialogflowV2beta1AnswerFeedback `json:"answerFeedback,omitempty"`
10990
10991
10992
10993 Name string `json:"name,omitempty"`
10994
10995
10996 googleapi.ServerResponse `json:"-"`
10997
10998
10999
11000
11001
11002 ForceSendFields []string `json:"-"`
11003
11004
11005
11006
11007 NullFields []string `json:"-"`
11008 }
11009
11010 func (s *GoogleCloudDialogflowV2beta1AnswerRecord) MarshalJSON() ([]byte, error) {
11011 type NoMethod GoogleCloudDialogflowV2beta1AnswerRecord
11012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11013 }
11014
11015
11016 type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
11017
11018
11019 AnswerRecord string `json:"answerRecord,omitempty"`
11020
11021
11022 Metadata map[string]string `json:"metadata,omitempty"`
11023
11024 Snippets []string `json:"snippets,omitempty"`
11025
11026 Title string `json:"title,omitempty"`
11027
11028 Uri string `json:"uri,omitempty"`
11029
11030
11031
11032
11033
11034 ForceSendFields []string `json:"-"`
11035
11036
11037
11038
11039 NullFields []string `json:"-"`
11040 }
11041
11042 func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
11043 type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
11044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11045 }
11046
11047
11048
11049 type GoogleCloudDialogflowV2beta1AssistQueryParameters struct {
11050
11051
11052
11053
11054
11055
11056
11057
11058 DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
11059
11060
11061
11062
11063
11064 ForceSendFields []string `json:"-"`
11065
11066
11067
11068
11069 NullFields []string `json:"-"`
11070 }
11071
11072 func (s *GoogleCloudDialogflowV2beta1AssistQueryParameters) MarshalJSON() ([]byte, error) {
11073 type NoMethod GoogleCloudDialogflowV2beta1AssistQueryParameters
11074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11075 }
11076
11077
11078
11079 type GoogleCloudDialogflowV2beta1AudioInput struct {
11080
11081
11082
11083 Audio string `json:"audio,omitempty"`
11084
11085
11086 Config *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"config,omitempty"`
11087
11088
11089
11090
11091
11092 ForceSendFields []string `json:"-"`
11093
11094
11095
11096
11097 NullFields []string `json:"-"`
11098 }
11099
11100 func (s *GoogleCloudDialogflowV2beta1AudioInput) MarshalJSON() ([]byte, error) {
11101 type NoMethod GoogleCloudDialogflowV2beta1AudioInput
11102 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11103 }
11104
11105
11106
11107 type GoogleCloudDialogflowV2beta1AutomatedAgentConfig struct {
11108
11109
11110
11111
11112
11113
11114
11115
11116
11117
11118 Agent string `json:"agent,omitempty"`
11119
11120
11121
11122
11123 SessionTtl string `json:"sessionTtl,omitempty"`
11124
11125
11126
11127
11128
11129 ForceSendFields []string `json:"-"`
11130
11131
11132
11133
11134 NullFields []string `json:"-"`
11135 }
11136
11137 func (s *GoogleCloudDialogflowV2beta1AutomatedAgentConfig) MarshalJSON() ([]byte, error) {
11138 type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentConfig
11139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11140 }
11141
11142
11143
11144 type GoogleCloudDialogflowV2beta1AutomatedAgentReply struct {
11145
11146
11147
11148 AllowCancellation bool `json:"allowCancellation,omitempty"`
11149
11150
11151
11152
11153
11154
11155
11156
11157
11158 AutomatedAgentReplyType string `json:"automatedAgentReplyType,omitempty"`
11159
11160
11161 CxCurrentPage string `json:"cxCurrentPage,omitempty"`
11162
11163
11164
11165 CxSessionParameters googleapi.RawMessage `json:"cxSessionParameters,omitempty"`
11166
11167 DetectIntentResponse *GoogleCloudDialogflowV2beta1DetectIntentResponse `json:"detectIntentResponse,omitempty"`
11168
11169 Event string `json:"event,omitempty"`
11170
11171
11172
11173 Intent string `json:"intent,omitempty"`
11174
11175
11176
11177
11178
11179
11180 MatchConfidence float64 `json:"matchConfidence,omitempty"`
11181
11182
11183 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
11184
11185 ResponseMessages []*GoogleCloudDialogflowV2beta1ResponseMessage `json:"responseMessages,omitempty"`
11186
11187
11188
11189
11190
11191 ForceSendFields []string `json:"-"`
11192
11193
11194
11195
11196 NullFields []string `json:"-"`
11197 }
11198
11199 func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) MarshalJSON() ([]byte, error) {
11200 type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
11201 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11202 }
11203
11204 func (s *GoogleCloudDialogflowV2beta1AutomatedAgentReply) UnmarshalJSON(data []byte) error {
11205 type NoMethod GoogleCloudDialogflowV2beta1AutomatedAgentReply
11206 var s1 struct {
11207 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
11208 *NoMethod
11209 }
11210 s1.NoMethod = (*NoMethod)(s)
11211 if err := json.Unmarshal(data, &s1); err != nil {
11212 return err
11213 }
11214 s.MatchConfidence = float64(s1.MatchConfidence)
11215 return nil
11216 }
11217
11218
11219
11220
11221
11222
11223
11224
11225
11226
11227
11228
11229
11230
11231
11232
11233
11234
11235
11236
11237
11238 type GoogleCloudDialogflowV2beta1BargeInConfig struct {
11239
11240
11241 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
11242
11243
11244 TotalDuration string `json:"totalDuration,omitempty"`
11245
11246
11247
11248
11249
11250 ForceSendFields []string `json:"-"`
11251
11252
11253
11254
11255 NullFields []string `json:"-"`
11256 }
11257
11258 func (s *GoogleCloudDialogflowV2beta1BargeInConfig) MarshalJSON() ([]byte, error) {
11259 type NoMethod GoogleCloudDialogflowV2beta1BargeInConfig
11260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11261 }
11262
11263
11264
11265 type GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest struct {
11266
11267 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
11268
11269
11270
11271
11272 LanguageCode string `json:"languageCode,omitempty"`
11273
11274
11275
11276
11277
11278 ForceSendFields []string `json:"-"`
11279
11280
11281
11282
11283 NullFields []string `json:"-"`
11284 }
11285
11286 func (s *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) MarshalJSON() ([]byte, error) {
11287 type NoMethod GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
11288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11289 }
11290
11291
11292
11293 type GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest struct {
11294
11295
11296
11297 Requests []*GoogleCloudDialogflowV2beta1CreateMessageRequest `json:"requests,omitempty"`
11298
11299
11300
11301
11302
11303 ForceSendFields []string `json:"-"`
11304
11305
11306
11307
11308 NullFields []string `json:"-"`
11309 }
11310
11311 func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) MarshalJSON() ([]byte, error) {
11312 type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
11313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11314 }
11315
11316
11317
11318 type GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse struct {
11319
11320 Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
11321
11322
11323 googleapi.ServerResponse `json:"-"`
11324
11325
11326
11327
11328
11329 ForceSendFields []string `json:"-"`
11330
11331
11332
11333
11334 NullFields []string `json:"-"`
11335 }
11336
11337 func (s *GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse) MarshalJSON() ([]byte, error) {
11338 type NoMethod GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse
11339 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11340 }
11341
11342
11343
11344 type GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest struct {
11345
11346
11347
11348 EntityValues []string `json:"entityValues,omitempty"`
11349
11350
11351
11352
11353 LanguageCode string `json:"languageCode,omitempty"`
11354
11355
11356
11357
11358
11359 ForceSendFields []string `json:"-"`
11360
11361
11362
11363
11364 NullFields []string `json:"-"`
11365 }
11366
11367 func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) MarshalJSON() ([]byte, error) {
11368 type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
11369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11370 }
11371
11372
11373
11374 type GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest struct {
11375
11376
11377 EntityTypeNames []string `json:"entityTypeNames,omitempty"`
11378
11379
11380
11381
11382
11383 ForceSendFields []string `json:"-"`
11384
11385
11386
11387
11388 NullFields []string `json:"-"`
11389 }
11390
11391 func (s *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) MarshalJSON() ([]byte, error) {
11392 type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
11393 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11394 }
11395
11396
11397
11398 type GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest struct {
11399
11400
11401 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
11402
11403
11404
11405
11406
11407 ForceSendFields []string `json:"-"`
11408
11409
11410
11411
11412 NullFields []string `json:"-"`
11413 }
11414
11415 func (s *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) MarshalJSON() ([]byte, error) {
11416 type NoMethod GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
11417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11418 }
11419
11420
11421
11422 type GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest struct {
11423
11424 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
11425
11426
11427
11428
11429 LanguageCode string `json:"languageCode,omitempty"`
11430
11431 UpdateMask string `json:"updateMask,omitempty"`
11432
11433
11434
11435
11436
11437 ForceSendFields []string `json:"-"`
11438
11439
11440
11441
11442 NullFields []string `json:"-"`
11443 }
11444
11445 func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) MarshalJSON() ([]byte, error) {
11446 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
11447 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11448 }
11449
11450
11451
11452 type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest struct {
11453
11454 EntityTypeBatchInline *GoogleCloudDialogflowV2beta1EntityTypeBatch `json:"entityTypeBatchInline,omitempty"`
11455
11456
11457
11458
11459 EntityTypeBatchUri string `json:"entityTypeBatchUri,omitempty"`
11460
11461
11462
11463
11464 LanguageCode string `json:"languageCode,omitempty"`
11465
11466 UpdateMask string `json:"updateMask,omitempty"`
11467
11468
11469
11470
11471
11472 ForceSendFields []string `json:"-"`
11473
11474
11475
11476
11477 NullFields []string `json:"-"`
11478 }
11479
11480 func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) MarshalJSON() ([]byte, error) {
11481 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
11482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11483 }
11484
11485
11486
11487 type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
11488
11489 EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
11490
11491
11492
11493
11494
11495 ForceSendFields []string `json:"-"`
11496
11497
11498
11499
11500 NullFields []string `json:"-"`
11501 }
11502
11503 func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
11504 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
11505 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11506 }
11507
11508
11509
11510 type GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest struct {
11511
11512 IntentBatchInline *GoogleCloudDialogflowV2beta1IntentBatch `json:"intentBatchInline,omitempty"`
11513
11514
11515
11516 IntentBatchUri string `json:"intentBatchUri,omitempty"`
11517
11518
11519
11520
11521
11522
11523 IntentView string `json:"intentView,omitempty"`
11524
11525
11526
11527
11528 LanguageCode string `json:"languageCode,omitempty"`
11529
11530 UpdateMask string `json:"updateMask,omitempty"`
11531
11532
11533
11534
11535
11536 ForceSendFields []string `json:"-"`
11537
11538
11539
11540
11541 NullFields []string `json:"-"`
11542 }
11543
11544 func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) MarshalJSON() ([]byte, error) {
11545 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
11546 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11547 }
11548
11549
11550
11551 type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
11552
11553 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
11554
11555
11556
11557
11558
11559 ForceSendFields []string `json:"-"`
11560
11561
11562
11563
11564 NullFields []string `json:"-"`
11565 }
11566
11567 func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
11568 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
11569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11570 }
11571
11572
11573
11574 type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
11575
11576
11577 ConversationProfile string `json:"conversationProfile,omitempty"`
11578
11579
11580 CreateTime string `json:"createTime,omitempty"`
11581
11582
11583
11584
11585
11586
11587
11588
11589
11590
11591 ParticipantRole string `json:"participantRole,omitempty"`
11592
11593
11594
11595
11596
11597
11598
11599
11600
11601
11602
11603
11604
11605
11606 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
11607
11608
11609
11610
11611
11612 ForceSendFields []string `json:"-"`
11613
11614
11615
11616
11617 NullFields []string `json:"-"`
11618 }
11619
11620 func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
11621 type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
11622 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11623 }
11624
11625
11626
11627 type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest struct {
11628
11629
11630
11631
11632
11633
11634
11635
11636
11637
11638 ParticipantRole string `json:"participantRole,omitempty"`
11639
11640
11641
11642
11643
11644
11645
11646
11647
11648
11649
11650
11651
11652
11653 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
11654
11655
11656
11657
11658
11659 ForceSendFields []string `json:"-"`
11660
11661
11662
11663
11664 NullFields []string `json:"-"`
11665 }
11666
11667 func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
11668 type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest
11669 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11670 }
11671
11672
11673
11674 type GoogleCloudDialogflowV2beta1CompileSuggestionRequest struct {
11675
11676
11677
11678 ContextSize int64 `json:"contextSize,omitempty"`
11679
11680
11681
11682 LatestMessage string `json:"latestMessage,omitempty"`
11683
11684
11685
11686
11687
11688 ForceSendFields []string `json:"-"`
11689
11690
11691
11692
11693 NullFields []string `json:"-"`
11694 }
11695
11696 func (s *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) MarshalJSON() ([]byte, error) {
11697 type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionRequest
11698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11699 }
11700
11701
11702
11703 type GoogleCloudDialogflowV2beta1CompileSuggestionResponse struct {
11704
11705
11706
11707
11708 ContextSize int64 `json:"contextSize,omitempty"`
11709
11710
11711 LatestMessage string `json:"latestMessage,omitempty"`
11712
11713 Suggestion *GoogleCloudDialogflowV2beta1Suggestion `json:"suggestion,omitempty"`
11714
11715
11716 googleapi.ServerResponse `json:"-"`
11717
11718
11719
11720
11721
11722 ForceSendFields []string `json:"-"`
11723
11724
11725
11726
11727 NullFields []string `json:"-"`
11728 }
11729
11730 func (s *GoogleCloudDialogflowV2beta1CompileSuggestionResponse) MarshalJSON() ([]byte, error) {
11731 type NoMethod GoogleCloudDialogflowV2beta1CompileSuggestionResponse
11732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11733 }
11734
11735
11736
11737 type GoogleCloudDialogflowV2beta1CompleteConversationRequest struct {
11738 }
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751
11752
11753 type GoogleCloudDialogflowV2beta1Context struct {
11754
11755
11756
11757
11758 LifespanCount int64 `json:"lifespanCount,omitempty"`
11759
11760
11761
11762
11763
11764
11765
11766
11767
11768
11769
11770
11771 Name string `json:"name,omitempty"`
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
11783
11784
11785 googleapi.ServerResponse `json:"-"`
11786
11787
11788
11789
11790
11791 ForceSendFields []string `json:"-"`
11792
11793
11794
11795
11796 NullFields []string `json:"-"`
11797 }
11798
11799 func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
11800 type NoMethod GoogleCloudDialogflowV2beta1Context
11801 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11802 }
11803
11804
11805
11806
11807
11808 type GoogleCloudDialogflowV2beta1Conversation struct {
11809
11810
11811
11812 ConversationProfile string `json:"conversationProfile,omitempty"`
11813
11814
11815
11816
11817
11818
11819
11820
11821
11822
11823
11824
11825
11826
11827
11828
11829
11830 ConversationStage string `json:"conversationStage,omitempty"`
11831
11832 EndTime string `json:"endTime,omitempty"`
11833
11834
11835
11836
11837
11838
11839 LifecycleState string `json:"lifecycleState,omitempty"`
11840
11841
11842 Name string `json:"name,omitempty"`
11843
11844
11845 PhoneNumber *GoogleCloudDialogflowV2beta1ConversationPhoneNumber `json:"phoneNumber,omitempty"`
11846
11847 StartTime string `json:"startTime,omitempty"`
11848
11849
11850 googleapi.ServerResponse `json:"-"`
11851
11852
11853
11854
11855
11856 ForceSendFields []string `json:"-"`
11857
11858
11859
11860
11861 NullFields []string `json:"-"`
11862 }
11863
11864 func (s *GoogleCloudDialogflowV2beta1Conversation) MarshalJSON() ([]byte, error) {
11865 type NoMethod GoogleCloudDialogflowV2beta1Conversation
11866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11867 }
11868
11869
11870
11871 type GoogleCloudDialogflowV2beta1ConversationEvent struct {
11872
11873
11874 Conversation string `json:"conversation,omitempty"`
11875
11876
11877 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
11878
11879 NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
11880
11881
11882
11883
11884
11885
11886
11887
11888
11889
11890
11891
11892
11893
11894
11895
11896
11897
11898
11899
11900 Type string `json:"type,omitempty"`
11901
11902
11903
11904
11905
11906 ForceSendFields []string `json:"-"`
11907
11908
11909
11910
11911 NullFields []string `json:"-"`
11912 }
11913
11914 func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
11915 type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
11916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11917 }
11918
11919
11920
11921
11922 type GoogleCloudDialogflowV2beta1ConversationPhoneNumber struct {
11923
11924 PhoneNumber string `json:"phoneNumber,omitempty"`
11925
11926
11927
11928
11929
11930 ForceSendFields []string `json:"-"`
11931
11932
11933
11934
11935 NullFields []string `json:"-"`
11936 }
11937
11938 func (s *GoogleCloudDialogflowV2beta1ConversationPhoneNumber) MarshalJSON() ([]byte, error) {
11939 type NoMethod GoogleCloudDialogflowV2beta1ConversationPhoneNumber
11940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11941 }
11942
11943
11944
11945 type GoogleCloudDialogflowV2beta1ConversationProfile struct {
11946
11947
11948 AutomatedAgentConfig *GoogleCloudDialogflowV2beta1AutomatedAgentConfig `json:"automatedAgentConfig,omitempty"`
11949
11950 CreateTime string `json:"createTime,omitempty"`
11951
11952
11953 DisplayName string `json:"displayName,omitempty"`
11954
11955
11956 HumanAgentAssistantConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig `json:"humanAgentAssistantConfig,omitempty"`
11957
11958
11959
11960 HumanAgentHandoffConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig `json:"humanAgentHandoffConfig,omitempty"`
11961
11962
11963
11964
11965
11966 LanguageCode string `json:"languageCode,omitempty"`
11967
11968 LoggingConfig *GoogleCloudDialogflowV2beta1LoggingConfig `json:"loggingConfig,omitempty"`
11969
11970
11971 Name string `json:"name,omitempty"`
11972
11973
11974 NewMessageEventNotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"newMessageEventNotificationConfig,omitempty"`
11975
11976
11977 NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
11978
11979
11980 SecuritySettings string `json:"securitySettings,omitempty"`
11981
11982 SttConfig *GoogleCloudDialogflowV2beta1SpeechToTextConfig `json:"sttConfig,omitempty"`
11983
11984
11985
11986 TimeZone string `json:"timeZone,omitempty"`
11987
11988
11989
11990 TtsConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"ttsConfig,omitempty"`
11991
11992 UpdateTime string `json:"updateTime,omitempty"`
11993
11994
11995 googleapi.ServerResponse `json:"-"`
11996
11997
11998
11999
12000
12001 ForceSendFields []string `json:"-"`
12002
12003
12004
12005
12006 NullFields []string `json:"-"`
12007 }
12008
12009 func (s *GoogleCloudDialogflowV2beta1ConversationProfile) MarshalJSON() ([]byte, error) {
12010 type NoMethod GoogleCloudDialogflowV2beta1ConversationProfile
12011 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12012 }
12013
12014
12015
12016 type GoogleCloudDialogflowV2beta1CreateMessageRequest struct {
12017
12018 Message *GoogleCloudDialogflowV2beta1Message `json:"message,omitempty"`
12019
12020
12021 Parent string `json:"parent,omitempty"`
12022
12023
12024
12025
12026
12027 ForceSendFields []string `json:"-"`
12028
12029
12030
12031
12032 NullFields []string `json:"-"`
12033 }
12034
12035 func (s *GoogleCloudDialogflowV2beta1CreateMessageRequest) MarshalJSON() ([]byte, error) {
12036 type NoMethod GoogleCloudDialogflowV2beta1CreateMessageRequest
12037 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12038 }
12039
12040
12041
12042 type GoogleCloudDialogflowV2beta1DetectIntentRequest struct {
12043
12044
12045
12046 InputAudio string `json:"inputAudio,omitempty"`
12047
12048
12049
12050 OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
12051
12052
12053
12054
12055 OutputAudioConfigMask string `json:"outputAudioConfigMask,omitempty"`
12056
12057
12058
12059
12060 QueryInput *GoogleCloudDialogflowV2beta1QueryInput `json:"queryInput,omitempty"`
12061
12062 QueryParams *GoogleCloudDialogflowV2beta1QueryParameters `json:"queryParams,omitempty"`
12063
12064
12065
12066
12067
12068 ForceSendFields []string `json:"-"`
12069
12070
12071
12072
12073 NullFields []string `json:"-"`
12074 }
12075
12076 func (s *GoogleCloudDialogflowV2beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
12077 type NoMethod GoogleCloudDialogflowV2beta1DetectIntentRequest
12078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12079 }
12080
12081
12082
12083 type GoogleCloudDialogflowV2beta1DetectIntentResponse struct {
12084
12085
12086
12087
12088
12089
12090
12091
12092 AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
12093
12094
12095
12096
12097
12098
12099
12100
12101 OutputAudio string `json:"outputAudio,omitempty"`
12102
12103
12104 OutputAudioConfig *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
12105
12106
12107
12108 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
12109
12110
12111 ResponseId string `json:"responseId,omitempty"`
12112
12113 WebhookStatus *GoogleRpcStatus `json:"webhookStatus,omitempty"`
12114
12115
12116 googleapi.ServerResponse `json:"-"`
12117
12118
12119
12120
12121
12122 ForceSendFields []string `json:"-"`
12123
12124
12125
12126
12127 NullFields []string `json:"-"`
12128 }
12129
12130 func (s *GoogleCloudDialogflowV2beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
12131 type NoMethod GoogleCloudDialogflowV2beta1DetectIntentResponse
12132 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12133 }
12134
12135
12136
12137 type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
12138
12139
12140 AnswerRecord string `json:"answerRecord,omitempty"`
12141
12142 IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
12143
12144 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
12145
12146
12147
12148
12149
12150 ForceSendFields []string `json:"-"`
12151
12152
12153
12154
12155 NullFields []string `json:"-"`
12156 }
12157
12158 func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
12159 type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
12160 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12161 }
12162
12163
12164
12165
12166
12167
12168 type GoogleCloudDialogflowV2beta1Document struct {
12169
12170
12171
12172 Content string `json:"content,omitempty"`
12173
12174
12175
12176
12177
12178
12179 ContentUri string `json:"contentUri,omitempty"`
12180
12181
12182 DisplayName string `json:"displayName,omitempty"`
12183
12184
12185
12186
12187
12188
12189
12190
12191
12192
12193
12194 EnableAutoReload bool `json:"enableAutoReload,omitempty"`
12195
12196
12197
12198
12199
12200
12201
12202
12203
12204
12205
12206
12207
12208
12209
12210
12211 KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
12212
12213
12214
12215 LatestReloadStatus *GoogleCloudDialogflowV2beta1DocumentReloadStatus `json:"latestReloadStatus,omitempty"`
12216
12217
12218
12219
12220 Metadata map[string]string `json:"metadata,omitempty"`
12221
12222 MimeType string `json:"mimeType,omitempty"`
12223
12224
12225
12226 Name string `json:"name,omitempty"`
12227
12228
12229 RawContent string `json:"rawContent,omitempty"`
12230
12231
12232
12233
12234
12235
12236
12237
12238
12239 State string `json:"state,omitempty"`
12240
12241
12242 googleapi.ServerResponse `json:"-"`
12243
12244
12245
12246
12247
12248 ForceSendFields []string `json:"-"`
12249
12250
12251
12252
12253 NullFields []string `json:"-"`
12254 }
12255
12256 func (s *GoogleCloudDialogflowV2beta1Document) MarshalJSON() ([]byte, error) {
12257 type NoMethod GoogleCloudDialogflowV2beta1Document
12258 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12259 }
12260
12261
12262
12263 type GoogleCloudDialogflowV2beta1DocumentReloadStatus struct {
12264
12265 Status *GoogleRpcStatus `json:"status,omitempty"`
12266
12267
12268 Time string `json:"time,omitempty"`
12269
12270
12271
12272
12273
12274 ForceSendFields []string `json:"-"`
12275
12276
12277
12278
12279 NullFields []string `json:"-"`
12280 }
12281
12282 func (s *GoogleCloudDialogflowV2beta1DocumentReloadStatus) MarshalJSON() ([]byte, error) {
12283 type NoMethod GoogleCloudDialogflowV2beta1DocumentReloadStatus
12284 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12285 }
12286
12287
12288
12289 type GoogleCloudDialogflowV2beta1DtmfParameters struct {
12290
12291
12292 AcceptsDtmfInput bool `json:"acceptsDtmfInput,omitempty"`
12293
12294
12295
12296
12297
12298 ForceSendFields []string `json:"-"`
12299
12300
12301
12302
12303 NullFields []string `json:"-"`
12304 }
12305
12306 func (s *GoogleCloudDialogflowV2beta1DtmfParameters) MarshalJSON() ([]byte, error) {
12307 type NoMethod GoogleCloudDialogflowV2beta1DtmfParameters
12308 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12309 }
12310
12311
12312
12313
12314
12315
12316
12317
12318
12319
12320
12321 type GoogleCloudDialogflowV2beta1EntityType struct {
12322
12323
12324
12325
12326
12327
12328
12329
12330 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
12331
12332 DisplayName string `json:"displayName,omitempty"`
12333
12334
12335 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
12336
12337
12338 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
12339
12340
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350 Kind string `json:"kind,omitempty"`
12351
12352
12353
12354
12355 Name string `json:"name,omitempty"`
12356
12357
12358 googleapi.ServerResponse `json:"-"`
12359
12360
12361
12362
12363
12364 ForceSendFields []string `json:"-"`
12365
12366
12367
12368
12369 NullFields []string `json:"-"`
12370 }
12371
12372 func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
12373 type NoMethod GoogleCloudDialogflowV2beta1EntityType
12374 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12375 }
12376
12377
12378
12379 type GoogleCloudDialogflowV2beta1EntityTypeBatch struct {
12380
12381 EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
12382
12383
12384
12385
12386
12387 ForceSendFields []string `json:"-"`
12388
12389
12390
12391
12392 NullFields []string `json:"-"`
12393 }
12394
12395 func (s *GoogleCloudDialogflowV2beta1EntityTypeBatch) MarshalJSON() ([]byte, error) {
12396 type NoMethod GoogleCloudDialogflowV2beta1EntityTypeBatch
12397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12398 }
12399
12400
12401
12402 type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
12403
12404
12405
12406
12407 Synonyms []string `json:"synonyms,omitempty"`
12408
12409
12410
12411
12412
12413 Value string `json:"value,omitempty"`
12414
12415
12416
12417
12418
12419 ForceSendFields []string `json:"-"`
12420
12421
12422
12423
12424 NullFields []string `json:"-"`
12425 }
12426
12427 func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
12428 type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
12429 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12430 }
12431
12432
12433
12434
12435
12436
12437
12438
12439
12440
12441 type GoogleCloudDialogflowV2beta1Environment struct {
12442
12443
12444
12445 AgentVersion string `json:"agentVersion,omitempty"`
12446
12447
12448
12449 Description string `json:"description,omitempty"`
12450
12451 Fulfillment *GoogleCloudDialogflowV2beta1Fulfillment `json:"fulfillment,omitempty"`
12452
12453
12454
12455 Name string `json:"name,omitempty"`
12456
12457
12458
12459
12460
12461
12462
12463
12464 State string `json:"state,omitempty"`
12465
12466
12467 TextToSpeechSettings *GoogleCloudDialogflowV2beta1TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
12468
12469
12470 UpdateTime string `json:"updateTime,omitempty"`
12471
12472
12473 googleapi.ServerResponse `json:"-"`
12474
12475
12476
12477
12478
12479 ForceSendFields []string `json:"-"`
12480
12481
12482
12483
12484 NullFields []string `json:"-"`
12485 }
12486
12487 func (s *GoogleCloudDialogflowV2beta1Environment) MarshalJSON() ([]byte, error) {
12488 type NoMethod GoogleCloudDialogflowV2beta1Environment
12489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12490 }
12491
12492
12493
12494 type GoogleCloudDialogflowV2beta1EnvironmentHistory struct {
12495
12496
12497
12498 Entries []*GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry `json:"entries,omitempty"`
12499
12500
12501 NextPageToken string `json:"nextPageToken,omitempty"`
12502
12503
12504
12505 Parent string `json:"parent,omitempty"`
12506
12507
12508 googleapi.ServerResponse `json:"-"`
12509
12510
12511
12512
12513
12514 ForceSendFields []string `json:"-"`
12515
12516
12517
12518
12519 NullFields []string `json:"-"`
12520 }
12521
12522 func (s *GoogleCloudDialogflowV2beta1EnvironmentHistory) MarshalJSON() ([]byte, error) {
12523 type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistory
12524 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12525 }
12526
12527
12528
12529 type GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry struct {
12530
12531 AgentVersion string `json:"agentVersion,omitempty"`
12532
12533 CreateTime string `json:"createTime,omitempty"`
12534
12535
12536 Description string `json:"description,omitempty"`
12537
12538
12539
12540
12541
12542 ForceSendFields []string `json:"-"`
12543
12544
12545
12546
12547 NullFields []string `json:"-"`
12548 }
12549
12550 func (s *GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry) MarshalJSON() ([]byte, error) {
12551 type NoMethod GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
12552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12553 }
12554
12555
12556
12557
12558
12559
12560 type GoogleCloudDialogflowV2beta1EventInput struct {
12561
12562
12563
12564
12565
12566
12567
12568 LanguageCode string `json:"languageCode,omitempty"`
12569
12570 Name string `json:"name,omitempty"`
12571
12572
12573
12574
12575
12576
12577
12578
12579
12580
12581 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
12582
12583
12584
12585
12586
12587 ForceSendFields []string `json:"-"`
12588
12589
12590
12591
12592 NullFields []string `json:"-"`
12593 }
12594
12595 func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
12596 type NoMethod GoogleCloudDialogflowV2beta1EventInput
12597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12598 }
12599
12600
12601
12602 type GoogleCloudDialogflowV2beta1ExportAgentRequest struct {
12603
12604
12605
12606
12607
12608
12609
12610
12611 AgentUri string `json:"agentUri,omitempty"`
12612
12613
12614
12615
12616
12617 ForceSendFields []string `json:"-"`
12618
12619
12620
12621
12622 NullFields []string `json:"-"`
12623 }
12624
12625 func (s *GoogleCloudDialogflowV2beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
12626 type NoMethod GoogleCloudDialogflowV2beta1ExportAgentRequest
12627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12628 }
12629
12630
12631
12632 type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
12633
12634 AgentContent string `json:"agentContent,omitempty"`
12635
12636
12637 AgentUri string `json:"agentUri,omitempty"`
12638
12639
12640
12641
12642
12643 ForceSendFields []string `json:"-"`
12644
12645
12646
12647
12648 NullFields []string `json:"-"`
12649 }
12650
12651 func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
12652 type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
12653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12654 }
12655
12656
12657
12658 type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
12659
12660 ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
12661
12662
12663
12664
12665
12666 ForceSendFields []string `json:"-"`
12667
12668
12669
12670
12671 NullFields []string `json:"-"`
12672 }
12673
12674 func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
12675 type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
12676 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12677 }
12678
12679
12680
12681 type GoogleCloudDialogflowV2beta1FaqAnswer struct {
12682
12683 Answer string `json:"answer,omitempty"`
12684
12685
12686 AnswerRecord string `json:"answerRecord,omitempty"`
12687
12688
12689
12690 Confidence float64 `json:"confidence,omitempty"`
12691
12692
12693 Metadata map[string]string `json:"metadata,omitempty"`
12694
12695 Question string `json:"question,omitempty"`
12696
12697
12698 Source string `json:"source,omitempty"`
12699
12700
12701
12702
12703
12704 ForceSendFields []string `json:"-"`
12705
12706
12707
12708
12709 NullFields []string `json:"-"`
12710 }
12711
12712 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
12713 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
12714 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12715 }
12716
12717 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
12718 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
12719 var s1 struct {
12720 Confidence gensupport.JSONFloat64 `json:"confidence"`
12721 *NoMethod
12722 }
12723 s1.NoMethod = (*NoMethod)(s)
12724 if err := json.Unmarshal(data, &s1); err != nil {
12725 return err
12726 }
12727 s.Confidence = float64(s1.Confidence)
12728 return nil
12729 }
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739
12740 type GoogleCloudDialogflowV2beta1Fulfillment struct {
12741
12742
12743 DisplayName string `json:"displayName,omitempty"`
12744
12745 Enabled bool `json:"enabled,omitempty"`
12746
12747
12748 Features []*GoogleCloudDialogflowV2beta1FulfillmentFeature `json:"features,omitempty"`
12749
12750 GenericWebService *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService `json:"genericWebService,omitempty"`
12751
12752
12753
12754 Name string `json:"name,omitempty"`
12755
12756
12757 googleapi.ServerResponse `json:"-"`
12758
12759
12760
12761
12762
12763 ForceSendFields []string `json:"-"`
12764
12765
12766
12767
12768 NullFields []string `json:"-"`
12769 }
12770
12771 func (s *GoogleCloudDialogflowV2beta1Fulfillment) MarshalJSON() ([]byte, error) {
12772 type NoMethod GoogleCloudDialogflowV2beta1Fulfillment
12773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12774 }
12775
12776
12777
12778 type GoogleCloudDialogflowV2beta1FulfillmentFeature struct {
12779
12780
12781
12782
12783
12784 Type string `json:"type,omitempty"`
12785
12786
12787
12788
12789
12790 ForceSendFields []string `json:"-"`
12791
12792
12793
12794
12795 NullFields []string `json:"-"`
12796 }
12797
12798 func (s *GoogleCloudDialogflowV2beta1FulfillmentFeature) MarshalJSON() ([]byte, error) {
12799 type NoMethod GoogleCloudDialogflowV2beta1FulfillmentFeature
12800 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12801 }
12802
12803
12804
12805
12806
12807
12808
12809 type GoogleCloudDialogflowV2beta1FulfillmentGenericWebService struct {
12810
12811
12812
12813
12814 IsCloudFunction bool `json:"isCloudFunction,omitempty"`
12815
12816 Password string `json:"password,omitempty"`
12817
12818
12819 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
12820
12821
12822 Uri string `json:"uri,omitempty"`
12823
12824 Username string `json:"username,omitempty"`
12825
12826
12827
12828
12829
12830 ForceSendFields []string `json:"-"`
12831
12832
12833
12834
12835 NullFields []string `json:"-"`
12836 }
12837
12838 func (s *GoogleCloudDialogflowV2beta1FulfillmentGenericWebService) MarshalJSON() ([]byte, error) {
12839 type NoMethod GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
12840 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12841 }
12842
12843
12844
12845 type GoogleCloudDialogflowV2beta1GcsDestination struct {
12846
12847
12848
12849
12850 Uri string `json:"uri,omitempty"`
12851
12852
12853
12854
12855
12856 ForceSendFields []string `json:"-"`
12857
12858
12859
12860
12861 NullFields []string `json:"-"`
12862 }
12863
12864 func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
12865 type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
12866 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12867 }
12868
12869
12870
12871 type GoogleCloudDialogflowV2beta1GcsSource struct {
12872
12873
12874
12875 Uri string `json:"uri,omitempty"`
12876
12877
12878
12879
12880
12881 ForceSendFields []string `json:"-"`
12882
12883
12884
12885
12886 NullFields []string `json:"-"`
12887 }
12888
12889 func (s *GoogleCloudDialogflowV2beta1GcsSource) MarshalJSON() ([]byte, error) {
12890 type NoMethod GoogleCloudDialogflowV2beta1GcsSource
12891 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12892 }
12893
12894
12895
12896 type GoogleCloudDialogflowV2beta1GcsSources struct {
12897
12898
12899
12900 Uris []string `json:"uris,omitempty"`
12901
12902
12903
12904
12905
12906 ForceSendFields []string `json:"-"`
12907
12908
12909
12910
12911 NullFields []string `json:"-"`
12912 }
12913
12914 func (s *GoogleCloudDialogflowV2beta1GcsSources) MarshalJSON() ([]byte, error) {
12915 type NoMethod GoogleCloudDialogflowV2beta1GcsSources
12916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12917 }
12918
12919
12920
12921 type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest struct {
12922
12923
12924
12925 ConversationProfile *GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfile,omitempty"`
12926
12927
12928
12929
12930 LatestMessage string `json:"latestMessage,omitempty"`
12931
12932
12933
12934 MaxContextSize int64 `json:"maxContextSize,omitempty"`
12935
12936 StatelessConversation *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation `json:"statelessConversation,omitempty"`
12937
12938
12939
12940
12941
12942 ForceSendFields []string `json:"-"`
12943
12944
12945
12946
12947 NullFields []string `json:"-"`
12948 }
12949
12950 func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) MarshalJSON() ([]byte, error) {
12951 type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
12952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12953 }
12954
12955
12956
12957
12958 type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation struct {
12959
12960
12961
12962
12963
12964 Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
12965
12966
12967
12968
12969
12970 ForceSendFields []string `json:"-"`
12971
12972
12973
12974
12975 NullFields []string `json:"-"`
12976 }
12977
12978 func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation) MarshalJSON() ([]byte, error) {
12979 type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation
12980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12981 }
12982
12983
12984
12985 type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse struct {
12986
12987
12988
12989
12990 ContextSize int64 `json:"contextSize,omitempty"`
12991
12992
12993
12994 LatestMessage string `json:"latestMessage,omitempty"`
12995
12996 Summary *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary `json:"summary,omitempty"`
12997
12998
12999 googleapi.ServerResponse `json:"-"`
13000
13001
13002
13003
13004
13005 ForceSendFields []string `json:"-"`
13006
13007
13008
13009
13010 NullFields []string `json:"-"`
13011 }
13012
13013 func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse) MarshalJSON() ([]byte, error) {
13014 type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
13015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13016 }
13017
13018
13019
13020 type GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary struct {
13021
13022
13023
13024 BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
13025
13026 Text string `json:"text,omitempty"`
13027
13028
13029
13030 TextSections map[string]string `json:"textSections,omitempty"`
13031
13032
13033
13034
13035
13036 ForceSendFields []string `json:"-"`
13037
13038
13039
13040
13041 NullFields []string `json:"-"`
13042 }
13043
13044 func (s *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary) MarshalJSON() ([]byte, error) {
13045 type NoMethod GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary
13046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13047 }
13048
13049
13050
13051 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig struct {
13052
13053
13054
13055 EndUserSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"endUserSuggestionConfig,omitempty"`
13056
13057
13058 HumanAgentSuggestionConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig `json:"humanAgentSuggestionConfig,omitempty"`
13059
13060 MessageAnalysisConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig `json:"messageAnalysisConfig,omitempty"`
13061
13062
13063 NotificationConfig *GoogleCloudDialogflowV2beta1NotificationConfig `json:"notificationConfig,omitempty"`
13064
13065
13066
13067
13068
13069 ForceSendFields []string `json:"-"`
13070
13071
13072
13073
13074 NullFields []string `json:"-"`
13075 }
13076
13077 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig) MarshalJSON() ([]byte, error) {
13078 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
13079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13080 }
13081
13082
13083
13084
13085
13086
13087 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig struct {
13088
13089
13090
13091 BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
13092
13093
13094 Model string `json:"model,omitempty"`
13095
13096
13097
13098
13099
13100 ForceSendFields []string `json:"-"`
13101
13102
13103
13104
13105 NullFields []string `json:"-"`
13106 }
13107
13108 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig) MarshalJSON() ([]byte, error) {
13109 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
13110 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13111 }
13112
13113
13114
13115 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig struct {
13116
13117
13118 RecentSentencesCount int64 `json:"recentSentencesCount,omitempty"`
13119
13120
13121
13122
13123
13124 ForceSendFields []string `json:"-"`
13125
13126
13127
13128
13129 NullFields []string `json:"-"`
13130 }
13131
13132 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig) MarshalJSON() ([]byte, error) {
13133 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig
13134 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13135 }
13136
13137
13138
13139 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig struct {
13140
13141
13142
13143
13144
13145 EnableEntityExtraction bool `json:"enableEntityExtraction,omitempty"`
13146
13147
13148
13149
13150
13151
13152
13153
13154
13155
13156
13157
13158
13159
13160
13161 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
13162
13163
13164
13165
13166
13167 ForceSendFields []string `json:"-"`
13168
13169
13170
13171
13172 NullFields []string `json:"-"`
13173 }
13174
13175 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig) MarshalJSON() ([]byte, error) {
13176 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
13177 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13178 }
13179
13180
13181
13182 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig struct {
13183
13184
13185 FeatureConfigs []*GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"featureConfigs,omitempty"`
13186
13187
13188
13189
13190
13191
13192
13193
13194
13195 GroupSuggestionResponses bool `json:"groupSuggestionResponses,omitempty"`
13196
13197
13198
13199
13200
13201 ForceSendFields []string `json:"-"`
13202
13203
13204
13205
13206 NullFields []string `json:"-"`
13207 }
13208
13209 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig) MarshalJSON() ([]byte, error) {
13210 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig
13211 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13212 }
13213
13214
13215
13216
13217 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig struct {
13218
13219 ConversationModelConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig `json:"conversationModelConfig,omitempty"`
13220
13221 ConversationProcessConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig `json:"conversationProcessConfig,omitempty"`
13222
13223
13224
13225 DisableAgentQueryLogging bool `json:"disableAgentQueryLogging,omitempty"`
13226
13227
13228
13229 EnableConversationAugmentedQuery bool `json:"enableConversationAugmentedQuery,omitempty"`
13230
13231
13232
13233 EnableEventBasedSuggestion bool `json:"enableEventBasedSuggestion,omitempty"`
13234
13235 QueryConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig `json:"queryConfig,omitempty"`
13236
13237 SuggestionFeature *GoogleCloudDialogflowV2beta1SuggestionFeature `json:"suggestionFeature,omitempty"`
13238
13239
13240 SuggestionTriggerSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings `json:"suggestionTriggerSettings,omitempty"`
13241
13242
13243
13244
13245
13246 ForceSendFields []string `json:"-"`
13247
13248
13249
13250
13251 NullFields []string `json:"-"`
13252 }
13253
13254 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig) MarshalJSON() ([]byte, error) {
13255 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig
13256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13257 }
13258
13259
13260
13261 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig struct {
13262
13263
13264
13265
13266
13267
13268
13269
13270
13271
13272
13273
13274 ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
13275
13276
13277
13278 ContextFilterSettings *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings `json:"contextFilterSettings,omitempty"`
13279
13280
13281 DialogflowQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource `json:"dialogflowQuerySource,omitempty"`
13282
13283
13284 DocumentQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource `json:"documentQuerySource,omitempty"`
13285
13286
13287 KnowledgeBaseQuerySource *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource `json:"knowledgeBaseQuerySource,omitempty"`
13288
13289
13290 MaxResults int64 `json:"maxResults,omitempty"`
13291
13292
13293 Sections *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections `json:"sections,omitempty"`
13294
13295
13296
13297
13298
13299 ForceSendFields []string `json:"-"`
13300
13301
13302
13303
13304 NullFields []string `json:"-"`
13305 }
13306
13307 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) MarshalJSON() ([]byte, error) {
13308 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
13309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13310 }
13311
13312 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig) UnmarshalJSON(data []byte) error {
13313 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfig
13314 var s1 struct {
13315 ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
13316 *NoMethod
13317 }
13318 s1.NoMethod = (*NoMethod)(s)
13319 if err := json.Unmarshal(data, &s1); err != nil {
13320 return err
13321 }
13322 s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
13323 return nil
13324 }
13325
13326
13327
13328
13329 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings struct {
13330
13331
13332
13333 DropHandoffMessages bool `json:"dropHandoffMessages,omitempty"`
13334
13335 DropIvrMessages bool `json:"dropIvrMessages,omitempty"`
13336
13337
13338 DropVirtualAgentMessages bool `json:"dropVirtualAgentMessages,omitempty"`
13339
13340
13341
13342
13343
13344 ForceSendFields []string `json:"-"`
13345
13346
13347
13348
13349 NullFields []string `json:"-"`
13350 }
13351
13352 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings) MarshalJSON() ([]byte, error) {
13353 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
13354 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13355 }
13356
13357
13358
13359
13360 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource struct {
13361
13362
13363
13364 Agent string `json:"agent,omitempty"`
13365
13366 HumanAgentSideConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig `json:"humanAgentSideConfig,omitempty"`
13367
13368
13369
13370
13371
13372 ForceSendFields []string `json:"-"`
13373
13374
13375
13376
13377 NullFields []string `json:"-"`
13378 }
13379
13380 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource) MarshalJSON() ([]byte, error) {
13381 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
13382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13383 }
13384
13385
13386
13387
13388 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig struct {
13389
13390
13391
13392 Agent string `json:"agent,omitempty"`
13393
13394
13395
13396
13397
13398 ForceSendFields []string `json:"-"`
13399
13400
13401
13402
13403 NullFields []string `json:"-"`
13404 }
13405
13406 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig) MarshalJSON() ([]byte, error) {
13407 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
13408 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13409 }
13410
13411
13412
13413
13414 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource struct {
13415
13416
13417
13418 Documents []string `json:"documents,omitempty"`
13419
13420
13421
13422
13423
13424 ForceSendFields []string `json:"-"`
13425
13426
13427
13428
13429 NullFields []string `json:"-"`
13430 }
13431
13432 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource) MarshalJSON() ([]byte, error) {
13433 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
13434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13435 }
13436
13437
13438
13439
13440 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource struct {
13441
13442
13443
13444 KnowledgeBases []string `json:"knowledgeBases,omitempty"`
13445
13446
13447
13448
13449
13450 ForceSendFields []string `json:"-"`
13451
13452
13453
13454
13455 NullFields []string `json:"-"`
13456 }
13457
13458 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource) MarshalJSON() ([]byte, error) {
13459 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
13460 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13461 }
13462
13463
13464
13465
13466
13467
13468 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections struct {
13469
13470
13471
13472
13473
13474
13475
13476
13477
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492 SectionTypes []string `json:"sectionTypes,omitempty"`
13493
13494
13495
13496
13497
13498 ForceSendFields []string `json:"-"`
13499
13500
13501
13502
13503 NullFields []string `json:"-"`
13504 }
13505
13506 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections) MarshalJSON() ([]byte, error) {
13507 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigSections
13508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13509 }
13510
13511
13512
13513 type GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings struct {
13514
13515 NoSmallTalk bool `json:"noSmallTalk,omitempty"`
13516
13517
13518 OnlyEndUser bool `json:"onlyEndUser,omitempty"`
13519
13520
13521
13522
13523
13524 ForceSendFields []string `json:"-"`
13525
13526
13527
13528
13529 NullFields []string `json:"-"`
13530 }
13531
13532 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings) MarshalJSON() ([]byte, error) {
13533 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionTriggerSettings
13534 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13535 }
13536
13537
13538
13539
13540 type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
13541
13542
13543 Conversation string `json:"conversation,omitempty"`
13544
13545
13546
13547
13548 Participant string `json:"participant,omitempty"`
13549
13550
13551
13552
13553 SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
13554
13555
13556
13557
13558
13559 ForceSendFields []string `json:"-"`
13560
13561
13562
13563
13564 NullFields []string `json:"-"`
13565 }
13566
13567 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
13568 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
13569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13570 }
13571
13572
13573
13574
13575
13576 type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig struct {
13577
13578 LivePersonConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig `json:"livePersonConfig,omitempty"`
13579
13580 SalesforceLiveAgentConfig *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig `json:"salesforceLiveAgentConfig,omitempty"`
13581
13582
13583
13584
13585
13586 ForceSendFields []string `json:"-"`
13587
13588
13589
13590
13591 NullFields []string `json:"-"`
13592 }
13593
13594 func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig) MarshalJSON() ([]byte, error) {
13595 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
13596 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13597 }
13598
13599
13600
13601 type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig struct {
13602
13603
13604 AccountNumber string `json:"accountNumber,omitempty"`
13605
13606
13607
13608
13609
13610 ForceSendFields []string `json:"-"`
13611
13612
13613
13614
13615 NullFields []string `json:"-"`
13616 }
13617
13618 func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig) MarshalJSON() ([]byte, error) {
13619 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
13620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13621 }
13622
13623
13624
13625
13626 type GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig struct {
13627
13628 ButtonId string `json:"buttonId,omitempty"`
13629
13630 DeploymentId string `json:"deploymentId,omitempty"`
13631
13632
13633
13634
13635 EndpointDomain string `json:"endpointDomain,omitempty"`
13636
13637 OrganizationId string `json:"organizationId,omitempty"`
13638
13639
13640
13641
13642
13643 ForceSendFields []string `json:"-"`
13644
13645
13646
13647
13648 NullFields []string `json:"-"`
13649 }
13650
13651 func (s *GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig) MarshalJSON() ([]byte, error) {
13652 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig
13653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13654 }
13655
13656
13657
13658 type GoogleCloudDialogflowV2beta1ImportAgentRequest struct {
13659
13660 AgentContent string `json:"agentContent,omitempty"`
13661
13662
13663
13664
13665
13666
13667 AgentUri string `json:"agentUri,omitempty"`
13668
13669
13670
13671
13672
13673 ForceSendFields []string `json:"-"`
13674
13675
13676
13677
13678 NullFields []string `json:"-"`
13679 }
13680
13681 func (s *GoogleCloudDialogflowV2beta1ImportAgentRequest) MarshalJSON() ([]byte, error) {
13682 type NoMethod GoogleCloudDialogflowV2beta1ImportAgentRequest
13683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13684 }
13685
13686
13687
13688 type GoogleCloudDialogflowV2beta1ImportDocumentTemplate struct {
13689
13690
13691
13692
13693
13694
13695
13696
13697
13698
13699
13700
13701
13702
13703
13704
13705 KnowledgeTypes []string `json:"knowledgeTypes,omitempty"`
13706
13707
13708
13709
13710 Metadata map[string]string `json:"metadata,omitempty"`
13711
13712 MimeType string `json:"mimeType,omitempty"`
13713
13714
13715
13716
13717
13718 ForceSendFields []string `json:"-"`
13719
13720
13721
13722
13723 NullFields []string `json:"-"`
13724 }
13725
13726 func (s *GoogleCloudDialogflowV2beta1ImportDocumentTemplate) MarshalJSON() ([]byte, error) {
13727 type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentTemplate
13728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13729 }
13730
13731
13732
13733 type GoogleCloudDialogflowV2beta1ImportDocumentsRequest struct {
13734
13735
13736 DocumentTemplate *GoogleCloudDialogflowV2beta1ImportDocumentTemplate `json:"documentTemplate,omitempty"`
13737
13738
13739
13740 GcsSource *GoogleCloudDialogflowV2beta1GcsSources `json:"gcsSource,omitempty"`
13741
13742
13743 ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
13744
13745
13746
13747
13748
13749 ForceSendFields []string `json:"-"`
13750
13751
13752
13753
13754 NullFields []string `json:"-"`
13755 }
13756
13757 func (s *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) MarshalJSON() ([]byte, error) {
13758 type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsRequest
13759 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13760 }
13761
13762
13763
13764 type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
13765
13766 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
13767
13768
13769
13770
13771
13772 ForceSendFields []string `json:"-"`
13773
13774
13775
13776
13777 NullFields []string `json:"-"`
13778 }
13779
13780 func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
13781 type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
13782 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13783 }
13784
13785
13786
13787 type GoogleCloudDialogflowV2beta1InputAudioConfig struct {
13788
13789
13790
13791
13792
13793
13794
13795
13796
13797
13798
13799
13800
13801
13802
13803
13804
13805
13806
13807
13808
13809
13810
13811
13812
13813
13814
13815
13816
13817
13818
13819
13820
13821 AudioEncoding string `json:"audioEncoding,omitempty"`
13822
13823
13824 BargeInConfig *GoogleCloudDialogflowV2beta1BargeInConfig `json:"bargeInConfig,omitempty"`
13825
13826
13827
13828 DisableNoSpeechRecognizedEvent bool `json:"disableNoSpeechRecognizedEvent,omitempty"`
13829
13830
13831 EnableAutomaticPunctuation bool `json:"enableAutomaticPunctuation,omitempty"`
13832
13833
13834
13835
13836 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
13837
13838
13839
13840
13841
13842 LanguageCode string `json:"languageCode,omitempty"`
13843
13844
13845
13846 Model string `json:"model,omitempty"`
13847
13848
13849
13850
13851
13852
13853
13854
13855
13856
13857
13858
13859
13860
13861
13862
13863
13864
13865
13866
13867
13868 ModelVariant string `json:"modelVariant,omitempty"`
13869
13870
13871
13872
13873
13874 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
13875
13876
13877
13878
13879
13880
13881
13882 PhraseHints []string `json:"phraseHints,omitempty"`
13883
13884
13885
13886 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
13887
13888
13889
13890
13891
13892
13893
13894
13895 SingleUtterance bool `json:"singleUtterance,omitempty"`
13896
13897
13898
13899
13900 SpeechContexts []*GoogleCloudDialogflowV2beta1SpeechContext `json:"speechContexts,omitempty"`
13901
13902
13903
13904
13905
13906 ForceSendFields []string `json:"-"`
13907
13908
13909
13910
13911 NullFields []string `json:"-"`
13912 }
13913
13914 func (s *GoogleCloudDialogflowV2beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
13915 type NoMethod GoogleCloudDialogflowV2beta1InputAudioConfig
13916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13917 }
13918
13919
13920
13921
13922
13923
13924
13925
13926
13927 type GoogleCloudDialogflowV2beta1Intent struct {
13928
13929
13930 Action string `json:"action,omitempty"`
13931
13932
13933
13934
13935
13936
13937
13938
13939
13940
13941
13942
13943
13944
13945
13946
13947
13948
13949 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
13950
13951 DisplayName string `json:"displayName,omitempty"`
13952
13953
13954
13955 EndInteraction bool `json:"endInteraction,omitempty"`
13956
13957
13958
13959
13960 Events []string `json:"events,omitempty"`
13961
13962
13963
13964 FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
13965
13966
13967
13968 InputContextNames []string `json:"inputContextNames,omitempty"`
13969
13970 IsFallback bool `json:"isFallback,omitempty"`
13971
13972
13973
13974
13975 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
13976
13977
13978 Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
13979
13980
13981
13982
13983 MlDisabled bool `json:"mlDisabled,omitempty"`
13984
13985
13986
13987
13988
13989
13990
13991
13992
13993 MlEnabled bool `json:"mlEnabled,omitempty"`
13994
13995
13996
13997
13998 Name string `json:"name,omitempty"`
13999
14000
14001
14002
14003
14004 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
14005
14006
14007 Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
14008
14009
14010
14011
14012
14013 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
14014
14015
14016
14017
14018
14019 Priority int64 `json:"priority,omitempty"`
14020
14021
14022 ResetContexts bool `json:"resetContexts,omitempty"`
14023
14024
14025
14026 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
14027
14028
14029 TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
14030
14031
14032
14033
14034
14035
14036
14037
14038
14039
14040
14041 WebhookState string `json:"webhookState,omitempty"`
14042
14043
14044 googleapi.ServerResponse `json:"-"`
14045
14046
14047
14048
14049
14050 ForceSendFields []string `json:"-"`
14051
14052
14053
14054
14055 NullFields []string `json:"-"`
14056 }
14057
14058 func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
14059 type NoMethod GoogleCloudDialogflowV2beta1Intent
14060 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14061 }
14062
14063
14064
14065 type GoogleCloudDialogflowV2beta1IntentBatch struct {
14066
14067 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
14068
14069
14070
14071
14072
14073 ForceSendFields []string `json:"-"`
14074
14075
14076
14077
14078 NullFields []string `json:"-"`
14079 }
14080
14081 func (s *GoogleCloudDialogflowV2beta1IntentBatch) MarshalJSON() ([]byte, error) {
14082 type NoMethod GoogleCloudDialogflowV2beta1IntentBatch
14083 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14084 }
14085
14086
14087
14088 type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
14089
14090
14091 FollowupIntentName string `json:"followupIntentName,omitempty"`
14092
14093
14094 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
14095
14096
14097
14098
14099
14100 ForceSendFields []string `json:"-"`
14101
14102
14103
14104
14105 NullFields []string `json:"-"`
14106 }
14107
14108 func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
14109 type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
14110 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14111 }
14112
14113
14114
14115
14116 type GoogleCloudDialogflowV2beta1IntentInput struct {
14117
14118
14119 Intent string `json:"intent,omitempty"`
14120
14121
14122
14123
14124 LanguageCode string `json:"languageCode,omitempty"`
14125
14126
14127
14128
14129
14130 ForceSendFields []string `json:"-"`
14131
14132
14133
14134
14135 NullFields []string `json:"-"`
14136 }
14137
14138 func (s *GoogleCloudDialogflowV2beta1IntentInput) MarshalJSON() ([]byte, error) {
14139 type NoMethod GoogleCloudDialogflowV2beta1IntentInput
14140 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14141 }
14142
14143
14144
14145 type GoogleCloudDialogflowV2beta1IntentMessage struct {
14146
14147 BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
14148
14149 BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
14150
14151 Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
14152
14153 CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
14154
14155 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14156
14157
14158 LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
14159
14160 ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
14161
14162 MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
14163
14164 Payload googleapi.RawMessage `json:"payload,omitempty"`
14165
14166
14167
14168
14169
14170
14171
14172
14173
14174
14175
14176
14177
14178
14179
14180
14181 Platform string `json:"platform,omitempty"`
14182
14183 QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
14184
14185
14186 RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
14187
14188
14189 RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
14190
14191
14192
14193 RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
14194
14195
14196 SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
14197
14198 Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
14199
14200 TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
14201
14202 TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
14203
14204 TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
14205
14206 TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
14207
14208 Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
14209
14210
14211
14212
14213
14214 ForceSendFields []string `json:"-"`
14215
14216
14217
14218
14219 NullFields []string `json:"-"`
14220 }
14221
14222 func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
14223 type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
14224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14225 }
14226
14227
14228
14229 type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
14230
14231 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
14232
14233 FormattedText string `json:"formattedText,omitempty"`
14234
14235 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14236
14237 Subtitle string `json:"subtitle,omitempty"`
14238
14239 Title string `json:"title,omitempty"`
14240
14241
14242
14243
14244
14245 ForceSendFields []string `json:"-"`
14246
14247
14248
14249
14250 NullFields []string `json:"-"`
14251 }
14252
14253 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
14254 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
14255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14256 }
14257
14258
14259
14260 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
14261
14262 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
14263
14264 Title string `json:"title,omitempty"`
14265
14266
14267
14268
14269
14270 ForceSendFields []string `json:"-"`
14271
14272
14273
14274
14275 NullFields []string `json:"-"`
14276 }
14277
14278 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
14279 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
14280 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14281 }
14282
14283
14284
14285 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
14286
14287 Uri string `json:"uri,omitempty"`
14288
14289
14290
14291
14292
14293 ForceSendFields []string `json:"-"`
14294
14295
14296
14297
14298 NullFields []string `json:"-"`
14299 }
14300
14301 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
14302 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
14303 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14304 }
14305
14306
14307
14308
14309 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
14310
14311
14312
14313
14314
14315
14316
14317
14318
14319
14320
14321
14322
14323
14324
14325
14326
14327
14328 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
14329
14330
14331 Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
14332
14333
14334
14335
14336
14337 ForceSendFields []string `json:"-"`
14338
14339
14340
14341
14342 NullFields []string `json:"-"`
14343 }
14344
14345 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
14346 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
14347 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14348 }
14349
14350
14351
14352 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
14353
14354
14355 Description string `json:"description,omitempty"`
14356
14357
14358 Footer string `json:"footer,omitempty"`
14359
14360 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14361
14362 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
14363
14364 Title string `json:"title,omitempty"`
14365
14366
14367
14368
14369
14370 ForceSendFields []string `json:"-"`
14371
14372
14373
14374
14375 NullFields []string `json:"-"`
14376 }
14377
14378 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
14379 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
14380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14381 }
14382
14383
14384
14385 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
14386
14387 Url string `json:"url,omitempty"`
14388
14389
14390
14391
14392
14393
14394
14395
14396 UrlTypeHint string `json:"urlTypeHint,omitempty"`
14397
14398
14399
14400
14401
14402 ForceSendFields []string `json:"-"`
14403
14404
14405
14406
14407 NullFields []string `json:"-"`
14408 }
14409
14410 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
14411 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
14412 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14413 }
14414
14415
14416 type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
14417
14418 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
14419
14420 ImageUri string `json:"imageUri,omitempty"`
14421
14422 Subtitle string `json:"subtitle,omitempty"`
14423
14424 Title string `json:"title,omitempty"`
14425
14426
14427
14428
14429
14430 ForceSendFields []string `json:"-"`
14431
14432
14433
14434
14435 NullFields []string `json:"-"`
14436 }
14437
14438 func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
14439 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
14440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14441 }
14442
14443
14444
14445 type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
14446
14447
14448 Postback string `json:"postback,omitempty"`
14449
14450 Text string `json:"text,omitempty"`
14451
14452
14453
14454
14455
14456 ForceSendFields []string `json:"-"`
14457
14458
14459
14460
14461 NullFields []string `json:"-"`
14462 }
14463
14464 func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
14465 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
14466 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14467 }
14468
14469
14470
14471 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
14472
14473 Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
14474
14475
14476
14477
14478
14479 ForceSendFields []string `json:"-"`
14480
14481
14482
14483
14484 NullFields []string `json:"-"`
14485 }
14486
14487 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
14488 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
14489 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14490 }
14491
14492
14493
14494 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
14495
14496 Description string `json:"description,omitempty"`
14497
14498 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14499
14500 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
14501
14502 Title string `json:"title,omitempty"`
14503
14504
14505
14506
14507
14508 ForceSendFields []string `json:"-"`
14509
14510
14511
14512
14513 NullFields []string `json:"-"`
14514 }
14515
14516 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
14517 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
14518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14519 }
14520
14521
14522
14523 type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
14524
14525 Header string `json:"header,omitempty"`
14526
14527
14528
14529
14530
14531
14532
14533
14534
14535 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
14536
14537
14538
14539
14540
14541 ForceSendFields []string `json:"-"`
14542
14543
14544
14545
14546 NullFields []string `json:"-"`
14547 }
14548
14549 func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
14550 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
14551 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14552 }
14553
14554
14555 type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
14556
14557
14558
14559 AccessibilityText string `json:"accessibilityText,omitempty"`
14560
14561 ImageUri string `json:"imageUri,omitempty"`
14562
14563
14564
14565
14566
14567 ForceSendFields []string `json:"-"`
14568
14569
14570
14571
14572 NullFields []string `json:"-"`
14573 }
14574
14575 func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
14576 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
14577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14578 }
14579
14580
14581
14582
14583 type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
14584
14585
14586 DestinationName string `json:"destinationName,omitempty"`
14587
14588
14589 Uri string `json:"uri,omitempty"`
14590
14591
14592
14593
14594
14595 ForceSendFields []string `json:"-"`
14596
14597
14598
14599
14600 NullFields []string `json:"-"`
14601 }
14602
14603 func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
14604 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
14605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14606 }
14607
14608
14609
14610 type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
14611
14612 Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
14613
14614 Subtitle string `json:"subtitle,omitempty"`
14615
14616 Title string `json:"title,omitempty"`
14617
14618
14619
14620
14621
14622 ForceSendFields []string `json:"-"`
14623
14624
14625
14626
14627 NullFields []string `json:"-"`
14628 }
14629
14630 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
14631 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
14632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14633 }
14634
14635
14636
14637 type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
14638
14639 Description string `json:"description,omitempty"`
14640
14641 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
14642
14643 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
14644
14645 Title string `json:"title,omitempty"`
14646
14647
14648
14649
14650
14651 ForceSendFields []string `json:"-"`
14652
14653
14654
14655
14656 NullFields []string `json:"-"`
14657 }
14658
14659 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
14660 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
14661 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14662 }
14663
14664
14665
14666 type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
14667
14668 MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
14669
14670
14671
14672
14673
14674 MediaType string `json:"mediaType,omitempty"`
14675
14676
14677
14678
14679
14680 ForceSendFields []string `json:"-"`
14681
14682
14683
14684
14685 NullFields []string `json:"-"`
14686 }
14687
14688 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
14689 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
14690 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14691 }
14692
14693
14694
14695 type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
14696
14697 ContentUrl string `json:"contentUrl,omitempty"`
14698
14699 Description string `json:"description,omitempty"`
14700
14701 Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
14702
14703 LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
14704
14705 Name string `json:"name,omitempty"`
14706
14707
14708
14709
14710
14711 ForceSendFields []string `json:"-"`
14712
14713
14714
14715
14716 NullFields []string `json:"-"`
14717 }
14718
14719 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
14720 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
14721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14722 }
14723
14724
14725
14726 type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
14727
14728 QuickReplies []string `json:"quickReplies,omitempty"`
14729
14730 Title string `json:"title,omitempty"`
14731
14732
14733
14734
14735
14736 ForceSendFields []string `json:"-"`
14737
14738
14739
14740
14741 NullFields []string `json:"-"`
14742 }
14743
14744 func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
14745 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
14746 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14747 }
14748
14749
14750
14751 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
14752
14753
14754 Description string `json:"description,omitempty"`
14755
14756
14757 Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
14758
14759 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
14760
14761
14762 Title string `json:"title,omitempty"`
14763
14764
14765
14766
14767
14768 ForceSendFields []string `json:"-"`
14769
14770
14771
14772
14773 NullFields []string `json:"-"`
14774 }
14775
14776 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
14777 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
14778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14779 }
14780
14781
14782
14783
14784
14785
14786 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
14787
14788
14789
14790
14791 FileUri string `json:"fileUri,omitempty"`
14792
14793
14794
14795
14796
14797
14798
14799
14800
14801
14802 Height string `json:"height,omitempty"`
14803
14804
14805
14806
14807
14808 ThumbnailUri string `json:"thumbnailUri,omitempty"`
14809
14810
14811
14812
14813
14814 ForceSendFields []string `json:"-"`
14815
14816
14817
14818
14819 NullFields []string `json:"-"`
14820 }
14821
14822 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
14823 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
14824 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14825 }
14826
14827
14828
14829
14830
14831
14832 type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
14833
14834
14835 CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
14836
14837
14838
14839
14840
14841
14842 CardWidth string `json:"cardWidth,omitempty"`
14843
14844
14845
14846
14847
14848 ForceSendFields []string `json:"-"`
14849
14850
14851
14852
14853 NullFields []string `json:"-"`
14854 }
14855
14856 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
14857 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
14858 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14859 }
14860
14861
14862
14863
14864
14865
14866 type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
14867
14868 CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
14869
14870
14871
14872
14873
14874
14875 CardOrientation string `json:"cardOrientation,omitempty"`
14876
14877
14878
14879
14880
14881
14882
14883 ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
14884
14885
14886
14887
14888
14889 ForceSendFields []string `json:"-"`
14890
14891
14892
14893
14894 NullFields []string `json:"-"`
14895 }
14896
14897 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
14898 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
14899 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14900 }
14901
14902
14903
14904
14905 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
14906
14907 Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
14908
14909 OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
14910
14911
14912
14913 PostbackData string `json:"postbackData,omitempty"`
14914
14915 ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
14916
14917 Text string `json:"text,omitempty"`
14918
14919
14920
14921
14922
14923 ForceSendFields []string `json:"-"`
14924
14925
14926
14927
14928 NullFields []string `json:"-"`
14929 }
14930
14931 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
14932 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
14933 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14934 }
14935
14936
14937
14938
14939 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
14940
14941
14942
14943 PhoneNumber string `json:"phoneNumber,omitempty"`
14944
14945
14946
14947
14948
14949 ForceSendFields []string `json:"-"`
14950
14951
14952
14953
14954 NullFields []string `json:"-"`
14955 }
14956
14957 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
14958 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
14959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14960 }
14961
14962
14963
14964
14965
14966
14967 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
14968
14969 Uri string `json:"uri,omitempty"`
14970
14971
14972
14973
14974
14975 ForceSendFields []string `json:"-"`
14976
14977
14978
14979
14980 NullFields []string `json:"-"`
14981 }
14982
14983 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
14984 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
14985 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14986 }
14987
14988
14989
14990
14991 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
14992 }
14993
14994
14995
14996
14997 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
14998
14999
15000
15001 PostbackData string `json:"postbackData,omitempty"`
15002
15003 Text string `json:"text,omitempty"`
15004
15005
15006
15007
15008
15009 ForceSendFields []string `json:"-"`
15010
15011
15012
15013
15014 NullFields []string `json:"-"`
15015 }
15016
15017 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
15018 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
15019 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15020 }
15021
15022
15023
15024
15025 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
15026
15027 Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
15028
15029 Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
15030
15031
15032
15033
15034
15035 ForceSendFields []string `json:"-"`
15036
15037
15038
15039
15040 NullFields []string `json:"-"`
15041 }
15042
15043 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
15044 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
15045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15046 }
15047
15048
15049
15050 type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
15051
15052 RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
15053
15054 Text string `json:"text,omitempty"`
15055
15056
15057
15058
15059
15060 ForceSendFields []string `json:"-"`
15061
15062
15063
15064
15065 NullFields []string `json:"-"`
15066 }
15067
15068 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
15069 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
15070 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15071 }
15072
15073
15074
15075 type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
15076
15077
15078 Key string `json:"key,omitempty"`
15079
15080
15081 Synonyms []string `json:"synonyms,omitempty"`
15082
15083
15084
15085
15086
15087 ForceSendFields []string `json:"-"`
15088
15089
15090
15091
15092 NullFields []string `json:"-"`
15093 }
15094
15095 func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
15096 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
15097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15098 }
15099
15100
15101
15102 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
15103
15104 DisplayText string `json:"displayText,omitempty"`
15105
15106
15107
15108 Ssml string `json:"ssml,omitempty"`
15109
15110
15111 TextToSpeech string `json:"textToSpeech,omitempty"`
15112
15113
15114
15115
15116
15117 ForceSendFields []string `json:"-"`
15118
15119
15120
15121
15122 NullFields []string `json:"-"`
15123 }
15124
15125 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
15126 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
15127 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15128 }
15129
15130
15131
15132
15133
15134
15135 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
15136
15137 SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
15138
15139
15140
15141
15142
15143 ForceSendFields []string `json:"-"`
15144
15145
15146
15147
15148 NullFields []string `json:"-"`
15149 }
15150
15151 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
15152 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
15153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15154 }
15155
15156
15157
15158 type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
15159
15160 Title string `json:"title,omitempty"`
15161
15162
15163
15164
15165
15166 ForceSendFields []string `json:"-"`
15167
15168
15169
15170
15171 NullFields []string `json:"-"`
15172 }
15173
15174 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
15175 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
15176 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15177 }
15178
15179
15180
15181 type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
15182
15183 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
15184
15185
15186
15187
15188
15189 ForceSendFields []string `json:"-"`
15190
15191
15192
15193
15194 NullFields []string `json:"-"`
15195 }
15196
15197 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
15198 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
15199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15200 }
15201
15202
15203
15204 type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
15205
15206 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
15207
15208
15209 ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
15210
15211 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
15212
15213 Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
15214
15215 Subtitle string `json:"subtitle,omitempty"`
15216
15217 Title string `json:"title,omitempty"`
15218
15219
15220
15221
15222
15223 ForceSendFields []string `json:"-"`
15224
15225
15226
15227
15228 NullFields []string `json:"-"`
15229 }
15230
15231 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
15232 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
15233 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15234 }
15235
15236
15237
15238 type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
15239
15240 Text string `json:"text,omitempty"`
15241
15242
15243
15244
15245
15246 ForceSendFields []string `json:"-"`
15247
15248
15249
15250
15251 NullFields []string `json:"-"`
15252 }
15253
15254 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
15255 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
15256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15257 }
15258
15259
15260 type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
15261
15262 Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
15263
15264 DividerAfter bool `json:"dividerAfter,omitempty"`
15265
15266
15267
15268
15269
15270 ForceSendFields []string `json:"-"`
15271
15272
15273
15274
15275 NullFields []string `json:"-"`
15276 }
15277
15278 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
15279 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
15280 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15281 }
15282
15283
15284
15285 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
15286
15287
15288
15289
15290
15291
15292
15293
15294
15295 AudioUri string `json:"audioUri,omitempty"`
15296
15297
15298
15299
15300
15301 ForceSendFields []string `json:"-"`
15302
15303
15304
15305
15306 NullFields []string `json:"-"`
15307 }
15308
15309 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
15310 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
15311 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15312 }
15313
15314
15315
15316
15317
15318
15319 type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
15320
15321
15322 Ssml string `json:"ssml,omitempty"`
15323
15324 Text string `json:"text,omitempty"`
15325
15326
15327
15328
15329
15330 ForceSendFields []string `json:"-"`
15331
15332
15333
15334
15335 NullFields []string `json:"-"`
15336 }
15337
15338 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
15339 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
15340 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15341 }
15342
15343
15344
15345 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
15346
15347
15348
15349 PhoneNumber string `json:"phoneNumber,omitempty"`
15350
15351
15352
15353
15354
15355 ForceSendFields []string `json:"-"`
15356
15357
15358
15359
15360 NullFields []string `json:"-"`
15361 }
15362
15363 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
15364 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
15365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15366 }
15367
15368
15369 type GoogleCloudDialogflowV2beta1IntentMessageText struct {
15370
15371 Text []string `json:"text,omitempty"`
15372
15373
15374
15375
15376
15377 ForceSendFields []string `json:"-"`
15378
15379
15380
15381
15382 NullFields []string `json:"-"`
15383 }
15384
15385 func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
15386 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
15387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15388 }
15389
15390
15391 type GoogleCloudDialogflowV2beta1IntentParameter struct {
15392
15393
15394
15395 DefaultValue string `json:"defaultValue,omitempty"`
15396
15397 DisplayName string `json:"displayName,omitempty"`
15398
15399
15400
15401 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
15402
15403
15404 IsList bool `json:"isList,omitempty"`
15405
15406
15407
15408 Mandatory bool `json:"mandatory,omitempty"`
15409
15410 Name string `json:"name,omitempty"`
15411
15412
15413 Prompts []string `json:"prompts,omitempty"`
15414
15415
15416
15417
15418 Value string `json:"value,omitempty"`
15419
15420
15421
15422
15423
15424 ForceSendFields []string `json:"-"`
15425
15426
15427
15428
15429 NullFields []string `json:"-"`
15430 }
15431
15432 func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
15433 type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
15434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15435 }
15436
15437
15438
15439 type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
15440
15441
15442
15443 Description string `json:"description,omitempty"`
15444
15445 DisplayName string `json:"displayName,omitempty"`
15446
15447
15448 IntentV2 string `json:"intentV2,omitempty"`
15449
15450
15451
15452
15453
15454 ForceSendFields []string `json:"-"`
15455
15456
15457
15458
15459 NullFields []string `json:"-"`
15460 }
15461
15462 func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
15463 type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
15464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15465 }
15466
15467
15468
15469 type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
15470
15471 Name string `json:"name,omitempty"`
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484 Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
15485
15486
15487
15488 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501 Type string `json:"type,omitempty"`
15502
15503
15504
15505
15506
15507 ForceSendFields []string `json:"-"`
15508
15509
15510
15511
15512 NullFields []string `json:"-"`
15513 }
15514
15515 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
15516 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
15517 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15518 }
15519
15520
15521
15522 type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
15523
15524
15525
15526 Alias string `json:"alias,omitempty"`
15527
15528
15529 EntityType string `json:"entityType,omitempty"`
15530
15531 Text string `json:"text,omitempty"`
15532
15533
15534
15535
15536 UserDefined bool `json:"userDefined,omitempty"`
15537
15538
15539
15540
15541
15542 ForceSendFields []string `json:"-"`
15543
15544
15545
15546
15547 NullFields []string `json:"-"`
15548 }
15549
15550 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
15551 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
15552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15553 }
15554
15555
15556
15557 type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
15558
15559 Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
15560
15561
15562
15563
15564
15565 ForceSendFields []string `json:"-"`
15566
15567
15568
15569
15570 NullFields []string `json:"-"`
15571 }
15572
15573 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
15574 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
15575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15576 }
15577
15578
15579
15580 type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
15581
15582
15583 Answer string `json:"answer,omitempty"`
15584
15585
15586 FaqQuestion string `json:"faqQuestion,omitempty"`
15587
15588
15589
15590
15591
15592
15593
15594 MatchConfidence float64 `json:"matchConfidence,omitempty"`
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607 MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
15608
15609
15610 Source string `json:"source,omitempty"`
15611
15612
15613
15614
15615
15616 ForceSendFields []string `json:"-"`
15617
15618
15619
15620
15621 NullFields []string `json:"-"`
15622 }
15623
15624 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
15625 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
15626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15627 }
15628
15629 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
15630 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
15631 var s1 struct {
15632 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
15633 *NoMethod
15634 }
15635 s1.NoMethod = (*NoMethod)(s)
15636 if err := json.Unmarshal(data, &s1); err != nil {
15637 return err
15638 }
15639 s.MatchConfidence = float64(s1.MatchConfidence)
15640 return nil
15641 }
15642
15643
15644
15645
15646
15647
15648
15649
15650
15651
15652 type GoogleCloudDialogflowV2beta1KnowledgeBase struct {
15653
15654
15655 DisplayName string `json:"displayName,omitempty"`
15656
15657
15658
15659 LanguageCode string `json:"languageCode,omitempty"`
15660
15661
15662 Name string `json:"name,omitempty"`
15663
15664
15665 googleapi.ServerResponse `json:"-"`
15666
15667
15668
15669
15670
15671 ForceSendFields []string `json:"-"`
15672
15673
15674
15675
15676 NullFields []string `json:"-"`
15677 }
15678
15679 func (s *GoogleCloudDialogflowV2beta1KnowledgeBase) MarshalJSON() ([]byte, error) {
15680 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeBase
15681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15682 }
15683
15684
15685
15686 type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
15687
15688
15689 ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
15690
15691
15692 KnowledgeBase string `json:"knowledgeBase,omitempty"`
15693
15694
15695
15696
15697
15698
15699
15700 State string `json:"state,omitempty"`
15701
15702
15703
15704
15705
15706 ForceSendFields []string `json:"-"`
15707
15708
15709
15710
15711 NullFields []string `json:"-"`
15712 }
15713
15714 func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
15715 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
15716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15717 }
15718
15719
15720
15721 type GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse struct {
15722
15723 AnswerRecords []*GoogleCloudDialogflowV2beta1AnswerRecord `json:"answerRecords,omitempty"`
15724
15725
15726
15727
15728 NextPageToken string `json:"nextPageToken,omitempty"`
15729
15730
15731 googleapi.ServerResponse `json:"-"`
15732
15733
15734
15735
15736
15737 ForceSendFields []string `json:"-"`
15738
15739
15740
15741
15742 NullFields []string `json:"-"`
15743 }
15744
15745 func (s *GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) MarshalJSON() ([]byte, error) {
15746 type NoMethod GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
15747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15748 }
15749
15750
15751
15752 type GoogleCloudDialogflowV2beta1ListContextsResponse struct {
15753
15754
15755 Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
15756
15757
15758 NextPageToken string `json:"nextPageToken,omitempty"`
15759
15760
15761 googleapi.ServerResponse `json:"-"`
15762
15763
15764
15765
15766
15767 ForceSendFields []string `json:"-"`
15768
15769
15770
15771
15772 NullFields []string `json:"-"`
15773 }
15774
15775 func (s *GoogleCloudDialogflowV2beta1ListContextsResponse) MarshalJSON() ([]byte, error) {
15776 type NoMethod GoogleCloudDialogflowV2beta1ListContextsResponse
15777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15778 }
15779
15780
15781
15782 type GoogleCloudDialogflowV2beta1ListConversationProfilesResponse struct {
15783
15784
15785
15786 ConversationProfiles []*GoogleCloudDialogflowV2beta1ConversationProfile `json:"conversationProfiles,omitempty"`
15787
15788
15789 NextPageToken string `json:"nextPageToken,omitempty"`
15790
15791
15792 googleapi.ServerResponse `json:"-"`
15793
15794
15795
15796
15797
15798 ForceSendFields []string `json:"-"`
15799
15800
15801
15802
15803 NullFields []string `json:"-"`
15804 }
15805
15806 func (s *GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) MarshalJSON() ([]byte, error) {
15807 type NoMethod GoogleCloudDialogflowV2beta1ListConversationProfilesResponse
15808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15809 }
15810
15811
15812
15813 type GoogleCloudDialogflowV2beta1ListConversationsResponse struct {
15814
15815
15816 Conversations []*GoogleCloudDialogflowV2beta1Conversation `json:"conversations,omitempty"`
15817
15818
15819 NextPageToken string `json:"nextPageToken,omitempty"`
15820
15821
15822 googleapi.ServerResponse `json:"-"`
15823
15824
15825
15826
15827
15828 ForceSendFields []string `json:"-"`
15829
15830
15831
15832
15833 NullFields []string `json:"-"`
15834 }
15835
15836 func (s *GoogleCloudDialogflowV2beta1ListConversationsResponse) MarshalJSON() ([]byte, error) {
15837 type NoMethod GoogleCloudDialogflowV2beta1ListConversationsResponse
15838 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15839 }
15840
15841
15842
15843 type GoogleCloudDialogflowV2beta1ListDocumentsResponse struct {
15844
15845 Documents []*GoogleCloudDialogflowV2beta1Document `json:"documents,omitempty"`
15846
15847
15848 NextPageToken string `json:"nextPageToken,omitempty"`
15849
15850
15851 googleapi.ServerResponse `json:"-"`
15852
15853
15854
15855
15856
15857 ForceSendFields []string `json:"-"`
15858
15859
15860
15861
15862 NullFields []string `json:"-"`
15863 }
15864
15865 func (s *GoogleCloudDialogflowV2beta1ListDocumentsResponse) MarshalJSON() ([]byte, error) {
15866 type NoMethod GoogleCloudDialogflowV2beta1ListDocumentsResponse
15867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15868 }
15869
15870
15871
15872 type GoogleCloudDialogflowV2beta1ListEntityTypesResponse struct {
15873
15874
15875 EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
15876
15877
15878 NextPageToken string `json:"nextPageToken,omitempty"`
15879
15880
15881 googleapi.ServerResponse `json:"-"`
15882
15883
15884
15885
15886
15887 ForceSendFields []string `json:"-"`
15888
15889
15890
15891
15892 NullFields []string `json:"-"`
15893 }
15894
15895 func (s *GoogleCloudDialogflowV2beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
15896 type NoMethod GoogleCloudDialogflowV2beta1ListEntityTypesResponse
15897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15898 }
15899
15900
15901
15902 type GoogleCloudDialogflowV2beta1ListEnvironmentsResponse struct {
15903
15904
15905 Environments []*GoogleCloudDialogflowV2beta1Environment `json:"environments,omitempty"`
15906
15907
15908 NextPageToken string `json:"nextPageToken,omitempty"`
15909
15910
15911 googleapi.ServerResponse `json:"-"`
15912
15913
15914
15915
15916
15917 ForceSendFields []string `json:"-"`
15918
15919
15920
15921
15922 NullFields []string `json:"-"`
15923 }
15924
15925 func (s *GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
15926 type NoMethod GoogleCloudDialogflowV2beta1ListEnvironmentsResponse
15927 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15928 }
15929
15930
15931
15932 type GoogleCloudDialogflowV2beta1ListIntentsResponse struct {
15933
15934
15935 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
15936
15937
15938 NextPageToken string `json:"nextPageToken,omitempty"`
15939
15940
15941 googleapi.ServerResponse `json:"-"`
15942
15943
15944
15945
15946
15947 ForceSendFields []string `json:"-"`
15948
15949
15950
15951
15952 NullFields []string `json:"-"`
15953 }
15954
15955 func (s *GoogleCloudDialogflowV2beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
15956 type NoMethod GoogleCloudDialogflowV2beta1ListIntentsResponse
15957 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15958 }
15959
15960
15961
15962 type GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse struct {
15963
15964 KnowledgeBases []*GoogleCloudDialogflowV2beta1KnowledgeBase `json:"knowledgeBases,omitempty"`
15965
15966
15967 NextPageToken string `json:"nextPageToken,omitempty"`
15968
15969
15970 googleapi.ServerResponse `json:"-"`
15971
15972
15973
15974
15975
15976 ForceSendFields []string `json:"-"`
15977
15978
15979
15980
15981 NullFields []string `json:"-"`
15982 }
15983
15984 func (s *GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) MarshalJSON() ([]byte, error) {
15985 type NoMethod GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse
15986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15987 }
15988
15989
15990
15991 type GoogleCloudDialogflowV2beta1ListMessagesResponse struct {
15992
15993
15994
15995 Messages []*GoogleCloudDialogflowV2beta1Message `json:"messages,omitempty"`
15996
15997
15998 NextPageToken string `json:"nextPageToken,omitempty"`
15999
16000
16001 googleapi.ServerResponse `json:"-"`
16002
16003
16004
16005
16006
16007 ForceSendFields []string `json:"-"`
16008
16009
16010
16011
16012 NullFields []string `json:"-"`
16013 }
16014
16015 func (s *GoogleCloudDialogflowV2beta1ListMessagesResponse) MarshalJSON() ([]byte, error) {
16016 type NoMethod GoogleCloudDialogflowV2beta1ListMessagesResponse
16017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16018 }
16019
16020
16021
16022 type GoogleCloudDialogflowV2beta1ListParticipantsResponse struct {
16023
16024
16025 NextPageToken string `json:"nextPageToken,omitempty"`
16026
16027
16028 Participants []*GoogleCloudDialogflowV2beta1Participant `json:"participants,omitempty"`
16029
16030
16031 googleapi.ServerResponse `json:"-"`
16032
16033
16034
16035
16036
16037 ForceSendFields []string `json:"-"`
16038
16039
16040
16041
16042 NullFields []string `json:"-"`
16043 }
16044
16045 func (s *GoogleCloudDialogflowV2beta1ListParticipantsResponse) MarshalJSON() ([]byte, error) {
16046 type NoMethod GoogleCloudDialogflowV2beta1ListParticipantsResponse
16047 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16048 }
16049
16050
16051
16052 type GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse struct {
16053
16054
16055 NextPageToken string `json:"nextPageToken,omitempty"`
16056
16057
16058
16059 SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
16060
16061
16062 googleapi.ServerResponse `json:"-"`
16063
16064
16065
16066
16067
16068 ForceSendFields []string `json:"-"`
16069
16070
16071
16072
16073 NullFields []string `json:"-"`
16074 }
16075
16076 func (s *GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
16077 type NoMethod GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse
16078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16079 }
16080
16081
16082
16083 type GoogleCloudDialogflowV2beta1ListSuggestionsResponse struct {
16084
16085
16086 NextPageToken string `json:"nextPageToken,omitempty"`
16087
16088
16089
16090 Suggestions []*GoogleCloudDialogflowV2beta1Suggestion `json:"suggestions,omitempty"`
16091
16092
16093 googleapi.ServerResponse `json:"-"`
16094
16095
16096
16097
16098
16099 ForceSendFields []string `json:"-"`
16100
16101
16102
16103
16104 NullFields []string `json:"-"`
16105 }
16106
16107 func (s *GoogleCloudDialogflowV2beta1ListSuggestionsResponse) MarshalJSON() ([]byte, error) {
16108 type NoMethod GoogleCloudDialogflowV2beta1ListSuggestionsResponse
16109 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16110 }
16111
16112
16113
16114 type GoogleCloudDialogflowV2beta1ListVersionsResponse struct {
16115
16116
16117 NextPageToken string `json:"nextPageToken,omitempty"`
16118
16119
16120 Versions []*GoogleCloudDialogflowV2beta1Version `json:"versions,omitempty"`
16121
16122
16123 googleapi.ServerResponse `json:"-"`
16124
16125
16126
16127
16128
16129 ForceSendFields []string `json:"-"`
16130
16131
16132
16133
16134 NullFields []string `json:"-"`
16135 }
16136
16137 func (s *GoogleCloudDialogflowV2beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
16138 type NoMethod GoogleCloudDialogflowV2beta1ListVersionsResponse
16139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16140 }
16141
16142
16143
16144 type GoogleCloudDialogflowV2beta1LoggingConfig struct {
16145
16146
16147
16148 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
16149
16150
16151
16152
16153
16154 ForceSendFields []string `json:"-"`
16155
16156
16157
16158
16159 NullFields []string `json:"-"`
16160 }
16161
16162 func (s *GoogleCloudDialogflowV2beta1LoggingConfig) MarshalJSON() ([]byte, error) {
16163 type NoMethod GoogleCloudDialogflowV2beta1LoggingConfig
16164 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16165 }
16166
16167
16168
16169 type GoogleCloudDialogflowV2beta1Message struct {
16170
16171 Content string `json:"content,omitempty"`
16172
16173
16174 CreateTime string `json:"createTime,omitempty"`
16175
16176
16177
16178 LanguageCode string `json:"languageCode,omitempty"`
16179
16180 MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
16181
16182
16183 Name string `json:"name,omitempty"`
16184
16185 Participant string `json:"participant,omitempty"`
16186
16187
16188
16189
16190
16191
16192
16193
16194
16195 ParticipantRole string `json:"participantRole,omitempty"`
16196
16197 SendTime string `json:"sendTime,omitempty"`
16198
16199
16200 SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
16201
16202
16203
16204
16205
16206 ForceSendFields []string `json:"-"`
16207
16208
16209
16210
16211 NullFields []string `json:"-"`
16212 }
16213
16214 func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
16215 type NoMethod GoogleCloudDialogflowV2beta1Message
16216 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16217 }
16218
16219
16220
16221 type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
16222
16223
16224 ContainEntities bool `json:"containEntities,omitempty"`
16225
16226
16227
16228 Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
16229
16230
16231
16232
16233
16234 ForceSendFields []string `json:"-"`
16235
16236
16237
16238
16239 NullFields []string `json:"-"`
16240 }
16241
16242 func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
16243 type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
16244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16245 }
16246
16247
16248
16249 type GoogleCloudDialogflowV2beta1NotificationConfig struct {
16250
16251
16252
16253
16254
16255
16256 MessageFormat string `json:"messageFormat,omitempty"`
16257
16258
16259
16260
16261
16262
16263
16264
16265 Topic string `json:"topic,omitempty"`
16266
16267
16268
16269
16270
16271 ForceSendFields []string `json:"-"`
16272
16273
16274
16275
16276 NullFields []string `json:"-"`
16277 }
16278
16279 func (s *GoogleCloudDialogflowV2beta1NotificationConfig) MarshalJSON() ([]byte, error) {
16280 type NoMethod GoogleCloudDialogflowV2beta1NotificationConfig
16281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16282 }
16283
16284
16285
16286
16287 type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
16288
16289
16290
16291
16292
16293
16294
16295
16296 Payload googleapi.RawMessage `json:"payload,omitempty"`
16297
16298
16299 Source string `json:"source,omitempty"`
16300
16301
16302 Version string `json:"version,omitempty"`
16303
16304
16305
16306
16307
16308 ForceSendFields []string `json:"-"`
16309
16310
16311
16312
16313 NullFields []string `json:"-"`
16314 }
16315
16316 func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
16317 type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
16318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16319 }
16320
16321
16322
16323 type GoogleCloudDialogflowV2beta1OutputAudio struct {
16324
16325 Audio string `json:"audio,omitempty"`
16326
16327
16328 Config *GoogleCloudDialogflowV2beta1OutputAudioConfig `json:"config,omitempty"`
16329
16330
16331
16332
16333
16334 ForceSendFields []string `json:"-"`
16335
16336
16337
16338
16339 NullFields []string `json:"-"`
16340 }
16341
16342 func (s *GoogleCloudDialogflowV2beta1OutputAudio) MarshalJSON() ([]byte, error) {
16343 type NoMethod GoogleCloudDialogflowV2beta1OutputAudio
16344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16345 }
16346
16347
16348
16349
16350
16351 type GoogleCloudDialogflowV2beta1OutputAudioConfig struct {
16352
16353
16354
16355
16356
16357
16358
16359
16360
16361
16362
16363
16364
16365
16366
16367
16368 AudioEncoding string `json:"audioEncoding,omitempty"`
16369
16370
16371
16372
16373
16374 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
16375
16376 SynthesizeSpeechConfig *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
16377
16378
16379
16380
16381
16382 ForceSendFields []string `json:"-"`
16383
16384
16385
16386
16387 NullFields []string `json:"-"`
16388 }
16389
16390 func (s *GoogleCloudDialogflowV2beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
16391 type NoMethod GoogleCloudDialogflowV2beta1OutputAudioConfig
16392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16393 }
16394
16395
16396
16397 type GoogleCloudDialogflowV2beta1Participant struct {
16398
16399
16400
16401
16402
16403
16404
16405
16406 DocumentsMetadataFilters map[string]string `json:"documentsMetadataFilters,omitempty"`
16407
16408
16409 Name string `json:"name,omitempty"`
16410
16411
16412
16413
16414
16415
16416
16417
16418
16419
16420
16421
16422
16423
16424
16425 ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
16426
16427
16428
16429
16430
16431
16432
16433
16434
16435
16436 Role string `json:"role,omitempty"`
16437
16438
16439 googleapi.ServerResponse `json:"-"`
16440
16441
16442
16443
16444
16445 ForceSendFields []string `json:"-"`
16446
16447
16448
16449
16450 NullFields []string `json:"-"`
16451 }
16452
16453 func (s *GoogleCloudDialogflowV2beta1Participant) MarshalJSON() ([]byte, error) {
16454 type NoMethod GoogleCloudDialogflowV2beta1Participant
16455 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16456 }
16457
16458
16459
16460
16461
16462 type GoogleCloudDialogflowV2beta1QueryInput struct {
16463
16464
16465 AudioConfig *GoogleCloudDialogflowV2beta1InputAudioConfig `json:"audioConfig,omitempty"`
16466
16467 Dtmf *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents `json:"dtmf,omitempty"`
16468
16469 Event *GoogleCloudDialogflowV2beta1EventInput `json:"event,omitempty"`
16470
16471 Text *GoogleCloudDialogflowV2beta1TextInput `json:"text,omitempty"`
16472
16473
16474
16475
16476
16477 ForceSendFields []string `json:"-"`
16478
16479
16480
16481
16482 NullFields []string `json:"-"`
16483 }
16484
16485 func (s *GoogleCloudDialogflowV2beta1QueryInput) MarshalJSON() ([]byte, error) {
16486 type NoMethod GoogleCloudDialogflowV2beta1QueryInput
16487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16488 }
16489
16490
16491
16492 type GoogleCloudDialogflowV2beta1QueryParameters struct {
16493
16494
16495 Contexts []*GoogleCloudDialogflowV2beta1Context `json:"contexts,omitempty"`
16496
16497 GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
16498
16499
16500
16501 KnowledgeBaseNames []string `json:"knowledgeBaseNames,omitempty"`
16502
16503
16504
16505
16506 Payload googleapi.RawMessage `json:"payload,omitempty"`
16507
16508
16509
16510 Platform string `json:"platform,omitempty"`
16511
16512
16513 ResetContexts bool `json:"resetContexts,omitempty"`
16514
16515
16516
16517
16518 SentimentAnalysisRequestConfig *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig `json:"sentimentAnalysisRequestConfig,omitempty"`
16519
16520
16521
16522 SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
16523
16524
16525
16526
16527 SubAgents []*GoogleCloudDialogflowV2beta1SubAgent `json:"subAgents,omitempty"`
16528
16529
16530
16531
16532 TimeZone string `json:"timeZone,omitempty"`
16533
16534
16535
16536
16537
16538
16539
16540
16541 WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
16542
16543
16544
16545
16546
16547 ForceSendFields []string `json:"-"`
16548
16549
16550
16551
16552 NullFields []string `json:"-"`
16553 }
16554
16555 func (s *GoogleCloudDialogflowV2beta1QueryParameters) MarshalJSON() ([]byte, error) {
16556 type NoMethod GoogleCloudDialogflowV2beta1QueryParameters
16557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16558 }
16559
16560
16561
16562 type GoogleCloudDialogflowV2beta1QueryResult struct {
16563
16564 Action string `json:"action,omitempty"`
16565
16566
16567
16568
16569 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
16570
16571
16572
16573
16574 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
16575
16576
16577
16578
16579 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
16580
16581 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
16582
16583
16584
16585 FulfillmentText string `json:"fulfillmentText,omitempty"`
16586
16587
16588
16589 Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
16590
16591
16592
16593
16594
16595
16596
16597
16598 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
16599
16600
16601 KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
16602
16603
16604
16605
16606 LanguageCode string `json:"languageCode,omitempty"`
16607
16608
16609
16610 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
16621
16622
16623
16624
16625
16626
16627 QueryText string `json:"queryText,omitempty"`
16628
16629
16630 SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
16631
16632
16633
16634
16635
16636
16637
16638 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
16639
16640
16641 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
16642
16643
16644 WebhookSource string `json:"webhookSource,omitempty"`
16645
16646
16647
16648
16649
16650 ForceSendFields []string `json:"-"`
16651
16652
16653
16654
16655 NullFields []string `json:"-"`
16656 }
16657
16658 func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
16659 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
16660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16661 }
16662
16663 func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
16664 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
16665 var s1 struct {
16666 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
16667 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
16668 *NoMethod
16669 }
16670 s1.NoMethod = (*NoMethod)(s)
16671 if err := json.Unmarshal(data, &s1); err != nil {
16672 return err
16673 }
16674 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
16675 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
16676 return nil
16677 }
16678
16679
16680
16681 type GoogleCloudDialogflowV2beta1ReloadDocumentRequest struct {
16682
16683
16684 GcsSource *GoogleCloudDialogflowV2beta1GcsSource `json:"gcsSource,omitempty"`
16685
16686
16687 ImportGcsCustomMetadata bool `json:"importGcsCustomMetadata,omitempty"`
16688
16689
16690
16691
16692
16693 ForceSendFields []string `json:"-"`
16694
16695
16696
16697
16698 NullFields []string `json:"-"`
16699 }
16700
16701 func (s *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) MarshalJSON() ([]byte, error) {
16702 type NoMethod GoogleCloudDialogflowV2beta1ReloadDocumentRequest
16703 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16704 }
16705
16706
16707
16708 type GoogleCloudDialogflowV2beta1ResponseMessage struct {
16709
16710
16711 EndInteraction *GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
16712
16713 LiveAgentHandoff *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
16714
16715
16716
16717 MixedAudio *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
16718
16719 Payload googleapi.RawMessage `json:"payload,omitempty"`
16720
16721
16722 TelephonyTransferCall *GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
16723
16724 Text *GoogleCloudDialogflowV2beta1ResponseMessageText `json:"text,omitempty"`
16725
16726
16727
16728
16729
16730 ForceSendFields []string `json:"-"`
16731
16732
16733
16734
16735 NullFields []string `json:"-"`
16736 }
16737
16738 func (s *GoogleCloudDialogflowV2beta1ResponseMessage) MarshalJSON() ([]byte, error) {
16739 type NoMethod GoogleCloudDialogflowV2beta1ResponseMessage
16740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16741 }
16742
16743
16744
16745 type GoogleCloudDialogflowV2beta1ResponseMessageEndInteraction struct {
16746 }
16747
16748
16749
16750
16751
16752
16753
16754
16755
16756 type GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff struct {
16757
16758
16759 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
16760
16761
16762
16763
16764
16765 ForceSendFields []string `json:"-"`
16766
16767
16768
16769
16770 NullFields []string `json:"-"`
16771 }
16772
16773 func (s *GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
16774 type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageLiveAgentHandoff
16775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16776 }
16777
16778
16779
16780
16781 type GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio struct {
16782
16783 Segments []*GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
16784
16785
16786
16787
16788
16789 ForceSendFields []string `json:"-"`
16790
16791
16792
16793
16794 NullFields []string `json:"-"`
16795 }
16796
16797 func (s *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
16798 type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageMixedAudio
16799 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16800 }
16801
16802
16803
16804 type GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment struct {
16805
16806
16807
16808 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
16809
16810
16811 Audio string `json:"audio,omitempty"`
16812
16813
16814 Uri string `json:"uri,omitempty"`
16815
16816
16817
16818
16819
16820 ForceSendFields []string `json:"-"`
16821
16822
16823
16824
16825 NullFields []string `json:"-"`
16826 }
16827
16828 func (s *GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
16829 type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageMixedAudioSegment
16830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16831 }
16832
16833
16834
16835
16836 type GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall struct {
16837
16838
16839 PhoneNumber string `json:"phoneNumber,omitempty"`
16840
16841 SipUri string `json:"sipUri,omitempty"`
16842
16843
16844
16845
16846
16847 ForceSendFields []string `json:"-"`
16848
16849
16850
16851
16852 NullFields []string `json:"-"`
16853 }
16854
16855 func (s *GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
16856 type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageTelephonyTransferCall
16857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16858 }
16859
16860
16861 type GoogleCloudDialogflowV2beta1ResponseMessageText struct {
16862
16863 Text []string `json:"text,omitempty"`
16864
16865
16866
16867
16868
16869 ForceSendFields []string `json:"-"`
16870
16871
16872
16873
16874 NullFields []string `json:"-"`
16875 }
16876
16877 func (s *GoogleCloudDialogflowV2beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
16878 type NoMethod GoogleCloudDialogflowV2beta1ResponseMessageText
16879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16880 }
16881
16882
16883
16884 type GoogleCloudDialogflowV2beta1RestoreAgentRequest struct {
16885
16886 AgentContent string `json:"agentContent,omitempty"`
16887
16888
16889
16890
16891
16892
16893 AgentUri string `json:"agentUri,omitempty"`
16894
16895
16896
16897
16898
16899 ForceSendFields []string `json:"-"`
16900
16901
16902
16903
16904 NullFields []string `json:"-"`
16905 }
16906
16907 func (s *GoogleCloudDialogflowV2beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
16908 type NoMethod GoogleCloudDialogflowV2beta1RestoreAgentRequest
16909 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16910 }
16911
16912
16913
16914 type GoogleCloudDialogflowV2beta1SearchAgentsResponse struct {
16915
16916
16917 Agents []*GoogleCloudDialogflowV2beta1Agent `json:"agents,omitempty"`
16918
16919
16920 NextPageToken string `json:"nextPageToken,omitempty"`
16921
16922
16923 googleapi.ServerResponse `json:"-"`
16924
16925
16926
16927
16928
16929 ForceSendFields []string `json:"-"`
16930
16931
16932
16933
16934 NullFields []string `json:"-"`
16935 }
16936
16937 func (s *GoogleCloudDialogflowV2beta1SearchAgentsResponse) MarshalJSON() ([]byte, error) {
16938 type NoMethod GoogleCloudDialogflowV2beta1SearchAgentsResponse
16939 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16940 }
16941
16942
16943
16944 type GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer struct {
16945
16946
16947 Answer string `json:"answer,omitempty"`
16948
16949
16950 AnswerRecord string `json:"answerRecord,omitempty"`
16951
16952 AnswerSources []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`
16953
16954
16955
16956
16957
16958
16959
16960 AnswerType string `json:"answerType,omitempty"`
16961
16962
16963
16964
16965
16966 ForceSendFields []string `json:"-"`
16967
16968
16969
16970
16971 NullFields []string `json:"-"`
16972 }
16973
16974 func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) {
16975 type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
16976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16977 }
16978
16979
16980
16981 type GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource struct {
16982
16983 Snippet string `json:"snippet,omitempty"`
16984
16985 Title string `json:"title,omitempty"`
16986
16987 Uri string `json:"uri,omitempty"`
16988
16989
16990
16991
16992
16993 ForceSendFields []string `json:"-"`
16994
16995
16996
16997
16998 NullFields []string `json:"-"`
16999 }
17000
17001 func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) {
17002 type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource
17003 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17004 }
17005
17006
17007
17008 type GoogleCloudDialogflowV2beta1SearchKnowledgeRequest struct {
17009
17010
17011 Conversation string `json:"conversation,omitempty"`
17012
17013
17014 ConversationProfile string `json:"conversationProfile,omitempty"`
17015
17016
17017 LatestMessage string `json:"latestMessage,omitempty"`
17018
17019
17020 Parent string `json:"parent,omitempty"`
17021
17022 Query *GoogleCloudDialogflowV2beta1TextInput `json:"query,omitempty"`
17023
17024
17025
17026
17027
17028
17029 SessionId string `json:"sessionId,omitempty"`
17030
17031
17032
17033
17034
17035 ForceSendFields []string `json:"-"`
17036
17037
17038
17039
17040 NullFields []string `json:"-"`
17041 }
17042
17043 func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) MarshalJSON() ([]byte, error) {
17044 type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
17045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17046 }
17047
17048
17049
17050 type GoogleCloudDialogflowV2beta1SearchKnowledgeResponse struct {
17051
17052
17053 Answers []*GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer `json:"answers,omitempty"`
17054
17055 RewrittenQuery string `json:"rewrittenQuery,omitempty"`
17056
17057
17058 googleapi.ServerResponse `json:"-"`
17059
17060
17061
17062
17063
17064 ForceSendFields []string `json:"-"`
17065
17066
17067
17068
17069 NullFields []string `json:"-"`
17070 }
17071
17072 func (s *GoogleCloudDialogflowV2beta1SearchKnowledgeResponse) MarshalJSON() ([]byte, error) {
17073 type NoMethod GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
17074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17075 }
17076
17077
17078
17079
17080
17081
17082 type GoogleCloudDialogflowV2beta1Sentiment struct {
17083
17084
17085
17086 Magnitude float64 `json:"magnitude,omitempty"`
17087
17088
17089 Score float64 `json:"score,omitempty"`
17090
17091
17092
17093
17094
17095 ForceSendFields []string `json:"-"`
17096
17097
17098
17099
17100 NullFields []string `json:"-"`
17101 }
17102
17103 func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
17104 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17106 }
17107
17108 func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
17109 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17110 var s1 struct {
17111 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
17112 Score gensupport.JSONFloat64 `json:"score"`
17113 *NoMethod
17114 }
17115 s1.NoMethod = (*NoMethod)(s)
17116 if err := json.Unmarshal(data, &s1); err != nil {
17117 return err
17118 }
17119 s.Magnitude = float64(s1.Magnitude)
17120 s.Score = float64(s1.Score)
17121 return nil
17122 }
17123
17124
17125
17126 type GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig struct {
17127
17128
17129
17130 AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
17131
17132
17133
17134
17135
17136 ForceSendFields []string `json:"-"`
17137
17138
17139
17140
17141 NullFields []string `json:"-"`
17142 }
17143
17144 func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig) MarshalJSON() ([]byte, error) {
17145 type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisRequestConfig
17146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17147 }
17148
17149
17150
17151
17152
17153
17154
17155
17156
17157
17158 type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
17159
17160 QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
17161
17162
17163
17164
17165
17166 ForceSendFields []string `json:"-"`
17167
17168
17169
17170
17171 NullFields []string `json:"-"`
17172 }
17173
17174 func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
17175 type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
17176 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17177 }
17178
17179
17180
17181
17182
17183
17184
17185
17186
17187 type GoogleCloudDialogflowV2beta1SessionEntityType struct {
17188
17189
17190 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
17191
17192
17193
17194
17195
17196
17197
17198
17199
17200
17201
17202
17203
17204
17205
17206
17207 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
17208
17209
17210
17211
17212
17213
17214
17215
17216
17217
17218 Name string `json:"name,omitempty"`
17219
17220
17221 googleapi.ServerResponse `json:"-"`
17222
17223
17224
17225
17226
17227 ForceSendFields []string `json:"-"`
17228
17229
17230
17231
17232 NullFields []string `json:"-"`
17233 }
17234
17235 func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
17236 type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
17237 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17238 }
17239
17240
17241
17242 type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
17243
17244
17245 ConversationProfile string `json:"conversationProfile,omitempty"`
17246
17247
17248 CreateTime string `json:"createTime,omitempty"`
17249
17250
17251
17252
17253
17254
17255
17256
17257
17258
17259 ParticipantRole string `json:"participantRole,omitempty"`
17260
17261
17262
17263
17264
17265
17266
17267
17268
17269
17270
17271
17272
17273
17274 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
17275
17276
17277
17278
17279
17280 ForceSendFields []string `json:"-"`
17281
17282
17283
17284
17285 NullFields []string `json:"-"`
17286 }
17287
17288 func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
17289 type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
17290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17291 }
17292
17293
17294
17295 type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest struct {
17296
17297
17298
17299
17300
17301
17302
17303
17304
17305
17306 ParticipantRole string `json:"participantRole,omitempty"`
17307
17308
17309 SuggestionFeatureConfig *GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionFeatureConfig `json:"suggestionFeatureConfig,omitempty"`
17310
17311
17312
17313
17314
17315 ForceSendFields []string `json:"-"`
17316
17317
17318
17319
17320 NullFields []string `json:"-"`
17321 }
17322
17323 func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) MarshalJSON() ([]byte, error) {
17324 type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest
17325 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17326 }
17327
17328
17329
17330 type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
17331
17332
17333 AnswerRecord string `json:"answerRecord,omitempty"`
17334
17335
17336
17337 Confidence float64 `json:"confidence,omitempty"`
17338
17339 Reply string `json:"reply,omitempty"`
17340
17341
17342
17343
17344
17345 ForceSendFields []string `json:"-"`
17346
17347
17348
17349
17350 NullFields []string `json:"-"`
17351 }
17352
17353 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
17354 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
17355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17356 }
17357
17358 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
17359 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
17360 var s1 struct {
17361 Confidence gensupport.JSONFloat64 `json:"confidence"`
17362 *NoMethod
17363 }
17364 s1.NoMethod = (*NoMethod)(s)
17365 if err := json.Unmarshal(data, &s1); err != nil {
17366 return err
17367 }
17368 s.Confidence = float64(s1.Confidence)
17369 return nil
17370 }
17371
17372
17373
17374 type GoogleCloudDialogflowV2beta1SpeechContext struct {
17375
17376
17377
17378
17379
17380
17381 Boost float64 `json:"boost,omitempty"`
17382
17383
17384
17385
17386
17387
17388 Phrases []string `json:"phrases,omitempty"`
17389
17390
17391
17392
17393
17394 ForceSendFields []string `json:"-"`
17395
17396
17397
17398
17399 NullFields []string `json:"-"`
17400 }
17401
17402 func (s *GoogleCloudDialogflowV2beta1SpeechContext) MarshalJSON() ([]byte, error) {
17403 type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
17404 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17405 }
17406
17407 func (s *GoogleCloudDialogflowV2beta1SpeechContext) UnmarshalJSON(data []byte) error {
17408 type NoMethod GoogleCloudDialogflowV2beta1SpeechContext
17409 var s1 struct {
17410 Boost gensupport.JSONFloat64 `json:"boost"`
17411 *NoMethod
17412 }
17413 s1.NoMethod = (*NoMethod)(s)
17414 if err := json.Unmarshal(data, &s1); err != nil {
17415 return err
17416 }
17417 s.Boost = float64(s1.Boost)
17418 return nil
17419 }
17420
17421
17422
17423 type GoogleCloudDialogflowV2beta1SpeechToTextConfig struct {
17424
17425
17426
17427
17428
17429
17430
17431
17432
17433
17434
17435
17436
17437
17438 Model string `json:"model,omitempty"`
17439
17440
17441
17442
17443
17444
17445
17446
17447
17448
17449
17450
17451
17452
17453
17454
17455
17456
17457
17458
17459
17460
17461
17462
17463
17464
17465 SpeechModelVariant string `json:"speechModelVariant,omitempty"`
17466
17467
17468 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
17469
17470
17471
17472
17473
17474 ForceSendFields []string `json:"-"`
17475
17476
17477
17478
17479 NullFields []string `json:"-"`
17480 }
17481
17482 func (s *GoogleCloudDialogflowV2beta1SpeechToTextConfig) MarshalJSON() ([]byte, error) {
17483 type NoMethod GoogleCloudDialogflowV2beta1SpeechToTextConfig
17484 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17485 }
17486
17487
17488
17489 type GoogleCloudDialogflowV2beta1SubAgent struct {
17490
17491
17492
17493 Environment string `json:"environment,omitempty"`
17494
17495
17496 Project string `json:"project,omitempty"`
17497
17498
17499
17500
17501
17502 ForceSendFields []string `json:"-"`
17503
17504
17505
17506
17507 NullFields []string `json:"-"`
17508 }
17509
17510 func (s *GoogleCloudDialogflowV2beta1SubAgent) MarshalJSON() ([]byte, error) {
17511 type NoMethod GoogleCloudDialogflowV2beta1SubAgent
17512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17513 }
17514
17515
17516
17517 type GoogleCloudDialogflowV2beta1SuggestArticlesRequest struct {
17518
17519 AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
17520
17521
17522
17523 ContextSize int64 `json:"contextSize,omitempty"`
17524
17525
17526
17527 LatestMessage string `json:"latestMessage,omitempty"`
17528
17529
17530
17531
17532
17533 ForceSendFields []string `json:"-"`
17534
17535
17536
17537
17538 NullFields []string `json:"-"`
17539 }
17540
17541 func (s *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) MarshalJSON() ([]byte, error) {
17542 type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesRequest
17543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17544 }
17545
17546
17547
17548 type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
17549
17550 ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
17551
17552
17553
17554
17555 ContextSize int64 `json:"contextSize,omitempty"`
17556
17557
17558 LatestMessage string `json:"latestMessage,omitempty"`
17559
17560
17561 googleapi.ServerResponse `json:"-"`
17562
17563
17564
17565
17566
17567 ForceSendFields []string `json:"-"`
17568
17569
17570
17571
17572 NullFields []string `json:"-"`
17573 }
17574
17575 func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
17576 type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
17577 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17578 }
17579
17580
17581
17582 type GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest struct {
17583
17584
17585 AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
17586
17587
17588
17589 ContextSize int64 `json:"contextSize,omitempty"`
17590
17591
17592
17593 LatestMessage string `json:"latestMessage,omitempty"`
17594
17595
17596
17597
17598
17599 ForceSendFields []string `json:"-"`
17600
17601
17602
17603
17604 NullFields []string `json:"-"`
17605 }
17606
17607 func (s *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) MarshalJSON() ([]byte, error) {
17608 type NoMethod GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
17609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17610 }
17611
17612
17613
17614 type GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse struct {
17615
17616
17617
17618
17619 ContextSize int64 `json:"contextSize,omitempty"`
17620
17621
17622
17623 LatestMessage string `json:"latestMessage,omitempty"`
17624
17625 Summary *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary `json:"summary,omitempty"`
17626
17627
17628 googleapi.ServerResponse `json:"-"`
17629
17630
17631
17632
17633
17634 ForceSendFields []string `json:"-"`
17635
17636
17637
17638
17639 NullFields []string `json:"-"`
17640 }
17641
17642 func (s *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse) MarshalJSON() ([]byte, error) {
17643 type NoMethod GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
17644 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17645 }
17646
17647
17648
17649 type GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary struct {
17650
17651
17652 AnswerRecord string `json:"answerRecord,omitempty"`
17653
17654
17655
17656 BaselineModelVersion string `json:"baselineModelVersion,omitempty"`
17657
17658 Text string `json:"text,omitempty"`
17659
17660
17661
17662 TextSections map[string]string `json:"textSections,omitempty"`
17663
17664
17665
17666
17667
17668 ForceSendFields []string `json:"-"`
17669
17670
17671
17672
17673 NullFields []string `json:"-"`
17674 }
17675
17676 func (s *GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary) MarshalJSON() ([]byte, error) {
17677 type NoMethod GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary
17678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17679 }
17680
17681
17682
17683 type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
17684
17685
17686
17687
17688 ContextSize int64 `json:"contextSize,omitempty"`
17689
17690
17691
17692 DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
17693
17694
17695 LatestMessage string `json:"latestMessage,omitempty"`
17696
17697
17698
17699
17700
17701 ForceSendFields []string `json:"-"`
17702
17703
17704
17705
17706 NullFields []string `json:"-"`
17707 }
17708
17709 func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
17710 type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
17711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17712 }
17713
17714
17715
17716 type GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest struct {
17717
17718 AssistQueryParams *GoogleCloudDialogflowV2beta1AssistQueryParameters `json:"assistQueryParams,omitempty"`
17719
17720
17721
17722 ContextSize int64 `json:"contextSize,omitempty"`
17723
17724
17725
17726 LatestMessage string `json:"latestMessage,omitempty"`
17727
17728
17729
17730
17731
17732 ForceSendFields []string `json:"-"`
17733
17734
17735
17736
17737 NullFields []string `json:"-"`
17738 }
17739
17740 func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) MarshalJSON() ([]byte, error) {
17741 type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
17742 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17743 }
17744
17745
17746
17747 type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
17748
17749
17750
17751
17752 ContextSize int64 `json:"contextSize,omitempty"`
17753
17754 FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
17755
17756
17757 LatestMessage string `json:"latestMessage,omitempty"`
17758
17759
17760 googleapi.ServerResponse `json:"-"`
17761
17762
17763
17764
17765
17766 ForceSendFields []string `json:"-"`
17767
17768
17769
17770
17771 NullFields []string `json:"-"`
17772 }
17773
17774 func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
17775 type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
17776 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17777 }
17778
17779
17780
17781 type GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest struct {
17782
17783
17784
17785 ContextSize int64 `json:"contextSize,omitempty"`
17786
17787
17788
17789 CurrentTextInput *GoogleCloudDialogflowV2beta1TextInput `json:"currentTextInput,omitempty"`
17790
17791
17792
17793 LatestMessage string `json:"latestMessage,omitempty"`
17794
17795
17796
17797
17798
17799 ForceSendFields []string `json:"-"`
17800
17801
17802
17803
17804 NullFields []string `json:"-"`
17805 }
17806
17807 func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) MarshalJSON() ([]byte, error) {
17808 type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
17809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17810 }
17811
17812
17813
17814 type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
17815
17816
17817
17818
17819 ContextSize int64 `json:"contextSize,omitempty"`
17820
17821
17822 LatestMessage string `json:"latestMessage,omitempty"`
17823
17824
17825
17826 SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
17827
17828
17829 googleapi.ServerResponse `json:"-"`
17830
17831
17832
17833
17834
17835 ForceSendFields []string `json:"-"`
17836
17837
17838
17839
17840 NullFields []string `json:"-"`
17841 }
17842
17843 func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
17844 type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
17845 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17846 }
17847
17848
17849
17850 type GoogleCloudDialogflowV2beta1Suggestion struct {
17851
17852 Articles []*GoogleCloudDialogflowV2beta1SuggestionArticle `json:"articles,omitempty"`
17853
17854 CreateTime string `json:"createTime,omitempty"`
17855
17856 FaqAnswers []*GoogleCloudDialogflowV2beta1SuggestionFaqAnswer `json:"faqAnswers,omitempty"`
17857
17858
17859 LatestMessage string `json:"latestMessage,omitempty"`
17860
17861
17862 Name string `json:"name,omitempty"`
17863
17864
17865
17866
17867
17868 ForceSendFields []string `json:"-"`
17869
17870
17871
17872
17873 NullFields []string `json:"-"`
17874 }
17875
17876 func (s *GoogleCloudDialogflowV2beta1Suggestion) MarshalJSON() ([]byte, error) {
17877 type NoMethod GoogleCloudDialogflowV2beta1Suggestion
17878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17879 }
17880
17881
17882 type GoogleCloudDialogflowV2beta1SuggestionArticle struct {
17883
17884
17885 AnswerRecord string `json:"answerRecord,omitempty"`
17886
17887
17888 Metadata map[string]string `json:"metadata,omitempty"`
17889
17890 Snippets []string `json:"snippets,omitempty"`
17891
17892 Title string `json:"title,omitempty"`
17893
17894 Uri string `json:"uri,omitempty"`
17895
17896
17897
17898
17899
17900 ForceSendFields []string `json:"-"`
17901
17902
17903
17904
17905 NullFields []string `json:"-"`
17906 }
17907
17908 func (s *GoogleCloudDialogflowV2beta1SuggestionArticle) MarshalJSON() ([]byte, error) {
17909 type NoMethod GoogleCloudDialogflowV2beta1SuggestionArticle
17910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17911 }
17912
17913
17914
17915 type GoogleCloudDialogflowV2beta1SuggestionFaqAnswer struct {
17916
17917
17918 Answer string `json:"answer,omitempty"`
17919
17920
17921 AnswerRecord string `json:"answerRecord,omitempty"`
17922
17923
17924
17925 Confidence float64 `json:"confidence,omitempty"`
17926
17927
17928 Metadata map[string]string `json:"metadata,omitempty"`
17929
17930 Question string `json:"question,omitempty"`
17931
17932
17933
17934 Source string `json:"source,omitempty"`
17935
17936
17937
17938
17939
17940 ForceSendFields []string `json:"-"`
17941
17942
17943
17944
17945 NullFields []string `json:"-"`
17946 }
17947
17948 func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) MarshalJSON() ([]byte, error) {
17949 type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
17950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17951 }
17952
17953 func (s *GoogleCloudDialogflowV2beta1SuggestionFaqAnswer) UnmarshalJSON(data []byte) error {
17954 type NoMethod GoogleCloudDialogflowV2beta1SuggestionFaqAnswer
17955 var s1 struct {
17956 Confidence gensupport.JSONFloat64 `json:"confidence"`
17957 *NoMethod
17958 }
17959 s1.NoMethod = (*NoMethod)(s)
17960 if err := json.Unmarshal(data, &s1); err != nil {
17961 return err
17962 }
17963 s.Confidence = float64(s1.Confidence)
17964 return nil
17965 }
17966
17967
17968
17969
17970
17971 type GoogleCloudDialogflowV2beta1SuggestionFeature struct {
17972
17973
17974
17975
17976
17977
17978
17979
17980
17981
17982
17983
17984
17985 Type string `json:"type,omitempty"`
17986
17987
17988
17989
17990
17991 ForceSendFields []string `json:"-"`
17992
17993
17994
17995
17996 NullFields []string `json:"-"`
17997 }
17998
17999 func (s *GoogleCloudDialogflowV2beta1SuggestionFeature) MarshalJSON() ([]byte, error) {
18000 type NoMethod GoogleCloudDialogflowV2beta1SuggestionFeature
18001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18002 }
18003
18004
18005
18006 type GoogleCloudDialogflowV2beta1SuggestionInput struct {
18007
18008
18009
18010
18011 AnswerRecord string `json:"answerRecord,omitempty"`
18012
18013 IntentInput *GoogleCloudDialogflowV2beta1IntentInput `json:"intentInput,omitempty"`
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025
18026
18027 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
18028
18029
18030 TextOverride *GoogleCloudDialogflowV2beta1TextInput `json:"textOverride,omitempty"`
18031
18032
18033
18034
18035
18036 ForceSendFields []string `json:"-"`
18037
18038
18039
18040
18041 NullFields []string `json:"-"`
18042 }
18043
18044 func (s *GoogleCloudDialogflowV2beta1SuggestionInput) MarshalJSON() ([]byte, error) {
18045 type NoMethod GoogleCloudDialogflowV2beta1SuggestionInput
18046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18047 }
18048
18049
18050
18051
18052
18053 type GoogleCloudDialogflowV2beta1SuggestionResult struct {
18054
18055 Error *GoogleRpcStatus `json:"error,omitempty"`
18056
18057
18058 SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
18059
18060
18061 SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
18062
18063
18064 SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
18065
18066
18067 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
18068
18069
18070 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
18071
18072
18073
18074
18075
18076 ForceSendFields []string `json:"-"`
18077
18078
18079
18080
18081 NullFields []string `json:"-"`
18082 }
18083
18084 func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
18085 type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
18086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18087 }
18088
18089
18090
18091 type GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig struct {
18092
18093
18094
18095 EffectsProfileId []string `json:"effectsProfileId,omitempty"`
18096
18097
18098
18099 Pitch float64 `json:"pitch,omitempty"`
18100
18101
18102
18103
18104 SpeakingRate float64 `json:"speakingRate,omitempty"`
18105
18106 Voice *GoogleCloudDialogflowV2beta1VoiceSelectionParams `json:"voice,omitempty"`
18107
18108
18109
18110
18111
18112
18113
18114
18115 VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
18116
18117
18118
18119
18120
18121 ForceSendFields []string `json:"-"`
18122
18123
18124
18125
18126 NullFields []string `json:"-"`
18127 }
18128
18129 func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
18130 type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
18131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18132 }
18133
18134 func (s *GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
18135 type NoMethod GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig
18136 var s1 struct {
18137 Pitch gensupport.JSONFloat64 `json:"pitch"`
18138 SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
18139 VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
18140 *NoMethod
18141 }
18142 s1.NoMethod = (*NoMethod)(s)
18143 if err := json.Unmarshal(data, &s1); err != nil {
18144 return err
18145 }
18146 s.Pitch = float64(s1.Pitch)
18147 s.SpeakingRate = float64(s1.SpeakingRate)
18148 s.VolumeGainDb = float64(s1.VolumeGainDb)
18149 return nil
18150 }
18151
18152
18153
18154 type GoogleCloudDialogflowV2beta1TelephonyDtmfEvents struct {
18155
18156
18157
18158
18159
18160
18161
18162
18163
18164
18165
18166
18167
18168
18169
18170
18171
18172
18173
18174
18175
18176 DtmfEvents []string `json:"dtmfEvents,omitempty"`
18177
18178
18179
18180
18181
18182 ForceSendFields []string `json:"-"`
18183
18184
18185
18186
18187 NullFields []string `json:"-"`
18188 }
18189
18190 func (s *GoogleCloudDialogflowV2beta1TelephonyDtmfEvents) MarshalJSON() ([]byte, error) {
18191 type NoMethod GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
18192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18193 }
18194
18195
18196
18197 type GoogleCloudDialogflowV2beta1TextInput struct {
18198
18199
18200
18201
18202
18203 LanguageCode string `json:"languageCode,omitempty"`
18204
18205
18206 Text string `json:"text,omitempty"`
18207
18208
18209
18210
18211
18212 ForceSendFields []string `json:"-"`
18213
18214
18215
18216
18217 NullFields []string `json:"-"`
18218 }
18219
18220 func (s *GoogleCloudDialogflowV2beta1TextInput) MarshalJSON() ([]byte, error) {
18221 type NoMethod GoogleCloudDialogflowV2beta1TextInput
18222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18223 }
18224
18225
18226
18227 type GoogleCloudDialogflowV2beta1TextToSpeechSettings struct {
18228
18229
18230
18231 EnableTextToSpeech bool `json:"enableTextToSpeech,omitempty"`
18232
18233
18234
18235
18236
18237
18238
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249 OutputAudioEncoding string `json:"outputAudioEncoding,omitempty"`
18250
18251
18252
18253
18254
18255
18256 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
18257
18258
18259
18260
18261 SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
18262
18263
18264
18265
18266
18267 ForceSendFields []string `json:"-"`
18268
18269
18270
18271
18272 NullFields []string `json:"-"`
18273 }
18274
18275 func (s *GoogleCloudDialogflowV2beta1TextToSpeechSettings) MarshalJSON() ([]byte, error) {
18276 type NoMethod GoogleCloudDialogflowV2beta1TextToSpeechSettings
18277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18278 }
18279
18280
18281
18282 type GoogleCloudDialogflowV2beta1TrainAgentRequest struct {
18283 }
18284
18285
18286
18287 type GoogleCloudDialogflowV2beta1ValidationError struct {
18288
18289
18290
18291
18292
18293
18294
18295
18296 Entries []string `json:"entries,omitempty"`
18297
18298 ErrorMessage string `json:"errorMessage,omitempty"`
18299
18300
18301
18302
18303
18304
18305
18306
18307 Severity string `json:"severity,omitempty"`
18308
18309
18310
18311
18312
18313 ForceSendFields []string `json:"-"`
18314
18315
18316
18317
18318 NullFields []string `json:"-"`
18319 }
18320
18321 func (s *GoogleCloudDialogflowV2beta1ValidationError) MarshalJSON() ([]byte, error) {
18322 type NoMethod GoogleCloudDialogflowV2beta1ValidationError
18323 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18324 }
18325
18326
18327
18328 type GoogleCloudDialogflowV2beta1ValidationResult struct {
18329
18330 ValidationErrors []*GoogleCloudDialogflowV2beta1ValidationError `json:"validationErrors,omitempty"`
18331
18332
18333 googleapi.ServerResponse `json:"-"`
18334
18335
18336
18337
18338
18339 ForceSendFields []string `json:"-"`
18340
18341
18342
18343
18344 NullFields []string `json:"-"`
18345 }
18346
18347 func (s *GoogleCloudDialogflowV2beta1ValidationResult) MarshalJSON() ([]byte, error) {
18348 type NoMethod GoogleCloudDialogflowV2beta1ValidationResult
18349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18350 }
18351
18352
18353
18354
18355
18356
18357
18358
18359
18360
18361 type GoogleCloudDialogflowV2beta1Version struct {
18362
18363
18364 CreateTime string `json:"createTime,omitempty"`
18365
18366 Description string `json:"description,omitempty"`
18367
18368
18369
18370 Name string `json:"name,omitempty"`
18371
18372
18373
18374
18375
18376
18377
18378
18379
18380 Status string `json:"status,omitempty"`
18381
18382
18383
18384 VersionNumber int64 `json:"versionNumber,omitempty"`
18385
18386
18387 googleapi.ServerResponse `json:"-"`
18388
18389
18390
18391
18392
18393 ForceSendFields []string `json:"-"`
18394
18395
18396
18397
18398 NullFields []string `json:"-"`
18399 }
18400
18401 func (s *GoogleCloudDialogflowV2beta1Version) MarshalJSON() ([]byte, error) {
18402 type NoMethod GoogleCloudDialogflowV2beta1Version
18403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18404 }
18405
18406
18407
18408 type GoogleCloudDialogflowV2beta1VoiceSelectionParams struct {
18409
18410
18411
18412
18413 Name string `json:"name,omitempty"`
18414
18415
18416
18417
18418
18419
18420
18421
18422
18423
18424
18425
18426
18427 SsmlGender string `json:"ssmlGender,omitempty"`
18428
18429
18430
18431
18432
18433 ForceSendFields []string `json:"-"`
18434
18435
18436
18437
18438 NullFields []string `json:"-"`
18439 }
18440
18441 func (s *GoogleCloudDialogflowV2beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
18442 type NoMethod GoogleCloudDialogflowV2beta1VoiceSelectionParams
18443 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18444 }
18445
18446
18447
18448 type GoogleCloudDialogflowV2beta1WebhookRequest struct {
18449
18450 AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
18451
18452
18453 OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
18454
18455
18456 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
18457
18458
18459 ResponseId string `json:"responseId,omitempty"`
18460
18461
18462
18463
18464
18465 Session string `json:"session,omitempty"`
18466
18467
18468
18469
18470
18471 ForceSendFields []string `json:"-"`
18472
18473
18474
18475
18476 NullFields []string `json:"-"`
18477 }
18478
18479 func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
18480 type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
18481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18482 }
18483
18484
18485
18486
18487
18488
18489
18490
18491
18492 type GoogleCloudDialogflowV2beta1WebhookResponse struct {
18493
18494
18495
18496 EndInteraction bool `json:"endInteraction,omitempty"`
18497
18498
18499
18500 FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
18501
18502
18503
18504 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
18505
18506
18507
18508
18509 FulfillmentText string `json:"fulfillmentText,omitempty"`
18510
18511
18512
18513
18514 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
18515
18516
18517
18518
18519 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
18520
18521
18522
18523
18524
18525
18526
18527
18528
18529 Payload googleapi.RawMessage `json:"payload,omitempty"`
18530
18531
18532
18533
18534
18535 SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
18536
18537
18538
18539
18540 Source string `json:"source,omitempty"`
18541
18542
18543
18544
18545
18546 ForceSendFields []string `json:"-"`
18547
18548
18549
18550
18551 NullFields []string `json:"-"`
18552 }
18553
18554 func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
18555 type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
18556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18557 }
18558
18559
18560
18561
18562 type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
18563
18564 TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
18565
18566
18567
18568
18569
18570 ForceSendFields []string `json:"-"`
18571
18572
18573
18574
18575 NullFields []string `json:"-"`
18576 }
18577
18578 func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
18579 type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
18580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18581 }
18582
18583
18584
18585 type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
18586
18587 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18588
18589
18590
18591
18592
18593 ForceSendFields []string `json:"-"`
18594
18595
18596
18597
18598 NullFields []string `json:"-"`
18599 }
18600
18601 func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18602 type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
18603 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18604 }
18605
18606
18607
18608 type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
18609
18610 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18611
18612
18613
18614
18615
18616 ForceSendFields []string `json:"-"`
18617
18618
18619
18620
18621 NullFields []string `json:"-"`
18622 }
18623
18624 func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18625 type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
18626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18627 }
18628
18629
18630
18631 type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
18632
18633
18634
18635
18636
18637
18638
18639 State string `json:"state,omitempty"`
18640
18641
18642
18643
18644
18645 ForceSendFields []string `json:"-"`
18646
18647
18648
18649
18650 NullFields []string `json:"-"`
18651 }
18652
18653 func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
18654 type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
18655 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18656 }
18657
18658
18659
18660 type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
18661
18662 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18663
18664
18665
18666
18667
18668 ForceSendFields []string `json:"-"`
18669
18670
18671
18672
18673 NullFields []string `json:"-"`
18674 }
18675
18676 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
18677 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
18678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18679 }
18680
18681
18682
18683 type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
18684
18685 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
18686
18687
18688
18689
18690
18691 ForceSendFields []string `json:"-"`
18692
18693
18694
18695
18696 NullFields []string `json:"-"`
18697 }
18698
18699 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
18700 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
18701 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18702 }
18703
18704
18705
18706 type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
18707
18708 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18709
18710
18711
18712
18713
18714 ForceSendFields []string `json:"-"`
18715
18716
18717
18718
18719 NullFields []string `json:"-"`
18720 }
18721
18722 func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18723 type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
18724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18725 }
18726
18727
18728
18729 type GoogleCloudDialogflowV3alpha1TurnSignals struct {
18730
18731 AgentEscalated bool `json:"agentEscalated,omitempty"`
18732
18733 DtmfUsed bool `json:"dtmfUsed,omitempty"`
18734
18735
18736
18737
18738
18739
18740 FailureReasons []string `json:"failureReasons,omitempty"`
18741
18742 NoMatch bool `json:"noMatch,omitempty"`
18743
18744 NoUserInput bool `json:"noUserInput,omitempty"`
18745
18746 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
18747
18748
18749 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
18750
18751
18752 SentimentScore float64 `json:"sentimentScore,omitempty"`
18753
18754
18755 TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
18756
18757 UserEscalated bool `json:"userEscalated,omitempty"`
18758
18759
18760 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
18761
18762
18763
18764
18765
18766 ForceSendFields []string `json:"-"`
18767
18768
18769
18770
18771 NullFields []string `json:"-"`
18772 }
18773
18774 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
18775 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18776 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18777 }
18778
18779 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
18780 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18781 var s1 struct {
18782 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
18783 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
18784 *NoMethod
18785 }
18786 s1.NoMethod = (*NoMethod)(s)
18787 if err := json.Unmarshal(data, &s1); err != nil {
18788 return err
18789 }
18790 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
18791 s.SentimentScore = float64(s1.SentimentScore)
18792 return nil
18793 }
18794
18795
18796
18797 type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
18798
18799 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18800
18801
18802
18803
18804
18805 ForceSendFields []string `json:"-"`
18806
18807
18808
18809
18810 NullFields []string `json:"-"`
18811 }
18812
18813 func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18814 type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
18815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18816 }
18817
18818
18819
18820 type GoogleCloudLocationListLocationsResponse struct {
18821
18822
18823 Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
18824
18825 NextPageToken string `json:"nextPageToken,omitempty"`
18826
18827
18828 googleapi.ServerResponse `json:"-"`
18829
18830
18831
18832
18833
18834 ForceSendFields []string `json:"-"`
18835
18836
18837
18838
18839 NullFields []string `json:"-"`
18840 }
18841
18842 func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
18843 type NoMethod GoogleCloudLocationListLocationsResponse
18844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18845 }
18846
18847
18848
18849 type GoogleCloudLocationLocation struct {
18850
18851
18852 DisplayName string `json:"displayName,omitempty"`
18853
18854
18855 Labels map[string]string `json:"labels,omitempty"`
18856
18857 LocationId string `json:"locationId,omitempty"`
18858
18859
18860 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18861
18862
18863
18864 Name string `json:"name,omitempty"`
18865
18866
18867 googleapi.ServerResponse `json:"-"`
18868
18869
18870
18871
18872
18873 ForceSendFields []string `json:"-"`
18874
18875
18876
18877
18878 NullFields []string `json:"-"`
18879 }
18880
18881 func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
18882 type NoMethod GoogleCloudLocationLocation
18883 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18884 }
18885
18886
18887
18888 type GoogleLongrunningListOperationsResponse struct {
18889
18890 NextPageToken string `json:"nextPageToken,omitempty"`
18891
18892
18893 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
18894
18895
18896 googleapi.ServerResponse `json:"-"`
18897
18898
18899
18900
18901
18902 ForceSendFields []string `json:"-"`
18903
18904
18905
18906
18907 NullFields []string `json:"-"`
18908 }
18909
18910 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
18911 type NoMethod GoogleLongrunningListOperationsResponse
18912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18913 }
18914
18915
18916
18917 type GoogleLongrunningOperation struct {
18918
18919
18920
18921 Done bool `json:"done,omitempty"`
18922
18923 Error *GoogleRpcStatus `json:"error,omitempty"`
18924
18925
18926
18927
18928 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18929
18930
18931
18932 Name string `json:"name,omitempty"`
18933
18934
18935
18936
18937
18938
18939
18940 Response googleapi.RawMessage `json:"response,omitempty"`
18941
18942
18943 googleapi.ServerResponse `json:"-"`
18944
18945
18946
18947
18948
18949 ForceSendFields []string `json:"-"`
18950
18951
18952
18953
18954 NullFields []string `json:"-"`
18955 }
18956
18957 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
18958 type NoMethod GoogleLongrunningOperation
18959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18960 }
18961
18962
18963
18964
18965
18966
18967 type GoogleProtobufEmpty struct {
18968
18969 googleapi.ServerResponse `json:"-"`
18970 }
18971
18972
18973
18974
18975
18976
18977
18978 type GoogleRpcStatus struct {
18979
18980 Code int64 `json:"code,omitempty"`
18981
18982
18983 Details []googleapi.RawMessage `json:"details,omitempty"`
18984
18985
18986
18987 Message string `json:"message,omitempty"`
18988
18989
18990
18991
18992
18993 ForceSendFields []string `json:"-"`
18994
18995
18996
18997
18998 NullFields []string `json:"-"`
18999 }
19000
19001 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
19002 type NoMethod GoogleRpcStatus
19003 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
19004 }
19005
19006
19007
19008
19009
19010 type GoogleTypeLatLng struct {
19011
19012 Latitude float64 `json:"latitude,omitempty"`
19013
19014
19015 Longitude float64 `json:"longitude,omitempty"`
19016
19017
19018
19019
19020
19021 ForceSendFields []string `json:"-"`
19022
19023
19024
19025
19026 NullFields []string `json:"-"`
19027 }
19028
19029 func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
19030 type NoMethod GoogleTypeLatLng
19031 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
19032 }
19033
19034 func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
19035 type NoMethod GoogleTypeLatLng
19036 var s1 struct {
19037 Latitude gensupport.JSONFloat64 `json:"latitude"`
19038 Longitude gensupport.JSONFloat64 `json:"longitude"`
19039 *NoMethod
19040 }
19041 s1.NoMethod = (*NoMethod)(s)
19042 if err := json.Unmarshal(data, &s1); err != nil {
19043 return err
19044 }
19045 s.Latitude = float64(s1.Latitude)
19046 s.Longitude = float64(s1.Longitude)
19047 return nil
19048 }
19049
19050 type ProjectsDeleteAgentCall struct {
19051 s *Service
19052 parent string
19053 urlParams_ gensupport.URLParams
19054 ctx_ context.Context
19055 header_ http.Header
19056 }
19057
19058
19059
19060
19061
19062 func (r *ProjectsService) DeleteAgent(parent string) *ProjectsDeleteAgentCall {
19063 c := &ProjectsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19064 c.parent = parent
19065 return c
19066 }
19067
19068
19069
19070
19071 func (c *ProjectsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsDeleteAgentCall {
19072 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19073 return c
19074 }
19075
19076
19077 func (c *ProjectsDeleteAgentCall) Context(ctx context.Context) *ProjectsDeleteAgentCall {
19078 c.ctx_ = ctx
19079 return c
19080 }
19081
19082
19083
19084 func (c *ProjectsDeleteAgentCall) Header() http.Header {
19085 if c.header_ == nil {
19086 c.header_ = make(http.Header)
19087 }
19088 return c.header_
19089 }
19090
19091 func (c *ProjectsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
19092 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19093 var body io.Reader = nil
19094 c.urlParams_.Set("alt", alt)
19095 c.urlParams_.Set("prettyPrint", "false")
19096 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
19097 urls += "?" + c.urlParams_.Encode()
19098 req, err := http.NewRequest("DELETE", urls, body)
19099 if err != nil {
19100 return nil, err
19101 }
19102 req.Header = reqHeaders
19103 googleapi.Expand(req.URL, map[string]string{
19104 "parent": c.parent,
19105 })
19106 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19107 }
19108
19109
19110
19111
19112
19113
19114
19115 func (c *ProjectsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19116 gensupport.SetOptions(c.urlParams_, opts...)
19117 res, err := c.doRequest("json")
19118 if res != nil && res.StatusCode == http.StatusNotModified {
19119 if res.Body != nil {
19120 res.Body.Close()
19121 }
19122 return nil, gensupport.WrapError(&googleapi.Error{
19123 Code: res.StatusCode,
19124 Header: res.Header,
19125 })
19126 }
19127 if err != nil {
19128 return nil, err
19129 }
19130 defer googleapi.CloseBody(res)
19131 if err := googleapi.CheckResponse(res); err != nil {
19132 return nil, gensupport.WrapError(err)
19133 }
19134 ret := &GoogleProtobufEmpty{
19135 ServerResponse: googleapi.ServerResponse{
19136 Header: res.Header,
19137 HTTPStatusCode: res.StatusCode,
19138 },
19139 }
19140 target := &ret
19141 if err := gensupport.DecodeResponse(target, res); err != nil {
19142 return nil, err
19143 }
19144 return ret, nil
19145 }
19146
19147 type ProjectsGetAgentCall struct {
19148 s *Service
19149 parent string
19150 urlParams_ gensupport.URLParams
19151 ifNoneMatch_ string
19152 ctx_ context.Context
19153 header_ http.Header
19154 }
19155
19156
19157
19158
19159
19160 func (r *ProjectsService) GetAgent(parent string) *ProjectsGetAgentCall {
19161 c := &ProjectsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19162 c.parent = parent
19163 return c
19164 }
19165
19166
19167
19168
19169 func (c *ProjectsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsGetAgentCall {
19170 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19171 return c
19172 }
19173
19174
19175
19176
19177 func (c *ProjectsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsGetAgentCall {
19178 c.ifNoneMatch_ = entityTag
19179 return c
19180 }
19181
19182
19183 func (c *ProjectsGetAgentCall) Context(ctx context.Context) *ProjectsGetAgentCall {
19184 c.ctx_ = ctx
19185 return c
19186 }
19187
19188
19189
19190 func (c *ProjectsGetAgentCall) Header() http.Header {
19191 if c.header_ == nil {
19192 c.header_ = make(http.Header)
19193 }
19194 return c.header_
19195 }
19196
19197 func (c *ProjectsGetAgentCall) doRequest(alt string) (*http.Response, error) {
19198 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19199 if c.ifNoneMatch_ != "" {
19200 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19201 }
19202 var body io.Reader = nil
19203 c.urlParams_.Set("alt", alt)
19204 c.urlParams_.Set("prettyPrint", "false")
19205 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
19206 urls += "?" + c.urlParams_.Encode()
19207 req, err := http.NewRequest("GET", urls, body)
19208 if err != nil {
19209 return nil, err
19210 }
19211 req.Header = reqHeaders
19212 googleapi.Expand(req.URL, map[string]string{
19213 "parent": c.parent,
19214 })
19215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19216 }
19217
19218
19219
19220
19221
19222
19223
19224 func (c *ProjectsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
19225 gensupport.SetOptions(c.urlParams_, opts...)
19226 res, err := c.doRequest("json")
19227 if res != nil && res.StatusCode == http.StatusNotModified {
19228 if res.Body != nil {
19229 res.Body.Close()
19230 }
19231 return nil, gensupport.WrapError(&googleapi.Error{
19232 Code: res.StatusCode,
19233 Header: res.Header,
19234 })
19235 }
19236 if err != nil {
19237 return nil, err
19238 }
19239 defer googleapi.CloseBody(res)
19240 if err := googleapi.CheckResponse(res); err != nil {
19241 return nil, gensupport.WrapError(err)
19242 }
19243 ret := &GoogleCloudDialogflowV2beta1Agent{
19244 ServerResponse: googleapi.ServerResponse{
19245 Header: res.Header,
19246 HTTPStatusCode: res.StatusCode,
19247 },
19248 }
19249 target := &ret
19250 if err := gensupport.DecodeResponse(target, res); err != nil {
19251 return nil, err
19252 }
19253 return ret, nil
19254 }
19255
19256 type ProjectsSetAgentCall struct {
19257 s *Service
19258 parent string
19259 googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
19260 urlParams_ gensupport.URLParams
19261 ctx_ context.Context
19262 header_ http.Header
19263 }
19264
19265
19266
19267
19268
19269
19270
19271 func (r *ProjectsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsSetAgentCall {
19272 c := &ProjectsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19273 c.parent = parent
19274 c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
19275 return c
19276 }
19277
19278
19279
19280 func (c *ProjectsSetAgentCall) UpdateMask(updateMask string) *ProjectsSetAgentCall {
19281 c.urlParams_.Set("updateMask", updateMask)
19282 return c
19283 }
19284
19285
19286
19287
19288 func (c *ProjectsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsSetAgentCall {
19289 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19290 return c
19291 }
19292
19293
19294 func (c *ProjectsSetAgentCall) Context(ctx context.Context) *ProjectsSetAgentCall {
19295 c.ctx_ = ctx
19296 return c
19297 }
19298
19299
19300
19301 func (c *ProjectsSetAgentCall) Header() http.Header {
19302 if c.header_ == nil {
19303 c.header_ = make(http.Header)
19304 }
19305 return c.header_
19306 }
19307
19308 func (c *ProjectsSetAgentCall) doRequest(alt string) (*http.Response, error) {
19309 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19310 var body io.Reader = nil
19311 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
19312 if err != nil {
19313 return nil, err
19314 }
19315 c.urlParams_.Set("alt", alt)
19316 c.urlParams_.Set("prettyPrint", "false")
19317 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
19318 urls += "?" + c.urlParams_.Encode()
19319 req, err := http.NewRequest("POST", urls, body)
19320 if err != nil {
19321 return nil, err
19322 }
19323 req.Header = reqHeaders
19324 googleapi.Expand(req.URL, map[string]string{
19325 "parent": c.parent,
19326 })
19327 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19328 }
19329
19330
19331
19332
19333
19334
19335
19336 func (c *ProjectsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
19337 gensupport.SetOptions(c.urlParams_, opts...)
19338 res, err := c.doRequest("json")
19339 if res != nil && res.StatusCode == http.StatusNotModified {
19340 if res.Body != nil {
19341 res.Body.Close()
19342 }
19343 return nil, gensupport.WrapError(&googleapi.Error{
19344 Code: res.StatusCode,
19345 Header: res.Header,
19346 })
19347 }
19348 if err != nil {
19349 return nil, err
19350 }
19351 defer googleapi.CloseBody(res)
19352 if err := googleapi.CheckResponse(res); err != nil {
19353 return nil, gensupport.WrapError(err)
19354 }
19355 ret := &GoogleCloudDialogflowV2beta1Agent{
19356 ServerResponse: googleapi.ServerResponse{
19357 Header: res.Header,
19358 HTTPStatusCode: res.StatusCode,
19359 },
19360 }
19361 target := &ret
19362 if err := gensupport.DecodeResponse(target, res); err != nil {
19363 return nil, err
19364 }
19365 return ret, nil
19366 }
19367
19368 type ProjectsAgentExportCall struct {
19369 s *Service
19370 parent string
19371 googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
19372 urlParams_ gensupport.URLParams
19373 ctx_ context.Context
19374 header_ http.Header
19375 }
19376
19377
19378
19379
19380
19381
19382
19383
19384
19385
19386
19387 func (r *ProjectsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsAgentExportCall {
19388 c := &ProjectsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19389 c.parent = parent
19390 c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
19391 return c
19392 }
19393
19394
19395
19396
19397 func (c *ProjectsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsAgentExportCall {
19398 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19399 return c
19400 }
19401
19402
19403 func (c *ProjectsAgentExportCall) Context(ctx context.Context) *ProjectsAgentExportCall {
19404 c.ctx_ = ctx
19405 return c
19406 }
19407
19408
19409
19410 func (c *ProjectsAgentExportCall) Header() http.Header {
19411 if c.header_ == nil {
19412 c.header_ = make(http.Header)
19413 }
19414 return c.header_
19415 }
19416
19417 func (c *ProjectsAgentExportCall) doRequest(alt string) (*http.Response, error) {
19418 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19419 var body io.Reader = nil
19420 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
19421 if err != nil {
19422 return nil, err
19423 }
19424 c.urlParams_.Set("alt", alt)
19425 c.urlParams_.Set("prettyPrint", "false")
19426 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
19427 urls += "?" + c.urlParams_.Encode()
19428 req, err := http.NewRequest("POST", urls, body)
19429 if err != nil {
19430 return nil, err
19431 }
19432 req.Header = reqHeaders
19433 googleapi.Expand(req.URL, map[string]string{
19434 "parent": c.parent,
19435 })
19436 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19437 }
19438
19439
19440
19441
19442
19443
19444
19445 func (c *ProjectsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19446 gensupport.SetOptions(c.urlParams_, opts...)
19447 res, err := c.doRequest("json")
19448 if res != nil && res.StatusCode == http.StatusNotModified {
19449 if res.Body != nil {
19450 res.Body.Close()
19451 }
19452 return nil, gensupport.WrapError(&googleapi.Error{
19453 Code: res.StatusCode,
19454 Header: res.Header,
19455 })
19456 }
19457 if err != nil {
19458 return nil, err
19459 }
19460 defer googleapi.CloseBody(res)
19461 if err := googleapi.CheckResponse(res); err != nil {
19462 return nil, gensupport.WrapError(err)
19463 }
19464 ret := &GoogleLongrunningOperation{
19465 ServerResponse: googleapi.ServerResponse{
19466 Header: res.Header,
19467 HTTPStatusCode: res.StatusCode,
19468 },
19469 }
19470 target := &ret
19471 if err := gensupport.DecodeResponse(target, res); err != nil {
19472 return nil, err
19473 }
19474 return ret, nil
19475 }
19476
19477 type ProjectsAgentGetFulfillmentCall struct {
19478 s *Service
19479 name string
19480 urlParams_ gensupport.URLParams
19481 ifNoneMatch_ string
19482 ctx_ context.Context
19483 header_ http.Header
19484 }
19485
19486
19487
19488
19489
19490 func (r *ProjectsAgentService) GetFulfillment(name string) *ProjectsAgentGetFulfillmentCall {
19491 c := &ProjectsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19492 c.name = name
19493 return c
19494 }
19495
19496
19497
19498
19499 func (c *ProjectsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentGetFulfillmentCall {
19500 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19501 return c
19502 }
19503
19504
19505
19506
19507 func (c *ProjectsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsAgentGetFulfillmentCall {
19508 c.ifNoneMatch_ = entityTag
19509 return c
19510 }
19511
19512
19513 func (c *ProjectsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsAgentGetFulfillmentCall {
19514 c.ctx_ = ctx
19515 return c
19516 }
19517
19518
19519
19520 func (c *ProjectsAgentGetFulfillmentCall) Header() http.Header {
19521 if c.header_ == nil {
19522 c.header_ = make(http.Header)
19523 }
19524 return c.header_
19525 }
19526
19527 func (c *ProjectsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
19528 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19529 if c.ifNoneMatch_ != "" {
19530 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19531 }
19532 var body io.Reader = nil
19533 c.urlParams_.Set("alt", alt)
19534 c.urlParams_.Set("prettyPrint", "false")
19535 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
19536 urls += "?" + c.urlParams_.Encode()
19537 req, err := http.NewRequest("GET", urls, body)
19538 if err != nil {
19539 return nil, err
19540 }
19541 req.Header = reqHeaders
19542 googleapi.Expand(req.URL, map[string]string{
19543 "name": c.name,
19544 })
19545 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19546 }
19547
19548
19549
19550
19551
19552
19553
19554 func (c *ProjectsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
19555 gensupport.SetOptions(c.urlParams_, opts...)
19556 res, err := c.doRequest("json")
19557 if res != nil && res.StatusCode == http.StatusNotModified {
19558 if res.Body != nil {
19559 res.Body.Close()
19560 }
19561 return nil, gensupport.WrapError(&googleapi.Error{
19562 Code: res.StatusCode,
19563 Header: res.Header,
19564 })
19565 }
19566 if err != nil {
19567 return nil, err
19568 }
19569 defer googleapi.CloseBody(res)
19570 if err := googleapi.CheckResponse(res); err != nil {
19571 return nil, gensupport.WrapError(err)
19572 }
19573 ret := &GoogleCloudDialogflowV2beta1Fulfillment{
19574 ServerResponse: googleapi.ServerResponse{
19575 Header: res.Header,
19576 HTTPStatusCode: res.StatusCode,
19577 },
19578 }
19579 target := &ret
19580 if err := gensupport.DecodeResponse(target, res); err != nil {
19581 return nil, err
19582 }
19583 return ret, nil
19584 }
19585
19586 type ProjectsAgentGetValidationResultCall struct {
19587 s *Service
19588 parent string
19589 urlParams_ gensupport.URLParams
19590 ifNoneMatch_ string
19591 ctx_ context.Context
19592 header_ http.Header
19593 }
19594
19595
19596
19597
19598
19599
19600
19601 func (r *ProjectsAgentService) GetValidationResult(parent string) *ProjectsAgentGetValidationResultCall {
19602 c := &ProjectsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19603 c.parent = parent
19604 return c
19605 }
19606
19607
19608
19609
19610
19611
19612 func (c *ProjectsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsAgentGetValidationResultCall {
19613 c.urlParams_.Set("languageCode", languageCode)
19614 return c
19615 }
19616
19617
19618
19619
19620 func (c *ProjectsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsAgentGetValidationResultCall {
19621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19622 return c
19623 }
19624
19625
19626
19627
19628 func (c *ProjectsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsAgentGetValidationResultCall {
19629 c.ifNoneMatch_ = entityTag
19630 return c
19631 }
19632
19633
19634 func (c *ProjectsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsAgentGetValidationResultCall {
19635 c.ctx_ = ctx
19636 return c
19637 }
19638
19639
19640
19641 func (c *ProjectsAgentGetValidationResultCall) Header() http.Header {
19642 if c.header_ == nil {
19643 c.header_ = make(http.Header)
19644 }
19645 return c.header_
19646 }
19647
19648 func (c *ProjectsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
19649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19650 if c.ifNoneMatch_ != "" {
19651 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19652 }
19653 var body io.Reader = nil
19654 c.urlParams_.Set("alt", alt)
19655 c.urlParams_.Set("prettyPrint", "false")
19656 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
19657 urls += "?" + c.urlParams_.Encode()
19658 req, err := http.NewRequest("GET", urls, body)
19659 if err != nil {
19660 return nil, err
19661 }
19662 req.Header = reqHeaders
19663 googleapi.Expand(req.URL, map[string]string{
19664 "parent": c.parent,
19665 })
19666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19667 }
19668
19669
19670
19671
19672
19673
19674
19675 func (c *ProjectsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
19676 gensupport.SetOptions(c.urlParams_, opts...)
19677 res, err := c.doRequest("json")
19678 if res != nil && res.StatusCode == http.StatusNotModified {
19679 if res.Body != nil {
19680 res.Body.Close()
19681 }
19682 return nil, gensupport.WrapError(&googleapi.Error{
19683 Code: res.StatusCode,
19684 Header: res.Header,
19685 })
19686 }
19687 if err != nil {
19688 return nil, err
19689 }
19690 defer googleapi.CloseBody(res)
19691 if err := googleapi.CheckResponse(res); err != nil {
19692 return nil, gensupport.WrapError(err)
19693 }
19694 ret := &GoogleCloudDialogflowV2beta1ValidationResult{
19695 ServerResponse: googleapi.ServerResponse{
19696 Header: res.Header,
19697 HTTPStatusCode: res.StatusCode,
19698 },
19699 }
19700 target := &ret
19701 if err := gensupport.DecodeResponse(target, res); err != nil {
19702 return nil, err
19703 }
19704 return ret, nil
19705 }
19706
19707 type ProjectsAgentImportCall struct {
19708 s *Service
19709 parent string
19710 googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
19711 urlParams_ gensupport.URLParams
19712 ctx_ context.Context
19713 header_ http.Header
19714 }
19715
19716
19717
19718
19719
19720
19721
19722
19723
19724
19725
19726
19727
19728
19729
19730
19731
19732
19733
19734
19735
19736
19737 func (r *ProjectsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsAgentImportCall {
19738 c := &ProjectsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19739 c.parent = parent
19740 c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
19741 return c
19742 }
19743
19744
19745
19746
19747 func (c *ProjectsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsAgentImportCall {
19748 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19749 return c
19750 }
19751
19752
19753 func (c *ProjectsAgentImportCall) Context(ctx context.Context) *ProjectsAgentImportCall {
19754 c.ctx_ = ctx
19755 return c
19756 }
19757
19758
19759
19760 func (c *ProjectsAgentImportCall) Header() http.Header {
19761 if c.header_ == nil {
19762 c.header_ = make(http.Header)
19763 }
19764 return c.header_
19765 }
19766
19767 func (c *ProjectsAgentImportCall) doRequest(alt string) (*http.Response, error) {
19768 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19769 var body io.Reader = nil
19770 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
19771 if err != nil {
19772 return nil, err
19773 }
19774 c.urlParams_.Set("alt", alt)
19775 c.urlParams_.Set("prettyPrint", "false")
19776 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
19777 urls += "?" + c.urlParams_.Encode()
19778 req, err := http.NewRequest("POST", urls, body)
19779 if err != nil {
19780 return nil, err
19781 }
19782 req.Header = reqHeaders
19783 googleapi.Expand(req.URL, map[string]string{
19784 "parent": c.parent,
19785 })
19786 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19787 }
19788
19789
19790
19791
19792
19793
19794
19795 func (c *ProjectsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19796 gensupport.SetOptions(c.urlParams_, opts...)
19797 res, err := c.doRequest("json")
19798 if res != nil && res.StatusCode == http.StatusNotModified {
19799 if res.Body != nil {
19800 res.Body.Close()
19801 }
19802 return nil, gensupport.WrapError(&googleapi.Error{
19803 Code: res.StatusCode,
19804 Header: res.Header,
19805 })
19806 }
19807 if err != nil {
19808 return nil, err
19809 }
19810 defer googleapi.CloseBody(res)
19811 if err := googleapi.CheckResponse(res); err != nil {
19812 return nil, gensupport.WrapError(err)
19813 }
19814 ret := &GoogleLongrunningOperation{
19815 ServerResponse: googleapi.ServerResponse{
19816 Header: res.Header,
19817 HTTPStatusCode: res.StatusCode,
19818 },
19819 }
19820 target := &ret
19821 if err := gensupport.DecodeResponse(target, res); err != nil {
19822 return nil, err
19823 }
19824 return ret, nil
19825 }
19826
19827 type ProjectsAgentRestoreCall struct {
19828 s *Service
19829 parent string
19830 googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
19831 urlParams_ gensupport.URLParams
19832 ctx_ context.Context
19833 header_ http.Header
19834 }
19835
19836
19837
19838
19839
19840
19841
19842
19843
19844
19845
19846
19847
19848
19849
19850
19851
19852
19853
19854
19855
19856 func (r *ProjectsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsAgentRestoreCall {
19857 c := &ProjectsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19858 c.parent = parent
19859 c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
19860 return c
19861 }
19862
19863
19864
19865
19866 func (c *ProjectsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsAgentRestoreCall {
19867 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19868 return c
19869 }
19870
19871
19872 func (c *ProjectsAgentRestoreCall) Context(ctx context.Context) *ProjectsAgentRestoreCall {
19873 c.ctx_ = ctx
19874 return c
19875 }
19876
19877
19878
19879 func (c *ProjectsAgentRestoreCall) Header() http.Header {
19880 if c.header_ == nil {
19881 c.header_ = make(http.Header)
19882 }
19883 return c.header_
19884 }
19885
19886 func (c *ProjectsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
19887 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19888 var body io.Reader = nil
19889 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
19890 if err != nil {
19891 return nil, err
19892 }
19893 c.urlParams_.Set("alt", alt)
19894 c.urlParams_.Set("prettyPrint", "false")
19895 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
19896 urls += "?" + c.urlParams_.Encode()
19897 req, err := http.NewRequest("POST", urls, body)
19898 if err != nil {
19899 return nil, err
19900 }
19901 req.Header = reqHeaders
19902 googleapi.Expand(req.URL, map[string]string{
19903 "parent": c.parent,
19904 })
19905 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19906 }
19907
19908
19909
19910
19911
19912
19913
19914 func (c *ProjectsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19915 gensupport.SetOptions(c.urlParams_, opts...)
19916 res, err := c.doRequest("json")
19917 if res != nil && res.StatusCode == http.StatusNotModified {
19918 if res.Body != nil {
19919 res.Body.Close()
19920 }
19921 return nil, gensupport.WrapError(&googleapi.Error{
19922 Code: res.StatusCode,
19923 Header: res.Header,
19924 })
19925 }
19926 if err != nil {
19927 return nil, err
19928 }
19929 defer googleapi.CloseBody(res)
19930 if err := googleapi.CheckResponse(res); err != nil {
19931 return nil, gensupport.WrapError(err)
19932 }
19933 ret := &GoogleLongrunningOperation{
19934 ServerResponse: googleapi.ServerResponse{
19935 Header: res.Header,
19936 HTTPStatusCode: res.StatusCode,
19937 },
19938 }
19939 target := &ret
19940 if err := gensupport.DecodeResponse(target, res); err != nil {
19941 return nil, err
19942 }
19943 return ret, nil
19944 }
19945
19946 type ProjectsAgentSearchCall struct {
19947 s *Service
19948 parent string
19949 urlParams_ gensupport.URLParams
19950 ifNoneMatch_ string
19951 ctx_ context.Context
19952 header_ http.Header
19953 }
19954
19955
19956
19957
19958
19959
19960
19961
19962
19963
19964 func (r *ProjectsAgentService) Search(parent string) *ProjectsAgentSearchCall {
19965 c := &ProjectsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19966 c.parent = parent
19967 return c
19968 }
19969
19970
19971
19972 func (c *ProjectsAgentSearchCall) PageSize(pageSize int64) *ProjectsAgentSearchCall {
19973 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19974 return c
19975 }
19976
19977
19978
19979 func (c *ProjectsAgentSearchCall) PageToken(pageToken string) *ProjectsAgentSearchCall {
19980 c.urlParams_.Set("pageToken", pageToken)
19981 return c
19982 }
19983
19984
19985
19986
19987 func (c *ProjectsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsAgentSearchCall {
19988 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19989 return c
19990 }
19991
19992
19993
19994
19995 func (c *ProjectsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsAgentSearchCall {
19996 c.ifNoneMatch_ = entityTag
19997 return c
19998 }
19999
20000
20001 func (c *ProjectsAgentSearchCall) Context(ctx context.Context) *ProjectsAgentSearchCall {
20002 c.ctx_ = ctx
20003 return c
20004 }
20005
20006
20007
20008 func (c *ProjectsAgentSearchCall) Header() http.Header {
20009 if c.header_ == nil {
20010 c.header_ = make(http.Header)
20011 }
20012 return c.header_
20013 }
20014
20015 func (c *ProjectsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
20016 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20017 if c.ifNoneMatch_ != "" {
20018 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20019 }
20020 var body io.Reader = nil
20021 c.urlParams_.Set("alt", alt)
20022 c.urlParams_.Set("prettyPrint", "false")
20023 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
20024 urls += "?" + c.urlParams_.Encode()
20025 req, err := http.NewRequest("GET", urls, body)
20026 if err != nil {
20027 return nil, err
20028 }
20029 req.Header = reqHeaders
20030 googleapi.Expand(req.URL, map[string]string{
20031 "parent": c.parent,
20032 })
20033 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20034 }
20035
20036
20037
20038
20039
20040
20041
20042 func (c *ProjectsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
20043 gensupport.SetOptions(c.urlParams_, opts...)
20044 res, err := c.doRequest("json")
20045 if res != nil && res.StatusCode == http.StatusNotModified {
20046 if res.Body != nil {
20047 res.Body.Close()
20048 }
20049 return nil, gensupport.WrapError(&googleapi.Error{
20050 Code: res.StatusCode,
20051 Header: res.Header,
20052 })
20053 }
20054 if err != nil {
20055 return nil, err
20056 }
20057 defer googleapi.CloseBody(res)
20058 if err := googleapi.CheckResponse(res); err != nil {
20059 return nil, gensupport.WrapError(err)
20060 }
20061 ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
20062 ServerResponse: googleapi.ServerResponse{
20063 Header: res.Header,
20064 HTTPStatusCode: res.StatusCode,
20065 },
20066 }
20067 target := &ret
20068 if err := gensupport.DecodeResponse(target, res); err != nil {
20069 return nil, err
20070 }
20071 return ret, nil
20072 }
20073
20074
20075
20076
20077 func (c *ProjectsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
20078 c.ctx_ = ctx
20079 defer c.PageToken(c.urlParams_.Get("pageToken"))
20080 for {
20081 x, err := c.Do()
20082 if err != nil {
20083 return err
20084 }
20085 if err := f(x); err != nil {
20086 return err
20087 }
20088 if x.NextPageToken == "" {
20089 return nil
20090 }
20091 c.PageToken(x.NextPageToken)
20092 }
20093 }
20094
20095 type ProjectsAgentTrainCall struct {
20096 s *Service
20097 parent string
20098 googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
20099 urlParams_ gensupport.URLParams
20100 ctx_ context.Context
20101 header_ http.Header
20102 }
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117 func (r *ProjectsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsAgentTrainCall {
20118 c := &ProjectsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20119 c.parent = parent
20120 c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
20121 return c
20122 }
20123
20124
20125
20126
20127 func (c *ProjectsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsAgentTrainCall {
20128 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20129 return c
20130 }
20131
20132
20133 func (c *ProjectsAgentTrainCall) Context(ctx context.Context) *ProjectsAgentTrainCall {
20134 c.ctx_ = ctx
20135 return c
20136 }
20137
20138
20139
20140 func (c *ProjectsAgentTrainCall) Header() http.Header {
20141 if c.header_ == nil {
20142 c.header_ = make(http.Header)
20143 }
20144 return c.header_
20145 }
20146
20147 func (c *ProjectsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
20148 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20149 var body io.Reader = nil
20150 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
20151 if err != nil {
20152 return nil, err
20153 }
20154 c.urlParams_.Set("alt", alt)
20155 c.urlParams_.Set("prettyPrint", "false")
20156 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
20157 urls += "?" + c.urlParams_.Encode()
20158 req, err := http.NewRequest("POST", urls, body)
20159 if err != nil {
20160 return nil, err
20161 }
20162 req.Header = reqHeaders
20163 googleapi.Expand(req.URL, map[string]string{
20164 "parent": c.parent,
20165 })
20166 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20167 }
20168
20169
20170
20171
20172
20173
20174
20175 func (c *ProjectsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20176 gensupport.SetOptions(c.urlParams_, opts...)
20177 res, err := c.doRequest("json")
20178 if res != nil && res.StatusCode == http.StatusNotModified {
20179 if res.Body != nil {
20180 res.Body.Close()
20181 }
20182 return nil, gensupport.WrapError(&googleapi.Error{
20183 Code: res.StatusCode,
20184 Header: res.Header,
20185 })
20186 }
20187 if err != nil {
20188 return nil, err
20189 }
20190 defer googleapi.CloseBody(res)
20191 if err := googleapi.CheckResponse(res); err != nil {
20192 return nil, gensupport.WrapError(err)
20193 }
20194 ret := &GoogleLongrunningOperation{
20195 ServerResponse: googleapi.ServerResponse{
20196 Header: res.Header,
20197 HTTPStatusCode: res.StatusCode,
20198 },
20199 }
20200 target := &ret
20201 if err := gensupport.DecodeResponse(target, res); err != nil {
20202 return nil, err
20203 }
20204 return ret, nil
20205 }
20206
20207 type ProjectsAgentUpdateFulfillmentCall struct {
20208 s *Service
20209 nameid string
20210 googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
20211 urlParams_ gensupport.URLParams
20212 ctx_ context.Context
20213 header_ http.Header
20214 }
20215
20216
20217
20218
20219
20220
20221 func (r *ProjectsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsAgentUpdateFulfillmentCall {
20222 c := &ProjectsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20223 c.nameid = nameid
20224 c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
20225 return c
20226 }
20227
20228
20229
20230
20231 func (c *ProjectsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsAgentUpdateFulfillmentCall {
20232 c.urlParams_.Set("updateMask", updateMask)
20233 return c
20234 }
20235
20236
20237
20238
20239 func (c *ProjectsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsAgentUpdateFulfillmentCall {
20240 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20241 return c
20242 }
20243
20244
20245 func (c *ProjectsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsAgentUpdateFulfillmentCall {
20246 c.ctx_ = ctx
20247 return c
20248 }
20249
20250
20251
20252 func (c *ProjectsAgentUpdateFulfillmentCall) Header() http.Header {
20253 if c.header_ == nil {
20254 c.header_ = make(http.Header)
20255 }
20256 return c.header_
20257 }
20258
20259 func (c *ProjectsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
20260 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20261 var body io.Reader = nil
20262 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
20263 if err != nil {
20264 return nil, err
20265 }
20266 c.urlParams_.Set("alt", alt)
20267 c.urlParams_.Set("prettyPrint", "false")
20268 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20269 urls += "?" + c.urlParams_.Encode()
20270 req, err := http.NewRequest("PATCH", urls, body)
20271 if err != nil {
20272 return nil, err
20273 }
20274 req.Header = reqHeaders
20275 googleapi.Expand(req.URL, map[string]string{
20276 "name": c.nameid,
20277 })
20278 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20279 }
20280
20281
20282
20283
20284
20285
20286
20287 func (c *ProjectsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
20288 gensupport.SetOptions(c.urlParams_, opts...)
20289 res, err := c.doRequest("json")
20290 if res != nil && res.StatusCode == http.StatusNotModified {
20291 if res.Body != nil {
20292 res.Body.Close()
20293 }
20294 return nil, gensupport.WrapError(&googleapi.Error{
20295 Code: res.StatusCode,
20296 Header: res.Header,
20297 })
20298 }
20299 if err != nil {
20300 return nil, err
20301 }
20302 defer googleapi.CloseBody(res)
20303 if err := googleapi.CheckResponse(res); err != nil {
20304 return nil, gensupport.WrapError(err)
20305 }
20306 ret := &GoogleCloudDialogflowV2beta1Fulfillment{
20307 ServerResponse: googleapi.ServerResponse{
20308 Header: res.Header,
20309 HTTPStatusCode: res.StatusCode,
20310 },
20311 }
20312 target := &ret
20313 if err := gensupport.DecodeResponse(target, res); err != nil {
20314 return nil, err
20315 }
20316 return ret, nil
20317 }
20318
20319 type ProjectsAgentEntityTypesBatchDeleteCall struct {
20320 s *Service
20321 parent string
20322 googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
20323 urlParams_ gensupport.URLParams
20324 ctx_ context.Context
20325 header_ http.Header
20326 }
20327
20328
20329
20330
20331
20332
20333
20334
20335
20336
20337
20338
20339
20340
20341
20342 func (r *ProjectsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsAgentEntityTypesBatchDeleteCall {
20343 c := &ProjectsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20344 c.parent = parent
20345 c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
20346 return c
20347 }
20348
20349
20350
20351
20352 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchDeleteCall {
20353 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20354 return c
20355 }
20356
20357
20358 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchDeleteCall {
20359 c.ctx_ = ctx
20360 return c
20361 }
20362
20363
20364
20365 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Header() http.Header {
20366 if c.header_ == nil {
20367 c.header_ = make(http.Header)
20368 }
20369 return c.header_
20370 }
20371
20372 func (c *ProjectsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
20373 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20374 var body io.Reader = nil
20375 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
20376 if err != nil {
20377 return nil, err
20378 }
20379 c.urlParams_.Set("alt", alt)
20380 c.urlParams_.Set("prettyPrint", "false")
20381 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
20382 urls += "?" + c.urlParams_.Encode()
20383 req, err := http.NewRequest("POST", urls, body)
20384 if err != nil {
20385 return nil, err
20386 }
20387 req.Header = reqHeaders
20388 googleapi.Expand(req.URL, map[string]string{
20389 "parent": c.parent,
20390 })
20391 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20392 }
20393
20394
20395
20396
20397
20398
20399
20400 func (c *ProjectsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20401 gensupport.SetOptions(c.urlParams_, opts...)
20402 res, err := c.doRequest("json")
20403 if res != nil && res.StatusCode == http.StatusNotModified {
20404 if res.Body != nil {
20405 res.Body.Close()
20406 }
20407 return nil, gensupport.WrapError(&googleapi.Error{
20408 Code: res.StatusCode,
20409 Header: res.Header,
20410 })
20411 }
20412 if err != nil {
20413 return nil, err
20414 }
20415 defer googleapi.CloseBody(res)
20416 if err := googleapi.CheckResponse(res); err != nil {
20417 return nil, gensupport.WrapError(err)
20418 }
20419 ret := &GoogleLongrunningOperation{
20420 ServerResponse: googleapi.ServerResponse{
20421 Header: res.Header,
20422 HTTPStatusCode: res.StatusCode,
20423 },
20424 }
20425 target := &ret
20426 if err := gensupport.DecodeResponse(target, res); err != nil {
20427 return nil, err
20428 }
20429 return ret, nil
20430 }
20431
20432 type ProjectsAgentEntityTypesBatchUpdateCall struct {
20433 s *Service
20434 parent string
20435 googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
20436 urlParams_ gensupport.URLParams
20437 ctx_ context.Context
20438 header_ http.Header
20439 }
20440
20441
20442
20443
20444
20445
20446
20447
20448
20449
20450
20451
20452
20453 func (r *ProjectsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsAgentEntityTypesBatchUpdateCall {
20454 c := &ProjectsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20455 c.parent = parent
20456 c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
20457 return c
20458 }
20459
20460
20461
20462
20463 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesBatchUpdateCall {
20464 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20465 return c
20466 }
20467
20468
20469 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesBatchUpdateCall {
20470 c.ctx_ = ctx
20471 return c
20472 }
20473
20474
20475
20476 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Header() http.Header {
20477 if c.header_ == nil {
20478 c.header_ = make(http.Header)
20479 }
20480 return c.header_
20481 }
20482
20483 func (c *ProjectsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
20484 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20485 var body io.Reader = nil
20486 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
20487 if err != nil {
20488 return nil, err
20489 }
20490 c.urlParams_.Set("alt", alt)
20491 c.urlParams_.Set("prettyPrint", "false")
20492 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
20493 urls += "?" + c.urlParams_.Encode()
20494 req, err := http.NewRequest("POST", urls, body)
20495 if err != nil {
20496 return nil, err
20497 }
20498 req.Header = reqHeaders
20499 googleapi.Expand(req.URL, map[string]string{
20500 "parent": c.parent,
20501 })
20502 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20503 }
20504
20505
20506
20507
20508
20509
20510
20511 func (c *ProjectsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20512 gensupport.SetOptions(c.urlParams_, opts...)
20513 res, err := c.doRequest("json")
20514 if res != nil && res.StatusCode == http.StatusNotModified {
20515 if res.Body != nil {
20516 res.Body.Close()
20517 }
20518 return nil, gensupport.WrapError(&googleapi.Error{
20519 Code: res.StatusCode,
20520 Header: res.Header,
20521 })
20522 }
20523 if err != nil {
20524 return nil, err
20525 }
20526 defer googleapi.CloseBody(res)
20527 if err := googleapi.CheckResponse(res); err != nil {
20528 return nil, gensupport.WrapError(err)
20529 }
20530 ret := &GoogleLongrunningOperation{
20531 ServerResponse: googleapi.ServerResponse{
20532 Header: res.Header,
20533 HTTPStatusCode: res.StatusCode,
20534 },
20535 }
20536 target := &ret
20537 if err := gensupport.DecodeResponse(target, res); err != nil {
20538 return nil, err
20539 }
20540 return ret, nil
20541 }
20542
20543 type ProjectsAgentEntityTypesCreateCall struct {
20544 s *Service
20545 parent string
20546 googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
20547 urlParams_ gensupport.URLParams
20548 ctx_ context.Context
20549 header_ http.Header
20550 }
20551
20552
20553
20554
20555
20556
20557
20558 func (r *ProjectsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesCreateCall {
20559 c := &ProjectsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20560 c.parent = parent
20561 c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
20562 return c
20563 }
20564
20565
20566
20567
20568
20569
20570 func (c *ProjectsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesCreateCall {
20571 c.urlParams_.Set("languageCode", languageCode)
20572 return c
20573 }
20574
20575
20576
20577
20578 func (c *ProjectsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesCreateCall {
20579 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20580 return c
20581 }
20582
20583
20584 func (c *ProjectsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesCreateCall {
20585 c.ctx_ = ctx
20586 return c
20587 }
20588
20589
20590
20591 func (c *ProjectsAgentEntityTypesCreateCall) Header() http.Header {
20592 if c.header_ == nil {
20593 c.header_ = make(http.Header)
20594 }
20595 return c.header_
20596 }
20597
20598 func (c *ProjectsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
20599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20600 var body io.Reader = nil
20601 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
20602 if err != nil {
20603 return nil, err
20604 }
20605 c.urlParams_.Set("alt", alt)
20606 c.urlParams_.Set("prettyPrint", "false")
20607 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
20608 urls += "?" + c.urlParams_.Encode()
20609 req, err := http.NewRequest("POST", urls, body)
20610 if err != nil {
20611 return nil, err
20612 }
20613 req.Header = reqHeaders
20614 googleapi.Expand(req.URL, map[string]string{
20615 "parent": c.parent,
20616 })
20617 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20618 }
20619
20620
20621
20622
20623
20624
20625
20626 func (c *ProjectsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20627 gensupport.SetOptions(c.urlParams_, opts...)
20628 res, err := c.doRequest("json")
20629 if res != nil && res.StatusCode == http.StatusNotModified {
20630 if res.Body != nil {
20631 res.Body.Close()
20632 }
20633 return nil, gensupport.WrapError(&googleapi.Error{
20634 Code: res.StatusCode,
20635 Header: res.Header,
20636 })
20637 }
20638 if err != nil {
20639 return nil, err
20640 }
20641 defer googleapi.CloseBody(res)
20642 if err := googleapi.CheckResponse(res); err != nil {
20643 return nil, gensupport.WrapError(err)
20644 }
20645 ret := &GoogleCloudDialogflowV2beta1EntityType{
20646 ServerResponse: googleapi.ServerResponse{
20647 Header: res.Header,
20648 HTTPStatusCode: res.StatusCode,
20649 },
20650 }
20651 target := &ret
20652 if err := gensupport.DecodeResponse(target, res); err != nil {
20653 return nil, err
20654 }
20655 return ret, nil
20656 }
20657
20658 type ProjectsAgentEntityTypesDeleteCall struct {
20659 s *Service
20660 name string
20661 urlParams_ gensupport.URLParams
20662 ctx_ context.Context
20663 header_ http.Header
20664 }
20665
20666
20667
20668
20669
20670
20671
20672 func (r *ProjectsAgentEntityTypesService) Delete(name string) *ProjectsAgentEntityTypesDeleteCall {
20673 c := &ProjectsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20674 c.name = name
20675 return c
20676 }
20677
20678
20679
20680
20681 func (c *ProjectsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesDeleteCall {
20682 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20683 return c
20684 }
20685
20686
20687 func (c *ProjectsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesDeleteCall {
20688 c.ctx_ = ctx
20689 return c
20690 }
20691
20692
20693
20694 func (c *ProjectsAgentEntityTypesDeleteCall) Header() http.Header {
20695 if c.header_ == nil {
20696 c.header_ = make(http.Header)
20697 }
20698 return c.header_
20699 }
20700
20701 func (c *ProjectsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
20702 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20703 var body io.Reader = nil
20704 c.urlParams_.Set("alt", alt)
20705 c.urlParams_.Set("prettyPrint", "false")
20706 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20707 urls += "?" + c.urlParams_.Encode()
20708 req, err := http.NewRequest("DELETE", urls, body)
20709 if err != nil {
20710 return nil, err
20711 }
20712 req.Header = reqHeaders
20713 googleapi.Expand(req.URL, map[string]string{
20714 "name": c.name,
20715 })
20716 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20717 }
20718
20719
20720
20721
20722
20723
20724
20725 func (c *ProjectsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20726 gensupport.SetOptions(c.urlParams_, opts...)
20727 res, err := c.doRequest("json")
20728 if res != nil && res.StatusCode == http.StatusNotModified {
20729 if res.Body != nil {
20730 res.Body.Close()
20731 }
20732 return nil, gensupport.WrapError(&googleapi.Error{
20733 Code: res.StatusCode,
20734 Header: res.Header,
20735 })
20736 }
20737 if err != nil {
20738 return nil, err
20739 }
20740 defer googleapi.CloseBody(res)
20741 if err := googleapi.CheckResponse(res); err != nil {
20742 return nil, gensupport.WrapError(err)
20743 }
20744 ret := &GoogleProtobufEmpty{
20745 ServerResponse: googleapi.ServerResponse{
20746 Header: res.Header,
20747 HTTPStatusCode: res.StatusCode,
20748 },
20749 }
20750 target := &ret
20751 if err := gensupport.DecodeResponse(target, res); err != nil {
20752 return nil, err
20753 }
20754 return ret, nil
20755 }
20756
20757 type ProjectsAgentEntityTypesGetCall struct {
20758 s *Service
20759 name string
20760 urlParams_ gensupport.URLParams
20761 ifNoneMatch_ string
20762 ctx_ context.Context
20763 header_ http.Header
20764 }
20765
20766
20767
20768
20769
20770 func (r *ProjectsAgentEntityTypesService) Get(name string) *ProjectsAgentEntityTypesGetCall {
20771 c := &ProjectsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20772 c.name = name
20773 return c
20774 }
20775
20776
20777
20778
20779
20780
20781 func (c *ProjectsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesGetCall {
20782 c.urlParams_.Set("languageCode", languageCode)
20783 return c
20784 }
20785
20786
20787
20788
20789 func (c *ProjectsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesGetCall {
20790 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20791 return c
20792 }
20793
20794
20795
20796
20797 func (c *ProjectsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesGetCall {
20798 c.ifNoneMatch_ = entityTag
20799 return c
20800 }
20801
20802
20803 func (c *ProjectsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEntityTypesGetCall {
20804 c.ctx_ = ctx
20805 return c
20806 }
20807
20808
20809
20810 func (c *ProjectsAgentEntityTypesGetCall) Header() http.Header {
20811 if c.header_ == nil {
20812 c.header_ = make(http.Header)
20813 }
20814 return c.header_
20815 }
20816
20817 func (c *ProjectsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
20818 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20819 if c.ifNoneMatch_ != "" {
20820 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20821 }
20822 var body io.Reader = nil
20823 c.urlParams_.Set("alt", alt)
20824 c.urlParams_.Set("prettyPrint", "false")
20825 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
20826 urls += "?" + c.urlParams_.Encode()
20827 req, err := http.NewRequest("GET", urls, body)
20828 if err != nil {
20829 return nil, err
20830 }
20831 req.Header = reqHeaders
20832 googleapi.Expand(req.URL, map[string]string{
20833 "name": c.name,
20834 })
20835 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20836 }
20837
20838
20839
20840
20841
20842
20843
20844 func (c *ProjectsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
20845 gensupport.SetOptions(c.urlParams_, opts...)
20846 res, err := c.doRequest("json")
20847 if res != nil && res.StatusCode == http.StatusNotModified {
20848 if res.Body != nil {
20849 res.Body.Close()
20850 }
20851 return nil, gensupport.WrapError(&googleapi.Error{
20852 Code: res.StatusCode,
20853 Header: res.Header,
20854 })
20855 }
20856 if err != nil {
20857 return nil, err
20858 }
20859 defer googleapi.CloseBody(res)
20860 if err := googleapi.CheckResponse(res); err != nil {
20861 return nil, gensupport.WrapError(err)
20862 }
20863 ret := &GoogleCloudDialogflowV2beta1EntityType{
20864 ServerResponse: googleapi.ServerResponse{
20865 Header: res.Header,
20866 HTTPStatusCode: res.StatusCode,
20867 },
20868 }
20869 target := &ret
20870 if err := gensupport.DecodeResponse(target, res); err != nil {
20871 return nil, err
20872 }
20873 return ret, nil
20874 }
20875
20876 type ProjectsAgentEntityTypesListCall struct {
20877 s *Service
20878 parent string
20879 urlParams_ gensupport.URLParams
20880 ifNoneMatch_ string
20881 ctx_ context.Context
20882 header_ http.Header
20883 }
20884
20885
20886
20887
20888
20889 func (r *ProjectsAgentEntityTypesService) List(parent string) *ProjectsAgentEntityTypesListCall {
20890 c := &ProjectsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20891 c.parent = parent
20892 return c
20893 }
20894
20895
20896
20897
20898
20899
20900 func (c *ProjectsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesListCall {
20901 c.urlParams_.Set("languageCode", languageCode)
20902 return c
20903 }
20904
20905
20906
20907 func (c *ProjectsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEntityTypesListCall {
20908 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20909 return c
20910 }
20911
20912
20913
20914 func (c *ProjectsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEntityTypesListCall {
20915 c.urlParams_.Set("pageToken", pageToken)
20916 return c
20917 }
20918
20919
20920
20921
20922 func (c *ProjectsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesListCall {
20923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20924 return c
20925 }
20926
20927
20928
20929
20930 func (c *ProjectsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEntityTypesListCall {
20931 c.ifNoneMatch_ = entityTag
20932 return c
20933 }
20934
20935
20936 func (c *ProjectsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEntityTypesListCall {
20937 c.ctx_ = ctx
20938 return c
20939 }
20940
20941
20942
20943 func (c *ProjectsAgentEntityTypesListCall) Header() http.Header {
20944 if c.header_ == nil {
20945 c.header_ = make(http.Header)
20946 }
20947 return c.header_
20948 }
20949
20950 func (c *ProjectsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
20951 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20952 if c.ifNoneMatch_ != "" {
20953 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20954 }
20955 var body io.Reader = nil
20956 c.urlParams_.Set("alt", alt)
20957 c.urlParams_.Set("prettyPrint", "false")
20958 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
20959 urls += "?" + c.urlParams_.Encode()
20960 req, err := http.NewRequest("GET", urls, body)
20961 if err != nil {
20962 return nil, err
20963 }
20964 req.Header = reqHeaders
20965 googleapi.Expand(req.URL, map[string]string{
20966 "parent": c.parent,
20967 })
20968 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20969 }
20970
20971
20972
20973
20974
20975
20976
20977 func (c *ProjectsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
20978 gensupport.SetOptions(c.urlParams_, opts...)
20979 res, err := c.doRequest("json")
20980 if res != nil && res.StatusCode == http.StatusNotModified {
20981 if res.Body != nil {
20982 res.Body.Close()
20983 }
20984 return nil, gensupport.WrapError(&googleapi.Error{
20985 Code: res.StatusCode,
20986 Header: res.Header,
20987 })
20988 }
20989 if err != nil {
20990 return nil, err
20991 }
20992 defer googleapi.CloseBody(res)
20993 if err := googleapi.CheckResponse(res); err != nil {
20994 return nil, gensupport.WrapError(err)
20995 }
20996 ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
20997 ServerResponse: googleapi.ServerResponse{
20998 Header: res.Header,
20999 HTTPStatusCode: res.StatusCode,
21000 },
21001 }
21002 target := &ret
21003 if err := gensupport.DecodeResponse(target, res); err != nil {
21004 return nil, err
21005 }
21006 return ret, nil
21007 }
21008
21009
21010
21011
21012 func (c *ProjectsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
21013 c.ctx_ = ctx
21014 defer c.PageToken(c.urlParams_.Get("pageToken"))
21015 for {
21016 x, err := c.Do()
21017 if err != nil {
21018 return err
21019 }
21020 if err := f(x); err != nil {
21021 return err
21022 }
21023 if x.NextPageToken == "" {
21024 return nil
21025 }
21026 c.PageToken(x.NextPageToken)
21027 }
21028 }
21029
21030 type ProjectsAgentEntityTypesPatchCall struct {
21031 s *Service
21032 nameid string
21033 googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
21034 urlParams_ gensupport.URLParams
21035 ctx_ context.Context
21036 header_ http.Header
21037 }
21038
21039
21040
21041
21042
21043
21044
21045
21046
21047 func (r *ProjectsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsAgentEntityTypesPatchCall {
21048 c := &ProjectsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21049 c.nameid = nameid
21050 c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
21051 return c
21052 }
21053
21054
21055
21056
21057
21058
21059 func (c *ProjectsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsAgentEntityTypesPatchCall {
21060 c.urlParams_.Set("languageCode", languageCode)
21061 return c
21062 }
21063
21064
21065
21066 func (c *ProjectsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEntityTypesPatchCall {
21067 c.urlParams_.Set("updateMask", updateMask)
21068 return c
21069 }
21070
21071
21072
21073
21074 func (c *ProjectsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesPatchCall {
21075 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21076 return c
21077 }
21078
21079
21080 func (c *ProjectsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEntityTypesPatchCall {
21081 c.ctx_ = ctx
21082 return c
21083 }
21084
21085
21086
21087 func (c *ProjectsAgentEntityTypesPatchCall) Header() http.Header {
21088 if c.header_ == nil {
21089 c.header_ = make(http.Header)
21090 }
21091 return c.header_
21092 }
21093
21094 func (c *ProjectsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
21095 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21096 var body io.Reader = nil
21097 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
21098 if err != nil {
21099 return nil, err
21100 }
21101 c.urlParams_.Set("alt", alt)
21102 c.urlParams_.Set("prettyPrint", "false")
21103 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21104 urls += "?" + c.urlParams_.Encode()
21105 req, err := http.NewRequest("PATCH", urls, body)
21106 if err != nil {
21107 return nil, err
21108 }
21109 req.Header = reqHeaders
21110 googleapi.Expand(req.URL, map[string]string{
21111 "name": c.nameid,
21112 })
21113 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21114 }
21115
21116
21117
21118
21119
21120
21121
21122 func (c *ProjectsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
21123 gensupport.SetOptions(c.urlParams_, opts...)
21124 res, err := c.doRequest("json")
21125 if res != nil && res.StatusCode == http.StatusNotModified {
21126 if res.Body != nil {
21127 res.Body.Close()
21128 }
21129 return nil, gensupport.WrapError(&googleapi.Error{
21130 Code: res.StatusCode,
21131 Header: res.Header,
21132 })
21133 }
21134 if err != nil {
21135 return nil, err
21136 }
21137 defer googleapi.CloseBody(res)
21138 if err := googleapi.CheckResponse(res); err != nil {
21139 return nil, gensupport.WrapError(err)
21140 }
21141 ret := &GoogleCloudDialogflowV2beta1EntityType{
21142 ServerResponse: googleapi.ServerResponse{
21143 Header: res.Header,
21144 HTTPStatusCode: res.StatusCode,
21145 },
21146 }
21147 target := &ret
21148 if err := gensupport.DecodeResponse(target, res); err != nil {
21149 return nil, err
21150 }
21151 return ret, nil
21152 }
21153
21154 type ProjectsAgentEntityTypesEntitiesBatchCreateCall struct {
21155 s *Service
21156 parent string
21157 googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
21158 urlParams_ gensupport.URLParams
21159 ctx_ context.Context
21160 header_ http.Header
21161 }
21162
21163
21164
21165
21166
21167
21168
21169
21170
21171
21172
21173
21174
21175
21176
21177
21178 func (r *ProjectsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21179 c := &ProjectsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21180 c.parent = parent
21181 c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
21182 return c
21183 }
21184
21185
21186
21187
21188 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21189 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21190 return c
21191 }
21192
21193
21194 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchCreateCall {
21195 c.ctx_ = ctx
21196 return c
21197 }
21198
21199
21200
21201 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
21202 if c.header_ == nil {
21203 c.header_ = make(http.Header)
21204 }
21205 return c.header_
21206 }
21207
21208 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
21209 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21210 var body io.Reader = nil
21211 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
21212 if err != nil {
21213 return nil, err
21214 }
21215 c.urlParams_.Set("alt", alt)
21216 c.urlParams_.Set("prettyPrint", "false")
21217 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
21218 urls += "?" + c.urlParams_.Encode()
21219 req, err := http.NewRequest("POST", urls, body)
21220 if err != nil {
21221 return nil, err
21222 }
21223 req.Header = reqHeaders
21224 googleapi.Expand(req.URL, map[string]string{
21225 "parent": c.parent,
21226 })
21227 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21228 }
21229
21230
21231
21232
21233
21234
21235
21236 func (c *ProjectsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21237 gensupport.SetOptions(c.urlParams_, opts...)
21238 res, err := c.doRequest("json")
21239 if res != nil && res.StatusCode == http.StatusNotModified {
21240 if res.Body != nil {
21241 res.Body.Close()
21242 }
21243 return nil, gensupport.WrapError(&googleapi.Error{
21244 Code: res.StatusCode,
21245 Header: res.Header,
21246 })
21247 }
21248 if err != nil {
21249 return nil, err
21250 }
21251 defer googleapi.CloseBody(res)
21252 if err := googleapi.CheckResponse(res); err != nil {
21253 return nil, gensupport.WrapError(err)
21254 }
21255 ret := &GoogleLongrunningOperation{
21256 ServerResponse: googleapi.ServerResponse{
21257 Header: res.Header,
21258 HTTPStatusCode: res.StatusCode,
21259 },
21260 }
21261 target := &ret
21262 if err := gensupport.DecodeResponse(target, res); err != nil {
21263 return nil, err
21264 }
21265 return ret, nil
21266 }
21267
21268 type ProjectsAgentEntityTypesEntitiesBatchDeleteCall struct {
21269 s *Service
21270 parent string
21271 googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
21272 urlParams_ gensupport.URLParams
21273 ctx_ context.Context
21274 header_ http.Header
21275 }
21276
21277
21278
21279
21280
21281
21282
21283
21284
21285
21286
21287
21288
21289
21290
21291
21292 func (r *ProjectsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21293 c := &ProjectsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21294 c.parent = parent
21295 c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
21296 return c
21297 }
21298
21299
21300
21301
21302 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21303 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21304 return c
21305 }
21306
21307
21308 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchDeleteCall {
21309 c.ctx_ = ctx
21310 return c
21311 }
21312
21313
21314
21315 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
21316 if c.header_ == nil {
21317 c.header_ = make(http.Header)
21318 }
21319 return c.header_
21320 }
21321
21322 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
21323 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21324 var body io.Reader = nil
21325 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
21326 if err != nil {
21327 return nil, err
21328 }
21329 c.urlParams_.Set("alt", alt)
21330 c.urlParams_.Set("prettyPrint", "false")
21331 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
21332 urls += "?" + c.urlParams_.Encode()
21333 req, err := http.NewRequest("POST", urls, body)
21334 if err != nil {
21335 return nil, err
21336 }
21337 req.Header = reqHeaders
21338 googleapi.Expand(req.URL, map[string]string{
21339 "parent": c.parent,
21340 })
21341 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21342 }
21343
21344
21345
21346
21347
21348
21349
21350 func (c *ProjectsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21351 gensupport.SetOptions(c.urlParams_, opts...)
21352 res, err := c.doRequest("json")
21353 if res != nil && res.StatusCode == http.StatusNotModified {
21354 if res.Body != nil {
21355 res.Body.Close()
21356 }
21357 return nil, gensupport.WrapError(&googleapi.Error{
21358 Code: res.StatusCode,
21359 Header: res.Header,
21360 })
21361 }
21362 if err != nil {
21363 return nil, err
21364 }
21365 defer googleapi.CloseBody(res)
21366 if err := googleapi.CheckResponse(res); err != nil {
21367 return nil, gensupport.WrapError(err)
21368 }
21369 ret := &GoogleLongrunningOperation{
21370 ServerResponse: googleapi.ServerResponse{
21371 Header: res.Header,
21372 HTTPStatusCode: res.StatusCode,
21373 },
21374 }
21375 target := &ret
21376 if err := gensupport.DecodeResponse(target, res); err != nil {
21377 return nil, err
21378 }
21379 return ret, nil
21380 }
21381
21382 type ProjectsAgentEntityTypesEntitiesBatchUpdateCall struct {
21383 s *Service
21384 parent string
21385 googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
21386 urlParams_ gensupport.URLParams
21387 ctx_ context.Context
21388 header_ http.Header
21389 }
21390
21391
21392
21393
21394
21395
21396
21397
21398
21399
21400
21401
21402
21403
21404
21405
21406
21407 func (r *ProjectsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21408 c := &ProjectsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21409 c.parent = parent
21410 c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
21411 return c
21412 }
21413
21414
21415
21416
21417 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21418 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21419 return c
21420 }
21421
21422
21423 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentEntityTypesEntitiesBatchUpdateCall {
21424 c.ctx_ = ctx
21425 return c
21426 }
21427
21428
21429
21430 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
21431 if c.header_ == nil {
21432 c.header_ = make(http.Header)
21433 }
21434 return c.header_
21435 }
21436
21437 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
21438 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21439 var body io.Reader = nil
21440 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
21441 if err != nil {
21442 return nil, err
21443 }
21444 c.urlParams_.Set("alt", alt)
21445 c.urlParams_.Set("prettyPrint", "false")
21446 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
21447 urls += "?" + c.urlParams_.Encode()
21448 req, err := http.NewRequest("POST", urls, body)
21449 if err != nil {
21450 return nil, err
21451 }
21452 req.Header = reqHeaders
21453 googleapi.Expand(req.URL, map[string]string{
21454 "parent": c.parent,
21455 })
21456 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21457 }
21458
21459
21460
21461
21462
21463
21464
21465 func (c *ProjectsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21466 gensupport.SetOptions(c.urlParams_, opts...)
21467 res, err := c.doRequest("json")
21468 if res != nil && res.StatusCode == http.StatusNotModified {
21469 if res.Body != nil {
21470 res.Body.Close()
21471 }
21472 return nil, gensupport.WrapError(&googleapi.Error{
21473 Code: res.StatusCode,
21474 Header: res.Header,
21475 })
21476 }
21477 if err != nil {
21478 return nil, err
21479 }
21480 defer googleapi.CloseBody(res)
21481 if err := googleapi.CheckResponse(res); err != nil {
21482 return nil, gensupport.WrapError(err)
21483 }
21484 ret := &GoogleLongrunningOperation{
21485 ServerResponse: googleapi.ServerResponse{
21486 Header: res.Header,
21487 HTTPStatusCode: res.StatusCode,
21488 },
21489 }
21490 target := &ret
21491 if err := gensupport.DecodeResponse(target, res); err != nil {
21492 return nil, err
21493 }
21494 return ret, nil
21495 }
21496
21497 type ProjectsAgentEnvironmentsCreateCall struct {
21498 s *Service
21499 parent string
21500 googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
21501 urlParams_ gensupport.URLParams
21502 ctx_ context.Context
21503 header_ http.Header
21504 }
21505
21506
21507
21508
21509
21510 func (r *ProjectsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsCreateCall {
21511 c := &ProjectsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21512 c.parent = parent
21513 c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
21514 return c
21515 }
21516
21517
21518
21519 func (c *ProjectsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsAgentEnvironmentsCreateCall {
21520 c.urlParams_.Set("environmentId", environmentId)
21521 return c
21522 }
21523
21524
21525
21526
21527 func (c *ProjectsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsCreateCall {
21528 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21529 return c
21530 }
21531
21532
21533 func (c *ProjectsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsCreateCall {
21534 c.ctx_ = ctx
21535 return c
21536 }
21537
21538
21539
21540 func (c *ProjectsAgentEnvironmentsCreateCall) Header() http.Header {
21541 if c.header_ == nil {
21542 c.header_ = make(http.Header)
21543 }
21544 return c.header_
21545 }
21546
21547 func (c *ProjectsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21548 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21549 var body io.Reader = nil
21550 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
21551 if err != nil {
21552 return nil, err
21553 }
21554 c.urlParams_.Set("alt", alt)
21555 c.urlParams_.Set("prettyPrint", "false")
21556 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
21557 urls += "?" + c.urlParams_.Encode()
21558 req, err := http.NewRequest("POST", urls, body)
21559 if err != nil {
21560 return nil, err
21561 }
21562 req.Header = reqHeaders
21563 googleapi.Expand(req.URL, map[string]string{
21564 "parent": c.parent,
21565 })
21566 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21567 }
21568
21569
21570
21571
21572
21573
21574
21575 func (c *ProjectsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
21576 gensupport.SetOptions(c.urlParams_, opts...)
21577 res, err := c.doRequest("json")
21578 if res != nil && res.StatusCode == http.StatusNotModified {
21579 if res.Body != nil {
21580 res.Body.Close()
21581 }
21582 return nil, gensupport.WrapError(&googleapi.Error{
21583 Code: res.StatusCode,
21584 Header: res.Header,
21585 })
21586 }
21587 if err != nil {
21588 return nil, err
21589 }
21590 defer googleapi.CloseBody(res)
21591 if err := googleapi.CheckResponse(res); err != nil {
21592 return nil, gensupport.WrapError(err)
21593 }
21594 ret := &GoogleCloudDialogflowV2beta1Environment{
21595 ServerResponse: googleapi.ServerResponse{
21596 Header: res.Header,
21597 HTTPStatusCode: res.StatusCode,
21598 },
21599 }
21600 target := &ret
21601 if err := gensupport.DecodeResponse(target, res); err != nil {
21602 return nil, err
21603 }
21604 return ret, nil
21605 }
21606
21607 type ProjectsAgentEnvironmentsDeleteCall struct {
21608 s *Service
21609 name string
21610 urlParams_ gensupport.URLParams
21611 ctx_ context.Context
21612 header_ http.Header
21613 }
21614
21615
21616
21617
21618
21619
21620 func (r *ProjectsAgentEnvironmentsService) Delete(name string) *ProjectsAgentEnvironmentsDeleteCall {
21621 c := &ProjectsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21622 c.name = name
21623 return c
21624 }
21625
21626
21627
21628
21629 func (c *ProjectsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsDeleteCall {
21630 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21631 return c
21632 }
21633
21634
21635 func (c *ProjectsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsDeleteCall {
21636 c.ctx_ = ctx
21637 return c
21638 }
21639
21640
21641
21642 func (c *ProjectsAgentEnvironmentsDeleteCall) Header() http.Header {
21643 if c.header_ == nil {
21644 c.header_ = make(http.Header)
21645 }
21646 return c.header_
21647 }
21648
21649 func (c *ProjectsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
21650 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21651 var body io.Reader = nil
21652 c.urlParams_.Set("alt", alt)
21653 c.urlParams_.Set("prettyPrint", "false")
21654 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21655 urls += "?" + c.urlParams_.Encode()
21656 req, err := http.NewRequest("DELETE", urls, body)
21657 if err != nil {
21658 return nil, err
21659 }
21660 req.Header = reqHeaders
21661 googleapi.Expand(req.URL, map[string]string{
21662 "name": c.name,
21663 })
21664 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21665 }
21666
21667
21668
21669
21670
21671
21672
21673 func (c *ProjectsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21674 gensupport.SetOptions(c.urlParams_, opts...)
21675 res, err := c.doRequest("json")
21676 if res != nil && res.StatusCode == http.StatusNotModified {
21677 if res.Body != nil {
21678 res.Body.Close()
21679 }
21680 return nil, gensupport.WrapError(&googleapi.Error{
21681 Code: res.StatusCode,
21682 Header: res.Header,
21683 })
21684 }
21685 if err != nil {
21686 return nil, err
21687 }
21688 defer googleapi.CloseBody(res)
21689 if err := googleapi.CheckResponse(res); err != nil {
21690 return nil, gensupport.WrapError(err)
21691 }
21692 ret := &GoogleProtobufEmpty{
21693 ServerResponse: googleapi.ServerResponse{
21694 Header: res.Header,
21695 HTTPStatusCode: res.StatusCode,
21696 },
21697 }
21698 target := &ret
21699 if err := gensupport.DecodeResponse(target, res); err != nil {
21700 return nil, err
21701 }
21702 return ret, nil
21703 }
21704
21705 type ProjectsAgentEnvironmentsGetCall struct {
21706 s *Service
21707 name string
21708 urlParams_ gensupport.URLParams
21709 ifNoneMatch_ string
21710 ctx_ context.Context
21711 header_ http.Header
21712 }
21713
21714
21715
21716
21717
21718
21719 func (r *ProjectsAgentEnvironmentsService) Get(name string) *ProjectsAgentEnvironmentsGetCall {
21720 c := &ProjectsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21721 c.name = name
21722 return c
21723 }
21724
21725
21726
21727
21728 func (c *ProjectsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetCall {
21729 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21730 return c
21731 }
21732
21733
21734
21735
21736 func (c *ProjectsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetCall {
21737 c.ifNoneMatch_ = entityTag
21738 return c
21739 }
21740
21741
21742 func (c *ProjectsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetCall {
21743 c.ctx_ = ctx
21744 return c
21745 }
21746
21747
21748
21749 func (c *ProjectsAgentEnvironmentsGetCall) Header() http.Header {
21750 if c.header_ == nil {
21751 c.header_ = make(http.Header)
21752 }
21753 return c.header_
21754 }
21755
21756 func (c *ProjectsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
21757 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21758 if c.ifNoneMatch_ != "" {
21759 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21760 }
21761 var body io.Reader = nil
21762 c.urlParams_.Set("alt", alt)
21763 c.urlParams_.Set("prettyPrint", "false")
21764 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
21765 urls += "?" + c.urlParams_.Encode()
21766 req, err := http.NewRequest("GET", urls, body)
21767 if err != nil {
21768 return nil, err
21769 }
21770 req.Header = reqHeaders
21771 googleapi.Expand(req.URL, map[string]string{
21772 "name": c.name,
21773 })
21774 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21775 }
21776
21777
21778
21779
21780
21781
21782
21783 func (c *ProjectsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
21784 gensupport.SetOptions(c.urlParams_, opts...)
21785 res, err := c.doRequest("json")
21786 if res != nil && res.StatusCode == http.StatusNotModified {
21787 if res.Body != nil {
21788 res.Body.Close()
21789 }
21790 return nil, gensupport.WrapError(&googleapi.Error{
21791 Code: res.StatusCode,
21792 Header: res.Header,
21793 })
21794 }
21795 if err != nil {
21796 return nil, err
21797 }
21798 defer googleapi.CloseBody(res)
21799 if err := googleapi.CheckResponse(res); err != nil {
21800 return nil, gensupport.WrapError(err)
21801 }
21802 ret := &GoogleCloudDialogflowV2beta1Environment{
21803 ServerResponse: googleapi.ServerResponse{
21804 Header: res.Header,
21805 HTTPStatusCode: res.StatusCode,
21806 },
21807 }
21808 target := &ret
21809 if err := gensupport.DecodeResponse(target, res); err != nil {
21810 return nil, err
21811 }
21812 return ret, nil
21813 }
21814
21815 type ProjectsAgentEnvironmentsGetHistoryCall struct {
21816 s *Service
21817 parent string
21818 urlParams_ gensupport.URLParams
21819 ifNoneMatch_ string
21820 ctx_ context.Context
21821 header_ http.Header
21822 }
21823
21824
21825
21826
21827
21828
21829 func (r *ProjectsAgentEnvironmentsService) GetHistory(parent string) *ProjectsAgentEnvironmentsGetHistoryCall {
21830 c := &ProjectsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21831 c.parent = parent
21832 return c
21833 }
21834
21835
21836
21837 func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsGetHistoryCall {
21838 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21839 return c
21840 }
21841
21842
21843
21844 func (c *ProjectsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsGetHistoryCall {
21845 c.urlParams_.Set("pageToken", pageToken)
21846 return c
21847 }
21848
21849
21850
21851
21852 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsGetHistoryCall {
21853 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21854 return c
21855 }
21856
21857
21858
21859
21860 func (c *ProjectsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsGetHistoryCall {
21861 c.ifNoneMatch_ = entityTag
21862 return c
21863 }
21864
21865
21866 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsGetHistoryCall {
21867 c.ctx_ = ctx
21868 return c
21869 }
21870
21871
21872
21873 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Header() http.Header {
21874 if c.header_ == nil {
21875 c.header_ = make(http.Header)
21876 }
21877 return c.header_
21878 }
21879
21880 func (c *ProjectsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
21881 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21882 if c.ifNoneMatch_ != "" {
21883 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21884 }
21885 var body io.Reader = nil
21886 c.urlParams_.Set("alt", alt)
21887 c.urlParams_.Set("prettyPrint", "false")
21888 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
21889 urls += "?" + c.urlParams_.Encode()
21890 req, err := http.NewRequest("GET", urls, body)
21891 if err != nil {
21892 return nil, err
21893 }
21894 req.Header = reqHeaders
21895 googleapi.Expand(req.URL, map[string]string{
21896 "parent": c.parent,
21897 })
21898 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21899 }
21900
21901
21902
21903
21904
21905
21906
21907 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
21908 gensupport.SetOptions(c.urlParams_, opts...)
21909 res, err := c.doRequest("json")
21910 if res != nil && res.StatusCode == http.StatusNotModified {
21911 if res.Body != nil {
21912 res.Body.Close()
21913 }
21914 return nil, gensupport.WrapError(&googleapi.Error{
21915 Code: res.StatusCode,
21916 Header: res.Header,
21917 })
21918 }
21919 if err != nil {
21920 return nil, err
21921 }
21922 defer googleapi.CloseBody(res)
21923 if err := googleapi.CheckResponse(res); err != nil {
21924 return nil, gensupport.WrapError(err)
21925 }
21926 ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
21927 ServerResponse: googleapi.ServerResponse{
21928 Header: res.Header,
21929 HTTPStatusCode: res.StatusCode,
21930 },
21931 }
21932 target := &ret
21933 if err := gensupport.DecodeResponse(target, res); err != nil {
21934 return nil, err
21935 }
21936 return ret, nil
21937 }
21938
21939
21940
21941
21942 func (c *ProjectsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
21943 c.ctx_ = ctx
21944 defer c.PageToken(c.urlParams_.Get("pageToken"))
21945 for {
21946 x, err := c.Do()
21947 if err != nil {
21948 return err
21949 }
21950 if err := f(x); err != nil {
21951 return err
21952 }
21953 if x.NextPageToken == "" {
21954 return nil
21955 }
21956 c.PageToken(x.NextPageToken)
21957 }
21958 }
21959
21960 type ProjectsAgentEnvironmentsListCall struct {
21961 s *Service
21962 parent string
21963 urlParams_ gensupport.URLParams
21964 ifNoneMatch_ string
21965 ctx_ context.Context
21966 header_ http.Header
21967 }
21968
21969
21970
21971
21972
21973 func (r *ProjectsAgentEnvironmentsService) List(parent string) *ProjectsAgentEnvironmentsListCall {
21974 c := &ProjectsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21975 c.parent = parent
21976 return c
21977 }
21978
21979
21980
21981 func (c *ProjectsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsListCall {
21982 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21983 return c
21984 }
21985
21986
21987
21988 func (c *ProjectsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsListCall {
21989 c.urlParams_.Set("pageToken", pageToken)
21990 return c
21991 }
21992
21993
21994
21995
21996 func (c *ProjectsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsListCall {
21997 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21998 return c
21999 }
22000
22001
22002
22003
22004 func (c *ProjectsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsListCall {
22005 c.ifNoneMatch_ = entityTag
22006 return c
22007 }
22008
22009
22010 func (c *ProjectsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsListCall {
22011 c.ctx_ = ctx
22012 return c
22013 }
22014
22015
22016
22017 func (c *ProjectsAgentEnvironmentsListCall) Header() http.Header {
22018 if c.header_ == nil {
22019 c.header_ = make(http.Header)
22020 }
22021 return c.header_
22022 }
22023
22024 func (c *ProjectsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
22025 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22026 if c.ifNoneMatch_ != "" {
22027 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22028 }
22029 var body io.Reader = nil
22030 c.urlParams_.Set("alt", alt)
22031 c.urlParams_.Set("prettyPrint", "false")
22032 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
22033 urls += "?" + c.urlParams_.Encode()
22034 req, err := http.NewRequest("GET", urls, body)
22035 if err != nil {
22036 return nil, err
22037 }
22038 req.Header = reqHeaders
22039 googleapi.Expand(req.URL, map[string]string{
22040 "parent": c.parent,
22041 })
22042 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22043 }
22044
22045
22046
22047
22048
22049
22050
22051 func (c *ProjectsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
22052 gensupport.SetOptions(c.urlParams_, opts...)
22053 res, err := c.doRequest("json")
22054 if res != nil && res.StatusCode == http.StatusNotModified {
22055 if res.Body != nil {
22056 res.Body.Close()
22057 }
22058 return nil, gensupport.WrapError(&googleapi.Error{
22059 Code: res.StatusCode,
22060 Header: res.Header,
22061 })
22062 }
22063 if err != nil {
22064 return nil, err
22065 }
22066 defer googleapi.CloseBody(res)
22067 if err := googleapi.CheckResponse(res); err != nil {
22068 return nil, gensupport.WrapError(err)
22069 }
22070 ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
22071 ServerResponse: googleapi.ServerResponse{
22072 Header: res.Header,
22073 HTTPStatusCode: res.StatusCode,
22074 },
22075 }
22076 target := &ret
22077 if err := gensupport.DecodeResponse(target, res); err != nil {
22078 return nil, err
22079 }
22080 return ret, nil
22081 }
22082
22083
22084
22085
22086 func (c *ProjectsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
22087 c.ctx_ = ctx
22088 defer c.PageToken(c.urlParams_.Get("pageToken"))
22089 for {
22090 x, err := c.Do()
22091 if err != nil {
22092 return err
22093 }
22094 if err := f(x); err != nil {
22095 return err
22096 }
22097 if x.NextPageToken == "" {
22098 return nil
22099 }
22100 c.PageToken(x.NextPageToken)
22101 }
22102 }
22103
22104 type ProjectsAgentEnvironmentsPatchCall struct {
22105 s *Service
22106 nameid string
22107 googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
22108 urlParams_ gensupport.URLParams
22109 ctx_ context.Context
22110 header_ http.Header
22111 }
22112
22113
22114
22115
22116
22117
22118
22119
22120
22121
22122
22123
22124
22125
22126
22127 func (r *ProjectsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsAgentEnvironmentsPatchCall {
22128 c := &ProjectsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22129 c.nameid = nameid
22130 c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
22131 return c
22132 }
22133
22134
22135
22136
22137
22138
22139
22140 func (c *ProjectsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsAgentEnvironmentsPatchCall {
22141 c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
22142 return c
22143 }
22144
22145
22146
22147 func (c *ProjectsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsPatchCall {
22148 c.urlParams_.Set("updateMask", updateMask)
22149 return c
22150 }
22151
22152
22153
22154
22155 func (c *ProjectsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsPatchCall {
22156 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22157 return c
22158 }
22159
22160
22161 func (c *ProjectsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsPatchCall {
22162 c.ctx_ = ctx
22163 return c
22164 }
22165
22166
22167
22168 func (c *ProjectsAgentEnvironmentsPatchCall) Header() http.Header {
22169 if c.header_ == nil {
22170 c.header_ = make(http.Header)
22171 }
22172 return c.header_
22173 }
22174
22175 func (c *ProjectsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
22176 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22177 var body io.Reader = nil
22178 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
22179 if err != nil {
22180 return nil, err
22181 }
22182 c.urlParams_.Set("alt", alt)
22183 c.urlParams_.Set("prettyPrint", "false")
22184 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
22185 urls += "?" + c.urlParams_.Encode()
22186 req, err := http.NewRequest("PATCH", urls, body)
22187 if err != nil {
22188 return nil, err
22189 }
22190 req.Header = reqHeaders
22191 googleapi.Expand(req.URL, map[string]string{
22192 "name": c.nameid,
22193 })
22194 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22195 }
22196
22197
22198
22199
22200
22201
22202
22203 func (c *ProjectsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
22204 gensupport.SetOptions(c.urlParams_, opts...)
22205 res, err := c.doRequest("json")
22206 if res != nil && res.StatusCode == http.StatusNotModified {
22207 if res.Body != nil {
22208 res.Body.Close()
22209 }
22210 return nil, gensupport.WrapError(&googleapi.Error{
22211 Code: res.StatusCode,
22212 Header: res.Header,
22213 })
22214 }
22215 if err != nil {
22216 return nil, err
22217 }
22218 defer googleapi.CloseBody(res)
22219 if err := googleapi.CheckResponse(res); err != nil {
22220 return nil, gensupport.WrapError(err)
22221 }
22222 ret := &GoogleCloudDialogflowV2beta1Environment{
22223 ServerResponse: googleapi.ServerResponse{
22224 Header: res.Header,
22225 HTTPStatusCode: res.StatusCode,
22226 },
22227 }
22228 target := &ret
22229 if err := gensupport.DecodeResponse(target, res); err != nil {
22230 return nil, err
22231 }
22232 return ret, nil
22233 }
22234
22235 type ProjectsAgentEnvironmentsIntentsListCall struct {
22236 s *Service
22237 parent string
22238 urlParams_ gensupport.URLParams
22239 ifNoneMatch_ string
22240 ctx_ context.Context
22241 header_ http.Header
22242 }
22243
22244
22245
22246
22247
22248
22249
22250
22251 func (r *ProjectsAgentEnvironmentsIntentsService) List(parent string) *ProjectsAgentEnvironmentsIntentsListCall {
22252 c := &ProjectsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22253 c.parent = parent
22254 return c
22255 }
22256
22257
22258
22259
22260
22261
22262
22263
22264
22265
22266
22267 func (c *ProjectsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsAgentEnvironmentsIntentsListCall {
22268 c.urlParams_.Set("intentView", intentView)
22269 return c
22270 }
22271
22272
22273
22274
22275
22276
22277 func (c *ProjectsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentEnvironmentsIntentsListCall {
22278 c.urlParams_.Set("languageCode", languageCode)
22279 return c
22280 }
22281
22282
22283
22284 func (c *ProjectsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsIntentsListCall {
22285 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22286 return c
22287 }
22288
22289
22290
22291 func (c *ProjectsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsIntentsListCall {
22292 c.urlParams_.Set("pageToken", pageToken)
22293 return c
22294 }
22295
22296
22297
22298
22299 func (c *ProjectsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsIntentsListCall {
22300 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22301 return c
22302 }
22303
22304
22305
22306
22307 func (c *ProjectsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsIntentsListCall {
22308 c.ifNoneMatch_ = entityTag
22309 return c
22310 }
22311
22312
22313 func (c *ProjectsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsIntentsListCall {
22314 c.ctx_ = ctx
22315 return c
22316 }
22317
22318
22319
22320 func (c *ProjectsAgentEnvironmentsIntentsListCall) Header() http.Header {
22321 if c.header_ == nil {
22322 c.header_ = make(http.Header)
22323 }
22324 return c.header_
22325 }
22326
22327 func (c *ProjectsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
22328 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22329 if c.ifNoneMatch_ != "" {
22330 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22331 }
22332 var body io.Reader = nil
22333 c.urlParams_.Set("alt", alt)
22334 c.urlParams_.Set("prettyPrint", "false")
22335 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
22336 urls += "?" + c.urlParams_.Encode()
22337 req, err := http.NewRequest("GET", urls, body)
22338 if err != nil {
22339 return nil, err
22340 }
22341 req.Header = reqHeaders
22342 googleapi.Expand(req.URL, map[string]string{
22343 "parent": c.parent,
22344 })
22345 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22346 }
22347
22348
22349
22350
22351
22352
22353
22354 func (c *ProjectsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
22355 gensupport.SetOptions(c.urlParams_, opts...)
22356 res, err := c.doRequest("json")
22357 if res != nil && res.StatusCode == http.StatusNotModified {
22358 if res.Body != nil {
22359 res.Body.Close()
22360 }
22361 return nil, gensupport.WrapError(&googleapi.Error{
22362 Code: res.StatusCode,
22363 Header: res.Header,
22364 })
22365 }
22366 if err != nil {
22367 return nil, err
22368 }
22369 defer googleapi.CloseBody(res)
22370 if err := googleapi.CheckResponse(res); err != nil {
22371 return nil, gensupport.WrapError(err)
22372 }
22373 ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
22374 ServerResponse: googleapi.ServerResponse{
22375 Header: res.Header,
22376 HTTPStatusCode: res.StatusCode,
22377 },
22378 }
22379 target := &ret
22380 if err := gensupport.DecodeResponse(target, res); err != nil {
22381 return nil, err
22382 }
22383 return ret, nil
22384 }
22385
22386
22387
22388
22389 func (c *ProjectsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
22390 c.ctx_ = ctx
22391 defer c.PageToken(c.urlParams_.Get("pageToken"))
22392 for {
22393 x, err := c.Do()
22394 if err != nil {
22395 return err
22396 }
22397 if err := f(x); err != nil {
22398 return err
22399 }
22400 if x.NextPageToken == "" {
22401 return nil
22402 }
22403 c.PageToken(x.NextPageToken)
22404 }
22405 }
22406
22407 type ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
22408 s *Service
22409 parent string
22410 urlParams_ gensupport.URLParams
22411 ctx_ context.Context
22412 header_ http.Header
22413 }
22414
22415
22416
22417
22418
22419
22420
22421
22422
22423
22424
22425 func (r *ProjectsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22426 c := &ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22427 c.parent = parent
22428 return c
22429 }
22430
22431
22432
22433
22434 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22435 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22436 return c
22437 }
22438
22439
22440 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall {
22441 c.ctx_ = ctx
22442 return c
22443 }
22444
22445
22446
22447 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
22448 if c.header_ == nil {
22449 c.header_ = make(http.Header)
22450 }
22451 return c.header_
22452 }
22453
22454 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
22455 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22456 var body io.Reader = nil
22457 c.urlParams_.Set("alt", alt)
22458 c.urlParams_.Set("prettyPrint", "false")
22459 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
22460 urls += "?" + c.urlParams_.Encode()
22461 req, err := http.NewRequest("DELETE", urls, body)
22462 if err != nil {
22463 return nil, err
22464 }
22465 req.Header = reqHeaders
22466 googleapi.Expand(req.URL, map[string]string{
22467 "parent": c.parent,
22468 })
22469 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22470 }
22471
22472
22473
22474
22475
22476
22477
22478 func (c *ProjectsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22479 gensupport.SetOptions(c.urlParams_, opts...)
22480 res, err := c.doRequest("json")
22481 if res != nil && res.StatusCode == http.StatusNotModified {
22482 if res.Body != nil {
22483 res.Body.Close()
22484 }
22485 return nil, gensupport.WrapError(&googleapi.Error{
22486 Code: res.StatusCode,
22487 Header: res.Header,
22488 })
22489 }
22490 if err != nil {
22491 return nil, err
22492 }
22493 defer googleapi.CloseBody(res)
22494 if err := googleapi.CheckResponse(res); err != nil {
22495 return nil, gensupport.WrapError(err)
22496 }
22497 ret := &GoogleProtobufEmpty{
22498 ServerResponse: googleapi.ServerResponse{
22499 Header: res.Header,
22500 HTTPStatusCode: res.StatusCode,
22501 },
22502 }
22503 target := &ret
22504 if err := gensupport.DecodeResponse(target, res); err != nil {
22505 return nil, err
22506 }
22507 return ret, nil
22508 }
22509
22510 type ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
22511 s *Service
22512 sessionid string
22513 googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
22514 urlParams_ gensupport.URLParams
22515 ctx_ context.Context
22516 header_ http.Header
22517 }
22518
22519
22520
22521
22522
22523
22524
22525
22526
22527
22528
22529
22530
22531
22532
22533
22534
22535
22536
22537
22538
22539
22540
22541
22542
22543
22544
22545 func (r *ProjectsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22546 c := &ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22547 c.sessionid = sessionid
22548 c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
22549 return c
22550 }
22551
22552
22553
22554
22555 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22556 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22557 return c
22558 }
22559
22560
22561 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall {
22562 c.ctx_ = ctx
22563 return c
22564 }
22565
22566
22567
22568 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
22569 if c.header_ == nil {
22570 c.header_ = make(http.Header)
22571 }
22572 return c.header_
22573 }
22574
22575 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
22576 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22577 var body io.Reader = nil
22578 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
22579 if err != nil {
22580 return nil, err
22581 }
22582 c.urlParams_.Set("alt", alt)
22583 c.urlParams_.Set("prettyPrint", "false")
22584 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
22585 urls += "?" + c.urlParams_.Encode()
22586 req, err := http.NewRequest("POST", urls, body)
22587 if err != nil {
22588 return nil, err
22589 }
22590 req.Header = reqHeaders
22591 googleapi.Expand(req.URL, map[string]string{
22592 "session": c.sessionid,
22593 })
22594 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22595 }
22596
22597
22598
22599
22600
22601
22602
22603 func (c *ProjectsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
22604 gensupport.SetOptions(c.urlParams_, opts...)
22605 res, err := c.doRequest("json")
22606 if res != nil && res.StatusCode == http.StatusNotModified {
22607 if res.Body != nil {
22608 res.Body.Close()
22609 }
22610 return nil, gensupport.WrapError(&googleapi.Error{
22611 Code: res.StatusCode,
22612 Header: res.Header,
22613 })
22614 }
22615 if err != nil {
22616 return nil, err
22617 }
22618 defer googleapi.CloseBody(res)
22619 if err := googleapi.CheckResponse(res); err != nil {
22620 return nil, gensupport.WrapError(err)
22621 }
22622 ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
22623 ServerResponse: googleapi.ServerResponse{
22624 Header: res.Header,
22625 HTTPStatusCode: res.StatusCode,
22626 },
22627 }
22628 target := &ret
22629 if err := gensupport.DecodeResponse(target, res); err != nil {
22630 return nil, err
22631 }
22632 return ret, nil
22633 }
22634
22635 type ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
22636 s *Service
22637 parent string
22638 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
22639 urlParams_ gensupport.URLParams
22640 ctx_ context.Context
22641 header_ http.Header
22642 }
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
22655 c := &ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22656 c.parent = parent
22657 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
22658 return c
22659 }
22660
22661
22662
22663
22664 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
22665 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22666 return c
22667 }
22668
22669
22670 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall {
22671 c.ctx_ = ctx
22672 return c
22673 }
22674
22675
22676
22677 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
22678 if c.header_ == nil {
22679 c.header_ = make(http.Header)
22680 }
22681 return c.header_
22682 }
22683
22684 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
22685 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22686 var body io.Reader = nil
22687 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
22688 if err != nil {
22689 return nil, err
22690 }
22691 c.urlParams_.Set("alt", alt)
22692 c.urlParams_.Set("prettyPrint", "false")
22693 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
22694 urls += "?" + c.urlParams_.Encode()
22695 req, err := http.NewRequest("POST", urls, body)
22696 if err != nil {
22697 return nil, err
22698 }
22699 req.Header = reqHeaders
22700 googleapi.Expand(req.URL, map[string]string{
22701 "parent": c.parent,
22702 })
22703 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22704 }
22705
22706
22707
22708
22709
22710
22711
22712 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
22713 gensupport.SetOptions(c.urlParams_, opts...)
22714 res, err := c.doRequest("json")
22715 if res != nil && res.StatusCode == http.StatusNotModified {
22716 if res.Body != nil {
22717 res.Body.Close()
22718 }
22719 return nil, gensupport.WrapError(&googleapi.Error{
22720 Code: res.StatusCode,
22721 Header: res.Header,
22722 })
22723 }
22724 if err != nil {
22725 return nil, err
22726 }
22727 defer googleapi.CloseBody(res)
22728 if err := googleapi.CheckResponse(res); err != nil {
22729 return nil, gensupport.WrapError(err)
22730 }
22731 ret := &GoogleCloudDialogflowV2beta1Context{
22732 ServerResponse: googleapi.ServerResponse{
22733 Header: res.Header,
22734 HTTPStatusCode: res.StatusCode,
22735 },
22736 }
22737 target := &ret
22738 if err := gensupport.DecodeResponse(target, res); err != nil {
22739 return nil, err
22740 }
22741 return ret, nil
22742 }
22743
22744 type ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
22745 s *Service
22746 name string
22747 urlParams_ gensupport.URLParams
22748 ctx_ context.Context
22749 header_ http.Header
22750 }
22751
22752
22753
22754
22755
22756
22757
22758
22759
22760
22761
22762 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
22763 c := &ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22764 c.name = name
22765 return c
22766 }
22767
22768
22769
22770
22771 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
22772 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22773 return c
22774 }
22775
22776
22777 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall {
22778 c.ctx_ = ctx
22779 return c
22780 }
22781
22782
22783
22784 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
22785 if c.header_ == nil {
22786 c.header_ = make(http.Header)
22787 }
22788 return c.header_
22789 }
22790
22791 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
22792 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22793 var body io.Reader = nil
22794 c.urlParams_.Set("alt", alt)
22795 c.urlParams_.Set("prettyPrint", "false")
22796 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
22797 urls += "?" + c.urlParams_.Encode()
22798 req, err := http.NewRequest("DELETE", urls, body)
22799 if err != nil {
22800 return nil, err
22801 }
22802 req.Header = reqHeaders
22803 googleapi.Expand(req.URL, map[string]string{
22804 "name": c.name,
22805 })
22806 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22807 }
22808
22809
22810
22811
22812
22813
22814
22815 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22816 gensupport.SetOptions(c.urlParams_, opts...)
22817 res, err := c.doRequest("json")
22818 if res != nil && res.StatusCode == http.StatusNotModified {
22819 if res.Body != nil {
22820 res.Body.Close()
22821 }
22822 return nil, gensupport.WrapError(&googleapi.Error{
22823 Code: res.StatusCode,
22824 Header: res.Header,
22825 })
22826 }
22827 if err != nil {
22828 return nil, err
22829 }
22830 defer googleapi.CloseBody(res)
22831 if err := googleapi.CheckResponse(res); err != nil {
22832 return nil, gensupport.WrapError(err)
22833 }
22834 ret := &GoogleProtobufEmpty{
22835 ServerResponse: googleapi.ServerResponse{
22836 Header: res.Header,
22837 HTTPStatusCode: res.StatusCode,
22838 },
22839 }
22840 target := &ret
22841 if err := gensupport.DecodeResponse(target, res); err != nil {
22842 return nil, err
22843 }
22844 return ret, nil
22845 }
22846
22847 type ProjectsAgentEnvironmentsUsersSessionsContextsGetCall struct {
22848 s *Service
22849 name string
22850 urlParams_ gensupport.URLParams
22851 ifNoneMatch_ string
22852 ctx_ context.Context
22853 header_ http.Header
22854 }
22855
22856
22857
22858
22859
22860
22861
22862
22863
22864
22865
22866 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22867 c := &ProjectsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22868 c.name = name
22869 return c
22870 }
22871
22872
22873
22874
22875 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22876 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22877 return c
22878 }
22879
22880
22881
22882
22883 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22884 c.ifNoneMatch_ = entityTag
22885 return c
22886 }
22887
22888
22889 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall {
22890 c.ctx_ = ctx
22891 return c
22892 }
22893
22894
22895
22896 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
22897 if c.header_ == nil {
22898 c.header_ = make(http.Header)
22899 }
22900 return c.header_
22901 }
22902
22903 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
22904 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22905 if c.ifNoneMatch_ != "" {
22906 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22907 }
22908 var body io.Reader = nil
22909 c.urlParams_.Set("alt", alt)
22910 c.urlParams_.Set("prettyPrint", "false")
22911 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
22912 urls += "?" + c.urlParams_.Encode()
22913 req, err := http.NewRequest("GET", urls, body)
22914 if err != nil {
22915 return nil, err
22916 }
22917 req.Header = reqHeaders
22918 googleapi.Expand(req.URL, map[string]string{
22919 "name": c.name,
22920 })
22921 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22922 }
22923
22924
22925
22926
22927
22928
22929
22930 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
22931 gensupport.SetOptions(c.urlParams_, opts...)
22932 res, err := c.doRequest("json")
22933 if res != nil && res.StatusCode == http.StatusNotModified {
22934 if res.Body != nil {
22935 res.Body.Close()
22936 }
22937 return nil, gensupport.WrapError(&googleapi.Error{
22938 Code: res.StatusCode,
22939 Header: res.Header,
22940 })
22941 }
22942 if err != nil {
22943 return nil, err
22944 }
22945 defer googleapi.CloseBody(res)
22946 if err := googleapi.CheckResponse(res); err != nil {
22947 return nil, gensupport.WrapError(err)
22948 }
22949 ret := &GoogleCloudDialogflowV2beta1Context{
22950 ServerResponse: googleapi.ServerResponse{
22951 Header: res.Header,
22952 HTTPStatusCode: res.StatusCode,
22953 },
22954 }
22955 target := &ret
22956 if err := gensupport.DecodeResponse(target, res); err != nil {
22957 return nil, err
22958 }
22959 return ret, nil
22960 }
22961
22962 type ProjectsAgentEnvironmentsUsersSessionsContextsListCall struct {
22963 s *Service
22964 parent string
22965 urlParams_ gensupport.URLParams
22966 ifNoneMatch_ string
22967 ctx_ context.Context
22968 header_ http.Header
22969 }
22970
22971
22972
22973
22974
22975
22976
22977
22978
22979
22980 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22981 c := &ProjectsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22982 c.parent = parent
22983 return c
22984 }
22985
22986
22987
22988 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22989 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22990 return c
22991 }
22992
22993
22994
22995 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
22996 c.urlParams_.Set("pageToken", pageToken)
22997 return c
22998 }
22999
23000
23001
23002
23003 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23004 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23005 return c
23006 }
23007
23008
23009
23010
23011 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23012 c.ifNoneMatch_ = entityTag
23013 return c
23014 }
23015
23016
23017 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsListCall {
23018 c.ctx_ = ctx
23019 return c
23020 }
23021
23022
23023
23024 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
23025 if c.header_ == nil {
23026 c.header_ = make(http.Header)
23027 }
23028 return c.header_
23029 }
23030
23031 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
23032 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23033 if c.ifNoneMatch_ != "" {
23034 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23035 }
23036 var body io.Reader = nil
23037 c.urlParams_.Set("alt", alt)
23038 c.urlParams_.Set("prettyPrint", "false")
23039 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
23040 urls += "?" + c.urlParams_.Encode()
23041 req, err := http.NewRequest("GET", urls, body)
23042 if err != nil {
23043 return nil, err
23044 }
23045 req.Header = reqHeaders
23046 googleapi.Expand(req.URL, map[string]string{
23047 "parent": c.parent,
23048 })
23049 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23050 }
23051
23052
23053
23054
23055
23056
23057
23058 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
23059 gensupport.SetOptions(c.urlParams_, opts...)
23060 res, err := c.doRequest("json")
23061 if res != nil && res.StatusCode == http.StatusNotModified {
23062 if res.Body != nil {
23063 res.Body.Close()
23064 }
23065 return nil, gensupport.WrapError(&googleapi.Error{
23066 Code: res.StatusCode,
23067 Header: res.Header,
23068 })
23069 }
23070 if err != nil {
23071 return nil, err
23072 }
23073 defer googleapi.CloseBody(res)
23074 if err := googleapi.CheckResponse(res); err != nil {
23075 return nil, gensupport.WrapError(err)
23076 }
23077 ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
23078 ServerResponse: googleapi.ServerResponse{
23079 Header: res.Header,
23080 HTTPStatusCode: res.StatusCode,
23081 },
23082 }
23083 target := &ret
23084 if err := gensupport.DecodeResponse(target, res); err != nil {
23085 return nil, err
23086 }
23087 return ret, nil
23088 }
23089
23090
23091
23092
23093 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
23094 c.ctx_ = ctx
23095 defer c.PageToken(c.urlParams_.Get("pageToken"))
23096 for {
23097 x, err := c.Do()
23098 if err != nil {
23099 return err
23100 }
23101 if err := f(x); err != nil {
23102 return err
23103 }
23104 if x.NextPageToken == "" {
23105 return nil
23106 }
23107 c.PageToken(x.NextPageToken)
23108 }
23109 }
23110
23111 type ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
23112 s *Service
23113 nameid string
23114 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
23115 urlParams_ gensupport.URLParams
23116 ctx_ context.Context
23117 header_ http.Header
23118 }
23119
23120
23121
23122
23123
23124
23125
23126
23127
23128
23129
23130
23131
23132
23133
23134 func (r *ProjectsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23135 c := &ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23136 c.nameid = nameid
23137 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
23138 return c
23139 }
23140
23141
23142
23143 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23144 c.urlParams_.Set("updateMask", updateMask)
23145 return c
23146 }
23147
23148
23149
23150
23151 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23152 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23153 return c
23154 }
23155
23156
23157 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall {
23158 c.ctx_ = ctx
23159 return c
23160 }
23161
23162
23163
23164 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
23165 if c.header_ == nil {
23166 c.header_ = make(http.Header)
23167 }
23168 return c.header_
23169 }
23170
23171 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
23172 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23173 var body io.Reader = nil
23174 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
23175 if err != nil {
23176 return nil, err
23177 }
23178 c.urlParams_.Set("alt", alt)
23179 c.urlParams_.Set("prettyPrint", "false")
23180 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23181 urls += "?" + c.urlParams_.Encode()
23182 req, err := http.NewRequest("PATCH", urls, body)
23183 if err != nil {
23184 return nil, err
23185 }
23186 req.Header = reqHeaders
23187 googleapi.Expand(req.URL, map[string]string{
23188 "name": c.nameid,
23189 })
23190 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23191 }
23192
23193
23194
23195
23196
23197
23198
23199 func (c *ProjectsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
23200 gensupport.SetOptions(c.urlParams_, opts...)
23201 res, err := c.doRequest("json")
23202 if res != nil && res.StatusCode == http.StatusNotModified {
23203 if res.Body != nil {
23204 res.Body.Close()
23205 }
23206 return nil, gensupport.WrapError(&googleapi.Error{
23207 Code: res.StatusCode,
23208 Header: res.Header,
23209 })
23210 }
23211 if err != nil {
23212 return nil, err
23213 }
23214 defer googleapi.CloseBody(res)
23215 if err := googleapi.CheckResponse(res); err != nil {
23216 return nil, gensupport.WrapError(err)
23217 }
23218 ret := &GoogleCloudDialogflowV2beta1Context{
23219 ServerResponse: googleapi.ServerResponse{
23220 Header: res.Header,
23221 HTTPStatusCode: res.StatusCode,
23222 },
23223 }
23224 target := &ret
23225 if err := gensupport.DecodeResponse(target, res); err != nil {
23226 return nil, err
23227 }
23228 return ret, nil
23229 }
23230
23231 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
23232 s *Service
23233 parent string
23234 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
23235 urlParams_ gensupport.URLParams
23236 ctx_ context.Context
23237 header_ http.Header
23238 }
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23254 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23255 c.parent = parent
23256 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
23257 return c
23258 }
23259
23260
23261
23262
23263 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23264 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23265 return c
23266 }
23267
23268
23269 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
23270 c.ctx_ = ctx
23271 return c
23272 }
23273
23274
23275
23276 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
23277 if c.header_ == nil {
23278 c.header_ = make(http.Header)
23279 }
23280 return c.header_
23281 }
23282
23283 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
23284 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23285 var body io.Reader = nil
23286 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
23287 if err != nil {
23288 return nil, err
23289 }
23290 c.urlParams_.Set("alt", alt)
23291 c.urlParams_.Set("prettyPrint", "false")
23292 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
23293 urls += "?" + c.urlParams_.Encode()
23294 req, err := http.NewRequest("POST", urls, body)
23295 if err != nil {
23296 return nil, err
23297 }
23298 req.Header = reqHeaders
23299 googleapi.Expand(req.URL, map[string]string{
23300 "parent": c.parent,
23301 })
23302 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23303 }
23304
23305
23306
23307
23308
23309
23310
23311 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
23312 gensupport.SetOptions(c.urlParams_, opts...)
23313 res, err := c.doRequest("json")
23314 if res != nil && res.StatusCode == http.StatusNotModified {
23315 if res.Body != nil {
23316 res.Body.Close()
23317 }
23318 return nil, gensupport.WrapError(&googleapi.Error{
23319 Code: res.StatusCode,
23320 Header: res.Header,
23321 })
23322 }
23323 if err != nil {
23324 return nil, err
23325 }
23326 defer googleapi.CloseBody(res)
23327 if err := googleapi.CheckResponse(res); err != nil {
23328 return nil, gensupport.WrapError(err)
23329 }
23330 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
23331 ServerResponse: googleapi.ServerResponse{
23332 Header: res.Header,
23333 HTTPStatusCode: res.StatusCode,
23334 },
23335 }
23336 target := &ret
23337 if err := gensupport.DecodeResponse(target, res); err != nil {
23338 return nil, err
23339 }
23340 return ret, nil
23341 }
23342
23343 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
23344 s *Service
23345 name string
23346 urlParams_ gensupport.URLParams
23347 ctx_ context.Context
23348 header_ http.Header
23349 }
23350
23351
23352
23353
23354
23355
23356
23357
23358
23359
23360
23361
23362
23363 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23364 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23365 c.name = name
23366 return c
23367 }
23368
23369
23370
23371
23372 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23374 return c
23375 }
23376
23377
23378 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
23379 c.ctx_ = ctx
23380 return c
23381 }
23382
23383
23384
23385 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
23386 if c.header_ == nil {
23387 c.header_ = make(http.Header)
23388 }
23389 return c.header_
23390 }
23391
23392 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
23393 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23394 var body io.Reader = nil
23395 c.urlParams_.Set("alt", alt)
23396 c.urlParams_.Set("prettyPrint", "false")
23397 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23398 urls += "?" + c.urlParams_.Encode()
23399 req, err := http.NewRequest("DELETE", urls, body)
23400 if err != nil {
23401 return nil, err
23402 }
23403 req.Header = reqHeaders
23404 googleapi.Expand(req.URL, map[string]string{
23405 "name": c.name,
23406 })
23407 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23408 }
23409
23410
23411
23412
23413
23414
23415
23416 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23417 gensupport.SetOptions(c.urlParams_, opts...)
23418 res, err := c.doRequest("json")
23419 if res != nil && res.StatusCode == http.StatusNotModified {
23420 if res.Body != nil {
23421 res.Body.Close()
23422 }
23423 return nil, gensupport.WrapError(&googleapi.Error{
23424 Code: res.StatusCode,
23425 Header: res.Header,
23426 })
23427 }
23428 if err != nil {
23429 return nil, err
23430 }
23431 defer googleapi.CloseBody(res)
23432 if err := googleapi.CheckResponse(res); err != nil {
23433 return nil, gensupport.WrapError(err)
23434 }
23435 ret := &GoogleProtobufEmpty{
23436 ServerResponse: googleapi.ServerResponse{
23437 Header: res.Header,
23438 HTTPStatusCode: res.StatusCode,
23439 },
23440 }
23441 target := &ret
23442 if err := gensupport.DecodeResponse(target, res); err != nil {
23443 return nil, err
23444 }
23445 return ret, nil
23446 }
23447
23448 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
23449 s *Service
23450 name string
23451 urlParams_ gensupport.URLParams
23452 ifNoneMatch_ string
23453 ctx_ context.Context
23454 header_ http.Header
23455 }
23456
23457
23458
23459
23460
23461
23462
23463
23464
23465
23466
23467
23468
23469 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23470 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23471 c.name = name
23472 return c
23473 }
23474
23475
23476
23477
23478 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23479 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23480 return c
23481 }
23482
23483
23484
23485
23486 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23487 c.ifNoneMatch_ = entityTag
23488 return c
23489 }
23490
23491
23492 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
23493 c.ctx_ = ctx
23494 return c
23495 }
23496
23497
23498
23499 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
23500 if c.header_ == nil {
23501 c.header_ = make(http.Header)
23502 }
23503 return c.header_
23504 }
23505
23506 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
23507 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23508 if c.ifNoneMatch_ != "" {
23509 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23510 }
23511 var body io.Reader = nil
23512 c.urlParams_.Set("alt", alt)
23513 c.urlParams_.Set("prettyPrint", "false")
23514 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23515 urls += "?" + c.urlParams_.Encode()
23516 req, err := http.NewRequest("GET", urls, body)
23517 if err != nil {
23518 return nil, err
23519 }
23520 req.Header = reqHeaders
23521 googleapi.Expand(req.URL, map[string]string{
23522 "name": c.name,
23523 })
23524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23525 }
23526
23527
23528
23529
23530
23531
23532
23533 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
23534 gensupport.SetOptions(c.urlParams_, opts...)
23535 res, err := c.doRequest("json")
23536 if res != nil && res.StatusCode == http.StatusNotModified {
23537 if res.Body != nil {
23538 res.Body.Close()
23539 }
23540 return nil, gensupport.WrapError(&googleapi.Error{
23541 Code: res.StatusCode,
23542 Header: res.Header,
23543 })
23544 }
23545 if err != nil {
23546 return nil, err
23547 }
23548 defer googleapi.CloseBody(res)
23549 if err := googleapi.CheckResponse(res); err != nil {
23550 return nil, gensupport.WrapError(err)
23551 }
23552 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
23553 ServerResponse: googleapi.ServerResponse{
23554 Header: res.Header,
23555 HTTPStatusCode: res.StatusCode,
23556 },
23557 }
23558 target := &ret
23559 if err := gensupport.DecodeResponse(target, res); err != nil {
23560 return nil, err
23561 }
23562 return ret, nil
23563 }
23564
23565 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
23566 s *Service
23567 parent string
23568 urlParams_ gensupport.URLParams
23569 ifNoneMatch_ string
23570 ctx_ context.Context
23571 header_ http.Header
23572 }
23573
23574
23575
23576
23577
23578
23579
23580
23581
23582
23583
23584
23585
23586
23587 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23588 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23589 c.parent = parent
23590 return c
23591 }
23592
23593
23594
23595 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23596 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23597 return c
23598 }
23599
23600
23601
23602 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23603 c.urlParams_.Set("pageToken", pageToken)
23604 return c
23605 }
23606
23607
23608
23609
23610 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23611 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23612 return c
23613 }
23614
23615
23616
23617
23618 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23619 c.ifNoneMatch_ = entityTag
23620 return c
23621 }
23622
23623
23624 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall {
23625 c.ctx_ = ctx
23626 return c
23627 }
23628
23629
23630
23631 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
23632 if c.header_ == nil {
23633 c.header_ = make(http.Header)
23634 }
23635 return c.header_
23636 }
23637
23638 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
23639 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23640 if c.ifNoneMatch_ != "" {
23641 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23642 }
23643 var body io.Reader = nil
23644 c.urlParams_.Set("alt", alt)
23645 c.urlParams_.Set("prettyPrint", "false")
23646 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
23647 urls += "?" + c.urlParams_.Encode()
23648 req, err := http.NewRequest("GET", urls, body)
23649 if err != nil {
23650 return nil, err
23651 }
23652 req.Header = reqHeaders
23653 googleapi.Expand(req.URL, map[string]string{
23654 "parent": c.parent,
23655 })
23656 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23657 }
23658
23659
23660
23661
23662
23663
23664
23665 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
23666 gensupport.SetOptions(c.urlParams_, opts...)
23667 res, err := c.doRequest("json")
23668 if res != nil && res.StatusCode == http.StatusNotModified {
23669 if res.Body != nil {
23670 res.Body.Close()
23671 }
23672 return nil, gensupport.WrapError(&googleapi.Error{
23673 Code: res.StatusCode,
23674 Header: res.Header,
23675 })
23676 }
23677 if err != nil {
23678 return nil, err
23679 }
23680 defer googleapi.CloseBody(res)
23681 if err := googleapi.CheckResponse(res); err != nil {
23682 return nil, gensupport.WrapError(err)
23683 }
23684 ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
23685 ServerResponse: googleapi.ServerResponse{
23686 Header: res.Header,
23687 HTTPStatusCode: res.StatusCode,
23688 },
23689 }
23690 target := &ret
23691 if err := gensupport.DecodeResponse(target, res); err != nil {
23692 return nil, err
23693 }
23694 return ret, nil
23695 }
23696
23697
23698
23699
23700 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
23701 c.ctx_ = ctx
23702 defer c.PageToken(c.urlParams_.Get("pageToken"))
23703 for {
23704 x, err := c.Do()
23705 if err != nil {
23706 return err
23707 }
23708 if err := f(x); err != nil {
23709 return err
23710 }
23711 if x.NextPageToken == "" {
23712 return nil
23713 }
23714 c.PageToken(x.NextPageToken)
23715 }
23716 }
23717
23718 type ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
23719 s *Service
23720 nameid string
23721 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
23722 urlParams_ gensupport.URLParams
23723 ctx_ context.Context
23724 header_ http.Header
23725 }
23726
23727
23728
23729
23730
23731
23732
23733
23734
23735
23736
23737
23738
23739
23740
23741 func (r *ProjectsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23742 c := &ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23743 c.nameid = nameid
23744 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
23745 return c
23746 }
23747
23748
23749
23750 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23751 c.urlParams_.Set("updateMask", updateMask)
23752 return c
23753 }
23754
23755
23756
23757
23758 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23760 return c
23761 }
23762
23763
23764 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
23765 c.ctx_ = ctx
23766 return c
23767 }
23768
23769
23770
23771 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
23772 if c.header_ == nil {
23773 c.header_ = make(http.Header)
23774 }
23775 return c.header_
23776 }
23777
23778 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
23779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23780 var body io.Reader = nil
23781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
23782 if err != nil {
23783 return nil, err
23784 }
23785 c.urlParams_.Set("alt", alt)
23786 c.urlParams_.Set("prettyPrint", "false")
23787 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
23788 urls += "?" + c.urlParams_.Encode()
23789 req, err := http.NewRequest("PATCH", urls, body)
23790 if err != nil {
23791 return nil, err
23792 }
23793 req.Header = reqHeaders
23794 googleapi.Expand(req.URL, map[string]string{
23795 "name": c.nameid,
23796 })
23797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23798 }
23799
23800
23801
23802
23803
23804
23805
23806 func (c *ProjectsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
23807 gensupport.SetOptions(c.urlParams_, opts...)
23808 res, err := c.doRequest("json")
23809 if res != nil && res.StatusCode == http.StatusNotModified {
23810 if res.Body != nil {
23811 res.Body.Close()
23812 }
23813 return nil, gensupport.WrapError(&googleapi.Error{
23814 Code: res.StatusCode,
23815 Header: res.Header,
23816 })
23817 }
23818 if err != nil {
23819 return nil, err
23820 }
23821 defer googleapi.CloseBody(res)
23822 if err := googleapi.CheckResponse(res); err != nil {
23823 return nil, gensupport.WrapError(err)
23824 }
23825 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
23826 ServerResponse: googleapi.ServerResponse{
23827 Header: res.Header,
23828 HTTPStatusCode: res.StatusCode,
23829 },
23830 }
23831 target := &ret
23832 if err := gensupport.DecodeResponse(target, res); err != nil {
23833 return nil, err
23834 }
23835 return ret, nil
23836 }
23837
23838 type ProjectsAgentIntentsBatchDeleteCall struct {
23839 s *Service
23840 parent string
23841 googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
23842 urlParams_ gensupport.URLParams
23843 ctx_ context.Context
23844 header_ http.Header
23845 }
23846
23847
23848
23849
23850
23851
23852
23853
23854
23855
23856
23857
23858
23859
23860
23861 func (r *ProjectsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsAgentIntentsBatchDeleteCall {
23862 c := &ProjectsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23863 c.parent = parent
23864 c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
23865 return c
23866 }
23867
23868
23869
23870
23871 func (c *ProjectsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchDeleteCall {
23872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23873 return c
23874 }
23875
23876
23877 func (c *ProjectsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchDeleteCall {
23878 c.ctx_ = ctx
23879 return c
23880 }
23881
23882
23883
23884 func (c *ProjectsAgentIntentsBatchDeleteCall) Header() http.Header {
23885 if c.header_ == nil {
23886 c.header_ = make(http.Header)
23887 }
23888 return c.header_
23889 }
23890
23891 func (c *ProjectsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
23892 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23893 var body io.Reader = nil
23894 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
23895 if err != nil {
23896 return nil, err
23897 }
23898 c.urlParams_.Set("alt", alt)
23899 c.urlParams_.Set("prettyPrint", "false")
23900 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
23901 urls += "?" + c.urlParams_.Encode()
23902 req, err := http.NewRequest("POST", urls, body)
23903 if err != nil {
23904 return nil, err
23905 }
23906 req.Header = reqHeaders
23907 googleapi.Expand(req.URL, map[string]string{
23908 "parent": c.parent,
23909 })
23910 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23911 }
23912
23913
23914
23915
23916
23917
23918
23919 func (c *ProjectsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
23920 gensupport.SetOptions(c.urlParams_, opts...)
23921 res, err := c.doRequest("json")
23922 if res != nil && res.StatusCode == http.StatusNotModified {
23923 if res.Body != nil {
23924 res.Body.Close()
23925 }
23926 return nil, gensupport.WrapError(&googleapi.Error{
23927 Code: res.StatusCode,
23928 Header: res.Header,
23929 })
23930 }
23931 if err != nil {
23932 return nil, err
23933 }
23934 defer googleapi.CloseBody(res)
23935 if err := googleapi.CheckResponse(res); err != nil {
23936 return nil, gensupport.WrapError(err)
23937 }
23938 ret := &GoogleLongrunningOperation{
23939 ServerResponse: googleapi.ServerResponse{
23940 Header: res.Header,
23941 HTTPStatusCode: res.StatusCode,
23942 },
23943 }
23944 target := &ret
23945 if err := gensupport.DecodeResponse(target, res); err != nil {
23946 return nil, err
23947 }
23948 return ret, nil
23949 }
23950
23951 type ProjectsAgentIntentsBatchUpdateCall struct {
23952 s *Service
23953 parent string
23954 googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
23955 urlParams_ gensupport.URLParams
23956 ctx_ context.Context
23957 header_ http.Header
23958 }
23959
23960
23961
23962
23963
23964
23965
23966
23967
23968
23969
23970
23971
23972 func (r *ProjectsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsAgentIntentsBatchUpdateCall {
23973 c := &ProjectsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23974 c.parent = parent
23975 c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
23976 return c
23977 }
23978
23979
23980
23981
23982 func (c *ProjectsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsBatchUpdateCall {
23983 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23984 return c
23985 }
23986
23987
23988 func (c *ProjectsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsAgentIntentsBatchUpdateCall {
23989 c.ctx_ = ctx
23990 return c
23991 }
23992
23993
23994
23995 func (c *ProjectsAgentIntentsBatchUpdateCall) Header() http.Header {
23996 if c.header_ == nil {
23997 c.header_ = make(http.Header)
23998 }
23999 return c.header_
24000 }
24001
24002 func (c *ProjectsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
24003 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24004 var body io.Reader = nil
24005 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
24006 if err != nil {
24007 return nil, err
24008 }
24009 c.urlParams_.Set("alt", alt)
24010 c.urlParams_.Set("prettyPrint", "false")
24011 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
24012 urls += "?" + c.urlParams_.Encode()
24013 req, err := http.NewRequest("POST", urls, body)
24014 if err != nil {
24015 return nil, err
24016 }
24017 req.Header = reqHeaders
24018 googleapi.Expand(req.URL, map[string]string{
24019 "parent": c.parent,
24020 })
24021 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24022 }
24023
24024
24025
24026
24027
24028
24029
24030 func (c *ProjectsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24031 gensupport.SetOptions(c.urlParams_, opts...)
24032 res, err := c.doRequest("json")
24033 if res != nil && res.StatusCode == http.StatusNotModified {
24034 if res.Body != nil {
24035 res.Body.Close()
24036 }
24037 return nil, gensupport.WrapError(&googleapi.Error{
24038 Code: res.StatusCode,
24039 Header: res.Header,
24040 })
24041 }
24042 if err != nil {
24043 return nil, err
24044 }
24045 defer googleapi.CloseBody(res)
24046 if err := googleapi.CheckResponse(res); err != nil {
24047 return nil, gensupport.WrapError(err)
24048 }
24049 ret := &GoogleLongrunningOperation{
24050 ServerResponse: googleapi.ServerResponse{
24051 Header: res.Header,
24052 HTTPStatusCode: res.StatusCode,
24053 },
24054 }
24055 target := &ret
24056 if err := gensupport.DecodeResponse(target, res); err != nil {
24057 return nil, err
24058 }
24059 return ret, nil
24060 }
24061
24062 type ProjectsAgentIntentsCreateCall struct {
24063 s *Service
24064 parent string
24065 googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
24066 urlParams_ gensupport.URLParams
24067 ctx_ context.Context
24068 header_ http.Header
24069 }
24070
24071
24072
24073
24074
24075
24076
24077 func (r *ProjectsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsCreateCall {
24078 c := &ProjectsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24079 c.parent = parent
24080 c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
24081 return c
24082 }
24083
24084
24085
24086
24087
24088
24089
24090
24091
24092
24093
24094 func (c *ProjectsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsAgentIntentsCreateCall {
24095 c.urlParams_.Set("intentView", intentView)
24096 return c
24097 }
24098
24099
24100
24101
24102
24103
24104 func (c *ProjectsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsAgentIntentsCreateCall {
24105 c.urlParams_.Set("languageCode", languageCode)
24106 return c
24107 }
24108
24109
24110
24111
24112 func (c *ProjectsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsCreateCall {
24113 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24114 return c
24115 }
24116
24117
24118 func (c *ProjectsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsAgentIntentsCreateCall {
24119 c.ctx_ = ctx
24120 return c
24121 }
24122
24123
24124
24125 func (c *ProjectsAgentIntentsCreateCall) Header() http.Header {
24126 if c.header_ == nil {
24127 c.header_ = make(http.Header)
24128 }
24129 return c.header_
24130 }
24131
24132 func (c *ProjectsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
24133 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24134 var body io.Reader = nil
24135 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
24136 if err != nil {
24137 return nil, err
24138 }
24139 c.urlParams_.Set("alt", alt)
24140 c.urlParams_.Set("prettyPrint", "false")
24141 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
24142 urls += "?" + c.urlParams_.Encode()
24143 req, err := http.NewRequest("POST", urls, body)
24144 if err != nil {
24145 return nil, err
24146 }
24147 req.Header = reqHeaders
24148 googleapi.Expand(req.URL, map[string]string{
24149 "parent": c.parent,
24150 })
24151 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24152 }
24153
24154
24155
24156
24157
24158
24159
24160 func (c *ProjectsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
24161 gensupport.SetOptions(c.urlParams_, opts...)
24162 res, err := c.doRequest("json")
24163 if res != nil && res.StatusCode == http.StatusNotModified {
24164 if res.Body != nil {
24165 res.Body.Close()
24166 }
24167 return nil, gensupport.WrapError(&googleapi.Error{
24168 Code: res.StatusCode,
24169 Header: res.Header,
24170 })
24171 }
24172 if err != nil {
24173 return nil, err
24174 }
24175 defer googleapi.CloseBody(res)
24176 if err := googleapi.CheckResponse(res); err != nil {
24177 return nil, gensupport.WrapError(err)
24178 }
24179 ret := &GoogleCloudDialogflowV2beta1Intent{
24180 ServerResponse: googleapi.ServerResponse{
24181 Header: res.Header,
24182 HTTPStatusCode: res.StatusCode,
24183 },
24184 }
24185 target := &ret
24186 if err := gensupport.DecodeResponse(target, res); err != nil {
24187 return nil, err
24188 }
24189 return ret, nil
24190 }
24191
24192 type ProjectsAgentIntentsDeleteCall struct {
24193 s *Service
24194 name string
24195 urlParams_ gensupport.URLParams
24196 ctx_ context.Context
24197 header_ http.Header
24198 }
24199
24200
24201
24202
24203
24204
24205
24206
24207
24208 func (r *ProjectsAgentIntentsService) Delete(name string) *ProjectsAgentIntentsDeleteCall {
24209 c := &ProjectsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24210 c.name = name
24211 return c
24212 }
24213
24214
24215
24216
24217 func (c *ProjectsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsDeleteCall {
24218 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24219 return c
24220 }
24221
24222
24223 func (c *ProjectsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsAgentIntentsDeleteCall {
24224 c.ctx_ = ctx
24225 return c
24226 }
24227
24228
24229
24230 func (c *ProjectsAgentIntentsDeleteCall) Header() http.Header {
24231 if c.header_ == nil {
24232 c.header_ = make(http.Header)
24233 }
24234 return c.header_
24235 }
24236
24237 func (c *ProjectsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
24238 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24239 var body io.Reader = nil
24240 c.urlParams_.Set("alt", alt)
24241 c.urlParams_.Set("prettyPrint", "false")
24242 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24243 urls += "?" + c.urlParams_.Encode()
24244 req, err := http.NewRequest("DELETE", urls, body)
24245 if err != nil {
24246 return nil, err
24247 }
24248 req.Header = reqHeaders
24249 googleapi.Expand(req.URL, map[string]string{
24250 "name": c.name,
24251 })
24252 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24253 }
24254
24255
24256
24257
24258
24259
24260
24261 func (c *ProjectsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24262 gensupport.SetOptions(c.urlParams_, opts...)
24263 res, err := c.doRequest("json")
24264 if res != nil && res.StatusCode == http.StatusNotModified {
24265 if res.Body != nil {
24266 res.Body.Close()
24267 }
24268 return nil, gensupport.WrapError(&googleapi.Error{
24269 Code: res.StatusCode,
24270 Header: res.Header,
24271 })
24272 }
24273 if err != nil {
24274 return nil, err
24275 }
24276 defer googleapi.CloseBody(res)
24277 if err := googleapi.CheckResponse(res); err != nil {
24278 return nil, gensupport.WrapError(err)
24279 }
24280 ret := &GoogleProtobufEmpty{
24281 ServerResponse: googleapi.ServerResponse{
24282 Header: res.Header,
24283 HTTPStatusCode: res.StatusCode,
24284 },
24285 }
24286 target := &ret
24287 if err := gensupport.DecodeResponse(target, res); err != nil {
24288 return nil, err
24289 }
24290 return ret, nil
24291 }
24292
24293 type ProjectsAgentIntentsGetCall struct {
24294 s *Service
24295 name string
24296 urlParams_ gensupport.URLParams
24297 ifNoneMatch_ string
24298 ctx_ context.Context
24299 header_ http.Header
24300 }
24301
24302
24303
24304
24305
24306 func (r *ProjectsAgentIntentsService) Get(name string) *ProjectsAgentIntentsGetCall {
24307 c := &ProjectsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24308 c.name = name
24309 return c
24310 }
24311
24312
24313
24314
24315
24316
24317
24318
24319
24320
24321
24322 func (c *ProjectsAgentIntentsGetCall) IntentView(intentView string) *ProjectsAgentIntentsGetCall {
24323 c.urlParams_.Set("intentView", intentView)
24324 return c
24325 }
24326
24327
24328
24329
24330
24331
24332 func (c *ProjectsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsAgentIntentsGetCall {
24333 c.urlParams_.Set("languageCode", languageCode)
24334 return c
24335 }
24336
24337
24338
24339
24340 func (c *ProjectsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsGetCall {
24341 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24342 return c
24343 }
24344
24345
24346
24347
24348 func (c *ProjectsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsGetCall {
24349 c.ifNoneMatch_ = entityTag
24350 return c
24351 }
24352
24353
24354 func (c *ProjectsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsAgentIntentsGetCall {
24355 c.ctx_ = ctx
24356 return c
24357 }
24358
24359
24360
24361 func (c *ProjectsAgentIntentsGetCall) Header() http.Header {
24362 if c.header_ == nil {
24363 c.header_ = make(http.Header)
24364 }
24365 return c.header_
24366 }
24367
24368 func (c *ProjectsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
24369 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24370 if c.ifNoneMatch_ != "" {
24371 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24372 }
24373 var body io.Reader = nil
24374 c.urlParams_.Set("alt", alt)
24375 c.urlParams_.Set("prettyPrint", "false")
24376 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24377 urls += "?" + c.urlParams_.Encode()
24378 req, err := http.NewRequest("GET", urls, body)
24379 if err != nil {
24380 return nil, err
24381 }
24382 req.Header = reqHeaders
24383 googleapi.Expand(req.URL, map[string]string{
24384 "name": c.name,
24385 })
24386 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24387 }
24388
24389
24390
24391
24392
24393
24394
24395 func (c *ProjectsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
24396 gensupport.SetOptions(c.urlParams_, opts...)
24397 res, err := c.doRequest("json")
24398 if res != nil && res.StatusCode == http.StatusNotModified {
24399 if res.Body != nil {
24400 res.Body.Close()
24401 }
24402 return nil, gensupport.WrapError(&googleapi.Error{
24403 Code: res.StatusCode,
24404 Header: res.Header,
24405 })
24406 }
24407 if err != nil {
24408 return nil, err
24409 }
24410 defer googleapi.CloseBody(res)
24411 if err := googleapi.CheckResponse(res); err != nil {
24412 return nil, gensupport.WrapError(err)
24413 }
24414 ret := &GoogleCloudDialogflowV2beta1Intent{
24415 ServerResponse: googleapi.ServerResponse{
24416 Header: res.Header,
24417 HTTPStatusCode: res.StatusCode,
24418 },
24419 }
24420 target := &ret
24421 if err := gensupport.DecodeResponse(target, res); err != nil {
24422 return nil, err
24423 }
24424 return ret, nil
24425 }
24426
24427 type ProjectsAgentIntentsListCall struct {
24428 s *Service
24429 parent string
24430 urlParams_ gensupport.URLParams
24431 ifNoneMatch_ string
24432 ctx_ context.Context
24433 header_ http.Header
24434 }
24435
24436
24437
24438
24439
24440
24441
24442
24443 func (r *ProjectsAgentIntentsService) List(parent string) *ProjectsAgentIntentsListCall {
24444 c := &ProjectsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24445 c.parent = parent
24446 return c
24447 }
24448
24449
24450
24451
24452
24453
24454
24455
24456
24457
24458
24459 func (c *ProjectsAgentIntentsListCall) IntentView(intentView string) *ProjectsAgentIntentsListCall {
24460 c.urlParams_.Set("intentView", intentView)
24461 return c
24462 }
24463
24464
24465
24466
24467
24468
24469 func (c *ProjectsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsAgentIntentsListCall {
24470 c.urlParams_.Set("languageCode", languageCode)
24471 return c
24472 }
24473
24474
24475
24476 func (c *ProjectsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsAgentIntentsListCall {
24477 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24478 return c
24479 }
24480
24481
24482
24483 func (c *ProjectsAgentIntentsListCall) PageToken(pageToken string) *ProjectsAgentIntentsListCall {
24484 c.urlParams_.Set("pageToken", pageToken)
24485 return c
24486 }
24487
24488
24489
24490
24491 func (c *ProjectsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsListCall {
24492 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24493 return c
24494 }
24495
24496
24497
24498
24499 func (c *ProjectsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentIntentsListCall {
24500 c.ifNoneMatch_ = entityTag
24501 return c
24502 }
24503
24504
24505 func (c *ProjectsAgentIntentsListCall) Context(ctx context.Context) *ProjectsAgentIntentsListCall {
24506 c.ctx_ = ctx
24507 return c
24508 }
24509
24510
24511
24512 func (c *ProjectsAgentIntentsListCall) Header() http.Header {
24513 if c.header_ == nil {
24514 c.header_ = make(http.Header)
24515 }
24516 return c.header_
24517 }
24518
24519 func (c *ProjectsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
24520 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24521 if c.ifNoneMatch_ != "" {
24522 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24523 }
24524 var body io.Reader = nil
24525 c.urlParams_.Set("alt", alt)
24526 c.urlParams_.Set("prettyPrint", "false")
24527 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
24528 urls += "?" + c.urlParams_.Encode()
24529 req, err := http.NewRequest("GET", urls, body)
24530 if err != nil {
24531 return nil, err
24532 }
24533 req.Header = reqHeaders
24534 googleapi.Expand(req.URL, map[string]string{
24535 "parent": c.parent,
24536 })
24537 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24538 }
24539
24540
24541
24542
24543
24544
24545
24546 func (c *ProjectsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
24547 gensupport.SetOptions(c.urlParams_, opts...)
24548 res, err := c.doRequest("json")
24549 if res != nil && res.StatusCode == http.StatusNotModified {
24550 if res.Body != nil {
24551 res.Body.Close()
24552 }
24553 return nil, gensupport.WrapError(&googleapi.Error{
24554 Code: res.StatusCode,
24555 Header: res.Header,
24556 })
24557 }
24558 if err != nil {
24559 return nil, err
24560 }
24561 defer googleapi.CloseBody(res)
24562 if err := googleapi.CheckResponse(res); err != nil {
24563 return nil, gensupport.WrapError(err)
24564 }
24565 ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
24566 ServerResponse: googleapi.ServerResponse{
24567 Header: res.Header,
24568 HTTPStatusCode: res.StatusCode,
24569 },
24570 }
24571 target := &ret
24572 if err := gensupport.DecodeResponse(target, res); err != nil {
24573 return nil, err
24574 }
24575 return ret, nil
24576 }
24577
24578
24579
24580
24581 func (c *ProjectsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
24582 c.ctx_ = ctx
24583 defer c.PageToken(c.urlParams_.Get("pageToken"))
24584 for {
24585 x, err := c.Do()
24586 if err != nil {
24587 return err
24588 }
24589 if err := f(x); err != nil {
24590 return err
24591 }
24592 if x.NextPageToken == "" {
24593 return nil
24594 }
24595 c.PageToken(x.NextPageToken)
24596 }
24597 }
24598
24599 type ProjectsAgentIntentsPatchCall struct {
24600 s *Service
24601 nameid string
24602 googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
24603 urlParams_ gensupport.URLParams
24604 ctx_ context.Context
24605 header_ http.Header
24606 }
24607
24608
24609
24610
24611
24612
24613
24614
24615
24616 func (r *ProjectsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsAgentIntentsPatchCall {
24617 c := &ProjectsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24618 c.nameid = nameid
24619 c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
24620 return c
24621 }
24622
24623
24624
24625
24626
24627
24628
24629
24630
24631
24632
24633 func (c *ProjectsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsAgentIntentsPatchCall {
24634 c.urlParams_.Set("intentView", intentView)
24635 return c
24636 }
24637
24638
24639
24640
24641
24642
24643 func (c *ProjectsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsAgentIntentsPatchCall {
24644 c.urlParams_.Set("languageCode", languageCode)
24645 return c
24646 }
24647
24648
24649
24650 func (c *ProjectsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentIntentsPatchCall {
24651 c.urlParams_.Set("updateMask", updateMask)
24652 return c
24653 }
24654
24655
24656
24657
24658 func (c *ProjectsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentIntentsPatchCall {
24659 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24660 return c
24661 }
24662
24663
24664 func (c *ProjectsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsAgentIntentsPatchCall {
24665 c.ctx_ = ctx
24666 return c
24667 }
24668
24669
24670
24671 func (c *ProjectsAgentIntentsPatchCall) Header() http.Header {
24672 if c.header_ == nil {
24673 c.header_ = make(http.Header)
24674 }
24675 return c.header_
24676 }
24677
24678 func (c *ProjectsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
24679 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24680 var body io.Reader = nil
24681 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
24682 if err != nil {
24683 return nil, err
24684 }
24685 c.urlParams_.Set("alt", alt)
24686 c.urlParams_.Set("prettyPrint", "false")
24687 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24688 urls += "?" + c.urlParams_.Encode()
24689 req, err := http.NewRequest("PATCH", urls, body)
24690 if err != nil {
24691 return nil, err
24692 }
24693 req.Header = reqHeaders
24694 googleapi.Expand(req.URL, map[string]string{
24695 "name": c.nameid,
24696 })
24697 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24698 }
24699
24700
24701
24702
24703
24704
24705
24706 func (c *ProjectsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
24707 gensupport.SetOptions(c.urlParams_, opts...)
24708 res, err := c.doRequest("json")
24709 if res != nil && res.StatusCode == http.StatusNotModified {
24710 if res.Body != nil {
24711 res.Body.Close()
24712 }
24713 return nil, gensupport.WrapError(&googleapi.Error{
24714 Code: res.StatusCode,
24715 Header: res.Header,
24716 })
24717 }
24718 if err != nil {
24719 return nil, err
24720 }
24721 defer googleapi.CloseBody(res)
24722 if err := googleapi.CheckResponse(res); err != nil {
24723 return nil, gensupport.WrapError(err)
24724 }
24725 ret := &GoogleCloudDialogflowV2beta1Intent{
24726 ServerResponse: googleapi.ServerResponse{
24727 Header: res.Header,
24728 HTTPStatusCode: res.StatusCode,
24729 },
24730 }
24731 target := &ret
24732 if err := gensupport.DecodeResponse(target, res); err != nil {
24733 return nil, err
24734 }
24735 return ret, nil
24736 }
24737
24738 type ProjectsAgentKnowledgeBasesCreateCall struct {
24739 s *Service
24740 parent string
24741 googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
24742 urlParams_ gensupport.URLParams
24743 ctx_ context.Context
24744 header_ http.Header
24745 }
24746
24747
24748
24749
24750
24751
24752 func (r *ProjectsAgentKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesCreateCall {
24753 c := &ProjectsAgentKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24754 c.parent = parent
24755 c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
24756 return c
24757 }
24758
24759
24760
24761
24762 func (c *ProjectsAgentKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesCreateCall {
24763 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24764 return c
24765 }
24766
24767
24768 func (c *ProjectsAgentKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesCreateCall {
24769 c.ctx_ = ctx
24770 return c
24771 }
24772
24773
24774
24775 func (c *ProjectsAgentKnowledgeBasesCreateCall) Header() http.Header {
24776 if c.header_ == nil {
24777 c.header_ = make(http.Header)
24778 }
24779 return c.header_
24780 }
24781
24782 func (c *ProjectsAgentKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
24783 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24784 var body io.Reader = nil
24785 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
24786 if err != nil {
24787 return nil, err
24788 }
24789 c.urlParams_.Set("alt", alt)
24790 c.urlParams_.Set("prettyPrint", "false")
24791 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
24792 urls += "?" + c.urlParams_.Encode()
24793 req, err := http.NewRequest("POST", urls, body)
24794 if err != nil {
24795 return nil, err
24796 }
24797 req.Header = reqHeaders
24798 googleapi.Expand(req.URL, map[string]string{
24799 "parent": c.parent,
24800 })
24801 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24802 }
24803
24804
24805
24806
24807
24808
24809
24810 func (c *ProjectsAgentKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
24811 gensupport.SetOptions(c.urlParams_, opts...)
24812 res, err := c.doRequest("json")
24813 if res != nil && res.StatusCode == http.StatusNotModified {
24814 if res.Body != nil {
24815 res.Body.Close()
24816 }
24817 return nil, gensupport.WrapError(&googleapi.Error{
24818 Code: res.StatusCode,
24819 Header: res.Header,
24820 })
24821 }
24822 if err != nil {
24823 return nil, err
24824 }
24825 defer googleapi.CloseBody(res)
24826 if err := googleapi.CheckResponse(res); err != nil {
24827 return nil, gensupport.WrapError(err)
24828 }
24829 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
24830 ServerResponse: googleapi.ServerResponse{
24831 Header: res.Header,
24832 HTTPStatusCode: res.StatusCode,
24833 },
24834 }
24835 target := &ret
24836 if err := gensupport.DecodeResponse(target, res); err != nil {
24837 return nil, err
24838 }
24839 return ret, nil
24840 }
24841
24842 type ProjectsAgentKnowledgeBasesDeleteCall struct {
24843 s *Service
24844 name string
24845 urlParams_ gensupport.URLParams
24846 ctx_ context.Context
24847 header_ http.Header
24848 }
24849
24850
24851
24852
24853
24854
24855
24856 func (r *ProjectsAgentKnowledgeBasesService) Delete(name string) *ProjectsAgentKnowledgeBasesDeleteCall {
24857 c := &ProjectsAgentKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24858 c.name = name
24859 return c
24860 }
24861
24862
24863
24864 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Force(force bool) *ProjectsAgentKnowledgeBasesDeleteCall {
24865 c.urlParams_.Set("force", fmt.Sprint(force))
24866 return c
24867 }
24868
24869
24870
24871
24872 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDeleteCall {
24873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24874 return c
24875 }
24876
24877
24878 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDeleteCall {
24879 c.ctx_ = ctx
24880 return c
24881 }
24882
24883
24884
24885 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Header() http.Header {
24886 if c.header_ == nil {
24887 c.header_ = make(http.Header)
24888 }
24889 return c.header_
24890 }
24891
24892 func (c *ProjectsAgentKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
24893 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24894 var body io.Reader = nil
24895 c.urlParams_.Set("alt", alt)
24896 c.urlParams_.Set("prettyPrint", "false")
24897 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
24898 urls += "?" + c.urlParams_.Encode()
24899 req, err := http.NewRequest("DELETE", urls, body)
24900 if err != nil {
24901 return nil, err
24902 }
24903 req.Header = reqHeaders
24904 googleapi.Expand(req.URL, map[string]string{
24905 "name": c.name,
24906 })
24907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24908 }
24909
24910
24911
24912
24913
24914
24915
24916 func (c *ProjectsAgentKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24917 gensupport.SetOptions(c.urlParams_, opts...)
24918 res, err := c.doRequest("json")
24919 if res != nil && res.StatusCode == http.StatusNotModified {
24920 if res.Body != nil {
24921 res.Body.Close()
24922 }
24923 return nil, gensupport.WrapError(&googleapi.Error{
24924 Code: res.StatusCode,
24925 Header: res.Header,
24926 })
24927 }
24928 if err != nil {
24929 return nil, err
24930 }
24931 defer googleapi.CloseBody(res)
24932 if err := googleapi.CheckResponse(res); err != nil {
24933 return nil, gensupport.WrapError(err)
24934 }
24935 ret := &GoogleProtobufEmpty{
24936 ServerResponse: googleapi.ServerResponse{
24937 Header: res.Header,
24938 HTTPStatusCode: res.StatusCode,
24939 },
24940 }
24941 target := &ret
24942 if err := gensupport.DecodeResponse(target, res); err != nil {
24943 return nil, err
24944 }
24945 return ret, nil
24946 }
24947
24948 type ProjectsAgentKnowledgeBasesGetCall struct {
24949 s *Service
24950 name string
24951 urlParams_ gensupport.URLParams
24952 ifNoneMatch_ string
24953 ctx_ context.Context
24954 header_ http.Header
24955 }
24956
24957
24958
24959
24960
24961
24962
24963 func (r *ProjectsAgentKnowledgeBasesService) Get(name string) *ProjectsAgentKnowledgeBasesGetCall {
24964 c := &ProjectsAgentKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24965 c.name = name
24966 return c
24967 }
24968
24969
24970
24971
24972 func (c *ProjectsAgentKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesGetCall {
24973 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24974 return c
24975 }
24976
24977
24978
24979
24980 func (c *ProjectsAgentKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesGetCall {
24981 c.ifNoneMatch_ = entityTag
24982 return c
24983 }
24984
24985
24986 func (c *ProjectsAgentKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesGetCall {
24987 c.ctx_ = ctx
24988 return c
24989 }
24990
24991
24992
24993 func (c *ProjectsAgentKnowledgeBasesGetCall) Header() http.Header {
24994 if c.header_ == nil {
24995 c.header_ = make(http.Header)
24996 }
24997 return c.header_
24998 }
24999
25000 func (c *ProjectsAgentKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
25001 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25002 if c.ifNoneMatch_ != "" {
25003 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25004 }
25005 var body io.Reader = nil
25006 c.urlParams_.Set("alt", alt)
25007 c.urlParams_.Set("prettyPrint", "false")
25008 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25009 urls += "?" + c.urlParams_.Encode()
25010 req, err := http.NewRequest("GET", urls, body)
25011 if err != nil {
25012 return nil, err
25013 }
25014 req.Header = reqHeaders
25015 googleapi.Expand(req.URL, map[string]string{
25016 "name": c.name,
25017 })
25018 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25019 }
25020
25021
25022
25023
25024
25025
25026
25027 func (c *ProjectsAgentKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
25028 gensupport.SetOptions(c.urlParams_, opts...)
25029 res, err := c.doRequest("json")
25030 if res != nil && res.StatusCode == http.StatusNotModified {
25031 if res.Body != nil {
25032 res.Body.Close()
25033 }
25034 return nil, gensupport.WrapError(&googleapi.Error{
25035 Code: res.StatusCode,
25036 Header: res.Header,
25037 })
25038 }
25039 if err != nil {
25040 return nil, err
25041 }
25042 defer googleapi.CloseBody(res)
25043 if err := googleapi.CheckResponse(res); err != nil {
25044 return nil, gensupport.WrapError(err)
25045 }
25046 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
25047 ServerResponse: googleapi.ServerResponse{
25048 Header: res.Header,
25049 HTTPStatusCode: res.StatusCode,
25050 },
25051 }
25052 target := &ret
25053 if err := gensupport.DecodeResponse(target, res); err != nil {
25054 return nil, err
25055 }
25056 return ret, nil
25057 }
25058
25059 type ProjectsAgentKnowledgeBasesListCall struct {
25060 s *Service
25061 parent string
25062 urlParams_ gensupport.URLParams
25063 ifNoneMatch_ string
25064 ctx_ context.Context
25065 header_ http.Header
25066 }
25067
25068
25069
25070
25071
25072
25073
25074 func (r *ProjectsAgentKnowledgeBasesService) List(parent string) *ProjectsAgentKnowledgeBasesListCall {
25075 c := &ProjectsAgentKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25076 c.parent = parent
25077 return c
25078 }
25079
25080
25081
25082
25083
25084
25085
25086
25087
25088
25089
25090
25091
25092
25093 func (c *ProjectsAgentKnowledgeBasesListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesListCall {
25094 c.urlParams_.Set("filter", filter)
25095 return c
25096 }
25097
25098
25099
25100 func (c *ProjectsAgentKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesListCall {
25101 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25102 return c
25103 }
25104
25105
25106
25107 func (c *ProjectsAgentKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesListCall {
25108 c.urlParams_.Set("pageToken", pageToken)
25109 return c
25110 }
25111
25112
25113
25114
25115 func (c *ProjectsAgentKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesListCall {
25116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25117 return c
25118 }
25119
25120
25121
25122
25123 func (c *ProjectsAgentKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesListCall {
25124 c.ifNoneMatch_ = entityTag
25125 return c
25126 }
25127
25128
25129 func (c *ProjectsAgentKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesListCall {
25130 c.ctx_ = ctx
25131 return c
25132 }
25133
25134
25135
25136 func (c *ProjectsAgentKnowledgeBasesListCall) Header() http.Header {
25137 if c.header_ == nil {
25138 c.header_ = make(http.Header)
25139 }
25140 return c.header_
25141 }
25142
25143 func (c *ProjectsAgentKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
25144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25145 if c.ifNoneMatch_ != "" {
25146 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25147 }
25148 var body io.Reader = nil
25149 c.urlParams_.Set("alt", alt)
25150 c.urlParams_.Set("prettyPrint", "false")
25151 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
25152 urls += "?" + c.urlParams_.Encode()
25153 req, err := http.NewRequest("GET", urls, body)
25154 if err != nil {
25155 return nil, err
25156 }
25157 req.Header = reqHeaders
25158 googleapi.Expand(req.URL, map[string]string{
25159 "parent": c.parent,
25160 })
25161 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25162 }
25163
25164
25165
25166
25167
25168
25169
25170
25171
25172 func (c *ProjectsAgentKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
25173 gensupport.SetOptions(c.urlParams_, opts...)
25174 res, err := c.doRequest("json")
25175 if res != nil && res.StatusCode == http.StatusNotModified {
25176 if res.Body != nil {
25177 res.Body.Close()
25178 }
25179 return nil, gensupport.WrapError(&googleapi.Error{
25180 Code: res.StatusCode,
25181 Header: res.Header,
25182 })
25183 }
25184 if err != nil {
25185 return nil, err
25186 }
25187 defer googleapi.CloseBody(res)
25188 if err := googleapi.CheckResponse(res); err != nil {
25189 return nil, gensupport.WrapError(err)
25190 }
25191 ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
25192 ServerResponse: googleapi.ServerResponse{
25193 Header: res.Header,
25194 HTTPStatusCode: res.StatusCode,
25195 },
25196 }
25197 target := &ret
25198 if err := gensupport.DecodeResponse(target, res); err != nil {
25199 return nil, err
25200 }
25201 return ret, nil
25202 }
25203
25204
25205
25206
25207 func (c *ProjectsAgentKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
25208 c.ctx_ = ctx
25209 defer c.PageToken(c.urlParams_.Get("pageToken"))
25210 for {
25211 x, err := c.Do()
25212 if err != nil {
25213 return err
25214 }
25215 if err := f(x); err != nil {
25216 return err
25217 }
25218 if x.NextPageToken == "" {
25219 return nil
25220 }
25221 c.PageToken(x.NextPageToken)
25222 }
25223 }
25224
25225 type ProjectsAgentKnowledgeBasesPatchCall struct {
25226 s *Service
25227 name string
25228 googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
25229 urlParams_ gensupport.URLParams
25230 ctx_ context.Context
25231 header_ http.Header
25232 }
25233
25234
25235
25236
25237
25238
25239
25240 func (r *ProjectsAgentKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsAgentKnowledgeBasesPatchCall {
25241 c := &ProjectsAgentKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25242 c.name = name
25243 c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
25244 return c
25245 }
25246
25247
25248
25249
25250 func (c *ProjectsAgentKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesPatchCall {
25251 c.urlParams_.Set("updateMask", updateMask)
25252 return c
25253 }
25254
25255
25256
25257
25258 func (c *ProjectsAgentKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesPatchCall {
25259 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25260 return c
25261 }
25262
25263
25264 func (c *ProjectsAgentKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesPatchCall {
25265 c.ctx_ = ctx
25266 return c
25267 }
25268
25269
25270
25271 func (c *ProjectsAgentKnowledgeBasesPatchCall) Header() http.Header {
25272 if c.header_ == nil {
25273 c.header_ = make(http.Header)
25274 }
25275 return c.header_
25276 }
25277
25278 func (c *ProjectsAgentKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
25279 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25280 var body io.Reader = nil
25281 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
25282 if err != nil {
25283 return nil, err
25284 }
25285 c.urlParams_.Set("alt", alt)
25286 c.urlParams_.Set("prettyPrint", "false")
25287 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25288 urls += "?" + c.urlParams_.Encode()
25289 req, err := http.NewRequest("PATCH", urls, body)
25290 if err != nil {
25291 return nil, err
25292 }
25293 req.Header = reqHeaders
25294 googleapi.Expand(req.URL, map[string]string{
25295 "name": c.name,
25296 })
25297 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25298 }
25299
25300
25301
25302
25303
25304
25305
25306 func (c *ProjectsAgentKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
25307 gensupport.SetOptions(c.urlParams_, opts...)
25308 res, err := c.doRequest("json")
25309 if res != nil && res.StatusCode == http.StatusNotModified {
25310 if res.Body != nil {
25311 res.Body.Close()
25312 }
25313 return nil, gensupport.WrapError(&googleapi.Error{
25314 Code: res.StatusCode,
25315 Header: res.Header,
25316 })
25317 }
25318 if err != nil {
25319 return nil, err
25320 }
25321 defer googleapi.CloseBody(res)
25322 if err := googleapi.CheckResponse(res); err != nil {
25323 return nil, gensupport.WrapError(err)
25324 }
25325 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
25326 ServerResponse: googleapi.ServerResponse{
25327 Header: res.Header,
25328 HTTPStatusCode: res.StatusCode,
25329 },
25330 }
25331 target := &ret
25332 if err := gensupport.DecodeResponse(target, res); err != nil {
25333 return nil, err
25334 }
25335 return ret, nil
25336 }
25337
25338 type ProjectsAgentKnowledgeBasesDocumentsCreateCall struct {
25339 s *Service
25340 parent string
25341 googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
25342 urlParams_ gensupport.URLParams
25343 ctx_ context.Context
25344 header_ http.Header
25345 }
25346
25347
25348
25349
25350
25351
25352
25353
25354
25355
25356 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25357 c := &ProjectsAgentKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25358 c.parent = parent
25359 c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
25360 return c
25361 }
25362
25363
25364
25365
25366
25367 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25368 c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
25369 return c
25370 }
25371
25372
25373
25374
25375 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25376 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25377 return c
25378 }
25379
25380
25381 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsCreateCall {
25382 c.ctx_ = ctx
25383 return c
25384 }
25385
25386
25387
25388 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Header() http.Header {
25389 if c.header_ == nil {
25390 c.header_ = make(http.Header)
25391 }
25392 return c.header_
25393 }
25394
25395 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
25396 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25397 var body io.Reader = nil
25398 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
25399 if err != nil {
25400 return nil, err
25401 }
25402 c.urlParams_.Set("alt", alt)
25403 c.urlParams_.Set("prettyPrint", "false")
25404 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
25405 urls += "?" + c.urlParams_.Encode()
25406 req, err := http.NewRequest("POST", urls, body)
25407 if err != nil {
25408 return nil, err
25409 }
25410 req.Header = reqHeaders
25411 googleapi.Expand(req.URL, map[string]string{
25412 "parent": c.parent,
25413 })
25414 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25415 }
25416
25417
25418
25419
25420
25421
25422
25423 func (c *ProjectsAgentKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25424 gensupport.SetOptions(c.urlParams_, opts...)
25425 res, err := c.doRequest("json")
25426 if res != nil && res.StatusCode == http.StatusNotModified {
25427 if res.Body != nil {
25428 res.Body.Close()
25429 }
25430 return nil, gensupport.WrapError(&googleapi.Error{
25431 Code: res.StatusCode,
25432 Header: res.Header,
25433 })
25434 }
25435 if err != nil {
25436 return nil, err
25437 }
25438 defer googleapi.CloseBody(res)
25439 if err := googleapi.CheckResponse(res); err != nil {
25440 return nil, gensupport.WrapError(err)
25441 }
25442 ret := &GoogleLongrunningOperation{
25443 ServerResponse: googleapi.ServerResponse{
25444 Header: res.Header,
25445 HTTPStatusCode: res.StatusCode,
25446 },
25447 }
25448 target := &ret
25449 if err := gensupport.DecodeResponse(target, res); err != nil {
25450 return nil, err
25451 }
25452 return ret, nil
25453 }
25454
25455 type ProjectsAgentKnowledgeBasesDocumentsDeleteCall struct {
25456 s *Service
25457 name string
25458 urlParams_ gensupport.URLParams
25459 ctx_ context.Context
25460 header_ http.Header
25461 }
25462
25463
25464
25465
25466
25467
25468
25469
25470
25471
25472
25473
25474 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Delete(name string) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
25475 c := &ProjectsAgentKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25476 c.name = name
25477 return c
25478 }
25479
25480
25481
25482
25483 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
25484 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25485 return c
25486 }
25487
25488
25489 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsDeleteCall {
25490 c.ctx_ = ctx
25491 return c
25492 }
25493
25494
25495
25496 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
25497 if c.header_ == nil {
25498 c.header_ = make(http.Header)
25499 }
25500 return c.header_
25501 }
25502
25503 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
25504 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25505 var body io.Reader = nil
25506 c.urlParams_.Set("alt", alt)
25507 c.urlParams_.Set("prettyPrint", "false")
25508 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25509 urls += "?" + c.urlParams_.Encode()
25510 req, err := http.NewRequest("DELETE", urls, body)
25511 if err != nil {
25512 return nil, err
25513 }
25514 req.Header = reqHeaders
25515 googleapi.Expand(req.URL, map[string]string{
25516 "name": c.name,
25517 })
25518 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25519 }
25520
25521
25522
25523
25524
25525
25526
25527 func (c *ProjectsAgentKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25528 gensupport.SetOptions(c.urlParams_, opts...)
25529 res, err := c.doRequest("json")
25530 if res != nil && res.StatusCode == http.StatusNotModified {
25531 if res.Body != nil {
25532 res.Body.Close()
25533 }
25534 return nil, gensupport.WrapError(&googleapi.Error{
25535 Code: res.StatusCode,
25536 Header: res.Header,
25537 })
25538 }
25539 if err != nil {
25540 return nil, err
25541 }
25542 defer googleapi.CloseBody(res)
25543 if err := googleapi.CheckResponse(res); err != nil {
25544 return nil, gensupport.WrapError(err)
25545 }
25546 ret := &GoogleLongrunningOperation{
25547 ServerResponse: googleapi.ServerResponse{
25548 Header: res.Header,
25549 HTTPStatusCode: res.StatusCode,
25550 },
25551 }
25552 target := &ret
25553 if err := gensupport.DecodeResponse(target, res); err != nil {
25554 return nil, err
25555 }
25556 return ret, nil
25557 }
25558
25559 type ProjectsAgentKnowledgeBasesDocumentsGetCall struct {
25560 s *Service
25561 name string
25562 urlParams_ gensupport.URLParams
25563 ifNoneMatch_ string
25564 ctx_ context.Context
25565 header_ http.Header
25566 }
25567
25568
25569
25570
25571
25572
25573
25574 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Get(name string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25575 c := &ProjectsAgentKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25576 c.name = name
25577 return c
25578 }
25579
25580
25581
25582
25583 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25584 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25585 return c
25586 }
25587
25588
25589
25590
25591 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25592 c.ifNoneMatch_ = entityTag
25593 return c
25594 }
25595
25596
25597 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsGetCall {
25598 c.ctx_ = ctx
25599 return c
25600 }
25601
25602
25603
25604 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Header() http.Header {
25605 if c.header_ == nil {
25606 c.header_ = make(http.Header)
25607 }
25608 return c.header_
25609 }
25610
25611 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
25612 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25613 if c.ifNoneMatch_ != "" {
25614 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25615 }
25616 var body io.Reader = nil
25617 c.urlParams_.Set("alt", alt)
25618 c.urlParams_.Set("prettyPrint", "false")
25619 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25620 urls += "?" + c.urlParams_.Encode()
25621 req, err := http.NewRequest("GET", urls, body)
25622 if err != nil {
25623 return nil, err
25624 }
25625 req.Header = reqHeaders
25626 googleapi.Expand(req.URL, map[string]string{
25627 "name": c.name,
25628 })
25629 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25630 }
25631
25632
25633
25634
25635
25636
25637
25638 func (c *ProjectsAgentKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
25639 gensupport.SetOptions(c.urlParams_, opts...)
25640 res, err := c.doRequest("json")
25641 if res != nil && res.StatusCode == http.StatusNotModified {
25642 if res.Body != nil {
25643 res.Body.Close()
25644 }
25645 return nil, gensupport.WrapError(&googleapi.Error{
25646 Code: res.StatusCode,
25647 Header: res.Header,
25648 })
25649 }
25650 if err != nil {
25651 return nil, err
25652 }
25653 defer googleapi.CloseBody(res)
25654 if err := googleapi.CheckResponse(res); err != nil {
25655 return nil, gensupport.WrapError(err)
25656 }
25657 ret := &GoogleCloudDialogflowV2beta1Document{
25658 ServerResponse: googleapi.ServerResponse{
25659 Header: res.Header,
25660 HTTPStatusCode: res.StatusCode,
25661 },
25662 }
25663 target := &ret
25664 if err := gensupport.DecodeResponse(target, res); err != nil {
25665 return nil, err
25666 }
25667 return ret, nil
25668 }
25669
25670 type ProjectsAgentKnowledgeBasesDocumentsListCall struct {
25671 s *Service
25672 parent string
25673 urlParams_ gensupport.URLParams
25674 ifNoneMatch_ string
25675 ctx_ context.Context
25676 header_ http.Header
25677 }
25678
25679
25680
25681
25682
25683
25684
25685 func (r *ProjectsAgentKnowledgeBasesDocumentsService) List(parent string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25686 c := &ProjectsAgentKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25687 c.parent = parent
25688 return c
25689 }
25690
25691
25692
25693
25694
25695
25696
25697
25698
25699
25700
25701 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25702 c.urlParams_.Set("filter", filter)
25703 return c
25704 }
25705
25706
25707
25708 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25709 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25710 return c
25711 }
25712
25713
25714
25715 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25716 c.urlParams_.Set("pageToken", pageToken)
25717 return c
25718 }
25719
25720
25721
25722
25723 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25724 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25725 return c
25726 }
25727
25728
25729
25730
25731 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25732 c.ifNoneMatch_ = entityTag
25733 return c
25734 }
25735
25736
25737 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsListCall {
25738 c.ctx_ = ctx
25739 return c
25740 }
25741
25742
25743
25744 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Header() http.Header {
25745 if c.header_ == nil {
25746 c.header_ = make(http.Header)
25747 }
25748 return c.header_
25749 }
25750
25751 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
25752 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25753 if c.ifNoneMatch_ != "" {
25754 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25755 }
25756 var body io.Reader = nil
25757 c.urlParams_.Set("alt", alt)
25758 c.urlParams_.Set("prettyPrint", "false")
25759 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
25760 urls += "?" + c.urlParams_.Encode()
25761 req, err := http.NewRequest("GET", urls, body)
25762 if err != nil {
25763 return nil, err
25764 }
25765 req.Header = reqHeaders
25766 googleapi.Expand(req.URL, map[string]string{
25767 "parent": c.parent,
25768 })
25769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25770 }
25771
25772
25773
25774
25775
25776
25777
25778 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
25779 gensupport.SetOptions(c.urlParams_, opts...)
25780 res, err := c.doRequest("json")
25781 if res != nil && res.StatusCode == http.StatusNotModified {
25782 if res.Body != nil {
25783 res.Body.Close()
25784 }
25785 return nil, gensupport.WrapError(&googleapi.Error{
25786 Code: res.StatusCode,
25787 Header: res.Header,
25788 })
25789 }
25790 if err != nil {
25791 return nil, err
25792 }
25793 defer googleapi.CloseBody(res)
25794 if err := googleapi.CheckResponse(res); err != nil {
25795 return nil, gensupport.WrapError(err)
25796 }
25797 ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
25798 ServerResponse: googleapi.ServerResponse{
25799 Header: res.Header,
25800 HTTPStatusCode: res.StatusCode,
25801 },
25802 }
25803 target := &ret
25804 if err := gensupport.DecodeResponse(target, res); err != nil {
25805 return nil, err
25806 }
25807 return ret, nil
25808 }
25809
25810
25811
25812
25813 func (c *ProjectsAgentKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
25814 c.ctx_ = ctx
25815 defer c.PageToken(c.urlParams_.Get("pageToken"))
25816 for {
25817 x, err := c.Do()
25818 if err != nil {
25819 return err
25820 }
25821 if err := f(x); err != nil {
25822 return err
25823 }
25824 if x.NextPageToken == "" {
25825 return nil
25826 }
25827 c.PageToken(x.NextPageToken)
25828 }
25829 }
25830
25831 type ProjectsAgentKnowledgeBasesDocumentsPatchCall struct {
25832 s *Service
25833 name string
25834 googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
25835 urlParams_ gensupport.URLParams
25836 ctx_ context.Context
25837 header_ http.Header
25838 }
25839
25840
25841
25842
25843
25844
25845
25846
25847
25848
25849
25850
25851 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25852 c := &ProjectsAgentKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25853 c.name = name
25854 c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
25855 return c
25856 }
25857
25858
25859
25860
25861 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25862 c.urlParams_.Set("updateMask", updateMask)
25863 return c
25864 }
25865
25866
25867
25868
25869 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25870 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25871 return c
25872 }
25873
25874
25875 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsPatchCall {
25876 c.ctx_ = ctx
25877 return c
25878 }
25879
25880
25881
25882 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Header() http.Header {
25883 if c.header_ == nil {
25884 c.header_ = make(http.Header)
25885 }
25886 return c.header_
25887 }
25888
25889 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
25890 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25891 var body io.Reader = nil
25892 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
25893 if err != nil {
25894 return nil, err
25895 }
25896 c.urlParams_.Set("alt", alt)
25897 c.urlParams_.Set("prettyPrint", "false")
25898 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
25899 urls += "?" + c.urlParams_.Encode()
25900 req, err := http.NewRequest("PATCH", urls, body)
25901 if err != nil {
25902 return nil, err
25903 }
25904 req.Header = reqHeaders
25905 googleapi.Expand(req.URL, map[string]string{
25906 "name": c.name,
25907 })
25908 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25909 }
25910
25911
25912
25913
25914
25915
25916
25917 func (c *ProjectsAgentKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25918 gensupport.SetOptions(c.urlParams_, opts...)
25919 res, err := c.doRequest("json")
25920 if res != nil && res.StatusCode == http.StatusNotModified {
25921 if res.Body != nil {
25922 res.Body.Close()
25923 }
25924 return nil, gensupport.WrapError(&googleapi.Error{
25925 Code: res.StatusCode,
25926 Header: res.Header,
25927 })
25928 }
25929 if err != nil {
25930 return nil, err
25931 }
25932 defer googleapi.CloseBody(res)
25933 if err := googleapi.CheckResponse(res); err != nil {
25934 return nil, gensupport.WrapError(err)
25935 }
25936 ret := &GoogleLongrunningOperation{
25937 ServerResponse: googleapi.ServerResponse{
25938 Header: res.Header,
25939 HTTPStatusCode: res.StatusCode,
25940 },
25941 }
25942 target := &ret
25943 if err := gensupport.DecodeResponse(target, res); err != nil {
25944 return nil, err
25945 }
25946 return ret, nil
25947 }
25948
25949 type ProjectsAgentKnowledgeBasesDocumentsReloadCall struct {
25950 s *Service
25951 name string
25952 googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
25953 urlParams_ gensupport.URLParams
25954 ctx_ context.Context
25955 header_ http.Header
25956 }
25957
25958
25959
25960
25961
25962
25963
25964
25965
25966
25967
25968
25969
25970
25971
25972
25973
25974 func (r *ProjectsAgentKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
25975 c := &ProjectsAgentKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25976 c.name = name
25977 c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
25978 return c
25979 }
25980
25981
25982
25983
25984 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
25985 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25986 return c
25987 }
25988
25989
25990 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsAgentKnowledgeBasesDocumentsReloadCall {
25991 c.ctx_ = ctx
25992 return c
25993 }
25994
25995
25996
25997 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Header() http.Header {
25998 if c.header_ == nil {
25999 c.header_ = make(http.Header)
26000 }
26001 return c.header_
26002 }
26003
26004 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
26005 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26006 var body io.Reader = nil
26007 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
26008 if err != nil {
26009 return nil, err
26010 }
26011 c.urlParams_.Set("alt", alt)
26012 c.urlParams_.Set("prettyPrint", "false")
26013 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
26014 urls += "?" + c.urlParams_.Encode()
26015 req, err := http.NewRequest("POST", urls, body)
26016 if err != nil {
26017 return nil, err
26018 }
26019 req.Header = reqHeaders
26020 googleapi.Expand(req.URL, map[string]string{
26021 "name": c.name,
26022 })
26023 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26024 }
26025
26026
26027
26028
26029
26030
26031
26032 func (c *ProjectsAgentKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26033 gensupport.SetOptions(c.urlParams_, opts...)
26034 res, err := c.doRequest("json")
26035 if res != nil && res.StatusCode == http.StatusNotModified {
26036 if res.Body != nil {
26037 res.Body.Close()
26038 }
26039 return nil, gensupport.WrapError(&googleapi.Error{
26040 Code: res.StatusCode,
26041 Header: res.Header,
26042 })
26043 }
26044 if err != nil {
26045 return nil, err
26046 }
26047 defer googleapi.CloseBody(res)
26048 if err := googleapi.CheckResponse(res); err != nil {
26049 return nil, gensupport.WrapError(err)
26050 }
26051 ret := &GoogleLongrunningOperation{
26052 ServerResponse: googleapi.ServerResponse{
26053 Header: res.Header,
26054 HTTPStatusCode: res.StatusCode,
26055 },
26056 }
26057 target := &ret
26058 if err := gensupport.DecodeResponse(target, res); err != nil {
26059 return nil, err
26060 }
26061 return ret, nil
26062 }
26063
26064 type ProjectsAgentSessionsDeleteContextsCall struct {
26065 s *Service
26066 parent string
26067 urlParams_ gensupport.URLParams
26068 ctx_ context.Context
26069 header_ http.Header
26070 }
26071
26072
26073
26074
26075
26076
26077
26078
26079
26080
26081
26082 func (r *ProjectsAgentSessionsService) DeleteContexts(parent string) *ProjectsAgentSessionsDeleteContextsCall {
26083 c := &ProjectsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26084 c.parent = parent
26085 return c
26086 }
26087
26088
26089
26090
26091 func (c *ProjectsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDeleteContextsCall {
26092 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26093 return c
26094 }
26095
26096
26097 func (c *ProjectsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsAgentSessionsDeleteContextsCall {
26098 c.ctx_ = ctx
26099 return c
26100 }
26101
26102
26103
26104 func (c *ProjectsAgentSessionsDeleteContextsCall) Header() http.Header {
26105 if c.header_ == nil {
26106 c.header_ = make(http.Header)
26107 }
26108 return c.header_
26109 }
26110
26111 func (c *ProjectsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
26112 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26113 var body io.Reader = nil
26114 c.urlParams_.Set("alt", alt)
26115 c.urlParams_.Set("prettyPrint", "false")
26116 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
26117 urls += "?" + c.urlParams_.Encode()
26118 req, err := http.NewRequest("DELETE", urls, body)
26119 if err != nil {
26120 return nil, err
26121 }
26122 req.Header = reqHeaders
26123 googleapi.Expand(req.URL, map[string]string{
26124 "parent": c.parent,
26125 })
26126 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26127 }
26128
26129
26130
26131
26132
26133
26134
26135 func (c *ProjectsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26136 gensupport.SetOptions(c.urlParams_, opts...)
26137 res, err := c.doRequest("json")
26138 if res != nil && res.StatusCode == http.StatusNotModified {
26139 if res.Body != nil {
26140 res.Body.Close()
26141 }
26142 return nil, gensupport.WrapError(&googleapi.Error{
26143 Code: res.StatusCode,
26144 Header: res.Header,
26145 })
26146 }
26147 if err != nil {
26148 return nil, err
26149 }
26150 defer googleapi.CloseBody(res)
26151 if err := googleapi.CheckResponse(res); err != nil {
26152 return nil, gensupport.WrapError(err)
26153 }
26154 ret := &GoogleProtobufEmpty{
26155 ServerResponse: googleapi.ServerResponse{
26156 Header: res.Header,
26157 HTTPStatusCode: res.StatusCode,
26158 },
26159 }
26160 target := &ret
26161 if err := gensupport.DecodeResponse(target, res); err != nil {
26162 return nil, err
26163 }
26164 return ret, nil
26165 }
26166
26167 type ProjectsAgentSessionsDetectIntentCall struct {
26168 s *Service
26169 sessionid string
26170 googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
26171 urlParams_ gensupport.URLParams
26172 ctx_ context.Context
26173 header_ http.Header
26174 }
26175
26176
26177
26178
26179
26180
26181
26182
26183
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193
26194
26195
26196
26197
26198
26199
26200
26201
26202 func (r *ProjectsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsAgentSessionsDetectIntentCall {
26203 c := &ProjectsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26204 c.sessionid = sessionid
26205 c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
26206 return c
26207 }
26208
26209
26210
26211
26212 func (c *ProjectsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsDetectIntentCall {
26213 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26214 return c
26215 }
26216
26217
26218 func (c *ProjectsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsAgentSessionsDetectIntentCall {
26219 c.ctx_ = ctx
26220 return c
26221 }
26222
26223
26224
26225 func (c *ProjectsAgentSessionsDetectIntentCall) Header() http.Header {
26226 if c.header_ == nil {
26227 c.header_ = make(http.Header)
26228 }
26229 return c.header_
26230 }
26231
26232 func (c *ProjectsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
26233 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26234 var body io.Reader = nil
26235 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
26236 if err != nil {
26237 return nil, err
26238 }
26239 c.urlParams_.Set("alt", alt)
26240 c.urlParams_.Set("prettyPrint", "false")
26241 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
26242 urls += "?" + c.urlParams_.Encode()
26243 req, err := http.NewRequest("POST", urls, body)
26244 if err != nil {
26245 return nil, err
26246 }
26247 req.Header = reqHeaders
26248 googleapi.Expand(req.URL, map[string]string{
26249 "session": c.sessionid,
26250 })
26251 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26252 }
26253
26254
26255
26256
26257
26258
26259
26260 func (c *ProjectsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
26261 gensupport.SetOptions(c.urlParams_, opts...)
26262 res, err := c.doRequest("json")
26263 if res != nil && res.StatusCode == http.StatusNotModified {
26264 if res.Body != nil {
26265 res.Body.Close()
26266 }
26267 return nil, gensupport.WrapError(&googleapi.Error{
26268 Code: res.StatusCode,
26269 Header: res.Header,
26270 })
26271 }
26272 if err != nil {
26273 return nil, err
26274 }
26275 defer googleapi.CloseBody(res)
26276 if err := googleapi.CheckResponse(res); err != nil {
26277 return nil, gensupport.WrapError(err)
26278 }
26279 ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
26280 ServerResponse: googleapi.ServerResponse{
26281 Header: res.Header,
26282 HTTPStatusCode: res.StatusCode,
26283 },
26284 }
26285 target := &ret
26286 if err := gensupport.DecodeResponse(target, res); err != nil {
26287 return nil, err
26288 }
26289 return ret, nil
26290 }
26291
26292 type ProjectsAgentSessionsContextsCreateCall struct {
26293 s *Service
26294 parent string
26295 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
26296 urlParams_ gensupport.URLParams
26297 ctx_ context.Context
26298 header_ http.Header
26299 }
26300
26301
26302
26303
26304
26305
26306
26307
26308
26309
26310
26311 func (r *ProjectsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsCreateCall {
26312 c := &ProjectsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26313 c.parent = parent
26314 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
26315 return c
26316 }
26317
26318
26319
26320
26321 func (c *ProjectsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsCreateCall {
26322 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26323 return c
26324 }
26325
26326
26327 func (c *ProjectsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsCreateCall {
26328 c.ctx_ = ctx
26329 return c
26330 }
26331
26332
26333
26334 func (c *ProjectsAgentSessionsContextsCreateCall) Header() http.Header {
26335 if c.header_ == nil {
26336 c.header_ = make(http.Header)
26337 }
26338 return c.header_
26339 }
26340
26341 func (c *ProjectsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
26342 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26343 var body io.Reader = nil
26344 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
26345 if err != nil {
26346 return nil, err
26347 }
26348 c.urlParams_.Set("alt", alt)
26349 c.urlParams_.Set("prettyPrint", "false")
26350 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
26351 urls += "?" + c.urlParams_.Encode()
26352 req, err := http.NewRequest("POST", urls, body)
26353 if err != nil {
26354 return nil, err
26355 }
26356 req.Header = reqHeaders
26357 googleapi.Expand(req.URL, map[string]string{
26358 "parent": c.parent,
26359 })
26360 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26361 }
26362
26363
26364
26365
26366
26367
26368
26369 func (c *ProjectsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
26370 gensupport.SetOptions(c.urlParams_, opts...)
26371 res, err := c.doRequest("json")
26372 if res != nil && res.StatusCode == http.StatusNotModified {
26373 if res.Body != nil {
26374 res.Body.Close()
26375 }
26376 return nil, gensupport.WrapError(&googleapi.Error{
26377 Code: res.StatusCode,
26378 Header: res.Header,
26379 })
26380 }
26381 if err != nil {
26382 return nil, err
26383 }
26384 defer googleapi.CloseBody(res)
26385 if err := googleapi.CheckResponse(res); err != nil {
26386 return nil, gensupport.WrapError(err)
26387 }
26388 ret := &GoogleCloudDialogflowV2beta1Context{
26389 ServerResponse: googleapi.ServerResponse{
26390 Header: res.Header,
26391 HTTPStatusCode: res.StatusCode,
26392 },
26393 }
26394 target := &ret
26395 if err := gensupport.DecodeResponse(target, res); err != nil {
26396 return nil, err
26397 }
26398 return ret, nil
26399 }
26400
26401 type ProjectsAgentSessionsContextsDeleteCall struct {
26402 s *Service
26403 name string
26404 urlParams_ gensupport.URLParams
26405 ctx_ context.Context
26406 header_ http.Header
26407 }
26408
26409
26410
26411
26412
26413
26414
26415
26416
26417
26418
26419 func (r *ProjectsAgentSessionsContextsService) Delete(name string) *ProjectsAgentSessionsContextsDeleteCall {
26420 c := &ProjectsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26421 c.name = name
26422 return c
26423 }
26424
26425
26426
26427
26428 func (c *ProjectsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsDeleteCall {
26429 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26430 return c
26431 }
26432
26433
26434 func (c *ProjectsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsDeleteCall {
26435 c.ctx_ = ctx
26436 return c
26437 }
26438
26439
26440
26441 func (c *ProjectsAgentSessionsContextsDeleteCall) Header() http.Header {
26442 if c.header_ == nil {
26443 c.header_ = make(http.Header)
26444 }
26445 return c.header_
26446 }
26447
26448 func (c *ProjectsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
26449 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26450 var body io.Reader = nil
26451 c.urlParams_.Set("alt", alt)
26452 c.urlParams_.Set("prettyPrint", "false")
26453 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26454 urls += "?" + c.urlParams_.Encode()
26455 req, err := http.NewRequest("DELETE", urls, body)
26456 if err != nil {
26457 return nil, err
26458 }
26459 req.Header = reqHeaders
26460 googleapi.Expand(req.URL, map[string]string{
26461 "name": c.name,
26462 })
26463 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26464 }
26465
26466
26467
26468
26469
26470
26471
26472 func (c *ProjectsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26473 gensupport.SetOptions(c.urlParams_, opts...)
26474 res, err := c.doRequest("json")
26475 if res != nil && res.StatusCode == http.StatusNotModified {
26476 if res.Body != nil {
26477 res.Body.Close()
26478 }
26479 return nil, gensupport.WrapError(&googleapi.Error{
26480 Code: res.StatusCode,
26481 Header: res.Header,
26482 })
26483 }
26484 if err != nil {
26485 return nil, err
26486 }
26487 defer googleapi.CloseBody(res)
26488 if err := googleapi.CheckResponse(res); err != nil {
26489 return nil, gensupport.WrapError(err)
26490 }
26491 ret := &GoogleProtobufEmpty{
26492 ServerResponse: googleapi.ServerResponse{
26493 Header: res.Header,
26494 HTTPStatusCode: res.StatusCode,
26495 },
26496 }
26497 target := &ret
26498 if err := gensupport.DecodeResponse(target, res); err != nil {
26499 return nil, err
26500 }
26501 return ret, nil
26502 }
26503
26504 type ProjectsAgentSessionsContextsGetCall struct {
26505 s *Service
26506 name string
26507 urlParams_ gensupport.URLParams
26508 ifNoneMatch_ string
26509 ctx_ context.Context
26510 header_ http.Header
26511 }
26512
26513
26514
26515
26516
26517
26518
26519
26520
26521
26522
26523 func (r *ProjectsAgentSessionsContextsService) Get(name string) *ProjectsAgentSessionsContextsGetCall {
26524 c := &ProjectsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26525 c.name = name
26526 return c
26527 }
26528
26529
26530
26531
26532 func (c *ProjectsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsGetCall {
26533 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26534 return c
26535 }
26536
26537
26538
26539
26540 func (c *ProjectsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsGetCall {
26541 c.ifNoneMatch_ = entityTag
26542 return c
26543 }
26544
26545
26546 func (c *ProjectsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsGetCall {
26547 c.ctx_ = ctx
26548 return c
26549 }
26550
26551
26552
26553 func (c *ProjectsAgentSessionsContextsGetCall) Header() http.Header {
26554 if c.header_ == nil {
26555 c.header_ = make(http.Header)
26556 }
26557 return c.header_
26558 }
26559
26560 func (c *ProjectsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
26561 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26562 if c.ifNoneMatch_ != "" {
26563 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26564 }
26565 var body io.Reader = nil
26566 c.urlParams_.Set("alt", alt)
26567 c.urlParams_.Set("prettyPrint", "false")
26568 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26569 urls += "?" + c.urlParams_.Encode()
26570 req, err := http.NewRequest("GET", urls, body)
26571 if err != nil {
26572 return nil, err
26573 }
26574 req.Header = reqHeaders
26575 googleapi.Expand(req.URL, map[string]string{
26576 "name": c.name,
26577 })
26578 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26579 }
26580
26581
26582
26583
26584
26585
26586
26587 func (c *ProjectsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
26588 gensupport.SetOptions(c.urlParams_, opts...)
26589 res, err := c.doRequest("json")
26590 if res != nil && res.StatusCode == http.StatusNotModified {
26591 if res.Body != nil {
26592 res.Body.Close()
26593 }
26594 return nil, gensupport.WrapError(&googleapi.Error{
26595 Code: res.StatusCode,
26596 Header: res.Header,
26597 })
26598 }
26599 if err != nil {
26600 return nil, err
26601 }
26602 defer googleapi.CloseBody(res)
26603 if err := googleapi.CheckResponse(res); err != nil {
26604 return nil, gensupport.WrapError(err)
26605 }
26606 ret := &GoogleCloudDialogflowV2beta1Context{
26607 ServerResponse: googleapi.ServerResponse{
26608 Header: res.Header,
26609 HTTPStatusCode: res.StatusCode,
26610 },
26611 }
26612 target := &ret
26613 if err := gensupport.DecodeResponse(target, res); err != nil {
26614 return nil, err
26615 }
26616 return ret, nil
26617 }
26618
26619 type ProjectsAgentSessionsContextsListCall struct {
26620 s *Service
26621 parent string
26622 urlParams_ gensupport.URLParams
26623 ifNoneMatch_ string
26624 ctx_ context.Context
26625 header_ http.Header
26626 }
26627
26628
26629
26630
26631
26632
26633
26634
26635
26636
26637 func (r *ProjectsAgentSessionsContextsService) List(parent string) *ProjectsAgentSessionsContextsListCall {
26638 c := &ProjectsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26639 c.parent = parent
26640 return c
26641 }
26642
26643
26644
26645 func (c *ProjectsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsAgentSessionsContextsListCall {
26646 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26647 return c
26648 }
26649
26650
26651
26652 func (c *ProjectsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsAgentSessionsContextsListCall {
26653 c.urlParams_.Set("pageToken", pageToken)
26654 return c
26655 }
26656
26657
26658
26659
26660 func (c *ProjectsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsListCall {
26661 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26662 return c
26663 }
26664
26665
26666
26667
26668 func (c *ProjectsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsContextsListCall {
26669 c.ifNoneMatch_ = entityTag
26670 return c
26671 }
26672
26673
26674 func (c *ProjectsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsListCall {
26675 c.ctx_ = ctx
26676 return c
26677 }
26678
26679
26680
26681 func (c *ProjectsAgentSessionsContextsListCall) Header() http.Header {
26682 if c.header_ == nil {
26683 c.header_ = make(http.Header)
26684 }
26685 return c.header_
26686 }
26687
26688 func (c *ProjectsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
26689 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26690 if c.ifNoneMatch_ != "" {
26691 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26692 }
26693 var body io.Reader = nil
26694 c.urlParams_.Set("alt", alt)
26695 c.urlParams_.Set("prettyPrint", "false")
26696 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
26697 urls += "?" + c.urlParams_.Encode()
26698 req, err := http.NewRequest("GET", urls, body)
26699 if err != nil {
26700 return nil, err
26701 }
26702 req.Header = reqHeaders
26703 googleapi.Expand(req.URL, map[string]string{
26704 "parent": c.parent,
26705 })
26706 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26707 }
26708
26709
26710
26711
26712
26713
26714
26715 func (c *ProjectsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
26716 gensupport.SetOptions(c.urlParams_, opts...)
26717 res, err := c.doRequest("json")
26718 if res != nil && res.StatusCode == http.StatusNotModified {
26719 if res.Body != nil {
26720 res.Body.Close()
26721 }
26722 return nil, gensupport.WrapError(&googleapi.Error{
26723 Code: res.StatusCode,
26724 Header: res.Header,
26725 })
26726 }
26727 if err != nil {
26728 return nil, err
26729 }
26730 defer googleapi.CloseBody(res)
26731 if err := googleapi.CheckResponse(res); err != nil {
26732 return nil, gensupport.WrapError(err)
26733 }
26734 ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
26735 ServerResponse: googleapi.ServerResponse{
26736 Header: res.Header,
26737 HTTPStatusCode: res.StatusCode,
26738 },
26739 }
26740 target := &ret
26741 if err := gensupport.DecodeResponse(target, res); err != nil {
26742 return nil, err
26743 }
26744 return ret, nil
26745 }
26746
26747
26748
26749
26750 func (c *ProjectsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
26751 c.ctx_ = ctx
26752 defer c.PageToken(c.urlParams_.Get("pageToken"))
26753 for {
26754 x, err := c.Do()
26755 if err != nil {
26756 return err
26757 }
26758 if err := f(x); err != nil {
26759 return err
26760 }
26761 if x.NextPageToken == "" {
26762 return nil
26763 }
26764 c.PageToken(x.NextPageToken)
26765 }
26766 }
26767
26768 type ProjectsAgentSessionsContextsPatchCall struct {
26769 s *Service
26770 nameid string
26771 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
26772 urlParams_ gensupport.URLParams
26773 ctx_ context.Context
26774 header_ http.Header
26775 }
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786
26787
26788
26789
26790
26791 func (r *ProjectsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsAgentSessionsContextsPatchCall {
26792 c := &ProjectsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26793 c.nameid = nameid
26794 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
26795 return c
26796 }
26797
26798
26799
26800 func (c *ProjectsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsContextsPatchCall {
26801 c.urlParams_.Set("updateMask", updateMask)
26802 return c
26803 }
26804
26805
26806
26807
26808 func (c *ProjectsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsContextsPatchCall {
26809 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26810 return c
26811 }
26812
26813
26814 func (c *ProjectsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsContextsPatchCall {
26815 c.ctx_ = ctx
26816 return c
26817 }
26818
26819
26820
26821 func (c *ProjectsAgentSessionsContextsPatchCall) Header() http.Header {
26822 if c.header_ == nil {
26823 c.header_ = make(http.Header)
26824 }
26825 return c.header_
26826 }
26827
26828 func (c *ProjectsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
26829 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26830 var body io.Reader = nil
26831 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
26832 if err != nil {
26833 return nil, err
26834 }
26835 c.urlParams_.Set("alt", alt)
26836 c.urlParams_.Set("prettyPrint", "false")
26837 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
26838 urls += "?" + c.urlParams_.Encode()
26839 req, err := http.NewRequest("PATCH", urls, body)
26840 if err != nil {
26841 return nil, err
26842 }
26843 req.Header = reqHeaders
26844 googleapi.Expand(req.URL, map[string]string{
26845 "name": c.nameid,
26846 })
26847 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26848 }
26849
26850
26851
26852
26853
26854
26855
26856 func (c *ProjectsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
26857 gensupport.SetOptions(c.urlParams_, opts...)
26858 res, err := c.doRequest("json")
26859 if res != nil && res.StatusCode == http.StatusNotModified {
26860 if res.Body != nil {
26861 res.Body.Close()
26862 }
26863 return nil, gensupport.WrapError(&googleapi.Error{
26864 Code: res.StatusCode,
26865 Header: res.Header,
26866 })
26867 }
26868 if err != nil {
26869 return nil, err
26870 }
26871 defer googleapi.CloseBody(res)
26872 if err := googleapi.CheckResponse(res); err != nil {
26873 return nil, gensupport.WrapError(err)
26874 }
26875 ret := &GoogleCloudDialogflowV2beta1Context{
26876 ServerResponse: googleapi.ServerResponse{
26877 Header: res.Header,
26878 HTTPStatusCode: res.StatusCode,
26879 },
26880 }
26881 target := &ret
26882 if err := gensupport.DecodeResponse(target, res); err != nil {
26883 return nil, err
26884 }
26885 return ret, nil
26886 }
26887
26888 type ProjectsAgentSessionsEntityTypesCreateCall struct {
26889 s *Service
26890 parent string
26891 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
26892 urlParams_ gensupport.URLParams
26893 ctx_ context.Context
26894 header_ http.Header
26895 }
26896
26897
26898
26899
26900
26901
26902
26903
26904
26905
26906
26907
26908
26909
26910 func (r *ProjectsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesCreateCall {
26911 c := &ProjectsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26912 c.parent = parent
26913 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
26914 return c
26915 }
26916
26917
26918
26919
26920 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesCreateCall {
26921 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26922 return c
26923 }
26924
26925
26926 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesCreateCall {
26927 c.ctx_ = ctx
26928 return c
26929 }
26930
26931
26932
26933 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Header() http.Header {
26934 if c.header_ == nil {
26935 c.header_ = make(http.Header)
26936 }
26937 return c.header_
26938 }
26939
26940 func (c *ProjectsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
26941 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26942 var body io.Reader = nil
26943 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
26944 if err != nil {
26945 return nil, err
26946 }
26947 c.urlParams_.Set("alt", alt)
26948 c.urlParams_.Set("prettyPrint", "false")
26949 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
26950 urls += "?" + c.urlParams_.Encode()
26951 req, err := http.NewRequest("POST", urls, body)
26952 if err != nil {
26953 return nil, err
26954 }
26955 req.Header = reqHeaders
26956 googleapi.Expand(req.URL, map[string]string{
26957 "parent": c.parent,
26958 })
26959 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26960 }
26961
26962
26963
26964
26965
26966
26967
26968 func (c *ProjectsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
26969 gensupport.SetOptions(c.urlParams_, opts...)
26970 res, err := c.doRequest("json")
26971 if res != nil && res.StatusCode == http.StatusNotModified {
26972 if res.Body != nil {
26973 res.Body.Close()
26974 }
26975 return nil, gensupport.WrapError(&googleapi.Error{
26976 Code: res.StatusCode,
26977 Header: res.Header,
26978 })
26979 }
26980 if err != nil {
26981 return nil, err
26982 }
26983 defer googleapi.CloseBody(res)
26984 if err := googleapi.CheckResponse(res); err != nil {
26985 return nil, gensupport.WrapError(err)
26986 }
26987 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
26988 ServerResponse: googleapi.ServerResponse{
26989 Header: res.Header,
26990 HTTPStatusCode: res.StatusCode,
26991 },
26992 }
26993 target := &ret
26994 if err := gensupport.DecodeResponse(target, res); err != nil {
26995 return nil, err
26996 }
26997 return ret, nil
26998 }
26999
27000 type ProjectsAgentSessionsEntityTypesDeleteCall struct {
27001 s *Service
27002 name string
27003 urlParams_ gensupport.URLParams
27004 ctx_ context.Context
27005 header_ http.Header
27006 }
27007
27008
27009
27010
27011
27012
27013
27014
27015
27016
27017
27018
27019
27020 func (r *ProjectsAgentSessionsEntityTypesService) Delete(name string) *ProjectsAgentSessionsEntityTypesDeleteCall {
27021 c := &ProjectsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27022 c.name = name
27023 return c
27024 }
27025
27026
27027
27028
27029 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesDeleteCall {
27030 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27031 return c
27032 }
27033
27034
27035 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesDeleteCall {
27036 c.ctx_ = ctx
27037 return c
27038 }
27039
27040
27041
27042 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
27043 if c.header_ == nil {
27044 c.header_ = make(http.Header)
27045 }
27046 return c.header_
27047 }
27048
27049 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
27050 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27051 var body io.Reader = nil
27052 c.urlParams_.Set("alt", alt)
27053 c.urlParams_.Set("prettyPrint", "false")
27054 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27055 urls += "?" + c.urlParams_.Encode()
27056 req, err := http.NewRequest("DELETE", urls, body)
27057 if err != nil {
27058 return nil, err
27059 }
27060 req.Header = reqHeaders
27061 googleapi.Expand(req.URL, map[string]string{
27062 "name": c.name,
27063 })
27064 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27065 }
27066
27067
27068
27069
27070
27071
27072
27073 func (c *ProjectsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27074 gensupport.SetOptions(c.urlParams_, opts...)
27075 res, err := c.doRequest("json")
27076 if res != nil && res.StatusCode == http.StatusNotModified {
27077 if res.Body != nil {
27078 res.Body.Close()
27079 }
27080 return nil, gensupport.WrapError(&googleapi.Error{
27081 Code: res.StatusCode,
27082 Header: res.Header,
27083 })
27084 }
27085 if err != nil {
27086 return nil, err
27087 }
27088 defer googleapi.CloseBody(res)
27089 if err := googleapi.CheckResponse(res); err != nil {
27090 return nil, gensupport.WrapError(err)
27091 }
27092 ret := &GoogleProtobufEmpty{
27093 ServerResponse: googleapi.ServerResponse{
27094 Header: res.Header,
27095 HTTPStatusCode: res.StatusCode,
27096 },
27097 }
27098 target := &ret
27099 if err := gensupport.DecodeResponse(target, res); err != nil {
27100 return nil, err
27101 }
27102 return ret, nil
27103 }
27104
27105 type ProjectsAgentSessionsEntityTypesGetCall struct {
27106 s *Service
27107 name string
27108 urlParams_ gensupport.URLParams
27109 ifNoneMatch_ string
27110 ctx_ context.Context
27111 header_ http.Header
27112 }
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126 func (r *ProjectsAgentSessionsEntityTypesService) Get(name string) *ProjectsAgentSessionsEntityTypesGetCall {
27127 c := &ProjectsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27128 c.name = name
27129 return c
27130 }
27131
27132
27133
27134
27135 func (c *ProjectsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesGetCall {
27136 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27137 return c
27138 }
27139
27140
27141
27142
27143 func (c *ProjectsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesGetCall {
27144 c.ifNoneMatch_ = entityTag
27145 return c
27146 }
27147
27148
27149 func (c *ProjectsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesGetCall {
27150 c.ctx_ = ctx
27151 return c
27152 }
27153
27154
27155
27156 func (c *ProjectsAgentSessionsEntityTypesGetCall) Header() http.Header {
27157 if c.header_ == nil {
27158 c.header_ = make(http.Header)
27159 }
27160 return c.header_
27161 }
27162
27163 func (c *ProjectsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
27164 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27165 if c.ifNoneMatch_ != "" {
27166 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27167 }
27168 var body io.Reader = nil
27169 c.urlParams_.Set("alt", alt)
27170 c.urlParams_.Set("prettyPrint", "false")
27171 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27172 urls += "?" + c.urlParams_.Encode()
27173 req, err := http.NewRequest("GET", urls, body)
27174 if err != nil {
27175 return nil, err
27176 }
27177 req.Header = reqHeaders
27178 googleapi.Expand(req.URL, map[string]string{
27179 "name": c.name,
27180 })
27181 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27182 }
27183
27184
27185
27186
27187
27188
27189
27190 func (c *ProjectsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
27191 gensupport.SetOptions(c.urlParams_, opts...)
27192 res, err := c.doRequest("json")
27193 if res != nil && res.StatusCode == http.StatusNotModified {
27194 if res.Body != nil {
27195 res.Body.Close()
27196 }
27197 return nil, gensupport.WrapError(&googleapi.Error{
27198 Code: res.StatusCode,
27199 Header: res.Header,
27200 })
27201 }
27202 if err != nil {
27203 return nil, err
27204 }
27205 defer googleapi.CloseBody(res)
27206 if err := googleapi.CheckResponse(res); err != nil {
27207 return nil, gensupport.WrapError(err)
27208 }
27209 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
27210 ServerResponse: googleapi.ServerResponse{
27211 Header: res.Header,
27212 HTTPStatusCode: res.StatusCode,
27213 },
27214 }
27215 target := &ret
27216 if err := gensupport.DecodeResponse(target, res); err != nil {
27217 return nil, err
27218 }
27219 return ret, nil
27220 }
27221
27222 type ProjectsAgentSessionsEntityTypesListCall struct {
27223 s *Service
27224 parent string
27225 urlParams_ gensupport.URLParams
27226 ifNoneMatch_ string
27227 ctx_ context.Context
27228 header_ http.Header
27229 }
27230
27231
27232
27233
27234
27235
27236
27237
27238
27239
27240
27241
27242
27243
27244 func (r *ProjectsAgentSessionsEntityTypesService) List(parent string) *ProjectsAgentSessionsEntityTypesListCall {
27245 c := &ProjectsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27246 c.parent = parent
27247 return c
27248 }
27249
27250
27251
27252 func (c *ProjectsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsAgentSessionsEntityTypesListCall {
27253 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27254 return c
27255 }
27256
27257
27258
27259 func (c *ProjectsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsAgentSessionsEntityTypesListCall {
27260 c.urlParams_.Set("pageToken", pageToken)
27261 return c
27262 }
27263
27264
27265
27266
27267 func (c *ProjectsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesListCall {
27268 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27269 return c
27270 }
27271
27272
27273
27274
27275 func (c *ProjectsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsAgentSessionsEntityTypesListCall {
27276 c.ifNoneMatch_ = entityTag
27277 return c
27278 }
27279
27280
27281 func (c *ProjectsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesListCall {
27282 c.ctx_ = ctx
27283 return c
27284 }
27285
27286
27287
27288 func (c *ProjectsAgentSessionsEntityTypesListCall) Header() http.Header {
27289 if c.header_ == nil {
27290 c.header_ = make(http.Header)
27291 }
27292 return c.header_
27293 }
27294
27295 func (c *ProjectsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
27296 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27297 if c.ifNoneMatch_ != "" {
27298 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27299 }
27300 var body io.Reader = nil
27301 c.urlParams_.Set("alt", alt)
27302 c.urlParams_.Set("prettyPrint", "false")
27303 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
27304 urls += "?" + c.urlParams_.Encode()
27305 req, err := http.NewRequest("GET", urls, body)
27306 if err != nil {
27307 return nil, err
27308 }
27309 req.Header = reqHeaders
27310 googleapi.Expand(req.URL, map[string]string{
27311 "parent": c.parent,
27312 })
27313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27314 }
27315
27316
27317
27318
27319
27320
27321
27322 func (c *ProjectsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
27323 gensupport.SetOptions(c.urlParams_, opts...)
27324 res, err := c.doRequest("json")
27325 if res != nil && res.StatusCode == http.StatusNotModified {
27326 if res.Body != nil {
27327 res.Body.Close()
27328 }
27329 return nil, gensupport.WrapError(&googleapi.Error{
27330 Code: res.StatusCode,
27331 Header: res.Header,
27332 })
27333 }
27334 if err != nil {
27335 return nil, err
27336 }
27337 defer googleapi.CloseBody(res)
27338 if err := googleapi.CheckResponse(res); err != nil {
27339 return nil, gensupport.WrapError(err)
27340 }
27341 ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
27342 ServerResponse: googleapi.ServerResponse{
27343 Header: res.Header,
27344 HTTPStatusCode: res.StatusCode,
27345 },
27346 }
27347 target := &ret
27348 if err := gensupport.DecodeResponse(target, res); err != nil {
27349 return nil, err
27350 }
27351 return ret, nil
27352 }
27353
27354
27355
27356
27357 func (c *ProjectsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
27358 c.ctx_ = ctx
27359 defer c.PageToken(c.urlParams_.Get("pageToken"))
27360 for {
27361 x, err := c.Do()
27362 if err != nil {
27363 return err
27364 }
27365 if err := f(x); err != nil {
27366 return err
27367 }
27368 if x.NextPageToken == "" {
27369 return nil
27370 }
27371 c.PageToken(x.NextPageToken)
27372 }
27373 }
27374
27375 type ProjectsAgentSessionsEntityTypesPatchCall struct {
27376 s *Service
27377 nameid string
27378 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
27379 urlParams_ gensupport.URLParams
27380 ctx_ context.Context
27381 header_ http.Header
27382 }
27383
27384
27385
27386
27387
27388
27389
27390
27391
27392
27393
27394
27395
27396
27397
27398 func (r *ProjectsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsAgentSessionsEntityTypesPatchCall {
27399 c := &ProjectsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27400 c.nameid = nameid
27401 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
27402 return c
27403 }
27404
27405
27406
27407 func (c *ProjectsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsAgentSessionsEntityTypesPatchCall {
27408 c.urlParams_.Set("updateMask", updateMask)
27409 return c
27410 }
27411
27412
27413
27414
27415 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentSessionsEntityTypesPatchCall {
27416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27417 return c
27418 }
27419
27420
27421 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsAgentSessionsEntityTypesPatchCall {
27422 c.ctx_ = ctx
27423 return c
27424 }
27425
27426
27427
27428 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Header() http.Header {
27429 if c.header_ == nil {
27430 c.header_ = make(http.Header)
27431 }
27432 return c.header_
27433 }
27434
27435 func (c *ProjectsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
27436 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27437 var body io.Reader = nil
27438 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
27439 if err != nil {
27440 return nil, err
27441 }
27442 c.urlParams_.Set("alt", alt)
27443 c.urlParams_.Set("prettyPrint", "false")
27444 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27445 urls += "?" + c.urlParams_.Encode()
27446 req, err := http.NewRequest("PATCH", urls, body)
27447 if err != nil {
27448 return nil, err
27449 }
27450 req.Header = reqHeaders
27451 googleapi.Expand(req.URL, map[string]string{
27452 "name": c.nameid,
27453 })
27454 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27455 }
27456
27457
27458
27459
27460
27461
27462
27463 func (c *ProjectsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
27464 gensupport.SetOptions(c.urlParams_, opts...)
27465 res, err := c.doRequest("json")
27466 if res != nil && res.StatusCode == http.StatusNotModified {
27467 if res.Body != nil {
27468 res.Body.Close()
27469 }
27470 return nil, gensupport.WrapError(&googleapi.Error{
27471 Code: res.StatusCode,
27472 Header: res.Header,
27473 })
27474 }
27475 if err != nil {
27476 return nil, err
27477 }
27478 defer googleapi.CloseBody(res)
27479 if err := googleapi.CheckResponse(res); err != nil {
27480 return nil, gensupport.WrapError(err)
27481 }
27482 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
27483 ServerResponse: googleapi.ServerResponse{
27484 Header: res.Header,
27485 HTTPStatusCode: res.StatusCode,
27486 },
27487 }
27488 target := &ret
27489 if err := gensupport.DecodeResponse(target, res); err != nil {
27490 return nil, err
27491 }
27492 return ret, nil
27493 }
27494
27495 type ProjectsAgentVersionsCreateCall struct {
27496 s *Service
27497 parent string
27498 googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
27499 urlParams_ gensupport.URLParams
27500 ctx_ context.Context
27501 header_ http.Header
27502 }
27503
27504
27505
27506
27507
27508
27509 func (r *ProjectsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsCreateCall {
27510 c := &ProjectsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27511 c.parent = parent
27512 c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
27513 return c
27514 }
27515
27516
27517
27518
27519 func (c *ProjectsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsCreateCall {
27520 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27521 return c
27522 }
27523
27524
27525 func (c *ProjectsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsAgentVersionsCreateCall {
27526 c.ctx_ = ctx
27527 return c
27528 }
27529
27530
27531
27532 func (c *ProjectsAgentVersionsCreateCall) Header() http.Header {
27533 if c.header_ == nil {
27534 c.header_ = make(http.Header)
27535 }
27536 return c.header_
27537 }
27538
27539 func (c *ProjectsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
27540 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27541 var body io.Reader = nil
27542 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
27543 if err != nil {
27544 return nil, err
27545 }
27546 c.urlParams_.Set("alt", alt)
27547 c.urlParams_.Set("prettyPrint", "false")
27548 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
27549 urls += "?" + c.urlParams_.Encode()
27550 req, err := http.NewRequest("POST", urls, body)
27551 if err != nil {
27552 return nil, err
27553 }
27554 req.Header = reqHeaders
27555 googleapi.Expand(req.URL, map[string]string{
27556 "parent": c.parent,
27557 })
27558 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27559 }
27560
27561
27562
27563
27564
27565
27566
27567 func (c *ProjectsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
27568 gensupport.SetOptions(c.urlParams_, opts...)
27569 res, err := c.doRequest("json")
27570 if res != nil && res.StatusCode == http.StatusNotModified {
27571 if res.Body != nil {
27572 res.Body.Close()
27573 }
27574 return nil, gensupport.WrapError(&googleapi.Error{
27575 Code: res.StatusCode,
27576 Header: res.Header,
27577 })
27578 }
27579 if err != nil {
27580 return nil, err
27581 }
27582 defer googleapi.CloseBody(res)
27583 if err := googleapi.CheckResponse(res); err != nil {
27584 return nil, gensupport.WrapError(err)
27585 }
27586 ret := &GoogleCloudDialogflowV2beta1Version{
27587 ServerResponse: googleapi.ServerResponse{
27588 Header: res.Header,
27589 HTTPStatusCode: res.StatusCode,
27590 },
27591 }
27592 target := &ret
27593 if err := gensupport.DecodeResponse(target, res); err != nil {
27594 return nil, err
27595 }
27596 return ret, nil
27597 }
27598
27599 type ProjectsAgentVersionsDeleteCall struct {
27600 s *Service
27601 name string
27602 urlParams_ gensupport.URLParams
27603 ctx_ context.Context
27604 header_ http.Header
27605 }
27606
27607
27608
27609
27610
27611 func (r *ProjectsAgentVersionsService) Delete(name string) *ProjectsAgentVersionsDeleteCall {
27612 c := &ProjectsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27613 c.name = name
27614 return c
27615 }
27616
27617
27618
27619
27620 func (c *ProjectsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsDeleteCall {
27621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27622 return c
27623 }
27624
27625
27626 func (c *ProjectsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsAgentVersionsDeleteCall {
27627 c.ctx_ = ctx
27628 return c
27629 }
27630
27631
27632
27633 func (c *ProjectsAgentVersionsDeleteCall) Header() http.Header {
27634 if c.header_ == nil {
27635 c.header_ = make(http.Header)
27636 }
27637 return c.header_
27638 }
27639
27640 func (c *ProjectsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
27641 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27642 var body io.Reader = nil
27643 c.urlParams_.Set("alt", alt)
27644 c.urlParams_.Set("prettyPrint", "false")
27645 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27646 urls += "?" + c.urlParams_.Encode()
27647 req, err := http.NewRequest("DELETE", urls, body)
27648 if err != nil {
27649 return nil, err
27650 }
27651 req.Header = reqHeaders
27652 googleapi.Expand(req.URL, map[string]string{
27653 "name": c.name,
27654 })
27655 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27656 }
27657
27658
27659
27660
27661
27662
27663
27664 func (c *ProjectsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27665 gensupport.SetOptions(c.urlParams_, opts...)
27666 res, err := c.doRequest("json")
27667 if res != nil && res.StatusCode == http.StatusNotModified {
27668 if res.Body != nil {
27669 res.Body.Close()
27670 }
27671 return nil, gensupport.WrapError(&googleapi.Error{
27672 Code: res.StatusCode,
27673 Header: res.Header,
27674 })
27675 }
27676 if err != nil {
27677 return nil, err
27678 }
27679 defer googleapi.CloseBody(res)
27680 if err := googleapi.CheckResponse(res); err != nil {
27681 return nil, gensupport.WrapError(err)
27682 }
27683 ret := &GoogleProtobufEmpty{
27684 ServerResponse: googleapi.ServerResponse{
27685 Header: res.Header,
27686 HTTPStatusCode: res.StatusCode,
27687 },
27688 }
27689 target := &ret
27690 if err := gensupport.DecodeResponse(target, res); err != nil {
27691 return nil, err
27692 }
27693 return ret, nil
27694 }
27695
27696 type ProjectsAgentVersionsGetCall struct {
27697 s *Service
27698 name string
27699 urlParams_ gensupport.URLParams
27700 ifNoneMatch_ string
27701 ctx_ context.Context
27702 header_ http.Header
27703 }
27704
27705
27706
27707
27708
27709 func (r *ProjectsAgentVersionsService) Get(name string) *ProjectsAgentVersionsGetCall {
27710 c := &ProjectsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27711 c.name = name
27712 return c
27713 }
27714
27715
27716
27717
27718 func (c *ProjectsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsGetCall {
27719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27720 return c
27721 }
27722
27723
27724
27725
27726 func (c *ProjectsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsGetCall {
27727 c.ifNoneMatch_ = entityTag
27728 return c
27729 }
27730
27731
27732 func (c *ProjectsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsAgentVersionsGetCall {
27733 c.ctx_ = ctx
27734 return c
27735 }
27736
27737
27738
27739 func (c *ProjectsAgentVersionsGetCall) Header() http.Header {
27740 if c.header_ == nil {
27741 c.header_ = make(http.Header)
27742 }
27743 return c.header_
27744 }
27745
27746 func (c *ProjectsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
27747 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27748 if c.ifNoneMatch_ != "" {
27749 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27750 }
27751 var body io.Reader = nil
27752 c.urlParams_.Set("alt", alt)
27753 c.urlParams_.Set("prettyPrint", "false")
27754 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
27755 urls += "?" + c.urlParams_.Encode()
27756 req, err := http.NewRequest("GET", urls, body)
27757 if err != nil {
27758 return nil, err
27759 }
27760 req.Header = reqHeaders
27761 googleapi.Expand(req.URL, map[string]string{
27762 "name": c.name,
27763 })
27764 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27765 }
27766
27767
27768
27769
27770
27771
27772
27773 func (c *ProjectsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
27774 gensupport.SetOptions(c.urlParams_, opts...)
27775 res, err := c.doRequest("json")
27776 if res != nil && res.StatusCode == http.StatusNotModified {
27777 if res.Body != nil {
27778 res.Body.Close()
27779 }
27780 return nil, gensupport.WrapError(&googleapi.Error{
27781 Code: res.StatusCode,
27782 Header: res.Header,
27783 })
27784 }
27785 if err != nil {
27786 return nil, err
27787 }
27788 defer googleapi.CloseBody(res)
27789 if err := googleapi.CheckResponse(res); err != nil {
27790 return nil, gensupport.WrapError(err)
27791 }
27792 ret := &GoogleCloudDialogflowV2beta1Version{
27793 ServerResponse: googleapi.ServerResponse{
27794 Header: res.Header,
27795 HTTPStatusCode: res.StatusCode,
27796 },
27797 }
27798 target := &ret
27799 if err := gensupport.DecodeResponse(target, res); err != nil {
27800 return nil, err
27801 }
27802 return ret, nil
27803 }
27804
27805 type ProjectsAgentVersionsListCall struct {
27806 s *Service
27807 parent string
27808 urlParams_ gensupport.URLParams
27809 ifNoneMatch_ string
27810 ctx_ context.Context
27811 header_ http.Header
27812 }
27813
27814
27815
27816
27817
27818 func (r *ProjectsAgentVersionsService) List(parent string) *ProjectsAgentVersionsListCall {
27819 c := &ProjectsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27820 c.parent = parent
27821 return c
27822 }
27823
27824
27825
27826 func (c *ProjectsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsAgentVersionsListCall {
27827 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27828 return c
27829 }
27830
27831
27832
27833 func (c *ProjectsAgentVersionsListCall) PageToken(pageToken string) *ProjectsAgentVersionsListCall {
27834 c.urlParams_.Set("pageToken", pageToken)
27835 return c
27836 }
27837
27838
27839
27840
27841 func (c *ProjectsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsListCall {
27842 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27843 return c
27844 }
27845
27846
27847
27848
27849 func (c *ProjectsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsAgentVersionsListCall {
27850 c.ifNoneMatch_ = entityTag
27851 return c
27852 }
27853
27854
27855 func (c *ProjectsAgentVersionsListCall) Context(ctx context.Context) *ProjectsAgentVersionsListCall {
27856 c.ctx_ = ctx
27857 return c
27858 }
27859
27860
27861
27862 func (c *ProjectsAgentVersionsListCall) Header() http.Header {
27863 if c.header_ == nil {
27864 c.header_ = make(http.Header)
27865 }
27866 return c.header_
27867 }
27868
27869 func (c *ProjectsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
27870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27871 if c.ifNoneMatch_ != "" {
27872 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27873 }
27874 var body io.Reader = nil
27875 c.urlParams_.Set("alt", alt)
27876 c.urlParams_.Set("prettyPrint", "false")
27877 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
27878 urls += "?" + c.urlParams_.Encode()
27879 req, err := http.NewRequest("GET", urls, body)
27880 if err != nil {
27881 return nil, err
27882 }
27883 req.Header = reqHeaders
27884 googleapi.Expand(req.URL, map[string]string{
27885 "parent": c.parent,
27886 })
27887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27888 }
27889
27890
27891
27892
27893
27894
27895
27896 func (c *ProjectsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
27897 gensupport.SetOptions(c.urlParams_, opts...)
27898 res, err := c.doRequest("json")
27899 if res != nil && res.StatusCode == http.StatusNotModified {
27900 if res.Body != nil {
27901 res.Body.Close()
27902 }
27903 return nil, gensupport.WrapError(&googleapi.Error{
27904 Code: res.StatusCode,
27905 Header: res.Header,
27906 })
27907 }
27908 if err != nil {
27909 return nil, err
27910 }
27911 defer googleapi.CloseBody(res)
27912 if err := googleapi.CheckResponse(res); err != nil {
27913 return nil, gensupport.WrapError(err)
27914 }
27915 ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
27916 ServerResponse: googleapi.ServerResponse{
27917 Header: res.Header,
27918 HTTPStatusCode: res.StatusCode,
27919 },
27920 }
27921 target := &ret
27922 if err := gensupport.DecodeResponse(target, res); err != nil {
27923 return nil, err
27924 }
27925 return ret, nil
27926 }
27927
27928
27929
27930
27931 func (c *ProjectsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
27932 c.ctx_ = ctx
27933 defer c.PageToken(c.urlParams_.Get("pageToken"))
27934 for {
27935 x, err := c.Do()
27936 if err != nil {
27937 return err
27938 }
27939 if err := f(x); err != nil {
27940 return err
27941 }
27942 if x.NextPageToken == "" {
27943 return nil
27944 }
27945 c.PageToken(x.NextPageToken)
27946 }
27947 }
27948
27949 type ProjectsAgentVersionsPatchCall struct {
27950 s *Service
27951 nameid string
27952 googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
27953 urlParams_ gensupport.URLParams
27954 ctx_ context.Context
27955 header_ http.Header
27956 }
27957
27958
27959
27960
27961
27962
27963
27964
27965 func (r *ProjectsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsAgentVersionsPatchCall {
27966 c := &ProjectsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27967 c.nameid = nameid
27968 c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
27969 return c
27970 }
27971
27972
27973
27974 func (c *ProjectsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsAgentVersionsPatchCall {
27975 c.urlParams_.Set("updateMask", updateMask)
27976 return c
27977 }
27978
27979
27980
27981
27982 func (c *ProjectsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsAgentVersionsPatchCall {
27983 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27984 return c
27985 }
27986
27987
27988 func (c *ProjectsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsAgentVersionsPatchCall {
27989 c.ctx_ = ctx
27990 return c
27991 }
27992
27993
27994
27995 func (c *ProjectsAgentVersionsPatchCall) Header() http.Header {
27996 if c.header_ == nil {
27997 c.header_ = make(http.Header)
27998 }
27999 return c.header_
28000 }
28001
28002 func (c *ProjectsAgentVersionsPatchCall) 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.googleclouddialogflowv2beta1version)
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, "v2beta1/{+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 *ProjectsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, 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 := &GoogleCloudDialogflowV2beta1Version{
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 ProjectsAnswerRecordsGetCall 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 *ProjectsAnswerRecordsService) Get(name string) *ProjectsAnswerRecordsGetCall {
28076 c := &ProjectsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28077 c.name = name
28078 return c
28079 }
28080
28081
28082
28083
28084 func (c *ProjectsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsGetCall {
28085 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28086 return c
28087 }
28088
28089
28090
28091
28092 func (c *ProjectsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsGetCall {
28093 c.ifNoneMatch_ = entityTag
28094 return c
28095 }
28096
28097
28098 func (c *ProjectsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsAnswerRecordsGetCall {
28099 c.ctx_ = ctx
28100 return c
28101 }
28102
28103
28104
28105 func (c *ProjectsAnswerRecordsGetCall) Header() http.Header {
28106 if c.header_ == nil {
28107 c.header_ = make(http.Header)
28108 }
28109 return c.header_
28110 }
28111
28112 func (c *ProjectsAnswerRecordsGetCall) 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, "v2beta1/{+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 *ProjectsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, 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 := &GoogleCloudDialogflowV2beta1AnswerRecord{
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 ProjectsAnswerRecordsListCall struct {
28172 s *Service
28173 parent string
28174 urlParams_ gensupport.URLParams
28175 ifNoneMatch_ string
28176 ctx_ context.Context
28177 header_ http.Header
28178 }
28179
28180
28181
28182
28183
28184
28185 func (r *ProjectsAnswerRecordsService) List(parent string) *ProjectsAnswerRecordsListCall {
28186 c := &ProjectsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28187 c.parent = parent
28188 return c
28189 }
28190
28191
28192
28193
28194 func (c *ProjectsAnswerRecordsListCall) Filter(filter string) *ProjectsAnswerRecordsListCall {
28195 c.urlParams_.Set("filter", filter)
28196 return c
28197 }
28198
28199
28200
28201
28202 func (c *ProjectsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsAnswerRecordsListCall {
28203 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28204 return c
28205 }
28206
28207
28208
28209
28210 func (c *ProjectsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsAnswerRecordsListCall {
28211 c.urlParams_.Set("pageToken", pageToken)
28212 return c
28213 }
28214
28215
28216
28217
28218 func (c *ProjectsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsListCall {
28219 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28220 return c
28221 }
28222
28223
28224
28225
28226 func (c *ProjectsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsAnswerRecordsListCall {
28227 c.ifNoneMatch_ = entityTag
28228 return c
28229 }
28230
28231
28232 func (c *ProjectsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsAnswerRecordsListCall {
28233 c.ctx_ = ctx
28234 return c
28235 }
28236
28237
28238
28239 func (c *ProjectsAnswerRecordsListCall) Header() http.Header {
28240 if c.header_ == nil {
28241 c.header_ = make(http.Header)
28242 }
28243 return c.header_
28244 }
28245
28246 func (c *ProjectsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
28247 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28248 if c.ifNoneMatch_ != "" {
28249 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28250 }
28251 var body io.Reader = nil
28252 c.urlParams_.Set("alt", alt)
28253 c.urlParams_.Set("prettyPrint", "false")
28254 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
28255 urls += "?" + c.urlParams_.Encode()
28256 req, err := http.NewRequest("GET", urls, body)
28257 if err != nil {
28258 return nil, err
28259 }
28260 req.Header = reqHeaders
28261 googleapi.Expand(req.URL, map[string]string{
28262 "parent": c.parent,
28263 })
28264 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28265 }
28266
28267
28268
28269
28270
28271
28272
28273 func (c *ProjectsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
28274 gensupport.SetOptions(c.urlParams_, opts...)
28275 res, err := c.doRequest("json")
28276 if res != nil && res.StatusCode == http.StatusNotModified {
28277 if res.Body != nil {
28278 res.Body.Close()
28279 }
28280 return nil, gensupport.WrapError(&googleapi.Error{
28281 Code: res.StatusCode,
28282 Header: res.Header,
28283 })
28284 }
28285 if err != nil {
28286 return nil, err
28287 }
28288 defer googleapi.CloseBody(res)
28289 if err := googleapi.CheckResponse(res); err != nil {
28290 return nil, gensupport.WrapError(err)
28291 }
28292 ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
28293 ServerResponse: googleapi.ServerResponse{
28294 Header: res.Header,
28295 HTTPStatusCode: res.StatusCode,
28296 },
28297 }
28298 target := &ret
28299 if err := gensupport.DecodeResponse(target, res); err != nil {
28300 return nil, err
28301 }
28302 return ret, nil
28303 }
28304
28305
28306
28307
28308 func (c *ProjectsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
28309 c.ctx_ = ctx
28310 defer c.PageToken(c.urlParams_.Get("pageToken"))
28311 for {
28312 x, err := c.Do()
28313 if err != nil {
28314 return err
28315 }
28316 if err := f(x); err != nil {
28317 return err
28318 }
28319 if x.NextPageToken == "" {
28320 return nil
28321 }
28322 c.PageToken(x.NextPageToken)
28323 }
28324 }
28325
28326 type ProjectsAnswerRecordsPatchCall struct {
28327 s *Service
28328 nameid string
28329 googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
28330 urlParams_ gensupport.URLParams
28331 ctx_ context.Context
28332 header_ http.Header
28333 }
28334
28335
28336
28337
28338
28339
28340 func (r *ProjectsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsAnswerRecordsPatchCall {
28341 c := &ProjectsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28342 c.nameid = nameid
28343 c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
28344 return c
28345 }
28346
28347
28348
28349 func (c *ProjectsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsAnswerRecordsPatchCall {
28350 c.urlParams_.Set("updateMask", updateMask)
28351 return c
28352 }
28353
28354
28355
28356
28357 func (c *ProjectsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsAnswerRecordsPatchCall {
28358 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28359 return c
28360 }
28361
28362
28363 func (c *ProjectsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsAnswerRecordsPatchCall {
28364 c.ctx_ = ctx
28365 return c
28366 }
28367
28368
28369
28370 func (c *ProjectsAnswerRecordsPatchCall) Header() http.Header {
28371 if c.header_ == nil {
28372 c.header_ = make(http.Header)
28373 }
28374 return c.header_
28375 }
28376
28377 func (c *ProjectsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
28378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28379 var body io.Reader = nil
28380 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
28381 if err != nil {
28382 return nil, err
28383 }
28384 c.urlParams_.Set("alt", alt)
28385 c.urlParams_.Set("prettyPrint", "false")
28386 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28387 urls += "?" + c.urlParams_.Encode()
28388 req, err := http.NewRequest("PATCH", urls, body)
28389 if err != nil {
28390 return nil, err
28391 }
28392 req.Header = reqHeaders
28393 googleapi.Expand(req.URL, map[string]string{
28394 "name": c.nameid,
28395 })
28396 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28397 }
28398
28399
28400
28401
28402
28403
28404
28405 func (c *ProjectsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
28406 gensupport.SetOptions(c.urlParams_, opts...)
28407 res, err := c.doRequest("json")
28408 if res != nil && res.StatusCode == http.StatusNotModified {
28409 if res.Body != nil {
28410 res.Body.Close()
28411 }
28412 return nil, gensupport.WrapError(&googleapi.Error{
28413 Code: res.StatusCode,
28414 Header: res.Header,
28415 })
28416 }
28417 if err != nil {
28418 return nil, err
28419 }
28420 defer googleapi.CloseBody(res)
28421 if err := googleapi.CheckResponse(res); err != nil {
28422 return nil, gensupport.WrapError(err)
28423 }
28424 ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
28425 ServerResponse: googleapi.ServerResponse{
28426 Header: res.Header,
28427 HTTPStatusCode: res.StatusCode,
28428 },
28429 }
28430 target := &ret
28431 if err := gensupport.DecodeResponse(target, res); err != nil {
28432 return nil, err
28433 }
28434 return ret, nil
28435 }
28436
28437 type ProjectsConversationProfilesClearSuggestionFeatureConfigCall struct {
28438 s *Service
28439 conversationProfile string
28440 googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest
28441 urlParams_ gensupport.URLParams
28442 ctx_ context.Context
28443 header_ http.Header
28444 }
28445
28446
28447
28448
28449
28450
28451
28452
28453
28454
28455
28456
28457 func (r *ProjectsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
28458 c := &ProjectsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28459 c.conversationProfile = conversationProfile
28460 c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest
28461 return c
28462 }
28463
28464
28465
28466
28467 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
28468 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28469 return c
28470 }
28471
28472
28473 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesClearSuggestionFeatureConfigCall {
28474 c.ctx_ = ctx
28475 return c
28476 }
28477
28478
28479
28480 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
28481 if c.header_ == nil {
28482 c.header_ = make(http.Header)
28483 }
28484 return c.header_
28485 }
28486
28487 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
28488 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28489 var body io.Reader = nil
28490 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest)
28491 if err != nil {
28492 return nil, err
28493 }
28494 c.urlParams_.Set("alt", alt)
28495 c.urlParams_.Set("prettyPrint", "false")
28496 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig")
28497 urls += "?" + c.urlParams_.Encode()
28498 req, err := http.NewRequest("POST", urls, body)
28499 if err != nil {
28500 return nil, err
28501 }
28502 req.Header = reqHeaders
28503 googleapi.Expand(req.URL, map[string]string{
28504 "conversationProfile": c.conversationProfile,
28505 })
28506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28507 }
28508
28509
28510
28511
28512
28513
28514
28515 func (c *ProjectsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28516 gensupport.SetOptions(c.urlParams_, opts...)
28517 res, err := c.doRequest("json")
28518 if res != nil && res.StatusCode == http.StatusNotModified {
28519 if res.Body != nil {
28520 res.Body.Close()
28521 }
28522 return nil, gensupport.WrapError(&googleapi.Error{
28523 Code: res.StatusCode,
28524 Header: res.Header,
28525 })
28526 }
28527 if err != nil {
28528 return nil, err
28529 }
28530 defer googleapi.CloseBody(res)
28531 if err := googleapi.CheckResponse(res); err != nil {
28532 return nil, gensupport.WrapError(err)
28533 }
28534 ret := &GoogleLongrunningOperation{
28535 ServerResponse: googleapi.ServerResponse{
28536 Header: res.Header,
28537 HTTPStatusCode: res.StatusCode,
28538 },
28539 }
28540 target := &ret
28541 if err := gensupport.DecodeResponse(target, res); err != nil {
28542 return nil, err
28543 }
28544 return ret, nil
28545 }
28546
28547 type ProjectsConversationProfilesCreateCall struct {
28548 s *Service
28549 parent string
28550 googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
28551 urlParams_ gensupport.URLParams
28552 ctx_ context.Context
28553 header_ http.Header
28554 }
28555
28556
28557
28558
28559
28560
28561
28562
28563 func (r *ProjectsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesCreateCall {
28564 c := &ProjectsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28565 c.parent = parent
28566 c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
28567 return c
28568 }
28569
28570
28571
28572
28573 func (c *ProjectsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesCreateCall {
28574 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28575 return c
28576 }
28577
28578
28579 func (c *ProjectsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsConversationProfilesCreateCall {
28580 c.ctx_ = ctx
28581 return c
28582 }
28583
28584
28585
28586 func (c *ProjectsConversationProfilesCreateCall) Header() http.Header {
28587 if c.header_ == nil {
28588 c.header_ = make(http.Header)
28589 }
28590 return c.header_
28591 }
28592
28593 func (c *ProjectsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
28594 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28595 var body io.Reader = nil
28596 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
28597 if err != nil {
28598 return nil, err
28599 }
28600 c.urlParams_.Set("alt", alt)
28601 c.urlParams_.Set("prettyPrint", "false")
28602 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
28603 urls += "?" + c.urlParams_.Encode()
28604 req, err := http.NewRequest("POST", urls, body)
28605 if err != nil {
28606 return nil, err
28607 }
28608 req.Header = reqHeaders
28609 googleapi.Expand(req.URL, map[string]string{
28610 "parent": c.parent,
28611 })
28612 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28613 }
28614
28615
28616
28617
28618
28619
28620
28621 func (c *ProjectsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
28622 gensupport.SetOptions(c.urlParams_, opts...)
28623 res, err := c.doRequest("json")
28624 if res != nil && res.StatusCode == http.StatusNotModified {
28625 if res.Body != nil {
28626 res.Body.Close()
28627 }
28628 return nil, gensupport.WrapError(&googleapi.Error{
28629 Code: res.StatusCode,
28630 Header: res.Header,
28631 })
28632 }
28633 if err != nil {
28634 return nil, err
28635 }
28636 defer googleapi.CloseBody(res)
28637 if err := googleapi.CheckResponse(res); err != nil {
28638 return nil, gensupport.WrapError(err)
28639 }
28640 ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
28641 ServerResponse: googleapi.ServerResponse{
28642 Header: res.Header,
28643 HTTPStatusCode: res.StatusCode,
28644 },
28645 }
28646 target := &ret
28647 if err := gensupport.DecodeResponse(target, res); err != nil {
28648 return nil, err
28649 }
28650 return ret, nil
28651 }
28652
28653 type ProjectsConversationProfilesDeleteCall struct {
28654 s *Service
28655 name string
28656 urlParams_ gensupport.URLParams
28657 ctx_ context.Context
28658 header_ http.Header
28659 }
28660
28661
28662
28663
28664
28665 func (r *ProjectsConversationProfilesService) Delete(name string) *ProjectsConversationProfilesDeleteCall {
28666 c := &ProjectsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28667 c.name = name
28668 return c
28669 }
28670
28671
28672
28673
28674 func (c *ProjectsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesDeleteCall {
28675 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28676 return c
28677 }
28678
28679
28680 func (c *ProjectsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsConversationProfilesDeleteCall {
28681 c.ctx_ = ctx
28682 return c
28683 }
28684
28685
28686
28687 func (c *ProjectsConversationProfilesDeleteCall) Header() http.Header {
28688 if c.header_ == nil {
28689 c.header_ = make(http.Header)
28690 }
28691 return c.header_
28692 }
28693
28694 func (c *ProjectsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
28695 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28696 var body io.Reader = nil
28697 c.urlParams_.Set("alt", alt)
28698 c.urlParams_.Set("prettyPrint", "false")
28699 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28700 urls += "?" + c.urlParams_.Encode()
28701 req, err := http.NewRequest("DELETE", urls, body)
28702 if err != nil {
28703 return nil, err
28704 }
28705 req.Header = reqHeaders
28706 googleapi.Expand(req.URL, map[string]string{
28707 "name": c.name,
28708 })
28709 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28710 }
28711
28712
28713
28714
28715
28716
28717
28718 func (c *ProjectsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28719 gensupport.SetOptions(c.urlParams_, opts...)
28720 res, err := c.doRequest("json")
28721 if res != nil && res.StatusCode == http.StatusNotModified {
28722 if res.Body != nil {
28723 res.Body.Close()
28724 }
28725 return nil, gensupport.WrapError(&googleapi.Error{
28726 Code: res.StatusCode,
28727 Header: res.Header,
28728 })
28729 }
28730 if err != nil {
28731 return nil, err
28732 }
28733 defer googleapi.CloseBody(res)
28734 if err := googleapi.CheckResponse(res); err != nil {
28735 return nil, gensupport.WrapError(err)
28736 }
28737 ret := &GoogleProtobufEmpty{
28738 ServerResponse: googleapi.ServerResponse{
28739 Header: res.Header,
28740 HTTPStatusCode: res.StatusCode,
28741 },
28742 }
28743 target := &ret
28744 if err := gensupport.DecodeResponse(target, res); err != nil {
28745 return nil, err
28746 }
28747 return ret, nil
28748 }
28749
28750 type ProjectsConversationProfilesGetCall struct {
28751 s *Service
28752 name string
28753 urlParams_ gensupport.URLParams
28754 ifNoneMatch_ string
28755 ctx_ context.Context
28756 header_ http.Header
28757 }
28758
28759
28760
28761
28762
28763 func (r *ProjectsConversationProfilesService) Get(name string) *ProjectsConversationProfilesGetCall {
28764 c := &ProjectsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28765 c.name = name
28766 return c
28767 }
28768
28769
28770
28771
28772 func (c *ProjectsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesGetCall {
28773 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28774 return c
28775 }
28776
28777
28778
28779
28780 func (c *ProjectsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesGetCall {
28781 c.ifNoneMatch_ = entityTag
28782 return c
28783 }
28784
28785
28786 func (c *ProjectsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsConversationProfilesGetCall {
28787 c.ctx_ = ctx
28788 return c
28789 }
28790
28791
28792
28793 func (c *ProjectsConversationProfilesGetCall) Header() http.Header {
28794 if c.header_ == nil {
28795 c.header_ = make(http.Header)
28796 }
28797 return c.header_
28798 }
28799
28800 func (c *ProjectsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
28801 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28802 if c.ifNoneMatch_ != "" {
28803 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28804 }
28805 var body io.Reader = nil
28806 c.urlParams_.Set("alt", alt)
28807 c.urlParams_.Set("prettyPrint", "false")
28808 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
28809 urls += "?" + c.urlParams_.Encode()
28810 req, err := http.NewRequest("GET", urls, body)
28811 if err != nil {
28812 return nil, err
28813 }
28814 req.Header = reqHeaders
28815 googleapi.Expand(req.URL, map[string]string{
28816 "name": c.name,
28817 })
28818 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28819 }
28820
28821
28822
28823
28824
28825
28826
28827 func (c *ProjectsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
28828 gensupport.SetOptions(c.urlParams_, opts...)
28829 res, err := c.doRequest("json")
28830 if res != nil && res.StatusCode == http.StatusNotModified {
28831 if res.Body != nil {
28832 res.Body.Close()
28833 }
28834 return nil, gensupport.WrapError(&googleapi.Error{
28835 Code: res.StatusCode,
28836 Header: res.Header,
28837 })
28838 }
28839 if err != nil {
28840 return nil, err
28841 }
28842 defer googleapi.CloseBody(res)
28843 if err := googleapi.CheckResponse(res); err != nil {
28844 return nil, gensupport.WrapError(err)
28845 }
28846 ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
28847 ServerResponse: googleapi.ServerResponse{
28848 Header: res.Header,
28849 HTTPStatusCode: res.StatusCode,
28850 },
28851 }
28852 target := &ret
28853 if err := gensupport.DecodeResponse(target, res); err != nil {
28854 return nil, err
28855 }
28856 return ret, nil
28857 }
28858
28859 type ProjectsConversationProfilesListCall struct {
28860 s *Service
28861 parent string
28862 urlParams_ gensupport.URLParams
28863 ifNoneMatch_ string
28864 ctx_ context.Context
28865 header_ http.Header
28866 }
28867
28868
28869
28870
28871
28872
28873 func (r *ProjectsConversationProfilesService) List(parent string) *ProjectsConversationProfilesListCall {
28874 c := &ProjectsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28875 c.parent = parent
28876 return c
28877 }
28878
28879
28880
28881 func (c *ProjectsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsConversationProfilesListCall {
28882 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28883 return c
28884 }
28885
28886
28887
28888 func (c *ProjectsConversationProfilesListCall) PageToken(pageToken string) *ProjectsConversationProfilesListCall {
28889 c.urlParams_.Set("pageToken", pageToken)
28890 return c
28891 }
28892
28893
28894
28895
28896 func (c *ProjectsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesListCall {
28897 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28898 return c
28899 }
28900
28901
28902
28903
28904 func (c *ProjectsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsConversationProfilesListCall {
28905 c.ifNoneMatch_ = entityTag
28906 return c
28907 }
28908
28909
28910 func (c *ProjectsConversationProfilesListCall) Context(ctx context.Context) *ProjectsConversationProfilesListCall {
28911 c.ctx_ = ctx
28912 return c
28913 }
28914
28915
28916
28917 func (c *ProjectsConversationProfilesListCall) Header() http.Header {
28918 if c.header_ == nil {
28919 c.header_ = make(http.Header)
28920 }
28921 return c.header_
28922 }
28923
28924 func (c *ProjectsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
28925 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28926 if c.ifNoneMatch_ != "" {
28927 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28928 }
28929 var body io.Reader = nil
28930 c.urlParams_.Set("alt", alt)
28931 c.urlParams_.Set("prettyPrint", "false")
28932 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
28933 urls += "?" + c.urlParams_.Encode()
28934 req, err := http.NewRequest("GET", urls, body)
28935 if err != nil {
28936 return nil, err
28937 }
28938 req.Header = reqHeaders
28939 googleapi.Expand(req.URL, map[string]string{
28940 "parent": c.parent,
28941 })
28942 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28943 }
28944
28945
28946
28947
28948
28949
28950
28951 func (c *ProjectsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
28952 gensupport.SetOptions(c.urlParams_, opts...)
28953 res, err := c.doRequest("json")
28954 if res != nil && res.StatusCode == http.StatusNotModified {
28955 if res.Body != nil {
28956 res.Body.Close()
28957 }
28958 return nil, gensupport.WrapError(&googleapi.Error{
28959 Code: res.StatusCode,
28960 Header: res.Header,
28961 })
28962 }
28963 if err != nil {
28964 return nil, err
28965 }
28966 defer googleapi.CloseBody(res)
28967 if err := googleapi.CheckResponse(res); err != nil {
28968 return nil, gensupport.WrapError(err)
28969 }
28970 ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
28971 ServerResponse: googleapi.ServerResponse{
28972 Header: res.Header,
28973 HTTPStatusCode: res.StatusCode,
28974 },
28975 }
28976 target := &ret
28977 if err := gensupport.DecodeResponse(target, res); err != nil {
28978 return nil, err
28979 }
28980 return ret, nil
28981 }
28982
28983
28984
28985
28986 func (c *ProjectsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
28987 c.ctx_ = ctx
28988 defer c.PageToken(c.urlParams_.Get("pageToken"))
28989 for {
28990 x, err := c.Do()
28991 if err != nil {
28992 return err
28993 }
28994 if err := f(x); err != nil {
28995 return err
28996 }
28997 if x.NextPageToken == "" {
28998 return nil
28999 }
29000 c.PageToken(x.NextPageToken)
29001 }
29002 }
29003
29004 type ProjectsConversationProfilesPatchCall struct {
29005 s *Service
29006 nameid string
29007 googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
29008 urlParams_ gensupport.URLParams
29009 ctx_ context.Context
29010 header_ http.Header
29011 }
29012
29013
29014
29015
29016
29017
29018
29019
29020 func (r *ProjectsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsConversationProfilesPatchCall {
29021 c := &ProjectsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29022 c.nameid = nameid
29023 c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
29024 return c
29025 }
29026
29027
29028
29029 func (c *ProjectsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsConversationProfilesPatchCall {
29030 c.urlParams_.Set("updateMask", updateMask)
29031 return c
29032 }
29033
29034
29035
29036
29037 func (c *ProjectsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesPatchCall {
29038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29039 return c
29040 }
29041
29042
29043 func (c *ProjectsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsConversationProfilesPatchCall {
29044 c.ctx_ = ctx
29045 return c
29046 }
29047
29048
29049
29050 func (c *ProjectsConversationProfilesPatchCall) Header() http.Header {
29051 if c.header_ == nil {
29052 c.header_ = make(http.Header)
29053 }
29054 return c.header_
29055 }
29056
29057 func (c *ProjectsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
29058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29059 var body io.Reader = nil
29060 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
29061 if err != nil {
29062 return nil, err
29063 }
29064 c.urlParams_.Set("alt", alt)
29065 c.urlParams_.Set("prettyPrint", "false")
29066 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29067 urls += "?" + c.urlParams_.Encode()
29068 req, err := http.NewRequest("PATCH", urls, body)
29069 if err != nil {
29070 return nil, err
29071 }
29072 req.Header = reqHeaders
29073 googleapi.Expand(req.URL, map[string]string{
29074 "name": c.nameid,
29075 })
29076 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29077 }
29078
29079
29080
29081
29082
29083
29084
29085 func (c *ProjectsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
29086 gensupport.SetOptions(c.urlParams_, opts...)
29087 res, err := c.doRequest("json")
29088 if res != nil && res.StatusCode == http.StatusNotModified {
29089 if res.Body != nil {
29090 res.Body.Close()
29091 }
29092 return nil, gensupport.WrapError(&googleapi.Error{
29093 Code: res.StatusCode,
29094 Header: res.Header,
29095 })
29096 }
29097 if err != nil {
29098 return nil, err
29099 }
29100 defer googleapi.CloseBody(res)
29101 if err := googleapi.CheckResponse(res); err != nil {
29102 return nil, gensupport.WrapError(err)
29103 }
29104 ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
29105 ServerResponse: googleapi.ServerResponse{
29106 Header: res.Header,
29107 HTTPStatusCode: res.StatusCode,
29108 },
29109 }
29110 target := &ret
29111 if err := gensupport.DecodeResponse(target, res); err != nil {
29112 return nil, err
29113 }
29114 return ret, nil
29115 }
29116
29117 type ProjectsConversationProfilesSetSuggestionFeatureConfigCall struct {
29118 s *Service
29119 conversationProfile string
29120 googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest
29121 urlParams_ gensupport.URLParams
29122 ctx_ context.Context
29123 header_ http.Header
29124 }
29125
29126
29127
29128
29129
29130
29131
29132
29133
29134
29135
29136
29137
29138
29139
29140
29141
29142 func (r *ProjectsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
29143 c := &ProjectsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29144 c.conversationProfile = conversationProfile
29145 c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest
29146 return c
29147 }
29148
29149
29150
29151
29152 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
29153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29154 return c
29155 }
29156
29157
29158 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsConversationProfilesSetSuggestionFeatureConfigCall {
29159 c.ctx_ = ctx
29160 return c
29161 }
29162
29163
29164
29165 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
29166 if c.header_ == nil {
29167 c.header_ = make(http.Header)
29168 }
29169 return c.header_
29170 }
29171
29172 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
29173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29174 var body io.Reader = nil
29175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest)
29176 if err != nil {
29177 return nil, err
29178 }
29179 c.urlParams_.Set("alt", alt)
29180 c.urlParams_.Set("prettyPrint", "false")
29181 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:setSuggestionFeatureConfig")
29182 urls += "?" + c.urlParams_.Encode()
29183 req, err := http.NewRequest("POST", urls, body)
29184 if err != nil {
29185 return nil, err
29186 }
29187 req.Header = reqHeaders
29188 googleapi.Expand(req.URL, map[string]string{
29189 "conversationProfile": c.conversationProfile,
29190 })
29191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29192 }
29193
29194
29195
29196
29197
29198
29199
29200 func (c *ProjectsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29201 gensupport.SetOptions(c.urlParams_, opts...)
29202 res, err := c.doRequest("json")
29203 if res != nil && res.StatusCode == http.StatusNotModified {
29204 if res.Body != nil {
29205 res.Body.Close()
29206 }
29207 return nil, gensupport.WrapError(&googleapi.Error{
29208 Code: res.StatusCode,
29209 Header: res.Header,
29210 })
29211 }
29212 if err != nil {
29213 return nil, err
29214 }
29215 defer googleapi.CloseBody(res)
29216 if err := googleapi.CheckResponse(res); err != nil {
29217 return nil, gensupport.WrapError(err)
29218 }
29219 ret := &GoogleLongrunningOperation{
29220 ServerResponse: googleapi.ServerResponse{
29221 Header: res.Header,
29222 HTTPStatusCode: res.StatusCode,
29223 },
29224 }
29225 target := &ret
29226 if err := gensupport.DecodeResponse(target, res); err != nil {
29227 return nil, err
29228 }
29229 return ret, nil
29230 }
29231
29232 type ProjectsConversationsCompleteCall struct {
29233 s *Service
29234 nameid string
29235 googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
29236 urlParams_ gensupport.URLParams
29237 ctx_ context.Context
29238 header_ http.Header
29239 }
29240
29241
29242
29243
29244
29245
29246 func (r *ProjectsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsConversationsCompleteCall {
29247 c := &ProjectsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29248 c.nameid = nameid
29249 c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
29250 return c
29251 }
29252
29253
29254
29255
29256 func (c *ProjectsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsConversationsCompleteCall {
29257 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29258 return c
29259 }
29260
29261
29262 func (c *ProjectsConversationsCompleteCall) Context(ctx context.Context) *ProjectsConversationsCompleteCall {
29263 c.ctx_ = ctx
29264 return c
29265 }
29266
29267
29268
29269 func (c *ProjectsConversationsCompleteCall) Header() http.Header {
29270 if c.header_ == nil {
29271 c.header_ = make(http.Header)
29272 }
29273 return c.header_
29274 }
29275
29276 func (c *ProjectsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
29277 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29278 var body io.Reader = nil
29279 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
29280 if err != nil {
29281 return nil, err
29282 }
29283 c.urlParams_.Set("alt", alt)
29284 c.urlParams_.Set("prettyPrint", "false")
29285 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
29286 urls += "?" + c.urlParams_.Encode()
29287 req, err := http.NewRequest("POST", urls, body)
29288 if err != nil {
29289 return nil, err
29290 }
29291 req.Header = reqHeaders
29292 googleapi.Expand(req.URL, map[string]string{
29293 "name": c.nameid,
29294 })
29295 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29296 }
29297
29298
29299
29300
29301
29302
29303
29304 func (c *ProjectsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
29305 gensupport.SetOptions(c.urlParams_, opts...)
29306 res, err := c.doRequest("json")
29307 if res != nil && res.StatusCode == http.StatusNotModified {
29308 if res.Body != nil {
29309 res.Body.Close()
29310 }
29311 return nil, gensupport.WrapError(&googleapi.Error{
29312 Code: res.StatusCode,
29313 Header: res.Header,
29314 })
29315 }
29316 if err != nil {
29317 return nil, err
29318 }
29319 defer googleapi.CloseBody(res)
29320 if err := googleapi.CheckResponse(res); err != nil {
29321 return nil, gensupport.WrapError(err)
29322 }
29323 ret := &GoogleCloudDialogflowV2beta1Conversation{
29324 ServerResponse: googleapi.ServerResponse{
29325 Header: res.Header,
29326 HTTPStatusCode: res.StatusCode,
29327 },
29328 }
29329 target := &ret
29330 if err := gensupport.DecodeResponse(target, res); err != nil {
29331 return nil, err
29332 }
29333 return ret, nil
29334 }
29335
29336 type ProjectsConversationsCreateCall struct {
29337 s *Service
29338 parentid string
29339 googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
29340 urlParams_ gensupport.URLParams
29341 ctx_ context.Context
29342 header_ http.Header
29343 }
29344
29345
29346
29347
29348
29349
29350
29351
29352
29353
29354
29355
29356
29357
29358
29359 func (r *ProjectsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsConversationsCreateCall {
29360 c := &ProjectsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29361 c.parentid = parentid
29362 c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
29363 return c
29364 }
29365
29366
29367
29368
29369
29370
29371
29372
29373
29374 func (c *ProjectsConversationsCreateCall) ConversationId(conversationId string) *ProjectsConversationsCreateCall {
29375 c.urlParams_.Set("conversationId", conversationId)
29376 return c
29377 }
29378
29379
29380
29381
29382 func (c *ProjectsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsCreateCall {
29383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29384 return c
29385 }
29386
29387
29388 func (c *ProjectsConversationsCreateCall) Context(ctx context.Context) *ProjectsConversationsCreateCall {
29389 c.ctx_ = ctx
29390 return c
29391 }
29392
29393
29394
29395 func (c *ProjectsConversationsCreateCall) Header() http.Header {
29396 if c.header_ == nil {
29397 c.header_ = make(http.Header)
29398 }
29399 return c.header_
29400 }
29401
29402 func (c *ProjectsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
29403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29404 var body io.Reader = nil
29405 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
29406 if err != nil {
29407 return nil, err
29408 }
29409 c.urlParams_.Set("alt", alt)
29410 c.urlParams_.Set("prettyPrint", "false")
29411 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
29412 urls += "?" + c.urlParams_.Encode()
29413 req, err := http.NewRequest("POST", urls, body)
29414 if err != nil {
29415 return nil, err
29416 }
29417 req.Header = reqHeaders
29418 googleapi.Expand(req.URL, map[string]string{
29419 "parent": c.parentid,
29420 })
29421 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29422 }
29423
29424
29425
29426
29427
29428
29429
29430 func (c *ProjectsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
29431 gensupport.SetOptions(c.urlParams_, opts...)
29432 res, err := c.doRequest("json")
29433 if res != nil && res.StatusCode == http.StatusNotModified {
29434 if res.Body != nil {
29435 res.Body.Close()
29436 }
29437 return nil, gensupport.WrapError(&googleapi.Error{
29438 Code: res.StatusCode,
29439 Header: res.Header,
29440 })
29441 }
29442 if err != nil {
29443 return nil, err
29444 }
29445 defer googleapi.CloseBody(res)
29446 if err := googleapi.CheckResponse(res); err != nil {
29447 return nil, gensupport.WrapError(err)
29448 }
29449 ret := &GoogleCloudDialogflowV2beta1Conversation{
29450 ServerResponse: googleapi.ServerResponse{
29451 Header: res.Header,
29452 HTTPStatusCode: res.StatusCode,
29453 },
29454 }
29455 target := &ret
29456 if err := gensupport.DecodeResponse(target, res); err != nil {
29457 return nil, err
29458 }
29459 return ret, nil
29460 }
29461
29462 type ProjectsConversationsGetCall struct {
29463 s *Service
29464 name string
29465 urlParams_ gensupport.URLParams
29466 ifNoneMatch_ string
29467 ctx_ context.Context
29468 header_ http.Header
29469 }
29470
29471
29472
29473
29474
29475 func (r *ProjectsConversationsService) Get(name string) *ProjectsConversationsGetCall {
29476 c := &ProjectsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29477 c.name = name
29478 return c
29479 }
29480
29481
29482
29483
29484 func (c *ProjectsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsGetCall {
29485 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29486 return c
29487 }
29488
29489
29490
29491
29492 func (c *ProjectsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsGetCall {
29493 c.ifNoneMatch_ = entityTag
29494 return c
29495 }
29496
29497
29498 func (c *ProjectsConversationsGetCall) Context(ctx context.Context) *ProjectsConversationsGetCall {
29499 c.ctx_ = ctx
29500 return c
29501 }
29502
29503
29504
29505 func (c *ProjectsConversationsGetCall) Header() http.Header {
29506 if c.header_ == nil {
29507 c.header_ = make(http.Header)
29508 }
29509 return c.header_
29510 }
29511
29512 func (c *ProjectsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
29513 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29514 if c.ifNoneMatch_ != "" {
29515 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29516 }
29517 var body io.Reader = nil
29518 c.urlParams_.Set("alt", alt)
29519 c.urlParams_.Set("prettyPrint", "false")
29520 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
29521 urls += "?" + c.urlParams_.Encode()
29522 req, err := http.NewRequest("GET", urls, body)
29523 if err != nil {
29524 return nil, err
29525 }
29526 req.Header = reqHeaders
29527 googleapi.Expand(req.URL, map[string]string{
29528 "name": c.name,
29529 })
29530 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29531 }
29532
29533
29534
29535
29536
29537
29538
29539 func (c *ProjectsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
29540 gensupport.SetOptions(c.urlParams_, opts...)
29541 res, err := c.doRequest("json")
29542 if res != nil && res.StatusCode == http.StatusNotModified {
29543 if res.Body != nil {
29544 res.Body.Close()
29545 }
29546 return nil, gensupport.WrapError(&googleapi.Error{
29547 Code: res.StatusCode,
29548 Header: res.Header,
29549 })
29550 }
29551 if err != nil {
29552 return nil, err
29553 }
29554 defer googleapi.CloseBody(res)
29555 if err := googleapi.CheckResponse(res); err != nil {
29556 return nil, gensupport.WrapError(err)
29557 }
29558 ret := &GoogleCloudDialogflowV2beta1Conversation{
29559 ServerResponse: googleapi.ServerResponse{
29560 Header: res.Header,
29561 HTTPStatusCode: res.StatusCode,
29562 },
29563 }
29564 target := &ret
29565 if err := gensupport.DecodeResponse(target, res); err != nil {
29566 return nil, err
29567 }
29568 return ret, nil
29569 }
29570
29571 type ProjectsConversationsListCall struct {
29572 s *Service
29573 parent string
29574 urlParams_ gensupport.URLParams
29575 ifNoneMatch_ string
29576 ctx_ context.Context
29577 header_ http.Header
29578 }
29579
29580
29581
29582
29583
29584 func (r *ProjectsConversationsService) List(parent string) *ProjectsConversationsListCall {
29585 c := &ProjectsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29586 c.parent = parent
29587 return c
29588 }
29589
29590
29591
29592
29593
29594
29595
29596
29597
29598
29599
29600
29601 func (c *ProjectsConversationsListCall) Filter(filter string) *ProjectsConversationsListCall {
29602 c.urlParams_.Set("filter", filter)
29603 return c
29604 }
29605
29606
29607
29608 func (c *ProjectsConversationsListCall) PageSize(pageSize int64) *ProjectsConversationsListCall {
29609 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29610 return c
29611 }
29612
29613
29614
29615 func (c *ProjectsConversationsListCall) PageToken(pageToken string) *ProjectsConversationsListCall {
29616 c.urlParams_.Set("pageToken", pageToken)
29617 return c
29618 }
29619
29620
29621
29622
29623 func (c *ProjectsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsListCall {
29624 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29625 return c
29626 }
29627
29628
29629
29630
29631 func (c *ProjectsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsListCall {
29632 c.ifNoneMatch_ = entityTag
29633 return c
29634 }
29635
29636
29637 func (c *ProjectsConversationsListCall) Context(ctx context.Context) *ProjectsConversationsListCall {
29638 c.ctx_ = ctx
29639 return c
29640 }
29641
29642
29643
29644 func (c *ProjectsConversationsListCall) Header() http.Header {
29645 if c.header_ == nil {
29646 c.header_ = make(http.Header)
29647 }
29648 return c.header_
29649 }
29650
29651 func (c *ProjectsConversationsListCall) doRequest(alt string) (*http.Response, error) {
29652 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29653 if c.ifNoneMatch_ != "" {
29654 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29655 }
29656 var body io.Reader = nil
29657 c.urlParams_.Set("alt", alt)
29658 c.urlParams_.Set("prettyPrint", "false")
29659 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
29660 urls += "?" + c.urlParams_.Encode()
29661 req, err := http.NewRequest("GET", urls, body)
29662 if err != nil {
29663 return nil, err
29664 }
29665 req.Header = reqHeaders
29666 googleapi.Expand(req.URL, map[string]string{
29667 "parent": c.parent,
29668 })
29669 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29670 }
29671
29672
29673
29674
29675
29676
29677
29678 func (c *ProjectsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
29679 gensupport.SetOptions(c.urlParams_, opts...)
29680 res, err := c.doRequest("json")
29681 if res != nil && res.StatusCode == http.StatusNotModified {
29682 if res.Body != nil {
29683 res.Body.Close()
29684 }
29685 return nil, gensupport.WrapError(&googleapi.Error{
29686 Code: res.StatusCode,
29687 Header: res.Header,
29688 })
29689 }
29690 if err != nil {
29691 return nil, err
29692 }
29693 defer googleapi.CloseBody(res)
29694 if err := googleapi.CheckResponse(res); err != nil {
29695 return nil, gensupport.WrapError(err)
29696 }
29697 ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
29698 ServerResponse: googleapi.ServerResponse{
29699 Header: res.Header,
29700 HTTPStatusCode: res.StatusCode,
29701 },
29702 }
29703 target := &ret
29704 if err := gensupport.DecodeResponse(target, res); err != nil {
29705 return nil, err
29706 }
29707 return ret, nil
29708 }
29709
29710
29711
29712
29713 func (c *ProjectsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
29714 c.ctx_ = ctx
29715 defer c.PageToken(c.urlParams_.Get("pageToken"))
29716 for {
29717 x, err := c.Do()
29718 if err != nil {
29719 return err
29720 }
29721 if err := f(x); err != nil {
29722 return err
29723 }
29724 if x.NextPageToken == "" {
29725 return nil
29726 }
29727 c.PageToken(x.NextPageToken)
29728 }
29729 }
29730
29731 type ProjectsConversationsMessagesBatchCreateCall struct {
29732 s *Service
29733 parentid string
29734 googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
29735 urlParams_ gensupport.URLParams
29736 ctx_ context.Context
29737 header_ http.Header
29738 }
29739
29740
29741
29742
29743
29744
29745 func (r *ProjectsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsConversationsMessagesBatchCreateCall {
29746 c := &ProjectsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29747 c.parentid = parentid
29748 c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
29749 return c
29750 }
29751
29752
29753
29754
29755 func (c *ProjectsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesBatchCreateCall {
29756 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29757 return c
29758 }
29759
29760
29761 func (c *ProjectsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsConversationsMessagesBatchCreateCall {
29762 c.ctx_ = ctx
29763 return c
29764 }
29765
29766
29767
29768 func (c *ProjectsConversationsMessagesBatchCreateCall) Header() http.Header {
29769 if c.header_ == nil {
29770 c.header_ = make(http.Header)
29771 }
29772 return c.header_
29773 }
29774
29775 func (c *ProjectsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
29776 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29777 var body io.Reader = nil
29778 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
29779 if err != nil {
29780 return nil, err
29781 }
29782 c.urlParams_.Set("alt", alt)
29783 c.urlParams_.Set("prettyPrint", "false")
29784 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
29785 urls += "?" + c.urlParams_.Encode()
29786 req, err := http.NewRequest("POST", urls, body)
29787 if err != nil {
29788 return nil, err
29789 }
29790 req.Header = reqHeaders
29791 googleapi.Expand(req.URL, map[string]string{
29792 "parent": c.parentid,
29793 })
29794 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29795 }
29796
29797
29798
29799
29800
29801
29802
29803 func (c *ProjectsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
29804 gensupport.SetOptions(c.urlParams_, opts...)
29805 res, err := c.doRequest("json")
29806 if res != nil && res.StatusCode == http.StatusNotModified {
29807 if res.Body != nil {
29808 res.Body.Close()
29809 }
29810 return nil, gensupport.WrapError(&googleapi.Error{
29811 Code: res.StatusCode,
29812 Header: res.Header,
29813 })
29814 }
29815 if err != nil {
29816 return nil, err
29817 }
29818 defer googleapi.CloseBody(res)
29819 if err := googleapi.CheckResponse(res); err != nil {
29820 return nil, gensupport.WrapError(err)
29821 }
29822 ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
29823 ServerResponse: googleapi.ServerResponse{
29824 Header: res.Header,
29825 HTTPStatusCode: res.StatusCode,
29826 },
29827 }
29828 target := &ret
29829 if err := gensupport.DecodeResponse(target, res); err != nil {
29830 return nil, err
29831 }
29832 return ret, nil
29833 }
29834
29835 type ProjectsConversationsMessagesListCall struct {
29836 s *Service
29837 parent string
29838 urlParams_ gensupport.URLParams
29839 ifNoneMatch_ string
29840 ctx_ context.Context
29841 header_ http.Header
29842 }
29843
29844
29845
29846
29847
29848
29849
29850
29851 func (r *ProjectsConversationsMessagesService) List(parent string) *ProjectsConversationsMessagesListCall {
29852 c := &ProjectsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29853 c.parent = parent
29854 return c
29855 }
29856
29857
29858
29859
29860
29861
29862
29863 func (c *ProjectsConversationsMessagesListCall) Filter(filter string) *ProjectsConversationsMessagesListCall {
29864 c.urlParams_.Set("filter", filter)
29865 return c
29866 }
29867
29868
29869
29870 func (c *ProjectsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsConversationsMessagesListCall {
29871 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29872 return c
29873 }
29874
29875
29876
29877 func (c *ProjectsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsConversationsMessagesListCall {
29878 c.urlParams_.Set("pageToken", pageToken)
29879 return c
29880 }
29881
29882
29883
29884
29885 func (c *ProjectsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsConversationsMessagesListCall {
29886 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29887 return c
29888 }
29889
29890
29891
29892
29893 func (c *ProjectsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsConversationsMessagesListCall {
29894 c.ifNoneMatch_ = entityTag
29895 return c
29896 }
29897
29898
29899 func (c *ProjectsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsConversationsMessagesListCall {
29900 c.ctx_ = ctx
29901 return c
29902 }
29903
29904
29905
29906 func (c *ProjectsConversationsMessagesListCall) Header() http.Header {
29907 if c.header_ == nil {
29908 c.header_ = make(http.Header)
29909 }
29910 return c.header_
29911 }
29912
29913 func (c *ProjectsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
29914 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29915 if c.ifNoneMatch_ != "" {
29916 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29917 }
29918 var body io.Reader = nil
29919 c.urlParams_.Set("alt", alt)
29920 c.urlParams_.Set("prettyPrint", "false")
29921 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
29922 urls += "?" + c.urlParams_.Encode()
29923 req, err := http.NewRequest("GET", urls, body)
29924 if err != nil {
29925 return nil, err
29926 }
29927 req.Header = reqHeaders
29928 googleapi.Expand(req.URL, map[string]string{
29929 "parent": c.parent,
29930 })
29931 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29932 }
29933
29934
29935
29936
29937
29938
29939
29940 func (c *ProjectsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
29941 gensupport.SetOptions(c.urlParams_, opts...)
29942 res, err := c.doRequest("json")
29943 if res != nil && res.StatusCode == http.StatusNotModified {
29944 if res.Body != nil {
29945 res.Body.Close()
29946 }
29947 return nil, gensupport.WrapError(&googleapi.Error{
29948 Code: res.StatusCode,
29949 Header: res.Header,
29950 })
29951 }
29952 if err != nil {
29953 return nil, err
29954 }
29955 defer googleapi.CloseBody(res)
29956 if err := googleapi.CheckResponse(res); err != nil {
29957 return nil, gensupport.WrapError(err)
29958 }
29959 ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
29960 ServerResponse: googleapi.ServerResponse{
29961 Header: res.Header,
29962 HTTPStatusCode: res.StatusCode,
29963 },
29964 }
29965 target := &ret
29966 if err := gensupport.DecodeResponse(target, res); err != nil {
29967 return nil, err
29968 }
29969 return ret, nil
29970 }
29971
29972
29973
29974
29975 func (c *ProjectsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
29976 c.ctx_ = ctx
29977 defer c.PageToken(c.urlParams_.Get("pageToken"))
29978 for {
29979 x, err := c.Do()
29980 if err != nil {
29981 return err
29982 }
29983 if err := f(x); err != nil {
29984 return err
29985 }
29986 if x.NextPageToken == "" {
29987 return nil
29988 }
29989 c.PageToken(x.NextPageToken)
29990 }
29991 }
29992
29993 type ProjectsConversationsParticipantsAnalyzeContentCall struct {
29994 s *Service
29995 participant string
29996 googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
29997 urlParams_ gensupport.URLParams
29998 ctx_ context.Context
29999 header_ http.Header
30000 }
30001
30002
30003
30004
30005
30006
30007
30008
30009
30010 func (r *ProjectsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsConversationsParticipantsAnalyzeContentCall {
30011 c := &ProjectsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30012 c.participant = participant
30013 c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
30014 return c
30015 }
30016
30017
30018
30019
30020 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsAnalyzeContentCall {
30021 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30022 return c
30023 }
30024
30025
30026 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsConversationsParticipantsAnalyzeContentCall {
30027 c.ctx_ = ctx
30028 return c
30029 }
30030
30031
30032
30033 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
30034 if c.header_ == nil {
30035 c.header_ = make(http.Header)
30036 }
30037 return c.header_
30038 }
30039
30040 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
30041 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30042 var body io.Reader = nil
30043 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
30044 if err != nil {
30045 return nil, err
30046 }
30047 c.urlParams_.Set("alt", alt)
30048 c.urlParams_.Set("prettyPrint", "false")
30049 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
30050 urls += "?" + c.urlParams_.Encode()
30051 req, err := http.NewRequest("POST", urls, body)
30052 if err != nil {
30053 return nil, err
30054 }
30055 req.Header = reqHeaders
30056 googleapi.Expand(req.URL, map[string]string{
30057 "participant": c.participant,
30058 })
30059 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30060 }
30061
30062
30063
30064
30065
30066
30067
30068 func (c *ProjectsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
30069 gensupport.SetOptions(c.urlParams_, opts...)
30070 res, err := c.doRequest("json")
30071 if res != nil && res.StatusCode == http.StatusNotModified {
30072 if res.Body != nil {
30073 res.Body.Close()
30074 }
30075 return nil, gensupport.WrapError(&googleapi.Error{
30076 Code: res.StatusCode,
30077 Header: res.Header,
30078 })
30079 }
30080 if err != nil {
30081 return nil, err
30082 }
30083 defer googleapi.CloseBody(res)
30084 if err := googleapi.CheckResponse(res); err != nil {
30085 return nil, gensupport.WrapError(err)
30086 }
30087 ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
30088 ServerResponse: googleapi.ServerResponse{
30089 Header: res.Header,
30090 HTTPStatusCode: res.StatusCode,
30091 },
30092 }
30093 target := &ret
30094 if err := gensupport.DecodeResponse(target, res); err != nil {
30095 return nil, err
30096 }
30097 return ret, nil
30098 }
30099
30100 type ProjectsConversationsParticipantsCreateCall struct {
30101 s *Service
30102 parentid string
30103 googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
30104 urlParams_ gensupport.URLParams
30105 ctx_ context.Context
30106 header_ http.Header
30107 }
30108
30109
30110
30111
30112
30113 func (r *ProjectsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsCreateCall {
30114 c := &ProjectsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30115 c.parentid = parentid
30116 c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
30117 return c
30118 }
30119
30120
30121
30122
30123 func (c *ProjectsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsCreateCall {
30124 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30125 return c
30126 }
30127
30128
30129 func (c *ProjectsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsConversationsParticipantsCreateCall {
30130 c.ctx_ = ctx
30131 return c
30132 }
30133
30134
30135
30136 func (c *ProjectsConversationsParticipantsCreateCall) Header() http.Header {
30137 if c.header_ == nil {
30138 c.header_ = make(http.Header)
30139 }
30140 return c.header_
30141 }
30142
30143 func (c *ProjectsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
30144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30145 var body io.Reader = nil
30146 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
30147 if err != nil {
30148 return nil, err
30149 }
30150 c.urlParams_.Set("alt", alt)
30151 c.urlParams_.Set("prettyPrint", "false")
30152 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
30153 urls += "?" + c.urlParams_.Encode()
30154 req, err := http.NewRequest("POST", urls, body)
30155 if err != nil {
30156 return nil, err
30157 }
30158 req.Header = reqHeaders
30159 googleapi.Expand(req.URL, map[string]string{
30160 "parent": c.parentid,
30161 })
30162 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30163 }
30164
30165
30166
30167
30168
30169
30170
30171 func (c *ProjectsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
30172 gensupport.SetOptions(c.urlParams_, opts...)
30173 res, err := c.doRequest("json")
30174 if res != nil && res.StatusCode == http.StatusNotModified {
30175 if res.Body != nil {
30176 res.Body.Close()
30177 }
30178 return nil, gensupport.WrapError(&googleapi.Error{
30179 Code: res.StatusCode,
30180 Header: res.Header,
30181 })
30182 }
30183 if err != nil {
30184 return nil, err
30185 }
30186 defer googleapi.CloseBody(res)
30187 if err := googleapi.CheckResponse(res); err != nil {
30188 return nil, gensupport.WrapError(err)
30189 }
30190 ret := &GoogleCloudDialogflowV2beta1Participant{
30191 ServerResponse: googleapi.ServerResponse{
30192 Header: res.Header,
30193 HTTPStatusCode: res.StatusCode,
30194 },
30195 }
30196 target := &ret
30197 if err := gensupport.DecodeResponse(target, res); err != nil {
30198 return nil, err
30199 }
30200 return ret, nil
30201 }
30202
30203 type ProjectsConversationsParticipantsGetCall struct {
30204 s *Service
30205 name string
30206 urlParams_ gensupport.URLParams
30207 ifNoneMatch_ string
30208 ctx_ context.Context
30209 header_ http.Header
30210 }
30211
30212
30213
30214
30215
30216 func (r *ProjectsConversationsParticipantsService) Get(name string) *ProjectsConversationsParticipantsGetCall {
30217 c := &ProjectsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30218 c.name = name
30219 return c
30220 }
30221
30222
30223
30224
30225 func (c *ProjectsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsGetCall {
30226 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30227 return c
30228 }
30229
30230
30231
30232
30233 func (c *ProjectsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsGetCall {
30234 c.ifNoneMatch_ = entityTag
30235 return c
30236 }
30237
30238
30239 func (c *ProjectsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsConversationsParticipantsGetCall {
30240 c.ctx_ = ctx
30241 return c
30242 }
30243
30244
30245
30246 func (c *ProjectsConversationsParticipantsGetCall) Header() http.Header {
30247 if c.header_ == nil {
30248 c.header_ = make(http.Header)
30249 }
30250 return c.header_
30251 }
30252
30253 func (c *ProjectsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
30254 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30255 if c.ifNoneMatch_ != "" {
30256 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30257 }
30258 var body io.Reader = nil
30259 c.urlParams_.Set("alt", alt)
30260 c.urlParams_.Set("prettyPrint", "false")
30261 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30262 urls += "?" + c.urlParams_.Encode()
30263 req, err := http.NewRequest("GET", urls, body)
30264 if err != nil {
30265 return nil, err
30266 }
30267 req.Header = reqHeaders
30268 googleapi.Expand(req.URL, map[string]string{
30269 "name": c.name,
30270 })
30271 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30272 }
30273
30274
30275
30276
30277
30278
30279
30280 func (c *ProjectsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
30281 gensupport.SetOptions(c.urlParams_, opts...)
30282 res, err := c.doRequest("json")
30283 if res != nil && res.StatusCode == http.StatusNotModified {
30284 if res.Body != nil {
30285 res.Body.Close()
30286 }
30287 return nil, gensupport.WrapError(&googleapi.Error{
30288 Code: res.StatusCode,
30289 Header: res.Header,
30290 })
30291 }
30292 if err != nil {
30293 return nil, err
30294 }
30295 defer googleapi.CloseBody(res)
30296 if err := googleapi.CheckResponse(res); err != nil {
30297 return nil, gensupport.WrapError(err)
30298 }
30299 ret := &GoogleCloudDialogflowV2beta1Participant{
30300 ServerResponse: googleapi.ServerResponse{
30301 Header: res.Header,
30302 HTTPStatusCode: res.StatusCode,
30303 },
30304 }
30305 target := &ret
30306 if err := gensupport.DecodeResponse(target, res); err != nil {
30307 return nil, err
30308 }
30309 return ret, nil
30310 }
30311
30312 type ProjectsConversationsParticipantsListCall struct {
30313 s *Service
30314 parent string
30315 urlParams_ gensupport.URLParams
30316 ifNoneMatch_ string
30317 ctx_ context.Context
30318 header_ http.Header
30319 }
30320
30321
30322
30323
30324
30325 func (r *ProjectsConversationsParticipantsService) List(parent string) *ProjectsConversationsParticipantsListCall {
30326 c := &ProjectsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30327 c.parent = parent
30328 return c
30329 }
30330
30331
30332
30333 func (c *ProjectsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsListCall {
30334 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30335 return c
30336 }
30337
30338
30339
30340 func (c *ProjectsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsListCall {
30341 c.urlParams_.Set("pageToken", pageToken)
30342 return c
30343 }
30344
30345
30346
30347
30348 func (c *ProjectsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsListCall {
30349 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30350 return c
30351 }
30352
30353
30354
30355
30356 func (c *ProjectsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsListCall {
30357 c.ifNoneMatch_ = entityTag
30358 return c
30359 }
30360
30361
30362 func (c *ProjectsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsListCall {
30363 c.ctx_ = ctx
30364 return c
30365 }
30366
30367
30368
30369 func (c *ProjectsConversationsParticipantsListCall) Header() http.Header {
30370 if c.header_ == nil {
30371 c.header_ = make(http.Header)
30372 }
30373 return c.header_
30374 }
30375
30376 func (c *ProjectsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
30377 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30378 if c.ifNoneMatch_ != "" {
30379 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30380 }
30381 var body io.Reader = nil
30382 c.urlParams_.Set("alt", alt)
30383 c.urlParams_.Set("prettyPrint", "false")
30384 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
30385 urls += "?" + c.urlParams_.Encode()
30386 req, err := http.NewRequest("GET", urls, body)
30387 if err != nil {
30388 return nil, err
30389 }
30390 req.Header = reqHeaders
30391 googleapi.Expand(req.URL, map[string]string{
30392 "parent": c.parent,
30393 })
30394 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30395 }
30396
30397
30398
30399
30400
30401
30402
30403 func (c *ProjectsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
30404 gensupport.SetOptions(c.urlParams_, opts...)
30405 res, err := c.doRequest("json")
30406 if res != nil && res.StatusCode == http.StatusNotModified {
30407 if res.Body != nil {
30408 res.Body.Close()
30409 }
30410 return nil, gensupport.WrapError(&googleapi.Error{
30411 Code: res.StatusCode,
30412 Header: res.Header,
30413 })
30414 }
30415 if err != nil {
30416 return nil, err
30417 }
30418 defer googleapi.CloseBody(res)
30419 if err := googleapi.CheckResponse(res); err != nil {
30420 return nil, gensupport.WrapError(err)
30421 }
30422 ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
30423 ServerResponse: googleapi.ServerResponse{
30424 Header: res.Header,
30425 HTTPStatusCode: res.StatusCode,
30426 },
30427 }
30428 target := &ret
30429 if err := gensupport.DecodeResponse(target, res); err != nil {
30430 return nil, err
30431 }
30432 return ret, nil
30433 }
30434
30435
30436
30437
30438 func (c *ProjectsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
30439 c.ctx_ = ctx
30440 defer c.PageToken(c.urlParams_.Get("pageToken"))
30441 for {
30442 x, err := c.Do()
30443 if err != nil {
30444 return err
30445 }
30446 if err := f(x); err != nil {
30447 return err
30448 }
30449 if x.NextPageToken == "" {
30450 return nil
30451 }
30452 c.PageToken(x.NextPageToken)
30453 }
30454 }
30455
30456 type ProjectsConversationsParticipantsPatchCall struct {
30457 s *Service
30458 nameid string
30459 googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
30460 urlParams_ gensupport.URLParams
30461 ctx_ context.Context
30462 header_ http.Header
30463 }
30464
30465
30466
30467
30468
30469 func (r *ProjectsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsConversationsParticipantsPatchCall {
30470 c := &ProjectsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30471 c.nameid = nameid
30472 c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
30473 return c
30474 }
30475
30476
30477
30478 func (c *ProjectsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsConversationsParticipantsPatchCall {
30479 c.urlParams_.Set("updateMask", updateMask)
30480 return c
30481 }
30482
30483
30484
30485
30486 func (c *ProjectsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsPatchCall {
30487 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30488 return c
30489 }
30490
30491
30492 func (c *ProjectsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsConversationsParticipantsPatchCall {
30493 c.ctx_ = ctx
30494 return c
30495 }
30496
30497
30498
30499 func (c *ProjectsConversationsParticipantsPatchCall) Header() http.Header {
30500 if c.header_ == nil {
30501 c.header_ = make(http.Header)
30502 }
30503 return c.header_
30504 }
30505
30506 func (c *ProjectsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
30507 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30508 var body io.Reader = nil
30509 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
30510 if err != nil {
30511 return nil, err
30512 }
30513 c.urlParams_.Set("alt", alt)
30514 c.urlParams_.Set("prettyPrint", "false")
30515 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
30516 urls += "?" + c.urlParams_.Encode()
30517 req, err := http.NewRequest("PATCH", urls, body)
30518 if err != nil {
30519 return nil, err
30520 }
30521 req.Header = reqHeaders
30522 googleapi.Expand(req.URL, map[string]string{
30523 "name": c.nameid,
30524 })
30525 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30526 }
30527
30528
30529
30530
30531
30532
30533
30534 func (c *ProjectsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
30535 gensupport.SetOptions(c.urlParams_, opts...)
30536 res, err := c.doRequest("json")
30537 if res != nil && res.StatusCode == http.StatusNotModified {
30538 if res.Body != nil {
30539 res.Body.Close()
30540 }
30541 return nil, gensupport.WrapError(&googleapi.Error{
30542 Code: res.StatusCode,
30543 Header: res.Header,
30544 })
30545 }
30546 if err != nil {
30547 return nil, err
30548 }
30549 defer googleapi.CloseBody(res)
30550 if err := googleapi.CheckResponse(res); err != nil {
30551 return nil, gensupport.WrapError(err)
30552 }
30553 ret := &GoogleCloudDialogflowV2beta1Participant{
30554 ServerResponse: googleapi.ServerResponse{
30555 Header: res.Header,
30556 HTTPStatusCode: res.StatusCode,
30557 },
30558 }
30559 target := &ret
30560 if err := gensupport.DecodeResponse(target, res); err != nil {
30561 return nil, err
30562 }
30563 return ret, nil
30564 }
30565
30566 type ProjectsConversationsParticipantsSuggestionsCompileCall struct {
30567 s *Service
30568 parent string
30569 googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest
30570 urlParams_ gensupport.URLParams
30571 ctx_ context.Context
30572 header_ http.Header
30573 }
30574
30575
30576
30577
30578
30579
30580
30581
30582
30583 func (r *ProjectsConversationsParticipantsSuggestionsService) Compile(parent string, googleclouddialogflowv2beta1compilesuggestionrequest *GoogleCloudDialogflowV2beta1CompileSuggestionRequest) *ProjectsConversationsParticipantsSuggestionsCompileCall {
30584 c := &ProjectsConversationsParticipantsSuggestionsCompileCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30585 c.parent = parent
30586 c.googleclouddialogflowv2beta1compilesuggestionrequest = googleclouddialogflowv2beta1compilesuggestionrequest
30587 return c
30588 }
30589
30590
30591
30592
30593 func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsCompileCall {
30594 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30595 return c
30596 }
30597
30598
30599 func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsCompileCall {
30600 c.ctx_ = ctx
30601 return c
30602 }
30603
30604
30605
30606 func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Header() http.Header {
30607 if c.header_ == nil {
30608 c.header_ = make(http.Header)
30609 }
30610 return c.header_
30611 }
30612
30613 func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) doRequest(alt string) (*http.Response, error) {
30614 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30615 var body io.Reader = nil
30616 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1compilesuggestionrequest)
30617 if err != nil {
30618 return nil, err
30619 }
30620 c.urlParams_.Set("alt", alt)
30621 c.urlParams_.Set("prettyPrint", "false")
30622 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:compile")
30623 urls += "?" + c.urlParams_.Encode()
30624 req, err := http.NewRequest("POST", urls, body)
30625 if err != nil {
30626 return nil, err
30627 }
30628 req.Header = reqHeaders
30629 googleapi.Expand(req.URL, map[string]string{
30630 "parent": c.parent,
30631 })
30632 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30633 }
30634
30635
30636
30637
30638
30639
30640
30641 func (c *ProjectsConversationsParticipantsSuggestionsCompileCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1CompileSuggestionResponse, error) {
30642 gensupport.SetOptions(c.urlParams_, opts...)
30643 res, err := c.doRequest("json")
30644 if res != nil && res.StatusCode == http.StatusNotModified {
30645 if res.Body != nil {
30646 res.Body.Close()
30647 }
30648 return nil, gensupport.WrapError(&googleapi.Error{
30649 Code: res.StatusCode,
30650 Header: res.Header,
30651 })
30652 }
30653 if err != nil {
30654 return nil, err
30655 }
30656 defer googleapi.CloseBody(res)
30657 if err := googleapi.CheckResponse(res); err != nil {
30658 return nil, gensupport.WrapError(err)
30659 }
30660 ret := &GoogleCloudDialogflowV2beta1CompileSuggestionResponse{
30661 ServerResponse: googleapi.ServerResponse{
30662 Header: res.Header,
30663 HTTPStatusCode: res.StatusCode,
30664 },
30665 }
30666 target := &ret
30667 if err := gensupport.DecodeResponse(target, res); err != nil {
30668 return nil, err
30669 }
30670 return ret, nil
30671 }
30672
30673 type ProjectsConversationsParticipantsSuggestionsListCall struct {
30674 s *Service
30675 parent string
30676 urlParams_ gensupport.URLParams
30677 ifNoneMatch_ string
30678 ctx_ context.Context
30679 header_ http.Header
30680 }
30681
30682
30683
30684
30685
30686
30687
30688
30689
30690
30691
30692
30693
30694
30695
30696
30697
30698
30699 func (r *ProjectsConversationsParticipantsSuggestionsService) List(parent string) *ProjectsConversationsParticipantsSuggestionsListCall {
30700 c := &ProjectsConversationsParticipantsSuggestionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30701 c.parent = parent
30702 return c
30703 }
30704
30705
30706
30707
30708
30709
30710
30711 func (c *ProjectsConversationsParticipantsSuggestionsListCall) Filter(filter string) *ProjectsConversationsParticipantsSuggestionsListCall {
30712 c.urlParams_.Set("filter", filter)
30713 return c
30714 }
30715
30716
30717
30718
30719 func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageSize(pageSize int64) *ProjectsConversationsParticipantsSuggestionsListCall {
30720 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30721 return c
30722 }
30723
30724
30725
30726 func (c *ProjectsConversationsParticipantsSuggestionsListCall) PageToken(pageToken string) *ProjectsConversationsParticipantsSuggestionsListCall {
30727 c.urlParams_.Set("pageToken", pageToken)
30728 return c
30729 }
30730
30731
30732
30733
30734 func (c *ProjectsConversationsParticipantsSuggestionsListCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsListCall {
30735 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30736 return c
30737 }
30738
30739
30740
30741
30742 func (c *ProjectsConversationsParticipantsSuggestionsListCall) IfNoneMatch(entityTag string) *ProjectsConversationsParticipantsSuggestionsListCall {
30743 c.ifNoneMatch_ = entityTag
30744 return c
30745 }
30746
30747
30748 func (c *ProjectsConversationsParticipantsSuggestionsListCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsListCall {
30749 c.ctx_ = ctx
30750 return c
30751 }
30752
30753
30754
30755 func (c *ProjectsConversationsParticipantsSuggestionsListCall) Header() http.Header {
30756 if c.header_ == nil {
30757 c.header_ = make(http.Header)
30758 }
30759 return c.header_
30760 }
30761
30762 func (c *ProjectsConversationsParticipantsSuggestionsListCall) doRequest(alt string) (*http.Response, error) {
30763 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30764 if c.ifNoneMatch_ != "" {
30765 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30766 }
30767 var body io.Reader = nil
30768 c.urlParams_.Set("alt", alt)
30769 c.urlParams_.Set("prettyPrint", "false")
30770 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions")
30771 urls += "?" + c.urlParams_.Encode()
30772 req, err := http.NewRequest("GET", urls, body)
30773 if err != nil {
30774 return nil, err
30775 }
30776 req.Header = reqHeaders
30777 googleapi.Expand(req.URL, map[string]string{
30778 "parent": c.parent,
30779 })
30780 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30781 }
30782
30783
30784
30785
30786
30787
30788
30789 func (c *ProjectsConversationsParticipantsSuggestionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSuggestionsResponse, error) {
30790 gensupport.SetOptions(c.urlParams_, opts...)
30791 res, err := c.doRequest("json")
30792 if res != nil && res.StatusCode == http.StatusNotModified {
30793 if res.Body != nil {
30794 res.Body.Close()
30795 }
30796 return nil, gensupport.WrapError(&googleapi.Error{
30797 Code: res.StatusCode,
30798 Header: res.Header,
30799 })
30800 }
30801 if err != nil {
30802 return nil, err
30803 }
30804 defer googleapi.CloseBody(res)
30805 if err := googleapi.CheckResponse(res); err != nil {
30806 return nil, gensupport.WrapError(err)
30807 }
30808 ret := &GoogleCloudDialogflowV2beta1ListSuggestionsResponse{
30809 ServerResponse: googleapi.ServerResponse{
30810 Header: res.Header,
30811 HTTPStatusCode: res.StatusCode,
30812 },
30813 }
30814 target := &ret
30815 if err := gensupport.DecodeResponse(target, res); err != nil {
30816 return nil, err
30817 }
30818 return ret, nil
30819 }
30820
30821
30822
30823
30824 func (c *ProjectsConversationsParticipantsSuggestionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSuggestionsResponse) error) error {
30825 c.ctx_ = ctx
30826 defer c.PageToken(c.urlParams_.Get("pageToken"))
30827 for {
30828 x, err := c.Do()
30829 if err != nil {
30830 return err
30831 }
30832 if err := f(x); err != nil {
30833 return err
30834 }
30835 if x.NextPageToken == "" {
30836 return nil
30837 }
30838 c.PageToken(x.NextPageToken)
30839 }
30840 }
30841
30842 type ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
30843 s *Service
30844 parent string
30845 googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
30846 urlParams_ gensupport.URLParams
30847 ctx_ context.Context
30848 header_ http.Header
30849 }
30850
30851
30852
30853
30854
30855
30856
30857
30858 func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
30859 c := &ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30860 c.parent = parent
30861 c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
30862 return c
30863 }
30864
30865
30866
30867
30868 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
30869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30870 return c
30871 }
30872
30873
30874 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall {
30875 c.ctx_ = ctx
30876 return c
30877 }
30878
30879
30880
30881 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
30882 if c.header_ == nil {
30883 c.header_ = make(http.Header)
30884 }
30885 return c.header_
30886 }
30887
30888 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
30889 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30890 var body io.Reader = nil
30891 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
30892 if err != nil {
30893 return nil, err
30894 }
30895 c.urlParams_.Set("alt", alt)
30896 c.urlParams_.Set("prettyPrint", "false")
30897 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
30898 urls += "?" + c.urlParams_.Encode()
30899 req, err := http.NewRequest("POST", urls, body)
30900 if err != nil {
30901 return nil, err
30902 }
30903 req.Header = reqHeaders
30904 googleapi.Expand(req.URL, map[string]string{
30905 "parent": c.parent,
30906 })
30907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30908 }
30909
30910
30911
30912
30913
30914
30915
30916 func (c *ProjectsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
30917 gensupport.SetOptions(c.urlParams_, opts...)
30918 res, err := c.doRequest("json")
30919 if res != nil && res.StatusCode == http.StatusNotModified {
30920 if res.Body != nil {
30921 res.Body.Close()
30922 }
30923 return nil, gensupport.WrapError(&googleapi.Error{
30924 Code: res.StatusCode,
30925 Header: res.Header,
30926 })
30927 }
30928 if err != nil {
30929 return nil, err
30930 }
30931 defer googleapi.CloseBody(res)
30932 if err := googleapi.CheckResponse(res); err != nil {
30933 return nil, gensupport.WrapError(err)
30934 }
30935 ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
30936 ServerResponse: googleapi.ServerResponse{
30937 Header: res.Header,
30938 HTTPStatusCode: res.StatusCode,
30939 },
30940 }
30941 target := &ret
30942 if err := gensupport.DecodeResponse(target, res); err != nil {
30943 return nil, err
30944 }
30945 return ret, nil
30946 }
30947
30948 type ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
30949 s *Service
30950 parent string
30951 googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
30952 urlParams_ gensupport.URLParams
30953 ctx_ context.Context
30954 header_ http.Header
30955 }
30956
30957
30958
30959
30960
30961
30962 func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
30963 c := &ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30964 c.parent = parent
30965 c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
30966 return c
30967 }
30968
30969
30970
30971
30972 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
30973 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30974 return c
30975 }
30976
30977
30978 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
30979 c.ctx_ = ctx
30980 return c
30981 }
30982
30983
30984
30985 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
30986 if c.header_ == nil {
30987 c.header_ = make(http.Header)
30988 }
30989 return c.header_
30990 }
30991
30992 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
30993 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30994 var body io.Reader = nil
30995 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
30996 if err != nil {
30997 return nil, err
30998 }
30999 c.urlParams_.Set("alt", alt)
31000 c.urlParams_.Set("prettyPrint", "false")
31001 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
31002 urls += "?" + c.urlParams_.Encode()
31003 req, err := http.NewRequest("POST", urls, body)
31004 if err != nil {
31005 return nil, err
31006 }
31007 req.Header = reqHeaders
31008 googleapi.Expand(req.URL, map[string]string{
31009 "parent": c.parent,
31010 })
31011 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31012 }
31013
31014
31015
31016
31017
31018
31019
31020 func (c *ProjectsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
31021 gensupport.SetOptions(c.urlParams_, opts...)
31022 res, err := c.doRequest("json")
31023 if res != nil && res.StatusCode == http.StatusNotModified {
31024 if res.Body != nil {
31025 res.Body.Close()
31026 }
31027 return nil, gensupport.WrapError(&googleapi.Error{
31028 Code: res.StatusCode,
31029 Header: res.Header,
31030 })
31031 }
31032 if err != nil {
31033 return nil, err
31034 }
31035 defer googleapi.CloseBody(res)
31036 if err := googleapi.CheckResponse(res); err != nil {
31037 return nil, gensupport.WrapError(err)
31038 }
31039 ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
31040 ServerResponse: googleapi.ServerResponse{
31041 Header: res.Header,
31042 HTTPStatusCode: res.StatusCode,
31043 },
31044 }
31045 target := &ret
31046 if err := gensupport.DecodeResponse(target, res); err != nil {
31047 return nil, err
31048 }
31049 return ret, nil
31050 }
31051
31052 type ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
31053 s *Service
31054 parent string
31055 googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
31056 urlParams_ gensupport.URLParams
31057 ctx_ context.Context
31058 header_ http.Header
31059 }
31060
31061
31062
31063
31064
31065
31066 func (r *ProjectsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
31067 c := &ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31068 c.parent = parent
31069 c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
31070 return c
31071 }
31072
31073
31074
31075
31076 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
31077 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31078 return c
31079 }
31080
31081
31082 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
31083 c.ctx_ = ctx
31084 return c
31085 }
31086
31087
31088
31089 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
31090 if c.header_ == nil {
31091 c.header_ = make(http.Header)
31092 }
31093 return c.header_
31094 }
31095
31096 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
31097 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31098 var body io.Reader = nil
31099 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
31100 if err != nil {
31101 return nil, err
31102 }
31103 c.urlParams_.Set("alt", alt)
31104 c.urlParams_.Set("prettyPrint", "false")
31105 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
31106 urls += "?" + c.urlParams_.Encode()
31107 req, err := http.NewRequest("POST", urls, body)
31108 if err != nil {
31109 return nil, err
31110 }
31111 req.Header = reqHeaders
31112 googleapi.Expand(req.URL, map[string]string{
31113 "parent": c.parent,
31114 })
31115 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31116 }
31117
31118
31119
31120
31121
31122
31123
31124 func (c *ProjectsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
31125 gensupport.SetOptions(c.urlParams_, opts...)
31126 res, err := c.doRequest("json")
31127 if res != nil && res.StatusCode == http.StatusNotModified {
31128 if res.Body != nil {
31129 res.Body.Close()
31130 }
31131 return nil, gensupport.WrapError(&googleapi.Error{
31132 Code: res.StatusCode,
31133 Header: res.Header,
31134 })
31135 }
31136 if err != nil {
31137 return nil, err
31138 }
31139 defer googleapi.CloseBody(res)
31140 if err := googleapi.CheckResponse(res); err != nil {
31141 return nil, gensupport.WrapError(err)
31142 }
31143 ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
31144 ServerResponse: googleapi.ServerResponse{
31145 Header: res.Header,
31146 HTTPStatusCode: res.StatusCode,
31147 },
31148 }
31149 target := &ret
31150 if err := gensupport.DecodeResponse(target, res); err != nil {
31151 return nil, err
31152 }
31153 return ret, nil
31154 }
31155
31156 type ProjectsConversationsSuggestionsSearchKnowledgeCall struct {
31157 s *Service
31158 conversation string
31159 googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
31160 urlParams_ gensupport.URLParams
31161 ctx_ context.Context
31162 header_ http.Header
31163 }
31164
31165
31166
31167
31168
31169
31170
31171 func (r *ProjectsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
31172 c := &ProjectsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31173 c.conversation = conversation
31174 c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
31175 return c
31176 }
31177
31178
31179
31180
31181 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
31182 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31183 return c
31184 }
31185
31186
31187 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSearchKnowledgeCall {
31188 c.ctx_ = ctx
31189 return c
31190 }
31191
31192
31193
31194 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
31195 if c.header_ == nil {
31196 c.header_ = make(http.Header)
31197 }
31198 return c.header_
31199 }
31200
31201 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
31202 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31203 var body io.Reader = nil
31204 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
31205 if err != nil {
31206 return nil, err
31207 }
31208 c.urlParams_.Set("alt", alt)
31209 c.urlParams_.Set("prettyPrint", "false")
31210 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:searchKnowledge")
31211 urls += "?" + c.urlParams_.Encode()
31212 req, err := http.NewRequest("POST", urls, body)
31213 if err != nil {
31214 return nil, err
31215 }
31216 req.Header = reqHeaders
31217 googleapi.Expand(req.URL, map[string]string{
31218 "conversation": c.conversation,
31219 })
31220 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31221 }
31222
31223
31224
31225
31226
31227
31228
31229 func (c *ProjectsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
31230 gensupport.SetOptions(c.urlParams_, opts...)
31231 res, err := c.doRequest("json")
31232 if res != nil && res.StatusCode == http.StatusNotModified {
31233 if res.Body != nil {
31234 res.Body.Close()
31235 }
31236 return nil, gensupport.WrapError(&googleapi.Error{
31237 Code: res.StatusCode,
31238 Header: res.Header,
31239 })
31240 }
31241 if err != nil {
31242 return nil, err
31243 }
31244 defer googleapi.CloseBody(res)
31245 if err := googleapi.CheckResponse(res); err != nil {
31246 return nil, gensupport.WrapError(err)
31247 }
31248 ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
31249 ServerResponse: googleapi.ServerResponse{
31250 Header: res.Header,
31251 HTTPStatusCode: res.StatusCode,
31252 },
31253 }
31254 target := &ret
31255 if err := gensupport.DecodeResponse(target, res); err != nil {
31256 return nil, err
31257 }
31258 return ret, nil
31259 }
31260
31261 type ProjectsConversationsSuggestionsSuggestConversationSummaryCall struct {
31262 s *Service
31263 conversation string
31264 googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
31265 urlParams_ gensupport.URLParams
31266 ctx_ context.Context
31267 header_ http.Header
31268 }
31269
31270
31271
31272
31273
31274
31275
31276 func (r *ProjectsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
31277 c := &ProjectsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31278 c.conversation = conversation
31279 c.googleclouddialogflowv2beta1suggestconversationsummaryrequest = googleclouddialogflowv2beta1suggestconversationsummaryrequest
31280 return c
31281 }
31282
31283
31284
31285
31286 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
31287 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31288 return c
31289 }
31290
31291
31292 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsConversationsSuggestionsSuggestConversationSummaryCall {
31293 c.ctx_ = ctx
31294 return c
31295 }
31296
31297
31298
31299 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
31300 if c.header_ == nil {
31301 c.header_ = make(http.Header)
31302 }
31303 return c.header_
31304 }
31305
31306 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
31307 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31308 var body io.Reader = nil
31309 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestconversationsummaryrequest)
31310 if err != nil {
31311 return nil, err
31312 }
31313 c.urlParams_.Set("alt", alt)
31314 c.urlParams_.Set("prettyPrint", "false")
31315 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:suggestConversationSummary")
31316 urls += "?" + c.urlParams_.Encode()
31317 req, err := http.NewRequest("POST", urls, body)
31318 if err != nil {
31319 return nil, err
31320 }
31321 req.Header = reqHeaders
31322 googleapi.Expand(req.URL, map[string]string{
31323 "conversation": c.conversation,
31324 })
31325 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31326 }
31327
31328
31329
31330
31331
31332
31333
31334 func (c *ProjectsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse, error) {
31335 gensupport.SetOptions(c.urlParams_, opts...)
31336 res, err := c.doRequest("json")
31337 if res != nil && res.StatusCode == http.StatusNotModified {
31338 if res.Body != nil {
31339 res.Body.Close()
31340 }
31341 return nil, gensupport.WrapError(&googleapi.Error{
31342 Code: res.StatusCode,
31343 Header: res.Header,
31344 })
31345 }
31346 if err != nil {
31347 return nil, err
31348 }
31349 defer googleapi.CloseBody(res)
31350 if err := googleapi.CheckResponse(res); err != nil {
31351 return nil, gensupport.WrapError(err)
31352 }
31353 ret := &GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse{
31354 ServerResponse: googleapi.ServerResponse{
31355 Header: res.Header,
31356 HTTPStatusCode: res.StatusCode,
31357 },
31358 }
31359 target := &ret
31360 if err := gensupport.DecodeResponse(target, res); err != nil {
31361 return nil, err
31362 }
31363 return ret, nil
31364 }
31365
31366 type ProjectsKnowledgeBasesCreateCall struct {
31367 s *Service
31368 parent string
31369 googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
31370 urlParams_ gensupport.URLParams
31371 ctx_ context.Context
31372 header_ http.Header
31373 }
31374
31375
31376
31377
31378
31379
31380 func (r *ProjectsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesCreateCall {
31381 c := &ProjectsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31382 c.parent = parent
31383 c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
31384 return c
31385 }
31386
31387
31388
31389
31390 func (c *ProjectsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesCreateCall {
31391 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31392 return c
31393 }
31394
31395
31396 func (c *ProjectsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesCreateCall {
31397 c.ctx_ = ctx
31398 return c
31399 }
31400
31401
31402
31403 func (c *ProjectsKnowledgeBasesCreateCall) Header() http.Header {
31404 if c.header_ == nil {
31405 c.header_ = make(http.Header)
31406 }
31407 return c.header_
31408 }
31409
31410 func (c *ProjectsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
31411 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31412 var body io.Reader = nil
31413 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
31414 if err != nil {
31415 return nil, err
31416 }
31417 c.urlParams_.Set("alt", alt)
31418 c.urlParams_.Set("prettyPrint", "false")
31419 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
31420 urls += "?" + c.urlParams_.Encode()
31421 req, err := http.NewRequest("POST", urls, body)
31422 if err != nil {
31423 return nil, err
31424 }
31425 req.Header = reqHeaders
31426 googleapi.Expand(req.URL, map[string]string{
31427 "parent": c.parent,
31428 })
31429 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31430 }
31431
31432
31433
31434
31435
31436
31437
31438 func (c *ProjectsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
31439 gensupport.SetOptions(c.urlParams_, opts...)
31440 res, err := c.doRequest("json")
31441 if res != nil && res.StatusCode == http.StatusNotModified {
31442 if res.Body != nil {
31443 res.Body.Close()
31444 }
31445 return nil, gensupport.WrapError(&googleapi.Error{
31446 Code: res.StatusCode,
31447 Header: res.Header,
31448 })
31449 }
31450 if err != nil {
31451 return nil, err
31452 }
31453 defer googleapi.CloseBody(res)
31454 if err := googleapi.CheckResponse(res); err != nil {
31455 return nil, gensupport.WrapError(err)
31456 }
31457 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
31458 ServerResponse: googleapi.ServerResponse{
31459 Header: res.Header,
31460 HTTPStatusCode: res.StatusCode,
31461 },
31462 }
31463 target := &ret
31464 if err := gensupport.DecodeResponse(target, res); err != nil {
31465 return nil, err
31466 }
31467 return ret, nil
31468 }
31469
31470 type ProjectsKnowledgeBasesDeleteCall struct {
31471 s *Service
31472 name string
31473 urlParams_ gensupport.URLParams
31474 ctx_ context.Context
31475 header_ http.Header
31476 }
31477
31478
31479
31480
31481
31482
31483
31484 func (r *ProjectsKnowledgeBasesService) Delete(name string) *ProjectsKnowledgeBasesDeleteCall {
31485 c := &ProjectsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31486 c.name = name
31487 return c
31488 }
31489
31490
31491
31492 func (c *ProjectsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsKnowledgeBasesDeleteCall {
31493 c.urlParams_.Set("force", fmt.Sprint(force))
31494 return c
31495 }
31496
31497
31498
31499
31500 func (c *ProjectsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDeleteCall {
31501 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31502 return c
31503 }
31504
31505
31506 func (c *ProjectsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDeleteCall {
31507 c.ctx_ = ctx
31508 return c
31509 }
31510
31511
31512
31513 func (c *ProjectsKnowledgeBasesDeleteCall) Header() http.Header {
31514 if c.header_ == nil {
31515 c.header_ = make(http.Header)
31516 }
31517 return c.header_
31518 }
31519
31520 func (c *ProjectsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
31521 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31522 var body io.Reader = nil
31523 c.urlParams_.Set("alt", alt)
31524 c.urlParams_.Set("prettyPrint", "false")
31525 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31526 urls += "?" + c.urlParams_.Encode()
31527 req, err := http.NewRequest("DELETE", urls, body)
31528 if err != nil {
31529 return nil, err
31530 }
31531 req.Header = reqHeaders
31532 googleapi.Expand(req.URL, map[string]string{
31533 "name": c.name,
31534 })
31535 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31536 }
31537
31538
31539
31540
31541
31542
31543
31544 func (c *ProjectsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31545 gensupport.SetOptions(c.urlParams_, opts...)
31546 res, err := c.doRequest("json")
31547 if res != nil && res.StatusCode == http.StatusNotModified {
31548 if res.Body != nil {
31549 res.Body.Close()
31550 }
31551 return nil, gensupport.WrapError(&googleapi.Error{
31552 Code: res.StatusCode,
31553 Header: res.Header,
31554 })
31555 }
31556 if err != nil {
31557 return nil, err
31558 }
31559 defer googleapi.CloseBody(res)
31560 if err := googleapi.CheckResponse(res); err != nil {
31561 return nil, gensupport.WrapError(err)
31562 }
31563 ret := &GoogleProtobufEmpty{
31564 ServerResponse: googleapi.ServerResponse{
31565 Header: res.Header,
31566 HTTPStatusCode: res.StatusCode,
31567 },
31568 }
31569 target := &ret
31570 if err := gensupport.DecodeResponse(target, res); err != nil {
31571 return nil, err
31572 }
31573 return ret, nil
31574 }
31575
31576 type ProjectsKnowledgeBasesGetCall struct {
31577 s *Service
31578 name string
31579 urlParams_ gensupport.URLParams
31580 ifNoneMatch_ string
31581 ctx_ context.Context
31582 header_ http.Header
31583 }
31584
31585
31586
31587
31588
31589
31590
31591 func (r *ProjectsKnowledgeBasesService) Get(name string) *ProjectsKnowledgeBasesGetCall {
31592 c := &ProjectsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31593 c.name = name
31594 return c
31595 }
31596
31597
31598
31599
31600 func (c *ProjectsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesGetCall {
31601 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31602 return c
31603 }
31604
31605
31606
31607
31608 func (c *ProjectsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesGetCall {
31609 c.ifNoneMatch_ = entityTag
31610 return c
31611 }
31612
31613
31614 func (c *ProjectsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesGetCall {
31615 c.ctx_ = ctx
31616 return c
31617 }
31618
31619
31620
31621 func (c *ProjectsKnowledgeBasesGetCall) Header() http.Header {
31622 if c.header_ == nil {
31623 c.header_ = make(http.Header)
31624 }
31625 return c.header_
31626 }
31627
31628 func (c *ProjectsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
31629 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31630 if c.ifNoneMatch_ != "" {
31631 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31632 }
31633 var body io.Reader = nil
31634 c.urlParams_.Set("alt", alt)
31635 c.urlParams_.Set("prettyPrint", "false")
31636 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31637 urls += "?" + c.urlParams_.Encode()
31638 req, err := http.NewRequest("GET", urls, body)
31639 if err != nil {
31640 return nil, err
31641 }
31642 req.Header = reqHeaders
31643 googleapi.Expand(req.URL, map[string]string{
31644 "name": c.name,
31645 })
31646 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31647 }
31648
31649
31650
31651
31652
31653
31654
31655 func (c *ProjectsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
31656 gensupport.SetOptions(c.urlParams_, opts...)
31657 res, err := c.doRequest("json")
31658 if res != nil && res.StatusCode == http.StatusNotModified {
31659 if res.Body != nil {
31660 res.Body.Close()
31661 }
31662 return nil, gensupport.WrapError(&googleapi.Error{
31663 Code: res.StatusCode,
31664 Header: res.Header,
31665 })
31666 }
31667 if err != nil {
31668 return nil, err
31669 }
31670 defer googleapi.CloseBody(res)
31671 if err := googleapi.CheckResponse(res); err != nil {
31672 return nil, gensupport.WrapError(err)
31673 }
31674 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
31675 ServerResponse: googleapi.ServerResponse{
31676 Header: res.Header,
31677 HTTPStatusCode: res.StatusCode,
31678 },
31679 }
31680 target := &ret
31681 if err := gensupport.DecodeResponse(target, res); err != nil {
31682 return nil, err
31683 }
31684 return ret, nil
31685 }
31686
31687 type ProjectsKnowledgeBasesListCall struct {
31688 s *Service
31689 parent string
31690 urlParams_ gensupport.URLParams
31691 ifNoneMatch_ string
31692 ctx_ context.Context
31693 header_ http.Header
31694 }
31695
31696
31697
31698
31699
31700
31701
31702 func (r *ProjectsKnowledgeBasesService) List(parent string) *ProjectsKnowledgeBasesListCall {
31703 c := &ProjectsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31704 c.parent = parent
31705 return c
31706 }
31707
31708
31709
31710
31711
31712
31713
31714
31715
31716
31717
31718
31719
31720
31721 func (c *ProjectsKnowledgeBasesListCall) Filter(filter string) *ProjectsKnowledgeBasesListCall {
31722 c.urlParams_.Set("filter", filter)
31723 return c
31724 }
31725
31726
31727
31728 func (c *ProjectsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesListCall {
31729 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31730 return c
31731 }
31732
31733
31734
31735 func (c *ProjectsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesListCall {
31736 c.urlParams_.Set("pageToken", pageToken)
31737 return c
31738 }
31739
31740
31741
31742
31743 func (c *ProjectsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesListCall {
31744 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31745 return c
31746 }
31747
31748
31749
31750
31751 func (c *ProjectsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesListCall {
31752 c.ifNoneMatch_ = entityTag
31753 return c
31754 }
31755
31756
31757 func (c *ProjectsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesListCall {
31758 c.ctx_ = ctx
31759 return c
31760 }
31761
31762
31763
31764 func (c *ProjectsKnowledgeBasesListCall) Header() http.Header {
31765 if c.header_ == nil {
31766 c.header_ = make(http.Header)
31767 }
31768 return c.header_
31769 }
31770
31771 func (c *ProjectsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
31772 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31773 if c.ifNoneMatch_ != "" {
31774 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31775 }
31776 var body io.Reader = nil
31777 c.urlParams_.Set("alt", alt)
31778 c.urlParams_.Set("prettyPrint", "false")
31779 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
31780 urls += "?" + c.urlParams_.Encode()
31781 req, err := http.NewRequest("GET", urls, body)
31782 if err != nil {
31783 return nil, err
31784 }
31785 req.Header = reqHeaders
31786 googleapi.Expand(req.URL, map[string]string{
31787 "parent": c.parent,
31788 })
31789 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31790 }
31791
31792
31793
31794
31795
31796
31797
31798
31799
31800 func (c *ProjectsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
31801 gensupport.SetOptions(c.urlParams_, opts...)
31802 res, err := c.doRequest("json")
31803 if res != nil && res.StatusCode == http.StatusNotModified {
31804 if res.Body != nil {
31805 res.Body.Close()
31806 }
31807 return nil, gensupport.WrapError(&googleapi.Error{
31808 Code: res.StatusCode,
31809 Header: res.Header,
31810 })
31811 }
31812 if err != nil {
31813 return nil, err
31814 }
31815 defer googleapi.CloseBody(res)
31816 if err := googleapi.CheckResponse(res); err != nil {
31817 return nil, gensupport.WrapError(err)
31818 }
31819 ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
31820 ServerResponse: googleapi.ServerResponse{
31821 Header: res.Header,
31822 HTTPStatusCode: res.StatusCode,
31823 },
31824 }
31825 target := &ret
31826 if err := gensupport.DecodeResponse(target, res); err != nil {
31827 return nil, err
31828 }
31829 return ret, nil
31830 }
31831
31832
31833
31834
31835 func (c *ProjectsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
31836 c.ctx_ = ctx
31837 defer c.PageToken(c.urlParams_.Get("pageToken"))
31838 for {
31839 x, err := c.Do()
31840 if err != nil {
31841 return err
31842 }
31843 if err := f(x); err != nil {
31844 return err
31845 }
31846 if x.NextPageToken == "" {
31847 return nil
31848 }
31849 c.PageToken(x.NextPageToken)
31850 }
31851 }
31852
31853 type ProjectsKnowledgeBasesPatchCall struct {
31854 s *Service
31855 name string
31856 googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
31857 urlParams_ gensupport.URLParams
31858 ctx_ context.Context
31859 header_ http.Header
31860 }
31861
31862
31863
31864
31865
31866
31867
31868 func (r *ProjectsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsKnowledgeBasesPatchCall {
31869 c := &ProjectsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31870 c.name = name
31871 c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
31872 return c
31873 }
31874
31875
31876
31877
31878 func (c *ProjectsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesPatchCall {
31879 c.urlParams_.Set("updateMask", updateMask)
31880 return c
31881 }
31882
31883
31884
31885
31886 func (c *ProjectsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesPatchCall {
31887 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31888 return c
31889 }
31890
31891
31892 func (c *ProjectsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesPatchCall {
31893 c.ctx_ = ctx
31894 return c
31895 }
31896
31897
31898
31899 func (c *ProjectsKnowledgeBasesPatchCall) Header() http.Header {
31900 if c.header_ == nil {
31901 c.header_ = make(http.Header)
31902 }
31903 return c.header_
31904 }
31905
31906 func (c *ProjectsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
31907 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31908 var body io.Reader = nil
31909 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
31910 if err != nil {
31911 return nil, err
31912 }
31913 c.urlParams_.Set("alt", alt)
31914 c.urlParams_.Set("prettyPrint", "false")
31915 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
31916 urls += "?" + c.urlParams_.Encode()
31917 req, err := http.NewRequest("PATCH", urls, body)
31918 if err != nil {
31919 return nil, err
31920 }
31921 req.Header = reqHeaders
31922 googleapi.Expand(req.URL, map[string]string{
31923 "name": c.name,
31924 })
31925 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31926 }
31927
31928
31929
31930
31931
31932
31933
31934 func (c *ProjectsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
31935 gensupport.SetOptions(c.urlParams_, opts...)
31936 res, err := c.doRequest("json")
31937 if res != nil && res.StatusCode == http.StatusNotModified {
31938 if res.Body != nil {
31939 res.Body.Close()
31940 }
31941 return nil, gensupport.WrapError(&googleapi.Error{
31942 Code: res.StatusCode,
31943 Header: res.Header,
31944 })
31945 }
31946 if err != nil {
31947 return nil, err
31948 }
31949 defer googleapi.CloseBody(res)
31950 if err := googleapi.CheckResponse(res); err != nil {
31951 return nil, gensupport.WrapError(err)
31952 }
31953 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
31954 ServerResponse: googleapi.ServerResponse{
31955 Header: res.Header,
31956 HTTPStatusCode: res.StatusCode,
31957 },
31958 }
31959 target := &ret
31960 if err := gensupport.DecodeResponse(target, res); err != nil {
31961 return nil, err
31962 }
31963 return ret, nil
31964 }
31965
31966 type ProjectsKnowledgeBasesDocumentsCreateCall struct {
31967 s *Service
31968 parent string
31969 googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
31970 urlParams_ gensupport.URLParams
31971 ctx_ context.Context
31972 header_ http.Header
31973 }
31974
31975
31976
31977
31978
31979
31980
31981
31982
31983
31984 func (r *ProjectsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsCreateCall {
31985 c := &ProjectsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31986 c.parent = parent
31987 c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
31988 return c
31989 }
31990
31991
31992
31993
31994
31995 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsKnowledgeBasesDocumentsCreateCall {
31996 c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
31997 return c
31998 }
31999
32000
32001
32002
32003 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsCreateCall {
32004 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32005 return c
32006 }
32007
32008
32009 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsCreateCall {
32010 c.ctx_ = ctx
32011 return c
32012 }
32013
32014
32015
32016 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
32017 if c.header_ == nil {
32018 c.header_ = make(http.Header)
32019 }
32020 return c.header_
32021 }
32022
32023 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
32024 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32025 var body io.Reader = nil
32026 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
32027 if err != nil {
32028 return nil, err
32029 }
32030 c.urlParams_.Set("alt", alt)
32031 c.urlParams_.Set("prettyPrint", "false")
32032 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
32033 urls += "?" + c.urlParams_.Encode()
32034 req, err := http.NewRequest("POST", urls, body)
32035 if err != nil {
32036 return nil, err
32037 }
32038 req.Header = reqHeaders
32039 googleapi.Expand(req.URL, map[string]string{
32040 "parent": c.parent,
32041 })
32042 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32043 }
32044
32045
32046
32047
32048
32049
32050
32051 func (c *ProjectsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32052 gensupport.SetOptions(c.urlParams_, opts...)
32053 res, err := c.doRequest("json")
32054 if res != nil && res.StatusCode == http.StatusNotModified {
32055 if res.Body != nil {
32056 res.Body.Close()
32057 }
32058 return nil, gensupport.WrapError(&googleapi.Error{
32059 Code: res.StatusCode,
32060 Header: res.Header,
32061 })
32062 }
32063 if err != nil {
32064 return nil, err
32065 }
32066 defer googleapi.CloseBody(res)
32067 if err := googleapi.CheckResponse(res); err != nil {
32068 return nil, gensupport.WrapError(err)
32069 }
32070 ret := &GoogleLongrunningOperation{
32071 ServerResponse: googleapi.ServerResponse{
32072 Header: res.Header,
32073 HTTPStatusCode: res.StatusCode,
32074 },
32075 }
32076 target := &ret
32077 if err := gensupport.DecodeResponse(target, res); err != nil {
32078 return nil, err
32079 }
32080 return ret, nil
32081 }
32082
32083 type ProjectsKnowledgeBasesDocumentsDeleteCall struct {
32084 s *Service
32085 name string
32086 urlParams_ gensupport.URLParams
32087 ctx_ context.Context
32088 header_ http.Header
32089 }
32090
32091
32092
32093
32094
32095
32096
32097
32098
32099
32100
32101
32102 func (r *ProjectsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsKnowledgeBasesDocumentsDeleteCall {
32103 c := &ProjectsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32104 c.name = name
32105 return c
32106 }
32107
32108
32109
32110
32111 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsDeleteCall {
32112 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32113 return c
32114 }
32115
32116
32117 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsDeleteCall {
32118 c.ctx_ = ctx
32119 return c
32120 }
32121
32122
32123
32124 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
32125 if c.header_ == nil {
32126 c.header_ = make(http.Header)
32127 }
32128 return c.header_
32129 }
32130
32131 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
32132 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32133 var body io.Reader = nil
32134 c.urlParams_.Set("alt", alt)
32135 c.urlParams_.Set("prettyPrint", "false")
32136 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32137 urls += "?" + c.urlParams_.Encode()
32138 req, err := http.NewRequest("DELETE", urls, body)
32139 if err != nil {
32140 return nil, err
32141 }
32142 req.Header = reqHeaders
32143 googleapi.Expand(req.URL, map[string]string{
32144 "name": c.name,
32145 })
32146 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32147 }
32148
32149
32150
32151
32152
32153
32154
32155 func (c *ProjectsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32156 gensupport.SetOptions(c.urlParams_, opts...)
32157 res, err := c.doRequest("json")
32158 if res != nil && res.StatusCode == http.StatusNotModified {
32159 if res.Body != nil {
32160 res.Body.Close()
32161 }
32162 return nil, gensupport.WrapError(&googleapi.Error{
32163 Code: res.StatusCode,
32164 Header: res.Header,
32165 })
32166 }
32167 if err != nil {
32168 return nil, err
32169 }
32170 defer googleapi.CloseBody(res)
32171 if err := googleapi.CheckResponse(res); err != nil {
32172 return nil, gensupport.WrapError(err)
32173 }
32174 ret := &GoogleLongrunningOperation{
32175 ServerResponse: googleapi.ServerResponse{
32176 Header: res.Header,
32177 HTTPStatusCode: res.StatusCode,
32178 },
32179 }
32180 target := &ret
32181 if err := gensupport.DecodeResponse(target, res); err != nil {
32182 return nil, err
32183 }
32184 return ret, nil
32185 }
32186
32187 type ProjectsKnowledgeBasesDocumentsGetCall struct {
32188 s *Service
32189 name string
32190 urlParams_ gensupport.URLParams
32191 ifNoneMatch_ string
32192 ctx_ context.Context
32193 header_ http.Header
32194 }
32195
32196
32197
32198
32199
32200
32201
32202 func (r *ProjectsKnowledgeBasesDocumentsService) Get(name string) *ProjectsKnowledgeBasesDocumentsGetCall {
32203 c := &ProjectsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32204 c.name = name
32205 return c
32206 }
32207
32208
32209
32210
32211 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsGetCall {
32212 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32213 return c
32214 }
32215
32216
32217
32218
32219 func (c *ProjectsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsGetCall {
32220 c.ifNoneMatch_ = entityTag
32221 return c
32222 }
32223
32224
32225 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsGetCall {
32226 c.ctx_ = ctx
32227 return c
32228 }
32229
32230
32231
32232 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Header() http.Header {
32233 if c.header_ == nil {
32234 c.header_ = make(http.Header)
32235 }
32236 return c.header_
32237 }
32238
32239 func (c *ProjectsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
32240 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32241 if c.ifNoneMatch_ != "" {
32242 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32243 }
32244 var body io.Reader = nil
32245 c.urlParams_.Set("alt", alt)
32246 c.urlParams_.Set("prettyPrint", "false")
32247 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32248 urls += "?" + c.urlParams_.Encode()
32249 req, err := http.NewRequest("GET", urls, body)
32250 if err != nil {
32251 return nil, err
32252 }
32253 req.Header = reqHeaders
32254 googleapi.Expand(req.URL, map[string]string{
32255 "name": c.name,
32256 })
32257 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32258 }
32259
32260
32261
32262
32263
32264
32265
32266 func (c *ProjectsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
32267 gensupport.SetOptions(c.urlParams_, opts...)
32268 res, err := c.doRequest("json")
32269 if res != nil && res.StatusCode == http.StatusNotModified {
32270 if res.Body != nil {
32271 res.Body.Close()
32272 }
32273 return nil, gensupport.WrapError(&googleapi.Error{
32274 Code: res.StatusCode,
32275 Header: res.Header,
32276 })
32277 }
32278 if err != nil {
32279 return nil, err
32280 }
32281 defer googleapi.CloseBody(res)
32282 if err := googleapi.CheckResponse(res); err != nil {
32283 return nil, gensupport.WrapError(err)
32284 }
32285 ret := &GoogleCloudDialogflowV2beta1Document{
32286 ServerResponse: googleapi.ServerResponse{
32287 Header: res.Header,
32288 HTTPStatusCode: res.StatusCode,
32289 },
32290 }
32291 target := &ret
32292 if err := gensupport.DecodeResponse(target, res); err != nil {
32293 return nil, err
32294 }
32295 return ret, nil
32296 }
32297
32298 type ProjectsKnowledgeBasesDocumentsImportCall struct {
32299 s *Service
32300 parent string
32301 googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
32302 urlParams_ gensupport.URLParams
32303 ctx_ context.Context
32304 header_ http.Header
32305 }
32306
32307
32308
32309
32310
32311
32312
32313
32314
32315
32316 func (r *ProjectsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsKnowledgeBasesDocumentsImportCall {
32317 c := &ProjectsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32318 c.parent = parent
32319 c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
32320 return c
32321 }
32322
32323
32324
32325
32326 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsImportCall {
32327 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32328 return c
32329 }
32330
32331
32332 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsImportCall {
32333 c.ctx_ = ctx
32334 return c
32335 }
32336
32337
32338
32339 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Header() http.Header {
32340 if c.header_ == nil {
32341 c.header_ = make(http.Header)
32342 }
32343 return c.header_
32344 }
32345
32346 func (c *ProjectsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
32347 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32348 var body io.Reader = nil
32349 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
32350 if err != nil {
32351 return nil, err
32352 }
32353 c.urlParams_.Set("alt", alt)
32354 c.urlParams_.Set("prettyPrint", "false")
32355 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
32356 urls += "?" + c.urlParams_.Encode()
32357 req, err := http.NewRequest("POST", urls, body)
32358 if err != nil {
32359 return nil, err
32360 }
32361 req.Header = reqHeaders
32362 googleapi.Expand(req.URL, map[string]string{
32363 "parent": c.parent,
32364 })
32365 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32366 }
32367
32368
32369
32370
32371
32372
32373
32374 func (c *ProjectsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32375 gensupport.SetOptions(c.urlParams_, opts...)
32376 res, err := c.doRequest("json")
32377 if res != nil && res.StatusCode == http.StatusNotModified {
32378 if res.Body != nil {
32379 res.Body.Close()
32380 }
32381 return nil, gensupport.WrapError(&googleapi.Error{
32382 Code: res.StatusCode,
32383 Header: res.Header,
32384 })
32385 }
32386 if err != nil {
32387 return nil, err
32388 }
32389 defer googleapi.CloseBody(res)
32390 if err := googleapi.CheckResponse(res); err != nil {
32391 return nil, gensupport.WrapError(err)
32392 }
32393 ret := &GoogleLongrunningOperation{
32394 ServerResponse: googleapi.ServerResponse{
32395 Header: res.Header,
32396 HTTPStatusCode: res.StatusCode,
32397 },
32398 }
32399 target := &ret
32400 if err := gensupport.DecodeResponse(target, res); err != nil {
32401 return nil, err
32402 }
32403 return ret, nil
32404 }
32405
32406 type ProjectsKnowledgeBasesDocumentsListCall struct {
32407 s *Service
32408 parent string
32409 urlParams_ gensupport.URLParams
32410 ifNoneMatch_ string
32411 ctx_ context.Context
32412 header_ http.Header
32413 }
32414
32415
32416
32417
32418
32419
32420
32421 func (r *ProjectsKnowledgeBasesDocumentsService) List(parent string) *ProjectsKnowledgeBasesDocumentsListCall {
32422 c := &ProjectsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32423 c.parent = parent
32424 return c
32425 }
32426
32427
32428
32429
32430
32431
32432
32433
32434
32435
32436
32437 func (c *ProjectsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsKnowledgeBasesDocumentsListCall {
32438 c.urlParams_.Set("filter", filter)
32439 return c
32440 }
32441
32442
32443
32444 func (c *ProjectsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsKnowledgeBasesDocumentsListCall {
32445 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32446 return c
32447 }
32448
32449
32450
32451 func (c *ProjectsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsKnowledgeBasesDocumentsListCall {
32452 c.urlParams_.Set("pageToken", pageToken)
32453 return c
32454 }
32455
32456
32457
32458
32459 func (c *ProjectsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsListCall {
32460 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32461 return c
32462 }
32463
32464
32465
32466
32467 func (c *ProjectsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsKnowledgeBasesDocumentsListCall {
32468 c.ifNoneMatch_ = entityTag
32469 return c
32470 }
32471
32472
32473 func (c *ProjectsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsListCall {
32474 c.ctx_ = ctx
32475 return c
32476 }
32477
32478
32479
32480 func (c *ProjectsKnowledgeBasesDocumentsListCall) Header() http.Header {
32481 if c.header_ == nil {
32482 c.header_ = make(http.Header)
32483 }
32484 return c.header_
32485 }
32486
32487 func (c *ProjectsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
32488 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32489 if c.ifNoneMatch_ != "" {
32490 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32491 }
32492 var body io.Reader = nil
32493 c.urlParams_.Set("alt", alt)
32494 c.urlParams_.Set("prettyPrint", "false")
32495 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
32496 urls += "?" + c.urlParams_.Encode()
32497 req, err := http.NewRequest("GET", urls, body)
32498 if err != nil {
32499 return nil, err
32500 }
32501 req.Header = reqHeaders
32502 googleapi.Expand(req.URL, map[string]string{
32503 "parent": c.parent,
32504 })
32505 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32506 }
32507
32508
32509
32510
32511
32512
32513
32514 func (c *ProjectsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
32515 gensupport.SetOptions(c.urlParams_, opts...)
32516 res, err := c.doRequest("json")
32517 if res != nil && res.StatusCode == http.StatusNotModified {
32518 if res.Body != nil {
32519 res.Body.Close()
32520 }
32521 return nil, gensupport.WrapError(&googleapi.Error{
32522 Code: res.StatusCode,
32523 Header: res.Header,
32524 })
32525 }
32526 if err != nil {
32527 return nil, err
32528 }
32529 defer googleapi.CloseBody(res)
32530 if err := googleapi.CheckResponse(res); err != nil {
32531 return nil, gensupport.WrapError(err)
32532 }
32533 ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
32534 ServerResponse: googleapi.ServerResponse{
32535 Header: res.Header,
32536 HTTPStatusCode: res.StatusCode,
32537 },
32538 }
32539 target := &ret
32540 if err := gensupport.DecodeResponse(target, res); err != nil {
32541 return nil, err
32542 }
32543 return ret, nil
32544 }
32545
32546
32547
32548
32549 func (c *ProjectsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
32550 c.ctx_ = ctx
32551 defer c.PageToken(c.urlParams_.Get("pageToken"))
32552 for {
32553 x, err := c.Do()
32554 if err != nil {
32555 return err
32556 }
32557 if err := f(x); err != nil {
32558 return err
32559 }
32560 if x.NextPageToken == "" {
32561 return nil
32562 }
32563 c.PageToken(x.NextPageToken)
32564 }
32565 }
32566
32567 type ProjectsKnowledgeBasesDocumentsPatchCall struct {
32568 s *Service
32569 name string
32570 googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
32571 urlParams_ gensupport.URLParams
32572 ctx_ context.Context
32573 header_ http.Header
32574 }
32575
32576
32577
32578
32579
32580
32581
32582
32583
32584
32585
32586
32587 func (r *ProjectsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsKnowledgeBasesDocumentsPatchCall {
32588 c := &ProjectsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32589 c.name = name
32590 c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
32591 return c
32592 }
32593
32594
32595
32596
32597 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsKnowledgeBasesDocumentsPatchCall {
32598 c.urlParams_.Set("updateMask", updateMask)
32599 return c
32600 }
32601
32602
32603
32604
32605 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsPatchCall {
32606 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32607 return c
32608 }
32609
32610
32611 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsPatchCall {
32612 c.ctx_ = ctx
32613 return c
32614 }
32615
32616
32617
32618 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
32619 if c.header_ == nil {
32620 c.header_ = make(http.Header)
32621 }
32622 return c.header_
32623 }
32624
32625 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
32626 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32627 var body io.Reader = nil
32628 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
32629 if err != nil {
32630 return nil, err
32631 }
32632 c.urlParams_.Set("alt", alt)
32633 c.urlParams_.Set("prettyPrint", "false")
32634 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32635 urls += "?" + c.urlParams_.Encode()
32636 req, err := http.NewRequest("PATCH", urls, body)
32637 if err != nil {
32638 return nil, err
32639 }
32640 req.Header = reqHeaders
32641 googleapi.Expand(req.URL, map[string]string{
32642 "name": c.name,
32643 })
32644 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32645 }
32646
32647
32648
32649
32650
32651
32652
32653 func (c *ProjectsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32654 gensupport.SetOptions(c.urlParams_, opts...)
32655 res, err := c.doRequest("json")
32656 if res != nil && res.StatusCode == http.StatusNotModified {
32657 if res.Body != nil {
32658 res.Body.Close()
32659 }
32660 return nil, gensupport.WrapError(&googleapi.Error{
32661 Code: res.StatusCode,
32662 Header: res.Header,
32663 })
32664 }
32665 if err != nil {
32666 return nil, err
32667 }
32668 defer googleapi.CloseBody(res)
32669 if err := googleapi.CheckResponse(res); err != nil {
32670 return nil, gensupport.WrapError(err)
32671 }
32672 ret := &GoogleLongrunningOperation{
32673 ServerResponse: googleapi.ServerResponse{
32674 Header: res.Header,
32675 HTTPStatusCode: res.StatusCode,
32676 },
32677 }
32678 target := &ret
32679 if err := gensupport.DecodeResponse(target, res); err != nil {
32680 return nil, err
32681 }
32682 return ret, nil
32683 }
32684
32685 type ProjectsKnowledgeBasesDocumentsReloadCall struct {
32686 s *Service
32687 name string
32688 googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
32689 urlParams_ gensupport.URLParams
32690 ctx_ context.Context
32691 header_ http.Header
32692 }
32693
32694
32695
32696
32697
32698
32699
32700
32701
32702
32703
32704
32705
32706
32707
32708
32709
32710 func (r *ProjectsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsKnowledgeBasesDocumentsReloadCall {
32711 c := &ProjectsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32712 c.name = name
32713 c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
32714 return c
32715 }
32716
32717
32718
32719
32720 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsKnowledgeBasesDocumentsReloadCall {
32721 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32722 return c
32723 }
32724
32725
32726 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsKnowledgeBasesDocumentsReloadCall {
32727 c.ctx_ = ctx
32728 return c
32729 }
32730
32731
32732
32733 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
32734 if c.header_ == nil {
32735 c.header_ = make(http.Header)
32736 }
32737 return c.header_
32738 }
32739
32740 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
32741 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32742 var body io.Reader = nil
32743 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
32744 if err != nil {
32745 return nil, err
32746 }
32747 c.urlParams_.Set("alt", alt)
32748 c.urlParams_.Set("prettyPrint", "false")
32749 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
32750 urls += "?" + c.urlParams_.Encode()
32751 req, err := http.NewRequest("POST", urls, body)
32752 if err != nil {
32753 return nil, err
32754 }
32755 req.Header = reqHeaders
32756 googleapi.Expand(req.URL, map[string]string{
32757 "name": c.name,
32758 })
32759 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32760 }
32761
32762
32763
32764
32765
32766
32767
32768 func (c *ProjectsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32769 gensupport.SetOptions(c.urlParams_, opts...)
32770 res, err := c.doRequest("json")
32771 if res != nil && res.StatusCode == http.StatusNotModified {
32772 if res.Body != nil {
32773 res.Body.Close()
32774 }
32775 return nil, gensupport.WrapError(&googleapi.Error{
32776 Code: res.StatusCode,
32777 Header: res.Header,
32778 })
32779 }
32780 if err != nil {
32781 return nil, err
32782 }
32783 defer googleapi.CloseBody(res)
32784 if err := googleapi.CheckResponse(res); err != nil {
32785 return nil, gensupport.WrapError(err)
32786 }
32787 ret := &GoogleLongrunningOperation{
32788 ServerResponse: googleapi.ServerResponse{
32789 Header: res.Header,
32790 HTTPStatusCode: res.StatusCode,
32791 },
32792 }
32793 target := &ret
32794 if err := gensupport.DecodeResponse(target, res); err != nil {
32795 return nil, err
32796 }
32797 return ret, nil
32798 }
32799
32800 type ProjectsLocationsDeleteAgentCall struct {
32801 s *Service
32802 parent string
32803 urlParams_ gensupport.URLParams
32804 ctx_ context.Context
32805 header_ http.Header
32806 }
32807
32808
32809
32810
32811
32812 func (r *ProjectsLocationsService) DeleteAgent(parent string) *ProjectsLocationsDeleteAgentCall {
32813 c := &ProjectsLocationsDeleteAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32814 c.parent = parent
32815 return c
32816 }
32817
32818
32819
32820
32821 func (c *ProjectsLocationsDeleteAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsDeleteAgentCall {
32822 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32823 return c
32824 }
32825
32826
32827 func (c *ProjectsLocationsDeleteAgentCall) Context(ctx context.Context) *ProjectsLocationsDeleteAgentCall {
32828 c.ctx_ = ctx
32829 return c
32830 }
32831
32832
32833
32834 func (c *ProjectsLocationsDeleteAgentCall) Header() http.Header {
32835 if c.header_ == nil {
32836 c.header_ = make(http.Header)
32837 }
32838 return c.header_
32839 }
32840
32841 func (c *ProjectsLocationsDeleteAgentCall) doRequest(alt string) (*http.Response, error) {
32842 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32843 var body io.Reader = nil
32844 c.urlParams_.Set("alt", alt)
32845 c.urlParams_.Set("prettyPrint", "false")
32846 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
32847 urls += "?" + c.urlParams_.Encode()
32848 req, err := http.NewRequest("DELETE", urls, body)
32849 if err != nil {
32850 return nil, err
32851 }
32852 req.Header = reqHeaders
32853 googleapi.Expand(req.URL, map[string]string{
32854 "parent": c.parent,
32855 })
32856 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32857 }
32858
32859
32860
32861
32862
32863
32864
32865 func (c *ProjectsLocationsDeleteAgentCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
32866 gensupport.SetOptions(c.urlParams_, opts...)
32867 res, err := c.doRequest("json")
32868 if res != nil && res.StatusCode == http.StatusNotModified {
32869 if res.Body != nil {
32870 res.Body.Close()
32871 }
32872 return nil, gensupport.WrapError(&googleapi.Error{
32873 Code: res.StatusCode,
32874 Header: res.Header,
32875 })
32876 }
32877 if err != nil {
32878 return nil, err
32879 }
32880 defer googleapi.CloseBody(res)
32881 if err := googleapi.CheckResponse(res); err != nil {
32882 return nil, gensupport.WrapError(err)
32883 }
32884 ret := &GoogleProtobufEmpty{
32885 ServerResponse: googleapi.ServerResponse{
32886 Header: res.Header,
32887 HTTPStatusCode: res.StatusCode,
32888 },
32889 }
32890 target := &ret
32891 if err := gensupport.DecodeResponse(target, res); err != nil {
32892 return nil, err
32893 }
32894 return ret, nil
32895 }
32896
32897 type ProjectsLocationsGetCall struct {
32898 s *Service
32899 name string
32900 urlParams_ gensupport.URLParams
32901 ifNoneMatch_ string
32902 ctx_ context.Context
32903 header_ http.Header
32904 }
32905
32906
32907
32908
32909 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
32910 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32911 c.name = name
32912 return c
32913 }
32914
32915
32916
32917
32918 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
32919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32920 return c
32921 }
32922
32923
32924
32925
32926 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
32927 c.ifNoneMatch_ = entityTag
32928 return c
32929 }
32930
32931
32932 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
32933 c.ctx_ = ctx
32934 return c
32935 }
32936
32937
32938
32939 func (c *ProjectsLocationsGetCall) Header() http.Header {
32940 if c.header_ == nil {
32941 c.header_ = make(http.Header)
32942 }
32943 return c.header_
32944 }
32945
32946 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
32947 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32948 if c.ifNoneMatch_ != "" {
32949 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32950 }
32951 var body io.Reader = nil
32952 c.urlParams_.Set("alt", alt)
32953 c.urlParams_.Set("prettyPrint", "false")
32954 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
32955 urls += "?" + c.urlParams_.Encode()
32956 req, err := http.NewRequest("GET", urls, body)
32957 if err != nil {
32958 return nil, err
32959 }
32960 req.Header = reqHeaders
32961 googleapi.Expand(req.URL, map[string]string{
32962 "name": c.name,
32963 })
32964 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32965 }
32966
32967
32968
32969
32970
32971
32972
32973 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
32974 gensupport.SetOptions(c.urlParams_, opts...)
32975 res, err := c.doRequest("json")
32976 if res != nil && res.StatusCode == http.StatusNotModified {
32977 if res.Body != nil {
32978 res.Body.Close()
32979 }
32980 return nil, gensupport.WrapError(&googleapi.Error{
32981 Code: res.StatusCode,
32982 Header: res.Header,
32983 })
32984 }
32985 if err != nil {
32986 return nil, err
32987 }
32988 defer googleapi.CloseBody(res)
32989 if err := googleapi.CheckResponse(res); err != nil {
32990 return nil, gensupport.WrapError(err)
32991 }
32992 ret := &GoogleCloudLocationLocation{
32993 ServerResponse: googleapi.ServerResponse{
32994 Header: res.Header,
32995 HTTPStatusCode: res.StatusCode,
32996 },
32997 }
32998 target := &ret
32999 if err := gensupport.DecodeResponse(target, res); err != nil {
33000 return nil, err
33001 }
33002 return ret, nil
33003 }
33004
33005 type ProjectsLocationsGetAgentCall struct {
33006 s *Service
33007 parent string
33008 urlParams_ gensupport.URLParams
33009 ifNoneMatch_ string
33010 ctx_ context.Context
33011 header_ http.Header
33012 }
33013
33014
33015
33016
33017
33018 func (r *ProjectsLocationsService) GetAgent(parent string) *ProjectsLocationsGetAgentCall {
33019 c := &ProjectsLocationsGetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33020 c.parent = parent
33021 return c
33022 }
33023
33024
33025
33026
33027 func (c *ProjectsLocationsGetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetAgentCall {
33028 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33029 return c
33030 }
33031
33032
33033
33034
33035 func (c *ProjectsLocationsGetAgentCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetAgentCall {
33036 c.ifNoneMatch_ = entityTag
33037 return c
33038 }
33039
33040
33041 func (c *ProjectsLocationsGetAgentCall) Context(ctx context.Context) *ProjectsLocationsGetAgentCall {
33042 c.ctx_ = ctx
33043 return c
33044 }
33045
33046
33047
33048 func (c *ProjectsLocationsGetAgentCall) Header() http.Header {
33049 if c.header_ == nil {
33050 c.header_ = make(http.Header)
33051 }
33052 return c.header_
33053 }
33054
33055 func (c *ProjectsLocationsGetAgentCall) doRequest(alt string) (*http.Response, error) {
33056 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33057 if c.ifNoneMatch_ != "" {
33058 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33059 }
33060 var body io.Reader = nil
33061 c.urlParams_.Set("alt", alt)
33062 c.urlParams_.Set("prettyPrint", "false")
33063 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
33064 urls += "?" + c.urlParams_.Encode()
33065 req, err := http.NewRequest("GET", urls, body)
33066 if err != nil {
33067 return nil, err
33068 }
33069 req.Header = reqHeaders
33070 googleapi.Expand(req.URL, map[string]string{
33071 "parent": c.parent,
33072 })
33073 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33074 }
33075
33076
33077
33078
33079
33080
33081
33082 func (c *ProjectsLocationsGetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
33083 gensupport.SetOptions(c.urlParams_, opts...)
33084 res, err := c.doRequest("json")
33085 if res != nil && res.StatusCode == http.StatusNotModified {
33086 if res.Body != nil {
33087 res.Body.Close()
33088 }
33089 return nil, gensupport.WrapError(&googleapi.Error{
33090 Code: res.StatusCode,
33091 Header: res.Header,
33092 })
33093 }
33094 if err != nil {
33095 return nil, err
33096 }
33097 defer googleapi.CloseBody(res)
33098 if err := googleapi.CheckResponse(res); err != nil {
33099 return nil, gensupport.WrapError(err)
33100 }
33101 ret := &GoogleCloudDialogflowV2beta1Agent{
33102 ServerResponse: googleapi.ServerResponse{
33103 Header: res.Header,
33104 HTTPStatusCode: res.StatusCode,
33105 },
33106 }
33107 target := &ret
33108 if err := gensupport.DecodeResponse(target, res); err != nil {
33109 return nil, err
33110 }
33111 return ret, nil
33112 }
33113
33114 type ProjectsLocationsListCall struct {
33115 s *Service
33116 name string
33117 urlParams_ gensupport.URLParams
33118 ifNoneMatch_ string
33119 ctx_ context.Context
33120 header_ http.Header
33121 }
33122
33123
33124
33125
33126 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
33127 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33128 c.name = name
33129 return c
33130 }
33131
33132
33133
33134
33135
33136 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
33137 c.urlParams_.Set("filter", filter)
33138 return c
33139 }
33140
33141
33142
33143 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
33144 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33145 return c
33146 }
33147
33148
33149
33150
33151 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
33152 c.urlParams_.Set("pageToken", pageToken)
33153 return c
33154 }
33155
33156
33157
33158
33159 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
33160 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33161 return c
33162 }
33163
33164
33165
33166
33167 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
33168 c.ifNoneMatch_ = entityTag
33169 return c
33170 }
33171
33172
33173 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
33174 c.ctx_ = ctx
33175 return c
33176 }
33177
33178
33179
33180 func (c *ProjectsLocationsListCall) Header() http.Header {
33181 if c.header_ == nil {
33182 c.header_ = make(http.Header)
33183 }
33184 return c.header_
33185 }
33186
33187 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
33188 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33189 if c.ifNoneMatch_ != "" {
33190 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33191 }
33192 var body io.Reader = nil
33193 c.urlParams_.Set("alt", alt)
33194 c.urlParams_.Set("prettyPrint", "false")
33195 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/locations")
33196 urls += "?" + c.urlParams_.Encode()
33197 req, err := http.NewRequest("GET", urls, body)
33198 if err != nil {
33199 return nil, err
33200 }
33201 req.Header = reqHeaders
33202 googleapi.Expand(req.URL, map[string]string{
33203 "name": c.name,
33204 })
33205 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33206 }
33207
33208
33209
33210
33211
33212
33213
33214 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
33215 gensupport.SetOptions(c.urlParams_, opts...)
33216 res, err := c.doRequest("json")
33217 if res != nil && res.StatusCode == http.StatusNotModified {
33218 if res.Body != nil {
33219 res.Body.Close()
33220 }
33221 return nil, gensupport.WrapError(&googleapi.Error{
33222 Code: res.StatusCode,
33223 Header: res.Header,
33224 })
33225 }
33226 if err != nil {
33227 return nil, err
33228 }
33229 defer googleapi.CloseBody(res)
33230 if err := googleapi.CheckResponse(res); err != nil {
33231 return nil, gensupport.WrapError(err)
33232 }
33233 ret := &GoogleCloudLocationListLocationsResponse{
33234 ServerResponse: googleapi.ServerResponse{
33235 Header: res.Header,
33236 HTTPStatusCode: res.StatusCode,
33237 },
33238 }
33239 target := &ret
33240 if err := gensupport.DecodeResponse(target, res); err != nil {
33241 return nil, err
33242 }
33243 return ret, nil
33244 }
33245
33246
33247
33248
33249 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
33250 c.ctx_ = ctx
33251 defer c.PageToken(c.urlParams_.Get("pageToken"))
33252 for {
33253 x, err := c.Do()
33254 if err != nil {
33255 return err
33256 }
33257 if err := f(x); err != nil {
33258 return err
33259 }
33260 if x.NextPageToken == "" {
33261 return nil
33262 }
33263 c.PageToken(x.NextPageToken)
33264 }
33265 }
33266
33267 type ProjectsLocationsSetAgentCall struct {
33268 s *Service
33269 parent string
33270 googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent
33271 urlParams_ gensupport.URLParams
33272 ctx_ context.Context
33273 header_ http.Header
33274 }
33275
33276
33277
33278
33279
33280
33281
33282 func (r *ProjectsLocationsService) SetAgent(parent string, googleclouddialogflowv2beta1agent *GoogleCloudDialogflowV2beta1Agent) *ProjectsLocationsSetAgentCall {
33283 c := &ProjectsLocationsSetAgentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33284 c.parent = parent
33285 c.googleclouddialogflowv2beta1agent = googleclouddialogflowv2beta1agent
33286 return c
33287 }
33288
33289
33290
33291 func (c *ProjectsLocationsSetAgentCall) UpdateMask(updateMask string) *ProjectsLocationsSetAgentCall {
33292 c.urlParams_.Set("updateMask", updateMask)
33293 return c
33294 }
33295
33296
33297
33298
33299 func (c *ProjectsLocationsSetAgentCall) Fields(s ...googleapi.Field) *ProjectsLocationsSetAgentCall {
33300 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33301 return c
33302 }
33303
33304
33305 func (c *ProjectsLocationsSetAgentCall) Context(ctx context.Context) *ProjectsLocationsSetAgentCall {
33306 c.ctx_ = ctx
33307 return c
33308 }
33309
33310
33311
33312 func (c *ProjectsLocationsSetAgentCall) Header() http.Header {
33313 if c.header_ == nil {
33314 c.header_ = make(http.Header)
33315 }
33316 return c.header_
33317 }
33318
33319 func (c *ProjectsLocationsSetAgentCall) doRequest(alt string) (*http.Response, error) {
33320 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33321 var body io.Reader = nil
33322 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1agent)
33323 if err != nil {
33324 return nil, err
33325 }
33326 c.urlParams_.Set("alt", alt)
33327 c.urlParams_.Set("prettyPrint", "false")
33328 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent")
33329 urls += "?" + c.urlParams_.Encode()
33330 req, err := http.NewRequest("POST", urls, body)
33331 if err != nil {
33332 return nil, err
33333 }
33334 req.Header = reqHeaders
33335 googleapi.Expand(req.URL, map[string]string{
33336 "parent": c.parent,
33337 })
33338 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33339 }
33340
33341
33342
33343
33344
33345
33346
33347 func (c *ProjectsLocationsSetAgentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Agent, error) {
33348 gensupport.SetOptions(c.urlParams_, opts...)
33349 res, err := c.doRequest("json")
33350 if res != nil && res.StatusCode == http.StatusNotModified {
33351 if res.Body != nil {
33352 res.Body.Close()
33353 }
33354 return nil, gensupport.WrapError(&googleapi.Error{
33355 Code: res.StatusCode,
33356 Header: res.Header,
33357 })
33358 }
33359 if err != nil {
33360 return nil, err
33361 }
33362 defer googleapi.CloseBody(res)
33363 if err := googleapi.CheckResponse(res); err != nil {
33364 return nil, gensupport.WrapError(err)
33365 }
33366 ret := &GoogleCloudDialogflowV2beta1Agent{
33367 ServerResponse: googleapi.ServerResponse{
33368 Header: res.Header,
33369 HTTPStatusCode: res.StatusCode,
33370 },
33371 }
33372 target := &ret
33373 if err := gensupport.DecodeResponse(target, res); err != nil {
33374 return nil, err
33375 }
33376 return ret, nil
33377 }
33378
33379 type ProjectsLocationsAgentExportCall struct {
33380 s *Service
33381 parent string
33382 googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest
33383 urlParams_ gensupport.URLParams
33384 ctx_ context.Context
33385 header_ http.Header
33386 }
33387
33388
33389
33390
33391
33392
33393
33394
33395
33396
33397
33398 func (r *ProjectsLocationsAgentService) Export(parent string, googleclouddialogflowv2beta1exportagentrequest *GoogleCloudDialogflowV2beta1ExportAgentRequest) *ProjectsLocationsAgentExportCall {
33399 c := &ProjectsLocationsAgentExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33400 c.parent = parent
33401 c.googleclouddialogflowv2beta1exportagentrequest = googleclouddialogflowv2beta1exportagentrequest
33402 return c
33403 }
33404
33405
33406
33407
33408 func (c *ProjectsLocationsAgentExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentExportCall {
33409 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33410 return c
33411 }
33412
33413
33414 func (c *ProjectsLocationsAgentExportCall) Context(ctx context.Context) *ProjectsLocationsAgentExportCall {
33415 c.ctx_ = ctx
33416 return c
33417 }
33418
33419
33420
33421 func (c *ProjectsLocationsAgentExportCall) Header() http.Header {
33422 if c.header_ == nil {
33423 c.header_ = make(http.Header)
33424 }
33425 return c.header_
33426 }
33427
33428 func (c *ProjectsLocationsAgentExportCall) doRequest(alt string) (*http.Response, error) {
33429 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33430 var body io.Reader = nil
33431 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1exportagentrequest)
33432 if err != nil {
33433 return nil, err
33434 }
33435 c.urlParams_.Set("alt", alt)
33436 c.urlParams_.Set("prettyPrint", "false")
33437 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:export")
33438 urls += "?" + c.urlParams_.Encode()
33439 req, err := http.NewRequest("POST", urls, body)
33440 if err != nil {
33441 return nil, err
33442 }
33443 req.Header = reqHeaders
33444 googleapi.Expand(req.URL, map[string]string{
33445 "parent": c.parent,
33446 })
33447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33448 }
33449
33450
33451
33452
33453
33454
33455
33456 func (c *ProjectsLocationsAgentExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33457 gensupport.SetOptions(c.urlParams_, opts...)
33458 res, err := c.doRequest("json")
33459 if res != nil && res.StatusCode == http.StatusNotModified {
33460 if res.Body != nil {
33461 res.Body.Close()
33462 }
33463 return nil, gensupport.WrapError(&googleapi.Error{
33464 Code: res.StatusCode,
33465 Header: res.Header,
33466 })
33467 }
33468 if err != nil {
33469 return nil, err
33470 }
33471 defer googleapi.CloseBody(res)
33472 if err := googleapi.CheckResponse(res); err != nil {
33473 return nil, gensupport.WrapError(err)
33474 }
33475 ret := &GoogleLongrunningOperation{
33476 ServerResponse: googleapi.ServerResponse{
33477 Header: res.Header,
33478 HTTPStatusCode: res.StatusCode,
33479 },
33480 }
33481 target := &ret
33482 if err := gensupport.DecodeResponse(target, res); err != nil {
33483 return nil, err
33484 }
33485 return ret, nil
33486 }
33487
33488 type ProjectsLocationsAgentGetFulfillmentCall struct {
33489 s *Service
33490 name string
33491 urlParams_ gensupport.URLParams
33492 ifNoneMatch_ string
33493 ctx_ context.Context
33494 header_ http.Header
33495 }
33496
33497
33498
33499
33500
33501 func (r *ProjectsLocationsAgentService) GetFulfillment(name string) *ProjectsLocationsAgentGetFulfillmentCall {
33502 c := &ProjectsLocationsAgentGetFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33503 c.name = name
33504 return c
33505 }
33506
33507
33508
33509
33510 func (c *ProjectsLocationsAgentGetFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetFulfillmentCall {
33511 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33512 return c
33513 }
33514
33515
33516
33517
33518 func (c *ProjectsLocationsAgentGetFulfillmentCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetFulfillmentCall {
33519 c.ifNoneMatch_ = entityTag
33520 return c
33521 }
33522
33523
33524 func (c *ProjectsLocationsAgentGetFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentGetFulfillmentCall {
33525 c.ctx_ = ctx
33526 return c
33527 }
33528
33529
33530
33531 func (c *ProjectsLocationsAgentGetFulfillmentCall) Header() http.Header {
33532 if c.header_ == nil {
33533 c.header_ = make(http.Header)
33534 }
33535 return c.header_
33536 }
33537
33538 func (c *ProjectsLocationsAgentGetFulfillmentCall) doRequest(alt string) (*http.Response, error) {
33539 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33540 if c.ifNoneMatch_ != "" {
33541 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33542 }
33543 var body io.Reader = nil
33544 c.urlParams_.Set("alt", alt)
33545 c.urlParams_.Set("prettyPrint", "false")
33546 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
33547 urls += "?" + c.urlParams_.Encode()
33548 req, err := http.NewRequest("GET", urls, body)
33549 if err != nil {
33550 return nil, err
33551 }
33552 req.Header = reqHeaders
33553 googleapi.Expand(req.URL, map[string]string{
33554 "name": c.name,
33555 })
33556 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33557 }
33558
33559
33560
33561
33562
33563
33564
33565 func (c *ProjectsLocationsAgentGetFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
33566 gensupport.SetOptions(c.urlParams_, opts...)
33567 res, err := c.doRequest("json")
33568 if res != nil && res.StatusCode == http.StatusNotModified {
33569 if res.Body != nil {
33570 res.Body.Close()
33571 }
33572 return nil, gensupport.WrapError(&googleapi.Error{
33573 Code: res.StatusCode,
33574 Header: res.Header,
33575 })
33576 }
33577 if err != nil {
33578 return nil, err
33579 }
33580 defer googleapi.CloseBody(res)
33581 if err := googleapi.CheckResponse(res); err != nil {
33582 return nil, gensupport.WrapError(err)
33583 }
33584 ret := &GoogleCloudDialogflowV2beta1Fulfillment{
33585 ServerResponse: googleapi.ServerResponse{
33586 Header: res.Header,
33587 HTTPStatusCode: res.StatusCode,
33588 },
33589 }
33590 target := &ret
33591 if err := gensupport.DecodeResponse(target, res); err != nil {
33592 return nil, err
33593 }
33594 return ret, nil
33595 }
33596
33597 type ProjectsLocationsAgentGetValidationResultCall struct {
33598 s *Service
33599 parent string
33600 urlParams_ gensupport.URLParams
33601 ifNoneMatch_ string
33602 ctx_ context.Context
33603 header_ http.Header
33604 }
33605
33606
33607
33608
33609
33610
33611
33612 func (r *ProjectsLocationsAgentService) GetValidationResult(parent string) *ProjectsLocationsAgentGetValidationResultCall {
33613 c := &ProjectsLocationsAgentGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33614 c.parent = parent
33615 return c
33616 }
33617
33618
33619
33620
33621
33622
33623 func (c *ProjectsLocationsAgentGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentGetValidationResultCall {
33624 c.urlParams_.Set("languageCode", languageCode)
33625 return c
33626 }
33627
33628
33629
33630
33631 func (c *ProjectsLocationsAgentGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentGetValidationResultCall {
33632 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33633 return c
33634 }
33635
33636
33637
33638
33639 func (c *ProjectsLocationsAgentGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentGetValidationResultCall {
33640 c.ifNoneMatch_ = entityTag
33641 return c
33642 }
33643
33644
33645 func (c *ProjectsLocationsAgentGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentGetValidationResultCall {
33646 c.ctx_ = ctx
33647 return c
33648 }
33649
33650
33651
33652 func (c *ProjectsLocationsAgentGetValidationResultCall) Header() http.Header {
33653 if c.header_ == nil {
33654 c.header_ = make(http.Header)
33655 }
33656 return c.header_
33657 }
33658
33659 func (c *ProjectsLocationsAgentGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
33660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33661 if c.ifNoneMatch_ != "" {
33662 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33663 }
33664 var body io.Reader = nil
33665 c.urlParams_.Set("alt", alt)
33666 c.urlParams_.Set("prettyPrint", "false")
33667 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent/validationResult")
33668 urls += "?" + c.urlParams_.Encode()
33669 req, err := http.NewRequest("GET", urls, body)
33670 if err != nil {
33671 return nil, err
33672 }
33673 req.Header = reqHeaders
33674 googleapi.Expand(req.URL, map[string]string{
33675 "parent": c.parent,
33676 })
33677 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33678 }
33679
33680
33681
33682
33683
33684
33685
33686 func (c *ProjectsLocationsAgentGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ValidationResult, error) {
33687 gensupport.SetOptions(c.urlParams_, opts...)
33688 res, err := c.doRequest("json")
33689 if res != nil && res.StatusCode == http.StatusNotModified {
33690 if res.Body != nil {
33691 res.Body.Close()
33692 }
33693 return nil, gensupport.WrapError(&googleapi.Error{
33694 Code: res.StatusCode,
33695 Header: res.Header,
33696 })
33697 }
33698 if err != nil {
33699 return nil, err
33700 }
33701 defer googleapi.CloseBody(res)
33702 if err := googleapi.CheckResponse(res); err != nil {
33703 return nil, gensupport.WrapError(err)
33704 }
33705 ret := &GoogleCloudDialogflowV2beta1ValidationResult{
33706 ServerResponse: googleapi.ServerResponse{
33707 Header: res.Header,
33708 HTTPStatusCode: res.StatusCode,
33709 },
33710 }
33711 target := &ret
33712 if err := gensupport.DecodeResponse(target, res); err != nil {
33713 return nil, err
33714 }
33715 return ret, nil
33716 }
33717
33718 type ProjectsLocationsAgentImportCall struct {
33719 s *Service
33720 parent string
33721 googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest
33722 urlParams_ gensupport.URLParams
33723 ctx_ context.Context
33724 header_ http.Header
33725 }
33726
33727
33728
33729
33730
33731
33732
33733
33734
33735
33736
33737
33738
33739
33740
33741
33742
33743
33744
33745
33746
33747
33748 func (r *ProjectsLocationsAgentService) Import(parent string, googleclouddialogflowv2beta1importagentrequest *GoogleCloudDialogflowV2beta1ImportAgentRequest) *ProjectsLocationsAgentImportCall {
33749 c := &ProjectsLocationsAgentImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33750 c.parent = parent
33751 c.googleclouddialogflowv2beta1importagentrequest = googleclouddialogflowv2beta1importagentrequest
33752 return c
33753 }
33754
33755
33756
33757
33758 func (c *ProjectsLocationsAgentImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentImportCall {
33759 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33760 return c
33761 }
33762
33763
33764 func (c *ProjectsLocationsAgentImportCall) Context(ctx context.Context) *ProjectsLocationsAgentImportCall {
33765 c.ctx_ = ctx
33766 return c
33767 }
33768
33769
33770
33771 func (c *ProjectsLocationsAgentImportCall) Header() http.Header {
33772 if c.header_ == nil {
33773 c.header_ = make(http.Header)
33774 }
33775 return c.header_
33776 }
33777
33778 func (c *ProjectsLocationsAgentImportCall) doRequest(alt string) (*http.Response, error) {
33779 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33780 var body io.Reader = nil
33781 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importagentrequest)
33782 if err != nil {
33783 return nil, err
33784 }
33785 c.urlParams_.Set("alt", alt)
33786 c.urlParams_.Set("prettyPrint", "false")
33787 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:import")
33788 urls += "?" + c.urlParams_.Encode()
33789 req, err := http.NewRequest("POST", urls, body)
33790 if err != nil {
33791 return nil, err
33792 }
33793 req.Header = reqHeaders
33794 googleapi.Expand(req.URL, map[string]string{
33795 "parent": c.parent,
33796 })
33797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33798 }
33799
33800
33801
33802
33803
33804
33805
33806 func (c *ProjectsLocationsAgentImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33807 gensupport.SetOptions(c.urlParams_, opts...)
33808 res, err := c.doRequest("json")
33809 if res != nil && res.StatusCode == http.StatusNotModified {
33810 if res.Body != nil {
33811 res.Body.Close()
33812 }
33813 return nil, gensupport.WrapError(&googleapi.Error{
33814 Code: res.StatusCode,
33815 Header: res.Header,
33816 })
33817 }
33818 if err != nil {
33819 return nil, err
33820 }
33821 defer googleapi.CloseBody(res)
33822 if err := googleapi.CheckResponse(res); err != nil {
33823 return nil, gensupport.WrapError(err)
33824 }
33825 ret := &GoogleLongrunningOperation{
33826 ServerResponse: googleapi.ServerResponse{
33827 Header: res.Header,
33828 HTTPStatusCode: res.StatusCode,
33829 },
33830 }
33831 target := &ret
33832 if err := gensupport.DecodeResponse(target, res); err != nil {
33833 return nil, err
33834 }
33835 return ret, nil
33836 }
33837
33838 type ProjectsLocationsAgentRestoreCall struct {
33839 s *Service
33840 parent string
33841 googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest
33842 urlParams_ gensupport.URLParams
33843 ctx_ context.Context
33844 header_ http.Header
33845 }
33846
33847
33848
33849
33850
33851
33852
33853
33854
33855
33856
33857
33858
33859
33860
33861
33862
33863
33864
33865
33866
33867 func (r *ProjectsLocationsAgentService) Restore(parent string, googleclouddialogflowv2beta1restoreagentrequest *GoogleCloudDialogflowV2beta1RestoreAgentRequest) *ProjectsLocationsAgentRestoreCall {
33868 c := &ProjectsLocationsAgentRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33869 c.parent = parent
33870 c.googleclouddialogflowv2beta1restoreagentrequest = googleclouddialogflowv2beta1restoreagentrequest
33871 return c
33872 }
33873
33874
33875
33876
33877 func (c *ProjectsLocationsAgentRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentRestoreCall {
33878 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33879 return c
33880 }
33881
33882
33883 func (c *ProjectsLocationsAgentRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentRestoreCall {
33884 c.ctx_ = ctx
33885 return c
33886 }
33887
33888
33889
33890 func (c *ProjectsLocationsAgentRestoreCall) Header() http.Header {
33891 if c.header_ == nil {
33892 c.header_ = make(http.Header)
33893 }
33894 return c.header_
33895 }
33896
33897 func (c *ProjectsLocationsAgentRestoreCall) doRequest(alt string) (*http.Response, error) {
33898 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33899 var body io.Reader = nil
33900 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1restoreagentrequest)
33901 if err != nil {
33902 return nil, err
33903 }
33904 c.urlParams_.Set("alt", alt)
33905 c.urlParams_.Set("prettyPrint", "false")
33906 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:restore")
33907 urls += "?" + c.urlParams_.Encode()
33908 req, err := http.NewRequest("POST", urls, body)
33909 if err != nil {
33910 return nil, err
33911 }
33912 req.Header = reqHeaders
33913 googleapi.Expand(req.URL, map[string]string{
33914 "parent": c.parent,
33915 })
33916 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33917 }
33918
33919
33920
33921
33922
33923
33924
33925 func (c *ProjectsLocationsAgentRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33926 gensupport.SetOptions(c.urlParams_, opts...)
33927 res, err := c.doRequest("json")
33928 if res != nil && res.StatusCode == http.StatusNotModified {
33929 if res.Body != nil {
33930 res.Body.Close()
33931 }
33932 return nil, gensupport.WrapError(&googleapi.Error{
33933 Code: res.StatusCode,
33934 Header: res.Header,
33935 })
33936 }
33937 if err != nil {
33938 return nil, err
33939 }
33940 defer googleapi.CloseBody(res)
33941 if err := googleapi.CheckResponse(res); err != nil {
33942 return nil, gensupport.WrapError(err)
33943 }
33944 ret := &GoogleLongrunningOperation{
33945 ServerResponse: googleapi.ServerResponse{
33946 Header: res.Header,
33947 HTTPStatusCode: res.StatusCode,
33948 },
33949 }
33950 target := &ret
33951 if err := gensupport.DecodeResponse(target, res); err != nil {
33952 return nil, err
33953 }
33954 return ret, nil
33955 }
33956
33957 type ProjectsLocationsAgentSearchCall struct {
33958 s *Service
33959 parent string
33960 urlParams_ gensupport.URLParams
33961 ifNoneMatch_ string
33962 ctx_ context.Context
33963 header_ http.Header
33964 }
33965
33966
33967
33968
33969
33970
33971
33972
33973
33974
33975 func (r *ProjectsLocationsAgentService) Search(parent string) *ProjectsLocationsAgentSearchCall {
33976 c := &ProjectsLocationsAgentSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33977 c.parent = parent
33978 return c
33979 }
33980
33981
33982
33983 func (c *ProjectsLocationsAgentSearchCall) PageSize(pageSize int64) *ProjectsLocationsAgentSearchCall {
33984 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33985 return c
33986 }
33987
33988
33989
33990 func (c *ProjectsLocationsAgentSearchCall) PageToken(pageToken string) *ProjectsLocationsAgentSearchCall {
33991 c.urlParams_.Set("pageToken", pageToken)
33992 return c
33993 }
33994
33995
33996
33997
33998 func (c *ProjectsLocationsAgentSearchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSearchCall {
33999 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34000 return c
34001 }
34002
34003
34004
34005
34006 func (c *ProjectsLocationsAgentSearchCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSearchCall {
34007 c.ifNoneMatch_ = entityTag
34008 return c
34009 }
34010
34011
34012 func (c *ProjectsLocationsAgentSearchCall) Context(ctx context.Context) *ProjectsLocationsAgentSearchCall {
34013 c.ctx_ = ctx
34014 return c
34015 }
34016
34017
34018
34019 func (c *ProjectsLocationsAgentSearchCall) Header() http.Header {
34020 if c.header_ == nil {
34021 c.header_ = make(http.Header)
34022 }
34023 return c.header_
34024 }
34025
34026 func (c *ProjectsLocationsAgentSearchCall) doRequest(alt string) (*http.Response, error) {
34027 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34028 if c.ifNoneMatch_ != "" {
34029 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34030 }
34031 var body io.Reader = nil
34032 c.urlParams_.Set("alt", alt)
34033 c.urlParams_.Set("prettyPrint", "false")
34034 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:search")
34035 urls += "?" + c.urlParams_.Encode()
34036 req, err := http.NewRequest("GET", urls, body)
34037 if err != nil {
34038 return nil, err
34039 }
34040 req.Header = reqHeaders
34041 googleapi.Expand(req.URL, map[string]string{
34042 "parent": c.parent,
34043 })
34044 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34045 }
34046
34047
34048
34049
34050
34051
34052
34053 func (c *ProjectsLocationsAgentSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchAgentsResponse, error) {
34054 gensupport.SetOptions(c.urlParams_, opts...)
34055 res, err := c.doRequest("json")
34056 if res != nil && res.StatusCode == http.StatusNotModified {
34057 if res.Body != nil {
34058 res.Body.Close()
34059 }
34060 return nil, gensupport.WrapError(&googleapi.Error{
34061 Code: res.StatusCode,
34062 Header: res.Header,
34063 })
34064 }
34065 if err != nil {
34066 return nil, err
34067 }
34068 defer googleapi.CloseBody(res)
34069 if err := googleapi.CheckResponse(res); err != nil {
34070 return nil, gensupport.WrapError(err)
34071 }
34072 ret := &GoogleCloudDialogflowV2beta1SearchAgentsResponse{
34073 ServerResponse: googleapi.ServerResponse{
34074 Header: res.Header,
34075 HTTPStatusCode: res.StatusCode,
34076 },
34077 }
34078 target := &ret
34079 if err := gensupport.DecodeResponse(target, res); err != nil {
34080 return nil, err
34081 }
34082 return ret, nil
34083 }
34084
34085
34086
34087
34088 func (c *ProjectsLocationsAgentSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1SearchAgentsResponse) error) error {
34089 c.ctx_ = ctx
34090 defer c.PageToken(c.urlParams_.Get("pageToken"))
34091 for {
34092 x, err := c.Do()
34093 if err != nil {
34094 return err
34095 }
34096 if err := f(x); err != nil {
34097 return err
34098 }
34099 if x.NextPageToken == "" {
34100 return nil
34101 }
34102 c.PageToken(x.NextPageToken)
34103 }
34104 }
34105
34106 type ProjectsLocationsAgentTrainCall struct {
34107 s *Service
34108 parent string
34109 googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest
34110 urlParams_ gensupport.URLParams
34111 ctx_ context.Context
34112 header_ http.Header
34113 }
34114
34115
34116
34117
34118
34119
34120
34121
34122
34123
34124
34125
34126
34127
34128 func (r *ProjectsLocationsAgentService) Train(parent string, googleclouddialogflowv2beta1trainagentrequest *GoogleCloudDialogflowV2beta1TrainAgentRequest) *ProjectsLocationsAgentTrainCall {
34129 c := &ProjectsLocationsAgentTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34130 c.parent = parent
34131 c.googleclouddialogflowv2beta1trainagentrequest = googleclouddialogflowv2beta1trainagentrequest
34132 return c
34133 }
34134
34135
34136
34137
34138 func (c *ProjectsLocationsAgentTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentTrainCall {
34139 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34140 return c
34141 }
34142
34143
34144 func (c *ProjectsLocationsAgentTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentTrainCall {
34145 c.ctx_ = ctx
34146 return c
34147 }
34148
34149
34150
34151 func (c *ProjectsLocationsAgentTrainCall) Header() http.Header {
34152 if c.header_ == nil {
34153 c.header_ = make(http.Header)
34154 }
34155 return c.header_
34156 }
34157
34158 func (c *ProjectsLocationsAgentTrainCall) doRequest(alt string) (*http.Response, error) {
34159 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34160 var body io.Reader = nil
34161 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1trainagentrequest)
34162 if err != nil {
34163 return nil, err
34164 }
34165 c.urlParams_.Set("alt", alt)
34166 c.urlParams_.Set("prettyPrint", "false")
34167 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/agent:train")
34168 urls += "?" + c.urlParams_.Encode()
34169 req, err := http.NewRequest("POST", urls, body)
34170 if err != nil {
34171 return nil, err
34172 }
34173 req.Header = reqHeaders
34174 googleapi.Expand(req.URL, map[string]string{
34175 "parent": c.parent,
34176 })
34177 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34178 }
34179
34180
34181
34182
34183
34184
34185
34186 func (c *ProjectsLocationsAgentTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34187 gensupport.SetOptions(c.urlParams_, opts...)
34188 res, err := c.doRequest("json")
34189 if res != nil && res.StatusCode == http.StatusNotModified {
34190 if res.Body != nil {
34191 res.Body.Close()
34192 }
34193 return nil, gensupport.WrapError(&googleapi.Error{
34194 Code: res.StatusCode,
34195 Header: res.Header,
34196 })
34197 }
34198 if err != nil {
34199 return nil, err
34200 }
34201 defer googleapi.CloseBody(res)
34202 if err := googleapi.CheckResponse(res); err != nil {
34203 return nil, gensupport.WrapError(err)
34204 }
34205 ret := &GoogleLongrunningOperation{
34206 ServerResponse: googleapi.ServerResponse{
34207 Header: res.Header,
34208 HTTPStatusCode: res.StatusCode,
34209 },
34210 }
34211 target := &ret
34212 if err := gensupport.DecodeResponse(target, res); err != nil {
34213 return nil, err
34214 }
34215 return ret, nil
34216 }
34217
34218 type ProjectsLocationsAgentUpdateFulfillmentCall struct {
34219 s *Service
34220 nameid string
34221 googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment
34222 urlParams_ gensupport.URLParams
34223 ctx_ context.Context
34224 header_ http.Header
34225 }
34226
34227
34228
34229
34230
34231
34232 func (r *ProjectsLocationsAgentService) UpdateFulfillment(nameid string, googleclouddialogflowv2beta1fulfillment *GoogleCloudDialogflowV2beta1Fulfillment) *ProjectsLocationsAgentUpdateFulfillmentCall {
34233 c := &ProjectsLocationsAgentUpdateFulfillmentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34234 c.nameid = nameid
34235 c.googleclouddialogflowv2beta1fulfillment = googleclouddialogflowv2beta1fulfillment
34236 return c
34237 }
34238
34239
34240
34241
34242 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) UpdateMask(updateMask string) *ProjectsLocationsAgentUpdateFulfillmentCall {
34243 c.urlParams_.Set("updateMask", updateMask)
34244 return c
34245 }
34246
34247
34248
34249
34250 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentUpdateFulfillmentCall {
34251 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34252 return c
34253 }
34254
34255
34256 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Context(ctx context.Context) *ProjectsLocationsAgentUpdateFulfillmentCall {
34257 c.ctx_ = ctx
34258 return c
34259 }
34260
34261
34262
34263 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Header() http.Header {
34264 if c.header_ == nil {
34265 c.header_ = make(http.Header)
34266 }
34267 return c.header_
34268 }
34269
34270 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) doRequest(alt string) (*http.Response, error) {
34271 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34272 var body io.Reader = nil
34273 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1fulfillment)
34274 if err != nil {
34275 return nil, err
34276 }
34277 c.urlParams_.Set("alt", alt)
34278 c.urlParams_.Set("prettyPrint", "false")
34279 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
34280 urls += "?" + c.urlParams_.Encode()
34281 req, err := http.NewRequest("PATCH", urls, body)
34282 if err != nil {
34283 return nil, err
34284 }
34285 req.Header = reqHeaders
34286 googleapi.Expand(req.URL, map[string]string{
34287 "name": c.nameid,
34288 })
34289 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34290 }
34291
34292
34293
34294
34295
34296
34297
34298 func (c *ProjectsLocationsAgentUpdateFulfillmentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Fulfillment, error) {
34299 gensupport.SetOptions(c.urlParams_, opts...)
34300 res, err := c.doRequest("json")
34301 if res != nil && res.StatusCode == http.StatusNotModified {
34302 if res.Body != nil {
34303 res.Body.Close()
34304 }
34305 return nil, gensupport.WrapError(&googleapi.Error{
34306 Code: res.StatusCode,
34307 Header: res.Header,
34308 })
34309 }
34310 if err != nil {
34311 return nil, err
34312 }
34313 defer googleapi.CloseBody(res)
34314 if err := googleapi.CheckResponse(res); err != nil {
34315 return nil, gensupport.WrapError(err)
34316 }
34317 ret := &GoogleCloudDialogflowV2beta1Fulfillment{
34318 ServerResponse: googleapi.ServerResponse{
34319 Header: res.Header,
34320 HTTPStatusCode: res.StatusCode,
34321 },
34322 }
34323 target := &ret
34324 if err := gensupport.DecodeResponse(target, res); err != nil {
34325 return nil, err
34326 }
34327 return ret, nil
34328 }
34329
34330 type ProjectsLocationsAgentEntityTypesBatchDeleteCall struct {
34331 s *Service
34332 parent string
34333 googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest
34334 urlParams_ gensupport.URLParams
34335 ctx_ context.Context
34336 header_ http.Header
34337 }
34338
34339
34340
34341
34342
34343
34344
34345
34346
34347
34348
34349
34350
34351
34352
34353 func (r *ProjectsLocationsAgentEntityTypesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitytypesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
34354 c := &ProjectsLocationsAgentEntityTypesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34355 c.parent = parent
34356 c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest = googleclouddialogflowv2beta1batchdeleteentitytypesrequest
34357 return c
34358 }
34359
34360
34361
34362
34363 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
34364 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34365 return c
34366 }
34367
34368
34369 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchDeleteCall {
34370 c.ctx_ = ctx
34371 return c
34372 }
34373
34374
34375
34376 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Header() http.Header {
34377 if c.header_ == nil {
34378 c.header_ = make(http.Header)
34379 }
34380 return c.header_
34381 }
34382
34383 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
34384 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34385 var body io.Reader = nil
34386 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitytypesrequest)
34387 if err != nil {
34388 return nil, err
34389 }
34390 c.urlParams_.Set("alt", alt)
34391 c.urlParams_.Set("prettyPrint", "false")
34392 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchDelete")
34393 urls += "?" + c.urlParams_.Encode()
34394 req, err := http.NewRequest("POST", urls, body)
34395 if err != nil {
34396 return nil, err
34397 }
34398 req.Header = reqHeaders
34399 googleapi.Expand(req.URL, map[string]string{
34400 "parent": c.parent,
34401 })
34402 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34403 }
34404
34405
34406
34407
34408
34409
34410
34411 func (c *ProjectsLocationsAgentEntityTypesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34412 gensupport.SetOptions(c.urlParams_, opts...)
34413 res, err := c.doRequest("json")
34414 if res != nil && res.StatusCode == http.StatusNotModified {
34415 if res.Body != nil {
34416 res.Body.Close()
34417 }
34418 return nil, gensupport.WrapError(&googleapi.Error{
34419 Code: res.StatusCode,
34420 Header: res.Header,
34421 })
34422 }
34423 if err != nil {
34424 return nil, err
34425 }
34426 defer googleapi.CloseBody(res)
34427 if err := googleapi.CheckResponse(res); err != nil {
34428 return nil, gensupport.WrapError(err)
34429 }
34430 ret := &GoogleLongrunningOperation{
34431 ServerResponse: googleapi.ServerResponse{
34432 Header: res.Header,
34433 HTTPStatusCode: res.StatusCode,
34434 },
34435 }
34436 target := &ret
34437 if err := gensupport.DecodeResponse(target, res); err != nil {
34438 return nil, err
34439 }
34440 return ret, nil
34441 }
34442
34443 type ProjectsLocationsAgentEntityTypesBatchUpdateCall struct {
34444 s *Service
34445 parent string
34446 googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest
34447 urlParams_ gensupport.URLParams
34448 ctx_ context.Context
34449 header_ http.Header
34450 }
34451
34452
34453
34454
34455
34456
34457
34458
34459
34460
34461
34462
34463
34464 func (r *ProjectsLocationsAgentEntityTypesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitytypesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesRequest) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
34465 c := &ProjectsLocationsAgentEntityTypesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34466 c.parent = parent
34467 c.googleclouddialogflowv2beta1batchupdateentitytypesrequest = googleclouddialogflowv2beta1batchupdateentitytypesrequest
34468 return c
34469 }
34470
34471
34472
34473
34474 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
34475 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34476 return c
34477 }
34478
34479
34480 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesBatchUpdateCall {
34481 c.ctx_ = ctx
34482 return c
34483 }
34484
34485
34486
34487 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Header() http.Header {
34488 if c.header_ == nil {
34489 c.header_ = make(http.Header)
34490 }
34491 return c.header_
34492 }
34493
34494 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
34495 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34496 var body io.Reader = nil
34497 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitytypesrequest)
34498 if err != nil {
34499 return nil, err
34500 }
34501 c.urlParams_.Set("alt", alt)
34502 c.urlParams_.Set("prettyPrint", "false")
34503 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes:batchUpdate")
34504 urls += "?" + c.urlParams_.Encode()
34505 req, err := http.NewRequest("POST", urls, body)
34506 if err != nil {
34507 return nil, err
34508 }
34509 req.Header = reqHeaders
34510 googleapi.Expand(req.URL, map[string]string{
34511 "parent": c.parent,
34512 })
34513 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34514 }
34515
34516
34517
34518
34519
34520
34521
34522 func (c *ProjectsLocationsAgentEntityTypesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34523 gensupport.SetOptions(c.urlParams_, opts...)
34524 res, err := c.doRequest("json")
34525 if res != nil && res.StatusCode == http.StatusNotModified {
34526 if res.Body != nil {
34527 res.Body.Close()
34528 }
34529 return nil, gensupport.WrapError(&googleapi.Error{
34530 Code: res.StatusCode,
34531 Header: res.Header,
34532 })
34533 }
34534 if err != nil {
34535 return nil, err
34536 }
34537 defer googleapi.CloseBody(res)
34538 if err := googleapi.CheckResponse(res); err != nil {
34539 return nil, gensupport.WrapError(err)
34540 }
34541 ret := &GoogleLongrunningOperation{
34542 ServerResponse: googleapi.ServerResponse{
34543 Header: res.Header,
34544 HTTPStatusCode: res.StatusCode,
34545 },
34546 }
34547 target := &ret
34548 if err := gensupport.DecodeResponse(target, res); err != nil {
34549 return nil, err
34550 }
34551 return ret, nil
34552 }
34553
34554 type ProjectsLocationsAgentEntityTypesCreateCall struct {
34555 s *Service
34556 parent string
34557 googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
34558 urlParams_ gensupport.URLParams
34559 ctx_ context.Context
34560 header_ http.Header
34561 }
34562
34563
34564
34565
34566
34567
34568
34569 func (r *ProjectsLocationsAgentEntityTypesService) Create(parent string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesCreateCall {
34570 c := &ProjectsLocationsAgentEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34571 c.parent = parent
34572 c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
34573 return c
34574 }
34575
34576
34577
34578
34579
34580
34581 func (c *ProjectsLocationsAgentEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesCreateCall {
34582 c.urlParams_.Set("languageCode", languageCode)
34583 return c
34584 }
34585
34586
34587
34588
34589 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesCreateCall {
34590 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34591 return c
34592 }
34593
34594
34595 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesCreateCall {
34596 c.ctx_ = ctx
34597 return c
34598 }
34599
34600
34601
34602 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Header() http.Header {
34603 if c.header_ == nil {
34604 c.header_ = make(http.Header)
34605 }
34606 return c.header_
34607 }
34608
34609 func (c *ProjectsLocationsAgentEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
34610 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34611 var body io.Reader = nil
34612 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
34613 if err != nil {
34614 return nil, err
34615 }
34616 c.urlParams_.Set("alt", alt)
34617 c.urlParams_.Set("prettyPrint", "false")
34618 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
34619 urls += "?" + c.urlParams_.Encode()
34620 req, err := http.NewRequest("POST", urls, body)
34621 if err != nil {
34622 return nil, err
34623 }
34624 req.Header = reqHeaders
34625 googleapi.Expand(req.URL, map[string]string{
34626 "parent": c.parent,
34627 })
34628 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34629 }
34630
34631
34632
34633
34634
34635
34636
34637 func (c *ProjectsLocationsAgentEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
34638 gensupport.SetOptions(c.urlParams_, opts...)
34639 res, err := c.doRequest("json")
34640 if res != nil && res.StatusCode == http.StatusNotModified {
34641 if res.Body != nil {
34642 res.Body.Close()
34643 }
34644 return nil, gensupport.WrapError(&googleapi.Error{
34645 Code: res.StatusCode,
34646 Header: res.Header,
34647 })
34648 }
34649 if err != nil {
34650 return nil, err
34651 }
34652 defer googleapi.CloseBody(res)
34653 if err := googleapi.CheckResponse(res); err != nil {
34654 return nil, gensupport.WrapError(err)
34655 }
34656 ret := &GoogleCloudDialogflowV2beta1EntityType{
34657 ServerResponse: googleapi.ServerResponse{
34658 Header: res.Header,
34659 HTTPStatusCode: res.StatusCode,
34660 },
34661 }
34662 target := &ret
34663 if err := gensupport.DecodeResponse(target, res); err != nil {
34664 return nil, err
34665 }
34666 return ret, nil
34667 }
34668
34669 type ProjectsLocationsAgentEntityTypesDeleteCall struct {
34670 s *Service
34671 name string
34672 urlParams_ gensupport.URLParams
34673 ctx_ context.Context
34674 header_ http.Header
34675 }
34676
34677
34678
34679
34680
34681
34682
34683 func (r *ProjectsLocationsAgentEntityTypesService) Delete(name string) *ProjectsLocationsAgentEntityTypesDeleteCall {
34684 c := &ProjectsLocationsAgentEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34685 c.name = name
34686 return c
34687 }
34688
34689
34690
34691
34692 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesDeleteCall {
34693 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34694 return c
34695 }
34696
34697
34698 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesDeleteCall {
34699 c.ctx_ = ctx
34700 return c
34701 }
34702
34703
34704
34705 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Header() http.Header {
34706 if c.header_ == nil {
34707 c.header_ = make(http.Header)
34708 }
34709 return c.header_
34710 }
34711
34712 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
34713 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34714 var body io.Reader = nil
34715 c.urlParams_.Set("alt", alt)
34716 c.urlParams_.Set("prettyPrint", "false")
34717 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
34718 urls += "?" + c.urlParams_.Encode()
34719 req, err := http.NewRequest("DELETE", urls, body)
34720 if err != nil {
34721 return nil, err
34722 }
34723 req.Header = reqHeaders
34724 googleapi.Expand(req.URL, map[string]string{
34725 "name": c.name,
34726 })
34727 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34728 }
34729
34730
34731
34732
34733
34734
34735
34736 func (c *ProjectsLocationsAgentEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
34737 gensupport.SetOptions(c.urlParams_, opts...)
34738 res, err := c.doRequest("json")
34739 if res != nil && res.StatusCode == http.StatusNotModified {
34740 if res.Body != nil {
34741 res.Body.Close()
34742 }
34743 return nil, gensupport.WrapError(&googleapi.Error{
34744 Code: res.StatusCode,
34745 Header: res.Header,
34746 })
34747 }
34748 if err != nil {
34749 return nil, err
34750 }
34751 defer googleapi.CloseBody(res)
34752 if err := googleapi.CheckResponse(res); err != nil {
34753 return nil, gensupport.WrapError(err)
34754 }
34755 ret := &GoogleProtobufEmpty{
34756 ServerResponse: googleapi.ServerResponse{
34757 Header: res.Header,
34758 HTTPStatusCode: res.StatusCode,
34759 },
34760 }
34761 target := &ret
34762 if err := gensupport.DecodeResponse(target, res); err != nil {
34763 return nil, err
34764 }
34765 return ret, nil
34766 }
34767
34768 type ProjectsLocationsAgentEntityTypesGetCall struct {
34769 s *Service
34770 name string
34771 urlParams_ gensupport.URLParams
34772 ifNoneMatch_ string
34773 ctx_ context.Context
34774 header_ http.Header
34775 }
34776
34777
34778
34779
34780
34781 func (r *ProjectsLocationsAgentEntityTypesService) Get(name string) *ProjectsLocationsAgentEntityTypesGetCall {
34782 c := &ProjectsLocationsAgentEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34783 c.name = name
34784 return c
34785 }
34786
34787
34788
34789
34790
34791
34792 func (c *ProjectsLocationsAgentEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesGetCall {
34793 c.urlParams_.Set("languageCode", languageCode)
34794 return c
34795 }
34796
34797
34798
34799
34800 func (c *ProjectsLocationsAgentEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesGetCall {
34801 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34802 return c
34803 }
34804
34805
34806
34807
34808 func (c *ProjectsLocationsAgentEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesGetCall {
34809 c.ifNoneMatch_ = entityTag
34810 return c
34811 }
34812
34813
34814 func (c *ProjectsLocationsAgentEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesGetCall {
34815 c.ctx_ = ctx
34816 return c
34817 }
34818
34819
34820
34821 func (c *ProjectsLocationsAgentEntityTypesGetCall) Header() http.Header {
34822 if c.header_ == nil {
34823 c.header_ = make(http.Header)
34824 }
34825 return c.header_
34826 }
34827
34828 func (c *ProjectsLocationsAgentEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
34829 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34830 if c.ifNoneMatch_ != "" {
34831 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34832 }
34833 var body io.Reader = nil
34834 c.urlParams_.Set("alt", alt)
34835 c.urlParams_.Set("prettyPrint", "false")
34836 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
34837 urls += "?" + c.urlParams_.Encode()
34838 req, err := http.NewRequest("GET", urls, body)
34839 if err != nil {
34840 return nil, err
34841 }
34842 req.Header = reqHeaders
34843 googleapi.Expand(req.URL, map[string]string{
34844 "name": c.name,
34845 })
34846 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34847 }
34848
34849
34850
34851
34852
34853
34854
34855 func (c *ProjectsLocationsAgentEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
34856 gensupport.SetOptions(c.urlParams_, opts...)
34857 res, err := c.doRequest("json")
34858 if res != nil && res.StatusCode == http.StatusNotModified {
34859 if res.Body != nil {
34860 res.Body.Close()
34861 }
34862 return nil, gensupport.WrapError(&googleapi.Error{
34863 Code: res.StatusCode,
34864 Header: res.Header,
34865 })
34866 }
34867 if err != nil {
34868 return nil, err
34869 }
34870 defer googleapi.CloseBody(res)
34871 if err := googleapi.CheckResponse(res); err != nil {
34872 return nil, gensupport.WrapError(err)
34873 }
34874 ret := &GoogleCloudDialogflowV2beta1EntityType{
34875 ServerResponse: googleapi.ServerResponse{
34876 Header: res.Header,
34877 HTTPStatusCode: res.StatusCode,
34878 },
34879 }
34880 target := &ret
34881 if err := gensupport.DecodeResponse(target, res); err != nil {
34882 return nil, err
34883 }
34884 return ret, nil
34885 }
34886
34887 type ProjectsLocationsAgentEntityTypesListCall struct {
34888 s *Service
34889 parent string
34890 urlParams_ gensupport.URLParams
34891 ifNoneMatch_ string
34892 ctx_ context.Context
34893 header_ http.Header
34894 }
34895
34896
34897
34898
34899
34900 func (r *ProjectsLocationsAgentEntityTypesService) List(parent string) *ProjectsLocationsAgentEntityTypesListCall {
34901 c := &ProjectsLocationsAgentEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34902 c.parent = parent
34903 return c
34904 }
34905
34906
34907
34908
34909
34910
34911 func (c *ProjectsLocationsAgentEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesListCall {
34912 c.urlParams_.Set("languageCode", languageCode)
34913 return c
34914 }
34915
34916
34917
34918 func (c *ProjectsLocationsAgentEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEntityTypesListCall {
34919 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34920 return c
34921 }
34922
34923
34924
34925 func (c *ProjectsLocationsAgentEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEntityTypesListCall {
34926 c.urlParams_.Set("pageToken", pageToken)
34927 return c
34928 }
34929
34930
34931
34932
34933 func (c *ProjectsLocationsAgentEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesListCall {
34934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34935 return c
34936 }
34937
34938
34939
34940
34941 func (c *ProjectsLocationsAgentEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEntityTypesListCall {
34942 c.ifNoneMatch_ = entityTag
34943 return c
34944 }
34945
34946
34947 func (c *ProjectsLocationsAgentEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesListCall {
34948 c.ctx_ = ctx
34949 return c
34950 }
34951
34952
34953
34954 func (c *ProjectsLocationsAgentEntityTypesListCall) Header() http.Header {
34955 if c.header_ == nil {
34956 c.header_ = make(http.Header)
34957 }
34958 return c.header_
34959 }
34960
34961 func (c *ProjectsLocationsAgentEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
34962 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34963 if c.ifNoneMatch_ != "" {
34964 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34965 }
34966 var body io.Reader = nil
34967 c.urlParams_.Set("alt", alt)
34968 c.urlParams_.Set("prettyPrint", "false")
34969 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
34970 urls += "?" + c.urlParams_.Encode()
34971 req, err := http.NewRequest("GET", urls, body)
34972 if err != nil {
34973 return nil, err
34974 }
34975 req.Header = reqHeaders
34976 googleapi.Expand(req.URL, map[string]string{
34977 "parent": c.parent,
34978 })
34979 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34980 }
34981
34982
34983
34984
34985
34986
34987
34988 func (c *ProjectsLocationsAgentEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEntityTypesResponse, error) {
34989 gensupport.SetOptions(c.urlParams_, opts...)
34990 res, err := c.doRequest("json")
34991 if res != nil && res.StatusCode == http.StatusNotModified {
34992 if res.Body != nil {
34993 res.Body.Close()
34994 }
34995 return nil, gensupport.WrapError(&googleapi.Error{
34996 Code: res.StatusCode,
34997 Header: res.Header,
34998 })
34999 }
35000 if err != nil {
35001 return nil, err
35002 }
35003 defer googleapi.CloseBody(res)
35004 if err := googleapi.CheckResponse(res); err != nil {
35005 return nil, gensupport.WrapError(err)
35006 }
35007 ret := &GoogleCloudDialogflowV2beta1ListEntityTypesResponse{
35008 ServerResponse: googleapi.ServerResponse{
35009 Header: res.Header,
35010 HTTPStatusCode: res.StatusCode,
35011 },
35012 }
35013 target := &ret
35014 if err := gensupport.DecodeResponse(target, res); err != nil {
35015 return nil, err
35016 }
35017 return ret, nil
35018 }
35019
35020
35021
35022
35023 func (c *ProjectsLocationsAgentEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEntityTypesResponse) error) error {
35024 c.ctx_ = ctx
35025 defer c.PageToken(c.urlParams_.Get("pageToken"))
35026 for {
35027 x, err := c.Do()
35028 if err != nil {
35029 return err
35030 }
35031 if err := f(x); err != nil {
35032 return err
35033 }
35034 if x.NextPageToken == "" {
35035 return nil
35036 }
35037 c.PageToken(x.NextPageToken)
35038 }
35039 }
35040
35041 type ProjectsLocationsAgentEntityTypesPatchCall struct {
35042 s *Service
35043 nameid string
35044 googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType
35045 urlParams_ gensupport.URLParams
35046 ctx_ context.Context
35047 header_ http.Header
35048 }
35049
35050
35051
35052
35053
35054
35055
35056
35057
35058 func (r *ProjectsLocationsAgentEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1entitytype *GoogleCloudDialogflowV2beta1EntityType) *ProjectsLocationsAgentEntityTypesPatchCall {
35059 c := &ProjectsLocationsAgentEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35060 c.nameid = nameid
35061 c.googleclouddialogflowv2beta1entitytype = googleclouddialogflowv2beta1entitytype
35062 return c
35063 }
35064
35065
35066
35067
35068
35069
35070 func (c *ProjectsLocationsAgentEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEntityTypesPatchCall {
35071 c.urlParams_.Set("languageCode", languageCode)
35072 return c
35073 }
35074
35075
35076
35077 func (c *ProjectsLocationsAgentEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEntityTypesPatchCall {
35078 c.urlParams_.Set("updateMask", updateMask)
35079 return c
35080 }
35081
35082
35083
35084
35085 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesPatchCall {
35086 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35087 return c
35088 }
35089
35090
35091 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesPatchCall {
35092 c.ctx_ = ctx
35093 return c
35094 }
35095
35096
35097
35098 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Header() http.Header {
35099 if c.header_ == nil {
35100 c.header_ = make(http.Header)
35101 }
35102 return c.header_
35103 }
35104
35105 func (c *ProjectsLocationsAgentEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
35106 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35107 var body io.Reader = nil
35108 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1entitytype)
35109 if err != nil {
35110 return nil, err
35111 }
35112 c.urlParams_.Set("alt", alt)
35113 c.urlParams_.Set("prettyPrint", "false")
35114 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35115 urls += "?" + c.urlParams_.Encode()
35116 req, err := http.NewRequest("PATCH", urls, body)
35117 if err != nil {
35118 return nil, err
35119 }
35120 req.Header = reqHeaders
35121 googleapi.Expand(req.URL, map[string]string{
35122 "name": c.nameid,
35123 })
35124 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35125 }
35126
35127
35128
35129
35130
35131
35132
35133 func (c *ProjectsLocationsAgentEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EntityType, error) {
35134 gensupport.SetOptions(c.urlParams_, opts...)
35135 res, err := c.doRequest("json")
35136 if res != nil && res.StatusCode == http.StatusNotModified {
35137 if res.Body != nil {
35138 res.Body.Close()
35139 }
35140 return nil, gensupport.WrapError(&googleapi.Error{
35141 Code: res.StatusCode,
35142 Header: res.Header,
35143 })
35144 }
35145 if err != nil {
35146 return nil, err
35147 }
35148 defer googleapi.CloseBody(res)
35149 if err := googleapi.CheckResponse(res); err != nil {
35150 return nil, gensupport.WrapError(err)
35151 }
35152 ret := &GoogleCloudDialogflowV2beta1EntityType{
35153 ServerResponse: googleapi.ServerResponse{
35154 Header: res.Header,
35155 HTTPStatusCode: res.StatusCode,
35156 },
35157 }
35158 target := &ret
35159 if err := gensupport.DecodeResponse(target, res); err != nil {
35160 return nil, err
35161 }
35162 return ret, nil
35163 }
35164
35165 type ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall struct {
35166 s *Service
35167 parent string
35168 googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest
35169 urlParams_ gensupport.URLParams
35170 ctx_ context.Context
35171 header_ http.Header
35172 }
35173
35174
35175
35176
35177
35178
35179
35180
35181
35182
35183
35184
35185
35186
35187
35188
35189 func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchCreate(parent string, googleclouddialogflowv2beta1batchcreateentitiesrequest *GoogleCloudDialogflowV2beta1BatchCreateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
35190 c := &ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35191 c.parent = parent
35192 c.googleclouddialogflowv2beta1batchcreateentitiesrequest = googleclouddialogflowv2beta1batchcreateentitiesrequest
35193 return c
35194 }
35195
35196
35197
35198
35199 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
35200 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35201 return c
35202 }
35203
35204
35205 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall {
35206 c.ctx_ = ctx
35207 return c
35208 }
35209
35210
35211
35212 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Header() http.Header {
35213 if c.header_ == nil {
35214 c.header_ = make(http.Header)
35215 }
35216 return c.header_
35217 }
35218
35219 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
35220 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35221 var body io.Reader = nil
35222 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreateentitiesrequest)
35223 if err != nil {
35224 return nil, err
35225 }
35226 c.urlParams_.Set("alt", alt)
35227 c.urlParams_.Set("prettyPrint", "false")
35228 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchCreate")
35229 urls += "?" + c.urlParams_.Encode()
35230 req, err := http.NewRequest("POST", urls, body)
35231 if err != nil {
35232 return nil, err
35233 }
35234 req.Header = reqHeaders
35235 googleapi.Expand(req.URL, map[string]string{
35236 "parent": c.parent,
35237 })
35238 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35239 }
35240
35241
35242
35243
35244
35245
35246
35247 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35248 gensupport.SetOptions(c.urlParams_, opts...)
35249 res, err := c.doRequest("json")
35250 if res != nil && res.StatusCode == http.StatusNotModified {
35251 if res.Body != nil {
35252 res.Body.Close()
35253 }
35254 return nil, gensupport.WrapError(&googleapi.Error{
35255 Code: res.StatusCode,
35256 Header: res.Header,
35257 })
35258 }
35259 if err != nil {
35260 return nil, err
35261 }
35262 defer googleapi.CloseBody(res)
35263 if err := googleapi.CheckResponse(res); err != nil {
35264 return nil, gensupport.WrapError(err)
35265 }
35266 ret := &GoogleLongrunningOperation{
35267 ServerResponse: googleapi.ServerResponse{
35268 Header: res.Header,
35269 HTTPStatusCode: res.StatusCode,
35270 },
35271 }
35272 target := &ret
35273 if err := gensupport.DecodeResponse(target, res); err != nil {
35274 return nil, err
35275 }
35276 return ret, nil
35277 }
35278
35279 type ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall struct {
35280 s *Service
35281 parent string
35282 googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest
35283 urlParams_ gensupport.URLParams
35284 ctx_ context.Context
35285 header_ http.Header
35286 }
35287
35288
35289
35290
35291
35292
35293
35294
35295
35296
35297
35298
35299
35300
35301
35302
35303 func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteentitiesrequest *GoogleCloudDialogflowV2beta1BatchDeleteEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
35304 c := &ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35305 c.parent = parent
35306 c.googleclouddialogflowv2beta1batchdeleteentitiesrequest = googleclouddialogflowv2beta1batchdeleteentitiesrequest
35307 return c
35308 }
35309
35310
35311
35312
35313 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
35314 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35315 return c
35316 }
35317
35318
35319 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall {
35320 c.ctx_ = ctx
35321 return c
35322 }
35323
35324
35325
35326 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Header() http.Header {
35327 if c.header_ == nil {
35328 c.header_ = make(http.Header)
35329 }
35330 return c.header_
35331 }
35332
35333 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
35334 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35335 var body io.Reader = nil
35336 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteentitiesrequest)
35337 if err != nil {
35338 return nil, err
35339 }
35340 c.urlParams_.Set("alt", alt)
35341 c.urlParams_.Set("prettyPrint", "false")
35342 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchDelete")
35343 urls += "?" + c.urlParams_.Encode()
35344 req, err := http.NewRequest("POST", urls, body)
35345 if err != nil {
35346 return nil, err
35347 }
35348 req.Header = reqHeaders
35349 googleapi.Expand(req.URL, map[string]string{
35350 "parent": c.parent,
35351 })
35352 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35353 }
35354
35355
35356
35357
35358
35359
35360
35361 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35362 gensupport.SetOptions(c.urlParams_, opts...)
35363 res, err := c.doRequest("json")
35364 if res != nil && res.StatusCode == http.StatusNotModified {
35365 if res.Body != nil {
35366 res.Body.Close()
35367 }
35368 return nil, gensupport.WrapError(&googleapi.Error{
35369 Code: res.StatusCode,
35370 Header: res.Header,
35371 })
35372 }
35373 if err != nil {
35374 return nil, err
35375 }
35376 defer googleapi.CloseBody(res)
35377 if err := googleapi.CheckResponse(res); err != nil {
35378 return nil, gensupport.WrapError(err)
35379 }
35380 ret := &GoogleLongrunningOperation{
35381 ServerResponse: googleapi.ServerResponse{
35382 Header: res.Header,
35383 HTTPStatusCode: res.StatusCode,
35384 },
35385 }
35386 target := &ret
35387 if err := gensupport.DecodeResponse(target, res); err != nil {
35388 return nil, err
35389 }
35390 return ret, nil
35391 }
35392
35393 type ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall struct {
35394 s *Service
35395 parent string
35396 googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest
35397 urlParams_ gensupport.URLParams
35398 ctx_ context.Context
35399 header_ http.Header
35400 }
35401
35402
35403
35404
35405
35406
35407
35408
35409
35410
35411
35412
35413
35414
35415
35416
35417
35418 func (r *ProjectsLocationsAgentEntityTypesEntitiesService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateentitiesrequest *GoogleCloudDialogflowV2beta1BatchUpdateEntitiesRequest) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
35419 c := &ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35420 c.parent = parent
35421 c.googleclouddialogflowv2beta1batchupdateentitiesrequest = googleclouddialogflowv2beta1batchupdateentitiesrequest
35422 return c
35423 }
35424
35425
35426
35427
35428 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
35429 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35430 return c
35431 }
35432
35433
35434 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall {
35435 c.ctx_ = ctx
35436 return c
35437 }
35438
35439
35440
35441 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Header() http.Header {
35442 if c.header_ == nil {
35443 c.header_ = make(http.Header)
35444 }
35445 return c.header_
35446 }
35447
35448 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
35449 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35450 var body io.Reader = nil
35451 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateentitiesrequest)
35452 if err != nil {
35453 return nil, err
35454 }
35455 c.urlParams_.Set("alt", alt)
35456 c.urlParams_.Set("prettyPrint", "false")
35457 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entities:batchUpdate")
35458 urls += "?" + c.urlParams_.Encode()
35459 req, err := http.NewRequest("POST", urls, body)
35460 if err != nil {
35461 return nil, err
35462 }
35463 req.Header = reqHeaders
35464 googleapi.Expand(req.URL, map[string]string{
35465 "parent": c.parent,
35466 })
35467 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35468 }
35469
35470
35471
35472
35473
35474
35475
35476 func (c *ProjectsLocationsAgentEntityTypesEntitiesBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
35477 gensupport.SetOptions(c.urlParams_, opts...)
35478 res, err := c.doRequest("json")
35479 if res != nil && res.StatusCode == http.StatusNotModified {
35480 if res.Body != nil {
35481 res.Body.Close()
35482 }
35483 return nil, gensupport.WrapError(&googleapi.Error{
35484 Code: res.StatusCode,
35485 Header: res.Header,
35486 })
35487 }
35488 if err != nil {
35489 return nil, err
35490 }
35491 defer googleapi.CloseBody(res)
35492 if err := googleapi.CheckResponse(res); err != nil {
35493 return nil, gensupport.WrapError(err)
35494 }
35495 ret := &GoogleLongrunningOperation{
35496 ServerResponse: googleapi.ServerResponse{
35497 Header: res.Header,
35498 HTTPStatusCode: res.StatusCode,
35499 },
35500 }
35501 target := &ret
35502 if err := gensupport.DecodeResponse(target, res); err != nil {
35503 return nil, err
35504 }
35505 return ret, nil
35506 }
35507
35508 type ProjectsLocationsAgentEnvironmentsCreateCall struct {
35509 s *Service
35510 parent string
35511 googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
35512 urlParams_ gensupport.URLParams
35513 ctx_ context.Context
35514 header_ http.Header
35515 }
35516
35517
35518
35519
35520
35521 func (r *ProjectsLocationsAgentEnvironmentsService) Create(parent string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsCreateCall {
35522 c := &ProjectsLocationsAgentEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35523 c.parent = parent
35524 c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
35525 return c
35526 }
35527
35528
35529
35530 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) EnvironmentId(environmentId string) *ProjectsLocationsAgentEnvironmentsCreateCall {
35531 c.urlParams_.Set("environmentId", environmentId)
35532 return c
35533 }
35534
35535
35536
35537
35538 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsCreateCall {
35539 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35540 return c
35541 }
35542
35543
35544 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsCreateCall {
35545 c.ctx_ = ctx
35546 return c
35547 }
35548
35549
35550
35551 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Header() http.Header {
35552 if c.header_ == nil {
35553 c.header_ = make(http.Header)
35554 }
35555 return c.header_
35556 }
35557
35558 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
35559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
35560 var body io.Reader = nil
35561 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
35562 if err != nil {
35563 return nil, err
35564 }
35565 c.urlParams_.Set("alt", alt)
35566 c.urlParams_.Set("prettyPrint", "false")
35567 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
35568 urls += "?" + c.urlParams_.Encode()
35569 req, err := http.NewRequest("POST", urls, body)
35570 if err != nil {
35571 return nil, err
35572 }
35573 req.Header = reqHeaders
35574 googleapi.Expand(req.URL, map[string]string{
35575 "parent": c.parent,
35576 })
35577 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35578 }
35579
35580
35581
35582
35583
35584
35585
35586 func (c *ProjectsLocationsAgentEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
35587 gensupport.SetOptions(c.urlParams_, opts...)
35588 res, err := c.doRequest("json")
35589 if res != nil && res.StatusCode == http.StatusNotModified {
35590 if res.Body != nil {
35591 res.Body.Close()
35592 }
35593 return nil, gensupport.WrapError(&googleapi.Error{
35594 Code: res.StatusCode,
35595 Header: res.Header,
35596 })
35597 }
35598 if err != nil {
35599 return nil, err
35600 }
35601 defer googleapi.CloseBody(res)
35602 if err := googleapi.CheckResponse(res); err != nil {
35603 return nil, gensupport.WrapError(err)
35604 }
35605 ret := &GoogleCloudDialogflowV2beta1Environment{
35606 ServerResponse: googleapi.ServerResponse{
35607 Header: res.Header,
35608 HTTPStatusCode: res.StatusCode,
35609 },
35610 }
35611 target := &ret
35612 if err := gensupport.DecodeResponse(target, res); err != nil {
35613 return nil, err
35614 }
35615 return ret, nil
35616 }
35617
35618 type ProjectsLocationsAgentEnvironmentsDeleteCall struct {
35619 s *Service
35620 name string
35621 urlParams_ gensupport.URLParams
35622 ctx_ context.Context
35623 header_ http.Header
35624 }
35625
35626
35627
35628
35629
35630
35631 func (r *ProjectsLocationsAgentEnvironmentsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsDeleteCall {
35632 c := &ProjectsLocationsAgentEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35633 c.name = name
35634 return c
35635 }
35636
35637
35638
35639
35640 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsDeleteCall {
35641 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35642 return c
35643 }
35644
35645
35646 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsDeleteCall {
35647 c.ctx_ = ctx
35648 return c
35649 }
35650
35651
35652
35653 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Header() http.Header {
35654 if c.header_ == nil {
35655 c.header_ = make(http.Header)
35656 }
35657 return c.header_
35658 }
35659
35660 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
35661 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35662 var body io.Reader = nil
35663 c.urlParams_.Set("alt", alt)
35664 c.urlParams_.Set("prettyPrint", "false")
35665 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35666 urls += "?" + c.urlParams_.Encode()
35667 req, err := http.NewRequest("DELETE", urls, body)
35668 if err != nil {
35669 return nil, err
35670 }
35671 req.Header = reqHeaders
35672 googleapi.Expand(req.URL, map[string]string{
35673 "name": c.name,
35674 })
35675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35676 }
35677
35678
35679
35680
35681
35682
35683
35684 func (c *ProjectsLocationsAgentEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
35685 gensupport.SetOptions(c.urlParams_, opts...)
35686 res, err := c.doRequest("json")
35687 if res != nil && res.StatusCode == http.StatusNotModified {
35688 if res.Body != nil {
35689 res.Body.Close()
35690 }
35691 return nil, gensupport.WrapError(&googleapi.Error{
35692 Code: res.StatusCode,
35693 Header: res.Header,
35694 })
35695 }
35696 if err != nil {
35697 return nil, err
35698 }
35699 defer googleapi.CloseBody(res)
35700 if err := googleapi.CheckResponse(res); err != nil {
35701 return nil, gensupport.WrapError(err)
35702 }
35703 ret := &GoogleProtobufEmpty{
35704 ServerResponse: googleapi.ServerResponse{
35705 Header: res.Header,
35706 HTTPStatusCode: res.StatusCode,
35707 },
35708 }
35709 target := &ret
35710 if err := gensupport.DecodeResponse(target, res); err != nil {
35711 return nil, err
35712 }
35713 return ret, nil
35714 }
35715
35716 type ProjectsLocationsAgentEnvironmentsGetCall struct {
35717 s *Service
35718 name string
35719 urlParams_ gensupport.URLParams
35720 ifNoneMatch_ string
35721 ctx_ context.Context
35722 header_ http.Header
35723 }
35724
35725
35726
35727
35728
35729
35730 func (r *ProjectsLocationsAgentEnvironmentsService) Get(name string) *ProjectsLocationsAgentEnvironmentsGetCall {
35731 c := &ProjectsLocationsAgentEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35732 c.name = name
35733 return c
35734 }
35735
35736
35737
35738
35739 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetCall {
35740 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35741 return c
35742 }
35743
35744
35745
35746
35747 func (c *ProjectsLocationsAgentEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetCall {
35748 c.ifNoneMatch_ = entityTag
35749 return c
35750 }
35751
35752
35753 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetCall {
35754 c.ctx_ = ctx
35755 return c
35756 }
35757
35758
35759
35760 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Header() http.Header {
35761 if c.header_ == nil {
35762 c.header_ = make(http.Header)
35763 }
35764 return c.header_
35765 }
35766
35767 func (c *ProjectsLocationsAgentEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
35768 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35769 if c.ifNoneMatch_ != "" {
35770 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35771 }
35772 var body io.Reader = nil
35773 c.urlParams_.Set("alt", alt)
35774 c.urlParams_.Set("prettyPrint", "false")
35775 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
35776 urls += "?" + c.urlParams_.Encode()
35777 req, err := http.NewRequest("GET", urls, body)
35778 if err != nil {
35779 return nil, err
35780 }
35781 req.Header = reqHeaders
35782 googleapi.Expand(req.URL, map[string]string{
35783 "name": c.name,
35784 })
35785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35786 }
35787
35788
35789
35790
35791
35792
35793
35794 func (c *ProjectsLocationsAgentEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
35795 gensupport.SetOptions(c.urlParams_, opts...)
35796 res, err := c.doRequest("json")
35797 if res != nil && res.StatusCode == http.StatusNotModified {
35798 if res.Body != nil {
35799 res.Body.Close()
35800 }
35801 return nil, gensupport.WrapError(&googleapi.Error{
35802 Code: res.StatusCode,
35803 Header: res.Header,
35804 })
35805 }
35806 if err != nil {
35807 return nil, err
35808 }
35809 defer googleapi.CloseBody(res)
35810 if err := googleapi.CheckResponse(res); err != nil {
35811 return nil, gensupport.WrapError(err)
35812 }
35813 ret := &GoogleCloudDialogflowV2beta1Environment{
35814 ServerResponse: googleapi.ServerResponse{
35815 Header: res.Header,
35816 HTTPStatusCode: res.StatusCode,
35817 },
35818 }
35819 target := &ret
35820 if err := gensupport.DecodeResponse(target, res); err != nil {
35821 return nil, err
35822 }
35823 return ret, nil
35824 }
35825
35826 type ProjectsLocationsAgentEnvironmentsGetHistoryCall struct {
35827 s *Service
35828 parent string
35829 urlParams_ gensupport.URLParams
35830 ifNoneMatch_ string
35831 ctx_ context.Context
35832 header_ http.Header
35833 }
35834
35835
35836
35837
35838
35839
35840 func (r *ProjectsLocationsAgentEnvironmentsService) GetHistory(parent string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
35841 c := &ProjectsLocationsAgentEnvironmentsGetHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35842 c.parent = parent
35843 return c
35844 }
35845
35846
35847
35848 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
35849 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35850 return c
35851 }
35852
35853
35854
35855 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
35856 c.urlParams_.Set("pageToken", pageToken)
35857 return c
35858 }
35859
35860
35861
35862
35863 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
35864 c.urlParams_.Set("fields", googleapi.CombineFields(s))
35865 return c
35866 }
35867
35868
35869
35870
35871 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
35872 c.ifNoneMatch_ = entityTag
35873 return c
35874 }
35875
35876
35877 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsGetHistoryCall {
35878 c.ctx_ = ctx
35879 return c
35880 }
35881
35882
35883
35884 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Header() http.Header {
35885 if c.header_ == nil {
35886 c.header_ = make(http.Header)
35887 }
35888 return c.header_
35889 }
35890
35891 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) doRequest(alt string) (*http.Response, error) {
35892 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
35893 if c.ifNoneMatch_ != "" {
35894 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
35895 }
35896 var body io.Reader = nil
35897 c.urlParams_.Set("alt", alt)
35898 c.urlParams_.Set("prettyPrint", "false")
35899 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/history")
35900 urls += "?" + c.urlParams_.Encode()
35901 req, err := http.NewRequest("GET", urls, body)
35902 if err != nil {
35903 return nil, err
35904 }
35905 req.Header = reqHeaders
35906 googleapi.Expand(req.URL, map[string]string{
35907 "parent": c.parent,
35908 })
35909 return gensupport.SendRequest(c.ctx_, c.s.client, req)
35910 }
35911
35912
35913
35914
35915
35916
35917
35918 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1EnvironmentHistory, error) {
35919 gensupport.SetOptions(c.urlParams_, opts...)
35920 res, err := c.doRequest("json")
35921 if res != nil && res.StatusCode == http.StatusNotModified {
35922 if res.Body != nil {
35923 res.Body.Close()
35924 }
35925 return nil, gensupport.WrapError(&googleapi.Error{
35926 Code: res.StatusCode,
35927 Header: res.Header,
35928 })
35929 }
35930 if err != nil {
35931 return nil, err
35932 }
35933 defer googleapi.CloseBody(res)
35934 if err := googleapi.CheckResponse(res); err != nil {
35935 return nil, gensupport.WrapError(err)
35936 }
35937 ret := &GoogleCloudDialogflowV2beta1EnvironmentHistory{
35938 ServerResponse: googleapi.ServerResponse{
35939 Header: res.Header,
35940 HTTPStatusCode: res.StatusCode,
35941 },
35942 }
35943 target := &ret
35944 if err := gensupport.DecodeResponse(target, res); err != nil {
35945 return nil, err
35946 }
35947 return ret, nil
35948 }
35949
35950
35951
35952
35953 func (c *ProjectsLocationsAgentEnvironmentsGetHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1EnvironmentHistory) error) error {
35954 c.ctx_ = ctx
35955 defer c.PageToken(c.urlParams_.Get("pageToken"))
35956 for {
35957 x, err := c.Do()
35958 if err != nil {
35959 return err
35960 }
35961 if err := f(x); err != nil {
35962 return err
35963 }
35964 if x.NextPageToken == "" {
35965 return nil
35966 }
35967 c.PageToken(x.NextPageToken)
35968 }
35969 }
35970
35971 type ProjectsLocationsAgentEnvironmentsListCall struct {
35972 s *Service
35973 parent string
35974 urlParams_ gensupport.URLParams
35975 ifNoneMatch_ string
35976 ctx_ context.Context
35977 header_ http.Header
35978 }
35979
35980
35981
35982
35983
35984 func (r *ProjectsLocationsAgentEnvironmentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsListCall {
35985 c := &ProjectsLocationsAgentEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
35986 c.parent = parent
35987 return c
35988 }
35989
35990
35991
35992 func (c *ProjectsLocationsAgentEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsListCall {
35993 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
35994 return c
35995 }
35996
35997
35998
35999 func (c *ProjectsLocationsAgentEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsListCall {
36000 c.urlParams_.Set("pageToken", pageToken)
36001 return c
36002 }
36003
36004
36005
36006
36007 func (c *ProjectsLocationsAgentEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsListCall {
36008 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36009 return c
36010 }
36011
36012
36013
36014
36015 func (c *ProjectsLocationsAgentEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsListCall {
36016 c.ifNoneMatch_ = entityTag
36017 return c
36018 }
36019
36020
36021 func (c *ProjectsLocationsAgentEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsListCall {
36022 c.ctx_ = ctx
36023 return c
36024 }
36025
36026
36027
36028 func (c *ProjectsLocationsAgentEnvironmentsListCall) Header() http.Header {
36029 if c.header_ == nil {
36030 c.header_ = make(http.Header)
36031 }
36032 return c.header_
36033 }
36034
36035 func (c *ProjectsLocationsAgentEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
36036 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36037 if c.ifNoneMatch_ != "" {
36038 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36039 }
36040 var body io.Reader = nil
36041 c.urlParams_.Set("alt", alt)
36042 c.urlParams_.Set("prettyPrint", "false")
36043 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/environments")
36044 urls += "?" + c.urlParams_.Encode()
36045 req, err := http.NewRequest("GET", urls, body)
36046 if err != nil {
36047 return nil, err
36048 }
36049 req.Header = reqHeaders
36050 googleapi.Expand(req.URL, map[string]string{
36051 "parent": c.parent,
36052 })
36053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36054 }
36055
36056
36057
36058
36059
36060
36061
36062 func (c *ProjectsLocationsAgentEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse, error) {
36063 gensupport.SetOptions(c.urlParams_, opts...)
36064 res, err := c.doRequest("json")
36065 if res != nil && res.StatusCode == http.StatusNotModified {
36066 if res.Body != nil {
36067 res.Body.Close()
36068 }
36069 return nil, gensupport.WrapError(&googleapi.Error{
36070 Code: res.StatusCode,
36071 Header: res.Header,
36072 })
36073 }
36074 if err != nil {
36075 return nil, err
36076 }
36077 defer googleapi.CloseBody(res)
36078 if err := googleapi.CheckResponse(res); err != nil {
36079 return nil, gensupport.WrapError(err)
36080 }
36081 ret := &GoogleCloudDialogflowV2beta1ListEnvironmentsResponse{
36082 ServerResponse: googleapi.ServerResponse{
36083 Header: res.Header,
36084 HTTPStatusCode: res.StatusCode,
36085 },
36086 }
36087 target := &ret
36088 if err := gensupport.DecodeResponse(target, res); err != nil {
36089 return nil, err
36090 }
36091 return ret, nil
36092 }
36093
36094
36095
36096
36097 func (c *ProjectsLocationsAgentEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListEnvironmentsResponse) error) error {
36098 c.ctx_ = ctx
36099 defer c.PageToken(c.urlParams_.Get("pageToken"))
36100 for {
36101 x, err := c.Do()
36102 if err != nil {
36103 return err
36104 }
36105 if err := f(x); err != nil {
36106 return err
36107 }
36108 if x.NextPageToken == "" {
36109 return nil
36110 }
36111 c.PageToken(x.NextPageToken)
36112 }
36113 }
36114
36115 type ProjectsLocationsAgentEnvironmentsPatchCall struct {
36116 s *Service
36117 nameid string
36118 googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment
36119 urlParams_ gensupport.URLParams
36120 ctx_ context.Context
36121 header_ http.Header
36122 }
36123
36124
36125
36126
36127
36128
36129
36130
36131
36132
36133
36134
36135
36136
36137
36138 func (r *ProjectsLocationsAgentEnvironmentsService) Patch(nameid string, googleclouddialogflowv2beta1environment *GoogleCloudDialogflowV2beta1Environment) *ProjectsLocationsAgentEnvironmentsPatchCall {
36139 c := &ProjectsLocationsAgentEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36140 c.nameid = nameid
36141 c.googleclouddialogflowv2beta1environment = googleclouddialogflowv2beta1environment
36142 return c
36143 }
36144
36145
36146
36147
36148
36149
36150
36151 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) AllowLoadToDraftAndDiscardChanges(allowLoadToDraftAndDiscardChanges bool) *ProjectsLocationsAgentEnvironmentsPatchCall {
36152 c.urlParams_.Set("allowLoadToDraftAndDiscardChanges", fmt.Sprint(allowLoadToDraftAndDiscardChanges))
36153 return c
36154 }
36155
36156
36157
36158 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsPatchCall {
36159 c.urlParams_.Set("updateMask", updateMask)
36160 return c
36161 }
36162
36163
36164
36165
36166 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsPatchCall {
36167 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36168 return c
36169 }
36170
36171
36172 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsPatchCall {
36173 c.ctx_ = ctx
36174 return c
36175 }
36176
36177
36178
36179 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Header() http.Header {
36180 if c.header_ == nil {
36181 c.header_ = make(http.Header)
36182 }
36183 return c.header_
36184 }
36185
36186 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
36187 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36188 var body io.Reader = nil
36189 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1environment)
36190 if err != nil {
36191 return nil, err
36192 }
36193 c.urlParams_.Set("alt", alt)
36194 c.urlParams_.Set("prettyPrint", "false")
36195 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
36196 urls += "?" + c.urlParams_.Encode()
36197 req, err := http.NewRequest("PATCH", urls, body)
36198 if err != nil {
36199 return nil, err
36200 }
36201 req.Header = reqHeaders
36202 googleapi.Expand(req.URL, map[string]string{
36203 "name": c.nameid,
36204 })
36205 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36206 }
36207
36208
36209
36210
36211
36212
36213
36214 func (c *ProjectsLocationsAgentEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Environment, error) {
36215 gensupport.SetOptions(c.urlParams_, opts...)
36216 res, err := c.doRequest("json")
36217 if res != nil && res.StatusCode == http.StatusNotModified {
36218 if res.Body != nil {
36219 res.Body.Close()
36220 }
36221 return nil, gensupport.WrapError(&googleapi.Error{
36222 Code: res.StatusCode,
36223 Header: res.Header,
36224 })
36225 }
36226 if err != nil {
36227 return nil, err
36228 }
36229 defer googleapi.CloseBody(res)
36230 if err := googleapi.CheckResponse(res); err != nil {
36231 return nil, gensupport.WrapError(err)
36232 }
36233 ret := &GoogleCloudDialogflowV2beta1Environment{
36234 ServerResponse: googleapi.ServerResponse{
36235 Header: res.Header,
36236 HTTPStatusCode: res.StatusCode,
36237 },
36238 }
36239 target := &ret
36240 if err := gensupport.DecodeResponse(target, res); err != nil {
36241 return nil, err
36242 }
36243 return ret, nil
36244 }
36245
36246 type ProjectsLocationsAgentEnvironmentsIntentsListCall struct {
36247 s *Service
36248 parent string
36249 urlParams_ gensupport.URLParams
36250 ifNoneMatch_ string
36251 ctx_ context.Context
36252 header_ http.Header
36253 }
36254
36255
36256
36257
36258
36259
36260
36261
36262 func (r *ProjectsLocationsAgentEnvironmentsIntentsService) List(parent string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36263 c := &ProjectsLocationsAgentEnvironmentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36264 c.parent = parent
36265 return c
36266 }
36267
36268
36269
36270
36271
36272
36273
36274
36275
36276
36277
36278 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36279 c.urlParams_.Set("intentView", intentView)
36280 return c
36281 }
36282
36283
36284
36285
36286
36287
36288 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36289 c.urlParams_.Set("languageCode", languageCode)
36290 return c
36291 }
36292
36293
36294
36295 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36296 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
36297 return c
36298 }
36299
36300
36301
36302 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36303 c.urlParams_.Set("pageToken", pageToken)
36304 return c
36305 }
36306
36307
36308
36309
36310 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36311 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36312 return c
36313 }
36314
36315
36316
36317
36318 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36319 c.ifNoneMatch_ = entityTag
36320 return c
36321 }
36322
36323
36324 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsIntentsListCall {
36325 c.ctx_ = ctx
36326 return c
36327 }
36328
36329
36330
36331 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Header() http.Header {
36332 if c.header_ == nil {
36333 c.header_ = make(http.Header)
36334 }
36335 return c.header_
36336 }
36337
36338 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
36339 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36340 if c.ifNoneMatch_ != "" {
36341 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36342 }
36343 var body io.Reader = nil
36344 c.urlParams_.Set("alt", alt)
36345 c.urlParams_.Set("prettyPrint", "false")
36346 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
36347 urls += "?" + c.urlParams_.Encode()
36348 req, err := http.NewRequest("GET", urls, body)
36349 if err != nil {
36350 return nil, err
36351 }
36352 req.Header = reqHeaders
36353 googleapi.Expand(req.URL, map[string]string{
36354 "parent": c.parent,
36355 })
36356 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36357 }
36358
36359
36360
36361
36362
36363
36364
36365 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
36366 gensupport.SetOptions(c.urlParams_, opts...)
36367 res, err := c.doRequest("json")
36368 if res != nil && res.StatusCode == http.StatusNotModified {
36369 if res.Body != nil {
36370 res.Body.Close()
36371 }
36372 return nil, gensupport.WrapError(&googleapi.Error{
36373 Code: res.StatusCode,
36374 Header: res.Header,
36375 })
36376 }
36377 if err != nil {
36378 return nil, err
36379 }
36380 defer googleapi.CloseBody(res)
36381 if err := googleapi.CheckResponse(res); err != nil {
36382 return nil, gensupport.WrapError(err)
36383 }
36384 ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
36385 ServerResponse: googleapi.ServerResponse{
36386 Header: res.Header,
36387 HTTPStatusCode: res.StatusCode,
36388 },
36389 }
36390 target := &ret
36391 if err := gensupport.DecodeResponse(target, res); err != nil {
36392 return nil, err
36393 }
36394 return ret, nil
36395 }
36396
36397
36398
36399
36400 func (c *ProjectsLocationsAgentEnvironmentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
36401 c.ctx_ = ctx
36402 defer c.PageToken(c.urlParams_.Get("pageToken"))
36403 for {
36404 x, err := c.Do()
36405 if err != nil {
36406 return err
36407 }
36408 if err := f(x); err != nil {
36409 return err
36410 }
36411 if x.NextPageToken == "" {
36412 return nil
36413 }
36414 c.PageToken(x.NextPageToken)
36415 }
36416 }
36417
36418 type ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall struct {
36419 s *Service
36420 parent string
36421 urlParams_ gensupport.URLParams
36422 ctx_ context.Context
36423 header_ http.Header
36424 }
36425
36426
36427
36428
36429
36430
36431
36432
36433
36434
36435
36436 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
36437 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36438 c.parent = parent
36439 return c
36440 }
36441
36442
36443
36444
36445 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
36446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36447 return c
36448 }
36449
36450
36451 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall {
36452 c.ctx_ = ctx
36453 return c
36454 }
36455
36456
36457
36458 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Header() http.Header {
36459 if c.header_ == nil {
36460 c.header_ = make(http.Header)
36461 }
36462 return c.header_
36463 }
36464
36465 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
36466 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36467 var body io.Reader = nil
36468 c.urlParams_.Set("alt", alt)
36469 c.urlParams_.Set("prettyPrint", "false")
36470 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
36471 urls += "?" + c.urlParams_.Encode()
36472 req, err := http.NewRequest("DELETE", urls, body)
36473 if err != nil {
36474 return nil, err
36475 }
36476 req.Header = reqHeaders
36477 googleapi.Expand(req.URL, map[string]string{
36478 "parent": c.parent,
36479 })
36480 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36481 }
36482
36483
36484
36485
36486
36487
36488
36489 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
36490 gensupport.SetOptions(c.urlParams_, opts...)
36491 res, err := c.doRequest("json")
36492 if res != nil && res.StatusCode == http.StatusNotModified {
36493 if res.Body != nil {
36494 res.Body.Close()
36495 }
36496 return nil, gensupport.WrapError(&googleapi.Error{
36497 Code: res.StatusCode,
36498 Header: res.Header,
36499 })
36500 }
36501 if err != nil {
36502 return nil, err
36503 }
36504 defer googleapi.CloseBody(res)
36505 if err := googleapi.CheckResponse(res); err != nil {
36506 return nil, gensupport.WrapError(err)
36507 }
36508 ret := &GoogleProtobufEmpty{
36509 ServerResponse: googleapi.ServerResponse{
36510 Header: res.Header,
36511 HTTPStatusCode: res.StatusCode,
36512 },
36513 }
36514 target := &ret
36515 if err := gensupport.DecodeResponse(target, res); err != nil {
36516 return nil, err
36517 }
36518 return ret, nil
36519 }
36520
36521 type ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall struct {
36522 s *Service
36523 sessionid string
36524 googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
36525 urlParams_ gensupport.URLParams
36526 ctx_ context.Context
36527 header_ http.Header
36528 }
36529
36530
36531
36532
36533
36534
36535
36536
36537
36538
36539
36540
36541
36542
36543
36544
36545
36546
36547
36548
36549
36550
36551
36552
36553
36554
36555
36556 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
36557 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36558 c.sessionid = sessionid
36559 c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
36560 return c
36561 }
36562
36563
36564
36565
36566 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
36567 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36568 return c
36569 }
36570
36571
36572 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall {
36573 c.ctx_ = ctx
36574 return c
36575 }
36576
36577
36578
36579 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Header() http.Header {
36580 if c.header_ == nil {
36581 c.header_ = make(http.Header)
36582 }
36583 return c.header_
36584 }
36585
36586 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
36587 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36588 var body io.Reader = nil
36589 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
36590 if err != nil {
36591 return nil, err
36592 }
36593 c.urlParams_.Set("alt", alt)
36594 c.urlParams_.Set("prettyPrint", "false")
36595 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
36596 urls += "?" + c.urlParams_.Encode()
36597 req, err := http.NewRequest("POST", urls, body)
36598 if err != nil {
36599 return nil, err
36600 }
36601 req.Header = reqHeaders
36602 googleapi.Expand(req.URL, map[string]string{
36603 "session": c.sessionid,
36604 })
36605 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36606 }
36607
36608
36609
36610
36611
36612
36613
36614 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
36615 gensupport.SetOptions(c.urlParams_, opts...)
36616 res, err := c.doRequest("json")
36617 if res != nil && res.StatusCode == http.StatusNotModified {
36618 if res.Body != nil {
36619 res.Body.Close()
36620 }
36621 return nil, gensupport.WrapError(&googleapi.Error{
36622 Code: res.StatusCode,
36623 Header: res.Header,
36624 })
36625 }
36626 if err != nil {
36627 return nil, err
36628 }
36629 defer googleapi.CloseBody(res)
36630 if err := googleapi.CheckResponse(res); err != nil {
36631 return nil, gensupport.WrapError(err)
36632 }
36633 ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
36634 ServerResponse: googleapi.ServerResponse{
36635 Header: res.Header,
36636 HTTPStatusCode: res.StatusCode,
36637 },
36638 }
36639 target := &ret
36640 if err := gensupport.DecodeResponse(target, res); err != nil {
36641 return nil, err
36642 }
36643 return ret, nil
36644 }
36645
36646 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall struct {
36647 s *Service
36648 parent string
36649 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
36650 urlParams_ gensupport.URLParams
36651 ctx_ context.Context
36652 header_ http.Header
36653 }
36654
36655
36656
36657
36658
36659
36660
36661
36662
36663
36664
36665 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
36666 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36667 c.parent = parent
36668 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
36669 return c
36670 }
36671
36672
36673
36674
36675 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
36676 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36677 return c
36678 }
36679
36680
36681 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall {
36682 c.ctx_ = ctx
36683 return c
36684 }
36685
36686
36687
36688 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Header() http.Header {
36689 if c.header_ == nil {
36690 c.header_ = make(http.Header)
36691 }
36692 return c.header_
36693 }
36694
36695 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
36696 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
36697 var body io.Reader = nil
36698 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
36699 if err != nil {
36700 return nil, err
36701 }
36702 c.urlParams_.Set("alt", alt)
36703 c.urlParams_.Set("prettyPrint", "false")
36704 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
36705 urls += "?" + c.urlParams_.Encode()
36706 req, err := http.NewRequest("POST", urls, body)
36707 if err != nil {
36708 return nil, err
36709 }
36710 req.Header = reqHeaders
36711 googleapi.Expand(req.URL, map[string]string{
36712 "parent": c.parent,
36713 })
36714 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36715 }
36716
36717
36718
36719
36720
36721
36722
36723 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
36724 gensupport.SetOptions(c.urlParams_, opts...)
36725 res, err := c.doRequest("json")
36726 if res != nil && res.StatusCode == http.StatusNotModified {
36727 if res.Body != nil {
36728 res.Body.Close()
36729 }
36730 return nil, gensupport.WrapError(&googleapi.Error{
36731 Code: res.StatusCode,
36732 Header: res.Header,
36733 })
36734 }
36735 if err != nil {
36736 return nil, err
36737 }
36738 defer googleapi.CloseBody(res)
36739 if err := googleapi.CheckResponse(res); err != nil {
36740 return nil, gensupport.WrapError(err)
36741 }
36742 ret := &GoogleCloudDialogflowV2beta1Context{
36743 ServerResponse: googleapi.ServerResponse{
36744 Header: res.Header,
36745 HTTPStatusCode: res.StatusCode,
36746 },
36747 }
36748 target := &ret
36749 if err := gensupport.DecodeResponse(target, res); err != nil {
36750 return nil, err
36751 }
36752 return ret, nil
36753 }
36754
36755 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall struct {
36756 s *Service
36757 name string
36758 urlParams_ gensupport.URLParams
36759 ctx_ context.Context
36760 header_ http.Header
36761 }
36762
36763
36764
36765
36766
36767
36768
36769
36770
36771
36772
36773 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
36774 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36775 c.name = name
36776 return c
36777 }
36778
36779
36780
36781
36782 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
36783 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36784 return c
36785 }
36786
36787
36788 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall {
36789 c.ctx_ = ctx
36790 return c
36791 }
36792
36793
36794
36795 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Header() http.Header {
36796 if c.header_ == nil {
36797 c.header_ = make(http.Header)
36798 }
36799 return c.header_
36800 }
36801
36802 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
36803 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36804 var body io.Reader = nil
36805 c.urlParams_.Set("alt", alt)
36806 c.urlParams_.Set("prettyPrint", "false")
36807 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
36808 urls += "?" + c.urlParams_.Encode()
36809 req, err := http.NewRequest("DELETE", urls, body)
36810 if err != nil {
36811 return nil, err
36812 }
36813 req.Header = reqHeaders
36814 googleapi.Expand(req.URL, map[string]string{
36815 "name": c.name,
36816 })
36817 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36818 }
36819
36820
36821
36822
36823
36824
36825
36826 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
36827 gensupport.SetOptions(c.urlParams_, opts...)
36828 res, err := c.doRequest("json")
36829 if res != nil && res.StatusCode == http.StatusNotModified {
36830 if res.Body != nil {
36831 res.Body.Close()
36832 }
36833 return nil, gensupport.WrapError(&googleapi.Error{
36834 Code: res.StatusCode,
36835 Header: res.Header,
36836 })
36837 }
36838 if err != nil {
36839 return nil, err
36840 }
36841 defer googleapi.CloseBody(res)
36842 if err := googleapi.CheckResponse(res); err != nil {
36843 return nil, gensupport.WrapError(err)
36844 }
36845 ret := &GoogleProtobufEmpty{
36846 ServerResponse: googleapi.ServerResponse{
36847 Header: res.Header,
36848 HTTPStatusCode: res.StatusCode,
36849 },
36850 }
36851 target := &ret
36852 if err := gensupport.DecodeResponse(target, res); err != nil {
36853 return nil, err
36854 }
36855 return ret, nil
36856 }
36857
36858 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall struct {
36859 s *Service
36860 name string
36861 urlParams_ gensupport.URLParams
36862 ifNoneMatch_ string
36863 ctx_ context.Context
36864 header_ http.Header
36865 }
36866
36867
36868
36869
36870
36871
36872
36873
36874
36875
36876
36877 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
36878 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36879 c.name = name
36880 return c
36881 }
36882
36883
36884
36885
36886 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
36887 c.urlParams_.Set("fields", googleapi.CombineFields(s))
36888 return c
36889 }
36890
36891
36892
36893
36894 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
36895 c.ifNoneMatch_ = entityTag
36896 return c
36897 }
36898
36899
36900 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall {
36901 c.ctx_ = ctx
36902 return c
36903 }
36904
36905
36906
36907 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Header() http.Header {
36908 if c.header_ == nil {
36909 c.header_ = make(http.Header)
36910 }
36911 return c.header_
36912 }
36913
36914 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
36915 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
36916 if c.ifNoneMatch_ != "" {
36917 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
36918 }
36919 var body io.Reader = nil
36920 c.urlParams_.Set("alt", alt)
36921 c.urlParams_.Set("prettyPrint", "false")
36922 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
36923 urls += "?" + c.urlParams_.Encode()
36924 req, err := http.NewRequest("GET", urls, body)
36925 if err != nil {
36926 return nil, err
36927 }
36928 req.Header = reqHeaders
36929 googleapi.Expand(req.URL, map[string]string{
36930 "name": c.name,
36931 })
36932 return gensupport.SendRequest(c.ctx_, c.s.client, req)
36933 }
36934
36935
36936
36937
36938
36939
36940
36941 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
36942 gensupport.SetOptions(c.urlParams_, opts...)
36943 res, err := c.doRequest("json")
36944 if res != nil && res.StatusCode == http.StatusNotModified {
36945 if res.Body != nil {
36946 res.Body.Close()
36947 }
36948 return nil, gensupport.WrapError(&googleapi.Error{
36949 Code: res.StatusCode,
36950 Header: res.Header,
36951 })
36952 }
36953 if err != nil {
36954 return nil, err
36955 }
36956 defer googleapi.CloseBody(res)
36957 if err := googleapi.CheckResponse(res); err != nil {
36958 return nil, gensupport.WrapError(err)
36959 }
36960 ret := &GoogleCloudDialogflowV2beta1Context{
36961 ServerResponse: googleapi.ServerResponse{
36962 Header: res.Header,
36963 HTTPStatusCode: res.StatusCode,
36964 },
36965 }
36966 target := &ret
36967 if err := gensupport.DecodeResponse(target, res); err != nil {
36968 return nil, err
36969 }
36970 return ret, nil
36971 }
36972
36973 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall struct {
36974 s *Service
36975 parent string
36976 urlParams_ gensupport.URLParams
36977 ifNoneMatch_ string
36978 ctx_ context.Context
36979 header_ http.Header
36980 }
36981
36982
36983
36984
36985
36986
36987
36988
36989
36990
36991 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
36992 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
36993 c.parent = parent
36994 return c
36995 }
36996
36997
36998
36999 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37000 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37001 return c
37002 }
37003
37004
37005
37006 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37007 c.urlParams_.Set("pageToken", pageToken)
37008 return c
37009 }
37010
37011
37012
37013
37014 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37016 return c
37017 }
37018
37019
37020
37021
37022 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37023 c.ifNoneMatch_ = entityTag
37024 return c
37025 }
37026
37027
37028 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall {
37029 c.ctx_ = ctx
37030 return c
37031 }
37032
37033
37034
37035 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Header() http.Header {
37036 if c.header_ == nil {
37037 c.header_ = make(http.Header)
37038 }
37039 return c.header_
37040 }
37041
37042 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
37043 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37044 if c.ifNoneMatch_ != "" {
37045 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37046 }
37047 var body io.Reader = nil
37048 c.urlParams_.Set("alt", alt)
37049 c.urlParams_.Set("prettyPrint", "false")
37050 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
37051 urls += "?" + c.urlParams_.Encode()
37052 req, err := http.NewRequest("GET", urls, body)
37053 if err != nil {
37054 return nil, err
37055 }
37056 req.Header = reqHeaders
37057 googleapi.Expand(req.URL, map[string]string{
37058 "parent": c.parent,
37059 })
37060 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37061 }
37062
37063
37064
37065
37066
37067
37068
37069 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
37070 gensupport.SetOptions(c.urlParams_, opts...)
37071 res, err := c.doRequest("json")
37072 if res != nil && res.StatusCode == http.StatusNotModified {
37073 if res.Body != nil {
37074 res.Body.Close()
37075 }
37076 return nil, gensupport.WrapError(&googleapi.Error{
37077 Code: res.StatusCode,
37078 Header: res.Header,
37079 })
37080 }
37081 if err != nil {
37082 return nil, err
37083 }
37084 defer googleapi.CloseBody(res)
37085 if err := googleapi.CheckResponse(res); err != nil {
37086 return nil, gensupport.WrapError(err)
37087 }
37088 ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
37089 ServerResponse: googleapi.ServerResponse{
37090 Header: res.Header,
37091 HTTPStatusCode: res.StatusCode,
37092 },
37093 }
37094 target := &ret
37095 if err := gensupport.DecodeResponse(target, res); err != nil {
37096 return nil, err
37097 }
37098 return ret, nil
37099 }
37100
37101
37102
37103
37104 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
37105 c.ctx_ = ctx
37106 defer c.PageToken(c.urlParams_.Get("pageToken"))
37107 for {
37108 x, err := c.Do()
37109 if err != nil {
37110 return err
37111 }
37112 if err := f(x); err != nil {
37113 return err
37114 }
37115 if x.NextPageToken == "" {
37116 return nil
37117 }
37118 c.PageToken(x.NextPageToken)
37119 }
37120 }
37121
37122 type ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall struct {
37123 s *Service
37124 nameid string
37125 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
37126 urlParams_ gensupport.URLParams
37127 ctx_ context.Context
37128 header_ http.Header
37129 }
37130
37131
37132
37133
37134
37135
37136
37137
37138
37139
37140
37141
37142
37143
37144
37145 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37146 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37147 c.nameid = nameid
37148 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
37149 return c
37150 }
37151
37152
37153
37154 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37155 c.urlParams_.Set("updateMask", updateMask)
37156 return c
37157 }
37158
37159
37160
37161
37162 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37163 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37164 return c
37165 }
37166
37167
37168 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall {
37169 c.ctx_ = ctx
37170 return c
37171 }
37172
37173
37174
37175 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Header() http.Header {
37176 if c.header_ == nil {
37177 c.header_ = make(http.Header)
37178 }
37179 return c.header_
37180 }
37181
37182 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
37183 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37184 var body io.Reader = nil
37185 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
37186 if err != nil {
37187 return nil, err
37188 }
37189 c.urlParams_.Set("alt", alt)
37190 c.urlParams_.Set("prettyPrint", "false")
37191 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
37192 urls += "?" + c.urlParams_.Encode()
37193 req, err := http.NewRequest("PATCH", urls, body)
37194 if err != nil {
37195 return nil, err
37196 }
37197 req.Header = reqHeaders
37198 googleapi.Expand(req.URL, map[string]string{
37199 "name": c.nameid,
37200 })
37201 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37202 }
37203
37204
37205
37206
37207
37208
37209
37210 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
37211 gensupport.SetOptions(c.urlParams_, opts...)
37212 res, err := c.doRequest("json")
37213 if res != nil && res.StatusCode == http.StatusNotModified {
37214 if res.Body != nil {
37215 res.Body.Close()
37216 }
37217 return nil, gensupport.WrapError(&googleapi.Error{
37218 Code: res.StatusCode,
37219 Header: res.Header,
37220 })
37221 }
37222 if err != nil {
37223 return nil, err
37224 }
37225 defer googleapi.CloseBody(res)
37226 if err := googleapi.CheckResponse(res); err != nil {
37227 return nil, gensupport.WrapError(err)
37228 }
37229 ret := &GoogleCloudDialogflowV2beta1Context{
37230 ServerResponse: googleapi.ServerResponse{
37231 Header: res.Header,
37232 HTTPStatusCode: res.StatusCode,
37233 },
37234 }
37235 target := &ret
37236 if err := gensupport.DecodeResponse(target, res); err != nil {
37237 return nil, err
37238 }
37239 return ret, nil
37240 }
37241
37242 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall struct {
37243 s *Service
37244 parent string
37245 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
37246 urlParams_ gensupport.URLParams
37247 ctx_ context.Context
37248 header_ http.Header
37249 }
37250
37251
37252
37253
37254
37255
37256
37257
37258
37259
37260
37261
37262
37263
37264 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
37265 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37266 c.parent = parent
37267 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
37268 return c
37269 }
37270
37271
37272
37273
37274 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
37275 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37276 return c
37277 }
37278
37279
37280 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall {
37281 c.ctx_ = ctx
37282 return c
37283 }
37284
37285
37286
37287 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Header() http.Header {
37288 if c.header_ == nil {
37289 c.header_ = make(http.Header)
37290 }
37291 return c.header_
37292 }
37293
37294 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
37295 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37296 var body io.Reader = nil
37297 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
37298 if err != nil {
37299 return nil, err
37300 }
37301 c.urlParams_.Set("alt", alt)
37302 c.urlParams_.Set("prettyPrint", "false")
37303 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
37304 urls += "?" + c.urlParams_.Encode()
37305 req, err := http.NewRequest("POST", urls, body)
37306 if err != nil {
37307 return nil, err
37308 }
37309 req.Header = reqHeaders
37310 googleapi.Expand(req.URL, map[string]string{
37311 "parent": c.parent,
37312 })
37313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37314 }
37315
37316
37317
37318
37319
37320
37321
37322 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
37323 gensupport.SetOptions(c.urlParams_, opts...)
37324 res, err := c.doRequest("json")
37325 if res != nil && res.StatusCode == http.StatusNotModified {
37326 if res.Body != nil {
37327 res.Body.Close()
37328 }
37329 return nil, gensupport.WrapError(&googleapi.Error{
37330 Code: res.StatusCode,
37331 Header: res.Header,
37332 })
37333 }
37334 if err != nil {
37335 return nil, err
37336 }
37337 defer googleapi.CloseBody(res)
37338 if err := googleapi.CheckResponse(res); err != nil {
37339 return nil, gensupport.WrapError(err)
37340 }
37341 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
37342 ServerResponse: googleapi.ServerResponse{
37343 Header: res.Header,
37344 HTTPStatusCode: res.StatusCode,
37345 },
37346 }
37347 target := &ret
37348 if err := gensupport.DecodeResponse(target, res); err != nil {
37349 return nil, err
37350 }
37351 return ret, nil
37352 }
37353
37354 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall struct {
37355 s *Service
37356 name string
37357 urlParams_ gensupport.URLParams
37358 ctx_ context.Context
37359 header_ http.Header
37360 }
37361
37362
37363
37364
37365
37366
37367
37368
37369
37370
37371
37372
37373
37374 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
37375 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37376 c.name = name
37377 return c
37378 }
37379
37380
37381
37382
37383 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
37384 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37385 return c
37386 }
37387
37388
37389 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall {
37390 c.ctx_ = ctx
37391 return c
37392 }
37393
37394
37395
37396 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Header() http.Header {
37397 if c.header_ == nil {
37398 c.header_ = make(http.Header)
37399 }
37400 return c.header_
37401 }
37402
37403 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
37404 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37405 var body io.Reader = nil
37406 c.urlParams_.Set("alt", alt)
37407 c.urlParams_.Set("prettyPrint", "false")
37408 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
37409 urls += "?" + c.urlParams_.Encode()
37410 req, err := http.NewRequest("DELETE", urls, body)
37411 if err != nil {
37412 return nil, err
37413 }
37414 req.Header = reqHeaders
37415 googleapi.Expand(req.URL, map[string]string{
37416 "name": c.name,
37417 })
37418 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37419 }
37420
37421
37422
37423
37424
37425
37426
37427 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
37428 gensupport.SetOptions(c.urlParams_, opts...)
37429 res, err := c.doRequest("json")
37430 if res != nil && res.StatusCode == http.StatusNotModified {
37431 if res.Body != nil {
37432 res.Body.Close()
37433 }
37434 return nil, gensupport.WrapError(&googleapi.Error{
37435 Code: res.StatusCode,
37436 Header: res.Header,
37437 })
37438 }
37439 if err != nil {
37440 return nil, err
37441 }
37442 defer googleapi.CloseBody(res)
37443 if err := googleapi.CheckResponse(res); err != nil {
37444 return nil, gensupport.WrapError(err)
37445 }
37446 ret := &GoogleProtobufEmpty{
37447 ServerResponse: googleapi.ServerResponse{
37448 Header: res.Header,
37449 HTTPStatusCode: res.StatusCode,
37450 },
37451 }
37452 target := &ret
37453 if err := gensupport.DecodeResponse(target, res); err != nil {
37454 return nil, err
37455 }
37456 return ret, nil
37457 }
37458
37459 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall struct {
37460 s *Service
37461 name string
37462 urlParams_ gensupport.URLParams
37463 ifNoneMatch_ string
37464 ctx_ context.Context
37465 header_ http.Header
37466 }
37467
37468
37469
37470
37471
37472
37473
37474
37475
37476
37477
37478
37479
37480 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
37481 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37482 c.name = name
37483 return c
37484 }
37485
37486
37487
37488
37489 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
37490 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37491 return c
37492 }
37493
37494
37495
37496
37497 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
37498 c.ifNoneMatch_ = entityTag
37499 return c
37500 }
37501
37502
37503 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall {
37504 c.ctx_ = ctx
37505 return c
37506 }
37507
37508
37509
37510 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Header() http.Header {
37511 if c.header_ == nil {
37512 c.header_ = make(http.Header)
37513 }
37514 return c.header_
37515 }
37516
37517 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
37518 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37519 if c.ifNoneMatch_ != "" {
37520 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37521 }
37522 var body io.Reader = nil
37523 c.urlParams_.Set("alt", alt)
37524 c.urlParams_.Set("prettyPrint", "false")
37525 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
37526 urls += "?" + c.urlParams_.Encode()
37527 req, err := http.NewRequest("GET", urls, body)
37528 if err != nil {
37529 return nil, err
37530 }
37531 req.Header = reqHeaders
37532 googleapi.Expand(req.URL, map[string]string{
37533 "name": c.name,
37534 })
37535 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37536 }
37537
37538
37539
37540
37541
37542
37543
37544 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
37545 gensupport.SetOptions(c.urlParams_, opts...)
37546 res, err := c.doRequest("json")
37547 if res != nil && res.StatusCode == http.StatusNotModified {
37548 if res.Body != nil {
37549 res.Body.Close()
37550 }
37551 return nil, gensupport.WrapError(&googleapi.Error{
37552 Code: res.StatusCode,
37553 Header: res.Header,
37554 })
37555 }
37556 if err != nil {
37557 return nil, err
37558 }
37559 defer googleapi.CloseBody(res)
37560 if err := googleapi.CheckResponse(res); err != nil {
37561 return nil, gensupport.WrapError(err)
37562 }
37563 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
37564 ServerResponse: googleapi.ServerResponse{
37565 Header: res.Header,
37566 HTTPStatusCode: res.StatusCode,
37567 },
37568 }
37569 target := &ret
37570 if err := gensupport.DecodeResponse(target, res); err != nil {
37571 return nil, err
37572 }
37573 return ret, nil
37574 }
37575
37576 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall struct {
37577 s *Service
37578 parent string
37579 urlParams_ gensupport.URLParams
37580 ifNoneMatch_ string
37581 ctx_ context.Context
37582 header_ http.Header
37583 }
37584
37585
37586
37587
37588
37589
37590
37591
37592
37593
37594
37595
37596
37597
37598 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
37599 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37600 c.parent = parent
37601 return c
37602 }
37603
37604
37605
37606 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
37607 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
37608 return c
37609 }
37610
37611
37612
37613 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
37614 c.urlParams_.Set("pageToken", pageToken)
37615 return c
37616 }
37617
37618
37619
37620
37621 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
37622 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37623 return c
37624 }
37625
37626
37627
37628
37629 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
37630 c.ifNoneMatch_ = entityTag
37631 return c
37632 }
37633
37634
37635 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall {
37636 c.ctx_ = ctx
37637 return c
37638 }
37639
37640
37641
37642 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Header() http.Header {
37643 if c.header_ == nil {
37644 c.header_ = make(http.Header)
37645 }
37646 return c.header_
37647 }
37648
37649 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
37650 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
37651 if c.ifNoneMatch_ != "" {
37652 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
37653 }
37654 var body io.Reader = nil
37655 c.urlParams_.Set("alt", alt)
37656 c.urlParams_.Set("prettyPrint", "false")
37657 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
37658 urls += "?" + c.urlParams_.Encode()
37659 req, err := http.NewRequest("GET", urls, body)
37660 if err != nil {
37661 return nil, err
37662 }
37663 req.Header = reqHeaders
37664 googleapi.Expand(req.URL, map[string]string{
37665 "parent": c.parent,
37666 })
37667 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37668 }
37669
37670
37671
37672
37673
37674
37675
37676 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
37677 gensupport.SetOptions(c.urlParams_, opts...)
37678 res, err := c.doRequest("json")
37679 if res != nil && res.StatusCode == http.StatusNotModified {
37680 if res.Body != nil {
37681 res.Body.Close()
37682 }
37683 return nil, gensupport.WrapError(&googleapi.Error{
37684 Code: res.StatusCode,
37685 Header: res.Header,
37686 })
37687 }
37688 if err != nil {
37689 return nil, err
37690 }
37691 defer googleapi.CloseBody(res)
37692 if err := googleapi.CheckResponse(res); err != nil {
37693 return nil, gensupport.WrapError(err)
37694 }
37695 ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
37696 ServerResponse: googleapi.ServerResponse{
37697 Header: res.Header,
37698 HTTPStatusCode: res.StatusCode,
37699 },
37700 }
37701 target := &ret
37702 if err := gensupport.DecodeResponse(target, res); err != nil {
37703 return nil, err
37704 }
37705 return ret, nil
37706 }
37707
37708
37709
37710
37711 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
37712 c.ctx_ = ctx
37713 defer c.PageToken(c.urlParams_.Get("pageToken"))
37714 for {
37715 x, err := c.Do()
37716 if err != nil {
37717 return err
37718 }
37719 if err := f(x); err != nil {
37720 return err
37721 }
37722 if x.NextPageToken == "" {
37723 return nil
37724 }
37725 c.PageToken(x.NextPageToken)
37726 }
37727 }
37728
37729 type ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall struct {
37730 s *Service
37731 nameid string
37732 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
37733 urlParams_ gensupport.URLParams
37734 ctx_ context.Context
37735 header_ http.Header
37736 }
37737
37738
37739
37740
37741
37742
37743
37744
37745
37746
37747
37748
37749
37750
37751
37752 func (r *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
37753 c := &ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37754 c.nameid = nameid
37755 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
37756 return c
37757 }
37758
37759
37760
37761 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
37762 c.urlParams_.Set("updateMask", updateMask)
37763 return c
37764 }
37765
37766
37767
37768
37769 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
37770 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37771 return c
37772 }
37773
37774
37775 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall {
37776 c.ctx_ = ctx
37777 return c
37778 }
37779
37780
37781
37782 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Header() http.Header {
37783 if c.header_ == nil {
37784 c.header_ = make(http.Header)
37785 }
37786 return c.header_
37787 }
37788
37789 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
37790 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37791 var body io.Reader = nil
37792 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
37793 if err != nil {
37794 return nil, err
37795 }
37796 c.urlParams_.Set("alt", alt)
37797 c.urlParams_.Set("prettyPrint", "false")
37798 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
37799 urls += "?" + c.urlParams_.Encode()
37800 req, err := http.NewRequest("PATCH", urls, body)
37801 if err != nil {
37802 return nil, err
37803 }
37804 req.Header = reqHeaders
37805 googleapi.Expand(req.URL, map[string]string{
37806 "name": c.nameid,
37807 })
37808 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37809 }
37810
37811
37812
37813
37814
37815
37816
37817 func (c *ProjectsLocationsAgentEnvironmentsUsersSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
37818 gensupport.SetOptions(c.urlParams_, opts...)
37819 res, err := c.doRequest("json")
37820 if res != nil && res.StatusCode == http.StatusNotModified {
37821 if res.Body != nil {
37822 res.Body.Close()
37823 }
37824 return nil, gensupport.WrapError(&googleapi.Error{
37825 Code: res.StatusCode,
37826 Header: res.Header,
37827 })
37828 }
37829 if err != nil {
37830 return nil, err
37831 }
37832 defer googleapi.CloseBody(res)
37833 if err := googleapi.CheckResponse(res); err != nil {
37834 return nil, gensupport.WrapError(err)
37835 }
37836 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
37837 ServerResponse: googleapi.ServerResponse{
37838 Header: res.Header,
37839 HTTPStatusCode: res.StatusCode,
37840 },
37841 }
37842 target := &ret
37843 if err := gensupport.DecodeResponse(target, res); err != nil {
37844 return nil, err
37845 }
37846 return ret, nil
37847 }
37848
37849 type ProjectsLocationsAgentIntentsBatchDeleteCall struct {
37850 s *Service
37851 parent string
37852 googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest
37853 urlParams_ gensupport.URLParams
37854 ctx_ context.Context
37855 header_ http.Header
37856 }
37857
37858
37859
37860
37861
37862
37863
37864
37865
37866
37867
37868
37869
37870
37871
37872 func (r *ProjectsLocationsAgentIntentsService) BatchDelete(parent string, googleclouddialogflowv2beta1batchdeleteintentsrequest *GoogleCloudDialogflowV2beta1BatchDeleteIntentsRequest) *ProjectsLocationsAgentIntentsBatchDeleteCall {
37873 c := &ProjectsLocationsAgentIntentsBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37874 c.parent = parent
37875 c.googleclouddialogflowv2beta1batchdeleteintentsrequest = googleclouddialogflowv2beta1batchdeleteintentsrequest
37876 return c
37877 }
37878
37879
37880
37881
37882 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchDeleteCall {
37883 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37884 return c
37885 }
37886
37887
37888 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchDeleteCall {
37889 c.ctx_ = ctx
37890 return c
37891 }
37892
37893
37894
37895 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Header() http.Header {
37896 if c.header_ == nil {
37897 c.header_ = make(http.Header)
37898 }
37899 return c.header_
37900 }
37901
37902 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
37903 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
37904 var body io.Reader = nil
37905 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchdeleteintentsrequest)
37906 if err != nil {
37907 return nil, err
37908 }
37909 c.urlParams_.Set("alt", alt)
37910 c.urlParams_.Set("prettyPrint", "false")
37911 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchDelete")
37912 urls += "?" + c.urlParams_.Encode()
37913 req, err := http.NewRequest("POST", urls, body)
37914 if err != nil {
37915 return nil, err
37916 }
37917 req.Header = reqHeaders
37918 googleapi.Expand(req.URL, map[string]string{
37919 "parent": c.parent,
37920 })
37921 return gensupport.SendRequest(c.ctx_, c.s.client, req)
37922 }
37923
37924
37925
37926
37927
37928
37929
37930 func (c *ProjectsLocationsAgentIntentsBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
37931 gensupport.SetOptions(c.urlParams_, opts...)
37932 res, err := c.doRequest("json")
37933 if res != nil && res.StatusCode == http.StatusNotModified {
37934 if res.Body != nil {
37935 res.Body.Close()
37936 }
37937 return nil, gensupport.WrapError(&googleapi.Error{
37938 Code: res.StatusCode,
37939 Header: res.Header,
37940 })
37941 }
37942 if err != nil {
37943 return nil, err
37944 }
37945 defer googleapi.CloseBody(res)
37946 if err := googleapi.CheckResponse(res); err != nil {
37947 return nil, gensupport.WrapError(err)
37948 }
37949 ret := &GoogleLongrunningOperation{
37950 ServerResponse: googleapi.ServerResponse{
37951 Header: res.Header,
37952 HTTPStatusCode: res.StatusCode,
37953 },
37954 }
37955 target := &ret
37956 if err := gensupport.DecodeResponse(target, res); err != nil {
37957 return nil, err
37958 }
37959 return ret, nil
37960 }
37961
37962 type ProjectsLocationsAgentIntentsBatchUpdateCall struct {
37963 s *Service
37964 parent string
37965 googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest
37966 urlParams_ gensupport.URLParams
37967 ctx_ context.Context
37968 header_ http.Header
37969 }
37970
37971
37972
37973
37974
37975
37976
37977
37978
37979
37980
37981
37982
37983 func (r *ProjectsLocationsAgentIntentsService) BatchUpdate(parent string, googleclouddialogflowv2beta1batchupdateintentsrequest *GoogleCloudDialogflowV2beta1BatchUpdateIntentsRequest) *ProjectsLocationsAgentIntentsBatchUpdateCall {
37984 c := &ProjectsLocationsAgentIntentsBatchUpdateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
37985 c.parent = parent
37986 c.googleclouddialogflowv2beta1batchupdateintentsrequest = googleclouddialogflowv2beta1batchupdateintentsrequest
37987 return c
37988 }
37989
37990
37991
37992
37993 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsBatchUpdateCall {
37994 c.urlParams_.Set("fields", googleapi.CombineFields(s))
37995 return c
37996 }
37997
37998
37999 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsBatchUpdateCall {
38000 c.ctx_ = ctx
38001 return c
38002 }
38003
38004
38005
38006 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Header() http.Header {
38007 if c.header_ == nil {
38008 c.header_ = make(http.Header)
38009 }
38010 return c.header_
38011 }
38012
38013 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) doRequest(alt string) (*http.Response, error) {
38014 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38015 var body io.Reader = nil
38016 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchupdateintentsrequest)
38017 if err != nil {
38018 return nil, err
38019 }
38020 c.urlParams_.Set("alt", alt)
38021 c.urlParams_.Set("prettyPrint", "false")
38022 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents:batchUpdate")
38023 urls += "?" + c.urlParams_.Encode()
38024 req, err := http.NewRequest("POST", urls, body)
38025 if err != nil {
38026 return nil, err
38027 }
38028 req.Header = reqHeaders
38029 googleapi.Expand(req.URL, map[string]string{
38030 "parent": c.parent,
38031 })
38032 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38033 }
38034
38035
38036
38037
38038
38039
38040
38041 func (c *ProjectsLocationsAgentIntentsBatchUpdateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
38042 gensupport.SetOptions(c.urlParams_, opts...)
38043 res, err := c.doRequest("json")
38044 if res != nil && res.StatusCode == http.StatusNotModified {
38045 if res.Body != nil {
38046 res.Body.Close()
38047 }
38048 return nil, gensupport.WrapError(&googleapi.Error{
38049 Code: res.StatusCode,
38050 Header: res.Header,
38051 })
38052 }
38053 if err != nil {
38054 return nil, err
38055 }
38056 defer googleapi.CloseBody(res)
38057 if err := googleapi.CheckResponse(res); err != nil {
38058 return nil, gensupport.WrapError(err)
38059 }
38060 ret := &GoogleLongrunningOperation{
38061 ServerResponse: googleapi.ServerResponse{
38062 Header: res.Header,
38063 HTTPStatusCode: res.StatusCode,
38064 },
38065 }
38066 target := &ret
38067 if err := gensupport.DecodeResponse(target, res); err != nil {
38068 return nil, err
38069 }
38070 return ret, nil
38071 }
38072
38073 type ProjectsLocationsAgentIntentsCreateCall struct {
38074 s *Service
38075 parent string
38076 googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
38077 urlParams_ gensupport.URLParams
38078 ctx_ context.Context
38079 header_ http.Header
38080 }
38081
38082
38083
38084
38085
38086
38087
38088 func (r *ProjectsLocationsAgentIntentsService) Create(parent string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsCreateCall {
38089 c := &ProjectsLocationsAgentIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38090 c.parent = parent
38091 c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
38092 return c
38093 }
38094
38095
38096
38097
38098
38099
38100
38101
38102
38103
38104
38105 func (c *ProjectsLocationsAgentIntentsCreateCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsCreateCall {
38106 c.urlParams_.Set("intentView", intentView)
38107 return c
38108 }
38109
38110
38111
38112
38113
38114
38115 func (c *ProjectsLocationsAgentIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsCreateCall {
38116 c.urlParams_.Set("languageCode", languageCode)
38117 return c
38118 }
38119
38120
38121
38122
38123 func (c *ProjectsLocationsAgentIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsCreateCall {
38124 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38125 return c
38126 }
38127
38128
38129 func (c *ProjectsLocationsAgentIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsCreateCall {
38130 c.ctx_ = ctx
38131 return c
38132 }
38133
38134
38135
38136 func (c *ProjectsLocationsAgentIntentsCreateCall) Header() http.Header {
38137 if c.header_ == nil {
38138 c.header_ = make(http.Header)
38139 }
38140 return c.header_
38141 }
38142
38143 func (c *ProjectsLocationsAgentIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
38144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38145 var body io.Reader = nil
38146 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
38147 if err != nil {
38148 return nil, err
38149 }
38150 c.urlParams_.Set("alt", alt)
38151 c.urlParams_.Set("prettyPrint", "false")
38152 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
38153 urls += "?" + c.urlParams_.Encode()
38154 req, err := http.NewRequest("POST", urls, body)
38155 if err != nil {
38156 return nil, err
38157 }
38158 req.Header = reqHeaders
38159 googleapi.Expand(req.URL, map[string]string{
38160 "parent": c.parent,
38161 })
38162 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38163 }
38164
38165
38166
38167
38168
38169
38170
38171 func (c *ProjectsLocationsAgentIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
38172 gensupport.SetOptions(c.urlParams_, opts...)
38173 res, err := c.doRequest("json")
38174 if res != nil && res.StatusCode == http.StatusNotModified {
38175 if res.Body != nil {
38176 res.Body.Close()
38177 }
38178 return nil, gensupport.WrapError(&googleapi.Error{
38179 Code: res.StatusCode,
38180 Header: res.Header,
38181 })
38182 }
38183 if err != nil {
38184 return nil, err
38185 }
38186 defer googleapi.CloseBody(res)
38187 if err := googleapi.CheckResponse(res); err != nil {
38188 return nil, gensupport.WrapError(err)
38189 }
38190 ret := &GoogleCloudDialogflowV2beta1Intent{
38191 ServerResponse: googleapi.ServerResponse{
38192 Header: res.Header,
38193 HTTPStatusCode: res.StatusCode,
38194 },
38195 }
38196 target := &ret
38197 if err := gensupport.DecodeResponse(target, res); err != nil {
38198 return nil, err
38199 }
38200 return ret, nil
38201 }
38202
38203 type ProjectsLocationsAgentIntentsDeleteCall struct {
38204 s *Service
38205 name string
38206 urlParams_ gensupport.URLParams
38207 ctx_ context.Context
38208 header_ http.Header
38209 }
38210
38211
38212
38213
38214
38215
38216
38217
38218
38219 func (r *ProjectsLocationsAgentIntentsService) Delete(name string) *ProjectsLocationsAgentIntentsDeleteCall {
38220 c := &ProjectsLocationsAgentIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38221 c.name = name
38222 return c
38223 }
38224
38225
38226
38227
38228 func (c *ProjectsLocationsAgentIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsDeleteCall {
38229 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38230 return c
38231 }
38232
38233
38234 func (c *ProjectsLocationsAgentIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsDeleteCall {
38235 c.ctx_ = ctx
38236 return c
38237 }
38238
38239
38240
38241 func (c *ProjectsLocationsAgentIntentsDeleteCall) Header() http.Header {
38242 if c.header_ == nil {
38243 c.header_ = make(http.Header)
38244 }
38245 return c.header_
38246 }
38247
38248 func (c *ProjectsLocationsAgentIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
38249 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38250 var body io.Reader = nil
38251 c.urlParams_.Set("alt", alt)
38252 c.urlParams_.Set("prettyPrint", "false")
38253 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38254 urls += "?" + c.urlParams_.Encode()
38255 req, err := http.NewRequest("DELETE", urls, body)
38256 if err != nil {
38257 return nil, err
38258 }
38259 req.Header = reqHeaders
38260 googleapi.Expand(req.URL, map[string]string{
38261 "name": c.name,
38262 })
38263 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38264 }
38265
38266
38267
38268
38269
38270
38271
38272 func (c *ProjectsLocationsAgentIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38273 gensupport.SetOptions(c.urlParams_, opts...)
38274 res, err := c.doRequest("json")
38275 if res != nil && res.StatusCode == http.StatusNotModified {
38276 if res.Body != nil {
38277 res.Body.Close()
38278 }
38279 return nil, gensupport.WrapError(&googleapi.Error{
38280 Code: res.StatusCode,
38281 Header: res.Header,
38282 })
38283 }
38284 if err != nil {
38285 return nil, err
38286 }
38287 defer googleapi.CloseBody(res)
38288 if err := googleapi.CheckResponse(res); err != nil {
38289 return nil, gensupport.WrapError(err)
38290 }
38291 ret := &GoogleProtobufEmpty{
38292 ServerResponse: googleapi.ServerResponse{
38293 Header: res.Header,
38294 HTTPStatusCode: res.StatusCode,
38295 },
38296 }
38297 target := &ret
38298 if err := gensupport.DecodeResponse(target, res); err != nil {
38299 return nil, err
38300 }
38301 return ret, nil
38302 }
38303
38304 type ProjectsLocationsAgentIntentsGetCall struct {
38305 s *Service
38306 name string
38307 urlParams_ gensupport.URLParams
38308 ifNoneMatch_ string
38309 ctx_ context.Context
38310 header_ http.Header
38311 }
38312
38313
38314
38315
38316
38317 func (r *ProjectsLocationsAgentIntentsService) Get(name string) *ProjectsLocationsAgentIntentsGetCall {
38318 c := &ProjectsLocationsAgentIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38319 c.name = name
38320 return c
38321 }
38322
38323
38324
38325
38326
38327
38328
38329
38330
38331
38332
38333 func (c *ProjectsLocationsAgentIntentsGetCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsGetCall {
38334 c.urlParams_.Set("intentView", intentView)
38335 return c
38336 }
38337
38338
38339
38340
38341
38342
38343 func (c *ProjectsLocationsAgentIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsGetCall {
38344 c.urlParams_.Set("languageCode", languageCode)
38345 return c
38346 }
38347
38348
38349
38350
38351 func (c *ProjectsLocationsAgentIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsGetCall {
38352 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38353 return c
38354 }
38355
38356
38357
38358
38359 func (c *ProjectsLocationsAgentIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsGetCall {
38360 c.ifNoneMatch_ = entityTag
38361 return c
38362 }
38363
38364
38365 func (c *ProjectsLocationsAgentIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsGetCall {
38366 c.ctx_ = ctx
38367 return c
38368 }
38369
38370
38371
38372 func (c *ProjectsLocationsAgentIntentsGetCall) Header() http.Header {
38373 if c.header_ == nil {
38374 c.header_ = make(http.Header)
38375 }
38376 return c.header_
38377 }
38378
38379 func (c *ProjectsLocationsAgentIntentsGetCall) doRequest(alt string) (*http.Response, error) {
38380 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38381 if c.ifNoneMatch_ != "" {
38382 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38383 }
38384 var body io.Reader = nil
38385 c.urlParams_.Set("alt", alt)
38386 c.urlParams_.Set("prettyPrint", "false")
38387 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38388 urls += "?" + c.urlParams_.Encode()
38389 req, err := http.NewRequest("GET", urls, body)
38390 if err != nil {
38391 return nil, err
38392 }
38393 req.Header = reqHeaders
38394 googleapi.Expand(req.URL, map[string]string{
38395 "name": c.name,
38396 })
38397 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38398 }
38399
38400
38401
38402
38403
38404
38405
38406 func (c *ProjectsLocationsAgentIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
38407 gensupport.SetOptions(c.urlParams_, opts...)
38408 res, err := c.doRequest("json")
38409 if res != nil && res.StatusCode == http.StatusNotModified {
38410 if res.Body != nil {
38411 res.Body.Close()
38412 }
38413 return nil, gensupport.WrapError(&googleapi.Error{
38414 Code: res.StatusCode,
38415 Header: res.Header,
38416 })
38417 }
38418 if err != nil {
38419 return nil, err
38420 }
38421 defer googleapi.CloseBody(res)
38422 if err := googleapi.CheckResponse(res); err != nil {
38423 return nil, gensupport.WrapError(err)
38424 }
38425 ret := &GoogleCloudDialogflowV2beta1Intent{
38426 ServerResponse: googleapi.ServerResponse{
38427 Header: res.Header,
38428 HTTPStatusCode: res.StatusCode,
38429 },
38430 }
38431 target := &ret
38432 if err := gensupport.DecodeResponse(target, res); err != nil {
38433 return nil, err
38434 }
38435 return ret, nil
38436 }
38437
38438 type ProjectsLocationsAgentIntentsListCall struct {
38439 s *Service
38440 parent string
38441 urlParams_ gensupport.URLParams
38442 ifNoneMatch_ string
38443 ctx_ context.Context
38444 header_ http.Header
38445 }
38446
38447
38448
38449
38450
38451
38452
38453
38454 func (r *ProjectsLocationsAgentIntentsService) List(parent string) *ProjectsLocationsAgentIntentsListCall {
38455 c := &ProjectsLocationsAgentIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38456 c.parent = parent
38457 return c
38458 }
38459
38460
38461
38462
38463
38464
38465
38466
38467
38468
38469
38470 func (c *ProjectsLocationsAgentIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsListCall {
38471 c.urlParams_.Set("intentView", intentView)
38472 return c
38473 }
38474
38475
38476
38477
38478
38479
38480 func (c *ProjectsLocationsAgentIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsListCall {
38481 c.urlParams_.Set("languageCode", languageCode)
38482 return c
38483 }
38484
38485
38486
38487 func (c *ProjectsLocationsAgentIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentIntentsListCall {
38488 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
38489 return c
38490 }
38491
38492
38493
38494 func (c *ProjectsLocationsAgentIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentIntentsListCall {
38495 c.urlParams_.Set("pageToken", pageToken)
38496 return c
38497 }
38498
38499
38500
38501
38502 func (c *ProjectsLocationsAgentIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsListCall {
38503 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38504 return c
38505 }
38506
38507
38508
38509
38510 func (c *ProjectsLocationsAgentIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentIntentsListCall {
38511 c.ifNoneMatch_ = entityTag
38512 return c
38513 }
38514
38515
38516 func (c *ProjectsLocationsAgentIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsListCall {
38517 c.ctx_ = ctx
38518 return c
38519 }
38520
38521
38522
38523 func (c *ProjectsLocationsAgentIntentsListCall) Header() http.Header {
38524 if c.header_ == nil {
38525 c.header_ = make(http.Header)
38526 }
38527 return c.header_
38528 }
38529
38530 func (c *ProjectsLocationsAgentIntentsListCall) doRequest(alt string) (*http.Response, error) {
38531 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38532 if c.ifNoneMatch_ != "" {
38533 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
38534 }
38535 var body io.Reader = nil
38536 c.urlParams_.Set("alt", alt)
38537 c.urlParams_.Set("prettyPrint", "false")
38538 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/intents")
38539 urls += "?" + c.urlParams_.Encode()
38540 req, err := http.NewRequest("GET", urls, body)
38541 if err != nil {
38542 return nil, err
38543 }
38544 req.Header = reqHeaders
38545 googleapi.Expand(req.URL, map[string]string{
38546 "parent": c.parent,
38547 })
38548 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38549 }
38550
38551
38552
38553
38554
38555
38556
38557 func (c *ProjectsLocationsAgentIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListIntentsResponse, error) {
38558 gensupport.SetOptions(c.urlParams_, opts...)
38559 res, err := c.doRequest("json")
38560 if res != nil && res.StatusCode == http.StatusNotModified {
38561 if res.Body != nil {
38562 res.Body.Close()
38563 }
38564 return nil, gensupport.WrapError(&googleapi.Error{
38565 Code: res.StatusCode,
38566 Header: res.Header,
38567 })
38568 }
38569 if err != nil {
38570 return nil, err
38571 }
38572 defer googleapi.CloseBody(res)
38573 if err := googleapi.CheckResponse(res); err != nil {
38574 return nil, gensupport.WrapError(err)
38575 }
38576 ret := &GoogleCloudDialogflowV2beta1ListIntentsResponse{
38577 ServerResponse: googleapi.ServerResponse{
38578 Header: res.Header,
38579 HTTPStatusCode: res.StatusCode,
38580 },
38581 }
38582 target := &ret
38583 if err := gensupport.DecodeResponse(target, res); err != nil {
38584 return nil, err
38585 }
38586 return ret, nil
38587 }
38588
38589
38590
38591
38592 func (c *ProjectsLocationsAgentIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListIntentsResponse) error) error {
38593 c.ctx_ = ctx
38594 defer c.PageToken(c.urlParams_.Get("pageToken"))
38595 for {
38596 x, err := c.Do()
38597 if err != nil {
38598 return err
38599 }
38600 if err := f(x); err != nil {
38601 return err
38602 }
38603 if x.NextPageToken == "" {
38604 return nil
38605 }
38606 c.PageToken(x.NextPageToken)
38607 }
38608 }
38609
38610 type ProjectsLocationsAgentIntentsPatchCall struct {
38611 s *Service
38612 nameid string
38613 googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent
38614 urlParams_ gensupport.URLParams
38615 ctx_ context.Context
38616 header_ http.Header
38617 }
38618
38619
38620
38621
38622
38623
38624
38625
38626
38627 func (r *ProjectsLocationsAgentIntentsService) Patch(nameid string, googleclouddialogflowv2beta1intent *GoogleCloudDialogflowV2beta1Intent) *ProjectsLocationsAgentIntentsPatchCall {
38628 c := &ProjectsLocationsAgentIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38629 c.nameid = nameid
38630 c.googleclouddialogflowv2beta1intent = googleclouddialogflowv2beta1intent
38631 return c
38632 }
38633
38634
38635
38636
38637
38638
38639
38640
38641
38642
38643
38644 func (c *ProjectsLocationsAgentIntentsPatchCall) IntentView(intentView string) *ProjectsLocationsAgentIntentsPatchCall {
38645 c.urlParams_.Set("intentView", intentView)
38646 return c
38647 }
38648
38649
38650
38651
38652
38653
38654 func (c *ProjectsLocationsAgentIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentIntentsPatchCall {
38655 c.urlParams_.Set("languageCode", languageCode)
38656 return c
38657 }
38658
38659
38660
38661 func (c *ProjectsLocationsAgentIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentIntentsPatchCall {
38662 c.urlParams_.Set("updateMask", updateMask)
38663 return c
38664 }
38665
38666
38667
38668
38669 func (c *ProjectsLocationsAgentIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentIntentsPatchCall {
38670 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38671 return c
38672 }
38673
38674
38675 func (c *ProjectsLocationsAgentIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentIntentsPatchCall {
38676 c.ctx_ = ctx
38677 return c
38678 }
38679
38680
38681
38682 func (c *ProjectsLocationsAgentIntentsPatchCall) Header() http.Header {
38683 if c.header_ == nil {
38684 c.header_ = make(http.Header)
38685 }
38686 return c.header_
38687 }
38688
38689 func (c *ProjectsLocationsAgentIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
38690 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38691 var body io.Reader = nil
38692 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1intent)
38693 if err != nil {
38694 return nil, err
38695 }
38696 c.urlParams_.Set("alt", alt)
38697 c.urlParams_.Set("prettyPrint", "false")
38698 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
38699 urls += "?" + c.urlParams_.Encode()
38700 req, err := http.NewRequest("PATCH", urls, body)
38701 if err != nil {
38702 return nil, err
38703 }
38704 req.Header = reqHeaders
38705 googleapi.Expand(req.URL, map[string]string{
38706 "name": c.nameid,
38707 })
38708 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38709 }
38710
38711
38712
38713
38714
38715
38716
38717 func (c *ProjectsLocationsAgentIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Intent, error) {
38718 gensupport.SetOptions(c.urlParams_, opts...)
38719 res, err := c.doRequest("json")
38720 if res != nil && res.StatusCode == http.StatusNotModified {
38721 if res.Body != nil {
38722 res.Body.Close()
38723 }
38724 return nil, gensupport.WrapError(&googleapi.Error{
38725 Code: res.StatusCode,
38726 Header: res.Header,
38727 })
38728 }
38729 if err != nil {
38730 return nil, err
38731 }
38732 defer googleapi.CloseBody(res)
38733 if err := googleapi.CheckResponse(res); err != nil {
38734 return nil, gensupport.WrapError(err)
38735 }
38736 ret := &GoogleCloudDialogflowV2beta1Intent{
38737 ServerResponse: googleapi.ServerResponse{
38738 Header: res.Header,
38739 HTTPStatusCode: res.StatusCode,
38740 },
38741 }
38742 target := &ret
38743 if err := gensupport.DecodeResponse(target, res); err != nil {
38744 return nil, err
38745 }
38746 return ret, nil
38747 }
38748
38749 type ProjectsLocationsAgentSessionsDeleteContextsCall struct {
38750 s *Service
38751 parent string
38752 urlParams_ gensupport.URLParams
38753 ctx_ context.Context
38754 header_ http.Header
38755 }
38756
38757
38758
38759
38760
38761
38762
38763
38764
38765
38766
38767 func (r *ProjectsLocationsAgentSessionsService) DeleteContexts(parent string) *ProjectsLocationsAgentSessionsDeleteContextsCall {
38768 c := &ProjectsLocationsAgentSessionsDeleteContextsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38769 c.parent = parent
38770 return c
38771 }
38772
38773
38774
38775
38776 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDeleteContextsCall {
38777 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38778 return c
38779 }
38780
38781
38782 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDeleteContextsCall {
38783 c.ctx_ = ctx
38784 return c
38785 }
38786
38787
38788
38789 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Header() http.Header {
38790 if c.header_ == nil {
38791 c.header_ = make(http.Header)
38792 }
38793 return c.header_
38794 }
38795
38796 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) doRequest(alt string) (*http.Response, error) {
38797 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
38798 var body io.Reader = nil
38799 c.urlParams_.Set("alt", alt)
38800 c.urlParams_.Set("prettyPrint", "false")
38801 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
38802 urls += "?" + c.urlParams_.Encode()
38803 req, err := http.NewRequest("DELETE", urls, body)
38804 if err != nil {
38805 return nil, err
38806 }
38807 req.Header = reqHeaders
38808 googleapi.Expand(req.URL, map[string]string{
38809 "parent": c.parent,
38810 })
38811 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38812 }
38813
38814
38815
38816
38817
38818
38819
38820 func (c *ProjectsLocationsAgentSessionsDeleteContextsCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
38821 gensupport.SetOptions(c.urlParams_, opts...)
38822 res, err := c.doRequest("json")
38823 if res != nil && res.StatusCode == http.StatusNotModified {
38824 if res.Body != nil {
38825 res.Body.Close()
38826 }
38827 return nil, gensupport.WrapError(&googleapi.Error{
38828 Code: res.StatusCode,
38829 Header: res.Header,
38830 })
38831 }
38832 if err != nil {
38833 return nil, err
38834 }
38835 defer googleapi.CloseBody(res)
38836 if err := googleapi.CheckResponse(res); err != nil {
38837 return nil, gensupport.WrapError(err)
38838 }
38839 ret := &GoogleProtobufEmpty{
38840 ServerResponse: googleapi.ServerResponse{
38841 Header: res.Header,
38842 HTTPStatusCode: res.StatusCode,
38843 },
38844 }
38845 target := &ret
38846 if err := gensupport.DecodeResponse(target, res); err != nil {
38847 return nil, err
38848 }
38849 return ret, nil
38850 }
38851
38852 type ProjectsLocationsAgentSessionsDetectIntentCall struct {
38853 s *Service
38854 sessionid string
38855 googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest
38856 urlParams_ gensupport.URLParams
38857 ctx_ context.Context
38858 header_ http.Header
38859 }
38860
38861
38862
38863
38864
38865
38866
38867
38868
38869
38870
38871
38872
38873
38874
38875
38876
38877
38878
38879
38880
38881
38882
38883
38884
38885
38886
38887 func (r *ProjectsLocationsAgentSessionsService) DetectIntent(sessionid string, googleclouddialogflowv2beta1detectintentrequest *GoogleCloudDialogflowV2beta1DetectIntentRequest) *ProjectsLocationsAgentSessionsDetectIntentCall {
38888 c := &ProjectsLocationsAgentSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38889 c.sessionid = sessionid
38890 c.googleclouddialogflowv2beta1detectintentrequest = googleclouddialogflowv2beta1detectintentrequest
38891 return c
38892 }
38893
38894
38895
38896
38897 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsDetectIntentCall {
38898 c.urlParams_.Set("fields", googleapi.CombineFields(s))
38899 return c
38900 }
38901
38902
38903 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsDetectIntentCall {
38904 c.ctx_ = ctx
38905 return c
38906 }
38907
38908
38909
38910 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Header() http.Header {
38911 if c.header_ == nil {
38912 c.header_ = make(http.Header)
38913 }
38914 return c.header_
38915 }
38916
38917 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
38918 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
38919 var body io.Reader = nil
38920 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1detectintentrequest)
38921 if err != nil {
38922 return nil, err
38923 }
38924 c.urlParams_.Set("alt", alt)
38925 c.urlParams_.Set("prettyPrint", "false")
38926 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+session}:detectIntent")
38927 urls += "?" + c.urlParams_.Encode()
38928 req, err := http.NewRequest("POST", urls, body)
38929 if err != nil {
38930 return nil, err
38931 }
38932 req.Header = reqHeaders
38933 googleapi.Expand(req.URL, map[string]string{
38934 "session": c.sessionid,
38935 })
38936 return gensupport.SendRequest(c.ctx_, c.s.client, req)
38937 }
38938
38939
38940
38941
38942
38943
38944
38945 func (c *ProjectsLocationsAgentSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1DetectIntentResponse, error) {
38946 gensupport.SetOptions(c.urlParams_, opts...)
38947 res, err := c.doRequest("json")
38948 if res != nil && res.StatusCode == http.StatusNotModified {
38949 if res.Body != nil {
38950 res.Body.Close()
38951 }
38952 return nil, gensupport.WrapError(&googleapi.Error{
38953 Code: res.StatusCode,
38954 Header: res.Header,
38955 })
38956 }
38957 if err != nil {
38958 return nil, err
38959 }
38960 defer googleapi.CloseBody(res)
38961 if err := googleapi.CheckResponse(res); err != nil {
38962 return nil, gensupport.WrapError(err)
38963 }
38964 ret := &GoogleCloudDialogflowV2beta1DetectIntentResponse{
38965 ServerResponse: googleapi.ServerResponse{
38966 Header: res.Header,
38967 HTTPStatusCode: res.StatusCode,
38968 },
38969 }
38970 target := &ret
38971 if err := gensupport.DecodeResponse(target, res); err != nil {
38972 return nil, err
38973 }
38974 return ret, nil
38975 }
38976
38977 type ProjectsLocationsAgentSessionsContextsCreateCall struct {
38978 s *Service
38979 parent string
38980 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
38981 urlParams_ gensupport.URLParams
38982 ctx_ context.Context
38983 header_ http.Header
38984 }
38985
38986
38987
38988
38989
38990
38991
38992
38993
38994
38995
38996 func (r *ProjectsLocationsAgentSessionsContextsService) Create(parent string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
38997 c := &ProjectsLocationsAgentSessionsContextsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
38998 c.parent = parent
38999 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
39000 return c
39001 }
39002
39003
39004
39005
39006 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsCreateCall {
39007 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39008 return c
39009 }
39010
39011
39012 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsCreateCall {
39013 c.ctx_ = ctx
39014 return c
39015 }
39016
39017
39018
39019 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Header() http.Header {
39020 if c.header_ == nil {
39021 c.header_ = make(http.Header)
39022 }
39023 return c.header_
39024 }
39025
39026 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) doRequest(alt string) (*http.Response, error) {
39027 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39028 var body io.Reader = nil
39029 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
39030 if err != nil {
39031 return nil, err
39032 }
39033 c.urlParams_.Set("alt", alt)
39034 c.urlParams_.Set("prettyPrint", "false")
39035 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
39036 urls += "?" + c.urlParams_.Encode()
39037 req, err := http.NewRequest("POST", urls, body)
39038 if err != nil {
39039 return nil, err
39040 }
39041 req.Header = reqHeaders
39042 googleapi.Expand(req.URL, map[string]string{
39043 "parent": c.parent,
39044 })
39045 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39046 }
39047
39048
39049
39050
39051
39052
39053
39054 func (c *ProjectsLocationsAgentSessionsContextsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
39055 gensupport.SetOptions(c.urlParams_, opts...)
39056 res, err := c.doRequest("json")
39057 if res != nil && res.StatusCode == http.StatusNotModified {
39058 if res.Body != nil {
39059 res.Body.Close()
39060 }
39061 return nil, gensupport.WrapError(&googleapi.Error{
39062 Code: res.StatusCode,
39063 Header: res.Header,
39064 })
39065 }
39066 if err != nil {
39067 return nil, err
39068 }
39069 defer googleapi.CloseBody(res)
39070 if err := googleapi.CheckResponse(res); err != nil {
39071 return nil, gensupport.WrapError(err)
39072 }
39073 ret := &GoogleCloudDialogflowV2beta1Context{
39074 ServerResponse: googleapi.ServerResponse{
39075 Header: res.Header,
39076 HTTPStatusCode: res.StatusCode,
39077 },
39078 }
39079 target := &ret
39080 if err := gensupport.DecodeResponse(target, res); err != nil {
39081 return nil, err
39082 }
39083 return ret, nil
39084 }
39085
39086 type ProjectsLocationsAgentSessionsContextsDeleteCall struct {
39087 s *Service
39088 name string
39089 urlParams_ gensupport.URLParams
39090 ctx_ context.Context
39091 header_ http.Header
39092 }
39093
39094
39095
39096
39097
39098
39099
39100
39101
39102
39103
39104 func (r *ProjectsLocationsAgentSessionsContextsService) Delete(name string) *ProjectsLocationsAgentSessionsContextsDeleteCall {
39105 c := &ProjectsLocationsAgentSessionsContextsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39106 c.name = name
39107 return c
39108 }
39109
39110
39111
39112
39113 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsDeleteCall {
39114 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39115 return c
39116 }
39117
39118
39119 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsDeleteCall {
39120 c.ctx_ = ctx
39121 return c
39122 }
39123
39124
39125
39126 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Header() http.Header {
39127 if c.header_ == nil {
39128 c.header_ = make(http.Header)
39129 }
39130 return c.header_
39131 }
39132
39133 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) doRequest(alt string) (*http.Response, error) {
39134 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39135 var body io.Reader = nil
39136 c.urlParams_.Set("alt", alt)
39137 c.urlParams_.Set("prettyPrint", "false")
39138 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39139 urls += "?" + c.urlParams_.Encode()
39140 req, err := http.NewRequest("DELETE", urls, body)
39141 if err != nil {
39142 return nil, err
39143 }
39144 req.Header = reqHeaders
39145 googleapi.Expand(req.URL, map[string]string{
39146 "name": c.name,
39147 })
39148 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39149 }
39150
39151
39152
39153
39154
39155
39156
39157 func (c *ProjectsLocationsAgentSessionsContextsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
39158 gensupport.SetOptions(c.urlParams_, opts...)
39159 res, err := c.doRequest("json")
39160 if res != nil && res.StatusCode == http.StatusNotModified {
39161 if res.Body != nil {
39162 res.Body.Close()
39163 }
39164 return nil, gensupport.WrapError(&googleapi.Error{
39165 Code: res.StatusCode,
39166 Header: res.Header,
39167 })
39168 }
39169 if err != nil {
39170 return nil, err
39171 }
39172 defer googleapi.CloseBody(res)
39173 if err := googleapi.CheckResponse(res); err != nil {
39174 return nil, gensupport.WrapError(err)
39175 }
39176 ret := &GoogleProtobufEmpty{
39177 ServerResponse: googleapi.ServerResponse{
39178 Header: res.Header,
39179 HTTPStatusCode: res.StatusCode,
39180 },
39181 }
39182 target := &ret
39183 if err := gensupport.DecodeResponse(target, res); err != nil {
39184 return nil, err
39185 }
39186 return ret, nil
39187 }
39188
39189 type ProjectsLocationsAgentSessionsContextsGetCall struct {
39190 s *Service
39191 name string
39192 urlParams_ gensupport.URLParams
39193 ifNoneMatch_ string
39194 ctx_ context.Context
39195 header_ http.Header
39196 }
39197
39198
39199
39200
39201
39202
39203
39204
39205
39206
39207
39208 func (r *ProjectsLocationsAgentSessionsContextsService) Get(name string) *ProjectsLocationsAgentSessionsContextsGetCall {
39209 c := &ProjectsLocationsAgentSessionsContextsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39210 c.name = name
39211 return c
39212 }
39213
39214
39215
39216
39217 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsGetCall {
39218 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39219 return c
39220 }
39221
39222
39223
39224
39225 func (c *ProjectsLocationsAgentSessionsContextsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsGetCall {
39226 c.ifNoneMatch_ = entityTag
39227 return c
39228 }
39229
39230
39231 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsGetCall {
39232 c.ctx_ = ctx
39233 return c
39234 }
39235
39236
39237
39238 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Header() http.Header {
39239 if c.header_ == nil {
39240 c.header_ = make(http.Header)
39241 }
39242 return c.header_
39243 }
39244
39245 func (c *ProjectsLocationsAgentSessionsContextsGetCall) doRequest(alt string) (*http.Response, error) {
39246 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39247 if c.ifNoneMatch_ != "" {
39248 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39249 }
39250 var body io.Reader = nil
39251 c.urlParams_.Set("alt", alt)
39252 c.urlParams_.Set("prettyPrint", "false")
39253 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39254 urls += "?" + c.urlParams_.Encode()
39255 req, err := http.NewRequest("GET", urls, body)
39256 if err != nil {
39257 return nil, err
39258 }
39259 req.Header = reqHeaders
39260 googleapi.Expand(req.URL, map[string]string{
39261 "name": c.name,
39262 })
39263 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39264 }
39265
39266
39267
39268
39269
39270
39271
39272 func (c *ProjectsLocationsAgentSessionsContextsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
39273 gensupport.SetOptions(c.urlParams_, opts...)
39274 res, err := c.doRequest("json")
39275 if res != nil && res.StatusCode == http.StatusNotModified {
39276 if res.Body != nil {
39277 res.Body.Close()
39278 }
39279 return nil, gensupport.WrapError(&googleapi.Error{
39280 Code: res.StatusCode,
39281 Header: res.Header,
39282 })
39283 }
39284 if err != nil {
39285 return nil, err
39286 }
39287 defer googleapi.CloseBody(res)
39288 if err := googleapi.CheckResponse(res); err != nil {
39289 return nil, gensupport.WrapError(err)
39290 }
39291 ret := &GoogleCloudDialogflowV2beta1Context{
39292 ServerResponse: googleapi.ServerResponse{
39293 Header: res.Header,
39294 HTTPStatusCode: res.StatusCode,
39295 },
39296 }
39297 target := &ret
39298 if err := gensupport.DecodeResponse(target, res); err != nil {
39299 return nil, err
39300 }
39301 return ret, nil
39302 }
39303
39304 type ProjectsLocationsAgentSessionsContextsListCall struct {
39305 s *Service
39306 parent string
39307 urlParams_ gensupport.URLParams
39308 ifNoneMatch_ string
39309 ctx_ context.Context
39310 header_ http.Header
39311 }
39312
39313
39314
39315
39316
39317
39318
39319
39320
39321
39322 func (r *ProjectsLocationsAgentSessionsContextsService) List(parent string) *ProjectsLocationsAgentSessionsContextsListCall {
39323 c := &ProjectsLocationsAgentSessionsContextsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39324 c.parent = parent
39325 return c
39326 }
39327
39328
39329
39330 func (c *ProjectsLocationsAgentSessionsContextsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsContextsListCall {
39331 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39332 return c
39333 }
39334
39335
39336
39337 func (c *ProjectsLocationsAgentSessionsContextsListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsContextsListCall {
39338 c.urlParams_.Set("pageToken", pageToken)
39339 return c
39340 }
39341
39342
39343
39344
39345 func (c *ProjectsLocationsAgentSessionsContextsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsListCall {
39346 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39347 return c
39348 }
39349
39350
39351
39352
39353 func (c *ProjectsLocationsAgentSessionsContextsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsContextsListCall {
39354 c.ifNoneMatch_ = entityTag
39355 return c
39356 }
39357
39358
39359 func (c *ProjectsLocationsAgentSessionsContextsListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsListCall {
39360 c.ctx_ = ctx
39361 return c
39362 }
39363
39364
39365
39366 func (c *ProjectsLocationsAgentSessionsContextsListCall) Header() http.Header {
39367 if c.header_ == nil {
39368 c.header_ = make(http.Header)
39369 }
39370 return c.header_
39371 }
39372
39373 func (c *ProjectsLocationsAgentSessionsContextsListCall) doRequest(alt string) (*http.Response, error) {
39374 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39375 if c.ifNoneMatch_ != "" {
39376 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39377 }
39378 var body io.Reader = nil
39379 c.urlParams_.Set("alt", alt)
39380 c.urlParams_.Set("prettyPrint", "false")
39381 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/contexts")
39382 urls += "?" + c.urlParams_.Encode()
39383 req, err := http.NewRequest("GET", urls, body)
39384 if err != nil {
39385 return nil, err
39386 }
39387 req.Header = reqHeaders
39388 googleapi.Expand(req.URL, map[string]string{
39389 "parent": c.parent,
39390 })
39391 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39392 }
39393
39394
39395
39396
39397
39398
39399
39400 func (c *ProjectsLocationsAgentSessionsContextsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListContextsResponse, error) {
39401 gensupport.SetOptions(c.urlParams_, opts...)
39402 res, err := c.doRequest("json")
39403 if res != nil && res.StatusCode == http.StatusNotModified {
39404 if res.Body != nil {
39405 res.Body.Close()
39406 }
39407 return nil, gensupport.WrapError(&googleapi.Error{
39408 Code: res.StatusCode,
39409 Header: res.Header,
39410 })
39411 }
39412 if err != nil {
39413 return nil, err
39414 }
39415 defer googleapi.CloseBody(res)
39416 if err := googleapi.CheckResponse(res); err != nil {
39417 return nil, gensupport.WrapError(err)
39418 }
39419 ret := &GoogleCloudDialogflowV2beta1ListContextsResponse{
39420 ServerResponse: googleapi.ServerResponse{
39421 Header: res.Header,
39422 HTTPStatusCode: res.StatusCode,
39423 },
39424 }
39425 target := &ret
39426 if err := gensupport.DecodeResponse(target, res); err != nil {
39427 return nil, err
39428 }
39429 return ret, nil
39430 }
39431
39432
39433
39434
39435 func (c *ProjectsLocationsAgentSessionsContextsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListContextsResponse) error) error {
39436 c.ctx_ = ctx
39437 defer c.PageToken(c.urlParams_.Get("pageToken"))
39438 for {
39439 x, err := c.Do()
39440 if err != nil {
39441 return err
39442 }
39443 if err := f(x); err != nil {
39444 return err
39445 }
39446 if x.NextPageToken == "" {
39447 return nil
39448 }
39449 c.PageToken(x.NextPageToken)
39450 }
39451 }
39452
39453 type ProjectsLocationsAgentSessionsContextsPatchCall struct {
39454 s *Service
39455 nameid string
39456 googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context
39457 urlParams_ gensupport.URLParams
39458 ctx_ context.Context
39459 header_ http.Header
39460 }
39461
39462
39463
39464
39465
39466
39467
39468
39469
39470
39471
39472
39473
39474
39475
39476 func (r *ProjectsLocationsAgentSessionsContextsService) Patch(nameid string, googleclouddialogflowv2beta1context *GoogleCloudDialogflowV2beta1Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
39477 c := &ProjectsLocationsAgentSessionsContextsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39478 c.nameid = nameid
39479 c.googleclouddialogflowv2beta1context = googleclouddialogflowv2beta1context
39480 return c
39481 }
39482
39483
39484
39485 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsContextsPatchCall {
39486 c.urlParams_.Set("updateMask", updateMask)
39487 return c
39488 }
39489
39490
39491
39492
39493 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsContextsPatchCall {
39494 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39495 return c
39496 }
39497
39498
39499 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsContextsPatchCall {
39500 c.ctx_ = ctx
39501 return c
39502 }
39503
39504
39505
39506 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Header() http.Header {
39507 if c.header_ == nil {
39508 c.header_ = make(http.Header)
39509 }
39510 return c.header_
39511 }
39512
39513 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) doRequest(alt string) (*http.Response, error) {
39514 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39515 var body io.Reader = nil
39516 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1context)
39517 if err != nil {
39518 return nil, err
39519 }
39520 c.urlParams_.Set("alt", alt)
39521 c.urlParams_.Set("prettyPrint", "false")
39522 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39523 urls += "?" + c.urlParams_.Encode()
39524 req, err := http.NewRequest("PATCH", urls, body)
39525 if err != nil {
39526 return nil, err
39527 }
39528 req.Header = reqHeaders
39529 googleapi.Expand(req.URL, map[string]string{
39530 "name": c.nameid,
39531 })
39532 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39533 }
39534
39535
39536
39537
39538
39539
39540
39541 func (c *ProjectsLocationsAgentSessionsContextsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Context, error) {
39542 gensupport.SetOptions(c.urlParams_, opts...)
39543 res, err := c.doRequest("json")
39544 if res != nil && res.StatusCode == http.StatusNotModified {
39545 if res.Body != nil {
39546 res.Body.Close()
39547 }
39548 return nil, gensupport.WrapError(&googleapi.Error{
39549 Code: res.StatusCode,
39550 Header: res.Header,
39551 })
39552 }
39553 if err != nil {
39554 return nil, err
39555 }
39556 defer googleapi.CloseBody(res)
39557 if err := googleapi.CheckResponse(res); err != nil {
39558 return nil, gensupport.WrapError(err)
39559 }
39560 ret := &GoogleCloudDialogflowV2beta1Context{
39561 ServerResponse: googleapi.ServerResponse{
39562 Header: res.Header,
39563 HTTPStatusCode: res.StatusCode,
39564 },
39565 }
39566 target := &ret
39567 if err := gensupport.DecodeResponse(target, res); err != nil {
39568 return nil, err
39569 }
39570 return ret, nil
39571 }
39572
39573 type ProjectsLocationsAgentSessionsEntityTypesCreateCall struct {
39574 s *Service
39575 parent string
39576 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
39577 urlParams_ gensupport.URLParams
39578 ctx_ context.Context
39579 header_ http.Header
39580 }
39581
39582
39583
39584
39585
39586
39587
39588
39589
39590
39591
39592
39593
39594
39595 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Create(parent string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
39596 c := &ProjectsLocationsAgentSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39597 c.parent = parent
39598 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
39599 return c
39600 }
39601
39602
39603
39604
39605 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
39606 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39607 return c
39608 }
39609
39610
39611 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesCreateCall {
39612 c.ctx_ = ctx
39613 return c
39614 }
39615
39616
39617
39618 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Header() http.Header {
39619 if c.header_ == nil {
39620 c.header_ = make(http.Header)
39621 }
39622 return c.header_
39623 }
39624
39625 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
39626 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
39627 var body io.Reader = nil
39628 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
39629 if err != nil {
39630 return nil, err
39631 }
39632 c.urlParams_.Set("alt", alt)
39633 c.urlParams_.Set("prettyPrint", "false")
39634 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
39635 urls += "?" + c.urlParams_.Encode()
39636 req, err := http.NewRequest("POST", urls, body)
39637 if err != nil {
39638 return nil, err
39639 }
39640 req.Header = reqHeaders
39641 googleapi.Expand(req.URL, map[string]string{
39642 "parent": c.parent,
39643 })
39644 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39645 }
39646
39647
39648
39649
39650
39651
39652
39653 func (c *ProjectsLocationsAgentSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
39654 gensupport.SetOptions(c.urlParams_, opts...)
39655 res, err := c.doRequest("json")
39656 if res != nil && res.StatusCode == http.StatusNotModified {
39657 if res.Body != nil {
39658 res.Body.Close()
39659 }
39660 return nil, gensupport.WrapError(&googleapi.Error{
39661 Code: res.StatusCode,
39662 Header: res.Header,
39663 })
39664 }
39665 if err != nil {
39666 return nil, err
39667 }
39668 defer googleapi.CloseBody(res)
39669 if err := googleapi.CheckResponse(res); err != nil {
39670 return nil, gensupport.WrapError(err)
39671 }
39672 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
39673 ServerResponse: googleapi.ServerResponse{
39674 Header: res.Header,
39675 HTTPStatusCode: res.StatusCode,
39676 },
39677 }
39678 target := &ret
39679 if err := gensupport.DecodeResponse(target, res); err != nil {
39680 return nil, err
39681 }
39682 return ret, nil
39683 }
39684
39685 type ProjectsLocationsAgentSessionsEntityTypesDeleteCall struct {
39686 s *Service
39687 name string
39688 urlParams_ gensupport.URLParams
39689 ctx_ context.Context
39690 header_ http.Header
39691 }
39692
39693
39694
39695
39696
39697
39698
39699
39700
39701
39702
39703
39704
39705 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
39706 c := &ProjectsLocationsAgentSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39707 c.name = name
39708 return c
39709 }
39710
39711
39712
39713
39714 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
39715 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39716 return c
39717 }
39718
39719
39720 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesDeleteCall {
39721 c.ctx_ = ctx
39722 return c
39723 }
39724
39725
39726
39727 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Header() http.Header {
39728 if c.header_ == nil {
39729 c.header_ = make(http.Header)
39730 }
39731 return c.header_
39732 }
39733
39734 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
39735 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39736 var body io.Reader = nil
39737 c.urlParams_.Set("alt", alt)
39738 c.urlParams_.Set("prettyPrint", "false")
39739 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39740 urls += "?" + c.urlParams_.Encode()
39741 req, err := http.NewRequest("DELETE", urls, body)
39742 if err != nil {
39743 return nil, err
39744 }
39745 req.Header = reqHeaders
39746 googleapi.Expand(req.URL, map[string]string{
39747 "name": c.name,
39748 })
39749 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39750 }
39751
39752
39753
39754
39755
39756
39757
39758 func (c *ProjectsLocationsAgentSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
39759 gensupport.SetOptions(c.urlParams_, opts...)
39760 res, err := c.doRequest("json")
39761 if res != nil && res.StatusCode == http.StatusNotModified {
39762 if res.Body != nil {
39763 res.Body.Close()
39764 }
39765 return nil, gensupport.WrapError(&googleapi.Error{
39766 Code: res.StatusCode,
39767 Header: res.Header,
39768 })
39769 }
39770 if err != nil {
39771 return nil, err
39772 }
39773 defer googleapi.CloseBody(res)
39774 if err := googleapi.CheckResponse(res); err != nil {
39775 return nil, gensupport.WrapError(err)
39776 }
39777 ret := &GoogleProtobufEmpty{
39778 ServerResponse: googleapi.ServerResponse{
39779 Header: res.Header,
39780 HTTPStatusCode: res.StatusCode,
39781 },
39782 }
39783 target := &ret
39784 if err := gensupport.DecodeResponse(target, res); err != nil {
39785 return nil, err
39786 }
39787 return ret, nil
39788 }
39789
39790 type ProjectsLocationsAgentSessionsEntityTypesGetCall struct {
39791 s *Service
39792 name string
39793 urlParams_ gensupport.URLParams
39794 ifNoneMatch_ string
39795 ctx_ context.Context
39796 header_ http.Header
39797 }
39798
39799
39800
39801
39802
39803
39804
39805
39806
39807
39808
39809
39810
39811 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
39812 c := &ProjectsLocationsAgentSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39813 c.name = name
39814 return c
39815 }
39816
39817
39818
39819
39820 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
39821 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39822 return c
39823 }
39824
39825
39826
39827
39828 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
39829 c.ifNoneMatch_ = entityTag
39830 return c
39831 }
39832
39833
39834 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesGetCall {
39835 c.ctx_ = ctx
39836 return c
39837 }
39838
39839
39840
39841 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Header() http.Header {
39842 if c.header_ == nil {
39843 c.header_ = make(http.Header)
39844 }
39845 return c.header_
39846 }
39847
39848 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
39849 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39850 if c.ifNoneMatch_ != "" {
39851 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39852 }
39853 var body io.Reader = nil
39854 c.urlParams_.Set("alt", alt)
39855 c.urlParams_.Set("prettyPrint", "false")
39856 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
39857 urls += "?" + c.urlParams_.Encode()
39858 req, err := http.NewRequest("GET", urls, body)
39859 if err != nil {
39860 return nil, err
39861 }
39862 req.Header = reqHeaders
39863 googleapi.Expand(req.URL, map[string]string{
39864 "name": c.name,
39865 })
39866 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39867 }
39868
39869
39870
39871
39872
39873
39874
39875 func (c *ProjectsLocationsAgentSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
39876 gensupport.SetOptions(c.urlParams_, opts...)
39877 res, err := c.doRequest("json")
39878 if res != nil && res.StatusCode == http.StatusNotModified {
39879 if res.Body != nil {
39880 res.Body.Close()
39881 }
39882 return nil, gensupport.WrapError(&googleapi.Error{
39883 Code: res.StatusCode,
39884 Header: res.Header,
39885 })
39886 }
39887 if err != nil {
39888 return nil, err
39889 }
39890 defer googleapi.CloseBody(res)
39891 if err := googleapi.CheckResponse(res); err != nil {
39892 return nil, gensupport.WrapError(err)
39893 }
39894 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
39895 ServerResponse: googleapi.ServerResponse{
39896 Header: res.Header,
39897 HTTPStatusCode: res.StatusCode,
39898 },
39899 }
39900 target := &ret
39901 if err := gensupport.DecodeResponse(target, res); err != nil {
39902 return nil, err
39903 }
39904 return ret, nil
39905 }
39906
39907 type ProjectsLocationsAgentSessionsEntityTypesListCall struct {
39908 s *Service
39909 parent string
39910 urlParams_ gensupport.URLParams
39911 ifNoneMatch_ string
39912 ctx_ context.Context
39913 header_ http.Header
39914 }
39915
39916
39917
39918
39919
39920
39921
39922
39923
39924
39925
39926
39927
39928
39929 func (r *ProjectsLocationsAgentSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
39930 c := &ProjectsLocationsAgentSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
39931 c.parent = parent
39932 return c
39933 }
39934
39935
39936
39937 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentSessionsEntityTypesListCall {
39938 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
39939 return c
39940 }
39941
39942
39943
39944 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
39945 c.urlParams_.Set("pageToken", pageToken)
39946 return c
39947 }
39948
39949
39950
39951
39952 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesListCall {
39953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
39954 return c
39955 }
39956
39957
39958
39959
39960 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentSessionsEntityTypesListCall {
39961 c.ifNoneMatch_ = entityTag
39962 return c
39963 }
39964
39965
39966 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesListCall {
39967 c.ctx_ = ctx
39968 return c
39969 }
39970
39971
39972
39973 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Header() http.Header {
39974 if c.header_ == nil {
39975 c.header_ = make(http.Header)
39976 }
39977 return c.header_
39978 }
39979
39980 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
39981 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
39982 if c.ifNoneMatch_ != "" {
39983 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
39984 }
39985 var body io.Reader = nil
39986 c.urlParams_.Set("alt", alt)
39987 c.urlParams_.Set("prettyPrint", "false")
39988 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/entityTypes")
39989 urls += "?" + c.urlParams_.Encode()
39990 req, err := http.NewRequest("GET", urls, body)
39991 if err != nil {
39992 return nil, err
39993 }
39994 req.Header = reqHeaders
39995 googleapi.Expand(req.URL, map[string]string{
39996 "parent": c.parent,
39997 })
39998 return gensupport.SendRequest(c.ctx_, c.s.client, req)
39999 }
40000
40001
40002
40003
40004
40005
40006
40007 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse, error) {
40008 gensupport.SetOptions(c.urlParams_, opts...)
40009 res, err := c.doRequest("json")
40010 if res != nil && res.StatusCode == http.StatusNotModified {
40011 if res.Body != nil {
40012 res.Body.Close()
40013 }
40014 return nil, gensupport.WrapError(&googleapi.Error{
40015 Code: res.StatusCode,
40016 Header: res.Header,
40017 })
40018 }
40019 if err != nil {
40020 return nil, err
40021 }
40022 defer googleapi.CloseBody(res)
40023 if err := googleapi.CheckResponse(res); err != nil {
40024 return nil, gensupport.WrapError(err)
40025 }
40026 ret := &GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse{
40027 ServerResponse: googleapi.ServerResponse{
40028 Header: res.Header,
40029 HTTPStatusCode: res.StatusCode,
40030 },
40031 }
40032 target := &ret
40033 if err := gensupport.DecodeResponse(target, res); err != nil {
40034 return nil, err
40035 }
40036 return ret, nil
40037 }
40038
40039
40040
40041
40042 func (c *ProjectsLocationsAgentSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListSessionEntityTypesResponse) error) error {
40043 c.ctx_ = ctx
40044 defer c.PageToken(c.urlParams_.Get("pageToken"))
40045 for {
40046 x, err := c.Do()
40047 if err != nil {
40048 return err
40049 }
40050 if err := f(x); err != nil {
40051 return err
40052 }
40053 if x.NextPageToken == "" {
40054 return nil
40055 }
40056 c.PageToken(x.NextPageToken)
40057 }
40058 }
40059
40060 type ProjectsLocationsAgentSessionsEntityTypesPatchCall struct {
40061 s *Service
40062 nameid string
40063 googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType
40064 urlParams_ gensupport.URLParams
40065 ctx_ context.Context
40066 header_ http.Header
40067 }
40068
40069
40070
40071
40072
40073
40074
40075
40076
40077
40078
40079
40080
40081
40082
40083 func (r *ProjectsLocationsAgentSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowv2beta1sessionentitytype *GoogleCloudDialogflowV2beta1SessionEntityType) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40084 c := &ProjectsLocationsAgentSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40085 c.nameid = nameid
40086 c.googleclouddialogflowv2beta1sessionentitytype = googleclouddialogflowv2beta1sessionentitytype
40087 return c
40088 }
40089
40090
40091
40092 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40093 c.urlParams_.Set("updateMask", updateMask)
40094 return c
40095 }
40096
40097
40098
40099
40100 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40101 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40102 return c
40103 }
40104
40105
40106 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentSessionsEntityTypesPatchCall {
40107 c.ctx_ = ctx
40108 return c
40109 }
40110
40111
40112
40113 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Header() http.Header {
40114 if c.header_ == nil {
40115 c.header_ = make(http.Header)
40116 }
40117 return c.header_
40118 }
40119
40120 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
40121 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40122 var body io.Reader = nil
40123 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1sessionentitytype)
40124 if err != nil {
40125 return nil, err
40126 }
40127 c.urlParams_.Set("alt", alt)
40128 c.urlParams_.Set("prettyPrint", "false")
40129 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40130 urls += "?" + c.urlParams_.Encode()
40131 req, err := http.NewRequest("PATCH", urls, body)
40132 if err != nil {
40133 return nil, err
40134 }
40135 req.Header = reqHeaders
40136 googleapi.Expand(req.URL, map[string]string{
40137 "name": c.nameid,
40138 })
40139 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40140 }
40141
40142
40143
40144
40145
40146
40147
40148 func (c *ProjectsLocationsAgentSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SessionEntityType, error) {
40149 gensupport.SetOptions(c.urlParams_, opts...)
40150 res, err := c.doRequest("json")
40151 if res != nil && res.StatusCode == http.StatusNotModified {
40152 if res.Body != nil {
40153 res.Body.Close()
40154 }
40155 return nil, gensupport.WrapError(&googleapi.Error{
40156 Code: res.StatusCode,
40157 Header: res.Header,
40158 })
40159 }
40160 if err != nil {
40161 return nil, err
40162 }
40163 defer googleapi.CloseBody(res)
40164 if err := googleapi.CheckResponse(res); err != nil {
40165 return nil, gensupport.WrapError(err)
40166 }
40167 ret := &GoogleCloudDialogflowV2beta1SessionEntityType{
40168 ServerResponse: googleapi.ServerResponse{
40169 Header: res.Header,
40170 HTTPStatusCode: res.StatusCode,
40171 },
40172 }
40173 target := &ret
40174 if err := gensupport.DecodeResponse(target, res); err != nil {
40175 return nil, err
40176 }
40177 return ret, nil
40178 }
40179
40180 type ProjectsLocationsAgentVersionsCreateCall struct {
40181 s *Service
40182 parent string
40183 googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
40184 urlParams_ gensupport.URLParams
40185 ctx_ context.Context
40186 header_ http.Header
40187 }
40188
40189
40190
40191
40192
40193
40194 func (r *ProjectsLocationsAgentVersionsService) Create(parent string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsCreateCall {
40195 c := &ProjectsLocationsAgentVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40196 c.parent = parent
40197 c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
40198 return c
40199 }
40200
40201
40202
40203
40204 func (c *ProjectsLocationsAgentVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsCreateCall {
40205 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40206 return c
40207 }
40208
40209
40210 func (c *ProjectsLocationsAgentVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsCreateCall {
40211 c.ctx_ = ctx
40212 return c
40213 }
40214
40215
40216
40217 func (c *ProjectsLocationsAgentVersionsCreateCall) Header() http.Header {
40218 if c.header_ == nil {
40219 c.header_ = make(http.Header)
40220 }
40221 return c.header_
40222 }
40223
40224 func (c *ProjectsLocationsAgentVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
40225 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40226 var body io.Reader = nil
40227 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
40228 if err != nil {
40229 return nil, err
40230 }
40231 c.urlParams_.Set("alt", alt)
40232 c.urlParams_.Set("prettyPrint", "false")
40233 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
40234 urls += "?" + c.urlParams_.Encode()
40235 req, err := http.NewRequest("POST", urls, body)
40236 if err != nil {
40237 return nil, err
40238 }
40239 req.Header = reqHeaders
40240 googleapi.Expand(req.URL, map[string]string{
40241 "parent": c.parent,
40242 })
40243 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40244 }
40245
40246
40247
40248
40249
40250
40251
40252 func (c *ProjectsLocationsAgentVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
40253 gensupport.SetOptions(c.urlParams_, opts...)
40254 res, err := c.doRequest("json")
40255 if res != nil && res.StatusCode == http.StatusNotModified {
40256 if res.Body != nil {
40257 res.Body.Close()
40258 }
40259 return nil, gensupport.WrapError(&googleapi.Error{
40260 Code: res.StatusCode,
40261 Header: res.Header,
40262 })
40263 }
40264 if err != nil {
40265 return nil, err
40266 }
40267 defer googleapi.CloseBody(res)
40268 if err := googleapi.CheckResponse(res); err != nil {
40269 return nil, gensupport.WrapError(err)
40270 }
40271 ret := &GoogleCloudDialogflowV2beta1Version{
40272 ServerResponse: googleapi.ServerResponse{
40273 Header: res.Header,
40274 HTTPStatusCode: res.StatusCode,
40275 },
40276 }
40277 target := &ret
40278 if err := gensupport.DecodeResponse(target, res); err != nil {
40279 return nil, err
40280 }
40281 return ret, nil
40282 }
40283
40284 type ProjectsLocationsAgentVersionsDeleteCall struct {
40285 s *Service
40286 name string
40287 urlParams_ gensupport.URLParams
40288 ctx_ context.Context
40289 header_ http.Header
40290 }
40291
40292
40293
40294
40295
40296 func (r *ProjectsLocationsAgentVersionsService) Delete(name string) *ProjectsLocationsAgentVersionsDeleteCall {
40297 c := &ProjectsLocationsAgentVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40298 c.name = name
40299 return c
40300 }
40301
40302
40303
40304
40305 func (c *ProjectsLocationsAgentVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsDeleteCall {
40306 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40307 return c
40308 }
40309
40310
40311 func (c *ProjectsLocationsAgentVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsDeleteCall {
40312 c.ctx_ = ctx
40313 return c
40314 }
40315
40316
40317
40318 func (c *ProjectsLocationsAgentVersionsDeleteCall) Header() http.Header {
40319 if c.header_ == nil {
40320 c.header_ = make(http.Header)
40321 }
40322 return c.header_
40323 }
40324
40325 func (c *ProjectsLocationsAgentVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
40326 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40327 var body io.Reader = nil
40328 c.urlParams_.Set("alt", alt)
40329 c.urlParams_.Set("prettyPrint", "false")
40330 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40331 urls += "?" + c.urlParams_.Encode()
40332 req, err := http.NewRequest("DELETE", urls, body)
40333 if err != nil {
40334 return nil, err
40335 }
40336 req.Header = reqHeaders
40337 googleapi.Expand(req.URL, map[string]string{
40338 "name": c.name,
40339 })
40340 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40341 }
40342
40343
40344
40345
40346
40347
40348
40349 func (c *ProjectsLocationsAgentVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
40350 gensupport.SetOptions(c.urlParams_, opts...)
40351 res, err := c.doRequest("json")
40352 if res != nil && res.StatusCode == http.StatusNotModified {
40353 if res.Body != nil {
40354 res.Body.Close()
40355 }
40356 return nil, gensupport.WrapError(&googleapi.Error{
40357 Code: res.StatusCode,
40358 Header: res.Header,
40359 })
40360 }
40361 if err != nil {
40362 return nil, err
40363 }
40364 defer googleapi.CloseBody(res)
40365 if err := googleapi.CheckResponse(res); err != nil {
40366 return nil, gensupport.WrapError(err)
40367 }
40368 ret := &GoogleProtobufEmpty{
40369 ServerResponse: googleapi.ServerResponse{
40370 Header: res.Header,
40371 HTTPStatusCode: res.StatusCode,
40372 },
40373 }
40374 target := &ret
40375 if err := gensupport.DecodeResponse(target, res); err != nil {
40376 return nil, err
40377 }
40378 return ret, nil
40379 }
40380
40381 type ProjectsLocationsAgentVersionsGetCall struct {
40382 s *Service
40383 name string
40384 urlParams_ gensupport.URLParams
40385 ifNoneMatch_ string
40386 ctx_ context.Context
40387 header_ http.Header
40388 }
40389
40390
40391
40392
40393
40394 func (r *ProjectsLocationsAgentVersionsService) Get(name string) *ProjectsLocationsAgentVersionsGetCall {
40395 c := &ProjectsLocationsAgentVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40396 c.name = name
40397 return c
40398 }
40399
40400
40401
40402
40403 func (c *ProjectsLocationsAgentVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsGetCall {
40404 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40405 return c
40406 }
40407
40408
40409
40410
40411 func (c *ProjectsLocationsAgentVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsGetCall {
40412 c.ifNoneMatch_ = entityTag
40413 return c
40414 }
40415
40416
40417 func (c *ProjectsLocationsAgentVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsGetCall {
40418 c.ctx_ = ctx
40419 return c
40420 }
40421
40422
40423
40424 func (c *ProjectsLocationsAgentVersionsGetCall) Header() http.Header {
40425 if c.header_ == nil {
40426 c.header_ = make(http.Header)
40427 }
40428 return c.header_
40429 }
40430
40431 func (c *ProjectsLocationsAgentVersionsGetCall) doRequest(alt string) (*http.Response, error) {
40432 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40433 if c.ifNoneMatch_ != "" {
40434 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40435 }
40436 var body io.Reader = nil
40437 c.urlParams_.Set("alt", alt)
40438 c.urlParams_.Set("prettyPrint", "false")
40439 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40440 urls += "?" + c.urlParams_.Encode()
40441 req, err := http.NewRequest("GET", urls, body)
40442 if err != nil {
40443 return nil, err
40444 }
40445 req.Header = reqHeaders
40446 googleapi.Expand(req.URL, map[string]string{
40447 "name": c.name,
40448 })
40449 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40450 }
40451
40452
40453
40454
40455
40456
40457
40458 func (c *ProjectsLocationsAgentVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
40459 gensupport.SetOptions(c.urlParams_, opts...)
40460 res, err := c.doRequest("json")
40461 if res != nil && res.StatusCode == http.StatusNotModified {
40462 if res.Body != nil {
40463 res.Body.Close()
40464 }
40465 return nil, gensupport.WrapError(&googleapi.Error{
40466 Code: res.StatusCode,
40467 Header: res.Header,
40468 })
40469 }
40470 if err != nil {
40471 return nil, err
40472 }
40473 defer googleapi.CloseBody(res)
40474 if err := googleapi.CheckResponse(res); err != nil {
40475 return nil, gensupport.WrapError(err)
40476 }
40477 ret := &GoogleCloudDialogflowV2beta1Version{
40478 ServerResponse: googleapi.ServerResponse{
40479 Header: res.Header,
40480 HTTPStatusCode: res.StatusCode,
40481 },
40482 }
40483 target := &ret
40484 if err := gensupport.DecodeResponse(target, res); err != nil {
40485 return nil, err
40486 }
40487 return ret, nil
40488 }
40489
40490 type ProjectsLocationsAgentVersionsListCall struct {
40491 s *Service
40492 parent string
40493 urlParams_ gensupport.URLParams
40494 ifNoneMatch_ string
40495 ctx_ context.Context
40496 header_ http.Header
40497 }
40498
40499
40500
40501
40502
40503 func (r *ProjectsLocationsAgentVersionsService) List(parent string) *ProjectsLocationsAgentVersionsListCall {
40504 c := &ProjectsLocationsAgentVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40505 c.parent = parent
40506 return c
40507 }
40508
40509
40510
40511 func (c *ProjectsLocationsAgentVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentVersionsListCall {
40512 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40513 return c
40514 }
40515
40516
40517
40518 func (c *ProjectsLocationsAgentVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentVersionsListCall {
40519 c.urlParams_.Set("pageToken", pageToken)
40520 return c
40521 }
40522
40523
40524
40525
40526 func (c *ProjectsLocationsAgentVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsListCall {
40527 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40528 return c
40529 }
40530
40531
40532
40533
40534 func (c *ProjectsLocationsAgentVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentVersionsListCall {
40535 c.ifNoneMatch_ = entityTag
40536 return c
40537 }
40538
40539
40540 func (c *ProjectsLocationsAgentVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsListCall {
40541 c.ctx_ = ctx
40542 return c
40543 }
40544
40545
40546
40547 func (c *ProjectsLocationsAgentVersionsListCall) Header() http.Header {
40548 if c.header_ == nil {
40549 c.header_ = make(http.Header)
40550 }
40551 return c.header_
40552 }
40553
40554 func (c *ProjectsLocationsAgentVersionsListCall) doRequest(alt string) (*http.Response, error) {
40555 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40556 if c.ifNoneMatch_ != "" {
40557 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40558 }
40559 var body io.Reader = nil
40560 c.urlParams_.Set("alt", alt)
40561 c.urlParams_.Set("prettyPrint", "false")
40562 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/versions")
40563 urls += "?" + c.urlParams_.Encode()
40564 req, err := http.NewRequest("GET", urls, body)
40565 if err != nil {
40566 return nil, err
40567 }
40568 req.Header = reqHeaders
40569 googleapi.Expand(req.URL, map[string]string{
40570 "parent": c.parent,
40571 })
40572 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40573 }
40574
40575
40576
40577
40578
40579
40580
40581 func (c *ProjectsLocationsAgentVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListVersionsResponse, error) {
40582 gensupport.SetOptions(c.urlParams_, opts...)
40583 res, err := c.doRequest("json")
40584 if res != nil && res.StatusCode == http.StatusNotModified {
40585 if res.Body != nil {
40586 res.Body.Close()
40587 }
40588 return nil, gensupport.WrapError(&googleapi.Error{
40589 Code: res.StatusCode,
40590 Header: res.Header,
40591 })
40592 }
40593 if err != nil {
40594 return nil, err
40595 }
40596 defer googleapi.CloseBody(res)
40597 if err := googleapi.CheckResponse(res); err != nil {
40598 return nil, gensupport.WrapError(err)
40599 }
40600 ret := &GoogleCloudDialogflowV2beta1ListVersionsResponse{
40601 ServerResponse: googleapi.ServerResponse{
40602 Header: res.Header,
40603 HTTPStatusCode: res.StatusCode,
40604 },
40605 }
40606 target := &ret
40607 if err := gensupport.DecodeResponse(target, res); err != nil {
40608 return nil, err
40609 }
40610 return ret, nil
40611 }
40612
40613
40614
40615
40616 func (c *ProjectsLocationsAgentVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListVersionsResponse) error) error {
40617 c.ctx_ = ctx
40618 defer c.PageToken(c.urlParams_.Get("pageToken"))
40619 for {
40620 x, err := c.Do()
40621 if err != nil {
40622 return err
40623 }
40624 if err := f(x); err != nil {
40625 return err
40626 }
40627 if x.NextPageToken == "" {
40628 return nil
40629 }
40630 c.PageToken(x.NextPageToken)
40631 }
40632 }
40633
40634 type ProjectsLocationsAgentVersionsPatchCall struct {
40635 s *Service
40636 nameid string
40637 googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version
40638 urlParams_ gensupport.URLParams
40639 ctx_ context.Context
40640 header_ http.Header
40641 }
40642
40643
40644
40645
40646
40647
40648
40649
40650 func (r *ProjectsLocationsAgentVersionsService) Patch(nameid string, googleclouddialogflowv2beta1version *GoogleCloudDialogflowV2beta1Version) *ProjectsLocationsAgentVersionsPatchCall {
40651 c := &ProjectsLocationsAgentVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40652 c.nameid = nameid
40653 c.googleclouddialogflowv2beta1version = googleclouddialogflowv2beta1version
40654 return c
40655 }
40656
40657
40658
40659 func (c *ProjectsLocationsAgentVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentVersionsPatchCall {
40660 c.urlParams_.Set("updateMask", updateMask)
40661 return c
40662 }
40663
40664
40665
40666
40667 func (c *ProjectsLocationsAgentVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentVersionsPatchCall {
40668 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40669 return c
40670 }
40671
40672
40673 func (c *ProjectsLocationsAgentVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentVersionsPatchCall {
40674 c.ctx_ = ctx
40675 return c
40676 }
40677
40678
40679
40680 func (c *ProjectsLocationsAgentVersionsPatchCall) Header() http.Header {
40681 if c.header_ == nil {
40682 c.header_ = make(http.Header)
40683 }
40684 return c.header_
40685 }
40686
40687 func (c *ProjectsLocationsAgentVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
40688 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
40689 var body io.Reader = nil
40690 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1version)
40691 if err != nil {
40692 return nil, err
40693 }
40694 c.urlParams_.Set("alt", alt)
40695 c.urlParams_.Set("prettyPrint", "false")
40696 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40697 urls += "?" + c.urlParams_.Encode()
40698 req, err := http.NewRequest("PATCH", urls, body)
40699 if err != nil {
40700 return nil, err
40701 }
40702 req.Header = reqHeaders
40703 googleapi.Expand(req.URL, map[string]string{
40704 "name": c.nameid,
40705 })
40706 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40707 }
40708
40709
40710
40711
40712
40713
40714
40715 func (c *ProjectsLocationsAgentVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Version, error) {
40716 gensupport.SetOptions(c.urlParams_, opts...)
40717 res, err := c.doRequest("json")
40718 if res != nil && res.StatusCode == http.StatusNotModified {
40719 if res.Body != nil {
40720 res.Body.Close()
40721 }
40722 return nil, gensupport.WrapError(&googleapi.Error{
40723 Code: res.StatusCode,
40724 Header: res.Header,
40725 })
40726 }
40727 if err != nil {
40728 return nil, err
40729 }
40730 defer googleapi.CloseBody(res)
40731 if err := googleapi.CheckResponse(res); err != nil {
40732 return nil, gensupport.WrapError(err)
40733 }
40734 ret := &GoogleCloudDialogflowV2beta1Version{
40735 ServerResponse: googleapi.ServerResponse{
40736 Header: res.Header,
40737 HTTPStatusCode: res.StatusCode,
40738 },
40739 }
40740 target := &ret
40741 if err := gensupport.DecodeResponse(target, res); err != nil {
40742 return nil, err
40743 }
40744 return ret, nil
40745 }
40746
40747 type ProjectsLocationsAnswerRecordsGetCall struct {
40748 s *Service
40749 name string
40750 urlParams_ gensupport.URLParams
40751 ifNoneMatch_ string
40752 ctx_ context.Context
40753 header_ http.Header
40754 }
40755
40756
40757
40758
40759
40760 func (r *ProjectsLocationsAnswerRecordsService) Get(name string) *ProjectsLocationsAnswerRecordsGetCall {
40761 c := &ProjectsLocationsAnswerRecordsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40762 c.name = name
40763 return c
40764 }
40765
40766
40767
40768
40769 func (c *ProjectsLocationsAnswerRecordsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsGetCall {
40770 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40771 return c
40772 }
40773
40774
40775
40776
40777 func (c *ProjectsLocationsAnswerRecordsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsGetCall {
40778 c.ifNoneMatch_ = entityTag
40779 return c
40780 }
40781
40782
40783 func (c *ProjectsLocationsAnswerRecordsGetCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsGetCall {
40784 c.ctx_ = ctx
40785 return c
40786 }
40787
40788
40789
40790 func (c *ProjectsLocationsAnswerRecordsGetCall) Header() http.Header {
40791 if c.header_ == nil {
40792 c.header_ = make(http.Header)
40793 }
40794 return c.header_
40795 }
40796
40797 func (c *ProjectsLocationsAnswerRecordsGetCall) doRequest(alt string) (*http.Response, error) {
40798 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40799 if c.ifNoneMatch_ != "" {
40800 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40801 }
40802 var body io.Reader = nil
40803 c.urlParams_.Set("alt", alt)
40804 c.urlParams_.Set("prettyPrint", "false")
40805 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
40806 urls += "?" + c.urlParams_.Encode()
40807 req, err := http.NewRequest("GET", urls, body)
40808 if err != nil {
40809 return nil, err
40810 }
40811 req.Header = reqHeaders
40812 googleapi.Expand(req.URL, map[string]string{
40813 "name": c.name,
40814 })
40815 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40816 }
40817
40818
40819
40820
40821
40822
40823
40824 func (c *ProjectsLocationsAnswerRecordsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
40825 gensupport.SetOptions(c.urlParams_, opts...)
40826 res, err := c.doRequest("json")
40827 if res != nil && res.StatusCode == http.StatusNotModified {
40828 if res.Body != nil {
40829 res.Body.Close()
40830 }
40831 return nil, gensupport.WrapError(&googleapi.Error{
40832 Code: res.StatusCode,
40833 Header: res.Header,
40834 })
40835 }
40836 if err != nil {
40837 return nil, err
40838 }
40839 defer googleapi.CloseBody(res)
40840 if err := googleapi.CheckResponse(res); err != nil {
40841 return nil, gensupport.WrapError(err)
40842 }
40843 ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
40844 ServerResponse: googleapi.ServerResponse{
40845 Header: res.Header,
40846 HTTPStatusCode: res.StatusCode,
40847 },
40848 }
40849 target := &ret
40850 if err := gensupport.DecodeResponse(target, res); err != nil {
40851 return nil, err
40852 }
40853 return ret, nil
40854 }
40855
40856 type ProjectsLocationsAnswerRecordsListCall struct {
40857 s *Service
40858 parent string
40859 urlParams_ gensupport.URLParams
40860 ifNoneMatch_ string
40861 ctx_ context.Context
40862 header_ http.Header
40863 }
40864
40865
40866
40867
40868
40869
40870 func (r *ProjectsLocationsAnswerRecordsService) List(parent string) *ProjectsLocationsAnswerRecordsListCall {
40871 c := &ProjectsLocationsAnswerRecordsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
40872 c.parent = parent
40873 return c
40874 }
40875
40876
40877
40878
40879 func (c *ProjectsLocationsAnswerRecordsListCall) Filter(filter string) *ProjectsLocationsAnswerRecordsListCall {
40880 c.urlParams_.Set("filter", filter)
40881 return c
40882 }
40883
40884
40885
40886
40887 func (c *ProjectsLocationsAnswerRecordsListCall) PageSize(pageSize int64) *ProjectsLocationsAnswerRecordsListCall {
40888 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
40889 return c
40890 }
40891
40892
40893
40894
40895 func (c *ProjectsLocationsAnswerRecordsListCall) PageToken(pageToken string) *ProjectsLocationsAnswerRecordsListCall {
40896 c.urlParams_.Set("pageToken", pageToken)
40897 return c
40898 }
40899
40900
40901
40902
40903 func (c *ProjectsLocationsAnswerRecordsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsListCall {
40904 c.urlParams_.Set("fields", googleapi.CombineFields(s))
40905 return c
40906 }
40907
40908
40909
40910
40911 func (c *ProjectsLocationsAnswerRecordsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAnswerRecordsListCall {
40912 c.ifNoneMatch_ = entityTag
40913 return c
40914 }
40915
40916
40917 func (c *ProjectsLocationsAnswerRecordsListCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsListCall {
40918 c.ctx_ = ctx
40919 return c
40920 }
40921
40922
40923
40924 func (c *ProjectsLocationsAnswerRecordsListCall) Header() http.Header {
40925 if c.header_ == nil {
40926 c.header_ = make(http.Header)
40927 }
40928 return c.header_
40929 }
40930
40931 func (c *ProjectsLocationsAnswerRecordsListCall) doRequest(alt string) (*http.Response, error) {
40932 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
40933 if c.ifNoneMatch_ != "" {
40934 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
40935 }
40936 var body io.Reader = nil
40937 c.urlParams_.Set("alt", alt)
40938 c.urlParams_.Set("prettyPrint", "false")
40939 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/answerRecords")
40940 urls += "?" + c.urlParams_.Encode()
40941 req, err := http.NewRequest("GET", urls, body)
40942 if err != nil {
40943 return nil, err
40944 }
40945 req.Header = reqHeaders
40946 googleapi.Expand(req.URL, map[string]string{
40947 "parent": c.parent,
40948 })
40949 return gensupport.SendRequest(c.ctx_, c.s.client, req)
40950 }
40951
40952
40953
40954
40955
40956
40957
40958 func (c *ProjectsLocationsAnswerRecordsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse, error) {
40959 gensupport.SetOptions(c.urlParams_, opts...)
40960 res, err := c.doRequest("json")
40961 if res != nil && res.StatusCode == http.StatusNotModified {
40962 if res.Body != nil {
40963 res.Body.Close()
40964 }
40965 return nil, gensupport.WrapError(&googleapi.Error{
40966 Code: res.StatusCode,
40967 Header: res.Header,
40968 })
40969 }
40970 if err != nil {
40971 return nil, err
40972 }
40973 defer googleapi.CloseBody(res)
40974 if err := googleapi.CheckResponse(res); err != nil {
40975 return nil, gensupport.WrapError(err)
40976 }
40977 ret := &GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse{
40978 ServerResponse: googleapi.ServerResponse{
40979 Header: res.Header,
40980 HTTPStatusCode: res.StatusCode,
40981 },
40982 }
40983 target := &ret
40984 if err := gensupport.DecodeResponse(target, res); err != nil {
40985 return nil, err
40986 }
40987 return ret, nil
40988 }
40989
40990
40991
40992
40993 func (c *ProjectsLocationsAnswerRecordsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse) error) error {
40994 c.ctx_ = ctx
40995 defer c.PageToken(c.urlParams_.Get("pageToken"))
40996 for {
40997 x, err := c.Do()
40998 if err != nil {
40999 return err
41000 }
41001 if err := f(x); err != nil {
41002 return err
41003 }
41004 if x.NextPageToken == "" {
41005 return nil
41006 }
41007 c.PageToken(x.NextPageToken)
41008 }
41009 }
41010
41011 type ProjectsLocationsAnswerRecordsPatchCall struct {
41012 s *Service
41013 nameid string
41014 googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord
41015 urlParams_ gensupport.URLParams
41016 ctx_ context.Context
41017 header_ http.Header
41018 }
41019
41020
41021
41022
41023
41024
41025 func (r *ProjectsLocationsAnswerRecordsService) Patch(nameid string, googleclouddialogflowv2beta1answerrecord *GoogleCloudDialogflowV2beta1AnswerRecord) *ProjectsLocationsAnswerRecordsPatchCall {
41026 c := &ProjectsLocationsAnswerRecordsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41027 c.nameid = nameid
41028 c.googleclouddialogflowv2beta1answerrecord = googleclouddialogflowv2beta1answerrecord
41029 return c
41030 }
41031
41032
41033
41034 func (c *ProjectsLocationsAnswerRecordsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAnswerRecordsPatchCall {
41035 c.urlParams_.Set("updateMask", updateMask)
41036 return c
41037 }
41038
41039
41040
41041
41042 func (c *ProjectsLocationsAnswerRecordsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAnswerRecordsPatchCall {
41043 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41044 return c
41045 }
41046
41047
41048 func (c *ProjectsLocationsAnswerRecordsPatchCall) Context(ctx context.Context) *ProjectsLocationsAnswerRecordsPatchCall {
41049 c.ctx_ = ctx
41050 return c
41051 }
41052
41053
41054
41055 func (c *ProjectsLocationsAnswerRecordsPatchCall) Header() http.Header {
41056 if c.header_ == nil {
41057 c.header_ = make(http.Header)
41058 }
41059 return c.header_
41060 }
41061
41062 func (c *ProjectsLocationsAnswerRecordsPatchCall) doRequest(alt string) (*http.Response, error) {
41063 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41064 var body io.Reader = nil
41065 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1answerrecord)
41066 if err != nil {
41067 return nil, err
41068 }
41069 c.urlParams_.Set("alt", alt)
41070 c.urlParams_.Set("prettyPrint", "false")
41071 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41072 urls += "?" + c.urlParams_.Encode()
41073 req, err := http.NewRequest("PATCH", urls, body)
41074 if err != nil {
41075 return nil, err
41076 }
41077 req.Header = reqHeaders
41078 googleapi.Expand(req.URL, map[string]string{
41079 "name": c.nameid,
41080 })
41081 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41082 }
41083
41084
41085
41086
41087
41088
41089
41090 func (c *ProjectsLocationsAnswerRecordsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnswerRecord, error) {
41091 gensupport.SetOptions(c.urlParams_, opts...)
41092 res, err := c.doRequest("json")
41093 if res != nil && res.StatusCode == http.StatusNotModified {
41094 if res.Body != nil {
41095 res.Body.Close()
41096 }
41097 return nil, gensupport.WrapError(&googleapi.Error{
41098 Code: res.StatusCode,
41099 Header: res.Header,
41100 })
41101 }
41102 if err != nil {
41103 return nil, err
41104 }
41105 defer googleapi.CloseBody(res)
41106 if err := googleapi.CheckResponse(res); err != nil {
41107 return nil, gensupport.WrapError(err)
41108 }
41109 ret := &GoogleCloudDialogflowV2beta1AnswerRecord{
41110 ServerResponse: googleapi.ServerResponse{
41111 Header: res.Header,
41112 HTTPStatusCode: res.StatusCode,
41113 },
41114 }
41115 target := &ret
41116 if err := gensupport.DecodeResponse(target, res); err != nil {
41117 return nil, err
41118 }
41119 return ret, nil
41120 }
41121
41122 type ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall struct {
41123 s *Service
41124 conversationProfile string
41125 googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest
41126 urlParams_ gensupport.URLParams
41127 ctx_ context.Context
41128 header_ http.Header
41129 }
41130
41131
41132
41133
41134
41135
41136
41137
41138
41139
41140
41141
41142 func (r *ProjectsLocationsConversationProfilesService) ClearSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
41143 c := &ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41144 c.conversationProfile = conversationProfile
41145 c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest
41146 return c
41147 }
41148
41149
41150
41151
41152 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
41153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41154 return c
41155 }
41156
41157
41158 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall {
41159 c.ctx_ = ctx
41160 return c
41161 }
41162
41163
41164
41165 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Header() http.Header {
41166 if c.header_ == nil {
41167 c.header_ = make(http.Header)
41168 }
41169 return c.header_
41170 }
41171
41172 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
41173 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41174 var body io.Reader = nil
41175 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1clearsuggestionfeatureconfigrequest)
41176 if err != nil {
41177 return nil, err
41178 }
41179 c.urlParams_.Set("alt", alt)
41180 c.urlParams_.Set("prettyPrint", "false")
41181 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:clearSuggestionFeatureConfig")
41182 urls += "?" + c.urlParams_.Encode()
41183 req, err := http.NewRequest("POST", urls, body)
41184 if err != nil {
41185 return nil, err
41186 }
41187 req.Header = reqHeaders
41188 googleapi.Expand(req.URL, map[string]string{
41189 "conversationProfile": c.conversationProfile,
41190 })
41191 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41192 }
41193
41194
41195
41196
41197
41198
41199
41200 func (c *ProjectsLocationsConversationProfilesClearSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41201 gensupport.SetOptions(c.urlParams_, opts...)
41202 res, err := c.doRequest("json")
41203 if res != nil && res.StatusCode == http.StatusNotModified {
41204 if res.Body != nil {
41205 res.Body.Close()
41206 }
41207 return nil, gensupport.WrapError(&googleapi.Error{
41208 Code: res.StatusCode,
41209 Header: res.Header,
41210 })
41211 }
41212 if err != nil {
41213 return nil, err
41214 }
41215 defer googleapi.CloseBody(res)
41216 if err := googleapi.CheckResponse(res); err != nil {
41217 return nil, gensupport.WrapError(err)
41218 }
41219 ret := &GoogleLongrunningOperation{
41220 ServerResponse: googleapi.ServerResponse{
41221 Header: res.Header,
41222 HTTPStatusCode: res.StatusCode,
41223 },
41224 }
41225 target := &ret
41226 if err := gensupport.DecodeResponse(target, res); err != nil {
41227 return nil, err
41228 }
41229 return ret, nil
41230 }
41231
41232 type ProjectsLocationsConversationProfilesCreateCall struct {
41233 s *Service
41234 parent string
41235 googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
41236 urlParams_ gensupport.URLParams
41237 ctx_ context.Context
41238 header_ http.Header
41239 }
41240
41241
41242
41243
41244
41245
41246
41247
41248 func (r *ProjectsLocationsConversationProfilesService) Create(parent string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesCreateCall {
41249 c := &ProjectsLocationsConversationProfilesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41250 c.parent = parent
41251 c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
41252 return c
41253 }
41254
41255
41256
41257
41258 func (c *ProjectsLocationsConversationProfilesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesCreateCall {
41259 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41260 return c
41261 }
41262
41263
41264 func (c *ProjectsLocationsConversationProfilesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesCreateCall {
41265 c.ctx_ = ctx
41266 return c
41267 }
41268
41269
41270
41271 func (c *ProjectsLocationsConversationProfilesCreateCall) Header() http.Header {
41272 if c.header_ == nil {
41273 c.header_ = make(http.Header)
41274 }
41275 return c.header_
41276 }
41277
41278 func (c *ProjectsLocationsConversationProfilesCreateCall) doRequest(alt string) (*http.Response, error) {
41279 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41280 var body io.Reader = nil
41281 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
41282 if err != nil {
41283 return nil, err
41284 }
41285 c.urlParams_.Set("alt", alt)
41286 c.urlParams_.Set("prettyPrint", "false")
41287 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
41288 urls += "?" + c.urlParams_.Encode()
41289 req, err := http.NewRequest("POST", urls, body)
41290 if err != nil {
41291 return nil, err
41292 }
41293 req.Header = reqHeaders
41294 googleapi.Expand(req.URL, map[string]string{
41295 "parent": c.parent,
41296 })
41297 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41298 }
41299
41300
41301
41302
41303
41304
41305
41306 func (c *ProjectsLocationsConversationProfilesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
41307 gensupport.SetOptions(c.urlParams_, opts...)
41308 res, err := c.doRequest("json")
41309 if res != nil && res.StatusCode == http.StatusNotModified {
41310 if res.Body != nil {
41311 res.Body.Close()
41312 }
41313 return nil, gensupport.WrapError(&googleapi.Error{
41314 Code: res.StatusCode,
41315 Header: res.Header,
41316 })
41317 }
41318 if err != nil {
41319 return nil, err
41320 }
41321 defer googleapi.CloseBody(res)
41322 if err := googleapi.CheckResponse(res); err != nil {
41323 return nil, gensupport.WrapError(err)
41324 }
41325 ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
41326 ServerResponse: googleapi.ServerResponse{
41327 Header: res.Header,
41328 HTTPStatusCode: res.StatusCode,
41329 },
41330 }
41331 target := &ret
41332 if err := gensupport.DecodeResponse(target, res); err != nil {
41333 return nil, err
41334 }
41335 return ret, nil
41336 }
41337
41338 type ProjectsLocationsConversationProfilesDeleteCall struct {
41339 s *Service
41340 name string
41341 urlParams_ gensupport.URLParams
41342 ctx_ context.Context
41343 header_ http.Header
41344 }
41345
41346
41347
41348
41349
41350 func (r *ProjectsLocationsConversationProfilesService) Delete(name string) *ProjectsLocationsConversationProfilesDeleteCall {
41351 c := &ProjectsLocationsConversationProfilesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41352 c.name = name
41353 return c
41354 }
41355
41356
41357
41358
41359 func (c *ProjectsLocationsConversationProfilesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesDeleteCall {
41360 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41361 return c
41362 }
41363
41364
41365 func (c *ProjectsLocationsConversationProfilesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesDeleteCall {
41366 c.ctx_ = ctx
41367 return c
41368 }
41369
41370
41371
41372 func (c *ProjectsLocationsConversationProfilesDeleteCall) Header() http.Header {
41373 if c.header_ == nil {
41374 c.header_ = make(http.Header)
41375 }
41376 return c.header_
41377 }
41378
41379 func (c *ProjectsLocationsConversationProfilesDeleteCall) doRequest(alt string) (*http.Response, error) {
41380 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41381 var body io.Reader = nil
41382 c.urlParams_.Set("alt", alt)
41383 c.urlParams_.Set("prettyPrint", "false")
41384 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41385 urls += "?" + c.urlParams_.Encode()
41386 req, err := http.NewRequest("DELETE", urls, body)
41387 if err != nil {
41388 return nil, err
41389 }
41390 req.Header = reqHeaders
41391 googleapi.Expand(req.URL, map[string]string{
41392 "name": c.name,
41393 })
41394 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41395 }
41396
41397
41398
41399
41400
41401
41402
41403 func (c *ProjectsLocationsConversationProfilesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
41404 gensupport.SetOptions(c.urlParams_, opts...)
41405 res, err := c.doRequest("json")
41406 if res != nil && res.StatusCode == http.StatusNotModified {
41407 if res.Body != nil {
41408 res.Body.Close()
41409 }
41410 return nil, gensupport.WrapError(&googleapi.Error{
41411 Code: res.StatusCode,
41412 Header: res.Header,
41413 })
41414 }
41415 if err != nil {
41416 return nil, err
41417 }
41418 defer googleapi.CloseBody(res)
41419 if err := googleapi.CheckResponse(res); err != nil {
41420 return nil, gensupport.WrapError(err)
41421 }
41422 ret := &GoogleProtobufEmpty{
41423 ServerResponse: googleapi.ServerResponse{
41424 Header: res.Header,
41425 HTTPStatusCode: res.StatusCode,
41426 },
41427 }
41428 target := &ret
41429 if err := gensupport.DecodeResponse(target, res); err != nil {
41430 return nil, err
41431 }
41432 return ret, nil
41433 }
41434
41435 type ProjectsLocationsConversationProfilesGetCall struct {
41436 s *Service
41437 name string
41438 urlParams_ gensupport.URLParams
41439 ifNoneMatch_ string
41440 ctx_ context.Context
41441 header_ http.Header
41442 }
41443
41444
41445
41446
41447
41448 func (r *ProjectsLocationsConversationProfilesService) Get(name string) *ProjectsLocationsConversationProfilesGetCall {
41449 c := &ProjectsLocationsConversationProfilesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41450 c.name = name
41451 return c
41452 }
41453
41454
41455
41456
41457 func (c *ProjectsLocationsConversationProfilesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesGetCall {
41458 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41459 return c
41460 }
41461
41462
41463
41464
41465 func (c *ProjectsLocationsConversationProfilesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesGetCall {
41466 c.ifNoneMatch_ = entityTag
41467 return c
41468 }
41469
41470
41471 func (c *ProjectsLocationsConversationProfilesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesGetCall {
41472 c.ctx_ = ctx
41473 return c
41474 }
41475
41476
41477
41478 func (c *ProjectsLocationsConversationProfilesGetCall) Header() http.Header {
41479 if c.header_ == nil {
41480 c.header_ = make(http.Header)
41481 }
41482 return c.header_
41483 }
41484
41485 func (c *ProjectsLocationsConversationProfilesGetCall) doRequest(alt string) (*http.Response, error) {
41486 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41487 if c.ifNoneMatch_ != "" {
41488 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41489 }
41490 var body io.Reader = nil
41491 c.urlParams_.Set("alt", alt)
41492 c.urlParams_.Set("prettyPrint", "false")
41493 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41494 urls += "?" + c.urlParams_.Encode()
41495 req, err := http.NewRequest("GET", urls, body)
41496 if err != nil {
41497 return nil, err
41498 }
41499 req.Header = reqHeaders
41500 googleapi.Expand(req.URL, map[string]string{
41501 "name": c.name,
41502 })
41503 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41504 }
41505
41506
41507
41508
41509
41510
41511
41512 func (c *ProjectsLocationsConversationProfilesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
41513 gensupport.SetOptions(c.urlParams_, opts...)
41514 res, err := c.doRequest("json")
41515 if res != nil && res.StatusCode == http.StatusNotModified {
41516 if res.Body != nil {
41517 res.Body.Close()
41518 }
41519 return nil, gensupport.WrapError(&googleapi.Error{
41520 Code: res.StatusCode,
41521 Header: res.Header,
41522 })
41523 }
41524 if err != nil {
41525 return nil, err
41526 }
41527 defer googleapi.CloseBody(res)
41528 if err := googleapi.CheckResponse(res); err != nil {
41529 return nil, gensupport.WrapError(err)
41530 }
41531 ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
41532 ServerResponse: googleapi.ServerResponse{
41533 Header: res.Header,
41534 HTTPStatusCode: res.StatusCode,
41535 },
41536 }
41537 target := &ret
41538 if err := gensupport.DecodeResponse(target, res); err != nil {
41539 return nil, err
41540 }
41541 return ret, nil
41542 }
41543
41544 type ProjectsLocationsConversationProfilesListCall struct {
41545 s *Service
41546 parent string
41547 urlParams_ gensupport.URLParams
41548 ifNoneMatch_ string
41549 ctx_ context.Context
41550 header_ http.Header
41551 }
41552
41553
41554
41555
41556
41557
41558 func (r *ProjectsLocationsConversationProfilesService) List(parent string) *ProjectsLocationsConversationProfilesListCall {
41559 c := &ProjectsLocationsConversationProfilesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41560 c.parent = parent
41561 return c
41562 }
41563
41564
41565
41566 func (c *ProjectsLocationsConversationProfilesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationProfilesListCall {
41567 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
41568 return c
41569 }
41570
41571
41572
41573 func (c *ProjectsLocationsConversationProfilesListCall) PageToken(pageToken string) *ProjectsLocationsConversationProfilesListCall {
41574 c.urlParams_.Set("pageToken", pageToken)
41575 return c
41576 }
41577
41578
41579
41580
41581 func (c *ProjectsLocationsConversationProfilesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesListCall {
41582 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41583 return c
41584 }
41585
41586
41587
41588
41589 func (c *ProjectsLocationsConversationProfilesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationProfilesListCall {
41590 c.ifNoneMatch_ = entityTag
41591 return c
41592 }
41593
41594
41595 func (c *ProjectsLocationsConversationProfilesListCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesListCall {
41596 c.ctx_ = ctx
41597 return c
41598 }
41599
41600
41601
41602 func (c *ProjectsLocationsConversationProfilesListCall) Header() http.Header {
41603 if c.header_ == nil {
41604 c.header_ = make(http.Header)
41605 }
41606 return c.header_
41607 }
41608
41609 func (c *ProjectsLocationsConversationProfilesListCall) doRequest(alt string) (*http.Response, error) {
41610 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
41611 if c.ifNoneMatch_ != "" {
41612 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
41613 }
41614 var body io.Reader = nil
41615 c.urlParams_.Set("alt", alt)
41616 c.urlParams_.Set("prettyPrint", "false")
41617 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversationProfiles")
41618 urls += "?" + c.urlParams_.Encode()
41619 req, err := http.NewRequest("GET", urls, body)
41620 if err != nil {
41621 return nil, err
41622 }
41623 req.Header = reqHeaders
41624 googleapi.Expand(req.URL, map[string]string{
41625 "parent": c.parent,
41626 })
41627 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41628 }
41629
41630
41631
41632
41633
41634
41635
41636 func (c *ProjectsLocationsConversationProfilesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse, error) {
41637 gensupport.SetOptions(c.urlParams_, opts...)
41638 res, err := c.doRequest("json")
41639 if res != nil && res.StatusCode == http.StatusNotModified {
41640 if res.Body != nil {
41641 res.Body.Close()
41642 }
41643 return nil, gensupport.WrapError(&googleapi.Error{
41644 Code: res.StatusCode,
41645 Header: res.Header,
41646 })
41647 }
41648 if err != nil {
41649 return nil, err
41650 }
41651 defer googleapi.CloseBody(res)
41652 if err := googleapi.CheckResponse(res); err != nil {
41653 return nil, gensupport.WrapError(err)
41654 }
41655 ret := &GoogleCloudDialogflowV2beta1ListConversationProfilesResponse{
41656 ServerResponse: googleapi.ServerResponse{
41657 Header: res.Header,
41658 HTTPStatusCode: res.StatusCode,
41659 },
41660 }
41661 target := &ret
41662 if err := gensupport.DecodeResponse(target, res); err != nil {
41663 return nil, err
41664 }
41665 return ret, nil
41666 }
41667
41668
41669
41670
41671 func (c *ProjectsLocationsConversationProfilesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationProfilesResponse) error) error {
41672 c.ctx_ = ctx
41673 defer c.PageToken(c.urlParams_.Get("pageToken"))
41674 for {
41675 x, err := c.Do()
41676 if err != nil {
41677 return err
41678 }
41679 if err := f(x); err != nil {
41680 return err
41681 }
41682 if x.NextPageToken == "" {
41683 return nil
41684 }
41685 c.PageToken(x.NextPageToken)
41686 }
41687 }
41688
41689 type ProjectsLocationsConversationProfilesPatchCall struct {
41690 s *Service
41691 nameid string
41692 googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile
41693 urlParams_ gensupport.URLParams
41694 ctx_ context.Context
41695 header_ http.Header
41696 }
41697
41698
41699
41700
41701
41702
41703
41704
41705 func (r *ProjectsLocationsConversationProfilesService) Patch(nameid string, googleclouddialogflowv2beta1conversationprofile *GoogleCloudDialogflowV2beta1ConversationProfile) *ProjectsLocationsConversationProfilesPatchCall {
41706 c := &ProjectsLocationsConversationProfilesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41707 c.nameid = nameid
41708 c.googleclouddialogflowv2beta1conversationprofile = googleclouddialogflowv2beta1conversationprofile
41709 return c
41710 }
41711
41712
41713
41714 func (c *ProjectsLocationsConversationProfilesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationProfilesPatchCall {
41715 c.urlParams_.Set("updateMask", updateMask)
41716 return c
41717 }
41718
41719
41720
41721
41722 func (c *ProjectsLocationsConversationProfilesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesPatchCall {
41723 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41724 return c
41725 }
41726
41727
41728 func (c *ProjectsLocationsConversationProfilesPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesPatchCall {
41729 c.ctx_ = ctx
41730 return c
41731 }
41732
41733
41734
41735 func (c *ProjectsLocationsConversationProfilesPatchCall) Header() http.Header {
41736 if c.header_ == nil {
41737 c.header_ = make(http.Header)
41738 }
41739 return c.header_
41740 }
41741
41742 func (c *ProjectsLocationsConversationProfilesPatchCall) doRequest(alt string) (*http.Response, error) {
41743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41744 var body io.Reader = nil
41745 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversationprofile)
41746 if err != nil {
41747 return nil, err
41748 }
41749 c.urlParams_.Set("alt", alt)
41750 c.urlParams_.Set("prettyPrint", "false")
41751 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
41752 urls += "?" + c.urlParams_.Encode()
41753 req, err := http.NewRequest("PATCH", urls, body)
41754 if err != nil {
41755 return nil, err
41756 }
41757 req.Header = reqHeaders
41758 googleapi.Expand(req.URL, map[string]string{
41759 "name": c.nameid,
41760 })
41761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41762 }
41763
41764
41765
41766
41767
41768
41769
41770 func (c *ProjectsLocationsConversationProfilesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ConversationProfile, error) {
41771 gensupport.SetOptions(c.urlParams_, opts...)
41772 res, err := c.doRequest("json")
41773 if res != nil && res.StatusCode == http.StatusNotModified {
41774 if res.Body != nil {
41775 res.Body.Close()
41776 }
41777 return nil, gensupport.WrapError(&googleapi.Error{
41778 Code: res.StatusCode,
41779 Header: res.Header,
41780 })
41781 }
41782 if err != nil {
41783 return nil, err
41784 }
41785 defer googleapi.CloseBody(res)
41786 if err := googleapi.CheckResponse(res); err != nil {
41787 return nil, gensupport.WrapError(err)
41788 }
41789 ret := &GoogleCloudDialogflowV2beta1ConversationProfile{
41790 ServerResponse: googleapi.ServerResponse{
41791 Header: res.Header,
41792 HTTPStatusCode: res.StatusCode,
41793 },
41794 }
41795 target := &ret
41796 if err := gensupport.DecodeResponse(target, res); err != nil {
41797 return nil, err
41798 }
41799 return ret, nil
41800 }
41801
41802 type ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall struct {
41803 s *Service
41804 conversationProfile string
41805 googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest
41806 urlParams_ gensupport.URLParams
41807 ctx_ context.Context
41808 header_ http.Header
41809 }
41810
41811
41812
41813
41814
41815
41816
41817
41818
41819
41820
41821
41822
41823
41824
41825
41826
41827 func (r *ProjectsLocationsConversationProfilesService) SetSuggestionFeatureConfig(conversationProfile string, googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigRequest) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
41828 c := &ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41829 c.conversationProfile = conversationProfile
41830 c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest = googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest
41831 return c
41832 }
41833
41834
41835
41836
41837 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
41838 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41839 return c
41840 }
41841
41842
41843 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Context(ctx context.Context) *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall {
41844 c.ctx_ = ctx
41845 return c
41846 }
41847
41848
41849
41850 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Header() http.Header {
41851 if c.header_ == nil {
41852 c.header_ = make(http.Header)
41853 }
41854 return c.header_
41855 }
41856
41857 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) doRequest(alt string) (*http.Response, error) {
41858 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41859 var body io.Reader = nil
41860 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1setsuggestionfeatureconfigrequest)
41861 if err != nil {
41862 return nil, err
41863 }
41864 c.urlParams_.Set("alt", alt)
41865 c.urlParams_.Set("prettyPrint", "false")
41866 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversationProfile}:setSuggestionFeatureConfig")
41867 urls += "?" + c.urlParams_.Encode()
41868 req, err := http.NewRequest("POST", urls, body)
41869 if err != nil {
41870 return nil, err
41871 }
41872 req.Header = reqHeaders
41873 googleapi.Expand(req.URL, map[string]string{
41874 "conversationProfile": c.conversationProfile,
41875 })
41876 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41877 }
41878
41879
41880
41881
41882
41883
41884
41885 func (c *ProjectsLocationsConversationProfilesSetSuggestionFeatureConfigCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
41886 gensupport.SetOptions(c.urlParams_, opts...)
41887 res, err := c.doRequest("json")
41888 if res != nil && res.StatusCode == http.StatusNotModified {
41889 if res.Body != nil {
41890 res.Body.Close()
41891 }
41892 return nil, gensupport.WrapError(&googleapi.Error{
41893 Code: res.StatusCode,
41894 Header: res.Header,
41895 })
41896 }
41897 if err != nil {
41898 return nil, err
41899 }
41900 defer googleapi.CloseBody(res)
41901 if err := googleapi.CheckResponse(res); err != nil {
41902 return nil, gensupport.WrapError(err)
41903 }
41904 ret := &GoogleLongrunningOperation{
41905 ServerResponse: googleapi.ServerResponse{
41906 Header: res.Header,
41907 HTTPStatusCode: res.StatusCode,
41908 },
41909 }
41910 target := &ret
41911 if err := gensupport.DecodeResponse(target, res); err != nil {
41912 return nil, err
41913 }
41914 return ret, nil
41915 }
41916
41917 type ProjectsLocationsConversationsCompleteCall struct {
41918 s *Service
41919 nameid string
41920 googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest
41921 urlParams_ gensupport.URLParams
41922 ctx_ context.Context
41923 header_ http.Header
41924 }
41925
41926
41927
41928
41929
41930
41931 func (r *ProjectsLocationsConversationsService) Complete(nameid string, googleclouddialogflowv2beta1completeconversationrequest *GoogleCloudDialogflowV2beta1CompleteConversationRequest) *ProjectsLocationsConversationsCompleteCall {
41932 c := &ProjectsLocationsConversationsCompleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
41933 c.nameid = nameid
41934 c.googleclouddialogflowv2beta1completeconversationrequest = googleclouddialogflowv2beta1completeconversationrequest
41935 return c
41936 }
41937
41938
41939
41940
41941 func (c *ProjectsLocationsConversationsCompleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCompleteCall {
41942 c.urlParams_.Set("fields", googleapi.CombineFields(s))
41943 return c
41944 }
41945
41946
41947 func (c *ProjectsLocationsConversationsCompleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsCompleteCall {
41948 c.ctx_ = ctx
41949 return c
41950 }
41951
41952
41953
41954 func (c *ProjectsLocationsConversationsCompleteCall) Header() http.Header {
41955 if c.header_ == nil {
41956 c.header_ = make(http.Header)
41957 }
41958 return c.header_
41959 }
41960
41961 func (c *ProjectsLocationsConversationsCompleteCall) doRequest(alt string) (*http.Response, error) {
41962 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
41963 var body io.Reader = nil
41964 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1completeconversationrequest)
41965 if err != nil {
41966 return nil, err
41967 }
41968 c.urlParams_.Set("alt", alt)
41969 c.urlParams_.Set("prettyPrint", "false")
41970 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:complete")
41971 urls += "?" + c.urlParams_.Encode()
41972 req, err := http.NewRequest("POST", urls, body)
41973 if err != nil {
41974 return nil, err
41975 }
41976 req.Header = reqHeaders
41977 googleapi.Expand(req.URL, map[string]string{
41978 "name": c.nameid,
41979 })
41980 return gensupport.SendRequest(c.ctx_, c.s.client, req)
41981 }
41982
41983
41984
41985
41986
41987
41988
41989 func (c *ProjectsLocationsConversationsCompleteCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
41990 gensupport.SetOptions(c.urlParams_, opts...)
41991 res, err := c.doRequest("json")
41992 if res != nil && res.StatusCode == http.StatusNotModified {
41993 if res.Body != nil {
41994 res.Body.Close()
41995 }
41996 return nil, gensupport.WrapError(&googleapi.Error{
41997 Code: res.StatusCode,
41998 Header: res.Header,
41999 })
42000 }
42001 if err != nil {
42002 return nil, err
42003 }
42004 defer googleapi.CloseBody(res)
42005 if err := googleapi.CheckResponse(res); err != nil {
42006 return nil, gensupport.WrapError(err)
42007 }
42008 ret := &GoogleCloudDialogflowV2beta1Conversation{
42009 ServerResponse: googleapi.ServerResponse{
42010 Header: res.Header,
42011 HTTPStatusCode: res.StatusCode,
42012 },
42013 }
42014 target := &ret
42015 if err := gensupport.DecodeResponse(target, res); err != nil {
42016 return nil, err
42017 }
42018 return ret, nil
42019 }
42020
42021 type ProjectsLocationsConversationsCreateCall struct {
42022 s *Service
42023 parentid string
42024 googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation
42025 urlParams_ gensupport.URLParams
42026 ctx_ context.Context
42027 header_ http.Header
42028 }
42029
42030
42031
42032
42033
42034
42035
42036
42037
42038
42039
42040
42041
42042
42043
42044 func (r *ProjectsLocationsConversationsService) Create(parentid string, googleclouddialogflowv2beta1conversation *GoogleCloudDialogflowV2beta1Conversation) *ProjectsLocationsConversationsCreateCall {
42045 c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42046 c.parentid = parentid
42047 c.googleclouddialogflowv2beta1conversation = googleclouddialogflowv2beta1conversation
42048 return c
42049 }
42050
42051
42052
42053
42054
42055
42056
42057
42058
42059 func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
42060 c.urlParams_.Set("conversationId", conversationId)
42061 return c
42062 }
42063
42064
42065
42066
42067 func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
42068 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42069 return c
42070 }
42071
42072
42073 func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
42074 c.ctx_ = ctx
42075 return c
42076 }
42077
42078
42079
42080 func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
42081 if c.header_ == nil {
42082 c.header_ = make(http.Header)
42083 }
42084 return c.header_
42085 }
42086
42087 func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
42088 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42089 var body io.Reader = nil
42090 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1conversation)
42091 if err != nil {
42092 return nil, err
42093 }
42094 c.urlParams_.Set("alt", alt)
42095 c.urlParams_.Set("prettyPrint", "false")
42096 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
42097 urls += "?" + c.urlParams_.Encode()
42098 req, err := http.NewRequest("POST", urls, body)
42099 if err != nil {
42100 return nil, err
42101 }
42102 req.Header = reqHeaders
42103 googleapi.Expand(req.URL, map[string]string{
42104 "parent": c.parentid,
42105 })
42106 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42107 }
42108
42109
42110
42111
42112
42113
42114
42115 func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
42116 gensupport.SetOptions(c.urlParams_, opts...)
42117 res, err := c.doRequest("json")
42118 if res != nil && res.StatusCode == http.StatusNotModified {
42119 if res.Body != nil {
42120 res.Body.Close()
42121 }
42122 return nil, gensupport.WrapError(&googleapi.Error{
42123 Code: res.StatusCode,
42124 Header: res.Header,
42125 })
42126 }
42127 if err != nil {
42128 return nil, err
42129 }
42130 defer googleapi.CloseBody(res)
42131 if err := googleapi.CheckResponse(res); err != nil {
42132 return nil, gensupport.WrapError(err)
42133 }
42134 ret := &GoogleCloudDialogflowV2beta1Conversation{
42135 ServerResponse: googleapi.ServerResponse{
42136 Header: res.Header,
42137 HTTPStatusCode: res.StatusCode,
42138 },
42139 }
42140 target := &ret
42141 if err := gensupport.DecodeResponse(target, res); err != nil {
42142 return nil, err
42143 }
42144 return ret, nil
42145 }
42146
42147 type ProjectsLocationsConversationsGetCall struct {
42148 s *Service
42149 name string
42150 urlParams_ gensupport.URLParams
42151 ifNoneMatch_ string
42152 ctx_ context.Context
42153 header_ http.Header
42154 }
42155
42156
42157
42158
42159
42160 func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
42161 c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42162 c.name = name
42163 return c
42164 }
42165
42166
42167
42168
42169 func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
42170 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42171 return c
42172 }
42173
42174
42175
42176
42177 func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
42178 c.ifNoneMatch_ = entityTag
42179 return c
42180 }
42181
42182
42183 func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
42184 c.ctx_ = ctx
42185 return c
42186 }
42187
42188
42189
42190 func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
42191 if c.header_ == nil {
42192 c.header_ = make(http.Header)
42193 }
42194 return c.header_
42195 }
42196
42197 func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
42198 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42199 if c.ifNoneMatch_ != "" {
42200 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42201 }
42202 var body io.Reader = nil
42203 c.urlParams_.Set("alt", alt)
42204 c.urlParams_.Set("prettyPrint", "false")
42205 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42206 urls += "?" + c.urlParams_.Encode()
42207 req, err := http.NewRequest("GET", urls, body)
42208 if err != nil {
42209 return nil, err
42210 }
42211 req.Header = reqHeaders
42212 googleapi.Expand(req.URL, map[string]string{
42213 "name": c.name,
42214 })
42215 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42216 }
42217
42218
42219
42220
42221
42222
42223
42224 func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Conversation, error) {
42225 gensupport.SetOptions(c.urlParams_, opts...)
42226 res, err := c.doRequest("json")
42227 if res != nil && res.StatusCode == http.StatusNotModified {
42228 if res.Body != nil {
42229 res.Body.Close()
42230 }
42231 return nil, gensupport.WrapError(&googleapi.Error{
42232 Code: res.StatusCode,
42233 Header: res.Header,
42234 })
42235 }
42236 if err != nil {
42237 return nil, err
42238 }
42239 defer googleapi.CloseBody(res)
42240 if err := googleapi.CheckResponse(res); err != nil {
42241 return nil, gensupport.WrapError(err)
42242 }
42243 ret := &GoogleCloudDialogflowV2beta1Conversation{
42244 ServerResponse: googleapi.ServerResponse{
42245 Header: res.Header,
42246 HTTPStatusCode: res.StatusCode,
42247 },
42248 }
42249 target := &ret
42250 if err := gensupport.DecodeResponse(target, res); err != nil {
42251 return nil, err
42252 }
42253 return ret, nil
42254 }
42255
42256 type ProjectsLocationsConversationsListCall struct {
42257 s *Service
42258 parent string
42259 urlParams_ gensupport.URLParams
42260 ifNoneMatch_ string
42261 ctx_ context.Context
42262 header_ http.Header
42263 }
42264
42265
42266
42267
42268
42269 func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
42270 c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42271 c.parent = parent
42272 return c
42273 }
42274
42275
42276
42277
42278
42279
42280
42281
42282
42283
42284
42285
42286 func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
42287 c.urlParams_.Set("filter", filter)
42288 return c
42289 }
42290
42291
42292
42293 func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
42294 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42295 return c
42296 }
42297
42298
42299
42300 func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
42301 c.urlParams_.Set("pageToken", pageToken)
42302 return c
42303 }
42304
42305
42306
42307
42308 func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
42309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42310 return c
42311 }
42312
42313
42314
42315
42316 func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
42317 c.ifNoneMatch_ = entityTag
42318 return c
42319 }
42320
42321
42322 func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
42323 c.ctx_ = ctx
42324 return c
42325 }
42326
42327
42328
42329 func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
42330 if c.header_ == nil {
42331 c.header_ = make(http.Header)
42332 }
42333 return c.header_
42334 }
42335
42336 func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
42337 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42338 if c.ifNoneMatch_ != "" {
42339 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42340 }
42341 var body io.Reader = nil
42342 c.urlParams_.Set("alt", alt)
42343 c.urlParams_.Set("prettyPrint", "false")
42344 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/conversations")
42345 urls += "?" + c.urlParams_.Encode()
42346 req, err := http.NewRequest("GET", urls, body)
42347 if err != nil {
42348 return nil, err
42349 }
42350 req.Header = reqHeaders
42351 googleapi.Expand(req.URL, map[string]string{
42352 "parent": c.parent,
42353 })
42354 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42355 }
42356
42357
42358
42359
42360
42361
42362
42363 func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListConversationsResponse, error) {
42364 gensupport.SetOptions(c.urlParams_, opts...)
42365 res, err := c.doRequest("json")
42366 if res != nil && res.StatusCode == http.StatusNotModified {
42367 if res.Body != nil {
42368 res.Body.Close()
42369 }
42370 return nil, gensupport.WrapError(&googleapi.Error{
42371 Code: res.StatusCode,
42372 Header: res.Header,
42373 })
42374 }
42375 if err != nil {
42376 return nil, err
42377 }
42378 defer googleapi.CloseBody(res)
42379 if err := googleapi.CheckResponse(res); err != nil {
42380 return nil, gensupport.WrapError(err)
42381 }
42382 ret := &GoogleCloudDialogflowV2beta1ListConversationsResponse{
42383 ServerResponse: googleapi.ServerResponse{
42384 Header: res.Header,
42385 HTTPStatusCode: res.StatusCode,
42386 },
42387 }
42388 target := &ret
42389 if err := gensupport.DecodeResponse(target, res); err != nil {
42390 return nil, err
42391 }
42392 return ret, nil
42393 }
42394
42395
42396
42397
42398 func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListConversationsResponse) error) error {
42399 c.ctx_ = ctx
42400 defer c.PageToken(c.urlParams_.Get("pageToken"))
42401 for {
42402 x, err := c.Do()
42403 if err != nil {
42404 return err
42405 }
42406 if err := f(x); err != nil {
42407 return err
42408 }
42409 if x.NextPageToken == "" {
42410 return nil
42411 }
42412 c.PageToken(x.NextPageToken)
42413 }
42414 }
42415
42416 type ProjectsLocationsConversationsMessagesBatchCreateCall struct {
42417 s *Service
42418 parentid string
42419 googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest
42420 urlParams_ gensupport.URLParams
42421 ctx_ context.Context
42422 header_ http.Header
42423 }
42424
42425
42426
42427
42428
42429
42430 func (r *ProjectsLocationsConversationsMessagesService) BatchCreate(parentid string, googleclouddialogflowv2beta1batchcreatemessagesrequest *GoogleCloudDialogflowV2beta1BatchCreateMessagesRequest) *ProjectsLocationsConversationsMessagesBatchCreateCall {
42431 c := &ProjectsLocationsConversationsMessagesBatchCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42432 c.parentid = parentid
42433 c.googleclouddialogflowv2beta1batchcreatemessagesrequest = googleclouddialogflowv2beta1batchcreatemessagesrequest
42434 return c
42435 }
42436
42437
42438
42439
42440 func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesBatchCreateCall {
42441 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42442 return c
42443 }
42444
42445
42446 func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesBatchCreateCall {
42447 c.ctx_ = ctx
42448 return c
42449 }
42450
42451
42452
42453 func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Header() http.Header {
42454 if c.header_ == nil {
42455 c.header_ = make(http.Header)
42456 }
42457 return c.header_
42458 }
42459
42460 func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) doRequest(alt string) (*http.Response, error) {
42461 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42462 var body io.Reader = nil
42463 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1batchcreatemessagesrequest)
42464 if err != nil {
42465 return nil, err
42466 }
42467 c.urlParams_.Set("alt", alt)
42468 c.urlParams_.Set("prettyPrint", "false")
42469 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages:batchCreate")
42470 urls += "?" + c.urlParams_.Encode()
42471 req, err := http.NewRequest("POST", urls, body)
42472 if err != nil {
42473 return nil, err
42474 }
42475 req.Header = reqHeaders
42476 googleapi.Expand(req.URL, map[string]string{
42477 "parent": c.parentid,
42478 })
42479 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42480 }
42481
42482
42483
42484
42485
42486
42487
42488 func (c *ProjectsLocationsConversationsMessagesBatchCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse, error) {
42489 gensupport.SetOptions(c.urlParams_, opts...)
42490 res, err := c.doRequest("json")
42491 if res != nil && res.StatusCode == http.StatusNotModified {
42492 if res.Body != nil {
42493 res.Body.Close()
42494 }
42495 return nil, gensupport.WrapError(&googleapi.Error{
42496 Code: res.StatusCode,
42497 Header: res.Header,
42498 })
42499 }
42500 if err != nil {
42501 return nil, err
42502 }
42503 defer googleapi.CloseBody(res)
42504 if err := googleapi.CheckResponse(res); err != nil {
42505 return nil, gensupport.WrapError(err)
42506 }
42507 ret := &GoogleCloudDialogflowV2beta1BatchCreateMessagesResponse{
42508 ServerResponse: googleapi.ServerResponse{
42509 Header: res.Header,
42510 HTTPStatusCode: res.StatusCode,
42511 },
42512 }
42513 target := &ret
42514 if err := gensupport.DecodeResponse(target, res); err != nil {
42515 return nil, err
42516 }
42517 return ret, nil
42518 }
42519
42520 type ProjectsLocationsConversationsMessagesListCall struct {
42521 s *Service
42522 parent string
42523 urlParams_ gensupport.URLParams
42524 ifNoneMatch_ string
42525 ctx_ context.Context
42526 header_ http.Header
42527 }
42528
42529
42530
42531
42532
42533
42534
42535
42536 func (r *ProjectsLocationsConversationsMessagesService) List(parent string) *ProjectsLocationsConversationsMessagesListCall {
42537 c := &ProjectsLocationsConversationsMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42538 c.parent = parent
42539 return c
42540 }
42541
42542
42543
42544
42545
42546
42547
42548 func (c *ProjectsLocationsConversationsMessagesListCall) Filter(filter string) *ProjectsLocationsConversationsMessagesListCall {
42549 c.urlParams_.Set("filter", filter)
42550 return c
42551 }
42552
42553
42554
42555 func (c *ProjectsLocationsConversationsMessagesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsMessagesListCall {
42556 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
42557 return c
42558 }
42559
42560
42561
42562 func (c *ProjectsLocationsConversationsMessagesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsMessagesListCall {
42563 c.urlParams_.Set("pageToken", pageToken)
42564 return c
42565 }
42566
42567
42568
42569
42570 func (c *ProjectsLocationsConversationsMessagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsMessagesListCall {
42571 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42572 return c
42573 }
42574
42575
42576
42577
42578 func (c *ProjectsLocationsConversationsMessagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsMessagesListCall {
42579 c.ifNoneMatch_ = entityTag
42580 return c
42581 }
42582
42583
42584 func (c *ProjectsLocationsConversationsMessagesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsMessagesListCall {
42585 c.ctx_ = ctx
42586 return c
42587 }
42588
42589
42590
42591 func (c *ProjectsLocationsConversationsMessagesListCall) Header() http.Header {
42592 if c.header_ == nil {
42593 c.header_ = make(http.Header)
42594 }
42595 return c.header_
42596 }
42597
42598 func (c *ProjectsLocationsConversationsMessagesListCall) doRequest(alt string) (*http.Response, error) {
42599 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42600 if c.ifNoneMatch_ != "" {
42601 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42602 }
42603 var body io.Reader = nil
42604 c.urlParams_.Set("alt", alt)
42605 c.urlParams_.Set("prettyPrint", "false")
42606 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/messages")
42607 urls += "?" + c.urlParams_.Encode()
42608 req, err := http.NewRequest("GET", urls, body)
42609 if err != nil {
42610 return nil, err
42611 }
42612 req.Header = reqHeaders
42613 googleapi.Expand(req.URL, map[string]string{
42614 "parent": c.parent,
42615 })
42616 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42617 }
42618
42619
42620
42621
42622
42623
42624
42625 func (c *ProjectsLocationsConversationsMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListMessagesResponse, error) {
42626 gensupport.SetOptions(c.urlParams_, opts...)
42627 res, err := c.doRequest("json")
42628 if res != nil && res.StatusCode == http.StatusNotModified {
42629 if res.Body != nil {
42630 res.Body.Close()
42631 }
42632 return nil, gensupport.WrapError(&googleapi.Error{
42633 Code: res.StatusCode,
42634 Header: res.Header,
42635 })
42636 }
42637 if err != nil {
42638 return nil, err
42639 }
42640 defer googleapi.CloseBody(res)
42641 if err := googleapi.CheckResponse(res); err != nil {
42642 return nil, gensupport.WrapError(err)
42643 }
42644 ret := &GoogleCloudDialogflowV2beta1ListMessagesResponse{
42645 ServerResponse: googleapi.ServerResponse{
42646 Header: res.Header,
42647 HTTPStatusCode: res.StatusCode,
42648 },
42649 }
42650 target := &ret
42651 if err := gensupport.DecodeResponse(target, res); err != nil {
42652 return nil, err
42653 }
42654 return ret, nil
42655 }
42656
42657
42658
42659
42660 func (c *ProjectsLocationsConversationsMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListMessagesResponse) error) error {
42661 c.ctx_ = ctx
42662 defer c.PageToken(c.urlParams_.Get("pageToken"))
42663 for {
42664 x, err := c.Do()
42665 if err != nil {
42666 return err
42667 }
42668 if err := f(x); err != nil {
42669 return err
42670 }
42671 if x.NextPageToken == "" {
42672 return nil
42673 }
42674 c.PageToken(x.NextPageToken)
42675 }
42676 }
42677
42678 type ProjectsLocationsConversationsParticipantsAnalyzeContentCall struct {
42679 s *Service
42680 participant string
42681 googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest
42682 urlParams_ gensupport.URLParams
42683 ctx_ context.Context
42684 header_ http.Header
42685 }
42686
42687
42688
42689
42690
42691
42692
42693
42694
42695 func (r *ProjectsLocationsConversationsParticipantsService) AnalyzeContent(participant string, googleclouddialogflowv2beta1analyzecontentrequest *GoogleCloudDialogflowV2beta1AnalyzeContentRequest) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
42696 c := &ProjectsLocationsConversationsParticipantsAnalyzeContentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42697 c.participant = participant
42698 c.googleclouddialogflowv2beta1analyzecontentrequest = googleclouddialogflowv2beta1analyzecontentrequest
42699 return c
42700 }
42701
42702
42703
42704
42705 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
42706 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42707 return c
42708 }
42709
42710
42711 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsAnalyzeContentCall {
42712 c.ctx_ = ctx
42713 return c
42714 }
42715
42716
42717
42718 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Header() http.Header {
42719 if c.header_ == nil {
42720 c.header_ = make(http.Header)
42721 }
42722 return c.header_
42723 }
42724
42725 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) doRequest(alt string) (*http.Response, error) {
42726 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42727 var body io.Reader = nil
42728 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1analyzecontentrequest)
42729 if err != nil {
42730 return nil, err
42731 }
42732 c.urlParams_.Set("alt", alt)
42733 c.urlParams_.Set("prettyPrint", "false")
42734 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+participant}:analyzeContent")
42735 urls += "?" + c.urlParams_.Encode()
42736 req, err := http.NewRequest("POST", urls, body)
42737 if err != nil {
42738 return nil, err
42739 }
42740 req.Header = reqHeaders
42741 googleapi.Expand(req.URL, map[string]string{
42742 "participant": c.participant,
42743 })
42744 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42745 }
42746
42747
42748
42749
42750
42751
42752
42753 func (c *ProjectsLocationsConversationsParticipantsAnalyzeContentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1AnalyzeContentResponse, error) {
42754 gensupport.SetOptions(c.urlParams_, opts...)
42755 res, err := c.doRequest("json")
42756 if res != nil && res.StatusCode == http.StatusNotModified {
42757 if res.Body != nil {
42758 res.Body.Close()
42759 }
42760 return nil, gensupport.WrapError(&googleapi.Error{
42761 Code: res.StatusCode,
42762 Header: res.Header,
42763 })
42764 }
42765 if err != nil {
42766 return nil, err
42767 }
42768 defer googleapi.CloseBody(res)
42769 if err := googleapi.CheckResponse(res); err != nil {
42770 return nil, gensupport.WrapError(err)
42771 }
42772 ret := &GoogleCloudDialogflowV2beta1AnalyzeContentResponse{
42773 ServerResponse: googleapi.ServerResponse{
42774 Header: res.Header,
42775 HTTPStatusCode: res.StatusCode,
42776 },
42777 }
42778 target := &ret
42779 if err := gensupport.DecodeResponse(target, res); err != nil {
42780 return nil, err
42781 }
42782 return ret, nil
42783 }
42784
42785 type ProjectsLocationsConversationsParticipantsCreateCall struct {
42786 s *Service
42787 parentid string
42788 googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
42789 urlParams_ gensupport.URLParams
42790 ctx_ context.Context
42791 header_ http.Header
42792 }
42793
42794
42795
42796
42797
42798 func (r *ProjectsLocationsConversationsParticipantsService) Create(parentid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsCreateCall {
42799 c := &ProjectsLocationsConversationsParticipantsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42800 c.parentid = parentid
42801 c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
42802 return c
42803 }
42804
42805
42806
42807
42808 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsCreateCall {
42809 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42810 return c
42811 }
42812
42813
42814 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsCreateCall {
42815 c.ctx_ = ctx
42816 return c
42817 }
42818
42819
42820
42821 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Header() http.Header {
42822 if c.header_ == nil {
42823 c.header_ = make(http.Header)
42824 }
42825 return c.header_
42826 }
42827
42828 func (c *ProjectsLocationsConversationsParticipantsCreateCall) doRequest(alt string) (*http.Response, error) {
42829 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
42830 var body io.Reader = nil
42831 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
42832 if err != nil {
42833 return nil, err
42834 }
42835 c.urlParams_.Set("alt", alt)
42836 c.urlParams_.Set("prettyPrint", "false")
42837 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
42838 urls += "?" + c.urlParams_.Encode()
42839 req, err := http.NewRequest("POST", urls, body)
42840 if err != nil {
42841 return nil, err
42842 }
42843 req.Header = reqHeaders
42844 googleapi.Expand(req.URL, map[string]string{
42845 "parent": c.parentid,
42846 })
42847 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42848 }
42849
42850
42851
42852
42853
42854
42855
42856 func (c *ProjectsLocationsConversationsParticipantsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
42857 gensupport.SetOptions(c.urlParams_, opts...)
42858 res, err := c.doRequest("json")
42859 if res != nil && res.StatusCode == http.StatusNotModified {
42860 if res.Body != nil {
42861 res.Body.Close()
42862 }
42863 return nil, gensupport.WrapError(&googleapi.Error{
42864 Code: res.StatusCode,
42865 Header: res.Header,
42866 })
42867 }
42868 if err != nil {
42869 return nil, err
42870 }
42871 defer googleapi.CloseBody(res)
42872 if err := googleapi.CheckResponse(res); err != nil {
42873 return nil, gensupport.WrapError(err)
42874 }
42875 ret := &GoogleCloudDialogflowV2beta1Participant{
42876 ServerResponse: googleapi.ServerResponse{
42877 Header: res.Header,
42878 HTTPStatusCode: res.StatusCode,
42879 },
42880 }
42881 target := &ret
42882 if err := gensupport.DecodeResponse(target, res); err != nil {
42883 return nil, err
42884 }
42885 return ret, nil
42886 }
42887
42888 type ProjectsLocationsConversationsParticipantsGetCall struct {
42889 s *Service
42890 name string
42891 urlParams_ gensupport.URLParams
42892 ifNoneMatch_ string
42893 ctx_ context.Context
42894 header_ http.Header
42895 }
42896
42897
42898
42899
42900
42901 func (r *ProjectsLocationsConversationsParticipantsService) Get(name string) *ProjectsLocationsConversationsParticipantsGetCall {
42902 c := &ProjectsLocationsConversationsParticipantsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
42903 c.name = name
42904 return c
42905 }
42906
42907
42908
42909
42910 func (c *ProjectsLocationsConversationsParticipantsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsGetCall {
42911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
42912 return c
42913 }
42914
42915
42916
42917
42918 func (c *ProjectsLocationsConversationsParticipantsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsGetCall {
42919 c.ifNoneMatch_ = entityTag
42920 return c
42921 }
42922
42923
42924 func (c *ProjectsLocationsConversationsParticipantsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsGetCall {
42925 c.ctx_ = ctx
42926 return c
42927 }
42928
42929
42930
42931 func (c *ProjectsLocationsConversationsParticipantsGetCall) Header() http.Header {
42932 if c.header_ == nil {
42933 c.header_ = make(http.Header)
42934 }
42935 return c.header_
42936 }
42937
42938 func (c *ProjectsLocationsConversationsParticipantsGetCall) doRequest(alt string) (*http.Response, error) {
42939 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
42940 if c.ifNoneMatch_ != "" {
42941 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
42942 }
42943 var body io.Reader = nil
42944 c.urlParams_.Set("alt", alt)
42945 c.urlParams_.Set("prettyPrint", "false")
42946 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
42947 urls += "?" + c.urlParams_.Encode()
42948 req, err := http.NewRequest("GET", urls, body)
42949 if err != nil {
42950 return nil, err
42951 }
42952 req.Header = reqHeaders
42953 googleapi.Expand(req.URL, map[string]string{
42954 "name": c.name,
42955 })
42956 return gensupport.SendRequest(c.ctx_, c.s.client, req)
42957 }
42958
42959
42960
42961
42962
42963
42964
42965 func (c *ProjectsLocationsConversationsParticipantsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
42966 gensupport.SetOptions(c.urlParams_, opts...)
42967 res, err := c.doRequest("json")
42968 if res != nil && res.StatusCode == http.StatusNotModified {
42969 if res.Body != nil {
42970 res.Body.Close()
42971 }
42972 return nil, gensupport.WrapError(&googleapi.Error{
42973 Code: res.StatusCode,
42974 Header: res.Header,
42975 })
42976 }
42977 if err != nil {
42978 return nil, err
42979 }
42980 defer googleapi.CloseBody(res)
42981 if err := googleapi.CheckResponse(res); err != nil {
42982 return nil, gensupport.WrapError(err)
42983 }
42984 ret := &GoogleCloudDialogflowV2beta1Participant{
42985 ServerResponse: googleapi.ServerResponse{
42986 Header: res.Header,
42987 HTTPStatusCode: res.StatusCode,
42988 },
42989 }
42990 target := &ret
42991 if err := gensupport.DecodeResponse(target, res); err != nil {
42992 return nil, err
42993 }
42994 return ret, nil
42995 }
42996
42997 type ProjectsLocationsConversationsParticipantsListCall struct {
42998 s *Service
42999 parent string
43000 urlParams_ gensupport.URLParams
43001 ifNoneMatch_ string
43002 ctx_ context.Context
43003 header_ http.Header
43004 }
43005
43006
43007
43008
43009
43010 func (r *ProjectsLocationsConversationsParticipantsService) List(parent string) *ProjectsLocationsConversationsParticipantsListCall {
43011 c := &ProjectsLocationsConversationsParticipantsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43012 c.parent = parent
43013 return c
43014 }
43015
43016
43017
43018 func (c *ProjectsLocationsConversationsParticipantsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsParticipantsListCall {
43019 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
43020 return c
43021 }
43022
43023
43024
43025 func (c *ProjectsLocationsConversationsParticipantsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsParticipantsListCall {
43026 c.urlParams_.Set("pageToken", pageToken)
43027 return c
43028 }
43029
43030
43031
43032
43033 func (c *ProjectsLocationsConversationsParticipantsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsListCall {
43034 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43035 return c
43036 }
43037
43038
43039
43040
43041 func (c *ProjectsLocationsConversationsParticipantsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsParticipantsListCall {
43042 c.ifNoneMatch_ = entityTag
43043 return c
43044 }
43045
43046
43047 func (c *ProjectsLocationsConversationsParticipantsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsListCall {
43048 c.ctx_ = ctx
43049 return c
43050 }
43051
43052
43053
43054 func (c *ProjectsLocationsConversationsParticipantsListCall) Header() http.Header {
43055 if c.header_ == nil {
43056 c.header_ = make(http.Header)
43057 }
43058 return c.header_
43059 }
43060
43061 func (c *ProjectsLocationsConversationsParticipantsListCall) doRequest(alt string) (*http.Response, error) {
43062 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43063 if c.ifNoneMatch_ != "" {
43064 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
43065 }
43066 var body io.Reader = nil
43067 c.urlParams_.Set("alt", alt)
43068 c.urlParams_.Set("prettyPrint", "false")
43069 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/participants")
43070 urls += "?" + c.urlParams_.Encode()
43071 req, err := http.NewRequest("GET", urls, body)
43072 if err != nil {
43073 return nil, err
43074 }
43075 req.Header = reqHeaders
43076 googleapi.Expand(req.URL, map[string]string{
43077 "parent": c.parent,
43078 })
43079 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43080 }
43081
43082
43083
43084
43085
43086
43087
43088 func (c *ProjectsLocationsConversationsParticipantsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListParticipantsResponse, error) {
43089 gensupport.SetOptions(c.urlParams_, opts...)
43090 res, err := c.doRequest("json")
43091 if res != nil && res.StatusCode == http.StatusNotModified {
43092 if res.Body != nil {
43093 res.Body.Close()
43094 }
43095 return nil, gensupport.WrapError(&googleapi.Error{
43096 Code: res.StatusCode,
43097 Header: res.Header,
43098 })
43099 }
43100 if err != nil {
43101 return nil, err
43102 }
43103 defer googleapi.CloseBody(res)
43104 if err := googleapi.CheckResponse(res); err != nil {
43105 return nil, gensupport.WrapError(err)
43106 }
43107 ret := &GoogleCloudDialogflowV2beta1ListParticipantsResponse{
43108 ServerResponse: googleapi.ServerResponse{
43109 Header: res.Header,
43110 HTTPStatusCode: res.StatusCode,
43111 },
43112 }
43113 target := &ret
43114 if err := gensupport.DecodeResponse(target, res); err != nil {
43115 return nil, err
43116 }
43117 return ret, nil
43118 }
43119
43120
43121
43122
43123 func (c *ProjectsLocationsConversationsParticipantsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListParticipantsResponse) error) error {
43124 c.ctx_ = ctx
43125 defer c.PageToken(c.urlParams_.Get("pageToken"))
43126 for {
43127 x, err := c.Do()
43128 if err != nil {
43129 return err
43130 }
43131 if err := f(x); err != nil {
43132 return err
43133 }
43134 if x.NextPageToken == "" {
43135 return nil
43136 }
43137 c.PageToken(x.NextPageToken)
43138 }
43139 }
43140
43141 type ProjectsLocationsConversationsParticipantsPatchCall struct {
43142 s *Service
43143 nameid string
43144 googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant
43145 urlParams_ gensupport.URLParams
43146 ctx_ context.Context
43147 header_ http.Header
43148 }
43149
43150
43151
43152
43153
43154 func (r *ProjectsLocationsConversationsParticipantsService) Patch(nameid string, googleclouddialogflowv2beta1participant *GoogleCloudDialogflowV2beta1Participant) *ProjectsLocationsConversationsParticipantsPatchCall {
43155 c := &ProjectsLocationsConversationsParticipantsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43156 c.nameid = nameid
43157 c.googleclouddialogflowv2beta1participant = googleclouddialogflowv2beta1participant
43158 return c
43159 }
43160
43161
43162
43163 func (c *ProjectsLocationsConversationsParticipantsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsParticipantsPatchCall {
43164 c.urlParams_.Set("updateMask", updateMask)
43165 return c
43166 }
43167
43168
43169
43170
43171 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsPatchCall {
43172 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43173 return c
43174 }
43175
43176
43177 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsPatchCall {
43178 c.ctx_ = ctx
43179 return c
43180 }
43181
43182
43183
43184 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Header() http.Header {
43185 if c.header_ == nil {
43186 c.header_ = make(http.Header)
43187 }
43188 return c.header_
43189 }
43190
43191 func (c *ProjectsLocationsConversationsParticipantsPatchCall) doRequest(alt string) (*http.Response, error) {
43192 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43193 var body io.Reader = nil
43194 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1participant)
43195 if err != nil {
43196 return nil, err
43197 }
43198 c.urlParams_.Set("alt", alt)
43199 c.urlParams_.Set("prettyPrint", "false")
43200 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43201 urls += "?" + c.urlParams_.Encode()
43202 req, err := http.NewRequest("PATCH", urls, body)
43203 if err != nil {
43204 return nil, err
43205 }
43206 req.Header = reqHeaders
43207 googleapi.Expand(req.URL, map[string]string{
43208 "name": c.nameid,
43209 })
43210 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43211 }
43212
43213
43214
43215
43216
43217
43218
43219 func (c *ProjectsLocationsConversationsParticipantsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Participant, error) {
43220 gensupport.SetOptions(c.urlParams_, opts...)
43221 res, err := c.doRequest("json")
43222 if res != nil && res.StatusCode == http.StatusNotModified {
43223 if res.Body != nil {
43224 res.Body.Close()
43225 }
43226 return nil, gensupport.WrapError(&googleapi.Error{
43227 Code: res.StatusCode,
43228 Header: res.Header,
43229 })
43230 }
43231 if err != nil {
43232 return nil, err
43233 }
43234 defer googleapi.CloseBody(res)
43235 if err := googleapi.CheckResponse(res); err != nil {
43236 return nil, gensupport.WrapError(err)
43237 }
43238 ret := &GoogleCloudDialogflowV2beta1Participant{
43239 ServerResponse: googleapi.ServerResponse{
43240 Header: res.Header,
43241 HTTPStatusCode: res.StatusCode,
43242 },
43243 }
43244 target := &ret
43245 if err := gensupport.DecodeResponse(target, res); err != nil {
43246 return nil, err
43247 }
43248 return ret, nil
43249 }
43250
43251 type ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall struct {
43252 s *Service
43253 parent string
43254 googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest
43255 urlParams_ gensupport.URLParams
43256 ctx_ context.Context
43257 header_ http.Header
43258 }
43259
43260
43261
43262
43263
43264
43265
43266
43267 func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestArticles(parent string, googleclouddialogflowv2beta1suggestarticlesrequest *GoogleCloudDialogflowV2beta1SuggestArticlesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
43268 c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43269 c.parent = parent
43270 c.googleclouddialogflowv2beta1suggestarticlesrequest = googleclouddialogflowv2beta1suggestarticlesrequest
43271 return c
43272 }
43273
43274
43275
43276
43277 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
43278 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43279 return c
43280 }
43281
43282
43283 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall {
43284 c.ctx_ = ctx
43285 return c
43286 }
43287
43288
43289
43290 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Header() http.Header {
43291 if c.header_ == nil {
43292 c.header_ = make(http.Header)
43293 }
43294 return c.header_
43295 }
43296
43297 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) doRequest(alt string) (*http.Response, error) {
43298 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43299 var body io.Reader = nil
43300 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestarticlesrequest)
43301 if err != nil {
43302 return nil, err
43303 }
43304 c.urlParams_.Set("alt", alt)
43305 c.urlParams_.Set("prettyPrint", "false")
43306 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestArticles")
43307 urls += "?" + c.urlParams_.Encode()
43308 req, err := http.NewRequest("POST", urls, body)
43309 if err != nil {
43310 return nil, err
43311 }
43312 req.Header = reqHeaders
43313 googleapi.Expand(req.URL, map[string]string{
43314 "parent": c.parent,
43315 })
43316 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43317 }
43318
43319
43320
43321
43322
43323
43324
43325 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestArticlesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestArticlesResponse, error) {
43326 gensupport.SetOptions(c.urlParams_, opts...)
43327 res, err := c.doRequest("json")
43328 if res != nil && res.StatusCode == http.StatusNotModified {
43329 if res.Body != nil {
43330 res.Body.Close()
43331 }
43332 return nil, gensupport.WrapError(&googleapi.Error{
43333 Code: res.StatusCode,
43334 Header: res.Header,
43335 })
43336 }
43337 if err != nil {
43338 return nil, err
43339 }
43340 defer googleapi.CloseBody(res)
43341 if err := googleapi.CheckResponse(res); err != nil {
43342 return nil, gensupport.WrapError(err)
43343 }
43344 ret := &GoogleCloudDialogflowV2beta1SuggestArticlesResponse{
43345 ServerResponse: googleapi.ServerResponse{
43346 Header: res.Header,
43347 HTTPStatusCode: res.StatusCode,
43348 },
43349 }
43350 target := &ret
43351 if err := gensupport.DecodeResponse(target, res); err != nil {
43352 return nil, err
43353 }
43354 return ret, nil
43355 }
43356
43357 type ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall struct {
43358 s *Service
43359 parent string
43360 googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
43361 urlParams_ gensupport.URLParams
43362 ctx_ context.Context
43363 header_ http.Header
43364 }
43365
43366
43367
43368
43369
43370
43371 func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestFaqAnswers(parent string, googleclouddialogflowv2beta1suggestfaqanswersrequest *GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
43372 c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43373 c.parent = parent
43374 c.googleclouddialogflowv2beta1suggestfaqanswersrequest = googleclouddialogflowv2beta1suggestfaqanswersrequest
43375 return c
43376 }
43377
43378
43379
43380
43381 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
43382 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43383 return c
43384 }
43385
43386
43387 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall {
43388 c.ctx_ = ctx
43389 return c
43390 }
43391
43392
43393
43394 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Header() http.Header {
43395 if c.header_ == nil {
43396 c.header_ = make(http.Header)
43397 }
43398 return c.header_
43399 }
43400
43401 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) doRequest(alt string) (*http.Response, error) {
43402 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43403 var body io.Reader = nil
43404 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestfaqanswersrequest)
43405 if err != nil {
43406 return nil, err
43407 }
43408 c.urlParams_.Set("alt", alt)
43409 c.urlParams_.Set("prettyPrint", "false")
43410 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestFaqAnswers")
43411 urls += "?" + c.urlParams_.Encode()
43412 req, err := http.NewRequest("POST", urls, body)
43413 if err != nil {
43414 return nil, err
43415 }
43416 req.Header = reqHeaders
43417 googleapi.Expand(req.URL, map[string]string{
43418 "parent": c.parent,
43419 })
43420 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43421 }
43422
43423
43424
43425
43426
43427
43428
43429 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestFaqAnswersCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, error) {
43430 gensupport.SetOptions(c.urlParams_, opts...)
43431 res, err := c.doRequest("json")
43432 if res != nil && res.StatusCode == http.StatusNotModified {
43433 if res.Body != nil {
43434 res.Body.Close()
43435 }
43436 return nil, gensupport.WrapError(&googleapi.Error{
43437 Code: res.StatusCode,
43438 Header: res.Header,
43439 })
43440 }
43441 if err != nil {
43442 return nil, err
43443 }
43444 defer googleapi.CloseBody(res)
43445 if err := googleapi.CheckResponse(res); err != nil {
43446 return nil, gensupport.WrapError(err)
43447 }
43448 ret := &GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse{
43449 ServerResponse: googleapi.ServerResponse{
43450 Header: res.Header,
43451 HTTPStatusCode: res.StatusCode,
43452 },
43453 }
43454 target := &ret
43455 if err := gensupport.DecodeResponse(target, res); err != nil {
43456 return nil, err
43457 }
43458 return ret, nil
43459 }
43460
43461 type ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall struct {
43462 s *Service
43463 parent string
43464 googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest
43465 urlParams_ gensupport.URLParams
43466 ctx_ context.Context
43467 header_ http.Header
43468 }
43469
43470
43471
43472
43473
43474
43475 func (r *ProjectsLocationsConversationsParticipantsSuggestionsService) SuggestSmartReplies(parent string, googleclouddialogflowv2beta1suggestsmartrepliesrequest *GoogleCloudDialogflowV2beta1SuggestSmartRepliesRequest) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
43476 c := &ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43477 c.parent = parent
43478 c.googleclouddialogflowv2beta1suggestsmartrepliesrequest = googleclouddialogflowv2beta1suggestsmartrepliesrequest
43479 return c
43480 }
43481
43482
43483
43484
43485 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
43486 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43487 return c
43488 }
43489
43490
43491 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Context(ctx context.Context) *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall {
43492 c.ctx_ = ctx
43493 return c
43494 }
43495
43496
43497
43498 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Header() http.Header {
43499 if c.header_ == nil {
43500 c.header_ = make(http.Header)
43501 }
43502 return c.header_
43503 }
43504
43505 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) doRequest(alt string) (*http.Response, error) {
43506 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43507 var body io.Reader = nil
43508 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestsmartrepliesrequest)
43509 if err != nil {
43510 return nil, err
43511 }
43512 c.urlParams_.Set("alt", alt)
43513 c.urlParams_.Set("prettyPrint", "false")
43514 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:suggestSmartReplies")
43515 urls += "?" + c.urlParams_.Encode()
43516 req, err := http.NewRequest("POST", urls, body)
43517 if err != nil {
43518 return nil, err
43519 }
43520 req.Header = reqHeaders
43521 googleapi.Expand(req.URL, map[string]string{
43522 "parent": c.parent,
43523 })
43524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43525 }
43526
43527
43528
43529
43530
43531
43532
43533 func (c *ProjectsLocationsConversationsParticipantsSuggestionsSuggestSmartRepliesCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, error) {
43534 gensupport.SetOptions(c.urlParams_, opts...)
43535 res, err := c.doRequest("json")
43536 if res != nil && res.StatusCode == http.StatusNotModified {
43537 if res.Body != nil {
43538 res.Body.Close()
43539 }
43540 return nil, gensupport.WrapError(&googleapi.Error{
43541 Code: res.StatusCode,
43542 Header: res.Header,
43543 })
43544 }
43545 if err != nil {
43546 return nil, err
43547 }
43548 defer googleapi.CloseBody(res)
43549 if err := googleapi.CheckResponse(res); err != nil {
43550 return nil, gensupport.WrapError(err)
43551 }
43552 ret := &GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse{
43553 ServerResponse: googleapi.ServerResponse{
43554 Header: res.Header,
43555 HTTPStatusCode: res.StatusCode,
43556 },
43557 }
43558 target := &ret
43559 if err := gensupport.DecodeResponse(target, res); err != nil {
43560 return nil, err
43561 }
43562 return ret, nil
43563 }
43564
43565 type ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall struct {
43566 s *Service
43567 conversation string
43568 googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
43569 urlParams_ gensupport.URLParams
43570 ctx_ context.Context
43571 header_ http.Header
43572 }
43573
43574
43575
43576
43577
43578
43579
43580 func (r *ProjectsLocationsConversationsSuggestionsService) SearchKnowledge(conversation string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
43581 c := &ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43582 c.conversation = conversation
43583 c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
43584 return c
43585 }
43586
43587
43588
43589
43590 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
43591 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43592 return c
43593 }
43594
43595
43596 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall {
43597 c.ctx_ = ctx
43598 return c
43599 }
43600
43601
43602
43603 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Header() http.Header {
43604 if c.header_ == nil {
43605 c.header_ = make(http.Header)
43606 }
43607 return c.header_
43608 }
43609
43610 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
43611 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43612 var body io.Reader = nil
43613 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
43614 if err != nil {
43615 return nil, err
43616 }
43617 c.urlParams_.Set("alt", alt)
43618 c.urlParams_.Set("prettyPrint", "false")
43619 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:searchKnowledge")
43620 urls += "?" + c.urlParams_.Encode()
43621 req, err := http.NewRequest("POST", urls, body)
43622 if err != nil {
43623 return nil, err
43624 }
43625 req.Header = reqHeaders
43626 googleapi.Expand(req.URL, map[string]string{
43627 "conversation": c.conversation,
43628 })
43629 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43630 }
43631
43632
43633
43634
43635
43636
43637
43638 func (c *ProjectsLocationsConversationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
43639 gensupport.SetOptions(c.urlParams_, opts...)
43640 res, err := c.doRequest("json")
43641 if res != nil && res.StatusCode == http.StatusNotModified {
43642 if res.Body != nil {
43643 res.Body.Close()
43644 }
43645 return nil, gensupport.WrapError(&googleapi.Error{
43646 Code: res.StatusCode,
43647 Header: res.Header,
43648 })
43649 }
43650 if err != nil {
43651 return nil, err
43652 }
43653 defer googleapi.CloseBody(res)
43654 if err := googleapi.CheckResponse(res); err != nil {
43655 return nil, gensupport.WrapError(err)
43656 }
43657 ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
43658 ServerResponse: googleapi.ServerResponse{
43659 Header: res.Header,
43660 HTTPStatusCode: res.StatusCode,
43661 },
43662 }
43663 target := &ret
43664 if err := gensupport.DecodeResponse(target, res); err != nil {
43665 return nil, err
43666 }
43667 return ret, nil
43668 }
43669
43670 type ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall struct {
43671 s *Service
43672 conversation string
43673 googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
43674 urlParams_ gensupport.URLParams
43675 ctx_ context.Context
43676 header_ http.Header
43677 }
43678
43679
43680
43681
43682
43683
43684
43685 func (r *ProjectsLocationsConversationsSuggestionsService) SuggestConversationSummary(conversation string, googleclouddialogflowv2beta1suggestconversationsummaryrequest *GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
43686 c := &ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43687 c.conversation = conversation
43688 c.googleclouddialogflowv2beta1suggestconversationsummaryrequest = googleclouddialogflowv2beta1suggestconversationsummaryrequest
43689 return c
43690 }
43691
43692
43693
43694
43695 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
43696 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43697 return c
43698 }
43699
43700
43701 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Context(ctx context.Context) *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall {
43702 c.ctx_ = ctx
43703 return c
43704 }
43705
43706
43707
43708 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Header() http.Header {
43709 if c.header_ == nil {
43710 c.header_ = make(http.Header)
43711 }
43712 return c.header_
43713 }
43714
43715 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) doRequest(alt string) (*http.Response, error) {
43716 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43717 var body io.Reader = nil
43718 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1suggestconversationsummaryrequest)
43719 if err != nil {
43720 return nil, err
43721 }
43722 c.urlParams_.Set("alt", alt)
43723 c.urlParams_.Set("prettyPrint", "false")
43724 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+conversation}/suggestions:suggestConversationSummary")
43725 urls += "?" + c.urlParams_.Encode()
43726 req, err := http.NewRequest("POST", urls, body)
43727 if err != nil {
43728 return nil, err
43729 }
43730 req.Header = reqHeaders
43731 googleapi.Expand(req.URL, map[string]string{
43732 "conversation": c.conversation,
43733 })
43734 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43735 }
43736
43737
43738
43739
43740
43741
43742
43743 func (c *ProjectsLocationsConversationsSuggestionsSuggestConversationSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse, error) {
43744 gensupport.SetOptions(c.urlParams_, opts...)
43745 res, err := c.doRequest("json")
43746 if res != nil && res.StatusCode == http.StatusNotModified {
43747 if res.Body != nil {
43748 res.Body.Close()
43749 }
43750 return nil, gensupport.WrapError(&googleapi.Error{
43751 Code: res.StatusCode,
43752 Header: res.Header,
43753 })
43754 }
43755 if err != nil {
43756 return nil, err
43757 }
43758 defer googleapi.CloseBody(res)
43759 if err := googleapi.CheckResponse(res); err != nil {
43760 return nil, gensupport.WrapError(err)
43761 }
43762 ret := &GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse{
43763 ServerResponse: googleapi.ServerResponse{
43764 Header: res.Header,
43765 HTTPStatusCode: res.StatusCode,
43766 },
43767 }
43768 target := &ret
43769 if err := gensupport.DecodeResponse(target, res); err != nil {
43770 return nil, err
43771 }
43772 return ret, nil
43773 }
43774
43775 type ProjectsLocationsKnowledgeBasesCreateCall struct {
43776 s *Service
43777 parent string
43778 googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
43779 urlParams_ gensupport.URLParams
43780 ctx_ context.Context
43781 header_ http.Header
43782 }
43783
43784
43785
43786
43787
43788
43789 func (r *ProjectsLocationsKnowledgeBasesService) Create(parent string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesCreateCall {
43790 c := &ProjectsLocationsKnowledgeBasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43791 c.parent = parent
43792 c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
43793 return c
43794 }
43795
43796
43797
43798
43799 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesCreateCall {
43800 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43801 return c
43802 }
43803
43804
43805 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesCreateCall {
43806 c.ctx_ = ctx
43807 return c
43808 }
43809
43810
43811
43812 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Header() http.Header {
43813 if c.header_ == nil {
43814 c.header_ = make(http.Header)
43815 }
43816 return c.header_
43817 }
43818
43819 func (c *ProjectsLocationsKnowledgeBasesCreateCall) doRequest(alt string) (*http.Response, error) {
43820 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
43821 var body io.Reader = nil
43822 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
43823 if err != nil {
43824 return nil, err
43825 }
43826 c.urlParams_.Set("alt", alt)
43827 c.urlParams_.Set("prettyPrint", "false")
43828 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
43829 urls += "?" + c.urlParams_.Encode()
43830 req, err := http.NewRequest("POST", urls, body)
43831 if err != nil {
43832 return nil, err
43833 }
43834 req.Header = reqHeaders
43835 googleapi.Expand(req.URL, map[string]string{
43836 "parent": c.parent,
43837 })
43838 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43839 }
43840
43841
43842
43843
43844
43845
43846
43847 func (c *ProjectsLocationsKnowledgeBasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
43848 gensupport.SetOptions(c.urlParams_, opts...)
43849 res, err := c.doRequest("json")
43850 if res != nil && res.StatusCode == http.StatusNotModified {
43851 if res.Body != nil {
43852 res.Body.Close()
43853 }
43854 return nil, gensupport.WrapError(&googleapi.Error{
43855 Code: res.StatusCode,
43856 Header: res.Header,
43857 })
43858 }
43859 if err != nil {
43860 return nil, err
43861 }
43862 defer googleapi.CloseBody(res)
43863 if err := googleapi.CheckResponse(res); err != nil {
43864 return nil, gensupport.WrapError(err)
43865 }
43866 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
43867 ServerResponse: googleapi.ServerResponse{
43868 Header: res.Header,
43869 HTTPStatusCode: res.StatusCode,
43870 },
43871 }
43872 target := &ret
43873 if err := gensupport.DecodeResponse(target, res); err != nil {
43874 return nil, err
43875 }
43876 return ret, nil
43877 }
43878
43879 type ProjectsLocationsKnowledgeBasesDeleteCall struct {
43880 s *Service
43881 name string
43882 urlParams_ gensupport.URLParams
43883 ctx_ context.Context
43884 header_ http.Header
43885 }
43886
43887
43888
43889
43890
43891
43892
43893 func (r *ProjectsLocationsKnowledgeBasesService) Delete(name string) *ProjectsLocationsKnowledgeBasesDeleteCall {
43894 c := &ProjectsLocationsKnowledgeBasesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
43895 c.name = name
43896 return c
43897 }
43898
43899
43900
43901 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Force(force bool) *ProjectsLocationsKnowledgeBasesDeleteCall {
43902 c.urlParams_.Set("force", fmt.Sprint(force))
43903 return c
43904 }
43905
43906
43907
43908
43909 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDeleteCall {
43910 c.urlParams_.Set("fields", googleapi.CombineFields(s))
43911 return c
43912 }
43913
43914
43915 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDeleteCall {
43916 c.ctx_ = ctx
43917 return c
43918 }
43919
43920
43921
43922 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Header() http.Header {
43923 if c.header_ == nil {
43924 c.header_ = make(http.Header)
43925 }
43926 return c.header_
43927 }
43928
43929 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) doRequest(alt string) (*http.Response, error) {
43930 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
43931 var body io.Reader = nil
43932 c.urlParams_.Set("alt", alt)
43933 c.urlParams_.Set("prettyPrint", "false")
43934 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
43935 urls += "?" + c.urlParams_.Encode()
43936 req, err := http.NewRequest("DELETE", urls, body)
43937 if err != nil {
43938 return nil, err
43939 }
43940 req.Header = reqHeaders
43941 googleapi.Expand(req.URL, map[string]string{
43942 "name": c.name,
43943 })
43944 return gensupport.SendRequest(c.ctx_, c.s.client, req)
43945 }
43946
43947
43948
43949
43950
43951
43952
43953 func (c *ProjectsLocationsKnowledgeBasesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
43954 gensupport.SetOptions(c.urlParams_, opts...)
43955 res, err := c.doRequest("json")
43956 if res != nil && res.StatusCode == http.StatusNotModified {
43957 if res.Body != nil {
43958 res.Body.Close()
43959 }
43960 return nil, gensupport.WrapError(&googleapi.Error{
43961 Code: res.StatusCode,
43962 Header: res.Header,
43963 })
43964 }
43965 if err != nil {
43966 return nil, err
43967 }
43968 defer googleapi.CloseBody(res)
43969 if err := googleapi.CheckResponse(res); err != nil {
43970 return nil, gensupport.WrapError(err)
43971 }
43972 ret := &GoogleProtobufEmpty{
43973 ServerResponse: googleapi.ServerResponse{
43974 Header: res.Header,
43975 HTTPStatusCode: res.StatusCode,
43976 },
43977 }
43978 target := &ret
43979 if err := gensupport.DecodeResponse(target, res); err != nil {
43980 return nil, err
43981 }
43982 return ret, nil
43983 }
43984
43985 type ProjectsLocationsKnowledgeBasesGetCall struct {
43986 s *Service
43987 name string
43988 urlParams_ gensupport.URLParams
43989 ifNoneMatch_ string
43990 ctx_ context.Context
43991 header_ http.Header
43992 }
43993
43994
43995
43996
43997
43998
43999
44000 func (r *ProjectsLocationsKnowledgeBasesService) Get(name string) *ProjectsLocationsKnowledgeBasesGetCall {
44001 c := &ProjectsLocationsKnowledgeBasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44002 c.name = name
44003 return c
44004 }
44005
44006
44007
44008
44009 func (c *ProjectsLocationsKnowledgeBasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesGetCall {
44010 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44011 return c
44012 }
44013
44014
44015
44016
44017 func (c *ProjectsLocationsKnowledgeBasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesGetCall {
44018 c.ifNoneMatch_ = entityTag
44019 return c
44020 }
44021
44022
44023 func (c *ProjectsLocationsKnowledgeBasesGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesGetCall {
44024 c.ctx_ = ctx
44025 return c
44026 }
44027
44028
44029
44030 func (c *ProjectsLocationsKnowledgeBasesGetCall) Header() http.Header {
44031 if c.header_ == nil {
44032 c.header_ = make(http.Header)
44033 }
44034 return c.header_
44035 }
44036
44037 func (c *ProjectsLocationsKnowledgeBasesGetCall) doRequest(alt string) (*http.Response, error) {
44038 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44039 if c.ifNoneMatch_ != "" {
44040 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44041 }
44042 var body io.Reader = nil
44043 c.urlParams_.Set("alt", alt)
44044 c.urlParams_.Set("prettyPrint", "false")
44045 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44046 urls += "?" + c.urlParams_.Encode()
44047 req, err := http.NewRequest("GET", urls, body)
44048 if err != nil {
44049 return nil, err
44050 }
44051 req.Header = reqHeaders
44052 googleapi.Expand(req.URL, map[string]string{
44053 "name": c.name,
44054 })
44055 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44056 }
44057
44058
44059
44060
44061
44062
44063
44064 func (c *ProjectsLocationsKnowledgeBasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
44065 gensupport.SetOptions(c.urlParams_, opts...)
44066 res, err := c.doRequest("json")
44067 if res != nil && res.StatusCode == http.StatusNotModified {
44068 if res.Body != nil {
44069 res.Body.Close()
44070 }
44071 return nil, gensupport.WrapError(&googleapi.Error{
44072 Code: res.StatusCode,
44073 Header: res.Header,
44074 })
44075 }
44076 if err != nil {
44077 return nil, err
44078 }
44079 defer googleapi.CloseBody(res)
44080 if err := googleapi.CheckResponse(res); err != nil {
44081 return nil, gensupport.WrapError(err)
44082 }
44083 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
44084 ServerResponse: googleapi.ServerResponse{
44085 Header: res.Header,
44086 HTTPStatusCode: res.StatusCode,
44087 },
44088 }
44089 target := &ret
44090 if err := gensupport.DecodeResponse(target, res); err != nil {
44091 return nil, err
44092 }
44093 return ret, nil
44094 }
44095
44096 type ProjectsLocationsKnowledgeBasesListCall struct {
44097 s *Service
44098 parent string
44099 urlParams_ gensupport.URLParams
44100 ifNoneMatch_ string
44101 ctx_ context.Context
44102 header_ http.Header
44103 }
44104
44105
44106
44107
44108
44109
44110
44111 func (r *ProjectsLocationsKnowledgeBasesService) List(parent string) *ProjectsLocationsKnowledgeBasesListCall {
44112 c := &ProjectsLocationsKnowledgeBasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44113 c.parent = parent
44114 return c
44115 }
44116
44117
44118
44119
44120
44121
44122
44123
44124
44125
44126
44127
44128
44129
44130 func (c *ProjectsLocationsKnowledgeBasesListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesListCall {
44131 c.urlParams_.Set("filter", filter)
44132 return c
44133 }
44134
44135
44136
44137 func (c *ProjectsLocationsKnowledgeBasesListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesListCall {
44138 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44139 return c
44140 }
44141
44142
44143
44144 func (c *ProjectsLocationsKnowledgeBasesListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesListCall {
44145 c.urlParams_.Set("pageToken", pageToken)
44146 return c
44147 }
44148
44149
44150
44151
44152 func (c *ProjectsLocationsKnowledgeBasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesListCall {
44153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44154 return c
44155 }
44156
44157
44158
44159
44160 func (c *ProjectsLocationsKnowledgeBasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesListCall {
44161 c.ifNoneMatch_ = entityTag
44162 return c
44163 }
44164
44165
44166 func (c *ProjectsLocationsKnowledgeBasesListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesListCall {
44167 c.ctx_ = ctx
44168 return c
44169 }
44170
44171
44172
44173 func (c *ProjectsLocationsKnowledgeBasesListCall) Header() http.Header {
44174 if c.header_ == nil {
44175 c.header_ = make(http.Header)
44176 }
44177 return c.header_
44178 }
44179
44180 func (c *ProjectsLocationsKnowledgeBasesListCall) doRequest(alt string) (*http.Response, error) {
44181 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44182 if c.ifNoneMatch_ != "" {
44183 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44184 }
44185 var body io.Reader = nil
44186 c.urlParams_.Set("alt", alt)
44187 c.urlParams_.Set("prettyPrint", "false")
44188 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/knowledgeBases")
44189 urls += "?" + c.urlParams_.Encode()
44190 req, err := http.NewRequest("GET", urls, body)
44191 if err != nil {
44192 return nil, err
44193 }
44194 req.Header = reqHeaders
44195 googleapi.Expand(req.URL, map[string]string{
44196 "parent": c.parent,
44197 })
44198 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44199 }
44200
44201
44202
44203
44204
44205
44206
44207
44208
44209 func (c *ProjectsLocationsKnowledgeBasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse, error) {
44210 gensupport.SetOptions(c.urlParams_, opts...)
44211 res, err := c.doRequest("json")
44212 if res != nil && res.StatusCode == http.StatusNotModified {
44213 if res.Body != nil {
44214 res.Body.Close()
44215 }
44216 return nil, gensupport.WrapError(&googleapi.Error{
44217 Code: res.StatusCode,
44218 Header: res.Header,
44219 })
44220 }
44221 if err != nil {
44222 return nil, err
44223 }
44224 defer googleapi.CloseBody(res)
44225 if err := googleapi.CheckResponse(res); err != nil {
44226 return nil, gensupport.WrapError(err)
44227 }
44228 ret := &GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse{
44229 ServerResponse: googleapi.ServerResponse{
44230 Header: res.Header,
44231 HTTPStatusCode: res.StatusCode,
44232 },
44233 }
44234 target := &ret
44235 if err := gensupport.DecodeResponse(target, res); err != nil {
44236 return nil, err
44237 }
44238 return ret, nil
44239 }
44240
44241
44242
44243
44244 func (c *ProjectsLocationsKnowledgeBasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListKnowledgeBasesResponse) error) error {
44245 c.ctx_ = ctx
44246 defer c.PageToken(c.urlParams_.Get("pageToken"))
44247 for {
44248 x, err := c.Do()
44249 if err != nil {
44250 return err
44251 }
44252 if err := f(x); err != nil {
44253 return err
44254 }
44255 if x.NextPageToken == "" {
44256 return nil
44257 }
44258 c.PageToken(x.NextPageToken)
44259 }
44260 }
44261
44262 type ProjectsLocationsKnowledgeBasesPatchCall struct {
44263 s *Service
44264 name string
44265 googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase
44266 urlParams_ gensupport.URLParams
44267 ctx_ context.Context
44268 header_ http.Header
44269 }
44270
44271
44272
44273
44274
44275
44276
44277 func (r *ProjectsLocationsKnowledgeBasesService) Patch(name string, googleclouddialogflowv2beta1knowledgebase *GoogleCloudDialogflowV2beta1KnowledgeBase) *ProjectsLocationsKnowledgeBasesPatchCall {
44278 c := &ProjectsLocationsKnowledgeBasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44279 c.name = name
44280 c.googleclouddialogflowv2beta1knowledgebase = googleclouddialogflowv2beta1knowledgebase
44281 return c
44282 }
44283
44284
44285
44286
44287 func (c *ProjectsLocationsKnowledgeBasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesPatchCall {
44288 c.urlParams_.Set("updateMask", updateMask)
44289 return c
44290 }
44291
44292
44293
44294
44295 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesPatchCall {
44296 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44297 return c
44298 }
44299
44300
44301 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesPatchCall {
44302 c.ctx_ = ctx
44303 return c
44304 }
44305
44306
44307
44308 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Header() http.Header {
44309 if c.header_ == nil {
44310 c.header_ = make(http.Header)
44311 }
44312 return c.header_
44313 }
44314
44315 func (c *ProjectsLocationsKnowledgeBasesPatchCall) doRequest(alt string) (*http.Response, error) {
44316 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44317 var body io.Reader = nil
44318 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1knowledgebase)
44319 if err != nil {
44320 return nil, err
44321 }
44322 c.urlParams_.Set("alt", alt)
44323 c.urlParams_.Set("prettyPrint", "false")
44324 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44325 urls += "?" + c.urlParams_.Encode()
44326 req, err := http.NewRequest("PATCH", urls, body)
44327 if err != nil {
44328 return nil, err
44329 }
44330 req.Header = reqHeaders
44331 googleapi.Expand(req.URL, map[string]string{
44332 "name": c.name,
44333 })
44334 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44335 }
44336
44337
44338
44339
44340
44341
44342
44343 func (c *ProjectsLocationsKnowledgeBasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1KnowledgeBase, error) {
44344 gensupport.SetOptions(c.urlParams_, opts...)
44345 res, err := c.doRequest("json")
44346 if res != nil && res.StatusCode == http.StatusNotModified {
44347 if res.Body != nil {
44348 res.Body.Close()
44349 }
44350 return nil, gensupport.WrapError(&googleapi.Error{
44351 Code: res.StatusCode,
44352 Header: res.Header,
44353 })
44354 }
44355 if err != nil {
44356 return nil, err
44357 }
44358 defer googleapi.CloseBody(res)
44359 if err := googleapi.CheckResponse(res); err != nil {
44360 return nil, gensupport.WrapError(err)
44361 }
44362 ret := &GoogleCloudDialogflowV2beta1KnowledgeBase{
44363 ServerResponse: googleapi.ServerResponse{
44364 Header: res.Header,
44365 HTTPStatusCode: res.StatusCode,
44366 },
44367 }
44368 target := &ret
44369 if err := gensupport.DecodeResponse(target, res); err != nil {
44370 return nil, err
44371 }
44372 return ret, nil
44373 }
44374
44375 type ProjectsLocationsKnowledgeBasesDocumentsCreateCall struct {
44376 s *Service
44377 parent string
44378 googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
44379 urlParams_ gensupport.URLParams
44380 ctx_ context.Context
44381 header_ http.Header
44382 }
44383
44384
44385
44386
44387
44388
44389
44390
44391
44392
44393 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Create(parent string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
44394 c := &ProjectsLocationsKnowledgeBasesDocumentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44395 c.parent = parent
44396 c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
44397 return c
44398 }
44399
44400
44401
44402
44403
44404 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) ImportGcsCustomMetadata(importGcsCustomMetadata bool) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
44405 c.urlParams_.Set("importGcsCustomMetadata", fmt.Sprint(importGcsCustomMetadata))
44406 return c
44407 }
44408
44409
44410
44411
44412 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
44413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44414 return c
44415 }
44416
44417
44418 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsCreateCall {
44419 c.ctx_ = ctx
44420 return c
44421 }
44422
44423
44424
44425 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Header() http.Header {
44426 if c.header_ == nil {
44427 c.header_ = make(http.Header)
44428 }
44429 return c.header_
44430 }
44431
44432 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) doRequest(alt string) (*http.Response, error) {
44433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44434 var body io.Reader = nil
44435 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
44436 if err != nil {
44437 return nil, err
44438 }
44439 c.urlParams_.Set("alt", alt)
44440 c.urlParams_.Set("prettyPrint", "false")
44441 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
44442 urls += "?" + c.urlParams_.Encode()
44443 req, err := http.NewRequest("POST", urls, body)
44444 if err != nil {
44445 return nil, err
44446 }
44447 req.Header = reqHeaders
44448 googleapi.Expand(req.URL, map[string]string{
44449 "parent": c.parent,
44450 })
44451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44452 }
44453
44454
44455
44456
44457
44458
44459
44460 func (c *ProjectsLocationsKnowledgeBasesDocumentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
44461 gensupport.SetOptions(c.urlParams_, opts...)
44462 res, err := c.doRequest("json")
44463 if res != nil && res.StatusCode == http.StatusNotModified {
44464 if res.Body != nil {
44465 res.Body.Close()
44466 }
44467 return nil, gensupport.WrapError(&googleapi.Error{
44468 Code: res.StatusCode,
44469 Header: res.Header,
44470 })
44471 }
44472 if err != nil {
44473 return nil, err
44474 }
44475 defer googleapi.CloseBody(res)
44476 if err := googleapi.CheckResponse(res); err != nil {
44477 return nil, gensupport.WrapError(err)
44478 }
44479 ret := &GoogleLongrunningOperation{
44480 ServerResponse: googleapi.ServerResponse{
44481 Header: res.Header,
44482 HTTPStatusCode: res.StatusCode,
44483 },
44484 }
44485 target := &ret
44486 if err := gensupport.DecodeResponse(target, res); err != nil {
44487 return nil, err
44488 }
44489 return ret, nil
44490 }
44491
44492 type ProjectsLocationsKnowledgeBasesDocumentsDeleteCall struct {
44493 s *Service
44494 name string
44495 urlParams_ gensupport.URLParams
44496 ctx_ context.Context
44497 header_ http.Header
44498 }
44499
44500
44501
44502
44503
44504
44505
44506
44507
44508
44509
44510
44511 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Delete(name string) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
44512 c := &ProjectsLocationsKnowledgeBasesDocumentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44513 c.name = name
44514 return c
44515 }
44516
44517
44518
44519
44520 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
44521 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44522 return c
44523 }
44524
44525
44526 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall {
44527 c.ctx_ = ctx
44528 return c
44529 }
44530
44531
44532
44533 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Header() http.Header {
44534 if c.header_ == nil {
44535 c.header_ = make(http.Header)
44536 }
44537 return c.header_
44538 }
44539
44540 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) doRequest(alt string) (*http.Response, error) {
44541 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44542 var body io.Reader = nil
44543 c.urlParams_.Set("alt", alt)
44544 c.urlParams_.Set("prettyPrint", "false")
44545 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44546 urls += "?" + c.urlParams_.Encode()
44547 req, err := http.NewRequest("DELETE", urls, body)
44548 if err != nil {
44549 return nil, err
44550 }
44551 req.Header = reqHeaders
44552 googleapi.Expand(req.URL, map[string]string{
44553 "name": c.name,
44554 })
44555 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44556 }
44557
44558
44559
44560
44561
44562
44563
44564 func (c *ProjectsLocationsKnowledgeBasesDocumentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
44565 gensupport.SetOptions(c.urlParams_, opts...)
44566 res, err := c.doRequest("json")
44567 if res != nil && res.StatusCode == http.StatusNotModified {
44568 if res.Body != nil {
44569 res.Body.Close()
44570 }
44571 return nil, gensupport.WrapError(&googleapi.Error{
44572 Code: res.StatusCode,
44573 Header: res.Header,
44574 })
44575 }
44576 if err != nil {
44577 return nil, err
44578 }
44579 defer googleapi.CloseBody(res)
44580 if err := googleapi.CheckResponse(res); err != nil {
44581 return nil, gensupport.WrapError(err)
44582 }
44583 ret := &GoogleLongrunningOperation{
44584 ServerResponse: googleapi.ServerResponse{
44585 Header: res.Header,
44586 HTTPStatusCode: res.StatusCode,
44587 },
44588 }
44589 target := &ret
44590 if err := gensupport.DecodeResponse(target, res); err != nil {
44591 return nil, err
44592 }
44593 return ret, nil
44594 }
44595
44596 type ProjectsLocationsKnowledgeBasesDocumentsGetCall struct {
44597 s *Service
44598 name string
44599 urlParams_ gensupport.URLParams
44600 ifNoneMatch_ string
44601 ctx_ context.Context
44602 header_ http.Header
44603 }
44604
44605
44606
44607
44608
44609
44610
44611 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Get(name string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
44612 c := &ProjectsLocationsKnowledgeBasesDocumentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44613 c.name = name
44614 return c
44615 }
44616
44617
44618
44619
44620 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
44621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44622 return c
44623 }
44624
44625
44626
44627
44628 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
44629 c.ifNoneMatch_ = entityTag
44630 return c
44631 }
44632
44633
44634 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsGetCall {
44635 c.ctx_ = ctx
44636 return c
44637 }
44638
44639
44640
44641 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Header() http.Header {
44642 if c.header_ == nil {
44643 c.header_ = make(http.Header)
44644 }
44645 return c.header_
44646 }
44647
44648 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) doRequest(alt string) (*http.Response, error) {
44649 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44650 if c.ifNoneMatch_ != "" {
44651 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44652 }
44653 var body io.Reader = nil
44654 c.urlParams_.Set("alt", alt)
44655 c.urlParams_.Set("prettyPrint", "false")
44656 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
44657 urls += "?" + c.urlParams_.Encode()
44658 req, err := http.NewRequest("GET", urls, body)
44659 if err != nil {
44660 return nil, err
44661 }
44662 req.Header = reqHeaders
44663 googleapi.Expand(req.URL, map[string]string{
44664 "name": c.name,
44665 })
44666 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44667 }
44668
44669
44670
44671
44672
44673
44674
44675 func (c *ProjectsLocationsKnowledgeBasesDocumentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1Document, error) {
44676 gensupport.SetOptions(c.urlParams_, opts...)
44677 res, err := c.doRequest("json")
44678 if res != nil && res.StatusCode == http.StatusNotModified {
44679 if res.Body != nil {
44680 res.Body.Close()
44681 }
44682 return nil, gensupport.WrapError(&googleapi.Error{
44683 Code: res.StatusCode,
44684 Header: res.Header,
44685 })
44686 }
44687 if err != nil {
44688 return nil, err
44689 }
44690 defer googleapi.CloseBody(res)
44691 if err := googleapi.CheckResponse(res); err != nil {
44692 return nil, gensupport.WrapError(err)
44693 }
44694 ret := &GoogleCloudDialogflowV2beta1Document{
44695 ServerResponse: googleapi.ServerResponse{
44696 Header: res.Header,
44697 HTTPStatusCode: res.StatusCode,
44698 },
44699 }
44700 target := &ret
44701 if err := gensupport.DecodeResponse(target, res); err != nil {
44702 return nil, err
44703 }
44704 return ret, nil
44705 }
44706
44707 type ProjectsLocationsKnowledgeBasesDocumentsImportCall struct {
44708 s *Service
44709 parent string
44710 googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest
44711 urlParams_ gensupport.URLParams
44712 ctx_ context.Context
44713 header_ http.Header
44714 }
44715
44716
44717
44718
44719
44720
44721
44722
44723
44724
44725 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Import(parent string, googleclouddialogflowv2beta1importdocumentsrequest *GoogleCloudDialogflowV2beta1ImportDocumentsRequest) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
44726 c := &ProjectsLocationsKnowledgeBasesDocumentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44727 c.parent = parent
44728 c.googleclouddialogflowv2beta1importdocumentsrequest = googleclouddialogflowv2beta1importdocumentsrequest
44729 return c
44730 }
44731
44732
44733
44734
44735 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
44736 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44737 return c
44738 }
44739
44740
44741 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsImportCall {
44742 c.ctx_ = ctx
44743 return c
44744 }
44745
44746
44747
44748 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Header() http.Header {
44749 if c.header_ == nil {
44750 c.header_ = make(http.Header)
44751 }
44752 return c.header_
44753 }
44754
44755 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) doRequest(alt string) (*http.Response, error) {
44756 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
44757 var body io.Reader = nil
44758 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1importdocumentsrequest)
44759 if err != nil {
44760 return nil, err
44761 }
44762 c.urlParams_.Set("alt", alt)
44763 c.urlParams_.Set("prettyPrint", "false")
44764 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents:import")
44765 urls += "?" + c.urlParams_.Encode()
44766 req, err := http.NewRequest("POST", urls, body)
44767 if err != nil {
44768 return nil, err
44769 }
44770 req.Header = reqHeaders
44771 googleapi.Expand(req.URL, map[string]string{
44772 "parent": c.parent,
44773 })
44774 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44775 }
44776
44777
44778
44779
44780
44781
44782
44783 func (c *ProjectsLocationsKnowledgeBasesDocumentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
44784 gensupport.SetOptions(c.urlParams_, opts...)
44785 res, err := c.doRequest("json")
44786 if res != nil && res.StatusCode == http.StatusNotModified {
44787 if res.Body != nil {
44788 res.Body.Close()
44789 }
44790 return nil, gensupport.WrapError(&googleapi.Error{
44791 Code: res.StatusCode,
44792 Header: res.Header,
44793 })
44794 }
44795 if err != nil {
44796 return nil, err
44797 }
44798 defer googleapi.CloseBody(res)
44799 if err := googleapi.CheckResponse(res); err != nil {
44800 return nil, gensupport.WrapError(err)
44801 }
44802 ret := &GoogleLongrunningOperation{
44803 ServerResponse: googleapi.ServerResponse{
44804 Header: res.Header,
44805 HTTPStatusCode: res.StatusCode,
44806 },
44807 }
44808 target := &ret
44809 if err := gensupport.DecodeResponse(target, res); err != nil {
44810 return nil, err
44811 }
44812 return ret, nil
44813 }
44814
44815 type ProjectsLocationsKnowledgeBasesDocumentsListCall struct {
44816 s *Service
44817 parent string
44818 urlParams_ gensupport.URLParams
44819 ifNoneMatch_ string
44820 ctx_ context.Context
44821 header_ http.Header
44822 }
44823
44824
44825
44826
44827
44828
44829
44830 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) List(parent string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44831 c := &ProjectsLocationsKnowledgeBasesDocumentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44832 c.parent = parent
44833 return c
44834 }
44835
44836
44837
44838
44839
44840
44841
44842
44843
44844
44845
44846 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Filter(filter string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44847 c.urlParams_.Set("filter", filter)
44848 return c
44849 }
44850
44851
44852
44853 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageSize(pageSize int64) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44854 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
44855 return c
44856 }
44857
44858
44859
44860 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) PageToken(pageToken string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44861 c.urlParams_.Set("pageToken", pageToken)
44862 return c
44863 }
44864
44865
44866
44867
44868 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44869 c.urlParams_.Set("fields", googleapi.CombineFields(s))
44870 return c
44871 }
44872
44873
44874
44875
44876 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44877 c.ifNoneMatch_ = entityTag
44878 return c
44879 }
44880
44881
44882 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsListCall {
44883 c.ctx_ = ctx
44884 return c
44885 }
44886
44887
44888
44889 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Header() http.Header {
44890 if c.header_ == nil {
44891 c.header_ = make(http.Header)
44892 }
44893 return c.header_
44894 }
44895
44896 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) doRequest(alt string) (*http.Response, error) {
44897 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
44898 if c.ifNoneMatch_ != "" {
44899 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
44900 }
44901 var body io.Reader = nil
44902 c.urlParams_.Set("alt", alt)
44903 c.urlParams_.Set("prettyPrint", "false")
44904 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/documents")
44905 urls += "?" + c.urlParams_.Encode()
44906 req, err := http.NewRequest("GET", urls, body)
44907 if err != nil {
44908 return nil, err
44909 }
44910 req.Header = reqHeaders
44911 googleapi.Expand(req.URL, map[string]string{
44912 "parent": c.parent,
44913 })
44914 return gensupport.SendRequest(c.ctx_, c.s.client, req)
44915 }
44916
44917
44918
44919
44920
44921
44922
44923 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1ListDocumentsResponse, error) {
44924 gensupport.SetOptions(c.urlParams_, opts...)
44925 res, err := c.doRequest("json")
44926 if res != nil && res.StatusCode == http.StatusNotModified {
44927 if res.Body != nil {
44928 res.Body.Close()
44929 }
44930 return nil, gensupport.WrapError(&googleapi.Error{
44931 Code: res.StatusCode,
44932 Header: res.Header,
44933 })
44934 }
44935 if err != nil {
44936 return nil, err
44937 }
44938 defer googleapi.CloseBody(res)
44939 if err := googleapi.CheckResponse(res); err != nil {
44940 return nil, gensupport.WrapError(err)
44941 }
44942 ret := &GoogleCloudDialogflowV2beta1ListDocumentsResponse{
44943 ServerResponse: googleapi.ServerResponse{
44944 Header: res.Header,
44945 HTTPStatusCode: res.StatusCode,
44946 },
44947 }
44948 target := &ret
44949 if err := gensupport.DecodeResponse(target, res); err != nil {
44950 return nil, err
44951 }
44952 return ret, nil
44953 }
44954
44955
44956
44957
44958 func (c *ProjectsLocationsKnowledgeBasesDocumentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowV2beta1ListDocumentsResponse) error) error {
44959 c.ctx_ = ctx
44960 defer c.PageToken(c.urlParams_.Get("pageToken"))
44961 for {
44962 x, err := c.Do()
44963 if err != nil {
44964 return err
44965 }
44966 if err := f(x); err != nil {
44967 return err
44968 }
44969 if x.NextPageToken == "" {
44970 return nil
44971 }
44972 c.PageToken(x.NextPageToken)
44973 }
44974 }
44975
44976 type ProjectsLocationsKnowledgeBasesDocumentsPatchCall struct {
44977 s *Service
44978 name string
44979 googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document
44980 urlParams_ gensupport.URLParams
44981 ctx_ context.Context
44982 header_ http.Header
44983 }
44984
44985
44986
44987
44988
44989
44990
44991
44992
44993
44994
44995
44996 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Patch(name string, googleclouddialogflowv2beta1document *GoogleCloudDialogflowV2beta1Document) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
44997 c := &ProjectsLocationsKnowledgeBasesDocumentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
44998 c.name = name
44999 c.googleclouddialogflowv2beta1document = googleclouddialogflowv2beta1document
45000 return c
45001 }
45002
45003
45004
45005
45006 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
45007 c.urlParams_.Set("updateMask", updateMask)
45008 return c
45009 }
45010
45011
45012
45013
45014 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
45015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45016 return c
45017 }
45018
45019
45020 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsPatchCall {
45021 c.ctx_ = ctx
45022 return c
45023 }
45024
45025
45026
45027 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Header() http.Header {
45028 if c.header_ == nil {
45029 c.header_ = make(http.Header)
45030 }
45031 return c.header_
45032 }
45033
45034 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) doRequest(alt string) (*http.Response, error) {
45035 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45036 var body io.Reader = nil
45037 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1document)
45038 if err != nil {
45039 return nil, err
45040 }
45041 c.urlParams_.Set("alt", alt)
45042 c.urlParams_.Set("prettyPrint", "false")
45043 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45044 urls += "?" + c.urlParams_.Encode()
45045 req, err := http.NewRequest("PATCH", urls, body)
45046 if err != nil {
45047 return nil, err
45048 }
45049 req.Header = reqHeaders
45050 googleapi.Expand(req.URL, map[string]string{
45051 "name": c.name,
45052 })
45053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45054 }
45055
45056
45057
45058
45059
45060
45061
45062 func (c *ProjectsLocationsKnowledgeBasesDocumentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
45063 gensupport.SetOptions(c.urlParams_, opts...)
45064 res, err := c.doRequest("json")
45065 if res != nil && res.StatusCode == http.StatusNotModified {
45066 if res.Body != nil {
45067 res.Body.Close()
45068 }
45069 return nil, gensupport.WrapError(&googleapi.Error{
45070 Code: res.StatusCode,
45071 Header: res.Header,
45072 })
45073 }
45074 if err != nil {
45075 return nil, err
45076 }
45077 defer googleapi.CloseBody(res)
45078 if err := googleapi.CheckResponse(res); err != nil {
45079 return nil, gensupport.WrapError(err)
45080 }
45081 ret := &GoogleLongrunningOperation{
45082 ServerResponse: googleapi.ServerResponse{
45083 Header: res.Header,
45084 HTTPStatusCode: res.StatusCode,
45085 },
45086 }
45087 target := &ret
45088 if err := gensupport.DecodeResponse(target, res); err != nil {
45089 return nil, err
45090 }
45091 return ret, nil
45092 }
45093
45094 type ProjectsLocationsKnowledgeBasesDocumentsReloadCall struct {
45095 s *Service
45096 name string
45097 googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest
45098 urlParams_ gensupport.URLParams
45099 ctx_ context.Context
45100 header_ http.Header
45101 }
45102
45103
45104
45105
45106
45107
45108
45109
45110
45111
45112
45113
45114
45115
45116
45117
45118
45119 func (r *ProjectsLocationsKnowledgeBasesDocumentsService) Reload(name string, googleclouddialogflowv2beta1reloaddocumentrequest *GoogleCloudDialogflowV2beta1ReloadDocumentRequest) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
45120 c := &ProjectsLocationsKnowledgeBasesDocumentsReloadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45121 c.name = name
45122 c.googleclouddialogflowv2beta1reloaddocumentrequest = googleclouddialogflowv2beta1reloaddocumentrequest
45123 return c
45124 }
45125
45126
45127
45128
45129 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Fields(s ...googleapi.Field) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
45130 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45131 return c
45132 }
45133
45134
45135 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Context(ctx context.Context) *ProjectsLocationsKnowledgeBasesDocumentsReloadCall {
45136 c.ctx_ = ctx
45137 return c
45138 }
45139
45140
45141
45142 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Header() http.Header {
45143 if c.header_ == nil {
45144 c.header_ = make(http.Header)
45145 }
45146 return c.header_
45147 }
45148
45149 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) doRequest(alt string) (*http.Response, error) {
45150 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45151 var body io.Reader = nil
45152 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1reloaddocumentrequest)
45153 if err != nil {
45154 return nil, err
45155 }
45156 c.urlParams_.Set("alt", alt)
45157 c.urlParams_.Set("prettyPrint", "false")
45158 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:reload")
45159 urls += "?" + c.urlParams_.Encode()
45160 req, err := http.NewRequest("POST", urls, body)
45161 if err != nil {
45162 return nil, err
45163 }
45164 req.Header = reqHeaders
45165 googleapi.Expand(req.URL, map[string]string{
45166 "name": c.name,
45167 })
45168 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45169 }
45170
45171
45172
45173
45174
45175
45176
45177 func (c *ProjectsLocationsKnowledgeBasesDocumentsReloadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
45178 gensupport.SetOptions(c.urlParams_, opts...)
45179 res, err := c.doRequest("json")
45180 if res != nil && res.StatusCode == http.StatusNotModified {
45181 if res.Body != nil {
45182 res.Body.Close()
45183 }
45184 return nil, gensupport.WrapError(&googleapi.Error{
45185 Code: res.StatusCode,
45186 Header: res.Header,
45187 })
45188 }
45189 if err != nil {
45190 return nil, err
45191 }
45192 defer googleapi.CloseBody(res)
45193 if err := googleapi.CheckResponse(res); err != nil {
45194 return nil, gensupport.WrapError(err)
45195 }
45196 ret := &GoogleLongrunningOperation{
45197 ServerResponse: googleapi.ServerResponse{
45198 Header: res.Header,
45199 HTTPStatusCode: res.StatusCode,
45200 },
45201 }
45202 target := &ret
45203 if err := gensupport.DecodeResponse(target, res); err != nil {
45204 return nil, err
45205 }
45206 return ret, nil
45207 }
45208
45209 type ProjectsLocationsOperationsCancelCall struct {
45210 s *Service
45211 name string
45212 urlParams_ gensupport.URLParams
45213 ctx_ context.Context
45214 header_ http.Header
45215 }
45216
45217
45218
45219
45220
45221
45222
45223
45224
45225
45226
45227
45228 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
45229 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45230 c.name = name
45231 return c
45232 }
45233
45234
45235
45236
45237 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
45238 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45239 return c
45240 }
45241
45242
45243 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
45244 c.ctx_ = ctx
45245 return c
45246 }
45247
45248
45249
45250 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
45251 if c.header_ == nil {
45252 c.header_ = make(http.Header)
45253 }
45254 return c.header_
45255 }
45256
45257 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
45258 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45259 var body io.Reader = nil
45260 c.urlParams_.Set("alt", alt)
45261 c.urlParams_.Set("prettyPrint", "false")
45262 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
45263 urls += "?" + c.urlParams_.Encode()
45264 req, err := http.NewRequest("POST", urls, body)
45265 if err != nil {
45266 return nil, err
45267 }
45268 req.Header = reqHeaders
45269 googleapi.Expand(req.URL, map[string]string{
45270 "name": c.name,
45271 })
45272 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45273 }
45274
45275
45276
45277
45278
45279
45280
45281 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45282 gensupport.SetOptions(c.urlParams_, opts...)
45283 res, err := c.doRequest("json")
45284 if res != nil && res.StatusCode == http.StatusNotModified {
45285 if res.Body != nil {
45286 res.Body.Close()
45287 }
45288 return nil, gensupport.WrapError(&googleapi.Error{
45289 Code: res.StatusCode,
45290 Header: res.Header,
45291 })
45292 }
45293 if err != nil {
45294 return nil, err
45295 }
45296 defer googleapi.CloseBody(res)
45297 if err := googleapi.CheckResponse(res); err != nil {
45298 return nil, gensupport.WrapError(err)
45299 }
45300 ret := &GoogleProtobufEmpty{
45301 ServerResponse: googleapi.ServerResponse{
45302 Header: res.Header,
45303 HTTPStatusCode: res.StatusCode,
45304 },
45305 }
45306 target := &ret
45307 if err := gensupport.DecodeResponse(target, res); err != nil {
45308 return nil, err
45309 }
45310 return ret, nil
45311 }
45312
45313 type ProjectsLocationsOperationsGetCall struct {
45314 s *Service
45315 name string
45316 urlParams_ gensupport.URLParams
45317 ifNoneMatch_ string
45318 ctx_ context.Context
45319 header_ http.Header
45320 }
45321
45322
45323
45324
45325
45326
45327 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
45328 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45329 c.name = name
45330 return c
45331 }
45332
45333
45334
45335
45336 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
45337 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45338 return c
45339 }
45340
45341
45342
45343
45344 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
45345 c.ifNoneMatch_ = entityTag
45346 return c
45347 }
45348
45349
45350 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
45351 c.ctx_ = ctx
45352 return c
45353 }
45354
45355
45356
45357 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
45358 if c.header_ == nil {
45359 c.header_ = make(http.Header)
45360 }
45361 return c.header_
45362 }
45363
45364 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
45365 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45366 if c.ifNoneMatch_ != "" {
45367 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45368 }
45369 var body io.Reader = nil
45370 c.urlParams_.Set("alt", alt)
45371 c.urlParams_.Set("prettyPrint", "false")
45372 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45373 urls += "?" + c.urlParams_.Encode()
45374 req, err := http.NewRequest("GET", urls, body)
45375 if err != nil {
45376 return nil, err
45377 }
45378 req.Header = reqHeaders
45379 googleapi.Expand(req.URL, map[string]string{
45380 "name": c.name,
45381 })
45382 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45383 }
45384
45385
45386
45387
45388
45389
45390
45391 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
45392 gensupport.SetOptions(c.urlParams_, opts...)
45393 res, err := c.doRequest("json")
45394 if res != nil && res.StatusCode == http.StatusNotModified {
45395 if res.Body != nil {
45396 res.Body.Close()
45397 }
45398 return nil, gensupport.WrapError(&googleapi.Error{
45399 Code: res.StatusCode,
45400 Header: res.Header,
45401 })
45402 }
45403 if err != nil {
45404 return nil, err
45405 }
45406 defer googleapi.CloseBody(res)
45407 if err := googleapi.CheckResponse(res); err != nil {
45408 return nil, gensupport.WrapError(err)
45409 }
45410 ret := &GoogleLongrunningOperation{
45411 ServerResponse: googleapi.ServerResponse{
45412 Header: res.Header,
45413 HTTPStatusCode: res.StatusCode,
45414 },
45415 }
45416 target := &ret
45417 if err := gensupport.DecodeResponse(target, res); err != nil {
45418 return nil, err
45419 }
45420 return ret, nil
45421 }
45422
45423 type ProjectsLocationsOperationsListCall struct {
45424 s *Service
45425 name string
45426 urlParams_ gensupport.URLParams
45427 ifNoneMatch_ string
45428 ctx_ context.Context
45429 header_ http.Header
45430 }
45431
45432
45433
45434
45435
45436 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
45437 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45438 c.name = name
45439 return c
45440 }
45441
45442
45443 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
45444 c.urlParams_.Set("filter", filter)
45445 return c
45446 }
45447
45448
45449
45450 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
45451 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
45452 return c
45453 }
45454
45455
45456
45457 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
45458 c.urlParams_.Set("pageToken", pageToken)
45459 return c
45460 }
45461
45462
45463
45464
45465 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
45466 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45467 return c
45468 }
45469
45470
45471
45472
45473 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
45474 c.ifNoneMatch_ = entityTag
45475 return c
45476 }
45477
45478
45479 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
45480 c.ctx_ = ctx
45481 return c
45482 }
45483
45484
45485
45486 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
45487 if c.header_ == nil {
45488 c.header_ = make(http.Header)
45489 }
45490 return c.header_
45491 }
45492
45493 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
45494 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45495 if c.ifNoneMatch_ != "" {
45496 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45497 }
45498 var body io.Reader = nil
45499 c.urlParams_.Set("alt", alt)
45500 c.urlParams_.Set("prettyPrint", "false")
45501 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
45502 urls += "?" + c.urlParams_.Encode()
45503 req, err := http.NewRequest("GET", urls, body)
45504 if err != nil {
45505 return nil, err
45506 }
45507 req.Header = reqHeaders
45508 googleapi.Expand(req.URL, map[string]string{
45509 "name": c.name,
45510 })
45511 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45512 }
45513
45514
45515
45516
45517
45518
45519
45520 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
45521 gensupport.SetOptions(c.urlParams_, opts...)
45522 res, err := c.doRequest("json")
45523 if res != nil && res.StatusCode == http.StatusNotModified {
45524 if res.Body != nil {
45525 res.Body.Close()
45526 }
45527 return nil, gensupport.WrapError(&googleapi.Error{
45528 Code: res.StatusCode,
45529 Header: res.Header,
45530 })
45531 }
45532 if err != nil {
45533 return nil, err
45534 }
45535 defer googleapi.CloseBody(res)
45536 if err := googleapi.CheckResponse(res); err != nil {
45537 return nil, gensupport.WrapError(err)
45538 }
45539 ret := &GoogleLongrunningListOperationsResponse{
45540 ServerResponse: googleapi.ServerResponse{
45541 Header: res.Header,
45542 HTTPStatusCode: res.StatusCode,
45543 },
45544 }
45545 target := &ret
45546 if err := gensupport.DecodeResponse(target, res); err != nil {
45547 return nil, err
45548 }
45549 return ret, nil
45550 }
45551
45552
45553
45554
45555 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
45556 c.ctx_ = ctx
45557 defer c.PageToken(c.urlParams_.Get("pageToken"))
45558 for {
45559 x, err := c.Do()
45560 if err != nil {
45561 return err
45562 }
45563 if err := f(x); err != nil {
45564 return err
45565 }
45566 if x.NextPageToken == "" {
45567 return nil
45568 }
45569 c.PageToken(x.NextPageToken)
45570 }
45571 }
45572
45573 type ProjectsLocationsSuggestionsGenerateStatelessSummaryCall struct {
45574 s *Service
45575 parent string
45576 googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
45577 urlParams_ gensupport.URLParams
45578 ctx_ context.Context
45579 header_ http.Header
45580 }
45581
45582
45583
45584
45585
45586
45587 func (r *ProjectsLocationsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
45588 c := &ProjectsLocationsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45589 c.parent = parent
45590 c.googleclouddialogflowv2beta1generatestatelesssummaryrequest = googleclouddialogflowv2beta1generatestatelesssummaryrequest
45591 return c
45592 }
45593
45594
45595
45596
45597 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
45598 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45599 return c
45600 }
45601
45602
45603 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall {
45604 c.ctx_ = ctx
45605 return c
45606 }
45607
45608
45609
45610 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
45611 if c.header_ == nil {
45612 c.header_ = make(http.Header)
45613 }
45614 return c.header_
45615 }
45616
45617 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
45618 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45619 var body io.Reader = nil
45620 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1generatestatelesssummaryrequest)
45621 if err != nil {
45622 return nil, err
45623 }
45624 c.urlParams_.Set("alt", alt)
45625 c.urlParams_.Set("prettyPrint", "false")
45626 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:generateStatelessSummary")
45627 urls += "?" + c.urlParams_.Encode()
45628 req, err := http.NewRequest("POST", urls, body)
45629 if err != nil {
45630 return nil, err
45631 }
45632 req.Header = reqHeaders
45633 googleapi.Expand(req.URL, map[string]string{
45634 "parent": c.parent,
45635 })
45636 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45637 }
45638
45639
45640
45641
45642
45643
45644
45645 func (c *ProjectsLocationsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse, error) {
45646 gensupport.SetOptions(c.urlParams_, opts...)
45647 res, err := c.doRequest("json")
45648 if res != nil && res.StatusCode == http.StatusNotModified {
45649 if res.Body != nil {
45650 res.Body.Close()
45651 }
45652 return nil, gensupport.WrapError(&googleapi.Error{
45653 Code: res.StatusCode,
45654 Header: res.Header,
45655 })
45656 }
45657 if err != nil {
45658 return nil, err
45659 }
45660 defer googleapi.CloseBody(res)
45661 if err := googleapi.CheckResponse(res); err != nil {
45662 return nil, gensupport.WrapError(err)
45663 }
45664 ret := &GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse{
45665 ServerResponse: googleapi.ServerResponse{
45666 Header: res.Header,
45667 HTTPStatusCode: res.StatusCode,
45668 },
45669 }
45670 target := &ret
45671 if err := gensupport.DecodeResponse(target, res); err != nil {
45672 return nil, err
45673 }
45674 return ret, nil
45675 }
45676
45677 type ProjectsLocationsSuggestionsSearchKnowledgeCall struct {
45678 s *Service
45679 parent string
45680 googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
45681 urlParams_ gensupport.URLParams
45682 ctx_ context.Context
45683 header_ http.Header
45684 }
45685
45686
45687
45688
45689
45690
45691 func (r *ProjectsLocationsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
45692 c := &ProjectsLocationsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45693 c.parent = parent
45694 c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
45695 return c
45696 }
45697
45698
45699
45700
45701 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
45702 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45703 return c
45704 }
45705
45706
45707 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsLocationsSuggestionsSearchKnowledgeCall {
45708 c.ctx_ = ctx
45709 return c
45710 }
45711
45712
45713
45714 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Header() http.Header {
45715 if c.header_ == nil {
45716 c.header_ = make(http.Header)
45717 }
45718 return c.header_
45719 }
45720
45721 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
45722 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
45723 var body io.Reader = nil
45724 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
45725 if err != nil {
45726 return nil, err
45727 }
45728 c.urlParams_.Set("alt", alt)
45729 c.urlParams_.Set("prettyPrint", "false")
45730 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:searchKnowledge")
45731 urls += "?" + c.urlParams_.Encode()
45732 req, err := http.NewRequest("POST", urls, body)
45733 if err != nil {
45734 return nil, err
45735 }
45736 req.Header = reqHeaders
45737 googleapi.Expand(req.URL, map[string]string{
45738 "parent": c.parent,
45739 })
45740 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45741 }
45742
45743
45744
45745
45746
45747
45748
45749 func (c *ProjectsLocationsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
45750 gensupport.SetOptions(c.urlParams_, opts...)
45751 res, err := c.doRequest("json")
45752 if res != nil && res.StatusCode == http.StatusNotModified {
45753 if res.Body != nil {
45754 res.Body.Close()
45755 }
45756 return nil, gensupport.WrapError(&googleapi.Error{
45757 Code: res.StatusCode,
45758 Header: res.Header,
45759 })
45760 }
45761 if err != nil {
45762 return nil, err
45763 }
45764 defer googleapi.CloseBody(res)
45765 if err := googleapi.CheckResponse(res); err != nil {
45766 return nil, gensupport.WrapError(err)
45767 }
45768 ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
45769 ServerResponse: googleapi.ServerResponse{
45770 Header: res.Header,
45771 HTTPStatusCode: res.StatusCode,
45772 },
45773 }
45774 target := &ret
45775 if err := gensupport.DecodeResponse(target, res); err != nil {
45776 return nil, err
45777 }
45778 return ret, nil
45779 }
45780
45781 type ProjectsOperationsCancelCall struct {
45782 s *Service
45783 name string
45784 urlParams_ gensupport.URLParams
45785 ctx_ context.Context
45786 header_ http.Header
45787 }
45788
45789
45790
45791
45792
45793
45794
45795
45796
45797
45798
45799
45800 func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
45801 c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45802 c.name = name
45803 return c
45804 }
45805
45806
45807
45808
45809 func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
45810 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45811 return c
45812 }
45813
45814
45815 func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
45816 c.ctx_ = ctx
45817 return c
45818 }
45819
45820
45821
45822 func (c *ProjectsOperationsCancelCall) Header() http.Header {
45823 if c.header_ == nil {
45824 c.header_ = make(http.Header)
45825 }
45826 return c.header_
45827 }
45828
45829 func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
45830 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45831 var body io.Reader = nil
45832 c.urlParams_.Set("alt", alt)
45833 c.urlParams_.Set("prettyPrint", "false")
45834 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}:cancel")
45835 urls += "?" + c.urlParams_.Encode()
45836 req, err := http.NewRequest("POST", urls, body)
45837 if err != nil {
45838 return nil, err
45839 }
45840 req.Header = reqHeaders
45841 googleapi.Expand(req.URL, map[string]string{
45842 "name": c.name,
45843 })
45844 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45845 }
45846
45847
45848
45849
45850
45851
45852
45853 func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
45854 gensupport.SetOptions(c.urlParams_, opts...)
45855 res, err := c.doRequest("json")
45856 if res != nil && res.StatusCode == http.StatusNotModified {
45857 if res.Body != nil {
45858 res.Body.Close()
45859 }
45860 return nil, gensupport.WrapError(&googleapi.Error{
45861 Code: res.StatusCode,
45862 Header: res.Header,
45863 })
45864 }
45865 if err != nil {
45866 return nil, err
45867 }
45868 defer googleapi.CloseBody(res)
45869 if err := googleapi.CheckResponse(res); err != nil {
45870 return nil, gensupport.WrapError(err)
45871 }
45872 ret := &GoogleProtobufEmpty{
45873 ServerResponse: googleapi.ServerResponse{
45874 Header: res.Header,
45875 HTTPStatusCode: res.StatusCode,
45876 },
45877 }
45878 target := &ret
45879 if err := gensupport.DecodeResponse(target, res); err != nil {
45880 return nil, err
45881 }
45882 return ret, nil
45883 }
45884
45885 type ProjectsOperationsGetCall struct {
45886 s *Service
45887 name string
45888 urlParams_ gensupport.URLParams
45889 ifNoneMatch_ string
45890 ctx_ context.Context
45891 header_ http.Header
45892 }
45893
45894
45895
45896
45897
45898
45899 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
45900 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
45901 c.name = name
45902 return c
45903 }
45904
45905
45906
45907
45908 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
45909 c.urlParams_.Set("fields", googleapi.CombineFields(s))
45910 return c
45911 }
45912
45913
45914
45915
45916 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
45917 c.ifNoneMatch_ = entityTag
45918 return c
45919 }
45920
45921
45922 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
45923 c.ctx_ = ctx
45924 return c
45925 }
45926
45927
45928
45929 func (c *ProjectsOperationsGetCall) Header() http.Header {
45930 if c.header_ == nil {
45931 c.header_ = make(http.Header)
45932 }
45933 return c.header_
45934 }
45935
45936 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
45937 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
45938 if c.ifNoneMatch_ != "" {
45939 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
45940 }
45941 var body io.Reader = nil
45942 c.urlParams_.Set("alt", alt)
45943 c.urlParams_.Set("prettyPrint", "false")
45944 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}")
45945 urls += "?" + c.urlParams_.Encode()
45946 req, err := http.NewRequest("GET", urls, body)
45947 if err != nil {
45948 return nil, err
45949 }
45950 req.Header = reqHeaders
45951 googleapi.Expand(req.URL, map[string]string{
45952 "name": c.name,
45953 })
45954 return gensupport.SendRequest(c.ctx_, c.s.client, req)
45955 }
45956
45957
45958
45959
45960
45961
45962
45963 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
45964 gensupport.SetOptions(c.urlParams_, opts...)
45965 res, err := c.doRequest("json")
45966 if res != nil && res.StatusCode == http.StatusNotModified {
45967 if res.Body != nil {
45968 res.Body.Close()
45969 }
45970 return nil, gensupport.WrapError(&googleapi.Error{
45971 Code: res.StatusCode,
45972 Header: res.Header,
45973 })
45974 }
45975 if err != nil {
45976 return nil, err
45977 }
45978 defer googleapi.CloseBody(res)
45979 if err := googleapi.CheckResponse(res); err != nil {
45980 return nil, gensupport.WrapError(err)
45981 }
45982 ret := &GoogleLongrunningOperation{
45983 ServerResponse: googleapi.ServerResponse{
45984 Header: res.Header,
45985 HTTPStatusCode: res.StatusCode,
45986 },
45987 }
45988 target := &ret
45989 if err := gensupport.DecodeResponse(target, res); err != nil {
45990 return nil, err
45991 }
45992 return ret, nil
45993 }
45994
45995 type ProjectsOperationsListCall struct {
45996 s *Service
45997 name string
45998 urlParams_ gensupport.URLParams
45999 ifNoneMatch_ string
46000 ctx_ context.Context
46001 header_ http.Header
46002 }
46003
46004
46005
46006
46007
46008 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
46009 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46010 c.name = name
46011 return c
46012 }
46013
46014
46015 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
46016 c.urlParams_.Set("filter", filter)
46017 return c
46018 }
46019
46020
46021
46022 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
46023 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
46024 return c
46025 }
46026
46027
46028
46029 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
46030 c.urlParams_.Set("pageToken", pageToken)
46031 return c
46032 }
46033
46034
46035
46036
46037 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
46038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46039 return c
46040 }
46041
46042
46043
46044
46045 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
46046 c.ifNoneMatch_ = entityTag
46047 return c
46048 }
46049
46050
46051 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
46052 c.ctx_ = ctx
46053 return c
46054 }
46055
46056
46057
46058 func (c *ProjectsOperationsListCall) Header() http.Header {
46059 if c.header_ == nil {
46060 c.header_ = make(http.Header)
46061 }
46062 return c.header_
46063 }
46064
46065 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
46066 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
46067 if c.ifNoneMatch_ != "" {
46068 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
46069 }
46070 var body io.Reader = nil
46071 c.urlParams_.Set("alt", alt)
46072 c.urlParams_.Set("prettyPrint", "false")
46073 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+name}/operations")
46074 urls += "?" + c.urlParams_.Encode()
46075 req, err := http.NewRequest("GET", urls, body)
46076 if err != nil {
46077 return nil, err
46078 }
46079 req.Header = reqHeaders
46080 googleapi.Expand(req.URL, map[string]string{
46081 "name": c.name,
46082 })
46083 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46084 }
46085
46086
46087
46088
46089
46090
46091
46092 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
46093 gensupport.SetOptions(c.urlParams_, opts...)
46094 res, err := c.doRequest("json")
46095 if res != nil && res.StatusCode == http.StatusNotModified {
46096 if res.Body != nil {
46097 res.Body.Close()
46098 }
46099 return nil, gensupport.WrapError(&googleapi.Error{
46100 Code: res.StatusCode,
46101 Header: res.Header,
46102 })
46103 }
46104 if err != nil {
46105 return nil, err
46106 }
46107 defer googleapi.CloseBody(res)
46108 if err := googleapi.CheckResponse(res); err != nil {
46109 return nil, gensupport.WrapError(err)
46110 }
46111 ret := &GoogleLongrunningListOperationsResponse{
46112 ServerResponse: googleapi.ServerResponse{
46113 Header: res.Header,
46114 HTTPStatusCode: res.StatusCode,
46115 },
46116 }
46117 target := &ret
46118 if err := gensupport.DecodeResponse(target, res); err != nil {
46119 return nil, err
46120 }
46121 return ret, nil
46122 }
46123
46124
46125
46126
46127 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
46128 c.ctx_ = ctx
46129 defer c.PageToken(c.urlParams_.Get("pageToken"))
46130 for {
46131 x, err := c.Do()
46132 if err != nil {
46133 return err
46134 }
46135 if err := f(x); err != nil {
46136 return err
46137 }
46138 if x.NextPageToken == "" {
46139 return nil
46140 }
46141 c.PageToken(x.NextPageToken)
46142 }
46143 }
46144
46145 type ProjectsSuggestionsGenerateStatelessSummaryCall struct {
46146 s *Service
46147 parent string
46148 googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
46149 urlParams_ gensupport.URLParams
46150 ctx_ context.Context
46151 header_ http.Header
46152 }
46153
46154
46155
46156
46157
46158
46159 func (r *ProjectsSuggestionsService) GenerateStatelessSummary(parent string, googleclouddialogflowv2beta1generatestatelesssummaryrequest *GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest) *ProjectsSuggestionsGenerateStatelessSummaryCall {
46160 c := &ProjectsSuggestionsGenerateStatelessSummaryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46161 c.parent = parent
46162 c.googleclouddialogflowv2beta1generatestatelesssummaryrequest = googleclouddialogflowv2beta1generatestatelesssummaryrequest
46163 return c
46164 }
46165
46166
46167
46168
46169 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsGenerateStatelessSummaryCall {
46170 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46171 return c
46172 }
46173
46174
46175 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Context(ctx context.Context) *ProjectsSuggestionsGenerateStatelessSummaryCall {
46176 c.ctx_ = ctx
46177 return c
46178 }
46179
46180
46181
46182 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Header() http.Header {
46183 if c.header_ == nil {
46184 c.header_ = make(http.Header)
46185 }
46186 return c.header_
46187 }
46188
46189 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) doRequest(alt string) (*http.Response, error) {
46190 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46191 var body io.Reader = nil
46192 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1generatestatelesssummaryrequest)
46193 if err != nil {
46194 return nil, err
46195 }
46196 c.urlParams_.Set("alt", alt)
46197 c.urlParams_.Set("prettyPrint", "false")
46198 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:generateStatelessSummary")
46199 urls += "?" + c.urlParams_.Encode()
46200 req, err := http.NewRequest("POST", urls, body)
46201 if err != nil {
46202 return nil, err
46203 }
46204 req.Header = reqHeaders
46205 googleapi.Expand(req.URL, map[string]string{
46206 "parent": c.parent,
46207 })
46208 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46209 }
46210
46211
46212
46213
46214
46215
46216
46217 func (c *ProjectsSuggestionsGenerateStatelessSummaryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse, error) {
46218 gensupport.SetOptions(c.urlParams_, opts...)
46219 res, err := c.doRequest("json")
46220 if res != nil && res.StatusCode == http.StatusNotModified {
46221 if res.Body != nil {
46222 res.Body.Close()
46223 }
46224 return nil, gensupport.WrapError(&googleapi.Error{
46225 Code: res.StatusCode,
46226 Header: res.Header,
46227 })
46228 }
46229 if err != nil {
46230 return nil, err
46231 }
46232 defer googleapi.CloseBody(res)
46233 if err := googleapi.CheckResponse(res); err != nil {
46234 return nil, gensupport.WrapError(err)
46235 }
46236 ret := &GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse{
46237 ServerResponse: googleapi.ServerResponse{
46238 Header: res.Header,
46239 HTTPStatusCode: res.StatusCode,
46240 },
46241 }
46242 target := &ret
46243 if err := gensupport.DecodeResponse(target, res); err != nil {
46244 return nil, err
46245 }
46246 return ret, nil
46247 }
46248
46249 type ProjectsSuggestionsSearchKnowledgeCall struct {
46250 s *Service
46251 parent string
46252 googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
46253 urlParams_ gensupport.URLParams
46254 ctx_ context.Context
46255 header_ http.Header
46256 }
46257
46258
46259
46260
46261
46262
46263 func (r *ProjectsSuggestionsService) SearchKnowledge(parent string, googleclouddialogflowv2beta1searchknowledgerequest *GoogleCloudDialogflowV2beta1SearchKnowledgeRequest) *ProjectsSuggestionsSearchKnowledgeCall {
46264 c := &ProjectsSuggestionsSearchKnowledgeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
46265 c.parent = parent
46266 c.googleclouddialogflowv2beta1searchknowledgerequest = googleclouddialogflowv2beta1searchknowledgerequest
46267 return c
46268 }
46269
46270
46271
46272
46273 func (c *ProjectsSuggestionsSearchKnowledgeCall) Fields(s ...googleapi.Field) *ProjectsSuggestionsSearchKnowledgeCall {
46274 c.urlParams_.Set("fields", googleapi.CombineFields(s))
46275 return c
46276 }
46277
46278
46279 func (c *ProjectsSuggestionsSearchKnowledgeCall) Context(ctx context.Context) *ProjectsSuggestionsSearchKnowledgeCall {
46280 c.ctx_ = ctx
46281 return c
46282 }
46283
46284
46285
46286 func (c *ProjectsSuggestionsSearchKnowledgeCall) Header() http.Header {
46287 if c.header_ == nil {
46288 c.header_ = make(http.Header)
46289 }
46290 return c.header_
46291 }
46292
46293 func (c *ProjectsSuggestionsSearchKnowledgeCall) doRequest(alt string) (*http.Response, error) {
46294 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
46295 var body io.Reader = nil
46296 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowv2beta1searchknowledgerequest)
46297 if err != nil {
46298 return nil, err
46299 }
46300 c.urlParams_.Set("alt", alt)
46301 c.urlParams_.Set("prettyPrint", "false")
46302 urls := googleapi.ResolveRelative(c.s.BasePath, "v2beta1/{+parent}/suggestions:searchKnowledge")
46303 urls += "?" + c.urlParams_.Encode()
46304 req, err := http.NewRequest("POST", urls, body)
46305 if err != nil {
46306 return nil, err
46307 }
46308 req.Header = reqHeaders
46309 googleapi.Expand(req.URL, map[string]string{
46310 "parent": c.parent,
46311 })
46312 return gensupport.SendRequest(c.ctx_, c.s.client, req)
46313 }
46314
46315
46316
46317
46318
46319
46320
46321 func (c *ProjectsSuggestionsSearchKnowledgeCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowV2beta1SearchKnowledgeResponse, error) {
46322 gensupport.SetOptions(c.urlParams_, opts...)
46323 res, err := c.doRequest("json")
46324 if res != nil && res.StatusCode == http.StatusNotModified {
46325 if res.Body != nil {
46326 res.Body.Close()
46327 }
46328 return nil, gensupport.WrapError(&googleapi.Error{
46329 Code: res.StatusCode,
46330 Header: res.Header,
46331 })
46332 }
46333 if err != nil {
46334 return nil, err
46335 }
46336 defer googleapi.CloseBody(res)
46337 if err := googleapi.CheckResponse(res); err != nil {
46338 return nil, gensupport.WrapError(err)
46339 }
46340 ret := &GoogleCloudDialogflowV2beta1SearchKnowledgeResponse{
46341 ServerResponse: googleapi.ServerResponse{
46342 Header: res.Header,
46343 HTTPStatusCode: res.StatusCode,
46344 },
46345 }
46346 target := &ret
46347 if err := gensupport.DecodeResponse(target, res); err != nil {
46348 return nil, err
46349 }
46350 return ret, nil
46351 }
46352
View as plain text