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:v3"
97 const apiName = "dialogflow"
98 const apiVersion = "v3"
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.Locations = NewProjectsLocationsService(s)
171 rs.Operations = NewProjectsOperationsService(s)
172 return rs
173 }
174
175 type ProjectsService struct {
176 s *Service
177
178 Locations *ProjectsLocationsService
179
180 Operations *ProjectsOperationsService
181 }
182
183 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
184 rs := &ProjectsLocationsService{s: s}
185 rs.Agents = NewProjectsLocationsAgentsService(s)
186 rs.Operations = NewProjectsLocationsOperationsService(s)
187 rs.SecuritySettings = NewProjectsLocationsSecuritySettingsService(s)
188 return rs
189 }
190
191 type ProjectsLocationsService struct {
192 s *Service
193
194 Agents *ProjectsLocationsAgentsService
195
196 Operations *ProjectsLocationsOperationsService
197
198 SecuritySettings *ProjectsLocationsSecuritySettingsService
199 }
200
201 func NewProjectsLocationsAgentsService(s *Service) *ProjectsLocationsAgentsService {
202 rs := &ProjectsLocationsAgentsService{s: s}
203 rs.Changelogs = NewProjectsLocationsAgentsChangelogsService(s)
204 rs.EntityTypes = NewProjectsLocationsAgentsEntityTypesService(s)
205 rs.Environments = NewProjectsLocationsAgentsEnvironmentsService(s)
206 rs.Flows = NewProjectsLocationsAgentsFlowsService(s)
207 rs.Generators = NewProjectsLocationsAgentsGeneratorsService(s)
208 rs.Intents = NewProjectsLocationsAgentsIntentsService(s)
209 rs.Sessions = NewProjectsLocationsAgentsSessionsService(s)
210 rs.TestCases = NewProjectsLocationsAgentsTestCasesService(s)
211 rs.TransitionRouteGroups = NewProjectsLocationsAgentsTransitionRouteGroupsService(s)
212 rs.Webhooks = NewProjectsLocationsAgentsWebhooksService(s)
213 return rs
214 }
215
216 type ProjectsLocationsAgentsService struct {
217 s *Service
218
219 Changelogs *ProjectsLocationsAgentsChangelogsService
220
221 EntityTypes *ProjectsLocationsAgentsEntityTypesService
222
223 Environments *ProjectsLocationsAgentsEnvironmentsService
224
225 Flows *ProjectsLocationsAgentsFlowsService
226
227 Generators *ProjectsLocationsAgentsGeneratorsService
228
229 Intents *ProjectsLocationsAgentsIntentsService
230
231 Sessions *ProjectsLocationsAgentsSessionsService
232
233 TestCases *ProjectsLocationsAgentsTestCasesService
234
235 TransitionRouteGroups *ProjectsLocationsAgentsTransitionRouteGroupsService
236
237 Webhooks *ProjectsLocationsAgentsWebhooksService
238 }
239
240 func NewProjectsLocationsAgentsChangelogsService(s *Service) *ProjectsLocationsAgentsChangelogsService {
241 rs := &ProjectsLocationsAgentsChangelogsService{s: s}
242 return rs
243 }
244
245 type ProjectsLocationsAgentsChangelogsService struct {
246 s *Service
247 }
248
249 func NewProjectsLocationsAgentsEntityTypesService(s *Service) *ProjectsLocationsAgentsEntityTypesService {
250 rs := &ProjectsLocationsAgentsEntityTypesService{s: s}
251 return rs
252 }
253
254 type ProjectsLocationsAgentsEntityTypesService struct {
255 s *Service
256 }
257
258 func NewProjectsLocationsAgentsEnvironmentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsService {
259 rs := &ProjectsLocationsAgentsEnvironmentsService{s: s}
260 rs.ContinuousTestResults = NewProjectsLocationsAgentsEnvironmentsContinuousTestResultsService(s)
261 rs.Deployments = NewProjectsLocationsAgentsEnvironmentsDeploymentsService(s)
262 rs.Experiments = NewProjectsLocationsAgentsEnvironmentsExperimentsService(s)
263 rs.Sessions = NewProjectsLocationsAgentsEnvironmentsSessionsService(s)
264 return rs
265 }
266
267 type ProjectsLocationsAgentsEnvironmentsService struct {
268 s *Service
269
270 ContinuousTestResults *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService
271
272 Deployments *ProjectsLocationsAgentsEnvironmentsDeploymentsService
273
274 Experiments *ProjectsLocationsAgentsEnvironmentsExperimentsService
275
276 Sessions *ProjectsLocationsAgentsEnvironmentsSessionsService
277 }
278
279 func NewProjectsLocationsAgentsEnvironmentsContinuousTestResultsService(s *Service) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService {
280 rs := &ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService{s: s}
281 return rs
282 }
283
284 type ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService struct {
285 s *Service
286 }
287
288 func NewProjectsLocationsAgentsEnvironmentsDeploymentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsDeploymentsService {
289 rs := &ProjectsLocationsAgentsEnvironmentsDeploymentsService{s: s}
290 return rs
291 }
292
293 type ProjectsLocationsAgentsEnvironmentsDeploymentsService struct {
294 s *Service
295 }
296
297 func NewProjectsLocationsAgentsEnvironmentsExperimentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsExperimentsService {
298 rs := &ProjectsLocationsAgentsEnvironmentsExperimentsService{s: s}
299 return rs
300 }
301
302 type ProjectsLocationsAgentsEnvironmentsExperimentsService struct {
303 s *Service
304 }
305
306 func NewProjectsLocationsAgentsEnvironmentsSessionsService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsService {
307 rs := &ProjectsLocationsAgentsEnvironmentsSessionsService{s: s}
308 rs.EntityTypes = NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s)
309 return rs
310 }
311
312 type ProjectsLocationsAgentsEnvironmentsSessionsService struct {
313 s *Service
314
315 EntityTypes *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService
316 }
317
318 func NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService {
319 rs := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService{s: s}
320 return rs
321 }
322
323 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService struct {
324 s *Service
325 }
326
327 func NewProjectsLocationsAgentsFlowsService(s *Service) *ProjectsLocationsAgentsFlowsService {
328 rs := &ProjectsLocationsAgentsFlowsService{s: s}
329 rs.Pages = NewProjectsLocationsAgentsFlowsPagesService(s)
330 rs.TransitionRouteGroups = NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s)
331 rs.Versions = NewProjectsLocationsAgentsFlowsVersionsService(s)
332 return rs
333 }
334
335 type ProjectsLocationsAgentsFlowsService struct {
336 s *Service
337
338 Pages *ProjectsLocationsAgentsFlowsPagesService
339
340 TransitionRouteGroups *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService
341
342 Versions *ProjectsLocationsAgentsFlowsVersionsService
343 }
344
345 func NewProjectsLocationsAgentsFlowsPagesService(s *Service) *ProjectsLocationsAgentsFlowsPagesService {
346 rs := &ProjectsLocationsAgentsFlowsPagesService{s: s}
347 return rs
348 }
349
350 type ProjectsLocationsAgentsFlowsPagesService struct {
351 s *Service
352 }
353
354 func NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService {
355 rs := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsService{s: s}
356 return rs
357 }
358
359 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsService struct {
360 s *Service
361 }
362
363 func NewProjectsLocationsAgentsFlowsVersionsService(s *Service) *ProjectsLocationsAgentsFlowsVersionsService {
364 rs := &ProjectsLocationsAgentsFlowsVersionsService{s: s}
365 return rs
366 }
367
368 type ProjectsLocationsAgentsFlowsVersionsService struct {
369 s *Service
370 }
371
372 func NewProjectsLocationsAgentsGeneratorsService(s *Service) *ProjectsLocationsAgentsGeneratorsService {
373 rs := &ProjectsLocationsAgentsGeneratorsService{s: s}
374 return rs
375 }
376
377 type ProjectsLocationsAgentsGeneratorsService struct {
378 s *Service
379 }
380
381 func NewProjectsLocationsAgentsIntentsService(s *Service) *ProjectsLocationsAgentsIntentsService {
382 rs := &ProjectsLocationsAgentsIntentsService{s: s}
383 return rs
384 }
385
386 type ProjectsLocationsAgentsIntentsService struct {
387 s *Service
388 }
389
390 func NewProjectsLocationsAgentsSessionsService(s *Service) *ProjectsLocationsAgentsSessionsService {
391 rs := &ProjectsLocationsAgentsSessionsService{s: s}
392 rs.EntityTypes = NewProjectsLocationsAgentsSessionsEntityTypesService(s)
393 return rs
394 }
395
396 type ProjectsLocationsAgentsSessionsService struct {
397 s *Service
398
399 EntityTypes *ProjectsLocationsAgentsSessionsEntityTypesService
400 }
401
402 func NewProjectsLocationsAgentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsSessionsEntityTypesService {
403 rs := &ProjectsLocationsAgentsSessionsEntityTypesService{s: s}
404 return rs
405 }
406
407 type ProjectsLocationsAgentsSessionsEntityTypesService struct {
408 s *Service
409 }
410
411 func NewProjectsLocationsAgentsTestCasesService(s *Service) *ProjectsLocationsAgentsTestCasesService {
412 rs := &ProjectsLocationsAgentsTestCasesService{s: s}
413 rs.Results = NewProjectsLocationsAgentsTestCasesResultsService(s)
414 return rs
415 }
416
417 type ProjectsLocationsAgentsTestCasesService struct {
418 s *Service
419
420 Results *ProjectsLocationsAgentsTestCasesResultsService
421 }
422
423 func NewProjectsLocationsAgentsTestCasesResultsService(s *Service) *ProjectsLocationsAgentsTestCasesResultsService {
424 rs := &ProjectsLocationsAgentsTestCasesResultsService{s: s}
425 return rs
426 }
427
428 type ProjectsLocationsAgentsTestCasesResultsService struct {
429 s *Service
430 }
431
432 func NewProjectsLocationsAgentsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsTransitionRouteGroupsService {
433 rs := &ProjectsLocationsAgentsTransitionRouteGroupsService{s: s}
434 return rs
435 }
436
437 type ProjectsLocationsAgentsTransitionRouteGroupsService struct {
438 s *Service
439 }
440
441 func NewProjectsLocationsAgentsWebhooksService(s *Service) *ProjectsLocationsAgentsWebhooksService {
442 rs := &ProjectsLocationsAgentsWebhooksService{s: s}
443 return rs
444 }
445
446 type ProjectsLocationsAgentsWebhooksService struct {
447 s *Service
448 }
449
450 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
451 rs := &ProjectsLocationsOperationsService{s: s}
452 return rs
453 }
454
455 type ProjectsLocationsOperationsService struct {
456 s *Service
457 }
458
459 func NewProjectsLocationsSecuritySettingsService(s *Service) *ProjectsLocationsSecuritySettingsService {
460 rs := &ProjectsLocationsSecuritySettingsService{s: s}
461 return rs
462 }
463
464 type ProjectsLocationsSecuritySettingsService struct {
465 s *Service
466 }
467
468 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
469 rs := &ProjectsOperationsService{s: s}
470 return rs
471 }
472
473 type ProjectsOperationsService struct {
474 s *Service
475 }
476
477
478
479
480
481
482
483
484
485
486 type GoogleCloudDialogflowCxV3AdvancedSettings struct {
487
488
489
490 AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
491
492
493 DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
494
495
496
497 LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
498
499
500 SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
501
502
503
504
505
506 ForceSendFields []string `json:"-"`
507
508
509
510
511 NullFields []string `json:"-"`
512 }
513
514 func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
515 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
517 }
518
519
520
521 type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
522
523
524
525
526
527
528 Enabled bool `json:"enabled,omitempty"`
529
530
531 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
532
533 FinishDigit string `json:"finishDigit,omitempty"`
534
535
536 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
537
538 MaxDigits int64 `json:"maxDigits,omitempty"`
539
540
541
542
543
544 ForceSendFields []string `json:"-"`
545
546
547
548
549 NullFields []string `json:"-"`
550 }
551
552 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
553 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
554 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
555 }
556
557
558
559 type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
560
561
562 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
563
564 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
565
566
567
568
569
570 ForceSendFields []string `json:"-"`
571
572
573
574
575 NullFields []string `json:"-"`
576 }
577
578 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
579 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
581 }
582
583
584
585 type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
586
587
588 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
589
590
591
592
593 Models map[string]string `json:"models,omitempty"`
594
595 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
596
597
598 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
599
600
601
602
603
604 ForceSendFields []string `json:"-"`
605
606
607
608
609 NullFields []string `json:"-"`
610 }
611
612 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
613 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
614 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
615 }
616
617
618
619
620
621
622
623 type GoogleCloudDialogflowCxV3Agent struct {
624
625
626
627 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
628
629 AnswerFeedbackSettings *GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings `json:"answerFeedbackSettings,omitempty"`
630
631
632
633
634 AvatarUri string `json:"avatarUri,omitempty"`
635
636
637
638
639
640 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
641
642
643 Description string `json:"description,omitempty"`
644
645
646 DisplayName string `json:"displayName,omitempty"`
647
648
649
650 EnableMultiLanguageTraining bool `json:"enableMultiLanguageTraining,omitempty"`
651
652
653 EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"`
654
655
656 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
657
658 GenAppBuilderSettings *GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings `json:"genAppBuilderSettings,omitempty"`
659
660 GitIntegrationSettings *GoogleCloudDialogflowCxV3AgentGitIntegrationSettings `json:"gitIntegrationSettings,omitempty"`
661
662
663 Locked bool `json:"locked,omitempty"`
664
665
666
667 Name string `json:"name,omitempty"`
668
669 PersonalizationSettings *GoogleCloudDialogflowCxV3AgentPersonalizationSettings `json:"personalizationSettings,omitempty"`
670
671
672 SecuritySettings string `json:"securitySettings,omitempty"`
673
674 SpeechToTextSettings *GoogleCloudDialogflowCxV3SpeechToTextSettings `json:"speechToTextSettings,omitempty"`
675
676
677
678
679 StartFlow string `json:"startFlow,omitempty"`
680
681
682 SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
683
684
685 TextToSpeechSettings *GoogleCloudDialogflowCxV3TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
686
687
688 TimeZone string `json:"timeZone,omitempty"`
689
690
691 googleapi.ServerResponse `json:"-"`
692
693
694
695
696
697 ForceSendFields []string `json:"-"`
698
699
700
701
702 NullFields []string `json:"-"`
703 }
704
705 func (s *GoogleCloudDialogflowCxV3Agent) MarshalJSON() ([]byte, error) {
706 type NoMethod GoogleCloudDialogflowCxV3Agent
707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
708 }
709
710
711
712 type GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings struct {
713
714
715
716 EnableAnswerFeedback bool `json:"enableAnswerFeedback,omitempty"`
717
718
719
720
721
722 ForceSendFields []string `json:"-"`
723
724
725
726
727 NullFields []string `json:"-"`
728 }
729
730 func (s *GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings) MarshalJSON() ([]byte, error) {
731 type NoMethod GoogleCloudDialogflowCxV3AgentAnswerFeedbackSettings
732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
733 }
734
735
736
737 type GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings struct {
738
739
740
741 Engine string `json:"engine,omitempty"`
742
743
744
745
746
747 ForceSendFields []string `json:"-"`
748
749
750
751
752 NullFields []string `json:"-"`
753 }
754
755 func (s *GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings) MarshalJSON() ([]byte, error) {
756 type NoMethod GoogleCloudDialogflowCxV3AgentGenAppBuilderSettings
757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
758 }
759
760
761
762 type GoogleCloudDialogflowCxV3AgentGitIntegrationSettings struct {
763
764 GithubSettings *GoogleCloudDialogflowCxV3AgentGitIntegrationSettingsGithubSettings `json:"githubSettings,omitempty"`
765
766
767
768
769
770 ForceSendFields []string `json:"-"`
771
772
773
774
775 NullFields []string `json:"-"`
776 }
777
778 func (s *GoogleCloudDialogflowCxV3AgentGitIntegrationSettings) MarshalJSON() ([]byte, error) {
779 type NoMethod GoogleCloudDialogflowCxV3AgentGitIntegrationSettings
780 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
781 }
782
783
784
785 type GoogleCloudDialogflowCxV3AgentGitIntegrationSettingsGithubSettings struct {
786
787
788 AccessToken string `json:"accessToken,omitempty"`
789
790 Branches []string `json:"branches,omitempty"`
791
792 DisplayName string `json:"displayName,omitempty"`
793
794 RepositoryUri string `json:"repositoryUri,omitempty"`
795
796 TrackingBranch string `json:"trackingBranch,omitempty"`
797
798
799
800
801
802 ForceSendFields []string `json:"-"`
803
804
805
806
807 NullFields []string `json:"-"`
808 }
809
810 func (s *GoogleCloudDialogflowCxV3AgentGitIntegrationSettingsGithubSettings) MarshalJSON() ([]byte, error) {
811 type NoMethod GoogleCloudDialogflowCxV3AgentGitIntegrationSettingsGithubSettings
812 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
813 }
814
815
816
817 type GoogleCloudDialogflowCxV3AgentPersonalizationSettings struct {
818
819
820
821
822
823 DefaultEndUserMetadata googleapi.RawMessage `json:"defaultEndUserMetadata,omitempty"`
824
825
826
827
828
829 ForceSendFields []string `json:"-"`
830
831
832
833
834 NullFields []string `json:"-"`
835 }
836
837 func (s *GoogleCloudDialogflowCxV3AgentPersonalizationSettings) MarshalJSON() ([]byte, error) {
838 type NoMethod GoogleCloudDialogflowCxV3AgentPersonalizationSettings
839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
840 }
841
842
843
844 type GoogleCloudDialogflowCxV3AgentValidationResult struct {
845
846 FlowValidationResults []*GoogleCloudDialogflowCxV3FlowValidationResult `json:"flowValidationResults,omitempty"`
847
848
849 Name string `json:"name,omitempty"`
850
851
852 googleapi.ServerResponse `json:"-"`
853
854
855
856
857
858 ForceSendFields []string `json:"-"`
859
860
861
862
863 NullFields []string `json:"-"`
864 }
865
866 func (s *GoogleCloudDialogflowCxV3AgentValidationResult) MarshalJSON() ([]byte, error) {
867 type NoMethod GoogleCloudDialogflowCxV3AgentValidationResult
868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
869 }
870
871
872
873 type GoogleCloudDialogflowCxV3AnswerFeedback struct {
874
875
876
877 CustomRating string `json:"customRating,omitempty"`
878
879
880
881
882
883
884 Rating string `json:"rating,omitempty"`
885
886
887 RatingReason *GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason `json:"ratingReason,omitempty"`
888
889
890 googleapi.ServerResponse `json:"-"`
891
892
893
894
895
896 ForceSendFields []string `json:"-"`
897
898
899
900
901 NullFields []string `json:"-"`
902 }
903
904 func (s *GoogleCloudDialogflowCxV3AnswerFeedback) MarshalJSON() ([]byte, error) {
905 type NoMethod GoogleCloudDialogflowCxV3AnswerFeedback
906 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
907 }
908
909
910
911 type GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason struct {
912
913
914 Feedback string `json:"feedback,omitempty"`
915
916
917
918 ReasonLabels []string `json:"reasonLabels,omitempty"`
919
920
921
922
923
924 ForceSendFields []string `json:"-"`
925
926
927
928
929 NullFields []string `json:"-"`
930 }
931
932 func (s *GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason) MarshalJSON() ([]byte, error) {
933 type NoMethod GoogleCloudDialogflowCxV3AnswerFeedbackRatingReason
934 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
935 }
936
937
938
939 type GoogleCloudDialogflowCxV3AudioInput struct {
940
941
942
943
944
945
946 Audio string `json:"audio,omitempty"`
947
948
949 Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
950
951
952
953
954
955 ForceSendFields []string `json:"-"`
956
957
958
959
960 NullFields []string `json:"-"`
961 }
962
963 func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
964 type NoMethod GoogleCloudDialogflowCxV3AudioInput
965 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
966 }
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984 type GoogleCloudDialogflowCxV3BargeInConfig struct {
985
986
987 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
988
989
990 TotalDuration string `json:"totalDuration,omitempty"`
991
992
993
994
995
996 ForceSendFields []string `json:"-"`
997
998
999
1000
1001 NullFields []string `json:"-"`
1002 }
1003
1004 func (s *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
1005 type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
1006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1007 }
1008
1009
1010
1011 type GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest struct {
1012
1013
1014 Names []string `json:"names,omitempty"`
1015
1016
1017
1018
1019
1020 ForceSendFields []string `json:"-"`
1021
1022
1023
1024
1025 NullFields []string `json:"-"`
1026 }
1027
1028 func (s *GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest) MarshalJSON() ([]byte, error) {
1029 type NoMethod GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest
1030 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1031 }
1032
1033
1034
1035 type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
1036
1037 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
1038
1039
1040
1041
1042
1043 ForceSendFields []string `json:"-"`
1044
1045
1046
1047
1048 NullFields []string `json:"-"`
1049 }
1050
1051 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
1052 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
1053 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1054 }
1055
1056
1057
1058 type GoogleCloudDialogflowCxV3BatchRunTestCasesRequest struct {
1059
1060
1061 Environment string `json:"environment,omitempty"`
1062
1063 TestCases []string `json:"testCases,omitempty"`
1064
1065
1066
1067
1068
1069 ForceSendFields []string `json:"-"`
1070
1071
1072
1073
1074 NullFields []string `json:"-"`
1075 }
1076
1077 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesRequest) MarshalJSON() ([]byte, error) {
1078 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesRequest
1079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1080 }
1081
1082
1083
1084 type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
1085
1086
1087 Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
1088
1089
1090
1091
1092
1093 ForceSendFields []string `json:"-"`
1094
1095
1096
1097
1098 NullFields []string `json:"-"`
1099 }
1100
1101 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
1102 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
1103 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1104 }
1105
1106
1107
1108
1109
1110 type GoogleCloudDialogflowCxV3BoostSpec struct {
1111
1112
1113
1114
1115 ConditionBoostSpecs []*GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
1116
1117
1118
1119
1120
1121 ForceSendFields []string `json:"-"`
1122
1123
1124
1125
1126 NullFields []string `json:"-"`
1127 }
1128
1129 func (s *GoogleCloudDialogflowCxV3BoostSpec) MarshalJSON() ([]byte, error) {
1130 type NoMethod GoogleCloudDialogflowCxV3BoostSpec
1131 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1132 }
1133
1134
1135
1136 type GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec struct {
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149 Boost float64 `json:"boost,omitempty"`
1150
1151
1152
1153
1154 Condition string `json:"condition,omitempty"`
1155
1156
1157
1158
1159
1160 ForceSendFields []string `json:"-"`
1161
1162
1163
1164
1165 NullFields []string `json:"-"`
1166 }
1167
1168 func (s *GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
1169 type NoMethod GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
1170 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1171 }
1172
1173 func (s *GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
1174 type NoMethod GoogleCloudDialogflowCxV3BoostSpecConditionBoostSpec
1175 var s1 struct {
1176 Boost gensupport.JSONFloat64 `json:"boost"`
1177 *NoMethod
1178 }
1179 s1.NoMethod = (*NoMethod)(s)
1180 if err := json.Unmarshal(data, &s1); err != nil {
1181 return err
1182 }
1183 s.Boost = float64(s1.Boost)
1184 return nil
1185 }
1186
1187
1188 type GoogleCloudDialogflowCxV3BoostSpecs struct {
1189
1190
1191
1192
1193
1194 DataStores []string `json:"dataStores,omitempty"`
1195
1196 Spec []*GoogleCloudDialogflowCxV3BoostSpec `json:"spec,omitempty"`
1197
1198
1199
1200
1201
1202 ForceSendFields []string `json:"-"`
1203
1204
1205
1206
1207 NullFields []string `json:"-"`
1208 }
1209
1210 func (s *GoogleCloudDialogflowCxV3BoostSpecs) MarshalJSON() ([]byte, error) {
1211 type NoMethod GoogleCloudDialogflowCxV3BoostSpecs
1212 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1213 }
1214
1215
1216
1217 type GoogleCloudDialogflowCxV3CalculateCoverageResponse struct {
1218
1219
1220 Agent string `json:"agent,omitempty"`
1221
1222 IntentCoverage *GoogleCloudDialogflowCxV3IntentCoverage `json:"intentCoverage,omitempty"`
1223
1224 RouteGroupCoverage *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage `json:"routeGroupCoverage,omitempty"`
1225
1226 TransitionCoverage *GoogleCloudDialogflowCxV3TransitionCoverage `json:"transitionCoverage,omitempty"`
1227
1228
1229 googleapi.ServerResponse `json:"-"`
1230
1231
1232
1233
1234
1235 ForceSendFields []string `json:"-"`
1236
1237
1238
1239
1240 NullFields []string `json:"-"`
1241 }
1242
1243 func (s *GoogleCloudDialogflowCxV3CalculateCoverageResponse) MarshalJSON() ([]byte, error) {
1244 type NoMethod GoogleCloudDialogflowCxV3CalculateCoverageResponse
1245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1246 }
1247
1248
1249
1250 type GoogleCloudDialogflowCxV3Changelog struct {
1251
1252 Action string `json:"action,omitempty"`
1253
1254 CreateTime string `json:"createTime,omitempty"`
1255
1256 DisplayName string `json:"displayName,omitempty"`
1257
1258 LanguageCode string `json:"languageCode,omitempty"`
1259
1260
1261 Name string `json:"name,omitempty"`
1262
1263 Resource string `json:"resource,omitempty"`
1264
1265 Type string `json:"type,omitempty"`
1266
1267 UserEmail string `json:"userEmail,omitempty"`
1268
1269
1270 googleapi.ServerResponse `json:"-"`
1271
1272
1273
1274
1275
1276 ForceSendFields []string `json:"-"`
1277
1278
1279
1280
1281 NullFields []string `json:"-"`
1282 }
1283
1284 func (s *GoogleCloudDialogflowCxV3Changelog) MarshalJSON() ([]byte, error) {
1285 type NoMethod GoogleCloudDialogflowCxV3Changelog
1286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1287 }
1288
1289
1290
1291 type GoogleCloudDialogflowCxV3CompareVersionsRequest struct {
1292
1293
1294
1295
1296 LanguageCode string `json:"languageCode,omitempty"`
1297
1298
1299
1300 TargetVersion string `json:"targetVersion,omitempty"`
1301
1302
1303
1304
1305
1306 ForceSendFields []string `json:"-"`
1307
1308
1309
1310
1311 NullFields []string `json:"-"`
1312 }
1313
1314 func (s *GoogleCloudDialogflowCxV3CompareVersionsRequest) MarshalJSON() ([]byte, error) {
1315 type NoMethod GoogleCloudDialogflowCxV3CompareVersionsRequest
1316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1317 }
1318
1319
1320
1321 type GoogleCloudDialogflowCxV3CompareVersionsResponse struct {
1322
1323 BaseVersionContentJson string `json:"baseVersionContentJson,omitempty"`
1324
1325 CompareTime string `json:"compareTime,omitempty"`
1326
1327 TargetVersionContentJson string `json:"targetVersionContentJson,omitempty"`
1328
1329
1330 googleapi.ServerResponse `json:"-"`
1331
1332
1333
1334
1335
1336 ForceSendFields []string `json:"-"`
1337
1338
1339
1340
1341 NullFields []string `json:"-"`
1342 }
1343
1344 func (s *GoogleCloudDialogflowCxV3CompareVersionsResponse) MarshalJSON() ([]byte, error) {
1345 type NoMethod GoogleCloudDialogflowCxV3CompareVersionsResponse
1346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1347 }
1348
1349
1350
1351 type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
1352
1353
1354 Name string `json:"name,omitempty"`
1355
1356
1357
1358
1359
1360
1361
1362
1363 Result string `json:"result,omitempty"`
1364
1365 RunTime string `json:"runTime,omitempty"`
1366
1367
1368 TestCaseResults []string `json:"testCaseResults,omitempty"`
1369
1370
1371
1372
1373
1374 ForceSendFields []string `json:"-"`
1375
1376
1377
1378
1379 NullFields []string `json:"-"`
1380 }
1381
1382 func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
1383 type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
1384 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1385 }
1386
1387
1388
1389
1390 type GoogleCloudDialogflowCxV3ConversationSignals struct {
1391
1392 TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
1393
1394
1395
1396
1397
1398 ForceSendFields []string `json:"-"`
1399
1400
1401
1402
1403 NullFields []string `json:"-"`
1404 }
1405
1406 func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
1407 type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
1408 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1409 }
1410
1411
1412
1413
1414 type GoogleCloudDialogflowCxV3ConversationTurn struct {
1415
1416 UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
1417
1418 VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
1419
1420
1421
1422
1423
1424 ForceSendFields []string `json:"-"`
1425
1426
1427
1428
1429 NullFields []string `json:"-"`
1430 }
1431
1432 func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
1433 type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
1434 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1435 }
1436
1437
1438
1439 type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
1440
1441 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
1442
1443
1444 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
1445
1446 Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
1447
1448
1449
1450 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
1451
1452
1453
1454
1455
1456 ForceSendFields []string `json:"-"`
1457
1458
1459
1460
1461 NullFields []string `json:"-"`
1462 }
1463
1464 func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
1465 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
1466 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1467 }
1468
1469
1470
1471 type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
1472
1473
1474 CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
1475
1476
1477 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
1478
1479
1480
1481 Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
1482
1483
1484 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
1485
1486
1487 Status *GoogleRpcStatus `json:"status,omitempty"`
1488
1489 TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
1490
1491
1492 TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
1493
1494
1495
1496
1497
1498 ForceSendFields []string `json:"-"`
1499
1500
1501
1502
1503 NullFields []string `json:"-"`
1504 }
1505
1506 func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
1507 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
1508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1509 }
1510
1511
1512
1513 type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
1514
1515 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1516
1517
1518
1519
1520
1521 ForceSendFields []string `json:"-"`
1522
1523
1524
1525
1526 NullFields []string `json:"-"`
1527 }
1528
1529 func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1530 type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
1531 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1532 }
1533
1534
1535
1536 type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
1537
1538
1539 Version string `json:"version,omitempty"`
1540
1541
1542
1543
1544
1545 ForceSendFields []string `json:"-"`
1546
1547
1548
1549
1550 NullFields []string `json:"-"`
1551 }
1552
1553 func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
1554 type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
1555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1556 }
1557
1558
1559
1560
1561 type GoogleCloudDialogflowCxV3DataStoreConnection struct {
1562
1563
1564
1565
1566 DataStore string `json:"dataStore,omitempty"`
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576 DataStoreType string `json:"dataStoreType,omitempty"`
1577
1578
1579
1580
1581
1582 ForceSendFields []string `json:"-"`
1583
1584
1585
1586
1587 NullFields []string `json:"-"`
1588 }
1589
1590 func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
1591 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
1592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1593 }
1594
1595
1596
1597
1598
1599 type GoogleCloudDialogflowCxV3DataStoreConnectionSignals struct {
1600
1601 Answer string `json:"answer,omitempty"`
1602
1603
1604 AnswerGenerationModelCallSignals *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals `json:"answerGenerationModelCallSignals,omitempty"`
1605
1606
1607 AnswerParts []*GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart `json:"answerParts,omitempty"`
1608
1609
1610 CitedSnippets []*GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet `json:"citedSnippets,omitempty"`
1611
1612 GroundingSignals *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals `json:"groundingSignals,omitempty"`
1613
1614
1615 RewriterModelCallSignals *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals `json:"rewriterModelCallSignals,omitempty"`
1616
1617 RewrittenQuery string `json:"rewrittenQuery,omitempty"`
1618
1619 SafetySignals *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals `json:"safetySignals,omitempty"`
1620
1621
1622 SearchSnippets []*GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet `json:"searchSnippets,omitempty"`
1623
1624
1625
1626
1627
1628 ForceSendFields []string `json:"-"`
1629
1630
1631
1632
1633 NullFields []string `json:"-"`
1634 }
1635
1636 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignals) MarshalJSON() ([]byte, error) {
1637 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignals
1638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1639 }
1640
1641
1642
1643 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals struct {
1644
1645 ModelOutput string `json:"modelOutput,omitempty"`
1646
1647 RenderedPrompt string `json:"renderedPrompt,omitempty"`
1648
1649
1650
1651
1652
1653 ForceSendFields []string `json:"-"`
1654
1655
1656
1657
1658 NullFields []string `json:"-"`
1659 }
1660
1661 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals) MarshalJSON() ([]byte, error) {
1662 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerGenerationModelCallSignals
1663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1664 }
1665
1666
1667
1668 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart struct {
1669
1670
1671 SupportingIndices []int64 `json:"supportingIndices,omitempty"`
1672
1673 Text string `json:"text,omitempty"`
1674
1675
1676
1677
1678
1679 ForceSendFields []string `json:"-"`
1680
1681
1682
1683
1684 NullFields []string `json:"-"`
1685 }
1686
1687 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart) MarshalJSON() ([]byte, error) {
1688 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsAnswerPart
1689 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1690 }
1691
1692
1693
1694 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet struct {
1695
1696 SearchSnippet *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet `json:"searchSnippet,omitempty"`
1697
1698 SnippetIndex int64 `json:"snippetIndex,omitempty"`
1699
1700
1701
1702
1703
1704 ForceSendFields []string `json:"-"`
1705
1706
1707
1708
1709 NullFields []string `json:"-"`
1710 }
1711
1712 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet) MarshalJSON() ([]byte, error) {
1713 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsCitedSnippet
1714 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1715 }
1716
1717
1718
1719 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals struct {
1720
1721
1722
1723
1724
1725
1726 Decision string `json:"decision,omitempty"`
1727
1728
1729
1730
1731
1732
1733
1734
1735
1736 Score string `json:"score,omitempty"`
1737
1738
1739
1740
1741
1742 ForceSendFields []string `json:"-"`
1743
1744
1745
1746
1747 NullFields []string `json:"-"`
1748 }
1749
1750 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals) MarshalJSON() ([]byte, error) {
1751 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsGroundingSignals
1752 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1753 }
1754
1755
1756
1757 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals struct {
1758
1759 ModelOutput string `json:"modelOutput,omitempty"`
1760
1761 RenderedPrompt string `json:"renderedPrompt,omitempty"`
1762
1763
1764
1765
1766
1767 ForceSendFields []string `json:"-"`
1768
1769
1770
1771
1772 NullFields []string `json:"-"`
1773 }
1774
1775 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals) MarshalJSON() ([]byte, error) {
1776 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsRewriterModelCallSignals
1777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1778 }
1779
1780
1781
1782 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals struct {
1783
1784
1785
1786
1787
1788
1789
1790 BannedPhraseMatch string `json:"bannedPhraseMatch,omitempty"`
1791
1792
1793
1794
1795
1796
1797 Decision string `json:"decision,omitempty"`
1798
1799 MatchedBannedPhrase string `json:"matchedBannedPhrase,omitempty"`
1800
1801
1802
1803
1804
1805 ForceSendFields []string `json:"-"`
1806
1807
1808
1809
1810 NullFields []string `json:"-"`
1811 }
1812
1813 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals) MarshalJSON() ([]byte, error) {
1814 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSafetySignals
1815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1816 }
1817
1818
1819
1820 type GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet struct {
1821
1822 DocumentTitle string `json:"documentTitle,omitempty"`
1823
1824 DocumentUri string `json:"documentUri,omitempty"`
1825
1826 Text string `json:"text,omitempty"`
1827
1828
1829
1830
1831
1832 ForceSendFields []string `json:"-"`
1833
1834
1835
1836
1837 NullFields []string `json:"-"`
1838 }
1839
1840 func (s *GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet) MarshalJSON() ([]byte, error) {
1841 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnectionSignalsSearchSnippet
1842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1843 }
1844
1845
1846
1847 type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
1848
1849 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1850
1851
1852
1853
1854
1855 ForceSendFields []string `json:"-"`
1856
1857
1858
1859
1860 NullFields []string `json:"-"`
1861 }
1862
1863 func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1864 type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
1865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1866 }
1867
1868
1869
1870 type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
1871
1872 TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
1873
1874
1875
1876
1877
1878 ForceSendFields []string `json:"-"`
1879
1880
1881
1882
1883 NullFields []string `json:"-"`
1884 }
1885
1886 func (s *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
1887 type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
1888 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1889 }
1890
1891
1892
1893 type GoogleCloudDialogflowCxV3DeployFlowRequest struct {
1894
1895
1896 FlowVersion string `json:"flowVersion,omitempty"`
1897
1898
1899
1900
1901
1902 ForceSendFields []string `json:"-"`
1903
1904
1905
1906
1907 NullFields []string `json:"-"`
1908 }
1909
1910 func (s *GoogleCloudDialogflowCxV3DeployFlowRequest) MarshalJSON() ([]byte, error) {
1911 type NoMethod GoogleCloudDialogflowCxV3DeployFlowRequest
1912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1913 }
1914
1915
1916
1917 type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
1918
1919
1920 Deployment string `json:"deployment,omitempty"`
1921
1922 Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
1923
1924
1925
1926
1927
1928 ForceSendFields []string `json:"-"`
1929
1930
1931
1932
1933 NullFields []string `json:"-"`
1934 }
1935
1936 func (s *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
1937 type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
1938 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1939 }
1940
1941
1942
1943
1944
1945 type GoogleCloudDialogflowCxV3Deployment struct {
1946
1947 EndTime string `json:"endTime,omitempty"`
1948
1949
1950 FlowVersion string `json:"flowVersion,omitempty"`
1951
1952
1953 Name string `json:"name,omitempty"`
1954
1955 Result *GoogleCloudDialogflowCxV3DeploymentResult `json:"result,omitempty"`
1956
1957 StartTime string `json:"startTime,omitempty"`
1958
1959
1960
1961
1962
1963
1964
1965 State string `json:"state,omitempty"`
1966
1967
1968 googleapi.ServerResponse `json:"-"`
1969
1970
1971
1972
1973
1974 ForceSendFields []string `json:"-"`
1975
1976
1977
1978
1979 NullFields []string `json:"-"`
1980 }
1981
1982 func (s *GoogleCloudDialogflowCxV3Deployment) MarshalJSON() ([]byte, error) {
1983 type NoMethod GoogleCloudDialogflowCxV3Deployment
1984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1985 }
1986
1987
1988 type GoogleCloudDialogflowCxV3DeploymentResult struct {
1989
1990
1991 DeploymentTestResults []string `json:"deploymentTestResults,omitempty"`
1992
1993
1994 Experiment string `json:"experiment,omitempty"`
1995
1996
1997
1998
1999
2000 ForceSendFields []string `json:"-"`
2001
2002
2003
2004
2005 NullFields []string `json:"-"`
2006 }
2007
2008 func (s *GoogleCloudDialogflowCxV3DeploymentResult) MarshalJSON() ([]byte, error) {
2009 type NoMethod GoogleCloudDialogflowCxV3DeploymentResult
2010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2011 }
2012
2013
2014
2015 type GoogleCloudDialogflowCxV3DetectIntentRequest struct {
2016
2017
2018 OutputAudioConfig *GoogleCloudDialogflowCxV3OutputAudioConfig `json:"outputAudioConfig,omitempty"`
2019
2020 QueryInput *GoogleCloudDialogflowCxV3QueryInput `json:"queryInput,omitempty"`
2021
2022 QueryParams *GoogleCloudDialogflowCxV3QueryParameters `json:"queryParams,omitempty"`
2023
2024
2025
2026
2027
2028 ForceSendFields []string `json:"-"`
2029
2030
2031
2032
2033 NullFields []string `json:"-"`
2034 }
2035
2036 func (s *GoogleCloudDialogflowCxV3DetectIntentRequest) MarshalJSON() ([]byte, error) {
2037 type NoMethod GoogleCloudDialogflowCxV3DetectIntentRequest
2038 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2039 }
2040
2041
2042
2043 type GoogleCloudDialogflowCxV3DetectIntentResponse struct {
2044
2045
2046
2047 AllowCancellation bool `json:"allowCancellation,omitempty"`
2048
2049
2050
2051
2052
2053
2054
2055
2056 OutputAudio string `json:"outputAudio,omitempty"`
2057
2058
2059 OutputAudioConfig *GoogleCloudDialogflowCxV3OutputAudioConfig `json:"outputAudioConfig,omitempty"`
2060
2061 QueryResult *GoogleCloudDialogflowCxV3QueryResult `json:"queryResult,omitempty"`
2062
2063
2064
2065 ResponseId string `json:"responseId,omitempty"`
2066
2067
2068
2069
2070
2071
2072
2073
2074 ResponseType string `json:"responseType,omitempty"`
2075
2076
2077 googleapi.ServerResponse `json:"-"`
2078
2079
2080
2081
2082
2083 ForceSendFields []string `json:"-"`
2084
2085
2086
2087
2088 NullFields []string `json:"-"`
2089 }
2090
2091 func (s *GoogleCloudDialogflowCxV3DetectIntentResponse) MarshalJSON() ([]byte, error) {
2092 type NoMethod GoogleCloudDialogflowCxV3DetectIntentResponse
2093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2094 }
2095
2096
2097 type GoogleCloudDialogflowCxV3DtmfInput struct {
2098
2099 Digits string `json:"digits,omitempty"`
2100
2101 FinishDigit string `json:"finishDigit,omitempty"`
2102
2103
2104
2105
2106
2107 ForceSendFields []string `json:"-"`
2108
2109
2110
2111
2112 NullFields []string `json:"-"`
2113 }
2114
2115 func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
2116 type NoMethod GoogleCloudDialogflowCxV3DtmfInput
2117 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2118 }
2119
2120
2121
2122
2123
2124
2125
2126
2127
2128
2129
2130
2131
2132
2133
2134
2135
2136
2137
2138
2139 type GoogleCloudDialogflowCxV3EntityType struct {
2140
2141
2142
2143
2144
2145
2146
2147
2148 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
2149
2150
2151 DisplayName string `json:"displayName,omitempty"`
2152
2153
2154 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
2155
2156 Entities []*GoogleCloudDialogflowCxV3EntityTypeEntity `json:"entities,omitempty"`
2157
2158
2159
2160
2161
2162 ExcludedPhrases []*GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase `json:"excludedPhrases,omitempty"`
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173
2174 Kind string `json:"kind,omitempty"`
2175
2176
2177
2178 Name string `json:"name,omitempty"`
2179
2180
2181
2182
2183 Redact bool `json:"redact,omitempty"`
2184
2185
2186 googleapi.ServerResponse `json:"-"`
2187
2188
2189
2190
2191
2192 ForceSendFields []string `json:"-"`
2193
2194
2195
2196
2197 NullFields []string `json:"-"`
2198 }
2199
2200 func (s *GoogleCloudDialogflowCxV3EntityType) MarshalJSON() ([]byte, error) {
2201 type NoMethod GoogleCloudDialogflowCxV3EntityType
2202 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2203 }
2204
2205
2206
2207 type GoogleCloudDialogflowCxV3EntityTypeEntity struct {
2208
2209
2210
2211
2212 Synonyms []string `json:"synonyms,omitempty"`
2213
2214
2215
2216
2217
2218 Value string `json:"value,omitempty"`
2219
2220
2221
2222
2223
2224 ForceSendFields []string `json:"-"`
2225
2226
2227
2228
2229 NullFields []string `json:"-"`
2230 }
2231
2232 func (s *GoogleCloudDialogflowCxV3EntityTypeEntity) MarshalJSON() ([]byte, error) {
2233 type NoMethod GoogleCloudDialogflowCxV3EntityTypeEntity
2234 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2235 }
2236
2237
2238
2239 type GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase struct {
2240
2241 Value string `json:"value,omitempty"`
2242
2243
2244
2245
2246
2247 ForceSendFields []string `json:"-"`
2248
2249
2250
2251
2252 NullFields []string `json:"-"`
2253 }
2254
2255 func (s *GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase) MarshalJSON() ([]byte, error) {
2256 type NoMethod GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase
2257 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2258 }
2259
2260
2261
2262
2263
2264
2265
2266
2267
2268 type GoogleCloudDialogflowCxV3Environment struct {
2269
2270
2271 Description string `json:"description,omitempty"`
2272
2273
2274 DisplayName string `json:"displayName,omitempty"`
2275
2276
2277 Name string `json:"name,omitempty"`
2278
2279
2280 TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
2281
2282 UpdateTime string `json:"updateTime,omitempty"`
2283
2284
2285
2286 VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
2287
2288 WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
2289
2290
2291 googleapi.ServerResponse `json:"-"`
2292
2293
2294
2295
2296
2297 ForceSendFields []string `json:"-"`
2298
2299
2300
2301
2302 NullFields []string `json:"-"`
2303 }
2304
2305 func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
2306 type NoMethod GoogleCloudDialogflowCxV3Environment
2307 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2308 }
2309
2310
2311
2312 type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
2313
2314
2315 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
2316
2317
2318
2319 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
2320
2321
2322
2323 TestCases []string `json:"testCases,omitempty"`
2324
2325
2326
2327
2328
2329 ForceSendFields []string `json:"-"`
2330
2331
2332
2333
2334 NullFields []string `json:"-"`
2335 }
2336
2337 func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
2338 type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
2339 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2340 }
2341
2342
2343
2344 type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
2345
2346 Version string `json:"version,omitempty"`
2347
2348
2349
2350
2351
2352 ForceSendFields []string `json:"-"`
2353
2354
2355
2356
2357 NullFields []string `json:"-"`
2358 }
2359
2360 func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
2361 type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
2362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2363 }
2364
2365
2366
2367 type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
2368
2369
2370
2371 WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
2372
2373
2374
2375
2376
2377 ForceSendFields []string `json:"-"`
2378
2379
2380
2381
2382 NullFields []string `json:"-"`
2383 }
2384
2385 func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
2386 type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
2387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2388 }
2389
2390
2391
2392
2393
2394
2395
2396
2397 type GoogleCloudDialogflowCxV3EventHandler struct {
2398
2399 Event string `json:"event,omitempty"`
2400
2401 Name string `json:"name,omitempty"`
2402
2403
2404 TargetFlow string `json:"targetFlow,omitempty"`
2405
2406
2407 TargetPage string `json:"targetPage,omitempty"`
2408
2409
2410
2411
2412 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
2413
2414
2415
2416
2417
2418 ForceSendFields []string `json:"-"`
2419
2420
2421
2422
2423 NullFields []string `json:"-"`
2424 }
2425
2426 func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
2427 type NoMethod GoogleCloudDialogflowCxV3EventHandler
2428 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2429 }
2430
2431
2432 type GoogleCloudDialogflowCxV3EventInput struct {
2433
2434 Event string `json:"event,omitempty"`
2435
2436
2437
2438
2439
2440 ForceSendFields []string `json:"-"`
2441
2442
2443
2444
2445 NullFields []string `json:"-"`
2446 }
2447
2448 func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
2449 type NoMethod GoogleCloudDialogflowCxV3EventInput
2450 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2451 }
2452
2453
2454
2455 type GoogleCloudDialogflowCxV3Experiment struct {
2456
2457 CreateTime string `json:"createTime,omitempty"`
2458
2459 Definition *GoogleCloudDialogflowCxV3ExperimentDefinition `json:"definition,omitempty"`
2460
2461 Description string `json:"description,omitempty"`
2462
2463
2464 DisplayName string `json:"displayName,omitempty"`
2465
2466 EndTime string `json:"endTime,omitempty"`
2467
2468
2469
2470 ExperimentLength string `json:"experimentLength,omitempty"`
2471
2472 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
2473
2474
2475 Name string `json:"name,omitempty"`
2476
2477 Result *GoogleCloudDialogflowCxV3ExperimentResult `json:"result,omitempty"`
2478
2479
2480
2481
2482
2483 RolloutConfig *GoogleCloudDialogflowCxV3RolloutConfig `json:"rolloutConfig,omitempty"`
2484
2485
2486 RolloutFailureReason string `json:"rolloutFailureReason,omitempty"`
2487
2488 RolloutState *GoogleCloudDialogflowCxV3RolloutState `json:"rolloutState,omitempty"`
2489
2490 StartTime string `json:"startTime,omitempty"`
2491
2492
2493
2494
2495
2496
2497
2498
2499
2500
2501 State string `json:"state,omitempty"`
2502
2503 VariantsHistory []*GoogleCloudDialogflowCxV3VariantsHistory `json:"variantsHistory,omitempty"`
2504
2505
2506 googleapi.ServerResponse `json:"-"`
2507
2508
2509
2510
2511
2512 ForceSendFields []string `json:"-"`
2513
2514
2515
2516
2517 NullFields []string `json:"-"`
2518 }
2519
2520 func (s *GoogleCloudDialogflowCxV3Experiment) MarshalJSON() ([]byte, error) {
2521 type NoMethod GoogleCloudDialogflowCxV3Experiment
2522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2523 }
2524
2525
2526 type GoogleCloudDialogflowCxV3ExperimentDefinition struct {
2527
2528
2529
2530
2531 Condition string `json:"condition,omitempty"`
2532
2533 VersionVariants *GoogleCloudDialogflowCxV3VersionVariants `json:"versionVariants,omitempty"`
2534
2535
2536
2537
2538
2539 ForceSendFields []string `json:"-"`
2540
2541
2542
2543
2544 NullFields []string `json:"-"`
2545 }
2546
2547 func (s *GoogleCloudDialogflowCxV3ExperimentDefinition) MarshalJSON() ([]byte, error) {
2548 type NoMethod GoogleCloudDialogflowCxV3ExperimentDefinition
2549 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2550 }
2551
2552
2553
2554 type GoogleCloudDialogflowCxV3ExperimentResult struct {
2555
2556
2557 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
2558
2559 VersionMetrics []*GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics `json:"versionMetrics,omitempty"`
2560
2561
2562
2563
2564
2565 ForceSendFields []string `json:"-"`
2566
2567
2568
2569
2570 NullFields []string `json:"-"`
2571 }
2572
2573 func (s *GoogleCloudDialogflowCxV3ExperimentResult) MarshalJSON() ([]byte, error) {
2574 type NoMethod GoogleCloudDialogflowCxV3ExperimentResult
2575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2576 }
2577
2578
2579
2580
2581 type GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval struct {
2582
2583
2584 ConfidenceLevel float64 `json:"confidenceLevel,omitempty"`
2585
2586 LowerBound float64 `json:"lowerBound,omitempty"`
2587
2588
2589 Ratio float64 `json:"ratio,omitempty"`
2590
2591 UpperBound float64 `json:"upperBound,omitempty"`
2592
2593
2594
2595
2596
2597 ForceSendFields []string `json:"-"`
2598
2599
2600
2601
2602 NullFields []string `json:"-"`
2603 }
2604
2605 func (s *GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval) MarshalJSON() ([]byte, error) {
2606 type NoMethod GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval
2607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2608 }
2609
2610 func (s *GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval) UnmarshalJSON(data []byte) error {
2611 type NoMethod GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval
2612 var s1 struct {
2613 ConfidenceLevel gensupport.JSONFloat64 `json:"confidenceLevel"`
2614 LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
2615 Ratio gensupport.JSONFloat64 `json:"ratio"`
2616 UpperBound gensupport.JSONFloat64 `json:"upperBound"`
2617 *NoMethod
2618 }
2619 s1.NoMethod = (*NoMethod)(s)
2620 if err := json.Unmarshal(data, &s1); err != nil {
2621 return err
2622 }
2623 s.ConfidenceLevel = float64(s1.ConfidenceLevel)
2624 s.LowerBound = float64(s1.LowerBound)
2625 s.Ratio = float64(s1.Ratio)
2626 s.UpperBound = float64(s1.UpperBound)
2627 return nil
2628 }
2629
2630
2631
2632 type GoogleCloudDialogflowCxV3ExperimentResultMetric struct {
2633
2634
2635 ConfidenceInterval *GoogleCloudDialogflowCxV3ExperimentResultConfidenceInterval `json:"confidenceInterval,omitempty"`
2636
2637 Count float64 `json:"count,omitempty"`
2638
2639
2640
2641
2642
2643
2644
2645
2646 CountType string `json:"countType,omitempty"`
2647
2648 Ratio float64 `json:"ratio,omitempty"`
2649
2650
2651
2652
2653
2654
2655
2656
2657
2658
2659
2660
2661
2662
2663 Type string `json:"type,omitempty"`
2664
2665
2666
2667
2668
2669 ForceSendFields []string `json:"-"`
2670
2671
2672
2673
2674 NullFields []string `json:"-"`
2675 }
2676
2677 func (s *GoogleCloudDialogflowCxV3ExperimentResultMetric) MarshalJSON() ([]byte, error) {
2678 type NoMethod GoogleCloudDialogflowCxV3ExperimentResultMetric
2679 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2680 }
2681
2682 func (s *GoogleCloudDialogflowCxV3ExperimentResultMetric) UnmarshalJSON(data []byte) error {
2683 type NoMethod GoogleCloudDialogflowCxV3ExperimentResultMetric
2684 var s1 struct {
2685 Count gensupport.JSONFloat64 `json:"count"`
2686 Ratio gensupport.JSONFloat64 `json:"ratio"`
2687 *NoMethod
2688 }
2689 s1.NoMethod = (*NoMethod)(s)
2690 if err := json.Unmarshal(data, &s1); err != nil {
2691 return err
2692 }
2693 s.Count = float64(s1.Count)
2694 s.Ratio = float64(s1.Ratio)
2695 return nil
2696 }
2697
2698
2699
2700 type GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics struct {
2701
2702
2703 Metrics []*GoogleCloudDialogflowCxV3ExperimentResultMetric `json:"metrics,omitempty"`
2704
2705 SessionCount int64 `json:"sessionCount,omitempty"`
2706
2707
2708 Version string `json:"version,omitempty"`
2709
2710
2711
2712
2713
2714 ForceSendFields []string `json:"-"`
2715
2716
2717
2718
2719 NullFields []string `json:"-"`
2720 }
2721
2722 func (s *GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics) MarshalJSON() ([]byte, error) {
2723 type NoMethod GoogleCloudDialogflowCxV3ExperimentResultVersionMetrics
2724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2725 }
2726
2727
2728
2729 type GoogleCloudDialogflowCxV3ExportAgentRequest struct {
2730
2731
2732
2733
2734
2735
2736
2737
2738 AgentUri string `json:"agentUri,omitempty"`
2739
2740
2741
2742
2743
2744
2745
2746 DataFormat string `json:"dataFormat,omitempty"`
2747
2748
2749 Environment string `json:"environment,omitempty"`
2750
2751 GitDestination *GoogleCloudDialogflowCxV3ExportAgentRequestGitDestination `json:"gitDestination,omitempty"`
2752
2753
2754 IncludeBigqueryExportSettings bool `json:"includeBigqueryExportSettings,omitempty"`
2755
2756
2757
2758
2759
2760 ForceSendFields []string `json:"-"`
2761
2762
2763
2764
2765 NullFields []string `json:"-"`
2766 }
2767
2768 func (s *GoogleCloudDialogflowCxV3ExportAgentRequest) MarshalJSON() ([]byte, error) {
2769 type NoMethod GoogleCloudDialogflowCxV3ExportAgentRequest
2770 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2771 }
2772
2773
2774
2775 type GoogleCloudDialogflowCxV3ExportAgentRequestGitDestination struct {
2776
2777 CommitMessage string `json:"commitMessage,omitempty"`
2778
2779 TrackingBranch string `json:"trackingBranch,omitempty"`
2780
2781
2782
2783
2784
2785 ForceSendFields []string `json:"-"`
2786
2787
2788
2789
2790 NullFields []string `json:"-"`
2791 }
2792
2793 func (s *GoogleCloudDialogflowCxV3ExportAgentRequestGitDestination) MarshalJSON() ([]byte, error) {
2794 type NoMethod GoogleCloudDialogflowCxV3ExportAgentRequestGitDestination
2795 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2796 }
2797
2798
2799
2800 type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
2801
2802
2803
2804 AgentContent string `json:"agentContent,omitempty"`
2805
2806
2807 AgentUri string `json:"agentUri,omitempty"`
2808
2809
2810 CommitSha string `json:"commitSha,omitempty"`
2811
2812
2813
2814
2815
2816 ForceSendFields []string `json:"-"`
2817
2818
2819
2820
2821 NullFields []string `json:"-"`
2822 }
2823
2824 func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
2825 type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
2826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2827 }
2828
2829
2830
2831 type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
2832 }
2833
2834
2835
2836 type GoogleCloudDialogflowCxV3ExportEntityTypesRequest struct {
2837
2838
2839
2840
2841
2842
2843
2844 DataFormat string `json:"dataFormat,omitempty"`
2845
2846
2847 EntityTypes []string `json:"entityTypes,omitempty"`
2848
2849
2850 EntityTypesContentInline bool `json:"entityTypesContentInline,omitempty"`
2851
2852
2853
2854
2855
2856
2857
2858 EntityTypesUri string `json:"entityTypesUri,omitempty"`
2859
2860
2861
2862
2863
2864
2865 LanguageCode string `json:"languageCode,omitempty"`
2866
2867
2868
2869
2870
2871 ForceSendFields []string `json:"-"`
2872
2873
2874
2875
2876 NullFields []string `json:"-"`
2877 }
2878
2879 func (s *GoogleCloudDialogflowCxV3ExportEntityTypesRequest) MarshalJSON() ([]byte, error) {
2880 type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesRequest
2881 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2882 }
2883
2884
2885
2886 type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
2887
2888
2889
2890 EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
2891
2892
2893
2894 EntityTypesUri string `json:"entityTypesUri,omitempty"`
2895
2896
2897
2898
2899
2900 ForceSendFields []string `json:"-"`
2901
2902
2903
2904
2905 NullFields []string `json:"-"`
2906 }
2907
2908 func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
2909 type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
2910 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2911 }
2912
2913
2914
2915 type GoogleCloudDialogflowCxV3ExportFlowRequest struct {
2916
2917
2918
2919
2920
2921
2922
2923
2924 FlowUri string `json:"flowUri,omitempty"`
2925
2926
2927 IncludeReferencedFlows bool `json:"includeReferencedFlows,omitempty"`
2928
2929
2930
2931
2932
2933 ForceSendFields []string `json:"-"`
2934
2935
2936
2937
2938 NullFields []string `json:"-"`
2939 }
2940
2941 func (s *GoogleCloudDialogflowCxV3ExportFlowRequest) MarshalJSON() ([]byte, error) {
2942 type NoMethod GoogleCloudDialogflowCxV3ExportFlowRequest
2943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2944 }
2945
2946
2947
2948 type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
2949
2950 FlowContent string `json:"flowContent,omitempty"`
2951
2952
2953 FlowUri string `json:"flowUri,omitempty"`
2954
2955
2956
2957
2958
2959 ForceSendFields []string `json:"-"`
2960
2961
2962
2963
2964 NullFields []string `json:"-"`
2965 }
2966
2967 func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
2968 type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
2969 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2970 }
2971
2972
2973
2974 type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
2975 }
2976
2977
2978
2979 type GoogleCloudDialogflowCxV3ExportIntentsRequest struct {
2980
2981
2982
2983
2984
2985
2986
2987
2988 DataFormat string `json:"dataFormat,omitempty"`
2989
2990
2991 Intents []string `json:"intents,omitempty"`
2992
2993
2994 IntentsContentInline bool `json:"intentsContentInline,omitempty"`
2995
2996
2997
2998
2999
3000
3001
3002 IntentsUri string `json:"intentsUri,omitempty"`
3003
3004
3005
3006
3007
3008 ForceSendFields []string `json:"-"`
3009
3010
3011
3012
3013 NullFields []string `json:"-"`
3014 }
3015
3016 func (s *GoogleCloudDialogflowCxV3ExportIntentsRequest) MarshalJSON() ([]byte, error) {
3017 type NoMethod GoogleCloudDialogflowCxV3ExportIntentsRequest
3018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3019 }
3020
3021
3022
3023 type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
3024
3025
3026
3027 IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
3028
3029
3030 IntentsUri string `json:"intentsUri,omitempty"`
3031
3032
3033
3034
3035
3036 ForceSendFields []string `json:"-"`
3037
3038
3039
3040
3041 NullFields []string `json:"-"`
3042 }
3043
3044 func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
3045 type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
3046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3047 }
3048
3049
3050
3051
3052 type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
3053 }
3054
3055
3056
3057 type GoogleCloudDialogflowCxV3ExportTestCasesRequest struct {
3058
3059
3060
3061
3062
3063
3064
3065 DataFormat string `json:"dataFormat,omitempty"`
3066
3067
3068
3069
3070
3071 Filter string `json:"filter,omitempty"`
3072
3073
3074
3075
3076
3077
3078
3079 GcsUri string `json:"gcsUri,omitempty"`
3080
3081
3082
3083
3084
3085 ForceSendFields []string `json:"-"`
3086
3087
3088
3089
3090 NullFields []string `json:"-"`
3091 }
3092
3093 func (s *GoogleCloudDialogflowCxV3ExportTestCasesRequest) MarshalJSON() ([]byte, error) {
3094 type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesRequest
3095 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3096 }
3097
3098
3099
3100 type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
3101
3102 Content string `json:"content,omitempty"`
3103
3104
3105 GcsUri string `json:"gcsUri,omitempty"`
3106
3107
3108
3109
3110
3111 ForceSendFields []string `json:"-"`
3112
3113
3114
3115
3116 NullFields []string `json:"-"`
3117 }
3118
3119 func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
3120 type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
3121 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3122 }
3123
3124
3125 type GoogleCloudDialogflowCxV3FilterSpecs struct {
3126
3127
3128
3129
3130
3131 DataStores []string `json:"dataStores,omitempty"`
3132
3133
3134
3135 Filter string `json:"filter,omitempty"`
3136
3137
3138
3139
3140
3141 ForceSendFields []string `json:"-"`
3142
3143
3144
3145
3146 NullFields []string `json:"-"`
3147 }
3148
3149 func (s *GoogleCloudDialogflowCxV3FilterSpecs) MarshalJSON() ([]byte, error) {
3150 type NoMethod GoogleCloudDialogflowCxV3FilterSpecs
3151 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3152 }
3153
3154
3155
3156
3157
3158
3159
3160
3161
3162
3163
3164
3165 type GoogleCloudDialogflowCxV3Flow struct {
3166
3167
3168
3169 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
3170
3171
3172 Description string `json:"description,omitempty"`
3173
3174 DisplayName string `json:"displayName,omitempty"`
3175
3176
3177
3178
3179
3180
3181
3182 EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
3183
3184 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
3185
3186 MultiLanguageSettings *GoogleCloudDialogflowCxV3FlowMultiLanguageSettings `json:"multiLanguageSettings,omitempty"`
3187
3188
3189 Name string `json:"name,omitempty"`
3190
3191 NluSettings *GoogleCloudDialogflowCxV3NluSettings `json:"nluSettings,omitempty"`
3192
3193
3194
3195
3196
3197
3198
3199 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
3200
3201
3202
3203
3204
3205
3206
3207
3208
3209 TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
3210
3211
3212 googleapi.ServerResponse `json:"-"`
3213
3214
3215
3216
3217
3218 ForceSendFields []string `json:"-"`
3219
3220
3221
3222
3223 NullFields []string `json:"-"`
3224 }
3225
3226 func (s *GoogleCloudDialogflowCxV3Flow) MarshalJSON() ([]byte, error) {
3227 type NoMethod GoogleCloudDialogflowCxV3Flow
3228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3229 }
3230
3231
3232
3233 type GoogleCloudDialogflowCxV3FlowImportStrategy struct {
3234
3235
3236
3237
3238
3239
3240
3241
3242
3243
3244
3245
3246
3247
3248
3249
3250 GlobalImportStrategy string `json:"globalImportStrategy,omitempty"`
3251
3252
3253
3254
3255
3256 ForceSendFields []string `json:"-"`
3257
3258
3259
3260
3261 NullFields []string `json:"-"`
3262 }
3263
3264 func (s *GoogleCloudDialogflowCxV3FlowImportStrategy) MarshalJSON() ([]byte, error) {
3265 type NoMethod GoogleCloudDialogflowCxV3FlowImportStrategy
3266 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3267 }
3268
3269
3270
3271 type GoogleCloudDialogflowCxV3FlowMultiLanguageSettings struct {
3272
3273
3274
3275 EnableMultiLanguageDetection bool `json:"enableMultiLanguageDetection,omitempty"`
3276
3277
3278
3279
3280
3281
3282 SupportedResponseLanguageCodes []string `json:"supportedResponseLanguageCodes,omitempty"`
3283
3284
3285
3286
3287
3288 ForceSendFields []string `json:"-"`
3289
3290
3291
3292
3293 NullFields []string `json:"-"`
3294 }
3295
3296 func (s *GoogleCloudDialogflowCxV3FlowMultiLanguageSettings) MarshalJSON() ([]byte, error) {
3297 type NoMethod GoogleCloudDialogflowCxV3FlowMultiLanguageSettings
3298 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3299 }
3300
3301
3302
3303 type GoogleCloudDialogflowCxV3FlowValidationResult struct {
3304
3305
3306 Name string `json:"name,omitempty"`
3307
3308 UpdateTime string `json:"updateTime,omitempty"`
3309
3310 ValidationMessages []*GoogleCloudDialogflowCxV3ValidationMessage `json:"validationMessages,omitempty"`
3311
3312
3313 googleapi.ServerResponse `json:"-"`
3314
3315
3316
3317
3318
3319 ForceSendFields []string `json:"-"`
3320
3321
3322
3323
3324 NullFields []string `json:"-"`
3325 }
3326
3327 func (s *GoogleCloudDialogflowCxV3FlowValidationResult) MarshalJSON() ([]byte, error) {
3328 type NoMethod GoogleCloudDialogflowCxV3FlowValidationResult
3329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3330 }
3331
3332
3333
3334
3335
3336
3337 type GoogleCloudDialogflowCxV3Form struct {
3338
3339 Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
3340
3341
3342
3343
3344
3345 ForceSendFields []string `json:"-"`
3346
3347
3348
3349
3350 NullFields []string `json:"-"`
3351 }
3352
3353 func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
3354 type NoMethod GoogleCloudDialogflowCxV3Form
3355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3356 }
3357
3358
3359 type GoogleCloudDialogflowCxV3FormParameter struct {
3360
3361
3362
3363 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
3364
3365
3366 DefaultValue interface{} `json:"defaultValue,omitempty"`
3367
3368
3369 DisplayName string `json:"displayName,omitempty"`
3370
3371
3372
3373
3374 EntityType string `json:"entityType,omitempty"`
3375
3376 FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
3377
3378 IsList bool `json:"isList,omitempty"`
3379
3380
3381
3382
3383 Redact bool `json:"redact,omitempty"`
3384
3385
3386
3387 Required bool `json:"required,omitempty"`
3388
3389
3390
3391
3392
3393 ForceSendFields []string `json:"-"`
3394
3395
3396
3397
3398 NullFields []string `json:"-"`
3399 }
3400
3401 func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
3402 type NoMethod GoogleCloudDialogflowCxV3FormParameter
3403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3404 }
3405
3406
3407
3408 type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
3409
3410
3411
3412 InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
3413
3414
3415
3416
3417
3418
3419
3420
3421
3422
3423
3424
3425
3426
3427
3428
3429
3430
3431
3432
3433
3434 RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
3435
3436
3437
3438
3439
3440 ForceSendFields []string `json:"-"`
3441
3442
3443
3444
3445 NullFields []string `json:"-"`
3446 }
3447
3448 func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
3449 type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
3450 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3451 }
3452
3453
3454 type GoogleCloudDialogflowCxV3FulfillIntentRequest struct {
3455
3456 Match *GoogleCloudDialogflowCxV3Match `json:"match,omitempty"`
3457
3458
3459 MatchIntentRequest *GoogleCloudDialogflowCxV3MatchIntentRequest `json:"matchIntentRequest,omitempty"`
3460
3461
3462 OutputAudioConfig *GoogleCloudDialogflowCxV3OutputAudioConfig `json:"outputAudioConfig,omitempty"`
3463
3464
3465
3466
3467
3468 ForceSendFields []string `json:"-"`
3469
3470
3471
3472
3473 NullFields []string `json:"-"`
3474 }
3475
3476 func (s *GoogleCloudDialogflowCxV3FulfillIntentRequest) MarshalJSON() ([]byte, error) {
3477 type NoMethod GoogleCloudDialogflowCxV3FulfillIntentRequest
3478 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3479 }
3480
3481
3482 type GoogleCloudDialogflowCxV3FulfillIntentResponse struct {
3483
3484
3485
3486
3487
3488
3489
3490
3491 OutputAudio string `json:"outputAudio,omitempty"`
3492
3493
3494 OutputAudioConfig *GoogleCloudDialogflowCxV3OutputAudioConfig `json:"outputAudioConfig,omitempty"`
3495
3496 QueryResult *GoogleCloudDialogflowCxV3QueryResult `json:"queryResult,omitempty"`
3497
3498
3499
3500 ResponseId string `json:"responseId,omitempty"`
3501
3502
3503 googleapi.ServerResponse `json:"-"`
3504
3505
3506
3507
3508
3509 ForceSendFields []string `json:"-"`
3510
3511
3512
3513
3514 NullFields []string `json:"-"`
3515 }
3516
3517 func (s *GoogleCloudDialogflowCxV3FulfillIntentResponse) MarshalJSON() ([]byte, error) {
3518 type NoMethod GoogleCloudDialogflowCxV3FulfillIntentResponse
3519 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3520 }
3521
3522
3523
3524
3525
3526
3527
3528
3529
3530 type GoogleCloudDialogflowCxV3Fulfillment struct {
3531
3532
3533
3534 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
3535
3536 ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
3537
3538
3539
3540
3541 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
3542
3543 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3544
3545
3546
3547
3548
3549
3550
3551 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
3552
3553 SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
3554
3555
3556
3557
3558
3559 Tag string `json:"tag,omitempty"`
3560
3561
3562 Webhook string `json:"webhook,omitempty"`
3563
3564
3565
3566
3567
3568 ForceSendFields []string `json:"-"`
3569
3570
3571
3572
3573 NullFields []string `json:"-"`
3574 }
3575
3576 func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
3577 type NoMethod GoogleCloudDialogflowCxV3Fulfillment
3578 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3579 }
3580
3581
3582
3583
3584 type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
3585
3586 Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
3587
3588
3589
3590
3591
3592 ForceSendFields []string `json:"-"`
3593
3594
3595
3596
3597 NullFields []string `json:"-"`
3598 }
3599
3600 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
3601 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
3602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3603 }
3604
3605
3606
3607
3608 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
3609
3610 CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
3611
3612
3613
3614
3615 Condition string `json:"condition,omitempty"`
3616
3617
3618
3619
3620
3621 ForceSendFields []string `json:"-"`
3622
3623
3624
3625
3626 NullFields []string `json:"-"`
3627 }
3628
3629 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
3630 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
3631 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3632 }
3633
3634
3635
3636 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
3637
3638 AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
3639
3640 Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
3641
3642
3643
3644
3645
3646 ForceSendFields []string `json:"-"`
3647
3648
3649
3650
3651 NullFields []string `json:"-"`
3652 }
3653
3654 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
3655 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
3656 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3657 }
3658
3659
3660
3661 type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
3662
3663 Parameter string `json:"parameter,omitempty"`
3664
3665 Value interface{} `json:"value,omitempty"`
3666
3667
3668
3669
3670
3671 ForceSendFields []string `json:"-"`
3672
3673
3674
3675
3676 NullFields []string `json:"-"`
3677 }
3678
3679 func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
3680 type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
3681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3682 }
3683
3684
3685
3686
3687 type GoogleCloudDialogflowCxV3GcsDestination struct {
3688
3689
3690
3691 Uri string `json:"uri,omitempty"`
3692
3693
3694
3695
3696
3697 ForceSendFields []string `json:"-"`
3698
3699
3700
3701
3702 NullFields []string `json:"-"`
3703 }
3704
3705 func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
3706 type NoMethod GoogleCloudDialogflowCxV3GcsDestination
3707 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3708 }
3709
3710
3711 type GoogleCloudDialogflowCxV3GenerativeSettings struct {
3712
3713 FallbackSettings *GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings `json:"fallbackSettings,omitempty"`
3714
3715 GenerativeSafetySettings *GoogleCloudDialogflowCxV3SafetySettings `json:"generativeSafetySettings,omitempty"`
3716
3717 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
3718
3719 LanguageCode string `json:"languageCode,omitempty"`
3720
3721 Name string `json:"name,omitempty"`
3722
3723
3724 googleapi.ServerResponse `json:"-"`
3725
3726
3727
3728
3729
3730 ForceSendFields []string `json:"-"`
3731
3732
3733
3734
3735 NullFields []string `json:"-"`
3736 }
3737
3738 func (s *GoogleCloudDialogflowCxV3GenerativeSettings) MarshalJSON() ([]byte, error) {
3739 type NoMethod GoogleCloudDialogflowCxV3GenerativeSettings
3740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3741 }
3742
3743
3744
3745 type GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings struct {
3746
3747
3748 PromptTemplates []*GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate `json:"promptTemplates,omitempty"`
3749
3750 SelectedPrompt string `json:"selectedPrompt,omitempty"`
3751
3752
3753
3754
3755
3756 ForceSendFields []string `json:"-"`
3757
3758
3759
3760
3761 NullFields []string `json:"-"`
3762 }
3763
3764 func (s *GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings) MarshalJSON() ([]byte, error) {
3765 type NoMethod GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettings
3766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3767 }
3768
3769
3770
3771 type GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate struct {
3772
3773 DisplayName string `json:"displayName,omitempty"`
3774
3775
3776 Frozen bool `json:"frozen,omitempty"`
3777
3778
3779
3780 PromptText string `json:"promptText,omitempty"`
3781
3782
3783
3784
3785
3786 ForceSendFields []string `json:"-"`
3787
3788
3789
3790
3791 NullFields []string `json:"-"`
3792 }
3793
3794 func (s *GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate) MarshalJSON() ([]byte, error) {
3795 type NoMethod GoogleCloudDialogflowCxV3GenerativeSettingsFallbackSettingsPromptTemplate
3796 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3797 }
3798
3799
3800
3801
3802
3803 type GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings struct {
3804
3805 Agent string `json:"agent,omitempty"`
3806
3807 AgentIdentity string `json:"agentIdentity,omitempty"`
3808
3809
3810 AgentScope string `json:"agentScope,omitempty"`
3811
3812
3813
3814 Business string `json:"business,omitempty"`
3815
3816
3817 BusinessDescription string `json:"businessDescription,omitempty"`
3818
3819
3820
3821 DisableDataStoreFallback bool `json:"disableDataStoreFallback,omitempty"`
3822
3823
3824
3825
3826
3827 ForceSendFields []string `json:"-"`
3828
3829
3830
3831
3832 NullFields []string `json:"-"`
3833 }
3834
3835 func (s *GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
3836 type NoMethod GoogleCloudDialogflowCxV3GenerativeSettingsKnowledgeConnectorSettings
3837 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3838 }
3839
3840
3841
3842
3843
3844 type GoogleCloudDialogflowCxV3Generator struct {
3845
3846
3847
3848
3849 DisplayName string `json:"displayName,omitempty"`
3850
3851
3852
3853 Name string `json:"name,omitempty"`
3854
3855 Placeholders []*GoogleCloudDialogflowCxV3GeneratorPlaceholder `json:"placeholders,omitempty"`
3856
3857 PromptText *GoogleCloudDialogflowCxV3Phrase `json:"promptText,omitempty"`
3858
3859
3860 googleapi.ServerResponse `json:"-"`
3861
3862
3863
3864
3865
3866 ForceSendFields []string `json:"-"`
3867
3868
3869
3870
3871 NullFields []string `json:"-"`
3872 }
3873
3874 func (s *GoogleCloudDialogflowCxV3Generator) MarshalJSON() ([]byte, error) {
3875 type NoMethod GoogleCloudDialogflowCxV3Generator
3876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3877 }
3878
3879
3880
3881 type GoogleCloudDialogflowCxV3GeneratorPlaceholder struct {
3882
3883 Id string `json:"id,omitempty"`
3884
3885 Name string `json:"name,omitempty"`
3886
3887
3888
3889
3890
3891 ForceSendFields []string `json:"-"`
3892
3893
3894
3895
3896 NullFields []string `json:"-"`
3897 }
3898
3899 func (s *GoogleCloudDialogflowCxV3GeneratorPlaceholder) MarshalJSON() ([]byte, error) {
3900 type NoMethod GoogleCloudDialogflowCxV3GeneratorPlaceholder
3901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3902 }
3903
3904
3905
3906 type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
3907
3908
3909
3910
3911
3912
3913
3914 State string `json:"state,omitempty"`
3915
3916
3917
3918
3919
3920 ForceSendFields []string `json:"-"`
3921
3922
3923
3924
3925 NullFields []string `json:"-"`
3926 }
3927
3928 func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
3929 type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
3930 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3931 }
3932
3933
3934
3935 type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
3936
3937 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3938
3939
3940
3941
3942
3943 ForceSendFields []string `json:"-"`
3944
3945
3946
3947
3948 NullFields []string `json:"-"`
3949 }
3950
3951 func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
3952 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
3953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3954 }
3955
3956
3957
3958 type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
3959
3960 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
3961
3962
3963
3964
3965
3966 ForceSendFields []string `json:"-"`
3967
3968
3969
3970
3971 NullFields []string `json:"-"`
3972 }
3973
3974 func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
3975 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
3976 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3977 }
3978
3979
3980
3981 type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
3982 }
3983
3984
3985
3986 type GoogleCloudDialogflowCxV3ImportEntityTypesRequest struct {
3987
3988 EntityTypesContent *GoogleCloudDialogflowCxV3InlineSource `json:"entityTypesContent,omitempty"`
3989
3990
3991
3992
3993
3994
3995
3996 EntityTypesUri string `json:"entityTypesUri,omitempty"`
3997
3998
3999
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012 MergeOption string `json:"mergeOption,omitempty"`
4013
4014
4015
4016
4017
4018 TargetEntityType string `json:"targetEntityType,omitempty"`
4019
4020
4021
4022
4023
4024 ForceSendFields []string `json:"-"`
4025
4026
4027
4028
4029 NullFields []string `json:"-"`
4030 }
4031
4032 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesRequest) MarshalJSON() ([]byte, error) {
4033 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesRequest
4034 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4035 }
4036
4037
4038
4039 type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
4040
4041
4042 ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
4043
4044
4045 EntityTypes []string `json:"entityTypes,omitempty"`
4046
4047
4048
4049
4050
4051 ForceSendFields []string `json:"-"`
4052
4053
4054
4055
4056 NullFields []string `json:"-"`
4057 }
4058
4059 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
4060 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
4061 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4062 }
4063
4064
4065
4066
4067
4068 type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
4069
4070 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
4071
4072 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
4073
4074
4075
4076
4077
4078 ForceSendFields []string `json:"-"`
4079
4080
4081
4082
4083 NullFields []string `json:"-"`
4084 }
4085
4086 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
4087 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
4088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4089 }
4090
4091
4092
4093 type GoogleCloudDialogflowCxV3ImportFlowRequest struct {
4094
4095 FlowContent string `json:"flowContent,omitempty"`
4096
4097
4098 FlowImportStrategy *GoogleCloudDialogflowCxV3FlowImportStrategy `json:"flowImportStrategy,omitempty"`
4099
4100
4101
4102
4103
4104
4105 FlowUri string `json:"flowUri,omitempty"`
4106
4107
4108
4109
4110
4111
4112
4113
4114
4115
4116 ImportOption string `json:"importOption,omitempty"`
4117
4118
4119
4120
4121
4122 ForceSendFields []string `json:"-"`
4123
4124
4125
4126
4127 NullFields []string `json:"-"`
4128 }
4129
4130 func (s *GoogleCloudDialogflowCxV3ImportFlowRequest) MarshalJSON() ([]byte, error) {
4131 type NoMethod GoogleCloudDialogflowCxV3ImportFlowRequest
4132 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4133 }
4134
4135
4136
4137 type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
4138
4139
4140 Flow string `json:"flow,omitempty"`
4141
4142
4143
4144
4145
4146 ForceSendFields []string `json:"-"`
4147
4148
4149
4150
4151 NullFields []string `json:"-"`
4152 }
4153
4154 func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
4155 type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
4156 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4157 }
4158
4159
4160
4161 type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
4162 }
4163
4164
4165
4166 type GoogleCloudDialogflowCxV3ImportIntentsRequest struct {
4167
4168 IntentsContent *GoogleCloudDialogflowCxV3InlineSource `json:"intentsContent,omitempty"`
4169
4170
4171
4172
4173
4174
4175
4176 IntentsUri string `json:"intentsUri,omitempty"`
4177
4178
4179
4180
4181
4182
4183
4184
4185
4186
4187
4188
4189
4190
4191
4192
4193
4194
4195 MergeOption string `json:"mergeOption,omitempty"`
4196
4197
4198
4199
4200
4201 ForceSendFields []string `json:"-"`
4202
4203
4204
4205
4206 NullFields []string `json:"-"`
4207 }
4208
4209 func (s *GoogleCloudDialogflowCxV3ImportIntentsRequest) MarshalJSON() ([]byte, error) {
4210 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsRequest
4211 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4212 }
4213
4214
4215
4216 type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
4217
4218
4219 ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
4220
4221
4222 Intents []string `json:"intents,omitempty"`
4223
4224
4225
4226
4227
4228 ForceSendFields []string `json:"-"`
4229
4230
4231
4232
4233 NullFields []string `json:"-"`
4234 }
4235
4236 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
4237 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
4238 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4239 }
4240
4241
4242
4243
4244
4245 type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
4246
4247 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
4248
4249 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
4250
4251
4252
4253
4254
4255 ForceSendFields []string `json:"-"`
4256
4257
4258
4259
4260 NullFields []string `json:"-"`
4261 }
4262
4263 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
4264 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
4265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4266 }
4267
4268
4269
4270 type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
4271
4272 Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
4273
4274
4275
4276
4277
4278 ForceSendFields []string `json:"-"`
4279
4280
4281
4282
4283 NullFields []string `json:"-"`
4284 }
4285
4286 func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
4287 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
4288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4289 }
4290
4291
4292
4293 type GoogleCloudDialogflowCxV3ImportTestCasesRequest struct {
4294
4295 Content string `json:"content,omitempty"`
4296
4297
4298
4299
4300
4301
4302 GcsUri string `json:"gcsUri,omitempty"`
4303
4304
4305
4306
4307
4308 ForceSendFields []string `json:"-"`
4309
4310
4311
4312
4313 NullFields []string `json:"-"`
4314 }
4315
4316 func (s *GoogleCloudDialogflowCxV3ImportTestCasesRequest) MarshalJSON() ([]byte, error) {
4317 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesRequest
4318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4319 }
4320
4321
4322
4323 type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
4324
4325
4326 Names []string `json:"names,omitempty"`
4327
4328
4329
4330
4331
4332 ForceSendFields []string `json:"-"`
4333
4334
4335
4336
4337 NullFields []string `json:"-"`
4338 }
4339
4340 func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
4341 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
4342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4343 }
4344
4345
4346
4347
4348 type GoogleCloudDialogflowCxV3InlineDestination struct {
4349
4350
4351 Content string `json:"content,omitempty"`
4352
4353
4354
4355
4356
4357 ForceSendFields []string `json:"-"`
4358
4359
4360
4361
4362 NullFields []string `json:"-"`
4363 }
4364
4365 func (s *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
4366 type NoMethod GoogleCloudDialogflowCxV3InlineDestination
4367 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4368 }
4369
4370
4371
4372 type GoogleCloudDialogflowCxV3InlineSource struct {
4373
4374 Content string `json:"content,omitempty"`
4375
4376
4377
4378
4379
4380 ForceSendFields []string `json:"-"`
4381
4382
4383
4384
4385 NullFields []string `json:"-"`
4386 }
4387
4388 func (s *GoogleCloudDialogflowCxV3InlineSource) MarshalJSON() ([]byte, error) {
4389 type NoMethod GoogleCloudDialogflowCxV3InlineSource
4390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4391 }
4392
4393
4394
4395 type GoogleCloudDialogflowCxV3InputAudioConfig struct {
4396
4397
4398
4399
4400
4401
4402
4403
4404
4405
4406
4407
4408
4409
4410
4411
4412
4413
4414
4415
4416
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429 AudioEncoding string `json:"audioEncoding,omitempty"`
4430
4431
4432 BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
4433
4434
4435
4436
4437 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
4438
4439
4440
4441 Model string `json:"model,omitempty"`
4442
4443
4444
4445
4446
4447
4448
4449
4450
4451
4452
4453
4454
4455
4456
4457
4458 ModelVariant string `json:"modelVariant,omitempty"`
4459
4460
4461
4462
4463
4464 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
4465
4466
4467
4468
4469
4470 PhraseHints []string `json:"phraseHints,omitempty"`
4471
4472
4473
4474 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
4475
4476
4477
4478
4479
4480
4481
4482 SingleUtterance bool `json:"singleUtterance,omitempty"`
4483
4484
4485
4486
4487
4488 ForceSendFields []string `json:"-"`
4489
4490
4491
4492
4493 NullFields []string `json:"-"`
4494 }
4495
4496 func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
4497 type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
4498 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4499 }
4500
4501
4502
4503
4504
4505 type GoogleCloudDialogflowCxV3Intent struct {
4506
4507
4508
4509 Description string `json:"description,omitempty"`
4510
4511
4512 DisplayName string `json:"displayName,omitempty"`
4513
4514
4515
4516
4517
4518 IsFallback bool `json:"isFallback,omitempty"`
4519
4520
4521
4522
4523
4524
4525
4526
4527
4528 Labels map[string]string `json:"labels,omitempty"`
4529
4530
4531
4532 Name string `json:"name,omitempty"`
4533
4534 Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
4535
4536
4537
4538
4539
4540 Priority int64 `json:"priority,omitempty"`
4541
4542
4543 TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
4544
4545
4546 googleapi.ServerResponse `json:"-"`
4547
4548
4549
4550
4551
4552 ForceSendFields []string `json:"-"`
4553
4554
4555
4556
4557 NullFields []string `json:"-"`
4558 }
4559
4560 func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
4561 type NoMethod GoogleCloudDialogflowCxV3Intent
4562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4563 }
4564
4565
4566
4567
4568 type GoogleCloudDialogflowCxV3IntentCoverage struct {
4569
4570 CoverageScore float64 `json:"coverageScore,omitempty"`
4571
4572 Intents []*GoogleCloudDialogflowCxV3IntentCoverageIntent `json:"intents,omitempty"`
4573
4574
4575
4576
4577
4578 ForceSendFields []string `json:"-"`
4579
4580
4581
4582
4583 NullFields []string `json:"-"`
4584 }
4585
4586 func (s *GoogleCloudDialogflowCxV3IntentCoverage) MarshalJSON() ([]byte, error) {
4587 type NoMethod GoogleCloudDialogflowCxV3IntentCoverage
4588 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4589 }
4590
4591 func (s *GoogleCloudDialogflowCxV3IntentCoverage) UnmarshalJSON(data []byte) error {
4592 type NoMethod GoogleCloudDialogflowCxV3IntentCoverage
4593 var s1 struct {
4594 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
4595 *NoMethod
4596 }
4597 s1.NoMethod = (*NoMethod)(s)
4598 if err := json.Unmarshal(data, &s1); err != nil {
4599 return err
4600 }
4601 s.CoverageScore = float64(s1.CoverageScore)
4602 return nil
4603 }
4604
4605
4606 type GoogleCloudDialogflowCxV3IntentCoverageIntent struct {
4607
4608
4609 Covered bool `json:"covered,omitempty"`
4610
4611 Intent string `json:"intent,omitempty"`
4612
4613
4614
4615
4616
4617 ForceSendFields []string `json:"-"`
4618
4619
4620
4621
4622 NullFields []string `json:"-"`
4623 }
4624
4625 func (s *GoogleCloudDialogflowCxV3IntentCoverageIntent) MarshalJSON() ([]byte, error) {
4626 type NoMethod GoogleCloudDialogflowCxV3IntentCoverageIntent
4627 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4628 }
4629
4630
4631
4632 type GoogleCloudDialogflowCxV3IntentInput struct {
4633
4634
4635 Intent string `json:"intent,omitempty"`
4636
4637
4638
4639
4640
4641 ForceSendFields []string `json:"-"`
4642
4643
4644
4645
4646 NullFields []string `json:"-"`
4647 }
4648
4649 func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
4650 type NoMethod GoogleCloudDialogflowCxV3IntentInput
4651 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4652 }
4653
4654
4655 type GoogleCloudDialogflowCxV3IntentParameter struct {
4656
4657
4658
4659
4660 EntityType string `json:"entityType,omitempty"`
4661
4662
4663 Id string `json:"id,omitempty"`
4664
4665 IsList bool `json:"isList,omitempty"`
4666
4667
4668
4669
4670 Redact bool `json:"redact,omitempty"`
4671
4672
4673
4674
4675
4676 ForceSendFields []string `json:"-"`
4677
4678
4679
4680
4681 NullFields []string `json:"-"`
4682 }
4683
4684 func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
4685 type NoMethod GoogleCloudDialogflowCxV3IntentParameter
4686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4687 }
4688
4689
4690
4691 type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
4692
4693 Id string `json:"id,omitempty"`
4694
4695
4696
4697
4698
4699
4700
4701
4702
4703
4704
4705 Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
4706
4707 RepeatCount int64 `json:"repeatCount,omitempty"`
4708
4709
4710
4711
4712
4713 ForceSendFields []string `json:"-"`
4714
4715
4716
4717
4718 NullFields []string `json:"-"`
4719 }
4720
4721 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
4722 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
4723 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4724 }
4725
4726
4727
4728 type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
4729
4730
4731 ParameterId string `json:"parameterId,omitempty"`
4732
4733 Text string `json:"text,omitempty"`
4734
4735
4736
4737
4738
4739 ForceSendFields []string `json:"-"`
4740
4741
4742
4743
4744 NullFields []string `json:"-"`
4745 }
4746
4747 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
4748 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
4749 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4750 }
4751
4752
4753
4754
4755 type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
4756
4757 DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
4758
4759 Enabled bool `json:"enabled,omitempty"`
4760
4761
4762 TargetFlow string `json:"targetFlow,omitempty"`
4763
4764
4765 TargetPage string `json:"targetPage,omitempty"`
4766
4767
4768
4769
4770
4771 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
4772
4773
4774
4775
4776
4777 ForceSendFields []string `json:"-"`
4778
4779
4780
4781
4782 NullFields []string `json:"-"`
4783 }
4784
4785 func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
4786 type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
4787 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4788 }
4789
4790
4791
4792 type GoogleCloudDialogflowCxV3LanguageInfo struct {
4793
4794
4795 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
4796
4797 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
4798
4799
4800 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
4801
4802
4803
4804
4805
4806 ForceSendFields []string `json:"-"`
4807
4808
4809
4810
4811 NullFields []string `json:"-"`
4812 }
4813
4814 func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
4815 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
4816 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4817 }
4818
4819 func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
4820 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
4821 var s1 struct {
4822 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
4823 *NoMethod
4824 }
4825 s1.NoMethod = (*NoMethod)(s)
4826 if err := json.Unmarshal(data, &s1); err != nil {
4827 return err
4828 }
4829 s.ConfidenceScore = float64(s1.ConfidenceScore)
4830 return nil
4831 }
4832
4833
4834
4835 type GoogleCloudDialogflowCxV3ListAgentsResponse struct {
4836
4837
4838 Agents []*GoogleCloudDialogflowCxV3Agent `json:"agents,omitempty"`
4839
4840
4841 NextPageToken string `json:"nextPageToken,omitempty"`
4842
4843
4844 googleapi.ServerResponse `json:"-"`
4845
4846
4847
4848
4849
4850 ForceSendFields []string `json:"-"`
4851
4852
4853
4854
4855 NullFields []string `json:"-"`
4856 }
4857
4858 func (s *GoogleCloudDialogflowCxV3ListAgentsResponse) MarshalJSON() ([]byte, error) {
4859 type NoMethod GoogleCloudDialogflowCxV3ListAgentsResponse
4860 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4861 }
4862
4863
4864
4865 type GoogleCloudDialogflowCxV3ListChangelogsResponse struct {
4866
4867
4868
4869 Changelogs []*GoogleCloudDialogflowCxV3Changelog `json:"changelogs,omitempty"`
4870
4871
4872 NextPageToken string `json:"nextPageToken,omitempty"`
4873
4874
4875 googleapi.ServerResponse `json:"-"`
4876
4877
4878
4879
4880
4881 ForceSendFields []string `json:"-"`
4882
4883
4884
4885
4886 NullFields []string `json:"-"`
4887 }
4888
4889 func (s *GoogleCloudDialogflowCxV3ListChangelogsResponse) MarshalJSON() ([]byte, error) {
4890 type NoMethod GoogleCloudDialogflowCxV3ListChangelogsResponse
4891 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4892 }
4893
4894
4895
4896 type GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse struct {
4897
4898 ContinuousTestResults []*GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResults,omitempty"`
4899
4900
4901 NextPageToken string `json:"nextPageToken,omitempty"`
4902
4903
4904 googleapi.ServerResponse `json:"-"`
4905
4906
4907
4908
4909
4910 ForceSendFields []string `json:"-"`
4911
4912
4913
4914
4915 NullFields []string `json:"-"`
4916 }
4917
4918 func (s *GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse) MarshalJSON() ([]byte, error) {
4919 type NoMethod GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse
4920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4921 }
4922
4923
4924
4925 type GoogleCloudDialogflowCxV3ListDeploymentsResponse struct {
4926
4927
4928
4929
4930 Deployments []*GoogleCloudDialogflowCxV3Deployment `json:"deployments,omitempty"`
4931
4932
4933 NextPageToken string `json:"nextPageToken,omitempty"`
4934
4935
4936 googleapi.ServerResponse `json:"-"`
4937
4938
4939
4940
4941
4942 ForceSendFields []string `json:"-"`
4943
4944
4945
4946
4947 NullFields []string `json:"-"`
4948 }
4949
4950 func (s *GoogleCloudDialogflowCxV3ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
4951 type NoMethod GoogleCloudDialogflowCxV3ListDeploymentsResponse
4952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4953 }
4954
4955
4956
4957 type GoogleCloudDialogflowCxV3ListEntityTypesResponse struct {
4958
4959
4960 EntityTypes []*GoogleCloudDialogflowCxV3EntityType `json:"entityTypes,omitempty"`
4961
4962
4963 NextPageToken string `json:"nextPageToken,omitempty"`
4964
4965
4966 googleapi.ServerResponse `json:"-"`
4967
4968
4969
4970
4971
4972 ForceSendFields []string `json:"-"`
4973
4974
4975
4976
4977 NullFields []string `json:"-"`
4978 }
4979
4980 func (s *GoogleCloudDialogflowCxV3ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
4981 type NoMethod GoogleCloudDialogflowCxV3ListEntityTypesResponse
4982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4983 }
4984
4985
4986
4987 type GoogleCloudDialogflowCxV3ListEnvironmentsResponse struct {
4988
4989
4990
4991
4992 Environments []*GoogleCloudDialogflowCxV3Environment `json:"environments,omitempty"`
4993
4994
4995 NextPageToken string `json:"nextPageToken,omitempty"`
4996
4997
4998 googleapi.ServerResponse `json:"-"`
4999
5000
5001
5002
5003
5004 ForceSendFields []string `json:"-"`
5005
5006
5007
5008
5009 NullFields []string `json:"-"`
5010 }
5011
5012 func (s *GoogleCloudDialogflowCxV3ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
5013 type NoMethod GoogleCloudDialogflowCxV3ListEnvironmentsResponse
5014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5015 }
5016
5017
5018
5019 type GoogleCloudDialogflowCxV3ListExperimentsResponse struct {
5020
5021
5022
5023
5024 Experiments []*GoogleCloudDialogflowCxV3Experiment `json:"experiments,omitempty"`
5025
5026
5027 NextPageToken string `json:"nextPageToken,omitempty"`
5028
5029
5030 googleapi.ServerResponse `json:"-"`
5031
5032
5033
5034
5035
5036 ForceSendFields []string `json:"-"`
5037
5038
5039
5040
5041 NullFields []string `json:"-"`
5042 }
5043
5044 func (s *GoogleCloudDialogflowCxV3ListExperimentsResponse) MarshalJSON() ([]byte, error) {
5045 type NoMethod GoogleCloudDialogflowCxV3ListExperimentsResponse
5046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5047 }
5048
5049
5050
5051 type GoogleCloudDialogflowCxV3ListFlowsResponse struct {
5052
5053
5054 Flows []*GoogleCloudDialogflowCxV3Flow `json:"flows,omitempty"`
5055
5056
5057 NextPageToken string `json:"nextPageToken,omitempty"`
5058
5059
5060 googleapi.ServerResponse `json:"-"`
5061
5062
5063
5064
5065
5066 ForceSendFields []string `json:"-"`
5067
5068
5069
5070
5071 NullFields []string `json:"-"`
5072 }
5073
5074 func (s *GoogleCloudDialogflowCxV3ListFlowsResponse) MarshalJSON() ([]byte, error) {
5075 type NoMethod GoogleCloudDialogflowCxV3ListFlowsResponse
5076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5077 }
5078
5079
5080
5081 type GoogleCloudDialogflowCxV3ListGeneratorsResponse struct {
5082
5083
5084 Generators []*GoogleCloudDialogflowCxV3Generator `json:"generators,omitempty"`
5085
5086
5087 NextPageToken string `json:"nextPageToken,omitempty"`
5088
5089
5090 googleapi.ServerResponse `json:"-"`
5091
5092
5093
5094
5095
5096 ForceSendFields []string `json:"-"`
5097
5098
5099
5100
5101 NullFields []string `json:"-"`
5102 }
5103
5104 func (s *GoogleCloudDialogflowCxV3ListGeneratorsResponse) MarshalJSON() ([]byte, error) {
5105 type NoMethod GoogleCloudDialogflowCxV3ListGeneratorsResponse
5106 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5107 }
5108
5109
5110
5111 type GoogleCloudDialogflowCxV3ListIntentsResponse struct {
5112
5113
5114 Intents []*GoogleCloudDialogflowCxV3Intent `json:"intents,omitempty"`
5115
5116
5117 NextPageToken string `json:"nextPageToken,omitempty"`
5118
5119
5120 googleapi.ServerResponse `json:"-"`
5121
5122
5123
5124
5125
5126 ForceSendFields []string `json:"-"`
5127
5128
5129
5130
5131 NullFields []string `json:"-"`
5132 }
5133
5134 func (s *GoogleCloudDialogflowCxV3ListIntentsResponse) MarshalJSON() ([]byte, error) {
5135 type NoMethod GoogleCloudDialogflowCxV3ListIntentsResponse
5136 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5137 }
5138
5139
5140
5141 type GoogleCloudDialogflowCxV3ListPagesResponse struct {
5142
5143
5144 NextPageToken string `json:"nextPageToken,omitempty"`
5145
5146
5147 Pages []*GoogleCloudDialogflowCxV3Page `json:"pages,omitempty"`
5148
5149
5150 googleapi.ServerResponse `json:"-"`
5151
5152
5153
5154
5155
5156 ForceSendFields []string `json:"-"`
5157
5158
5159
5160
5161 NullFields []string `json:"-"`
5162 }
5163
5164 func (s *GoogleCloudDialogflowCxV3ListPagesResponse) MarshalJSON() ([]byte, error) {
5165 type NoMethod GoogleCloudDialogflowCxV3ListPagesResponse
5166 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5167 }
5168
5169
5170
5171 type GoogleCloudDialogflowCxV3ListSecuritySettingsResponse struct {
5172
5173
5174 NextPageToken string `json:"nextPageToken,omitempty"`
5175
5176 SecuritySettings []*GoogleCloudDialogflowCxV3SecuritySettings `json:"securitySettings,omitempty"`
5177
5178
5179 googleapi.ServerResponse `json:"-"`
5180
5181
5182
5183
5184
5185 ForceSendFields []string `json:"-"`
5186
5187
5188
5189
5190 NullFields []string `json:"-"`
5191 }
5192
5193 func (s *GoogleCloudDialogflowCxV3ListSecuritySettingsResponse) MarshalJSON() ([]byte, error) {
5194 type NoMethod GoogleCloudDialogflowCxV3ListSecuritySettingsResponse
5195 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5196 }
5197
5198
5199
5200 type GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse struct {
5201
5202
5203 NextPageToken string `json:"nextPageToken,omitempty"`
5204
5205
5206
5207 SessionEntityTypes []*GoogleCloudDialogflowCxV3SessionEntityType `json:"sessionEntityTypes,omitempty"`
5208
5209
5210 googleapi.ServerResponse `json:"-"`
5211
5212
5213
5214
5215
5216 ForceSendFields []string `json:"-"`
5217
5218
5219
5220
5221 NullFields []string `json:"-"`
5222 }
5223
5224 func (s *GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
5225 type NoMethod GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse
5226 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5227 }
5228
5229
5230
5231 type GoogleCloudDialogflowCxV3ListTestCaseResultsResponse struct {
5232
5233
5234 NextPageToken string `json:"nextPageToken,omitempty"`
5235
5236 TestCaseResults []*GoogleCloudDialogflowCxV3TestCaseResult `json:"testCaseResults,omitempty"`
5237
5238
5239 googleapi.ServerResponse `json:"-"`
5240
5241
5242
5243
5244
5245 ForceSendFields []string `json:"-"`
5246
5247
5248
5249
5250 NullFields []string `json:"-"`
5251 }
5252
5253 func (s *GoogleCloudDialogflowCxV3ListTestCaseResultsResponse) MarshalJSON() ([]byte, error) {
5254 type NoMethod GoogleCloudDialogflowCxV3ListTestCaseResultsResponse
5255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5256 }
5257
5258
5259
5260 type GoogleCloudDialogflowCxV3ListTestCasesResponse struct {
5261
5262
5263 NextPageToken string `json:"nextPageToken,omitempty"`
5264
5265
5266 TestCases []*GoogleCloudDialogflowCxV3TestCase `json:"testCases,omitempty"`
5267
5268
5269 googleapi.ServerResponse `json:"-"`
5270
5271
5272
5273
5274
5275 ForceSendFields []string `json:"-"`
5276
5277
5278
5279
5280 NullFields []string `json:"-"`
5281 }
5282
5283 func (s *GoogleCloudDialogflowCxV3ListTestCasesResponse) MarshalJSON() ([]byte, error) {
5284 type NoMethod GoogleCloudDialogflowCxV3ListTestCasesResponse
5285 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5286 }
5287
5288
5289
5290 type GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse struct {
5291
5292
5293 NextPageToken string `json:"nextPageToken,omitempty"`
5294
5295
5296
5297
5298 TransitionRouteGroups []*GoogleCloudDialogflowCxV3TransitionRouteGroup `json:"transitionRouteGroups,omitempty"`
5299
5300
5301 googleapi.ServerResponse `json:"-"`
5302
5303
5304
5305
5306
5307 ForceSendFields []string `json:"-"`
5308
5309
5310
5311
5312 NullFields []string `json:"-"`
5313 }
5314
5315 func (s *GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse) MarshalJSON() ([]byte, error) {
5316 type NoMethod GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse
5317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5318 }
5319
5320
5321
5322 type GoogleCloudDialogflowCxV3ListVersionsResponse struct {
5323
5324
5325 NextPageToken string `json:"nextPageToken,omitempty"`
5326
5327
5328
5329
5330 Versions []*GoogleCloudDialogflowCxV3Version `json:"versions,omitempty"`
5331
5332
5333 googleapi.ServerResponse `json:"-"`
5334
5335
5336
5337
5338
5339 ForceSendFields []string `json:"-"`
5340
5341
5342
5343
5344 NullFields []string `json:"-"`
5345 }
5346
5347 func (s *GoogleCloudDialogflowCxV3ListVersionsResponse) MarshalJSON() ([]byte, error) {
5348 type NoMethod GoogleCloudDialogflowCxV3ListVersionsResponse
5349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5350 }
5351
5352
5353
5354 type GoogleCloudDialogflowCxV3ListWebhooksResponse struct {
5355
5356
5357 NextPageToken string `json:"nextPageToken,omitempty"`
5358
5359
5360 Webhooks []*GoogleCloudDialogflowCxV3Webhook `json:"webhooks,omitempty"`
5361
5362
5363 googleapi.ServerResponse `json:"-"`
5364
5365
5366
5367
5368
5369 ForceSendFields []string `json:"-"`
5370
5371
5372
5373
5374 NullFields []string `json:"-"`
5375 }
5376
5377 func (s *GoogleCloudDialogflowCxV3ListWebhooksResponse) MarshalJSON() ([]byte, error) {
5378 type NoMethod GoogleCloudDialogflowCxV3ListWebhooksResponse
5379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5380 }
5381
5382
5383
5384 type GoogleCloudDialogflowCxV3LoadVersionRequest struct {
5385
5386
5387
5388
5389
5390 AllowOverrideAgentResources bool `json:"allowOverrideAgentResources,omitempty"`
5391
5392
5393
5394
5395
5396 ForceSendFields []string `json:"-"`
5397
5398
5399
5400
5401 NullFields []string `json:"-"`
5402 }
5403
5404 func (s *GoogleCloudDialogflowCxV3LoadVersionRequest) MarshalJSON() ([]byte, error) {
5405 type NoMethod GoogleCloudDialogflowCxV3LoadVersionRequest
5406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5407 }
5408
5409
5410
5411 type GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse struct {
5412
5413
5414 Environments []*GoogleCloudDialogflowCxV3Environment `json:"environments,omitempty"`
5415
5416
5417 NextPageToken string `json:"nextPageToken,omitempty"`
5418
5419
5420 googleapi.ServerResponse `json:"-"`
5421
5422
5423
5424
5425
5426 ForceSendFields []string `json:"-"`
5427
5428
5429
5430
5431 NullFields []string `json:"-"`
5432 }
5433
5434 func (s *GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse) MarshalJSON() ([]byte, error) {
5435 type NoMethod GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse
5436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5437 }
5438
5439
5440 type GoogleCloudDialogflowCxV3Match struct {
5441
5442
5443
5444
5445
5446
5447 Confidence float64 `json:"confidence,omitempty"`
5448
5449
5450 Event string `json:"event,omitempty"`
5451
5452
5453
5454 Intent *GoogleCloudDialogflowCxV3Intent `json:"intent,omitempty"`
5455
5456
5457
5458
5459
5460
5461
5462
5463
5464
5465
5466 MatchType string `json:"matchType,omitempty"`
5467
5468
5469
5470
5471
5472
5473
5474
5475
5476 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
5477
5478
5479
5480 ResolvedInput string `json:"resolvedInput,omitempty"`
5481
5482
5483
5484
5485
5486 ForceSendFields []string `json:"-"`
5487
5488
5489
5490
5491 NullFields []string `json:"-"`
5492 }
5493
5494 func (s *GoogleCloudDialogflowCxV3Match) MarshalJSON() ([]byte, error) {
5495 type NoMethod GoogleCloudDialogflowCxV3Match
5496 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5497 }
5498
5499 func (s *GoogleCloudDialogflowCxV3Match) UnmarshalJSON(data []byte) error {
5500 type NoMethod GoogleCloudDialogflowCxV3Match
5501 var s1 struct {
5502 Confidence gensupport.JSONFloat64 `json:"confidence"`
5503 *NoMethod
5504 }
5505 s1.NoMethod = (*NoMethod)(s)
5506 if err := json.Unmarshal(data, &s1); err != nil {
5507 return err
5508 }
5509 s.Confidence = float64(s1.Confidence)
5510 return nil
5511 }
5512
5513
5514 type GoogleCloudDialogflowCxV3MatchIntentRequest struct {
5515
5516
5517 PersistParameterChanges bool `json:"persistParameterChanges,omitempty"`
5518
5519 QueryInput *GoogleCloudDialogflowCxV3QueryInput `json:"queryInput,omitempty"`
5520
5521 QueryParams *GoogleCloudDialogflowCxV3QueryParameters `json:"queryParams,omitempty"`
5522
5523
5524
5525
5526
5527 ForceSendFields []string `json:"-"`
5528
5529
5530
5531
5532 NullFields []string `json:"-"`
5533 }
5534
5535 func (s *GoogleCloudDialogflowCxV3MatchIntentRequest) MarshalJSON() ([]byte, error) {
5536 type NoMethod GoogleCloudDialogflowCxV3MatchIntentRequest
5537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5538 }
5539
5540
5541 type GoogleCloudDialogflowCxV3MatchIntentResponse struct {
5542
5543
5544 CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
5545
5546
5547 Matches []*GoogleCloudDialogflowCxV3Match `json:"matches,omitempty"`
5548
5549
5550 Text string `json:"text,omitempty"`
5551
5552
5553 Transcript string `json:"transcript,omitempty"`
5554
5555
5556 TriggerEvent string `json:"triggerEvent,omitempty"`
5557
5558
5559
5560 TriggerIntent string `json:"triggerIntent,omitempty"`
5561
5562
5563 googleapi.ServerResponse `json:"-"`
5564
5565
5566
5567
5568
5569 ForceSendFields []string `json:"-"`
5570
5571
5572
5573
5574 NullFields []string `json:"-"`
5575 }
5576
5577 func (s *GoogleCloudDialogflowCxV3MatchIntentResponse) MarshalJSON() ([]byte, error) {
5578 type NoMethod GoogleCloudDialogflowCxV3MatchIntentResponse
5579 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5580 }
5581
5582
5583 type GoogleCloudDialogflowCxV3NluSettings struct {
5584
5585
5586
5587
5588
5589
5590 ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
5591
5592
5593
5594
5595
5596
5597
5598
5599
5600
5601 ModelTrainingMode string `json:"modelTrainingMode,omitempty"`
5602
5603
5604
5605
5606
5607
5608
5609 ModelType string `json:"modelType,omitempty"`
5610
5611
5612
5613
5614
5615 ForceSendFields []string `json:"-"`
5616
5617
5618
5619
5620 NullFields []string `json:"-"`
5621 }
5622
5623 func (s *GoogleCloudDialogflowCxV3NluSettings) MarshalJSON() ([]byte, error) {
5624 type NoMethod GoogleCloudDialogflowCxV3NluSettings
5625 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5626 }
5627
5628 func (s *GoogleCloudDialogflowCxV3NluSettings) UnmarshalJSON(data []byte) error {
5629 type NoMethod GoogleCloudDialogflowCxV3NluSettings
5630 var s1 struct {
5631 ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
5632 *NoMethod
5633 }
5634 s1.NoMethod = (*NoMethod)(s)
5635 if err := json.Unmarshal(data, &s1); err != nil {
5636 return err
5637 }
5638 s.ClassificationThreshold = float64(s1.ClassificationThreshold)
5639 return nil
5640 }
5641
5642
5643
5644 type GoogleCloudDialogflowCxV3OutputAudioConfig struct {
5645
5646
5647
5648
5649
5650
5651
5652
5653
5654
5655
5656
5657
5658
5659
5660
5661 AudioEncoding string `json:"audioEncoding,omitempty"`
5662
5663
5664
5665
5666
5667
5668 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
5669
5670
5671 SynthesizeSpeechConfig *GoogleCloudDialogflowCxV3SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
5672
5673
5674
5675
5676
5677 ForceSendFields []string `json:"-"`
5678
5679
5680
5681
5682 NullFields []string `json:"-"`
5683 }
5684
5685 func (s *GoogleCloudDialogflowCxV3OutputAudioConfig) MarshalJSON() ([]byte, error) {
5686 type NoMethod GoogleCloudDialogflowCxV3OutputAudioConfig
5687 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5688 }
5689
5690
5691
5692
5693
5694
5695
5696
5697
5698
5699
5700
5701
5702
5703 type GoogleCloudDialogflowCxV3Page struct {
5704
5705
5706
5707 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
5708
5709
5710 Description string `json:"description,omitempty"`
5711
5712
5713 DisplayName string `json:"displayName,omitempty"`
5714
5715
5716 EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
5717
5718
5719 EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
5720
5721
5722 Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
5723
5724 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
5725
5726
5727
5728 Name string `json:"name,omitempty"`
5729
5730
5731
5732
5733
5734
5735
5736
5737
5738
5739
5740
5741 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
5742
5743
5744
5745
5746
5747
5748
5749
5750
5751
5752 TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
5753
5754
5755 googleapi.ServerResponse `json:"-"`
5756
5757
5758
5759
5760
5761 ForceSendFields []string `json:"-"`
5762
5763
5764
5765
5766 NullFields []string `json:"-"`
5767 }
5768
5769 func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
5770 type NoMethod GoogleCloudDialogflowCxV3Page
5771 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5772 }
5773
5774
5775
5776 type GoogleCloudDialogflowCxV3PageInfo struct {
5777
5778
5779
5780 CurrentPage string `json:"currentPage,omitempty"`
5781
5782
5783 DisplayName string `json:"displayName,omitempty"`
5784
5785
5786 FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
5787
5788
5789
5790
5791
5792 ForceSendFields []string `json:"-"`
5793
5794
5795
5796
5797 NullFields []string `json:"-"`
5798 }
5799
5800 func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
5801 type NoMethod GoogleCloudDialogflowCxV3PageInfo
5802 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5803 }
5804
5805
5806 type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
5807
5808
5809
5810 ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
5811
5812
5813
5814
5815
5816 ForceSendFields []string `json:"-"`
5817
5818
5819
5820
5821 NullFields []string `json:"-"`
5822 }
5823
5824 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
5825 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
5826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5827 }
5828
5829
5830
5831 type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
5832
5833
5834
5835 DisplayName string `json:"displayName,omitempty"`
5836
5837
5838
5839 JustCollected bool `json:"justCollected,omitempty"`
5840
5841
5842
5843
5844 Required bool `json:"required,omitempty"`
5845
5846
5847
5848
5849
5850
5851
5852
5853
5854
5855
5856
5857 State string `json:"state,omitempty"`
5858
5859
5860
5861 Value interface{} `json:"value,omitempty"`
5862
5863
5864
5865
5866
5867 ForceSendFields []string `json:"-"`
5868
5869
5870
5871
5872 NullFields []string `json:"-"`
5873 }
5874
5875 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
5876 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
5877 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5878 }
5879
5880
5881
5882 type GoogleCloudDialogflowCxV3Phrase struct {
5883
5884 Text string `json:"text,omitempty"`
5885
5886
5887
5888
5889
5890 ForceSendFields []string `json:"-"`
5891
5892
5893
5894
5895 NullFields []string `json:"-"`
5896 }
5897
5898 func (s *GoogleCloudDialogflowCxV3Phrase) MarshalJSON() ([]byte, error) {
5899 type NoMethod GoogleCloudDialogflowCxV3Phrase
5900 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5901 }
5902
5903
5904
5905
5906
5907
5908
5909 type GoogleCloudDialogflowCxV3QueryInput struct {
5910
5911 Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
5912
5913 Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
5914
5915 Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
5916
5917 Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
5918
5919
5920
5921
5922 LanguageCode string `json:"languageCode,omitempty"`
5923
5924 Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
5925
5926
5927
5928
5929
5930 ForceSendFields []string `json:"-"`
5931
5932
5933
5934
5935 NullFields []string `json:"-"`
5936 }
5937
5938 func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
5939 type NoMethod GoogleCloudDialogflowCxV3QueryInput
5940 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5941 }
5942
5943
5944
5945 type GoogleCloudDialogflowCxV3QueryParameters struct {
5946
5947
5948 AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
5949
5950
5951
5952
5953
5954 Channel string `json:"channel,omitempty"`
5955
5956
5957
5958
5959
5960
5961 CurrentPage string `json:"currentPage,omitempty"`
5962
5963 DisableWebhook bool `json:"disableWebhook,omitempty"`
5964
5965
5966
5967
5968
5969
5970 EndUserMetadata googleapi.RawMessage `json:"endUserMetadata,omitempty"`
5971
5972
5973
5974
5975
5976 FlowVersions []string `json:"flowVersions,omitempty"`
5977
5978 GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
5979
5980
5981
5982
5983
5984
5985
5986
5987
5988
5989
5990
5991 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
5992
5993
5994
5995
5996
5997
5998 Payload googleapi.RawMessage `json:"payload,omitempty"`
5999
6000
6001
6002
6003 PopulateDataStoreConnectionSignals bool `json:"populateDataStoreConnectionSignals,omitempty"`
6004
6005 SearchConfig *GoogleCloudDialogflowCxV3SearchConfig `json:"searchConfig,omitempty"`
6006
6007
6008
6009 SessionEntityTypes []*GoogleCloudDialogflowCxV3SessionEntityType `json:"sessionEntityTypes,omitempty"`
6010
6011
6012
6013
6014 SessionTtl string `json:"sessionTtl,omitempty"`
6015
6016
6017
6018 TimeZone string `json:"timeZone,omitempty"`
6019
6020
6021
6022
6023
6024
6025
6026
6027 WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
6028
6029
6030
6031
6032
6033 ForceSendFields []string `json:"-"`
6034
6035
6036
6037
6038 NullFields []string `json:"-"`
6039 }
6040
6041 func (s *GoogleCloudDialogflowCxV3QueryParameters) MarshalJSON() ([]byte, error) {
6042 type NoMethod GoogleCloudDialogflowCxV3QueryParameters
6043 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6044 }
6045
6046
6047
6048 type GoogleCloudDialogflowCxV3QueryResult struct {
6049
6050
6051
6052
6053
6054
6055 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
6056
6057
6058
6059 AllowAnswerFeedback bool `json:"allowAnswerFeedback,omitempty"`
6060
6061
6062 CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
6063
6064
6065
6066
6067 DataStoreConnectionSignals *GoogleCloudDialogflowCxV3DataStoreConnectionSignals `json:"dataStoreConnectionSignals,omitempty"`
6068
6069
6070
6071
6072
6073
6074
6075
6076
6077
6078
6079
6080 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
6081
6082
6083 Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
6084
6085
6086
6087
6088 Intent *GoogleCloudDialogflowCxV3Intent `json:"intent,omitempty"`
6089
6090
6091
6092
6093
6094
6095
6096 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
6097
6098
6099
6100
6101 LanguageCode string `json:"languageCode,omitempty"`
6102
6103 Match *GoogleCloudDialogflowCxV3Match `json:"match,omitempty"`
6104
6105
6106
6107
6108
6109
6110
6111
6112
6113 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
6114
6115
6116
6117 ResponseMessages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"responseMessages,omitempty"`
6118
6119
6120 SentimentAnalysisResult *GoogleCloudDialogflowCxV3SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
6121
6122
6123 Text string `json:"text,omitempty"`
6124
6125
6126 Transcript string `json:"transcript,omitempty"`
6127
6128
6129 TriggerEvent string `json:"triggerEvent,omitempty"`
6130
6131
6132
6133 TriggerIntent string `json:"triggerIntent,omitempty"`
6134
6135
6136
6137 WebhookPayloads []googleapi.RawMessage `json:"webhookPayloads,omitempty"`
6138
6139
6140 WebhookStatuses []*GoogleRpcStatus `json:"webhookStatuses,omitempty"`
6141
6142
6143
6144
6145
6146 ForceSendFields []string `json:"-"`
6147
6148
6149
6150
6151 NullFields []string `json:"-"`
6152 }
6153
6154 func (s *GoogleCloudDialogflowCxV3QueryResult) MarshalJSON() ([]byte, error) {
6155 type NoMethod GoogleCloudDialogflowCxV3QueryResult
6156 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6157 }
6158
6159 func (s *GoogleCloudDialogflowCxV3QueryResult) UnmarshalJSON(data []byte) error {
6160 type NoMethod GoogleCloudDialogflowCxV3QueryResult
6161 var s1 struct {
6162 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
6163 *NoMethod
6164 }
6165 s1.NoMethod = (*NoMethod)(s)
6166 if err := json.Unmarshal(data, &s1); err != nil {
6167 return err
6168 }
6169 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
6170 return nil
6171 }
6172
6173
6174
6175 type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
6176
6177 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
6178
6179
6180
6181
6182
6183 ForceSendFields []string `json:"-"`
6184
6185
6186
6187
6188 NullFields []string `json:"-"`
6189 }
6190
6191 func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
6192 type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
6193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6194 }
6195
6196
6197 type GoogleCloudDialogflowCxV3ResourceName struct {
6198
6199 DisplayName string `json:"displayName,omitempty"`
6200
6201 Name string `json:"name,omitempty"`
6202
6203
6204
6205
6206
6207 ForceSendFields []string `json:"-"`
6208
6209
6210
6211
6212 NullFields []string `json:"-"`
6213 }
6214
6215 func (s *GoogleCloudDialogflowCxV3ResourceName) MarshalJSON() ([]byte, error) {
6216 type NoMethod GoogleCloudDialogflowCxV3ResourceName
6217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6218 }
6219
6220
6221
6222
6223
6224
6225
6226
6227
6228
6229
6230
6231
6232
6233 type GoogleCloudDialogflowCxV3ResponseMessage struct {
6234
6235
6236
6237 Channel string `json:"channel,omitempty"`
6238
6239 ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
6240
6241
6242
6243
6244
6245 EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
6246
6247
6248 KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
6249
6250 LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
6251
6252
6253
6254
6255 MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
6256
6257
6258
6259 OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
6260
6261 Payload googleapi.RawMessage `json:"payload,omitempty"`
6262
6263
6264
6265 PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
6266
6267
6268
6269
6270
6271
6272
6273
6274 ResponseType string `json:"responseType,omitempty"`
6275
6276
6277 TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
6278
6279 Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
6280
6281
6282
6283
6284
6285 ForceSendFields []string `json:"-"`
6286
6287
6288
6289
6290 NullFields []string `json:"-"`
6291 }
6292
6293 func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
6294 type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
6295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6296 }
6297
6298
6299
6300
6301
6302
6303
6304
6305
6306
6307
6308 type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
6309
6310 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6311
6312
6313
6314
6315
6316 ForceSendFields []string `json:"-"`
6317
6318
6319
6320
6321 NullFields []string `json:"-"`
6322 }
6323
6324 func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
6325 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
6326 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6327 }
6328
6329
6330
6331
6332 type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
6333 }
6334
6335
6336
6337
6338
6339 type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
6340 }
6341
6342
6343
6344
6345
6346
6347
6348
6349
6350 type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
6351
6352
6353 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6354
6355
6356
6357
6358
6359 ForceSendFields []string `json:"-"`
6360
6361
6362
6363
6364 NullFields []string `json:"-"`
6365 }
6366
6367 func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
6368 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
6369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6370 }
6371
6372
6373
6374
6375
6376
6377 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
6378
6379 Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
6380
6381
6382
6383
6384
6385 ForceSendFields []string `json:"-"`
6386
6387
6388
6389
6390 NullFields []string `json:"-"`
6391 }
6392
6393 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
6394 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
6395 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6396 }
6397
6398
6399
6400 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
6401
6402
6403
6404 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6405
6406
6407 Audio string `json:"audio,omitempty"`
6408
6409
6410 Uri string `json:"uri,omitempty"`
6411
6412
6413
6414
6415
6416 ForceSendFields []string `json:"-"`
6417
6418
6419
6420
6421 NullFields []string `json:"-"`
6422 }
6423
6424 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
6425 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
6426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6427 }
6428
6429
6430
6431
6432 type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
6433
6434
6435
6436 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6437
6438
6439 Ssml string `json:"ssml,omitempty"`
6440
6441 Text string `json:"text,omitempty"`
6442
6443
6444
6445
6446
6447 ForceSendFields []string `json:"-"`
6448
6449
6450
6451
6452 NullFields []string `json:"-"`
6453 }
6454
6455 func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
6456 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
6457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6458 }
6459
6460
6461
6462 type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
6463
6464
6465
6466 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6467
6468
6469 AudioUri string `json:"audioUri,omitempty"`
6470
6471
6472
6473
6474
6475 ForceSendFields []string `json:"-"`
6476
6477
6478
6479
6480 NullFields []string `json:"-"`
6481 }
6482
6483 func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
6484 type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
6485 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6486 }
6487
6488
6489
6490
6491 type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
6492
6493
6494 PhoneNumber string `json:"phoneNumber,omitempty"`
6495
6496
6497
6498
6499
6500 ForceSendFields []string `json:"-"`
6501
6502
6503
6504
6505 NullFields []string `json:"-"`
6506 }
6507
6508 func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
6509 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
6510 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6511 }
6512
6513
6514 type GoogleCloudDialogflowCxV3ResponseMessageText struct {
6515
6516
6517
6518 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
6519
6520 Text []string `json:"text,omitempty"`
6521
6522
6523
6524
6525
6526 ForceSendFields []string `json:"-"`
6527
6528
6529
6530
6531 NullFields []string `json:"-"`
6532 }
6533
6534 func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
6535 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
6536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6537 }
6538
6539
6540
6541 type GoogleCloudDialogflowCxV3RestoreAgentRequest struct {
6542
6543 AgentContent string `json:"agentContent,omitempty"`
6544
6545
6546
6547
6548
6549
6550 AgentUri string `json:"agentUri,omitempty"`
6551
6552 GitSource *GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource `json:"gitSource,omitempty"`
6553
6554
6555
6556
6557
6558
6559
6560
6561
6562 RestoreOption string `json:"restoreOption,omitempty"`
6563
6564
6565
6566
6567
6568 ForceSendFields []string `json:"-"`
6569
6570
6571
6572
6573 NullFields []string `json:"-"`
6574 }
6575
6576 func (s *GoogleCloudDialogflowCxV3RestoreAgentRequest) MarshalJSON() ([]byte, error) {
6577 type NoMethod GoogleCloudDialogflowCxV3RestoreAgentRequest
6578 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6579 }
6580
6581
6582
6583 type GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource struct {
6584
6585 TrackingBranch string `json:"trackingBranch,omitempty"`
6586
6587
6588
6589
6590
6591 ForceSendFields []string `json:"-"`
6592
6593
6594
6595
6596 NullFields []string `json:"-"`
6597 }
6598
6599 func (s *GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource) MarshalJSON() ([]byte, error) {
6600 type NoMethod GoogleCloudDialogflowCxV3RestoreAgentRequestGitSource
6601 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6602 }
6603
6604
6605 type GoogleCloudDialogflowCxV3RolloutConfig struct {
6606
6607
6608
6609
6610 FailureCondition string `json:"failureCondition,omitempty"`
6611
6612
6613
6614
6615
6616 RolloutCondition string `json:"rolloutCondition,omitempty"`
6617
6618
6619 RolloutSteps []*GoogleCloudDialogflowCxV3RolloutConfigRolloutStep `json:"rolloutSteps,omitempty"`
6620
6621
6622
6623
6624
6625 ForceSendFields []string `json:"-"`
6626
6627
6628
6629
6630 NullFields []string `json:"-"`
6631 }
6632
6633 func (s *GoogleCloudDialogflowCxV3RolloutConfig) MarshalJSON() ([]byte, error) {
6634 type NoMethod GoogleCloudDialogflowCxV3RolloutConfig
6635 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6636 }
6637
6638
6639
6640 type GoogleCloudDialogflowCxV3RolloutConfigRolloutStep struct {
6641
6642 DisplayName string `json:"displayName,omitempty"`
6643
6644
6645
6646 MinDuration string `json:"minDuration,omitempty"`
6647
6648
6649 TrafficPercent int64 `json:"trafficPercent,omitempty"`
6650
6651
6652
6653
6654
6655 ForceSendFields []string `json:"-"`
6656
6657
6658
6659
6660 NullFields []string `json:"-"`
6661 }
6662
6663 func (s *GoogleCloudDialogflowCxV3RolloutConfigRolloutStep) MarshalJSON() ([]byte, error) {
6664 type NoMethod GoogleCloudDialogflowCxV3RolloutConfigRolloutStep
6665 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6666 }
6667
6668
6669 type GoogleCloudDialogflowCxV3RolloutState struct {
6670
6671 StartTime string `json:"startTime,omitempty"`
6672
6673 Step string `json:"step,omitempty"`
6674
6675 StepIndex int64 `json:"stepIndex,omitempty"`
6676
6677
6678
6679
6680
6681 ForceSendFields []string `json:"-"`
6682
6683
6684
6685
6686 NullFields []string `json:"-"`
6687 }
6688
6689 func (s *GoogleCloudDialogflowCxV3RolloutState) MarshalJSON() ([]byte, error) {
6690 type NoMethod GoogleCloudDialogflowCxV3RolloutState
6691 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6692 }
6693
6694
6695
6696 type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
6697
6698 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
6699
6700
6701
6702
6703
6704 ForceSendFields []string `json:"-"`
6705
6706
6707
6708
6709 NullFields []string `json:"-"`
6710 }
6711
6712 func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
6713 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
6714 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6715 }
6716
6717
6718
6719 type GoogleCloudDialogflowCxV3RunContinuousTestRequest struct {
6720 }
6721
6722
6723
6724 type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
6725
6726 ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
6727
6728
6729
6730
6731
6732 ForceSendFields []string `json:"-"`
6733
6734
6735
6736
6737 NullFields []string `json:"-"`
6738 }
6739
6740 func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
6741 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
6742 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6743 }
6744
6745
6746
6747
6748 type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
6749 }
6750
6751
6752
6753 type GoogleCloudDialogflowCxV3RunTestCaseRequest struct {
6754
6755
6756 Environment string `json:"environment,omitempty"`
6757
6758
6759
6760
6761
6762 ForceSendFields []string `json:"-"`
6763
6764
6765
6766
6767 NullFields []string `json:"-"`
6768 }
6769
6770 func (s *GoogleCloudDialogflowCxV3RunTestCaseRequest) MarshalJSON() ([]byte, error) {
6771 type NoMethod GoogleCloudDialogflowCxV3RunTestCaseRequest
6772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6773 }
6774
6775
6776
6777 type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
6778
6779 Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
6780
6781
6782
6783
6784
6785 ForceSendFields []string `json:"-"`
6786
6787
6788
6789
6790 NullFields []string `json:"-"`
6791 }
6792
6793 func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
6794 type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
6795 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6796 }
6797
6798
6799 type GoogleCloudDialogflowCxV3SafetySettings struct {
6800
6801 BannedPhrases []*GoogleCloudDialogflowCxV3SafetySettingsPhrase `json:"bannedPhrases,omitempty"`
6802
6803
6804
6805
6806
6807 ForceSendFields []string `json:"-"`
6808
6809
6810
6811
6812 NullFields []string `json:"-"`
6813 }
6814
6815 func (s *GoogleCloudDialogflowCxV3SafetySettings) MarshalJSON() ([]byte, error) {
6816 type NoMethod GoogleCloudDialogflowCxV3SafetySettings
6817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6818 }
6819
6820
6821
6822 type GoogleCloudDialogflowCxV3SafetySettingsPhrase struct {
6823
6824 LanguageCode string `json:"languageCode,omitempty"`
6825
6826 Text string `json:"text,omitempty"`
6827
6828
6829
6830
6831
6832 ForceSendFields []string `json:"-"`
6833
6834
6835
6836
6837 NullFields []string `json:"-"`
6838 }
6839
6840 func (s *GoogleCloudDialogflowCxV3SafetySettingsPhrase) MarshalJSON() ([]byte, error) {
6841 type NoMethod GoogleCloudDialogflowCxV3SafetySettingsPhrase
6842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6843 }
6844
6845
6846
6847 type GoogleCloudDialogflowCxV3SearchConfig struct {
6848
6849 BoostSpecs []*GoogleCloudDialogflowCxV3BoostSpecs `json:"boostSpecs,omitempty"`
6850
6851 FilterSpecs []*GoogleCloudDialogflowCxV3FilterSpecs `json:"filterSpecs,omitempty"`
6852
6853
6854
6855
6856
6857 ForceSendFields []string `json:"-"`
6858
6859
6860
6861
6862 NullFields []string `json:"-"`
6863 }
6864
6865 func (s *GoogleCloudDialogflowCxV3SearchConfig) MarshalJSON() ([]byte, error) {
6866 type NoMethod GoogleCloudDialogflowCxV3SearchConfig
6867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6868 }
6869
6870
6871
6872
6873
6874 type GoogleCloudDialogflowCxV3SecuritySettings struct {
6875
6876
6877
6878
6879
6880
6881
6882
6883
6884
6885 AudioExportSettings *GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings `json:"audioExportSettings,omitempty"`
6886
6887
6888
6889
6890
6891
6892
6893
6894
6895
6896 DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
6897
6898
6899 DisplayName string `json:"displayName,omitempty"`
6900
6901
6902
6903
6904 InsightsExportSettings *GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings `json:"insightsExportSettings,omitempty"`
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914
6915 InspectTemplate string `json:"inspectTemplate,omitempty"`
6916
6917
6918
6919
6920 Name string `json:"name,omitempty"`
6921
6922
6923
6924
6925
6926
6927
6928 PurgeDataTypes []string `json:"purgeDataTypes,omitempty"`
6929
6930
6931
6932
6933
6934
6935
6936
6937
6938 RedactionScope string `json:"redactionScope,omitempty"`
6939
6940
6941
6942
6943
6944
6945 RedactionStrategy string `json:"redactionStrategy,omitempty"`
6946
6947
6948
6949
6950
6951
6952
6953
6954
6955 RetentionStrategy string `json:"retentionStrategy,omitempty"`
6956
6957
6958
6959
6960
6961
6962
6963 RetentionWindowDays int64 `json:"retentionWindowDays,omitempty"`
6964
6965
6966 googleapi.ServerResponse `json:"-"`
6967
6968
6969
6970
6971
6972 ForceSendFields []string `json:"-"`
6973
6974
6975
6976
6977 NullFields []string `json:"-"`
6978 }
6979
6980 func (s *GoogleCloudDialogflowCxV3SecuritySettings) MarshalJSON() ([]byte, error) {
6981 type NoMethod GoogleCloudDialogflowCxV3SecuritySettings
6982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6983 }
6984
6985
6986
6987 type GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings struct {
6988
6989 AudioExportPattern string `json:"audioExportPattern,omitempty"`
6990
6991
6992
6993
6994
6995
6996
6997
6998 AudioFormat string `json:"audioFormat,omitempty"`
6999
7000
7001
7002 EnableAudioRedaction bool `json:"enableAudioRedaction,omitempty"`
7003
7004
7005
7006
7007 GcsBucket string `json:"gcsBucket,omitempty"`
7008
7009
7010 StoreTtsAudio bool `json:"storeTtsAudio,omitempty"`
7011
7012
7013
7014
7015
7016 ForceSendFields []string `json:"-"`
7017
7018
7019
7020
7021 NullFields []string `json:"-"`
7022 }
7023
7024 func (s *GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings) MarshalJSON() ([]byte, error) {
7025 type NoMethod GoogleCloudDialogflowCxV3SecuritySettingsAudioExportSettings
7026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7027 }
7028
7029
7030
7031
7032 type GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings struct {
7033
7034
7035 EnableInsightsExport bool `json:"enableInsightsExport,omitempty"`
7036
7037
7038
7039
7040
7041 ForceSendFields []string `json:"-"`
7042
7043
7044
7045
7046 NullFields []string `json:"-"`
7047 }
7048
7049 func (s *GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings) MarshalJSON() ([]byte, error) {
7050 type NoMethod GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings
7051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7052 }
7053
7054
7055
7056
7057
7058 type GoogleCloudDialogflowCxV3SentimentAnalysisResult struct {
7059
7060
7061
7062 Magnitude float64 `json:"magnitude,omitempty"`
7063
7064
7065 Score float64 `json:"score,omitempty"`
7066
7067
7068
7069
7070
7071 ForceSendFields []string `json:"-"`
7072
7073
7074
7075
7076 NullFields []string `json:"-"`
7077 }
7078
7079 func (s *GoogleCloudDialogflowCxV3SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
7080 type NoMethod GoogleCloudDialogflowCxV3SentimentAnalysisResult
7081 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7082 }
7083
7084 func (s *GoogleCloudDialogflowCxV3SentimentAnalysisResult) UnmarshalJSON(data []byte) error {
7085 type NoMethod GoogleCloudDialogflowCxV3SentimentAnalysisResult
7086 var s1 struct {
7087 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
7088 Score gensupport.JSONFloat64 `json:"score"`
7089 *NoMethod
7090 }
7091 s1.NoMethod = (*NoMethod)(s)
7092 if err := json.Unmarshal(data, &s1); err != nil {
7093 return err
7094 }
7095 s.Magnitude = float64(s1.Magnitude)
7096 s.Score = float64(s1.Score)
7097 return nil
7098 }
7099
7100
7101
7102
7103
7104
7105
7106
7107
7108
7109 type GoogleCloudDialogflowCxV3SessionEntityType struct {
7110
7111
7112 Entities []*GoogleCloudDialogflowCxV3EntityTypeEntity `json:"entities,omitempty"`
7113
7114
7115
7116
7117
7118
7119
7120
7121
7122
7123
7124
7125
7126
7127
7128
7129 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
7130
7131
7132
7133
7134 Name string `json:"name,omitempty"`
7135
7136
7137 googleapi.ServerResponse `json:"-"`
7138
7139
7140
7141
7142
7143 ForceSendFields []string `json:"-"`
7144
7145
7146
7147
7148 NullFields []string `json:"-"`
7149 }
7150
7151 func (s *GoogleCloudDialogflowCxV3SessionEntityType) MarshalJSON() ([]byte, error) {
7152 type NoMethod GoogleCloudDialogflowCxV3SessionEntityType
7153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7154 }
7155
7156
7157
7158 type GoogleCloudDialogflowCxV3SessionInfo struct {
7159
7160
7161
7162
7163
7164 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
7165
7166
7167
7168
7169
7170 Session string `json:"session,omitempty"`
7171
7172
7173
7174
7175
7176 ForceSendFields []string `json:"-"`
7177
7178
7179
7180
7181 NullFields []string `json:"-"`
7182 }
7183
7184 func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
7185 type NoMethod GoogleCloudDialogflowCxV3SessionInfo
7186 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7187 }
7188
7189
7190
7191 type GoogleCloudDialogflowCxV3SpeechToTextSettings struct {
7192
7193
7194 EnableSpeechAdaptation bool `json:"enableSpeechAdaptation,omitempty"`
7195
7196
7197
7198
7199
7200 ForceSendFields []string `json:"-"`
7201
7202
7203
7204
7205 NullFields []string `json:"-"`
7206 }
7207
7208 func (s *GoogleCloudDialogflowCxV3SpeechToTextSettings) MarshalJSON() ([]byte, error) {
7209 type NoMethod GoogleCloudDialogflowCxV3SpeechToTextSettings
7210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7211 }
7212
7213
7214
7215 type GoogleCloudDialogflowCxV3StartExperimentRequest struct {
7216 }
7217
7218
7219
7220 type GoogleCloudDialogflowCxV3StopExperimentRequest struct {
7221 }
7222
7223
7224
7225 type GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest struct {
7226
7227 AnswerFeedback *GoogleCloudDialogflowCxV3AnswerFeedback `json:"answerFeedback,omitempty"`
7228
7229
7230 ResponseId string `json:"responseId,omitempty"`
7231
7232
7233 UpdateMask string `json:"updateMask,omitempty"`
7234
7235
7236
7237
7238
7239 ForceSendFields []string `json:"-"`
7240
7241
7242
7243
7244 NullFields []string `json:"-"`
7245 }
7246
7247 func (s *GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest) MarshalJSON() ([]byte, error) {
7248 type NoMethod GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest
7249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7250 }
7251
7252
7253
7254 type GoogleCloudDialogflowCxV3SynthesizeSpeechConfig struct {
7255
7256
7257
7258 EffectsProfileId []string `json:"effectsProfileId,omitempty"`
7259
7260
7261
7262 Pitch float64 `json:"pitch,omitempty"`
7263
7264
7265
7266
7267 SpeakingRate float64 `json:"speakingRate,omitempty"`
7268
7269 Voice *GoogleCloudDialogflowCxV3VoiceSelectionParams `json:"voice,omitempty"`
7270
7271
7272
7273
7274
7275
7276
7277
7278 VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
7279
7280
7281
7282
7283
7284 ForceSendFields []string `json:"-"`
7285
7286
7287
7288
7289 NullFields []string `json:"-"`
7290 }
7291
7292 func (s *GoogleCloudDialogflowCxV3SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
7293 type NoMethod GoogleCloudDialogflowCxV3SynthesizeSpeechConfig
7294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7295 }
7296
7297 func (s *GoogleCloudDialogflowCxV3SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
7298 type NoMethod GoogleCloudDialogflowCxV3SynthesizeSpeechConfig
7299 var s1 struct {
7300 Pitch gensupport.JSONFloat64 `json:"pitch"`
7301 SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
7302 VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
7303 *NoMethod
7304 }
7305 s1.NoMethod = (*NoMethod)(s)
7306 if err := json.Unmarshal(data, &s1); err != nil {
7307 return err
7308 }
7309 s.Pitch = float64(s1.Pitch)
7310 s.SpeakingRate = float64(s1.SpeakingRate)
7311 s.VolumeGainDb = float64(s1.VolumeGainDb)
7312 return nil
7313 }
7314
7315
7316 type GoogleCloudDialogflowCxV3TestCase struct {
7317
7318 CreationTime string `json:"creationTime,omitempty"`
7319
7320
7321 DisplayName string `json:"displayName,omitempty"`
7322
7323 LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
7324
7325
7326
7327 Name string `json:"name,omitempty"`
7328
7329
7330 Notes string `json:"notes,omitempty"`
7331
7332
7333
7334 Tags []string `json:"tags,omitempty"`
7335
7336
7337
7338 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
7339
7340 TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
7341
7342
7343 googleapi.ServerResponse `json:"-"`
7344
7345
7346
7347
7348
7349 ForceSendFields []string `json:"-"`
7350
7351
7352
7353
7354 NullFields []string `json:"-"`
7355 }
7356
7357 func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
7358 type NoMethod GoogleCloudDialogflowCxV3TestCase
7359 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7360 }
7361
7362
7363 type GoogleCloudDialogflowCxV3TestCaseError struct {
7364
7365 Status *GoogleRpcStatus `json:"status,omitempty"`
7366
7367 TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
7368
7369
7370
7371
7372
7373 ForceSendFields []string `json:"-"`
7374
7375
7376
7377
7378 NullFields []string `json:"-"`
7379 }
7380
7381 func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
7382 type NoMethod GoogleCloudDialogflowCxV3TestCaseError
7383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7384 }
7385
7386
7387
7388 type GoogleCloudDialogflowCxV3TestCaseResult struct {
7389
7390
7391 ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
7392
7393
7394 Environment string `json:"environment,omitempty"`
7395
7396
7397 Name string `json:"name,omitempty"`
7398
7399
7400
7401
7402
7403
7404 TestResult string `json:"testResult,omitempty"`
7405
7406 TestTime string `json:"testTime,omitempty"`
7407
7408
7409 googleapi.ServerResponse `json:"-"`
7410
7411
7412
7413
7414
7415 ForceSendFields []string `json:"-"`
7416
7417
7418
7419
7420 NullFields []string `json:"-"`
7421 }
7422
7423 func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
7424 type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
7425 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7426 }
7427
7428
7429
7430 type GoogleCloudDialogflowCxV3TestConfig struct {
7431
7432
7433
7434
7435
7436 Flow string `json:"flow,omitempty"`
7437
7438
7439
7440
7441
7442 Page string `json:"page,omitempty"`
7443
7444
7445 TrackingParameters []string `json:"trackingParameters,omitempty"`
7446
7447
7448
7449
7450
7451 ForceSendFields []string `json:"-"`
7452
7453
7454
7455
7456 NullFields []string `json:"-"`
7457 }
7458
7459 func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
7460 type NoMethod GoogleCloudDialogflowCxV3TestConfig
7461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7462 }
7463
7464
7465 type GoogleCloudDialogflowCxV3TestError struct {
7466
7467 Status *GoogleRpcStatus `json:"status,omitempty"`
7468
7469 TestCase string `json:"testCase,omitempty"`
7470
7471 TestTime string `json:"testTime,omitempty"`
7472
7473
7474
7475
7476
7477 ForceSendFields []string `json:"-"`
7478
7479
7480
7481
7482 NullFields []string `json:"-"`
7483 }
7484
7485 func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
7486 type NoMethod GoogleCloudDialogflowCxV3TestError
7487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7488 }
7489
7490
7491
7492 type GoogleCloudDialogflowCxV3TestRunDifference struct {
7493
7494
7495 Description string `json:"description,omitempty"`
7496
7497
7498
7499
7500
7501
7502
7503
7504
7505 Type string `json:"type,omitempty"`
7506
7507
7508
7509
7510
7511 ForceSendFields []string `json:"-"`
7512
7513
7514
7515
7516 NullFields []string `json:"-"`
7517 }
7518
7519 func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
7520 type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
7521 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7522 }
7523
7524
7525
7526 type GoogleCloudDialogflowCxV3TextInput struct {
7527
7528 Text string `json:"text,omitempty"`
7529
7530
7531
7532
7533
7534 ForceSendFields []string `json:"-"`
7535
7536
7537
7538
7539 NullFields []string `json:"-"`
7540 }
7541
7542 func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
7543 type NoMethod GoogleCloudDialogflowCxV3TextInput
7544 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7545 }
7546
7547
7548
7549 type GoogleCloudDialogflowCxV3TextToSpeechSettings struct {
7550
7551
7552
7553
7554
7555
7556
7557
7558 SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowCxV3SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
7559
7560
7561
7562
7563
7564 ForceSendFields []string `json:"-"`
7565
7566
7567
7568
7569 NullFields []string `json:"-"`
7570 }
7571
7572 func (s *GoogleCloudDialogflowCxV3TextToSpeechSettings) MarshalJSON() ([]byte, error) {
7573 type NoMethod GoogleCloudDialogflowCxV3TextToSpeechSettings
7574 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7575 }
7576
7577
7578
7579 type GoogleCloudDialogflowCxV3TrainFlowRequest struct {
7580 }
7581
7582
7583
7584
7585
7586 type GoogleCloudDialogflowCxV3TransitionCoverage struct {
7587
7588 CoverageScore float64 `json:"coverageScore,omitempty"`
7589
7590 Transitions []*GoogleCloudDialogflowCxV3TransitionCoverageTransition `json:"transitions,omitempty"`
7591
7592
7593
7594
7595
7596 ForceSendFields []string `json:"-"`
7597
7598
7599
7600
7601 NullFields []string `json:"-"`
7602 }
7603
7604 func (s *GoogleCloudDialogflowCxV3TransitionCoverage) MarshalJSON() ([]byte, error) {
7605 type NoMethod GoogleCloudDialogflowCxV3TransitionCoverage
7606 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7607 }
7608
7609 func (s *GoogleCloudDialogflowCxV3TransitionCoverage) UnmarshalJSON(data []byte) error {
7610 type NoMethod GoogleCloudDialogflowCxV3TransitionCoverage
7611 var s1 struct {
7612 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
7613 *NoMethod
7614 }
7615 s1.NoMethod = (*NoMethod)(s)
7616 if err := json.Unmarshal(data, &s1); err != nil {
7617 return err
7618 }
7619 s.CoverageScore = float64(s1.CoverageScore)
7620 return nil
7621 }
7622
7623
7624
7625 type GoogleCloudDialogflowCxV3TransitionCoverageTransition struct {
7626
7627
7628 Covered bool `json:"covered,omitempty"`
7629
7630 EventHandler *GoogleCloudDialogflowCxV3EventHandler `json:"eventHandler,omitempty"`
7631
7632 Index int64 `json:"index,omitempty"`
7633
7634 Source *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode `json:"source,omitempty"`
7635
7636 Target *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode `json:"target,omitempty"`
7637
7638 TransitionRoute *GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoute,omitempty"`
7639
7640
7641
7642
7643
7644 ForceSendFields []string `json:"-"`
7645
7646
7647
7648
7649 NullFields []string `json:"-"`
7650 }
7651
7652 func (s *GoogleCloudDialogflowCxV3TransitionCoverageTransition) MarshalJSON() ([]byte, error) {
7653 type NoMethod GoogleCloudDialogflowCxV3TransitionCoverageTransition
7654 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7655 }
7656
7657
7658
7659 type GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode struct {
7660
7661
7662 Flow *GoogleCloudDialogflowCxV3Flow `json:"flow,omitempty"`
7663
7664
7665 Page *GoogleCloudDialogflowCxV3Page `json:"page,omitempty"`
7666
7667
7668
7669
7670
7671 ForceSendFields []string `json:"-"`
7672
7673
7674
7675
7676 NullFields []string `json:"-"`
7677 }
7678
7679 func (s *GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode) MarshalJSON() ([]byte, error) {
7680 type NoMethod GoogleCloudDialogflowCxV3TransitionCoverageTransitionNode
7681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7682 }
7683
7684
7685
7686
7687
7688
7689
7690
7691
7692 type GoogleCloudDialogflowCxV3TransitionRoute struct {
7693
7694
7695
7696
7697
7698
7699 Condition string `json:"condition,omitempty"`
7700
7701
7702 Description string `json:"description,omitempty"`
7703
7704
7705
7706
7707
7708 Intent string `json:"intent,omitempty"`
7709
7710 Name string `json:"name,omitempty"`
7711
7712
7713 TargetFlow string `json:"targetFlow,omitempty"`
7714
7715
7716 TargetPage string `json:"targetPage,omitempty"`
7717
7718
7719
7720 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
7721
7722
7723
7724
7725
7726 ForceSendFields []string `json:"-"`
7727
7728
7729
7730
7731 NullFields []string `json:"-"`
7732 }
7733
7734 func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
7735 type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
7736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7737 }
7738
7739
7740
7741 type GoogleCloudDialogflowCxV3TransitionRouteGroup struct {
7742
7743
7744
7745 DisplayName string `json:"displayName,omitempty"`
7746
7747
7748
7749
7750 Name string `json:"name,omitempty"`
7751
7752
7753 TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
7754
7755
7756 googleapi.ServerResponse `json:"-"`
7757
7758
7759
7760
7761
7762 ForceSendFields []string `json:"-"`
7763
7764
7765
7766
7767 NullFields []string `json:"-"`
7768 }
7769
7770 func (s *GoogleCloudDialogflowCxV3TransitionRouteGroup) MarshalJSON() ([]byte, error) {
7771 type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroup
7772 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7773 }
7774
7775
7776
7777
7778
7779 type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage struct {
7780
7781
7782 CoverageScore float64 `json:"coverageScore,omitempty"`
7783
7784 Coverages []*GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage `json:"coverages,omitempty"`
7785
7786
7787
7788
7789
7790 ForceSendFields []string `json:"-"`
7791
7792
7793
7794
7795 NullFields []string `json:"-"`
7796 }
7797
7798 func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage) MarshalJSON() ([]byte, error) {
7799 type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage
7800 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7801 }
7802
7803 func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage) UnmarshalJSON(data []byte) error {
7804 type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverage
7805 var s1 struct {
7806 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
7807 *NoMethod
7808 }
7809 s1.NoMethod = (*NoMethod)(s)
7810 if err := json.Unmarshal(data, &s1); err != nil {
7811 return err
7812 }
7813 s.CoverageScore = float64(s1.CoverageScore)
7814 return nil
7815 }
7816
7817
7818
7819 type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage struct {
7820
7821
7822 CoverageScore float64 `json:"coverageScore,omitempty"`
7823
7824
7825 RouteGroup *GoogleCloudDialogflowCxV3TransitionRouteGroup `json:"routeGroup,omitempty"`
7826
7827
7828 Transitions []*GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition `json:"transitions,omitempty"`
7829
7830
7831
7832
7833
7834 ForceSendFields []string `json:"-"`
7835
7836
7837
7838
7839 NullFields []string `json:"-"`
7840 }
7841
7842 func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage) MarshalJSON() ([]byte, error) {
7843 type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage
7844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7845 }
7846
7847 func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage) UnmarshalJSON(data []byte) error {
7848 type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverage
7849 var s1 struct {
7850 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
7851 *NoMethod
7852 }
7853 s1.NoMethod = (*NoMethod)(s)
7854 if err := json.Unmarshal(data, &s1); err != nil {
7855 return err
7856 }
7857 s.CoverageScore = float64(s1.CoverageScore)
7858 return nil
7859 }
7860
7861
7862
7863 type GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition struct {
7864
7865
7866 Covered bool `json:"covered,omitempty"`
7867
7868 TransitionRoute *GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoute,omitempty"`
7869
7870
7871
7872
7873
7874 ForceSendFields []string `json:"-"`
7875
7876
7877
7878
7879 NullFields []string `json:"-"`
7880 }
7881
7882 func (s *GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition) MarshalJSON() ([]byte, error) {
7883 type NoMethod GoogleCloudDialogflowCxV3TransitionRouteGroupCoverageCoverageTransition
7884 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7885 }
7886
7887
7888
7889 type GoogleCloudDialogflowCxV3TurnSignals struct {
7890
7891 AgentEscalated bool `json:"agentEscalated,omitempty"`
7892
7893 DtmfUsed bool `json:"dtmfUsed,omitempty"`
7894
7895
7896
7897
7898
7899
7900 FailureReasons []string `json:"failureReasons,omitempty"`
7901
7902 NoMatch bool `json:"noMatch,omitempty"`
7903
7904 NoUserInput bool `json:"noUserInput,omitempty"`
7905
7906 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
7907
7908
7909 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
7910
7911
7912 SentimentScore float64 `json:"sentimentScore,omitempty"`
7913
7914 UserEscalated bool `json:"userEscalated,omitempty"`
7915
7916
7917 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
7918
7919
7920
7921
7922
7923 ForceSendFields []string `json:"-"`
7924
7925
7926
7927
7928 NullFields []string `json:"-"`
7929 }
7930
7931 func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
7932 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
7933 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7934 }
7935
7936 func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
7937 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
7938 var s1 struct {
7939 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
7940 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
7941 *NoMethod
7942 }
7943 s1.NoMethod = (*NoMethod)(s)
7944 if err := json.Unmarshal(data, &s1); err != nil {
7945 return err
7946 }
7947 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
7948 s.SentimentScore = float64(s1.SentimentScore)
7949 return nil
7950 }
7951
7952
7953
7954 type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
7955
7956 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
7957
7958
7959
7960
7961
7962 ForceSendFields []string `json:"-"`
7963
7964
7965
7966
7967 NullFields []string `json:"-"`
7968 }
7969
7970 func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
7971 type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
7972 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7973 }
7974
7975
7976
7977 type GoogleCloudDialogflowCxV3ValidateAgentRequest struct {
7978
7979 LanguageCode string `json:"languageCode,omitempty"`
7980
7981
7982
7983
7984
7985 ForceSendFields []string `json:"-"`
7986
7987
7988
7989
7990 NullFields []string `json:"-"`
7991 }
7992
7993 func (s *GoogleCloudDialogflowCxV3ValidateAgentRequest) MarshalJSON() ([]byte, error) {
7994 type NoMethod GoogleCloudDialogflowCxV3ValidateAgentRequest
7995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7996 }
7997
7998
7999
8000 type GoogleCloudDialogflowCxV3ValidateFlowRequest struct {
8001
8002 LanguageCode string `json:"languageCode,omitempty"`
8003
8004
8005
8006
8007
8008 ForceSendFields []string `json:"-"`
8009
8010
8011
8012
8013 NullFields []string `json:"-"`
8014 }
8015
8016 func (s *GoogleCloudDialogflowCxV3ValidateFlowRequest) MarshalJSON() ([]byte, error) {
8017 type NoMethod GoogleCloudDialogflowCxV3ValidateFlowRequest
8018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8019 }
8020
8021
8022 type GoogleCloudDialogflowCxV3ValidationMessage struct {
8023
8024 Detail string `json:"detail,omitempty"`
8025
8026
8027 ResourceNames []*GoogleCloudDialogflowCxV3ResourceName `json:"resourceNames,omitempty"`
8028
8029
8030
8031
8032
8033
8034
8035
8036
8037
8038
8039
8040
8041
8042
8043
8044
8045
8046 ResourceType string `json:"resourceType,omitempty"`
8047
8048 Resources []string `json:"resources,omitempty"`
8049
8050
8051
8052
8053
8054
8055
8056 Severity string `json:"severity,omitempty"`
8057
8058
8059
8060
8061
8062 ForceSendFields []string `json:"-"`
8063
8064
8065
8066
8067 NullFields []string `json:"-"`
8068 }
8069
8070 func (s *GoogleCloudDialogflowCxV3ValidationMessage) MarshalJSON() ([]byte, error) {
8071 type NoMethod GoogleCloudDialogflowCxV3ValidationMessage
8072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8073 }
8074
8075
8076 type GoogleCloudDialogflowCxV3VariantsHistory struct {
8077
8078 UpdateTime string `json:"updateTime,omitempty"`
8079
8080 VersionVariants *GoogleCloudDialogflowCxV3VersionVariants `json:"versionVariants,omitempty"`
8081
8082
8083
8084
8085
8086 ForceSendFields []string `json:"-"`
8087
8088
8089
8090
8091 NullFields []string `json:"-"`
8092 }
8093
8094 func (s *GoogleCloudDialogflowCxV3VariantsHistory) MarshalJSON() ([]byte, error) {
8095 type NoMethod GoogleCloudDialogflowCxV3VariantsHistory
8096 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8097 }
8098
8099
8100 type GoogleCloudDialogflowCxV3Version struct {
8101
8102 CreateTime string `json:"createTime,omitempty"`
8103
8104
8105 Description string `json:"description,omitempty"`
8106
8107
8108 DisplayName string `json:"displayName,omitempty"`
8109
8110
8111 Name string `json:"name,omitempty"`
8112
8113 NluSettings *GoogleCloudDialogflowCxV3NluSettings `json:"nluSettings,omitempty"`
8114
8115
8116
8117
8118
8119
8120
8121
8122 State string `json:"state,omitempty"`
8123
8124
8125 googleapi.ServerResponse `json:"-"`
8126
8127
8128
8129
8130
8131 ForceSendFields []string `json:"-"`
8132
8133
8134
8135
8136 NullFields []string `json:"-"`
8137 }
8138
8139 func (s *GoogleCloudDialogflowCxV3Version) MarshalJSON() ([]byte, error) {
8140 type NoMethod GoogleCloudDialogflowCxV3Version
8141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8142 }
8143
8144
8145 type GoogleCloudDialogflowCxV3VersionVariants struct {
8146
8147 Variants []*GoogleCloudDialogflowCxV3VersionVariantsVariant `json:"variants,omitempty"`
8148
8149
8150
8151
8152
8153 ForceSendFields []string `json:"-"`
8154
8155
8156
8157
8158 NullFields []string `json:"-"`
8159 }
8160
8161 func (s *GoogleCloudDialogflowCxV3VersionVariants) MarshalJSON() ([]byte, error) {
8162 type NoMethod GoogleCloudDialogflowCxV3VersionVariants
8163 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8164 }
8165
8166
8167
8168 type GoogleCloudDialogflowCxV3VersionVariantsVariant struct {
8169
8170 IsControlGroup bool `json:"isControlGroup,omitempty"`
8171
8172
8173 TrafficAllocation float64 `json:"trafficAllocation,omitempty"`
8174
8175
8176 Version string `json:"version,omitempty"`
8177
8178
8179
8180
8181
8182 ForceSendFields []string `json:"-"`
8183
8184
8185
8186
8187 NullFields []string `json:"-"`
8188 }
8189
8190 func (s *GoogleCloudDialogflowCxV3VersionVariantsVariant) MarshalJSON() ([]byte, error) {
8191 type NoMethod GoogleCloudDialogflowCxV3VersionVariantsVariant
8192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8193 }
8194
8195 func (s *GoogleCloudDialogflowCxV3VersionVariantsVariant) UnmarshalJSON(data []byte) error {
8196 type NoMethod GoogleCloudDialogflowCxV3VersionVariantsVariant
8197 var s1 struct {
8198 TrafficAllocation gensupport.JSONFloat64 `json:"trafficAllocation"`
8199 *NoMethod
8200 }
8201 s1.NoMethod = (*NoMethod)(s)
8202 if err := json.Unmarshal(data, &s1); err != nil {
8203 return err
8204 }
8205 s.TrafficAllocation = float64(s1.TrafficAllocation)
8206 return nil
8207 }
8208
8209
8210
8211 type GoogleCloudDialogflowCxV3VoiceSelectionParams struct {
8212
8213
8214
8215
8216 Name string `json:"name,omitempty"`
8217
8218
8219
8220
8221
8222
8223
8224
8225
8226
8227
8228
8229
8230 SsmlGender string `json:"ssmlGender,omitempty"`
8231
8232
8233
8234
8235
8236 ForceSendFields []string `json:"-"`
8237
8238
8239
8240
8241 NullFields []string `json:"-"`
8242 }
8243
8244 func (s *GoogleCloudDialogflowCxV3VoiceSelectionParams) MarshalJSON() ([]byte, error) {
8245 type NoMethod GoogleCloudDialogflowCxV3VoiceSelectionParams
8246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8247 }
8248
8249
8250
8251
8252
8253 type GoogleCloudDialogflowCxV3Webhook struct {
8254
8255 Disabled bool `json:"disabled,omitempty"`
8256
8257
8258 DisplayName string `json:"displayName,omitempty"`
8259
8260 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
8261
8262
8263
8264 Name string `json:"name,omitempty"`
8265
8266
8267 ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
8268
8269
8270
8271 Timeout string `json:"timeout,omitempty"`
8272
8273
8274 googleapi.ServerResponse `json:"-"`
8275
8276
8277
8278
8279
8280 ForceSendFields []string `json:"-"`
8281
8282
8283
8284
8285 NullFields []string `json:"-"`
8286 }
8287
8288 func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
8289 type NoMethod GoogleCloudDialogflowCxV3Webhook
8290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8291 }
8292
8293
8294
8295 type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
8296
8297
8298
8299
8300
8301
8302
8303
8304 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
8305
8306
8307
8308
8309
8310
8311
8312
8313
8314
8315
8316
8317 HttpMethod string `json:"httpMethod,omitempty"`
8318
8319
8320
8321 OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
8322
8323
8324
8325 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
8326
8327 Password string `json:"password,omitempty"`
8328
8329
8330 RequestBody string `json:"requestBody,omitempty"`
8331
8332
8333 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
8334
8335
8336
8337
8338
8339
8340
8341
8342
8343
8344
8345
8346
8347
8348
8349
8350
8351
8352
8353 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
8354
8355
8356 Uri string `json:"uri,omitempty"`
8357
8358 Username string `json:"username,omitempty"`
8359
8360
8361
8362
8363
8364
8365 WebhookType string `json:"webhookType,omitempty"`
8366
8367
8368
8369
8370
8371 ForceSendFields []string `json:"-"`
8372
8373
8374
8375
8376 NullFields []string `json:"-"`
8377 }
8378
8379 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
8380 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
8381 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8382 }
8383
8384
8385
8386
8387 type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
8388
8389 ClientId string `json:"clientId,omitempty"`
8390
8391
8392 ClientSecret string `json:"clientSecret,omitempty"`
8393
8394 Scopes []string `json:"scopes,omitempty"`
8395
8396
8397 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
8398
8399
8400
8401
8402
8403 ForceSendFields []string `json:"-"`
8404
8405
8406
8407
8408 NullFields []string `json:"-"`
8409 }
8410
8411 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
8412 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
8413 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8414 }
8415
8416
8417
8418
8419
8420
8421 type GoogleCloudDialogflowCxV3WebhookRequest struct {
8422
8423
8424 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
8425
8426
8427 DtmfDigits string `json:"dtmfDigits,omitempty"`
8428
8429
8430 FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
8431
8432 IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
8433
8434 LanguageCode string `json:"languageCode,omitempty"`
8435
8436 LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
8437
8438
8439
8440 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
8441
8442 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
8443
8444 Payload googleapi.RawMessage `json:"payload,omitempty"`
8445
8446
8447
8448 SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
8449
8450 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
8451
8452
8453 Text string `json:"text,omitempty"`
8454
8455
8456 Transcript string `json:"transcript,omitempty"`
8457
8458
8459 TriggerEvent string `json:"triggerEvent,omitempty"`
8460
8461
8462
8463 TriggerIntent string `json:"triggerIntent,omitempty"`
8464
8465
8466
8467
8468
8469 ForceSendFields []string `json:"-"`
8470
8471
8472
8473
8474 NullFields []string `json:"-"`
8475 }
8476
8477 func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
8478 type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
8479 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8480 }
8481
8482
8483
8484 type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
8485
8486
8487
8488
8489 Tag string `json:"tag,omitempty"`
8490
8491
8492
8493
8494
8495 ForceSendFields []string `json:"-"`
8496
8497
8498
8499
8500 NullFields []string `json:"-"`
8501 }
8502
8503 func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
8504 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
8505 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8506 }
8507
8508
8509
8510 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
8511
8512
8513 Confidence float64 `json:"confidence,omitempty"`
8514
8515 DisplayName string `json:"displayName,omitempty"`
8516
8517
8518 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
8519
8520
8521
8522
8523 Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
8524
8525
8526
8527
8528
8529 ForceSendFields []string `json:"-"`
8530
8531
8532
8533
8534 NullFields []string `json:"-"`
8535 }
8536
8537 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
8538 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
8539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8540 }
8541
8542 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
8543 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
8544 var s1 struct {
8545 Confidence gensupport.JSONFloat64 `json:"confidence"`
8546 *NoMethod
8547 }
8548 s1.NoMethod = (*NoMethod)(s)
8549 if err := json.Unmarshal(data, &s1); err != nil {
8550 return err
8551 }
8552 s.Confidence = float64(s1.Confidence)
8553 return nil
8554 }
8555
8556
8557
8558 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
8559
8560
8561 OriginalValue string `json:"originalValue,omitempty"`
8562
8563
8564 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
8565
8566
8567
8568
8569
8570 ForceSendFields []string `json:"-"`
8571
8572
8573
8574
8575 NullFields []string `json:"-"`
8576 }
8577
8578 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
8579 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
8580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8581 }
8582
8583
8584
8585 type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
8586
8587
8588
8589 Magnitude float64 `json:"magnitude,omitempty"`
8590
8591
8592 Score float64 `json:"score,omitempty"`
8593
8594
8595
8596
8597
8598 ForceSendFields []string `json:"-"`
8599
8600
8601
8602
8603 NullFields []string `json:"-"`
8604 }
8605
8606 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
8607 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
8608 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8609 }
8610
8611 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
8612 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
8613 var s1 struct {
8614 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
8615 Score gensupport.JSONFloat64 `json:"score"`
8616 *NoMethod
8617 }
8618 s1.NoMethod = (*NoMethod)(s)
8619 if err := json.Unmarshal(data, &s1); err != nil {
8620 return err
8621 }
8622 s.Magnitude = float64(s1.Magnitude)
8623 s.Score = float64(s1.Score)
8624 return nil
8625 }
8626
8627
8628
8629 type GoogleCloudDialogflowCxV3WebhookResponse struct {
8630
8631
8632
8633 FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
8634
8635
8636 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
8637
8638 Payload googleapi.RawMessage `json:"payload,omitempty"`
8639
8640
8641 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
8642
8643
8644 TargetFlow string `json:"targetFlow,omitempty"`
8645
8646
8647 TargetPage string `json:"targetPage,omitempty"`
8648
8649
8650
8651
8652
8653 ForceSendFields []string `json:"-"`
8654
8655
8656
8657
8658 NullFields []string `json:"-"`
8659 }
8660
8661 func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
8662 type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
8663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8664 }
8665
8666
8667
8668 type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
8669
8670
8671
8672
8673
8674
8675
8676
8677 MergeBehavior string `json:"mergeBehavior,omitempty"`
8678
8679 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
8680
8681
8682
8683
8684
8685 ForceSendFields []string `json:"-"`
8686
8687
8688
8689
8690 NullFields []string `json:"-"`
8691 }
8692
8693 func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
8694 type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
8695 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8696 }
8697
8698
8699
8700
8701 type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
8702
8703 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
8704
8705
8706
8707
8708 Service string `json:"service,omitempty"`
8709
8710
8711
8712
8713
8714 ForceSendFields []string `json:"-"`
8715
8716
8717
8718
8719 NullFields []string `json:"-"`
8720 }
8721
8722 func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
8723 type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
8724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8725 }
8726
8727
8728
8729
8730
8731
8732
8733
8734
8735
8736 type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
8737
8738
8739
8740 AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
8741
8742
8743 DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
8744
8745
8746
8747 LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
8748
8749
8750 SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
8751
8752
8753
8754
8755
8756 ForceSendFields []string `json:"-"`
8757
8758
8759
8760
8761 NullFields []string `json:"-"`
8762 }
8763
8764 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
8765 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
8766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8767 }
8768
8769
8770
8771 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
8772
8773
8774
8775
8776
8777
8778 Enabled bool `json:"enabled,omitempty"`
8779
8780
8781 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
8782
8783 FinishDigit string `json:"finishDigit,omitempty"`
8784
8785
8786 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
8787
8788 MaxDigits int64 `json:"maxDigits,omitempty"`
8789
8790
8791
8792
8793
8794 ForceSendFields []string `json:"-"`
8795
8796
8797
8798
8799 NullFields []string `json:"-"`
8800 }
8801
8802 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
8803 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
8804 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8805 }
8806
8807
8808
8809 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
8810
8811
8812 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
8813
8814 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
8815
8816
8817
8818
8819
8820 ForceSendFields []string `json:"-"`
8821
8822
8823
8824
8825 NullFields []string `json:"-"`
8826 }
8827
8828 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
8829 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
8830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8831 }
8832
8833
8834
8835 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
8836
8837
8838 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
8839
8840
8841
8842
8843 Models map[string]string `json:"models,omitempty"`
8844
8845 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
8846
8847
8848 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
8849
8850
8851
8852
8853
8854 ForceSendFields []string `json:"-"`
8855
8856
8857
8858
8859 NullFields []string `json:"-"`
8860 }
8861
8862 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
8863 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
8864 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8865 }
8866
8867
8868
8869 type GoogleCloudDialogflowCxV3beta1AudioInput struct {
8870
8871
8872
8873
8874
8875
8876 Audio string `json:"audio,omitempty"`
8877
8878
8879 Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
8880
8881
8882
8883
8884
8885 ForceSendFields []string `json:"-"`
8886
8887
8888
8889
8890 NullFields []string `json:"-"`
8891 }
8892
8893 func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
8894 type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
8895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8896 }
8897
8898
8899
8900
8901
8902
8903
8904
8905
8906
8907
8908
8909
8910
8911
8912
8913
8914 type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
8915
8916
8917 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
8918
8919
8920 TotalDuration string `json:"totalDuration,omitempty"`
8921
8922
8923
8924
8925
8926 ForceSendFields []string `json:"-"`
8927
8928
8929
8930
8931 NullFields []string `json:"-"`
8932 }
8933
8934 func (s *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
8935 type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
8936 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8937 }
8938
8939
8940
8941 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
8942
8943 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
8944
8945
8946
8947
8948
8949 ForceSendFields []string `json:"-"`
8950
8951
8952
8953
8954 NullFields []string `json:"-"`
8955 }
8956
8957 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
8958 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
8959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8960 }
8961
8962
8963
8964 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
8965
8966
8967 Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
8968
8969
8970
8971
8972
8973 ForceSendFields []string `json:"-"`
8974
8975
8976
8977
8978 NullFields []string `json:"-"`
8979 }
8980
8981 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
8982 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
8983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8984 }
8985
8986
8987
8988 type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
8989
8990
8991 Name string `json:"name,omitempty"`
8992
8993
8994
8995
8996
8997
8998
8999
9000 Result string `json:"result,omitempty"`
9001
9002 RunTime string `json:"runTime,omitempty"`
9003
9004
9005 TestCaseResults []string `json:"testCaseResults,omitempty"`
9006
9007
9008
9009
9010
9011 ForceSendFields []string `json:"-"`
9012
9013
9014
9015
9016 NullFields []string `json:"-"`
9017 }
9018
9019 func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
9020 type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
9021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9022 }
9023
9024
9025
9026
9027 type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
9028
9029 TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
9030
9031
9032
9033
9034
9035 ForceSendFields []string `json:"-"`
9036
9037
9038
9039
9040 NullFields []string `json:"-"`
9041 }
9042
9043 func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
9044 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
9045 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9046 }
9047
9048
9049
9050
9051 type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
9052
9053 UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
9054
9055 VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
9056
9057
9058
9059
9060
9061 ForceSendFields []string `json:"-"`
9062
9063
9064
9065
9066 NullFields []string `json:"-"`
9067 }
9068
9069 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
9070 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
9071 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9072 }
9073
9074
9075
9076 type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
9077
9078 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
9079
9080
9081 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
9082
9083 Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
9084
9085
9086
9087 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
9088
9089
9090
9091
9092
9093 ForceSendFields []string `json:"-"`
9094
9095
9096
9097
9098 NullFields []string `json:"-"`
9099 }
9100
9101 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
9102 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
9103 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9104 }
9105
9106
9107
9108 type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
9109
9110
9111 CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
9112
9113
9114 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
9115
9116
9117
9118 Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
9119
9120
9121 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
9122
9123
9124 Status *GoogleRpcStatus `json:"status,omitempty"`
9125
9126 TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
9127
9128
9129 TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
9130
9131
9132
9133
9134
9135 ForceSendFields []string `json:"-"`
9136
9137
9138
9139
9140 NullFields []string `json:"-"`
9141 }
9142
9143 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
9144 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
9145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9146 }
9147
9148
9149
9150 type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
9151
9152 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
9153
9154
9155
9156
9157
9158 ForceSendFields []string `json:"-"`
9159
9160
9161
9162
9163 NullFields []string `json:"-"`
9164 }
9165
9166 func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
9167 type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
9168 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9169 }
9170
9171
9172
9173 type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
9174
9175
9176 Version string `json:"version,omitempty"`
9177
9178
9179
9180
9181
9182 ForceSendFields []string `json:"-"`
9183
9184
9185
9186
9187 NullFields []string `json:"-"`
9188 }
9189
9190 func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
9191 type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
9192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9193 }
9194
9195
9196
9197
9198 type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
9199
9200
9201
9202
9203 DataStore string `json:"dataStore,omitempty"`
9204
9205
9206
9207
9208
9209
9210
9211
9212
9213 DataStoreType string `json:"dataStoreType,omitempty"`
9214
9215
9216
9217
9218
9219 ForceSendFields []string `json:"-"`
9220
9221
9222
9223
9224 NullFields []string `json:"-"`
9225 }
9226
9227 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
9228 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
9229 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9230 }
9231
9232
9233
9234 type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
9235
9236 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
9237
9238
9239
9240
9241
9242 ForceSendFields []string `json:"-"`
9243
9244
9245
9246
9247 NullFields []string `json:"-"`
9248 }
9249
9250 func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
9251 type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
9252 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9253 }
9254
9255
9256
9257 type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
9258
9259 TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
9260
9261
9262
9263
9264
9265 ForceSendFields []string `json:"-"`
9266
9267
9268
9269
9270 NullFields []string `json:"-"`
9271 }
9272
9273 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
9274 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
9275 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9276 }
9277
9278
9279
9280 type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
9281
9282
9283 Deployment string `json:"deployment,omitempty"`
9284
9285 Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
9286
9287
9288
9289
9290
9291 ForceSendFields []string `json:"-"`
9292
9293
9294
9295
9296 NullFields []string `json:"-"`
9297 }
9298
9299 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
9300 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
9301 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9302 }
9303
9304
9305
9306 type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
9307
9308 Digits string `json:"digits,omitempty"`
9309
9310 FinishDigit string `json:"finishDigit,omitempty"`
9311
9312
9313
9314
9315
9316 ForceSendFields []string `json:"-"`
9317
9318
9319
9320
9321 NullFields []string `json:"-"`
9322 }
9323
9324 func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
9325 type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
9326 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9327 }
9328
9329
9330
9331
9332
9333
9334
9335
9336
9337 type GoogleCloudDialogflowCxV3beta1Environment struct {
9338
9339
9340 Description string `json:"description,omitempty"`
9341
9342
9343 DisplayName string `json:"displayName,omitempty"`
9344
9345
9346 Name string `json:"name,omitempty"`
9347
9348
9349 TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
9350
9351 UpdateTime string `json:"updateTime,omitempty"`
9352
9353
9354
9355 VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
9356
9357 WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
9358
9359
9360
9361
9362
9363 ForceSendFields []string `json:"-"`
9364
9365
9366
9367
9368 NullFields []string `json:"-"`
9369 }
9370
9371 func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
9372 type NoMethod GoogleCloudDialogflowCxV3beta1Environment
9373 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9374 }
9375
9376
9377
9378 type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
9379
9380
9381 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
9382
9383
9384
9385 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
9386
9387
9388
9389 TestCases []string `json:"testCases,omitempty"`
9390
9391
9392
9393
9394
9395 ForceSendFields []string `json:"-"`
9396
9397
9398
9399
9400 NullFields []string `json:"-"`
9401 }
9402
9403 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
9404 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
9405 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9406 }
9407
9408
9409
9410 type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
9411
9412 Version string `json:"version,omitempty"`
9413
9414
9415
9416
9417
9418 ForceSendFields []string `json:"-"`
9419
9420
9421
9422
9423 NullFields []string `json:"-"`
9424 }
9425
9426 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
9427 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
9428 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9429 }
9430
9431
9432
9433 type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
9434
9435
9436
9437 WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
9438
9439
9440
9441
9442
9443 ForceSendFields []string `json:"-"`
9444
9445
9446
9447
9448 NullFields []string `json:"-"`
9449 }
9450
9451 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
9452 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
9453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9454 }
9455
9456
9457
9458
9459
9460
9461
9462
9463 type GoogleCloudDialogflowCxV3beta1EventHandler struct {
9464
9465 Event string `json:"event,omitempty"`
9466
9467 Name string `json:"name,omitempty"`
9468
9469
9470 TargetFlow string `json:"targetFlow,omitempty"`
9471
9472
9473 TargetPage string `json:"targetPage,omitempty"`
9474
9475
9476
9477
9478 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
9479
9480
9481
9482
9483
9484 ForceSendFields []string `json:"-"`
9485
9486
9487
9488
9489 NullFields []string `json:"-"`
9490 }
9491
9492 func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
9493 type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
9494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9495 }
9496
9497
9498 type GoogleCloudDialogflowCxV3beta1EventInput struct {
9499
9500 Event string `json:"event,omitempty"`
9501
9502
9503
9504
9505
9506 ForceSendFields []string `json:"-"`
9507
9508
9509
9510
9511 NullFields []string `json:"-"`
9512 }
9513
9514 func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
9515 type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
9516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9517 }
9518
9519
9520
9521 type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
9522
9523
9524
9525 AgentContent string `json:"agentContent,omitempty"`
9526
9527
9528 AgentUri string `json:"agentUri,omitempty"`
9529
9530
9531 CommitSha string `json:"commitSha,omitempty"`
9532
9533
9534
9535
9536
9537 ForceSendFields []string `json:"-"`
9538
9539
9540
9541
9542 NullFields []string `json:"-"`
9543 }
9544
9545 func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
9546 type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
9547 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9548 }
9549
9550
9551
9552 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
9553 }
9554
9555
9556
9557 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
9558
9559
9560
9561 EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
9562
9563
9564
9565 EntityTypesUri string `json:"entityTypesUri,omitempty"`
9566
9567
9568
9569
9570
9571 ForceSendFields []string `json:"-"`
9572
9573
9574
9575
9576 NullFields []string `json:"-"`
9577 }
9578
9579 func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
9580 type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
9581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9582 }
9583
9584
9585
9586 type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
9587
9588 FlowContent string `json:"flowContent,omitempty"`
9589
9590
9591 FlowUri string `json:"flowUri,omitempty"`
9592
9593
9594
9595
9596
9597 ForceSendFields []string `json:"-"`
9598
9599
9600
9601
9602 NullFields []string `json:"-"`
9603 }
9604
9605 func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
9606 type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
9607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9608 }
9609
9610
9611
9612 type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
9613 }
9614
9615
9616
9617 type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
9618
9619
9620
9621 IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
9622
9623
9624 IntentsUri string `json:"intentsUri,omitempty"`
9625
9626
9627
9628
9629
9630 ForceSendFields []string `json:"-"`
9631
9632
9633
9634
9635 NullFields []string `json:"-"`
9636 }
9637
9638 func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
9639 type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
9640 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9641 }
9642
9643
9644
9645
9646 type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
9647 }
9648
9649
9650
9651 type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
9652
9653 Content string `json:"content,omitempty"`
9654
9655
9656 GcsUri string `json:"gcsUri,omitempty"`
9657
9658
9659
9660
9661
9662 ForceSendFields []string `json:"-"`
9663
9664
9665
9666
9667 NullFields []string `json:"-"`
9668 }
9669
9670 func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
9671 type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
9672 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9673 }
9674
9675
9676
9677
9678
9679
9680 type GoogleCloudDialogflowCxV3beta1Form struct {
9681
9682 Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
9683
9684
9685
9686
9687
9688 ForceSendFields []string `json:"-"`
9689
9690
9691
9692
9693 NullFields []string `json:"-"`
9694 }
9695
9696 func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
9697 type NoMethod GoogleCloudDialogflowCxV3beta1Form
9698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9699 }
9700
9701
9702 type GoogleCloudDialogflowCxV3beta1FormParameter struct {
9703
9704
9705
9706 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
9707
9708
9709 DefaultValue interface{} `json:"defaultValue,omitempty"`
9710
9711
9712 DisplayName string `json:"displayName,omitempty"`
9713
9714
9715
9716
9717 EntityType string `json:"entityType,omitempty"`
9718
9719 FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
9720
9721 IsList bool `json:"isList,omitempty"`
9722
9723
9724
9725
9726 Redact bool `json:"redact,omitempty"`
9727
9728
9729
9730 Required bool `json:"required,omitempty"`
9731
9732
9733
9734
9735
9736 ForceSendFields []string `json:"-"`
9737
9738
9739
9740
9741 NullFields []string `json:"-"`
9742 }
9743
9744 func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
9745 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
9746 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9747 }
9748
9749
9750
9751 type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
9752
9753
9754
9755 InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
9756
9757
9758
9759
9760
9761
9762
9763
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776
9777 RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
9778
9779
9780
9781
9782
9783 ForceSendFields []string `json:"-"`
9784
9785
9786
9787
9788 NullFields []string `json:"-"`
9789 }
9790
9791 func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
9792 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
9793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9794 }
9795
9796
9797
9798
9799
9800
9801
9802
9803
9804 type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
9805
9806
9807
9808 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
9809
9810 ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
9811
9812
9813
9814
9815 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
9816
9817 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
9818
9819
9820
9821
9822
9823
9824
9825 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
9826
9827 SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
9828
9829
9830
9831
9832
9833 Tag string `json:"tag,omitempty"`
9834
9835
9836 Webhook string `json:"webhook,omitempty"`
9837
9838
9839
9840
9841
9842 ForceSendFields []string `json:"-"`
9843
9844
9845
9846
9847 NullFields []string `json:"-"`
9848 }
9849
9850 func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
9851 type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
9852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9853 }
9854
9855
9856
9857
9858 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
9859
9860 Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
9861
9862
9863
9864
9865
9866 ForceSendFields []string `json:"-"`
9867
9868
9869
9870
9871 NullFields []string `json:"-"`
9872 }
9873
9874 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
9875 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
9876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9877 }
9878
9879
9880
9881
9882 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
9883
9884 CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
9885
9886
9887
9888
9889 Condition string `json:"condition,omitempty"`
9890
9891
9892
9893
9894
9895 ForceSendFields []string `json:"-"`
9896
9897
9898
9899
9900 NullFields []string `json:"-"`
9901 }
9902
9903 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
9904 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
9905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9906 }
9907
9908
9909
9910 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
9911
9912 AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
9913
9914 Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
9915
9916
9917
9918
9919
9920 ForceSendFields []string `json:"-"`
9921
9922
9923
9924
9925 NullFields []string `json:"-"`
9926 }
9927
9928 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
9929 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
9930 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9931 }
9932
9933
9934
9935 type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
9936
9937 Parameter string `json:"parameter,omitempty"`
9938
9939 Value interface{} `json:"value,omitempty"`
9940
9941
9942
9943
9944
9945 ForceSendFields []string `json:"-"`
9946
9947
9948
9949
9950 NullFields []string `json:"-"`
9951 }
9952
9953 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
9954 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
9955 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9956 }
9957
9958
9959
9960
9961 type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
9962
9963
9964
9965 Uri string `json:"uri,omitempty"`
9966
9967
9968
9969
9970
9971 ForceSendFields []string `json:"-"`
9972
9973
9974
9975
9976 NullFields []string `json:"-"`
9977 }
9978
9979 func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
9980 type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
9981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9982 }
9983
9984
9985
9986 type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
9987
9988
9989
9990
9991
9992
9993
9994 State string `json:"state,omitempty"`
9995
9996
9997
9998
9999
10000 ForceSendFields []string `json:"-"`
10001
10002
10003
10004
10005 NullFields []string `json:"-"`
10006 }
10007
10008 func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
10009 type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
10010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10011 }
10012
10013
10014
10015 type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
10016
10017 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
10018
10019
10020
10021
10022
10023 ForceSendFields []string `json:"-"`
10024
10025
10026
10027
10028 NullFields []string `json:"-"`
10029 }
10030
10031 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
10032 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
10033 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10034 }
10035
10036
10037
10038 type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
10039
10040 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
10041
10042
10043
10044
10045
10046 ForceSendFields []string `json:"-"`
10047
10048
10049
10050
10051 NullFields []string `json:"-"`
10052 }
10053
10054 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
10055 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
10056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10057 }
10058
10059
10060
10061 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
10062 }
10063
10064
10065
10066 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
10067
10068
10069 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
10070
10071
10072 EntityTypes []string `json:"entityTypes,omitempty"`
10073
10074
10075
10076
10077
10078 ForceSendFields []string `json:"-"`
10079
10080
10081
10082
10083 NullFields []string `json:"-"`
10084 }
10085
10086 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
10087 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
10088 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10089 }
10090
10091
10092
10093
10094
10095 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
10096
10097 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
10098
10099 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
10100
10101
10102
10103
10104
10105 ForceSendFields []string `json:"-"`
10106
10107
10108
10109
10110 NullFields []string `json:"-"`
10111 }
10112
10113 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
10114 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
10115 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10116 }
10117
10118
10119
10120 type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
10121
10122
10123 Flow string `json:"flow,omitempty"`
10124
10125
10126
10127
10128
10129 ForceSendFields []string `json:"-"`
10130
10131
10132
10133
10134 NullFields []string `json:"-"`
10135 }
10136
10137 func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
10138 type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
10139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10140 }
10141
10142
10143
10144 type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
10145 }
10146
10147
10148
10149 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
10150
10151
10152 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
10153
10154
10155 Intents []string `json:"intents,omitempty"`
10156
10157
10158
10159
10160
10161 ForceSendFields []string `json:"-"`
10162
10163
10164
10165
10166 NullFields []string `json:"-"`
10167 }
10168
10169 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
10170 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
10171 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10172 }
10173
10174
10175
10176
10177
10178 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
10179
10180 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
10181
10182 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
10183
10184
10185
10186
10187
10188 ForceSendFields []string `json:"-"`
10189
10190
10191
10192
10193 NullFields []string `json:"-"`
10194 }
10195
10196 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
10197 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
10198 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10199 }
10200
10201
10202
10203 type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
10204
10205 Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
10206
10207
10208
10209
10210
10211 ForceSendFields []string `json:"-"`
10212
10213
10214
10215
10216 NullFields []string `json:"-"`
10217 }
10218
10219 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
10220 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
10221 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10222 }
10223
10224
10225
10226 type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
10227
10228
10229 Names []string `json:"names,omitempty"`
10230
10231
10232
10233
10234
10235 ForceSendFields []string `json:"-"`
10236
10237
10238
10239
10240 NullFields []string `json:"-"`
10241 }
10242
10243 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
10244 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
10245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10246 }
10247
10248
10249
10250
10251 type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
10252
10253
10254 Content string `json:"content,omitempty"`
10255
10256
10257
10258
10259
10260 ForceSendFields []string `json:"-"`
10261
10262
10263
10264
10265 NullFields []string `json:"-"`
10266 }
10267
10268 func (s *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
10269 type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
10270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10271 }
10272
10273
10274
10275 type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
10276
10277
10278
10279
10280
10281
10282
10283
10284
10285
10286
10287
10288
10289
10290
10291
10292
10293
10294
10295
10296
10297
10298
10299
10300
10301
10302
10303
10304
10305
10306
10307
10308
10309 AudioEncoding string `json:"audioEncoding,omitempty"`
10310
10311
10312 BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
10313
10314
10315
10316
10317 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
10318
10319
10320
10321 Model string `json:"model,omitempty"`
10322
10323
10324
10325
10326
10327
10328
10329
10330
10331
10332
10333
10334
10335
10336
10337
10338 ModelVariant string `json:"modelVariant,omitempty"`
10339
10340
10341
10342
10343
10344 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
10345
10346
10347
10348
10349
10350 PhraseHints []string `json:"phraseHints,omitempty"`
10351
10352
10353
10354 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
10355
10356
10357
10358
10359
10360
10361
10362 SingleUtterance bool `json:"singleUtterance,omitempty"`
10363
10364
10365
10366
10367
10368 ForceSendFields []string `json:"-"`
10369
10370
10371
10372
10373 NullFields []string `json:"-"`
10374 }
10375
10376 func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
10377 type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
10378 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10379 }
10380
10381
10382
10383
10384
10385 type GoogleCloudDialogflowCxV3beta1Intent struct {
10386
10387
10388
10389 Description string `json:"description,omitempty"`
10390
10391
10392 DisplayName string `json:"displayName,omitempty"`
10393
10394
10395
10396
10397
10398 IsFallback bool `json:"isFallback,omitempty"`
10399
10400
10401
10402
10403
10404
10405
10406
10407
10408 Labels map[string]string `json:"labels,omitempty"`
10409
10410
10411
10412 Name string `json:"name,omitempty"`
10413
10414 Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
10415
10416
10417
10418
10419
10420 Priority int64 `json:"priority,omitempty"`
10421
10422
10423 TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
10424
10425
10426
10427
10428
10429 ForceSendFields []string `json:"-"`
10430
10431
10432
10433
10434 NullFields []string `json:"-"`
10435 }
10436
10437 func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
10438 type NoMethod GoogleCloudDialogflowCxV3beta1Intent
10439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10440 }
10441
10442
10443
10444 type GoogleCloudDialogflowCxV3beta1IntentInput struct {
10445
10446
10447 Intent string `json:"intent,omitempty"`
10448
10449
10450
10451
10452
10453 ForceSendFields []string `json:"-"`
10454
10455
10456
10457
10458 NullFields []string `json:"-"`
10459 }
10460
10461 func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
10462 type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
10463 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10464 }
10465
10466
10467
10468 type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
10469
10470
10471
10472
10473 EntityType string `json:"entityType,omitempty"`
10474
10475
10476 Id string `json:"id,omitempty"`
10477
10478 IsList bool `json:"isList,omitempty"`
10479
10480
10481
10482
10483 Redact bool `json:"redact,omitempty"`
10484
10485
10486
10487
10488
10489 ForceSendFields []string `json:"-"`
10490
10491
10492
10493
10494 NullFields []string `json:"-"`
10495 }
10496
10497 func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
10498 type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
10499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10500 }
10501
10502
10503
10504 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
10505
10506 Id string `json:"id,omitempty"`
10507
10508
10509
10510
10511
10512
10513
10514
10515
10516
10517
10518 Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
10519
10520 RepeatCount int64 `json:"repeatCount,omitempty"`
10521
10522
10523
10524
10525
10526 ForceSendFields []string `json:"-"`
10527
10528
10529
10530
10531 NullFields []string `json:"-"`
10532 }
10533
10534 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
10535 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
10536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10537 }
10538
10539
10540
10541 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
10542
10543
10544 ParameterId string `json:"parameterId,omitempty"`
10545
10546 Text string `json:"text,omitempty"`
10547
10548
10549
10550
10551
10552 ForceSendFields []string `json:"-"`
10553
10554
10555
10556
10557 NullFields []string `json:"-"`
10558 }
10559
10560 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
10561 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
10562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10563 }
10564
10565
10566
10567
10568 type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
10569
10570 DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
10571
10572 Enabled bool `json:"enabled,omitempty"`
10573
10574
10575 TargetFlow string `json:"targetFlow,omitempty"`
10576
10577
10578 TargetPage string `json:"targetPage,omitempty"`
10579
10580
10581
10582
10583
10584 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
10585
10586
10587
10588
10589
10590 ForceSendFields []string `json:"-"`
10591
10592
10593
10594
10595 NullFields []string `json:"-"`
10596 }
10597
10598 func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
10599 type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
10600 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10601 }
10602
10603
10604
10605 type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
10606
10607
10608 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
10609
10610 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
10611
10612
10613 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
10614
10615
10616
10617
10618
10619 ForceSendFields []string `json:"-"`
10620
10621
10622
10623
10624 NullFields []string `json:"-"`
10625 }
10626
10627 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
10628 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
10629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10630 }
10631
10632 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
10633 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
10634 var s1 struct {
10635 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
10636 *NoMethod
10637 }
10638 s1.NoMethod = (*NoMethod)(s)
10639 if err := json.Unmarshal(data, &s1); err != nil {
10640 return err
10641 }
10642 s.ConfidenceScore = float64(s1.ConfidenceScore)
10643 return nil
10644 }
10645
10646
10647
10648
10649
10650
10651
10652
10653
10654
10655
10656
10657
10658
10659 type GoogleCloudDialogflowCxV3beta1Page struct {
10660
10661
10662
10663 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
10664
10665
10666 Description string `json:"description,omitempty"`
10667
10668
10669 DisplayName string `json:"displayName,omitempty"`
10670
10671
10672 EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
10673
10674
10675 EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
10676
10677
10678 Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
10679
10680 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
10681
10682
10683
10684 Name string `json:"name,omitempty"`
10685
10686
10687
10688
10689
10690
10691
10692
10693
10694
10695
10696
10697 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
10698
10699
10700
10701
10702
10703
10704
10705
10706
10707
10708 TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
10709
10710
10711
10712
10713
10714 ForceSendFields []string `json:"-"`
10715
10716
10717
10718
10719 NullFields []string `json:"-"`
10720 }
10721
10722 func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
10723 type NoMethod GoogleCloudDialogflowCxV3beta1Page
10724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10725 }
10726
10727
10728
10729 type GoogleCloudDialogflowCxV3beta1PageInfo struct {
10730
10731
10732
10733 CurrentPage string `json:"currentPage,omitempty"`
10734
10735
10736 DisplayName string `json:"displayName,omitempty"`
10737
10738
10739 FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
10740
10741
10742
10743
10744
10745 ForceSendFields []string `json:"-"`
10746
10747
10748
10749
10750 NullFields []string `json:"-"`
10751 }
10752
10753 func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
10754 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
10755 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10756 }
10757
10758
10759 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
10760
10761
10762
10763 ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
10764
10765
10766
10767
10768
10769 ForceSendFields []string `json:"-"`
10770
10771
10772
10773
10774 NullFields []string `json:"-"`
10775 }
10776
10777 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
10778 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
10779 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10780 }
10781
10782
10783
10784 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
10785
10786
10787
10788 DisplayName string `json:"displayName,omitempty"`
10789
10790
10791
10792 JustCollected bool `json:"justCollected,omitempty"`
10793
10794
10795
10796
10797 Required bool `json:"required,omitempty"`
10798
10799
10800
10801
10802
10803
10804
10805
10806
10807
10808
10809
10810 State string `json:"state,omitempty"`
10811
10812
10813
10814 Value interface{} `json:"value,omitempty"`
10815
10816
10817
10818
10819
10820 ForceSendFields []string `json:"-"`
10821
10822
10823
10824
10825 NullFields []string `json:"-"`
10826 }
10827
10828 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
10829 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
10830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10831 }
10832
10833
10834
10835
10836
10837
10838
10839 type GoogleCloudDialogflowCxV3beta1QueryInput struct {
10840
10841 Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
10842
10843 Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
10844
10845 Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
10846
10847 Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
10848
10849
10850
10851
10852 LanguageCode string `json:"languageCode,omitempty"`
10853
10854 Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
10855
10856
10857
10858
10859
10860 ForceSendFields []string `json:"-"`
10861
10862
10863
10864
10865 NullFields []string `json:"-"`
10866 }
10867
10868 func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
10869 type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
10870 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10871 }
10872
10873
10874
10875 type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
10876
10877 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
10878
10879
10880
10881
10882
10883 ForceSendFields []string `json:"-"`
10884
10885
10886
10887
10888 NullFields []string `json:"-"`
10889 }
10890
10891 func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
10892 type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
10893 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10894 }
10895
10896
10897
10898
10899
10900
10901
10902
10903
10904
10905
10906
10907
10908
10909 type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
10910
10911
10912
10913 Channel string `json:"channel,omitempty"`
10914
10915 ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
10916
10917
10918
10919
10920
10921 EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
10922
10923
10924 KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
10925
10926 LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
10927
10928
10929
10930
10931 MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
10932
10933
10934
10935 OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
10936
10937 Payload googleapi.RawMessage `json:"payload,omitempty"`
10938
10939
10940
10941 PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
10942
10943
10944 TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
10945
10946 Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
10947
10948
10949
10950
10951
10952 ForceSendFields []string `json:"-"`
10953
10954
10955
10956
10957 NullFields []string `json:"-"`
10958 }
10959
10960 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
10961 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
10962 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10963 }
10964
10965
10966
10967
10968
10969
10970
10971
10972
10973
10974
10975 type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
10976
10977 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
10978
10979
10980
10981
10982
10983 ForceSendFields []string `json:"-"`
10984
10985
10986
10987
10988 NullFields []string `json:"-"`
10989 }
10990
10991 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
10992 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
10993 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10994 }
10995
10996
10997
10998
10999 type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
11000 }
11001
11002
11003
11004
11005
11006 type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
11007 }
11008
11009
11010
11011
11012
11013
11014
11015
11016
11017 type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
11018
11019
11020 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
11021
11022
11023
11024
11025
11026 ForceSendFields []string `json:"-"`
11027
11028
11029
11030
11031 NullFields []string `json:"-"`
11032 }
11033
11034 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
11035 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
11036 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11037 }
11038
11039
11040
11041
11042
11043
11044 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
11045
11046 Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
11047
11048
11049
11050
11051
11052 ForceSendFields []string `json:"-"`
11053
11054
11055
11056
11057 NullFields []string `json:"-"`
11058 }
11059
11060 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
11061 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
11062 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11063 }
11064
11065
11066
11067 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
11068
11069
11070
11071 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
11072
11073
11074 Audio string `json:"audio,omitempty"`
11075
11076
11077 Uri string `json:"uri,omitempty"`
11078
11079
11080
11081
11082
11083 ForceSendFields []string `json:"-"`
11084
11085
11086
11087
11088 NullFields []string `json:"-"`
11089 }
11090
11091 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
11092 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
11093 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11094 }
11095
11096
11097
11098
11099 type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
11100
11101
11102
11103 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
11104
11105
11106 Ssml string `json:"ssml,omitempty"`
11107
11108 Text string `json:"text,omitempty"`
11109
11110
11111
11112
11113
11114 ForceSendFields []string `json:"-"`
11115
11116
11117
11118
11119 NullFields []string `json:"-"`
11120 }
11121
11122 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
11123 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
11124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11125 }
11126
11127
11128
11129 type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
11130
11131
11132
11133 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
11134
11135
11136 AudioUri string `json:"audioUri,omitempty"`
11137
11138
11139
11140
11141
11142 ForceSendFields []string `json:"-"`
11143
11144
11145
11146
11147 NullFields []string `json:"-"`
11148 }
11149
11150 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
11151 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
11152 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11153 }
11154
11155
11156
11157
11158 type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
11159
11160
11161 PhoneNumber string `json:"phoneNumber,omitempty"`
11162
11163
11164
11165
11166
11167 ForceSendFields []string `json:"-"`
11168
11169
11170
11171
11172 NullFields []string `json:"-"`
11173 }
11174
11175 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
11176 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
11177 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11178 }
11179
11180
11181
11182 type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
11183
11184
11185
11186 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
11187
11188 Text []string `json:"text,omitempty"`
11189
11190
11191
11192
11193
11194 ForceSendFields []string `json:"-"`
11195
11196
11197
11198
11199 NullFields []string `json:"-"`
11200 }
11201
11202 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
11203 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
11204 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11205 }
11206
11207
11208
11209 type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
11210
11211 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
11212
11213
11214
11215
11216
11217 ForceSendFields []string `json:"-"`
11218
11219
11220
11221
11222 NullFields []string `json:"-"`
11223 }
11224
11225 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
11226 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
11227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11228 }
11229
11230
11231
11232 type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
11233
11234 ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
11235
11236
11237
11238
11239
11240 ForceSendFields []string `json:"-"`
11241
11242
11243
11244
11245 NullFields []string `json:"-"`
11246 }
11247
11248 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
11249 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
11250 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11251 }
11252
11253
11254
11255
11256 type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
11257 }
11258
11259
11260
11261 type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
11262
11263 Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
11264
11265
11266
11267
11268
11269 ForceSendFields []string `json:"-"`
11270
11271
11272
11273
11274 NullFields []string `json:"-"`
11275 }
11276
11277 func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
11278 type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
11279 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11280 }
11281
11282
11283
11284 type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
11285
11286
11287
11288
11289
11290 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
11291
11292
11293
11294
11295
11296 Session string `json:"session,omitempty"`
11297
11298
11299
11300
11301
11302 ForceSendFields []string `json:"-"`
11303
11304
11305
11306
11307 NullFields []string `json:"-"`
11308 }
11309
11310 func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
11311 type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
11312 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11313 }
11314
11315
11316 type GoogleCloudDialogflowCxV3beta1TestCase struct {
11317
11318 CreationTime string `json:"creationTime,omitempty"`
11319
11320
11321 DisplayName string `json:"displayName,omitempty"`
11322
11323 LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
11324
11325
11326
11327 Name string `json:"name,omitempty"`
11328
11329
11330 Notes string `json:"notes,omitempty"`
11331
11332
11333
11334 Tags []string `json:"tags,omitempty"`
11335
11336
11337
11338 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
11339
11340 TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
11341
11342
11343
11344
11345
11346 ForceSendFields []string `json:"-"`
11347
11348
11349
11350
11351 NullFields []string `json:"-"`
11352 }
11353
11354 func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
11355 type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
11356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11357 }
11358
11359
11360
11361 type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
11362
11363 Status *GoogleRpcStatus `json:"status,omitempty"`
11364
11365 TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
11366
11367
11368
11369
11370
11371 ForceSendFields []string `json:"-"`
11372
11373
11374
11375
11376 NullFields []string `json:"-"`
11377 }
11378
11379 func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
11380 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
11381 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11382 }
11383
11384
11385
11386 type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
11387
11388
11389 ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
11390
11391
11392 Environment string `json:"environment,omitempty"`
11393
11394
11395 Name string `json:"name,omitempty"`
11396
11397
11398
11399
11400
11401
11402 TestResult string `json:"testResult,omitempty"`
11403
11404 TestTime string `json:"testTime,omitempty"`
11405
11406
11407
11408
11409
11410 ForceSendFields []string `json:"-"`
11411
11412
11413
11414
11415 NullFields []string `json:"-"`
11416 }
11417
11418 func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
11419 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
11420 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11421 }
11422
11423
11424
11425 type GoogleCloudDialogflowCxV3beta1TestConfig struct {
11426
11427
11428
11429
11430
11431 Flow string `json:"flow,omitempty"`
11432
11433
11434
11435
11436
11437 Page string `json:"page,omitempty"`
11438
11439
11440 TrackingParameters []string `json:"trackingParameters,omitempty"`
11441
11442
11443
11444
11445
11446 ForceSendFields []string `json:"-"`
11447
11448
11449
11450
11451 NullFields []string `json:"-"`
11452 }
11453
11454 func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
11455 type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
11456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11457 }
11458
11459
11460 type GoogleCloudDialogflowCxV3beta1TestError struct {
11461
11462 Status *GoogleRpcStatus `json:"status,omitempty"`
11463
11464 TestCase string `json:"testCase,omitempty"`
11465
11466 TestTime string `json:"testTime,omitempty"`
11467
11468
11469
11470
11471
11472 ForceSendFields []string `json:"-"`
11473
11474
11475
11476
11477 NullFields []string `json:"-"`
11478 }
11479
11480 func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
11481 type NoMethod GoogleCloudDialogflowCxV3beta1TestError
11482 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11483 }
11484
11485
11486
11487 type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
11488
11489
11490 Description string `json:"description,omitempty"`
11491
11492
11493
11494
11495
11496
11497
11498
11499
11500 Type string `json:"type,omitempty"`
11501
11502
11503
11504
11505
11506 ForceSendFields []string `json:"-"`
11507
11508
11509
11510
11511 NullFields []string `json:"-"`
11512 }
11513
11514 func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
11515 type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
11516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11517 }
11518
11519
11520
11521 type GoogleCloudDialogflowCxV3beta1TextInput struct {
11522
11523 Text string `json:"text,omitempty"`
11524
11525
11526
11527
11528
11529 ForceSendFields []string `json:"-"`
11530
11531
11532
11533
11534 NullFields []string `json:"-"`
11535 }
11536
11537 func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
11538 type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
11539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11540 }
11541
11542
11543
11544
11545
11546
11547
11548
11549
11550 type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
11551
11552
11553
11554
11555
11556
11557 Condition string `json:"condition,omitempty"`
11558
11559
11560 Description string `json:"description,omitempty"`
11561
11562
11563
11564
11565
11566 Intent string `json:"intent,omitempty"`
11567
11568 Name string `json:"name,omitempty"`
11569
11570
11571 TargetFlow string `json:"targetFlow,omitempty"`
11572
11573
11574 TargetPage string `json:"targetPage,omitempty"`
11575
11576
11577
11578 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
11579
11580
11581
11582
11583
11584 ForceSendFields []string `json:"-"`
11585
11586
11587
11588
11589 NullFields []string `json:"-"`
11590 }
11591
11592 func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
11593 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
11594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11595 }
11596
11597
11598
11599 type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
11600
11601 AgentEscalated bool `json:"agentEscalated,omitempty"`
11602
11603 DtmfUsed bool `json:"dtmfUsed,omitempty"`
11604
11605
11606
11607
11608
11609
11610 FailureReasons []string `json:"failureReasons,omitempty"`
11611
11612 NoMatch bool `json:"noMatch,omitempty"`
11613
11614 NoUserInput bool `json:"noUserInput,omitempty"`
11615
11616 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
11617
11618
11619 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
11620
11621
11622 SentimentScore float64 `json:"sentimentScore,omitempty"`
11623
11624 UserEscalated bool `json:"userEscalated,omitempty"`
11625
11626
11627 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
11628
11629
11630
11631
11632
11633 ForceSendFields []string `json:"-"`
11634
11635
11636
11637
11638 NullFields []string `json:"-"`
11639 }
11640
11641 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
11642 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
11643 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11644 }
11645
11646 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
11647 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
11648 var s1 struct {
11649 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
11650 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
11651 *NoMethod
11652 }
11653 s1.NoMethod = (*NoMethod)(s)
11654 if err := json.Unmarshal(data, &s1); err != nil {
11655 return err
11656 }
11657 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
11658 s.SentimentScore = float64(s1.SentimentScore)
11659 return nil
11660 }
11661
11662
11663
11664 type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
11665
11666 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
11667
11668
11669
11670
11671
11672 ForceSendFields []string `json:"-"`
11673
11674
11675
11676
11677 NullFields []string `json:"-"`
11678 }
11679
11680 func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
11681 type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
11682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11683 }
11684
11685
11686
11687
11688
11689
11690 type GoogleCloudDialogflowCxV3beta1Webhook struct {
11691
11692 Disabled bool `json:"disabled,omitempty"`
11693
11694
11695 DisplayName string `json:"displayName,omitempty"`
11696
11697 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
11698
11699
11700
11701 Name string `json:"name,omitempty"`
11702
11703
11704 ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
11705
11706
11707
11708 Timeout string `json:"timeout,omitempty"`
11709
11710
11711
11712
11713
11714 ForceSendFields []string `json:"-"`
11715
11716
11717
11718
11719 NullFields []string `json:"-"`
11720 }
11721
11722 func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
11723 type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
11724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11725 }
11726
11727
11728
11729 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
11730
11731
11732
11733
11734
11735
11736
11737
11738 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
11739
11740
11741
11742
11743
11744
11745
11746
11747
11748
11749
11750
11751 HttpMethod string `json:"httpMethod,omitempty"`
11752
11753
11754
11755 OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
11756
11757
11758
11759 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
11760
11761 Password string `json:"password,omitempty"`
11762
11763
11764 RequestBody string `json:"requestBody,omitempty"`
11765
11766
11767 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
11768
11769
11770
11771
11772
11773
11774
11775
11776
11777
11778
11779
11780
11781
11782
11783
11784
11785
11786
11787 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
11788
11789
11790 Uri string `json:"uri,omitempty"`
11791
11792 Username string `json:"username,omitempty"`
11793
11794
11795
11796
11797
11798
11799 WebhookType string `json:"webhookType,omitempty"`
11800
11801
11802
11803
11804
11805 ForceSendFields []string `json:"-"`
11806
11807
11808
11809
11810 NullFields []string `json:"-"`
11811 }
11812
11813 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
11814 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
11815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11816 }
11817
11818
11819
11820
11821 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
11822
11823 ClientId string `json:"clientId,omitempty"`
11824
11825
11826 ClientSecret string `json:"clientSecret,omitempty"`
11827
11828 Scopes []string `json:"scopes,omitempty"`
11829
11830
11831 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
11832
11833
11834
11835
11836
11837 ForceSendFields []string `json:"-"`
11838
11839
11840
11841
11842 NullFields []string `json:"-"`
11843 }
11844
11845 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
11846 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
11847 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11848 }
11849
11850
11851
11852
11853
11854
11855 type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
11856
11857
11858 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
11859
11860
11861 DtmfDigits string `json:"dtmfDigits,omitempty"`
11862
11863
11864 FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
11865
11866 IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
11867
11868 LanguageCode string `json:"languageCode,omitempty"`
11869
11870 LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
11871
11872
11873
11874 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
11875
11876 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
11877
11878 Payload googleapi.RawMessage `json:"payload,omitempty"`
11879
11880
11881
11882 SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
11883
11884 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
11885
11886
11887 Text string `json:"text,omitempty"`
11888
11889
11890 Transcript string `json:"transcript,omitempty"`
11891
11892
11893 TriggerEvent string `json:"triggerEvent,omitempty"`
11894
11895
11896
11897 TriggerIntent string `json:"triggerIntent,omitempty"`
11898
11899
11900
11901
11902
11903 ForceSendFields []string `json:"-"`
11904
11905
11906
11907
11908 NullFields []string `json:"-"`
11909 }
11910
11911 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
11912 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
11913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11914 }
11915
11916
11917
11918 type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
11919
11920
11921
11922
11923 Tag string `json:"tag,omitempty"`
11924
11925
11926
11927
11928
11929 ForceSendFields []string `json:"-"`
11930
11931
11932
11933
11934 NullFields []string `json:"-"`
11935 }
11936
11937 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
11938 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
11939 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11940 }
11941
11942
11943
11944 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
11945
11946
11947 Confidence float64 `json:"confidence,omitempty"`
11948
11949 DisplayName string `json:"displayName,omitempty"`
11950
11951
11952 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
11953
11954
11955
11956
11957 Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
11958
11959
11960
11961
11962
11963 ForceSendFields []string `json:"-"`
11964
11965
11966
11967
11968 NullFields []string `json:"-"`
11969 }
11970
11971 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
11972 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
11973 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11974 }
11975
11976 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
11977 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
11978 var s1 struct {
11979 Confidence gensupport.JSONFloat64 `json:"confidence"`
11980 *NoMethod
11981 }
11982 s1.NoMethod = (*NoMethod)(s)
11983 if err := json.Unmarshal(data, &s1); err != nil {
11984 return err
11985 }
11986 s.Confidence = float64(s1.Confidence)
11987 return nil
11988 }
11989
11990
11991
11992 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
11993
11994
11995 OriginalValue string `json:"originalValue,omitempty"`
11996
11997
11998 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
11999
12000
12001
12002
12003
12004 ForceSendFields []string `json:"-"`
12005
12006
12007
12008
12009 NullFields []string `json:"-"`
12010 }
12011
12012 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
12013 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
12014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12015 }
12016
12017
12018
12019 type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
12020
12021
12022
12023 Magnitude float64 `json:"magnitude,omitempty"`
12024
12025
12026 Score float64 `json:"score,omitempty"`
12027
12028
12029
12030
12031
12032 ForceSendFields []string `json:"-"`
12033
12034
12035
12036
12037 NullFields []string `json:"-"`
12038 }
12039
12040 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
12041 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
12042 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12043 }
12044
12045 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
12046 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
12047 var s1 struct {
12048 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
12049 Score gensupport.JSONFloat64 `json:"score"`
12050 *NoMethod
12051 }
12052 s1.NoMethod = (*NoMethod)(s)
12053 if err := json.Unmarshal(data, &s1); err != nil {
12054 return err
12055 }
12056 s.Magnitude = float64(s1.Magnitude)
12057 s.Score = float64(s1.Score)
12058 return nil
12059 }
12060
12061
12062
12063 type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
12064
12065
12066
12067 FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
12068
12069
12070 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
12071
12072 Payload googleapi.RawMessage `json:"payload,omitempty"`
12073
12074
12075 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
12076
12077
12078 TargetFlow string `json:"targetFlow,omitempty"`
12079
12080
12081 TargetPage string `json:"targetPage,omitempty"`
12082
12083
12084
12085
12086
12087 ForceSendFields []string `json:"-"`
12088
12089
12090
12091
12092 NullFields []string `json:"-"`
12093 }
12094
12095 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
12096 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
12097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12098 }
12099
12100
12101
12102 type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
12103
12104
12105
12106
12107
12108
12109
12110
12111 MergeBehavior string `json:"mergeBehavior,omitempty"`
12112
12113 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
12114
12115
12116
12117
12118
12119 ForceSendFields []string `json:"-"`
12120
12121
12122
12123
12124 NullFields []string `json:"-"`
12125 }
12126
12127 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
12128 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
12129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12130 }
12131
12132
12133
12134
12135 type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
12136
12137 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
12138
12139
12140
12141
12142 Service string `json:"service,omitempty"`
12143
12144
12145
12146
12147
12148 ForceSendFields []string `json:"-"`
12149
12150
12151
12152
12153 NullFields []string `json:"-"`
12154 }
12155
12156 func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
12157 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
12158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12159 }
12160
12161
12162
12163
12164 type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
12165
12166
12167
12168
12169 EntityType string `json:"entityType,omitempty"`
12170
12171
12172
12173
12174 FormattedValue interface{} `json:"formattedValue,omitempty"`
12175
12176 Text string `json:"text,omitempty"`
12177
12178
12179
12180
12181
12182 ForceSendFields []string `json:"-"`
12183
12184
12185
12186
12187 NullFields []string `json:"-"`
12188 }
12189
12190 func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
12191 type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
12192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12193 }
12194
12195
12196 type GoogleCloudDialogflowV2ArticleAnswer struct {
12197
12198
12199 AnswerRecord string `json:"answerRecord,omitempty"`
12200
12201
12202
12203 Confidence float64 `json:"confidence,omitempty"`
12204
12205
12206 Metadata map[string]string `json:"metadata,omitempty"`
12207
12208 Snippets []string `json:"snippets,omitempty"`
12209
12210 Title string `json:"title,omitempty"`
12211
12212 Uri string `json:"uri,omitempty"`
12213
12214
12215
12216
12217
12218 ForceSendFields []string `json:"-"`
12219
12220
12221
12222
12223 NullFields []string `json:"-"`
12224 }
12225
12226 func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
12227 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
12228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12229 }
12230
12231 func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
12232 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
12233 var s1 struct {
12234 Confidence gensupport.JSONFloat64 `json:"confidence"`
12235 *NoMethod
12236 }
12237 s1.NoMethod = (*NoMethod)(s)
12238 if err := json.Unmarshal(data, &s1); err != nil {
12239 return err
12240 }
12241 s.Confidence = float64(s1.Confidence)
12242 return nil
12243 }
12244
12245
12246
12247 type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
12248
12249
12250
12251
12252
12253
12254
12255
12256 TrainingModelType string `json:"trainingModelType,omitempty"`
12257
12258
12259
12260
12261
12262 ForceSendFields []string `json:"-"`
12263
12264
12265
12266
12267 NullFields []string `json:"-"`
12268 }
12269
12270 func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
12271 type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
12272 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12273 }
12274
12275
12276
12277 type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
12278
12279 EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
12280
12281
12282
12283
12284
12285 ForceSendFields []string `json:"-"`
12286
12287
12288
12289
12290 NullFields []string `json:"-"`
12291 }
12292
12293 func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
12294 type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
12295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12296 }
12297
12298
12299
12300 type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
12301
12302 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
12303
12304
12305
12306
12307
12308 ForceSendFields []string `json:"-"`
12309
12310
12311
12312
12313 NullFields []string `json:"-"`
12314 }
12315
12316 func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
12317 type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
12318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12319 }
12320
12321
12322
12323 type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
12324
12325
12326 ConversationProfile string `json:"conversationProfile,omitempty"`
12327
12328
12329 CreateTime string `json:"createTime,omitempty"`
12330
12331
12332
12333
12334
12335
12336
12337
12338
12339
12340 ParticipantRole string `json:"participantRole,omitempty"`
12341
12342
12343
12344
12345
12346
12347
12348
12349
12350
12351 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
12352
12353
12354
12355
12356
12357 ForceSendFields []string `json:"-"`
12358
12359
12360
12361
12362 NullFields []string `json:"-"`
12363 }
12364
12365 func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
12366 type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
12367 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12368 }
12369
12370
12371
12372
12373
12374
12375
12376
12377
12378
12379
12380
12381
12382
12383 type GoogleCloudDialogflowV2Context struct {
12384
12385
12386
12387
12388 LifespanCount int64 `json:"lifespanCount,omitempty"`
12389
12390
12391
12392
12393
12394
12395
12396
12397
12398
12399 Name string `json:"name,omitempty"`
12400
12401
12402
12403
12404
12405
12406
12407
12408
12409
12410 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
12411
12412
12413
12414
12415
12416 ForceSendFields []string `json:"-"`
12417
12418
12419
12420
12421 NullFields []string `json:"-"`
12422 }
12423
12424 func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
12425 type NoMethod GoogleCloudDialogflowV2Context
12426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12427 }
12428
12429
12430
12431 type GoogleCloudDialogflowV2ConversationEvent struct {
12432
12433
12434 Conversation string `json:"conversation,omitempty"`
12435
12436
12437 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
12438
12439 NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
12440
12441
12442
12443
12444
12445
12446
12447
12448
12449
12450
12451
12452
12453
12454
12455
12456
12457
12458
12459
12460 Type string `json:"type,omitempty"`
12461
12462
12463
12464
12465
12466 ForceSendFields []string `json:"-"`
12467
12468
12469
12470
12471 NullFields []string `json:"-"`
12472 }
12473
12474 func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
12475 type NoMethod GoogleCloudDialogflowV2ConversationEvent
12476 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12477 }
12478
12479
12480 type GoogleCloudDialogflowV2ConversationModel struct {
12481
12482 ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
12483
12484 CreateTime string `json:"createTime,omitempty"`
12485
12486 Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
12487
12488 DisplayName string `json:"displayName,omitempty"`
12489
12490
12491
12492
12493
12494 LanguageCode string `json:"languageCode,omitempty"`
12495
12496
12497 Name string `json:"name,omitempty"`
12498
12499 SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
12500
12501
12502
12503
12504
12505
12506
12507
12508
12509
12510
12511
12512
12513
12514
12515
12516 State string `json:"state,omitempty"`
12517
12518
12519
12520
12521
12522
12523 ForceSendFields []string `json:"-"`
12524
12525
12526
12527
12528 NullFields []string `json:"-"`
12529 }
12530
12531 func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
12532 type NoMethod GoogleCloudDialogflowV2ConversationModel
12533 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12534 }
12535
12536
12537
12538 type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
12539
12540
12541 ConversationDataset string `json:"conversationDataset,omitempty"`
12542
12543
12544
12545
12546
12547 ForceSendFields []string `json:"-"`
12548
12549
12550
12551
12552 NullFields []string `json:"-"`
12553 }
12554
12555 func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
12556 type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
12557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12558 }
12559
12560
12561
12562
12563 type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
12564
12565
12566 ConversationModel string `json:"conversationModel,omitempty"`
12567
12568
12569 ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
12570
12571
12572 CreateTime string `json:"createTime,omitempty"`
12573
12574
12575
12576
12577
12578
12579
12580
12581
12582 State string `json:"state,omitempty"`
12583
12584
12585
12586
12587
12588 ForceSendFields []string `json:"-"`
12589
12590
12591
12592
12593 NullFields []string `json:"-"`
12594 }
12595
12596 func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
12597 type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
12598 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12599 }
12600
12601
12602
12603 type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
12604
12605
12606 ConversationModel string `json:"conversationModel,omitempty"`
12607
12608
12609 CreateTime string `json:"createTime,omitempty"`
12610
12611
12612
12613
12614
12615
12616
12617
12618
12619
12620
12621
12622 State string `json:"state,omitempty"`
12623
12624
12625
12626
12627
12628 ForceSendFields []string `json:"-"`
12629
12630
12631
12632
12633 NullFields []string `json:"-"`
12634 }
12635
12636 func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
12637 type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
12638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12639 }
12640
12641
12642
12643 type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
12644 }
12645
12646
12647
12648 type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
12649
12650
12651 ConversationModel string `json:"conversationModel,omitempty"`
12652
12653
12654 CreateTime string `json:"createTime,omitempty"`
12655
12656
12657
12658
12659
12660 ForceSendFields []string `json:"-"`
12661
12662
12663
12664
12665 NullFields []string `json:"-"`
12666 }
12667
12668 func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
12669 type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
12670 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12671 }
12672
12673
12674
12675 type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
12676
12677
12678 ConversationModel string `json:"conversationModel,omitempty"`
12679
12680
12681 CreateTime string `json:"createTime,omitempty"`
12682
12683
12684
12685
12686
12687 ForceSendFields []string `json:"-"`
12688
12689
12690
12691
12692 NullFields []string `json:"-"`
12693 }
12694
12695 func (s *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
12696 type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
12697 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12698 }
12699
12700
12701
12702
12703
12704
12705
12706
12707
12708
12709
12710 type GoogleCloudDialogflowV2EntityType struct {
12711
12712
12713
12714
12715
12716
12717
12718
12719 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
12720
12721 DisplayName string `json:"displayName,omitempty"`
12722
12723
12724 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
12725
12726
12727 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
12728
12729
12730
12731
12732
12733
12734
12735
12736
12737
12738
12739 Kind string `json:"kind,omitempty"`
12740
12741
12742
12743 Name string `json:"name,omitempty"`
12744
12745
12746
12747
12748
12749 ForceSendFields []string `json:"-"`
12750
12751
12752
12753
12754 NullFields []string `json:"-"`
12755 }
12756
12757 func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
12758 type NoMethod GoogleCloudDialogflowV2EntityType
12759 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12760 }
12761
12762
12763
12764 type GoogleCloudDialogflowV2EntityTypeEntity struct {
12765
12766
12767
12768
12769 Synonyms []string `json:"synonyms,omitempty"`
12770
12771
12772
12773
12774
12775 Value string `json:"value,omitempty"`
12776
12777
12778
12779
12780
12781 ForceSendFields []string `json:"-"`
12782
12783
12784
12785
12786 NullFields []string `json:"-"`
12787 }
12788
12789 func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
12790 type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
12791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12792 }
12793
12794
12795
12796
12797
12798
12799 type GoogleCloudDialogflowV2EventInput struct {
12800
12801
12802
12803
12804
12805
12806
12807 LanguageCode string `json:"languageCode,omitempty"`
12808
12809 Name string `json:"name,omitempty"`
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
12821
12822
12823
12824
12825
12826 ForceSendFields []string `json:"-"`
12827
12828
12829
12830
12831 NullFields []string `json:"-"`
12832 }
12833
12834 func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
12835 type NoMethod GoogleCloudDialogflowV2EventInput
12836 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12837 }
12838
12839
12840
12841 type GoogleCloudDialogflowV2ExportAgentResponse struct {
12842
12843 AgentContent string `json:"agentContent,omitempty"`
12844
12845
12846 AgentUri string `json:"agentUri,omitempty"`
12847
12848
12849
12850
12851
12852 ForceSendFields []string `json:"-"`
12853
12854
12855
12856
12857 NullFields []string `json:"-"`
12858 }
12859
12860 func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
12861 type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
12862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12863 }
12864
12865
12866
12867 type GoogleCloudDialogflowV2ExportOperationMetadata struct {
12868
12869 ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
12870
12871
12872
12873
12874
12875 ForceSendFields []string `json:"-"`
12876
12877
12878
12879
12880 NullFields []string `json:"-"`
12881 }
12882
12883 func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
12884 type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
12885 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12886 }
12887
12888
12889
12890 type GoogleCloudDialogflowV2FaqAnswer struct {
12891
12892 Answer string `json:"answer,omitempty"`
12893
12894
12895 AnswerRecord string `json:"answerRecord,omitempty"`
12896
12897
12898
12899 Confidence float64 `json:"confidence,omitempty"`
12900
12901
12902 Metadata map[string]string `json:"metadata,omitempty"`
12903
12904 Question string `json:"question,omitempty"`
12905
12906
12907 Source string `json:"source,omitempty"`
12908
12909
12910
12911
12912
12913 ForceSendFields []string `json:"-"`
12914
12915
12916
12917
12918 NullFields []string `json:"-"`
12919 }
12920
12921 func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
12922 type NoMethod GoogleCloudDialogflowV2FaqAnswer
12923 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12924 }
12925
12926 func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
12927 type NoMethod GoogleCloudDialogflowV2FaqAnswer
12928 var s1 struct {
12929 Confidence gensupport.JSONFloat64 `json:"confidence"`
12930 *NoMethod
12931 }
12932 s1.NoMethod = (*NoMethod)(s)
12933 if err := json.Unmarshal(data, &s1); err != nil {
12934 return err
12935 }
12936 s.Confidence = float64(s1.Confidence)
12937 return nil
12938 }
12939
12940
12941
12942 type GoogleCloudDialogflowV2GcsDestination struct {
12943
12944
12945
12946
12947 Uri string `json:"uri,omitempty"`
12948
12949
12950
12951
12952
12953 ForceSendFields []string `json:"-"`
12954
12955
12956
12957
12958 NullFields []string `json:"-"`
12959 }
12960
12961 func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
12962 type NoMethod GoogleCloudDialogflowV2GcsDestination
12963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12964 }
12965
12966
12967
12968
12969 type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
12970
12971
12972 Conversation string `json:"conversation,omitempty"`
12973
12974
12975
12976 Participant string `json:"participant,omitempty"`
12977
12978
12979 SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
12980
12981
12982
12983
12984
12985 ForceSendFields []string `json:"-"`
12986
12987
12988
12989
12990 NullFields []string `json:"-"`
12991 }
12992
12993 func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
12994 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
12995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12996 }
12997
12998
12999
13000 type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
13001
13002
13003 ConversationDataset string `json:"conversationDataset,omitempty"`
13004
13005
13006 CreateTime string `json:"createTime,omitempty"`
13007
13008
13009 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
13010
13011
13012
13013
13014
13015 ForceSendFields []string `json:"-"`
13016
13017
13018
13019
13020 NullFields []string `json:"-"`
13021 }
13022
13023 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
13024 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
13025 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13026 }
13027
13028
13029
13030 type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
13031
13032
13033 ConversationDataset string `json:"conversationDataset,omitempty"`
13034
13035 ImportCount int64 `json:"importCount,omitempty"`
13036
13037
13038
13039
13040
13041 ForceSendFields []string `json:"-"`
13042
13043
13044
13045
13046 NullFields []string `json:"-"`
13047 }
13048
13049 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
13050 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
13051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13052 }
13053
13054
13055
13056 type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
13057
13058 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
13059
13060
13061
13062
13063
13064 ForceSendFields []string `json:"-"`
13065
13066
13067
13068
13069 NullFields []string `json:"-"`
13070 }
13071
13072 func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
13073 type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
13074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13075 }
13076
13077
13078
13079 type GoogleCloudDialogflowV2InputDataset struct {
13080
13081
13082 Dataset string `json:"dataset,omitempty"`
13083
13084
13085
13086
13087
13088 ForceSendFields []string `json:"-"`
13089
13090
13091
13092
13093 NullFields []string `json:"-"`
13094 }
13095
13096 func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
13097 type NoMethod GoogleCloudDialogflowV2InputDataset
13098 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13099 }
13100
13101
13102
13103
13104
13105
13106
13107
13108
13109 type GoogleCloudDialogflowV2Intent struct {
13110
13111
13112 Action string `json:"action,omitempty"`
13113
13114
13115
13116
13117
13118
13119
13120
13121
13122
13123
13124
13125
13126
13127
13128
13129
13130 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
13131
13132 DisplayName string `json:"displayName,omitempty"`
13133
13134
13135
13136 EndInteraction bool `json:"endInteraction,omitempty"`
13137
13138
13139
13140
13141 Events []string `json:"events,omitempty"`
13142
13143
13144
13145 FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
13146
13147
13148 InputContextNames []string `json:"inputContextNames,omitempty"`
13149
13150 IsFallback bool `json:"isFallback,omitempty"`
13151
13152
13153
13154
13155 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
13156
13157
13158 Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
13159
13160
13161
13162
13163 MlDisabled bool `json:"mlDisabled,omitempty"`
13164
13165
13166
13167 Name string `json:"name,omitempty"`
13168
13169
13170
13171
13172
13173 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
13174
13175
13176 Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
13177
13178
13179
13180
13181
13182 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13183
13184
13185
13186
13187
13188 Priority int64 `json:"priority,omitempty"`
13189
13190
13191 ResetContexts bool `json:"resetContexts,omitempty"`
13192
13193
13194
13195
13196 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
13197
13198
13199 TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
13200
13201
13202
13203
13204
13205
13206
13207
13208
13209
13210
13211 WebhookState string `json:"webhookState,omitempty"`
13212
13213
13214
13215
13216
13217 ForceSendFields []string `json:"-"`
13218
13219
13220
13221
13222 NullFields []string `json:"-"`
13223 }
13224
13225 func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
13226 type NoMethod GoogleCloudDialogflowV2Intent
13227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13228 }
13229
13230
13231
13232 type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
13233
13234
13235 FollowupIntentName string `json:"followupIntentName,omitempty"`
13236
13237
13238 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13239
13240
13241
13242
13243
13244 ForceSendFields []string `json:"-"`
13245
13246
13247
13248
13249 NullFields []string `json:"-"`
13250 }
13251
13252 func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
13253 type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
13254 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13255 }
13256
13257
13258
13259
13260
13261 type GoogleCloudDialogflowV2IntentMessage struct {
13262
13263 BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
13264
13265 BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
13266
13267 Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
13268
13269 CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
13270
13271 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13272
13273 LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
13274
13275 ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
13276
13277 MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
13278
13279 Payload googleapi.RawMessage `json:"payload,omitempty"`
13280
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291
13292
13293
13294
13295 Platform string `json:"platform,omitempty"`
13296
13297 QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
13298
13299 SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
13300
13301 Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
13302
13303 TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
13304
13305 Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
13306
13307
13308
13309
13310
13311 ForceSendFields []string `json:"-"`
13312
13313
13314
13315
13316 NullFields []string `json:"-"`
13317 }
13318
13319 func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
13320 type NoMethod GoogleCloudDialogflowV2IntentMessage
13321 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13322 }
13323
13324
13325
13326 type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
13327
13328 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
13329
13330 FormattedText string `json:"formattedText,omitempty"`
13331
13332 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13333
13334 Subtitle string `json:"subtitle,omitempty"`
13335
13336 Title string `json:"title,omitempty"`
13337
13338
13339
13340
13341
13342 ForceSendFields []string `json:"-"`
13343
13344
13345
13346
13347 NullFields []string `json:"-"`
13348 }
13349
13350 func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
13351 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
13352 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13353 }
13354
13355
13356
13357 type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
13358
13359 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
13360
13361 Title string `json:"title,omitempty"`
13362
13363
13364
13365
13366
13367 ForceSendFields []string `json:"-"`
13368
13369
13370
13371
13372 NullFields []string `json:"-"`
13373 }
13374
13375 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
13376 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
13377 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13378 }
13379
13380
13381
13382 type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
13383
13384 Uri string `json:"uri,omitempty"`
13385
13386
13387
13388
13389
13390 ForceSendFields []string `json:"-"`
13391
13392
13393
13394
13395 NullFields []string `json:"-"`
13396 }
13397
13398 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
13399 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
13400 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13401 }
13402
13403
13404
13405
13406 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
13407
13408
13409
13410
13411
13412
13413
13414
13415
13416
13417
13418
13419
13420
13421
13422
13423
13424
13425 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
13426
13427
13428 Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
13429
13430
13431
13432
13433
13434 ForceSendFields []string `json:"-"`
13435
13436
13437
13438
13439 NullFields []string `json:"-"`
13440 }
13441
13442 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
13443 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
13444 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13445 }
13446
13447
13448
13449
13450 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
13451
13452
13453 Description string `json:"description,omitempty"`
13454
13455
13456 Footer string `json:"footer,omitempty"`
13457
13458 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13459
13460 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
13461
13462 Title string `json:"title,omitempty"`
13463
13464
13465
13466
13467
13468 ForceSendFields []string `json:"-"`
13469
13470
13471
13472
13473 NullFields []string `json:"-"`
13474 }
13475
13476 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
13477 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
13478 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13479 }
13480
13481
13482
13483 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
13484
13485 Url string `json:"url,omitempty"`
13486
13487
13488
13489
13490
13491
13492
13493
13494 UrlTypeHint string `json:"urlTypeHint,omitempty"`
13495
13496
13497
13498
13499
13500 ForceSendFields []string `json:"-"`
13501
13502
13503
13504
13505 NullFields []string `json:"-"`
13506 }
13507
13508 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
13509 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
13510 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13511 }
13512
13513
13514 type GoogleCloudDialogflowV2IntentMessageCard struct {
13515
13516 Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
13517
13518 ImageUri string `json:"imageUri,omitempty"`
13519
13520 Subtitle string `json:"subtitle,omitempty"`
13521
13522 Title string `json:"title,omitempty"`
13523
13524
13525
13526
13527
13528 ForceSendFields []string `json:"-"`
13529
13530
13531
13532
13533 NullFields []string `json:"-"`
13534 }
13535
13536 func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
13537 type NoMethod GoogleCloudDialogflowV2IntentMessageCard
13538 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13539 }
13540
13541
13542
13543 type GoogleCloudDialogflowV2IntentMessageCardButton struct {
13544
13545
13546 Postback string `json:"postback,omitempty"`
13547
13548 Text string `json:"text,omitempty"`
13549
13550
13551
13552
13553
13554 ForceSendFields []string `json:"-"`
13555
13556
13557
13558
13559 NullFields []string `json:"-"`
13560 }
13561
13562 func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
13563 type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
13564 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13565 }
13566
13567
13568
13569 type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
13570
13571 Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
13572
13573
13574
13575
13576
13577 ForceSendFields []string `json:"-"`
13578
13579
13580
13581
13582 NullFields []string `json:"-"`
13583 }
13584
13585 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
13586 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
13587 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13588 }
13589
13590
13591
13592 type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
13593
13594 Description string `json:"description,omitempty"`
13595
13596 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13597
13598 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
13599
13600 Title string `json:"title,omitempty"`
13601
13602
13603
13604
13605
13606 ForceSendFields []string `json:"-"`
13607
13608
13609
13610
13611 NullFields []string `json:"-"`
13612 }
13613
13614 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
13615 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
13616 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13617 }
13618
13619
13620
13621 type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
13622
13623 Header string `json:"header,omitempty"`
13624
13625
13626
13627
13628
13629
13630
13631
13632
13633 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
13634
13635
13636
13637
13638
13639 ForceSendFields []string `json:"-"`
13640
13641
13642
13643
13644 NullFields []string `json:"-"`
13645 }
13646
13647 func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
13648 type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
13649 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13650 }
13651
13652
13653 type GoogleCloudDialogflowV2IntentMessageImage struct {
13654
13655
13656 AccessibilityText string `json:"accessibilityText,omitempty"`
13657
13658 ImageUri string `json:"imageUri,omitempty"`
13659
13660
13661
13662
13663
13664 ForceSendFields []string `json:"-"`
13665
13666
13667
13668
13669 NullFields []string `json:"-"`
13670 }
13671
13672 func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
13673 type NoMethod GoogleCloudDialogflowV2IntentMessageImage
13674 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13675 }
13676
13677
13678
13679
13680 type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
13681
13682
13683 DestinationName string `json:"destinationName,omitempty"`
13684
13685
13686 Uri string `json:"uri,omitempty"`
13687
13688
13689
13690
13691
13692 ForceSendFields []string `json:"-"`
13693
13694
13695
13696
13697 NullFields []string `json:"-"`
13698 }
13699
13700 func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
13701 type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
13702 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13703 }
13704
13705
13706
13707 type GoogleCloudDialogflowV2IntentMessageListSelect struct {
13708
13709 Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
13710
13711 Subtitle string `json:"subtitle,omitempty"`
13712
13713 Title string `json:"title,omitempty"`
13714
13715
13716
13717
13718
13719 ForceSendFields []string `json:"-"`
13720
13721
13722
13723
13724 NullFields []string `json:"-"`
13725 }
13726
13727 func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
13728 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
13729 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13730 }
13731
13732
13733 type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
13734
13735 Description string `json:"description,omitempty"`
13736
13737 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13738
13739 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
13740
13741 Title string `json:"title,omitempty"`
13742
13743
13744
13745
13746
13747 ForceSendFields []string `json:"-"`
13748
13749
13750
13751
13752 NullFields []string `json:"-"`
13753 }
13754
13755 func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
13756 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
13757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13758 }
13759
13760
13761
13762 type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
13763
13764 MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
13765
13766
13767
13768
13769
13770 MediaType string `json:"mediaType,omitempty"`
13771
13772
13773
13774
13775
13776 ForceSendFields []string `json:"-"`
13777
13778
13779
13780
13781 NullFields []string `json:"-"`
13782 }
13783
13784 func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
13785 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
13786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13787 }
13788
13789
13790
13791 type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
13792
13793 ContentUrl string `json:"contentUrl,omitempty"`
13794
13795 Description string `json:"description,omitempty"`
13796
13797 Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
13798
13799 LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
13800
13801 Name string `json:"name,omitempty"`
13802
13803
13804
13805
13806
13807 ForceSendFields []string `json:"-"`
13808
13809
13810
13811
13812 NullFields []string `json:"-"`
13813 }
13814
13815 func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
13816 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
13817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13818 }
13819
13820
13821
13822 type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
13823
13824 QuickReplies []string `json:"quickReplies,omitempty"`
13825
13826 Title string `json:"title,omitempty"`
13827
13828
13829
13830
13831
13832 ForceSendFields []string `json:"-"`
13833
13834
13835
13836
13837 NullFields []string `json:"-"`
13838 }
13839
13840 func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
13841 type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
13842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13843 }
13844
13845
13846
13847 type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
13848
13849
13850 Key string `json:"key,omitempty"`
13851
13852
13853 Synonyms []string `json:"synonyms,omitempty"`
13854
13855
13856
13857
13858
13859 ForceSendFields []string `json:"-"`
13860
13861
13862
13863
13864 NullFields []string `json:"-"`
13865 }
13866
13867 func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
13868 type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
13869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13870 }
13871
13872
13873
13874 type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
13875
13876 DisplayText string `json:"displayText,omitempty"`
13877
13878
13879
13880 Ssml string `json:"ssml,omitempty"`
13881
13882
13883 TextToSpeech string `json:"textToSpeech,omitempty"`
13884
13885
13886
13887
13888
13889 ForceSendFields []string `json:"-"`
13890
13891
13892
13893
13894 NullFields []string `json:"-"`
13895 }
13896
13897 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
13898 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
13899 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13900 }
13901
13902
13903
13904
13905
13906
13907 type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
13908
13909 SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
13910
13911
13912
13913
13914
13915 ForceSendFields []string `json:"-"`
13916
13917
13918
13919
13920 NullFields []string `json:"-"`
13921 }
13922
13923 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
13924 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
13925 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13926 }
13927
13928
13929
13930 type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
13931
13932 Title string `json:"title,omitempty"`
13933
13934
13935
13936
13937
13938 ForceSendFields []string `json:"-"`
13939
13940
13941
13942
13943 NullFields []string `json:"-"`
13944 }
13945
13946 func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
13947 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
13948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13949 }
13950
13951
13952
13953 type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
13954
13955 Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
13956
13957
13958
13959
13960
13961 ForceSendFields []string `json:"-"`
13962
13963
13964
13965
13966 NullFields []string `json:"-"`
13967 }
13968
13969 func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
13970 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
13971 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13972 }
13973
13974
13975
13976 type GoogleCloudDialogflowV2IntentMessageTableCard struct {
13977
13978 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
13979
13980
13981 ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
13982
13983 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13984
13985 Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
13986
13987 Subtitle string `json:"subtitle,omitempty"`
13988
13989 Title string `json:"title,omitempty"`
13990
13991
13992
13993
13994
13995 ForceSendFields []string `json:"-"`
13996
13997
13998
13999
14000 NullFields []string `json:"-"`
14001 }
14002
14003 func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
14004 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
14005 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14006 }
14007
14008
14009 type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
14010
14011 Text string `json:"text,omitempty"`
14012
14013
14014
14015
14016
14017 ForceSendFields []string `json:"-"`
14018
14019
14020
14021
14022 NullFields []string `json:"-"`
14023 }
14024
14025 func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
14026 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
14027 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14028 }
14029
14030
14031 type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
14032
14033 Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
14034
14035 DividerAfter bool `json:"dividerAfter,omitempty"`
14036
14037
14038
14039
14040
14041 ForceSendFields []string `json:"-"`
14042
14043
14044
14045
14046 NullFields []string `json:"-"`
14047 }
14048
14049 func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
14050 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
14051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14052 }
14053
14054
14055 type GoogleCloudDialogflowV2IntentMessageText struct {
14056
14057 Text []string `json:"text,omitempty"`
14058
14059
14060
14061
14062
14063 ForceSendFields []string `json:"-"`
14064
14065
14066
14067
14068 NullFields []string `json:"-"`
14069 }
14070
14071 func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
14072 type NoMethod GoogleCloudDialogflowV2IntentMessageText
14073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14074 }
14075
14076
14077 type GoogleCloudDialogflowV2IntentParameter struct {
14078
14079
14080
14081 DefaultValue string `json:"defaultValue,omitempty"`
14082
14083 DisplayName string `json:"displayName,omitempty"`
14084
14085
14086
14087 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
14088
14089
14090 IsList bool `json:"isList,omitempty"`
14091
14092
14093
14094 Mandatory bool `json:"mandatory,omitempty"`
14095
14096 Name string `json:"name,omitempty"`
14097
14098
14099 Prompts []string `json:"prompts,omitempty"`
14100
14101
14102
14103
14104 Value string `json:"value,omitempty"`
14105
14106
14107
14108
14109
14110 ForceSendFields []string `json:"-"`
14111
14112
14113
14114
14115 NullFields []string `json:"-"`
14116 }
14117
14118 func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
14119 type NoMethod GoogleCloudDialogflowV2IntentParameter
14120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14121 }
14122
14123
14124
14125 type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
14126
14127 Name string `json:"name,omitempty"`
14128
14129
14130
14131
14132
14133
14134
14135
14136
14137
14138
14139
14140 Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
14141
14142
14143
14144 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
14145
14146
14147
14148
14149
14150
14151
14152
14153
14154
14155
14156 Type string `json:"type,omitempty"`
14157
14158
14159
14160
14161
14162 ForceSendFields []string `json:"-"`
14163
14164
14165
14166
14167 NullFields []string `json:"-"`
14168 }
14169
14170 func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
14171 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
14172 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14173 }
14174
14175
14176
14177 type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
14178
14179
14180
14181 Alias string `json:"alias,omitempty"`
14182
14183
14184 EntityType string `json:"entityType,omitempty"`
14185
14186 Text string `json:"text,omitempty"`
14187
14188
14189
14190
14191 UserDefined bool `json:"userDefined,omitempty"`
14192
14193
14194
14195
14196
14197 ForceSendFields []string `json:"-"`
14198
14199
14200
14201
14202 NullFields []string `json:"-"`
14203 }
14204
14205 func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
14206 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
14207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14208 }
14209
14210
14211
14212 type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
14213
14214
14215 ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
14216
14217
14218 KnowledgeBase string `json:"knowledgeBase,omitempty"`
14219
14220
14221
14222
14223
14224
14225
14226 State string `json:"state,omitempty"`
14227
14228
14229
14230
14231
14232 ForceSendFields []string `json:"-"`
14233
14234
14235
14236
14237 NullFields []string `json:"-"`
14238 }
14239
14240 func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
14241 type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
14242 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14243 }
14244
14245
14246
14247 type GoogleCloudDialogflowV2Message struct {
14248
14249 Content string `json:"content,omitempty"`
14250
14251
14252 CreateTime string `json:"createTime,omitempty"`
14253
14254
14255
14256 LanguageCode string `json:"languageCode,omitempty"`
14257
14258 MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
14259
14260
14261 Name string `json:"name,omitempty"`
14262
14263 Participant string `json:"participant,omitempty"`
14264
14265
14266
14267
14268
14269
14270
14271
14272
14273 ParticipantRole string `json:"participantRole,omitempty"`
14274
14275 SendTime string `json:"sendTime,omitempty"`
14276
14277
14278 SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
14279
14280
14281
14282
14283
14284 ForceSendFields []string `json:"-"`
14285
14286
14287
14288
14289 NullFields []string `json:"-"`
14290 }
14291
14292 func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
14293 type NoMethod GoogleCloudDialogflowV2Message
14294 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14295 }
14296
14297
14298
14299 type GoogleCloudDialogflowV2MessageAnnotation struct {
14300
14301 ContainEntities bool `json:"containEntities,omitempty"`
14302
14303
14304
14305 Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
14306
14307
14308
14309
14310
14311 ForceSendFields []string `json:"-"`
14312
14313
14314
14315
14316 NullFields []string `json:"-"`
14317 }
14318
14319 func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
14320 type NoMethod GoogleCloudDialogflowV2MessageAnnotation
14321 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14322 }
14323
14324
14325
14326
14327 type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
14328
14329
14330
14331
14332
14333
14334
14335
14336 Payload googleapi.RawMessage `json:"payload,omitempty"`
14337
14338
14339 Source string `json:"source,omitempty"`
14340
14341
14342 Version string `json:"version,omitempty"`
14343
14344
14345
14346
14347
14348 ForceSendFields []string `json:"-"`
14349
14350
14351
14352
14353 NullFields []string `json:"-"`
14354 }
14355
14356 func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
14357 type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
14358 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14359 }
14360
14361
14362
14363 type GoogleCloudDialogflowV2QueryResult struct {
14364
14365 Action string `json:"action,omitempty"`
14366
14367
14368
14369
14370 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
14371
14372
14373
14374
14375 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
14376
14377
14378
14379
14380 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
14381
14382 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
14383
14384
14385
14386 FulfillmentText string `json:"fulfillmentText,omitempty"`
14387
14388
14389
14390 Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
14391
14392
14393
14394
14395
14396
14397
14398
14399 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
14400
14401
14402
14403
14404 LanguageCode string `json:"languageCode,omitempty"`
14405
14406
14407
14408 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
14409
14410
14411
14412
14413
14414
14415
14416
14417
14418 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
14419
14420
14421
14422
14423
14424
14425 QueryText string `json:"queryText,omitempty"`
14426
14427
14428 SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
14429
14430
14431
14432
14433
14434
14435
14436 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
14437
14438
14439 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
14440
14441
14442 WebhookSource string `json:"webhookSource,omitempty"`
14443
14444
14445
14446
14447
14448 ForceSendFields []string `json:"-"`
14449
14450
14451
14452
14453 NullFields []string `json:"-"`
14454 }
14455
14456 func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
14457 type NoMethod GoogleCloudDialogflowV2QueryResult
14458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14459 }
14460
14461 func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
14462 type NoMethod GoogleCloudDialogflowV2QueryResult
14463 var s1 struct {
14464 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
14465 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
14466 *NoMethod
14467 }
14468 s1.NoMethod = (*NoMethod)(s)
14469 if err := json.Unmarshal(data, &s1); err != nil {
14470 return err
14471 }
14472 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
14473 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
14474 return nil
14475 }
14476
14477
14478
14479
14480
14481 type GoogleCloudDialogflowV2Sentiment struct {
14482
14483
14484
14485 Magnitude float64 `json:"magnitude,omitempty"`
14486
14487
14488 Score float64 `json:"score,omitempty"`
14489
14490
14491
14492
14493
14494 ForceSendFields []string `json:"-"`
14495
14496
14497
14498
14499 NullFields []string `json:"-"`
14500 }
14501
14502 func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
14503 type NoMethod GoogleCloudDialogflowV2Sentiment
14504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14505 }
14506
14507 func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
14508 type NoMethod GoogleCloudDialogflowV2Sentiment
14509 var s1 struct {
14510 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
14511 Score gensupport.JSONFloat64 `json:"score"`
14512 *NoMethod
14513 }
14514 s1.NoMethod = (*NoMethod)(s)
14515 if err := json.Unmarshal(data, &s1); err != nil {
14516 return err
14517 }
14518 s.Magnitude = float64(s1.Magnitude)
14519 s.Score = float64(s1.Score)
14520 return nil
14521 }
14522
14523
14524
14525
14526
14527
14528
14529
14530
14531
14532 type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
14533
14534 QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
14535
14536
14537
14538
14539
14540 ForceSendFields []string `json:"-"`
14541
14542
14543
14544
14545 NullFields []string `json:"-"`
14546 }
14547
14548 func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
14549 type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
14550 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14551 }
14552
14553
14554
14555
14556
14557
14558
14559
14560
14561 type GoogleCloudDialogflowV2SessionEntityType struct {
14562
14563
14564 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
14565
14566
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
14582
14583
14584
14585
14586
14587
14588
14589 Name string `json:"name,omitempty"`
14590
14591
14592
14593
14594
14595 ForceSendFields []string `json:"-"`
14596
14597
14598
14599
14600 NullFields []string `json:"-"`
14601 }
14602
14603 func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
14604 type NoMethod GoogleCloudDialogflowV2SessionEntityType
14605 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14606 }
14607
14608
14609
14610 type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
14611
14612
14613 ConversationProfile string `json:"conversationProfile,omitempty"`
14614
14615
14616 CreateTime string `json:"createTime,omitempty"`
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627 ParticipantRole string `json:"participantRole,omitempty"`
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
14639
14640
14641
14642
14643
14644 ForceSendFields []string `json:"-"`
14645
14646
14647
14648
14649 NullFields []string `json:"-"`
14650 }
14651
14652 func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
14653 type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
14654 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14655 }
14656
14657
14658 type GoogleCloudDialogflowV2SmartReplyAnswer struct {
14659
14660
14661 AnswerRecord string `json:"answerRecord,omitempty"`
14662
14663
14664
14665 Confidence float64 `json:"confidence,omitempty"`
14666
14667 Reply string `json:"reply,omitempty"`
14668
14669
14670
14671
14672
14673 ForceSendFields []string `json:"-"`
14674
14675
14676
14677
14678 NullFields []string `json:"-"`
14679 }
14680
14681 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
14682 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
14683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14684 }
14685
14686 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
14687 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
14688 var s1 struct {
14689 Confidence gensupport.JSONFloat64 `json:"confidence"`
14690 *NoMethod
14691 }
14692 s1.NoMethod = (*NoMethod)(s)
14693 if err := json.Unmarshal(data, &s1); err != nil {
14694 return err
14695 }
14696 s.Confidence = float64(s1.Confidence)
14697 return nil
14698 }
14699
14700
14701
14702 type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
14703
14704
14705
14706
14707
14708
14709
14710
14711 TrainingModelType string `json:"trainingModelType,omitempty"`
14712
14713
14714
14715
14716
14717 ForceSendFields []string `json:"-"`
14718
14719
14720
14721
14722 NullFields []string `json:"-"`
14723 }
14724
14725 func (s *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
14726 type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
14727 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14728 }
14729
14730
14731
14732 type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
14733
14734 ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
14735
14736
14737
14738
14739 ContextSize int64 `json:"contextSize,omitempty"`
14740
14741
14742 LatestMessage string `json:"latestMessage,omitempty"`
14743
14744
14745
14746
14747
14748 ForceSendFields []string `json:"-"`
14749
14750
14751
14752
14753 NullFields []string `json:"-"`
14754 }
14755
14756 func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
14757 type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
14758 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14759 }
14760
14761
14762
14763 type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
14764
14765
14766
14767
14768 ContextSize int64 `json:"contextSize,omitempty"`
14769
14770 FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
14771
14772
14773 LatestMessage string `json:"latestMessage,omitempty"`
14774
14775
14776
14777
14778
14779 ForceSendFields []string `json:"-"`
14780
14781
14782
14783
14784 NullFields []string `json:"-"`
14785 }
14786
14787 func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
14788 type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
14789 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14790 }
14791
14792
14793
14794 type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
14795
14796
14797
14798
14799 ContextSize int64 `json:"contextSize,omitempty"`
14800
14801
14802 LatestMessage string `json:"latestMessage,omitempty"`
14803
14804
14805
14806 SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
14807
14808
14809
14810
14811
14812 ForceSendFields []string `json:"-"`
14813
14814
14815
14816
14817 NullFields []string `json:"-"`
14818 }
14819
14820 func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
14821 type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
14822 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14823 }
14824
14825
14826
14827
14828
14829 type GoogleCloudDialogflowV2SuggestionResult struct {
14830
14831 Error *GoogleRpcStatus `json:"error,omitempty"`
14832
14833
14834 SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
14835
14836
14837 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
14838
14839
14840 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
14841
14842
14843
14844
14845
14846 ForceSendFields []string `json:"-"`
14847
14848
14849
14850
14851 NullFields []string `json:"-"`
14852 }
14853
14854 func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
14855 type NoMethod GoogleCloudDialogflowV2SuggestionResult
14856 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14857 }
14858
14859
14860
14861 type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
14862
14863
14864 ConversationModel string `json:"conversationModel,omitempty"`
14865
14866
14867 CreateTime string `json:"createTime,omitempty"`
14868
14869
14870
14871
14872
14873 ForceSendFields []string `json:"-"`
14874
14875
14876
14877
14878 NullFields []string `json:"-"`
14879 }
14880
14881 func (s *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
14882 type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
14883 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14884 }
14885
14886
14887
14888 type GoogleCloudDialogflowV2WebhookRequest struct {
14889
14890
14891 OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
14892
14893
14894 QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
14895
14896
14897 ResponseId string `json:"responseId,omitempty"`
14898
14899
14900
14901
14902 Session string `json:"session,omitempty"`
14903
14904
14905
14906
14907
14908 ForceSendFields []string `json:"-"`
14909
14910
14911
14912
14913 NullFields []string `json:"-"`
14914 }
14915
14916 func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
14917 type NoMethod GoogleCloudDialogflowV2WebhookRequest
14918 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14919 }
14920
14921
14922
14923
14924
14925
14926
14927
14928
14929 type GoogleCloudDialogflowV2WebhookResponse struct {
14930
14931
14932
14933 FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
14934
14935
14936
14937 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
14938
14939
14940
14941
14942 FulfillmentText string `json:"fulfillmentText,omitempty"`
14943
14944
14945
14946
14947 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
14948
14949
14950
14951
14952
14953
14954
14955
14956
14957 Payload googleapi.RawMessage `json:"payload,omitempty"`
14958
14959
14960
14961
14962
14963 SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
14964
14965
14966
14967
14968 Source string `json:"source,omitempty"`
14969
14970
14971
14972
14973
14974 ForceSendFields []string `json:"-"`
14975
14976
14977
14978
14979 NullFields []string `json:"-"`
14980 }
14981
14982 func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
14983 type NoMethod GoogleCloudDialogflowV2WebhookResponse
14984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14985 }
14986
14987
14988
14989
14990 type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
14991
14992
14993
14994
14995 EntityType string `json:"entityType,omitempty"`
14996
14997
14998
14999
15000 FormattedValue interface{} `json:"formattedValue,omitempty"`
15001
15002 Text string `json:"text,omitempty"`
15003
15004
15005
15006
15007
15008 ForceSendFields []string `json:"-"`
15009
15010
15011
15012
15013 NullFields []string `json:"-"`
15014 }
15015
15016 func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
15017 type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
15018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15019 }
15020
15021
15022 type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
15023
15024
15025 AnswerRecord string `json:"answerRecord,omitempty"`
15026
15027
15028 Metadata map[string]string `json:"metadata,omitempty"`
15029
15030 Snippets []string `json:"snippets,omitempty"`
15031
15032 Title string `json:"title,omitempty"`
15033
15034 Uri string `json:"uri,omitempty"`
15035
15036
15037
15038
15039
15040 ForceSendFields []string `json:"-"`
15041
15042
15043
15044
15045 NullFields []string `json:"-"`
15046 }
15047
15048 func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
15049 type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
15050 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15051 }
15052
15053
15054
15055 type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
15056
15057 EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
15058
15059
15060
15061
15062
15063 ForceSendFields []string `json:"-"`
15064
15065
15066
15067
15068 NullFields []string `json:"-"`
15069 }
15070
15071 func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
15072 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
15073 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15074 }
15075
15076
15077
15078 type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
15079
15080 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
15081
15082
15083
15084
15085
15086 ForceSendFields []string `json:"-"`
15087
15088
15089
15090
15091 NullFields []string `json:"-"`
15092 }
15093
15094 func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
15095 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
15096 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15097 }
15098
15099
15100
15101 type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
15102
15103
15104 ConversationProfile string `json:"conversationProfile,omitempty"`
15105
15106
15107 CreateTime string `json:"createTime,omitempty"`
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118 ParticipantRole string `json:"participantRole,omitempty"`
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
15134
15135
15136
15137
15138
15139 ForceSendFields []string `json:"-"`
15140
15141
15142
15143
15144 NullFields []string `json:"-"`
15145 }
15146
15147 func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
15148 type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
15149 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15150 }
15151
15152
15153
15154
15155
15156
15157
15158
15159
15160
15161
15162
15163
15164
15165 type GoogleCloudDialogflowV2beta1Context struct {
15166
15167
15168
15169
15170 LifespanCount int64 `json:"lifespanCount,omitempty"`
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183 Name string `json:"name,omitempty"`
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15195
15196
15197
15198
15199
15200 ForceSendFields []string `json:"-"`
15201
15202
15203
15204
15205 NullFields []string `json:"-"`
15206 }
15207
15208 func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
15209 type NoMethod GoogleCloudDialogflowV2beta1Context
15210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15211 }
15212
15213
15214
15215 type GoogleCloudDialogflowV2beta1ConversationEvent struct {
15216
15217
15218 Conversation string `json:"conversation,omitempty"`
15219
15220
15221 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
15222
15223 NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234
15235
15236
15237
15238
15239
15240
15241
15242
15243
15244 Type string `json:"type,omitempty"`
15245
15246
15247
15248
15249
15250 ForceSendFields []string `json:"-"`
15251
15252
15253
15254
15255 NullFields []string `json:"-"`
15256 }
15257
15258 func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
15259 type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
15260 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15261 }
15262
15263
15264
15265 type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
15266
15267
15268 AnswerRecord string `json:"answerRecord,omitempty"`
15269
15270 IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
15271
15272 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
15273
15274
15275
15276
15277
15278 ForceSendFields []string `json:"-"`
15279
15280
15281
15282
15283 NullFields []string `json:"-"`
15284 }
15285
15286 func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
15287 type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
15288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15289 }
15290
15291
15292
15293
15294
15295
15296
15297
15298
15299
15300
15301 type GoogleCloudDialogflowV2beta1EntityType struct {
15302
15303
15304
15305
15306
15307
15308
15309
15310 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
15311
15312 DisplayName string `json:"displayName,omitempty"`
15313
15314
15315 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
15316
15317
15318 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
15319
15320
15321
15322
15323
15324
15325
15326
15327
15328
15329
15330 Kind string `json:"kind,omitempty"`
15331
15332
15333
15334
15335 Name string `json:"name,omitempty"`
15336
15337
15338
15339
15340
15341 ForceSendFields []string `json:"-"`
15342
15343
15344
15345
15346 NullFields []string `json:"-"`
15347 }
15348
15349 func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
15350 type NoMethod GoogleCloudDialogflowV2beta1EntityType
15351 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15352 }
15353
15354
15355
15356 type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
15357
15358
15359
15360
15361 Synonyms []string `json:"synonyms,omitempty"`
15362
15363
15364
15365
15366
15367 Value string `json:"value,omitempty"`
15368
15369
15370
15371
15372
15373 ForceSendFields []string `json:"-"`
15374
15375
15376
15377
15378 NullFields []string `json:"-"`
15379 }
15380
15381 func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
15382 type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
15383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15384 }
15385
15386
15387
15388
15389
15390
15391 type GoogleCloudDialogflowV2beta1EventInput struct {
15392
15393
15394
15395
15396
15397
15398
15399 LanguageCode string `json:"languageCode,omitempty"`
15400
15401 Name string `json:"name,omitempty"`
15402
15403
15404
15405
15406
15407
15408
15409
15410
15411
15412 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15413
15414
15415
15416
15417
15418 ForceSendFields []string `json:"-"`
15419
15420
15421
15422
15423 NullFields []string `json:"-"`
15424 }
15425
15426 func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
15427 type NoMethod GoogleCloudDialogflowV2beta1EventInput
15428 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15429 }
15430
15431
15432
15433 type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
15434
15435 AgentContent string `json:"agentContent,omitempty"`
15436
15437
15438 AgentUri string `json:"agentUri,omitempty"`
15439
15440
15441
15442
15443
15444 ForceSendFields []string `json:"-"`
15445
15446
15447
15448
15449 NullFields []string `json:"-"`
15450 }
15451
15452 func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
15453 type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
15454 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15455 }
15456
15457
15458
15459 type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
15460
15461 ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
15462
15463
15464
15465
15466
15467 ForceSendFields []string `json:"-"`
15468
15469
15470
15471
15472 NullFields []string `json:"-"`
15473 }
15474
15475 func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
15476 type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
15477 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15478 }
15479
15480
15481
15482 type GoogleCloudDialogflowV2beta1FaqAnswer struct {
15483
15484 Answer string `json:"answer,omitempty"`
15485
15486
15487 AnswerRecord string `json:"answerRecord,omitempty"`
15488
15489
15490
15491 Confidence float64 `json:"confidence,omitempty"`
15492
15493
15494 Metadata map[string]string `json:"metadata,omitempty"`
15495
15496 Question string `json:"question,omitempty"`
15497
15498
15499 Source string `json:"source,omitempty"`
15500
15501
15502
15503
15504
15505 ForceSendFields []string `json:"-"`
15506
15507
15508
15509
15510 NullFields []string `json:"-"`
15511 }
15512
15513 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
15514 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
15515 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15516 }
15517
15518 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
15519 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
15520 var s1 struct {
15521 Confidence gensupport.JSONFloat64 `json:"confidence"`
15522 *NoMethod
15523 }
15524 s1.NoMethod = (*NoMethod)(s)
15525 if err := json.Unmarshal(data, &s1); err != nil {
15526 return err
15527 }
15528 s.Confidence = float64(s1.Confidence)
15529 return nil
15530 }
15531
15532
15533
15534 type GoogleCloudDialogflowV2beta1GcsDestination struct {
15535
15536
15537
15538
15539 Uri string `json:"uri,omitempty"`
15540
15541
15542
15543
15544
15545 ForceSendFields []string `json:"-"`
15546
15547
15548
15549
15550 NullFields []string `json:"-"`
15551 }
15552
15553 func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
15554 type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
15555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15556 }
15557
15558
15559
15560
15561 type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
15562
15563
15564 Conversation string `json:"conversation,omitempty"`
15565
15566
15567
15568
15569 Participant string `json:"participant,omitempty"`
15570
15571
15572
15573
15574 SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
15575
15576
15577
15578
15579
15580 ForceSendFields []string `json:"-"`
15581
15582
15583
15584
15585 NullFields []string `json:"-"`
15586 }
15587
15588 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
15589 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
15590 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15591 }
15592
15593
15594
15595 type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
15596
15597 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
15598
15599
15600
15601
15602
15603 ForceSendFields []string `json:"-"`
15604
15605
15606
15607
15608 NullFields []string `json:"-"`
15609 }
15610
15611 func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
15612 type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
15613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15614 }
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624 type GoogleCloudDialogflowV2beta1Intent struct {
15625
15626
15627 Action string `json:"action,omitempty"`
15628
15629
15630
15631
15632
15633
15634
15635
15636
15637
15638
15639
15640
15641
15642
15643
15644
15645
15646 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
15647
15648 DisplayName string `json:"displayName,omitempty"`
15649
15650
15651
15652 EndInteraction bool `json:"endInteraction,omitempty"`
15653
15654
15655
15656
15657 Events []string `json:"events,omitempty"`
15658
15659
15660
15661 FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
15662
15663
15664
15665 InputContextNames []string `json:"inputContextNames,omitempty"`
15666
15667 IsFallback bool `json:"isFallback,omitempty"`
15668
15669
15670
15671
15672 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
15673
15674
15675 Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
15676
15677
15678
15679
15680 MlDisabled bool `json:"mlDisabled,omitempty"`
15681
15682
15683
15684
15685
15686
15687
15688
15689
15690 MlEnabled bool `json:"mlEnabled,omitempty"`
15691
15692
15693
15694
15695 Name string `json:"name,omitempty"`
15696
15697
15698
15699
15700
15701 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
15702
15703
15704 Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
15705
15706
15707
15708
15709
15710 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
15711
15712
15713
15714
15715
15716 Priority int64 `json:"priority,omitempty"`
15717
15718
15719 ResetContexts bool `json:"resetContexts,omitempty"`
15720
15721
15722
15723 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
15724
15725
15726 TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737
15738 WebhookState string `json:"webhookState,omitempty"`
15739
15740
15741
15742
15743
15744 ForceSendFields []string `json:"-"`
15745
15746
15747
15748
15749 NullFields []string `json:"-"`
15750 }
15751
15752 func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
15753 type NoMethod GoogleCloudDialogflowV2beta1Intent
15754 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15755 }
15756
15757
15758
15759 type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
15760
15761
15762 FollowupIntentName string `json:"followupIntentName,omitempty"`
15763
15764
15765 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
15766
15767
15768
15769
15770
15771 ForceSendFields []string `json:"-"`
15772
15773
15774
15775
15776 NullFields []string `json:"-"`
15777 }
15778
15779 func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
15780 type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
15781 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15782 }
15783
15784
15785
15786 type GoogleCloudDialogflowV2beta1IntentMessage struct {
15787
15788 BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
15789
15790 BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
15791
15792 Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
15793
15794 CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
15795
15796 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
15797
15798
15799 LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
15800
15801 ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
15802
15803 MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
15804
15805 Payload googleapi.RawMessage `json:"payload,omitempty"`
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822 Platform string `json:"platform,omitempty"`
15823
15824 QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
15825
15826
15827 RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
15828
15829
15830 RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
15831
15832
15833
15834 RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
15835
15836
15837 SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
15838
15839 Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
15840
15841 TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
15842
15843 TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
15844
15845 TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
15846
15847 TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
15848
15849 Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
15850
15851
15852
15853
15854
15855 ForceSendFields []string `json:"-"`
15856
15857
15858
15859
15860 NullFields []string `json:"-"`
15861 }
15862
15863 func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
15864 type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
15865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15866 }
15867
15868
15869
15870 type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
15871
15872 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
15873
15874 FormattedText string `json:"formattedText,omitempty"`
15875
15876 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
15877
15878 Subtitle string `json:"subtitle,omitempty"`
15879
15880 Title string `json:"title,omitempty"`
15881
15882
15883
15884
15885
15886 ForceSendFields []string `json:"-"`
15887
15888
15889
15890
15891 NullFields []string `json:"-"`
15892 }
15893
15894 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
15895 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
15896 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15897 }
15898
15899
15900
15901 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
15902
15903 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
15904
15905 Title string `json:"title,omitempty"`
15906
15907
15908
15909
15910
15911 ForceSendFields []string `json:"-"`
15912
15913
15914
15915
15916 NullFields []string `json:"-"`
15917 }
15918
15919 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
15920 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
15921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15922 }
15923
15924
15925
15926 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
15927
15928 Uri string `json:"uri,omitempty"`
15929
15930
15931
15932
15933
15934 ForceSendFields []string `json:"-"`
15935
15936
15937
15938
15939 NullFields []string `json:"-"`
15940 }
15941
15942 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
15943 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
15944 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15945 }
15946
15947
15948
15949
15950 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
15970
15971
15972 Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
15973
15974
15975
15976
15977
15978 ForceSendFields []string `json:"-"`
15979
15980
15981
15982
15983 NullFields []string `json:"-"`
15984 }
15985
15986 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
15987 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
15988 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15989 }
15990
15991
15992
15993 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
15994
15995
15996 Description string `json:"description,omitempty"`
15997
15998
15999 Footer string `json:"footer,omitempty"`
16000
16001 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16002
16003 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
16004
16005 Title string `json:"title,omitempty"`
16006
16007
16008
16009
16010
16011 ForceSendFields []string `json:"-"`
16012
16013
16014
16015
16016 NullFields []string `json:"-"`
16017 }
16018
16019 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
16020 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
16021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16022 }
16023
16024
16025
16026 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
16027
16028 Url string `json:"url,omitempty"`
16029
16030
16031
16032
16033
16034
16035
16036
16037 UrlTypeHint string `json:"urlTypeHint,omitempty"`
16038
16039
16040
16041
16042
16043 ForceSendFields []string `json:"-"`
16044
16045
16046
16047
16048 NullFields []string `json:"-"`
16049 }
16050
16051 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
16052 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
16053 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16054 }
16055
16056
16057 type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
16058
16059 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
16060
16061 ImageUri string `json:"imageUri,omitempty"`
16062
16063 Subtitle string `json:"subtitle,omitempty"`
16064
16065 Title string `json:"title,omitempty"`
16066
16067
16068
16069
16070
16071 ForceSendFields []string `json:"-"`
16072
16073
16074
16075
16076 NullFields []string `json:"-"`
16077 }
16078
16079 func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
16080 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
16081 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16082 }
16083
16084
16085
16086 type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
16087
16088
16089 Postback string `json:"postback,omitempty"`
16090
16091 Text string `json:"text,omitempty"`
16092
16093
16094
16095
16096
16097 ForceSendFields []string `json:"-"`
16098
16099
16100
16101
16102 NullFields []string `json:"-"`
16103 }
16104
16105 func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
16106 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
16107 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16108 }
16109
16110
16111
16112 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
16113
16114 Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
16115
16116
16117
16118
16119
16120 ForceSendFields []string `json:"-"`
16121
16122
16123
16124
16125 NullFields []string `json:"-"`
16126 }
16127
16128 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
16129 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
16130 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16131 }
16132
16133
16134
16135 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
16136
16137 Description string `json:"description,omitempty"`
16138
16139 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16140
16141 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
16142
16143 Title string `json:"title,omitempty"`
16144
16145
16146
16147
16148
16149 ForceSendFields []string `json:"-"`
16150
16151
16152
16153
16154 NullFields []string `json:"-"`
16155 }
16156
16157 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
16158 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
16159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16160 }
16161
16162
16163
16164 type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
16165
16166 Header string `json:"header,omitempty"`
16167
16168
16169
16170
16171
16172
16173
16174
16175
16176 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
16177
16178
16179
16180
16181
16182 ForceSendFields []string `json:"-"`
16183
16184
16185
16186
16187 NullFields []string `json:"-"`
16188 }
16189
16190 func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
16191 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
16192 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16193 }
16194
16195
16196 type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
16197
16198
16199
16200 AccessibilityText string `json:"accessibilityText,omitempty"`
16201
16202 ImageUri string `json:"imageUri,omitempty"`
16203
16204
16205
16206
16207
16208 ForceSendFields []string `json:"-"`
16209
16210
16211
16212
16213 NullFields []string `json:"-"`
16214 }
16215
16216 func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
16217 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
16218 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16219 }
16220
16221
16222
16223
16224 type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
16225
16226
16227 DestinationName string `json:"destinationName,omitempty"`
16228
16229
16230 Uri string `json:"uri,omitempty"`
16231
16232
16233
16234
16235
16236 ForceSendFields []string `json:"-"`
16237
16238
16239
16240
16241 NullFields []string `json:"-"`
16242 }
16243
16244 func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
16245 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
16246 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16247 }
16248
16249
16250
16251 type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
16252
16253 Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
16254
16255 Subtitle string `json:"subtitle,omitempty"`
16256
16257 Title string `json:"title,omitempty"`
16258
16259
16260
16261
16262
16263 ForceSendFields []string `json:"-"`
16264
16265
16266
16267
16268 NullFields []string `json:"-"`
16269 }
16270
16271 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
16272 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
16273 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16274 }
16275
16276
16277
16278 type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
16279
16280 Description string `json:"description,omitempty"`
16281
16282 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16283
16284 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
16285
16286 Title string `json:"title,omitempty"`
16287
16288
16289
16290
16291
16292 ForceSendFields []string `json:"-"`
16293
16294
16295
16296
16297 NullFields []string `json:"-"`
16298 }
16299
16300 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
16301 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
16302 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16303 }
16304
16305
16306
16307 type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
16308
16309 MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
16310
16311
16312
16313
16314
16315 MediaType string `json:"mediaType,omitempty"`
16316
16317
16318
16319
16320
16321 ForceSendFields []string `json:"-"`
16322
16323
16324
16325
16326 NullFields []string `json:"-"`
16327 }
16328
16329 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
16330 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
16331 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16332 }
16333
16334
16335
16336 type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
16337
16338 ContentUrl string `json:"contentUrl,omitempty"`
16339
16340 Description string `json:"description,omitempty"`
16341
16342 Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
16343
16344 LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
16345
16346 Name string `json:"name,omitempty"`
16347
16348
16349
16350
16351
16352 ForceSendFields []string `json:"-"`
16353
16354
16355
16356
16357 NullFields []string `json:"-"`
16358 }
16359
16360 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
16361 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
16362 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16363 }
16364
16365
16366
16367 type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
16368
16369 QuickReplies []string `json:"quickReplies,omitempty"`
16370
16371 Title string `json:"title,omitempty"`
16372
16373
16374
16375
16376
16377 ForceSendFields []string `json:"-"`
16378
16379
16380
16381
16382 NullFields []string `json:"-"`
16383 }
16384
16385 func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
16386 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
16387 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16388 }
16389
16390
16391
16392 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
16393
16394
16395 Description string `json:"description,omitempty"`
16396
16397
16398 Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
16399
16400 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
16401
16402
16403 Title string `json:"title,omitempty"`
16404
16405
16406
16407
16408
16409 ForceSendFields []string `json:"-"`
16410
16411
16412
16413
16414 NullFields []string `json:"-"`
16415 }
16416
16417 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
16418 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
16419 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16420 }
16421
16422
16423
16424
16425
16426
16427 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
16428
16429
16430
16431
16432 FileUri string `json:"fileUri,omitempty"`
16433
16434
16435
16436
16437
16438
16439
16440
16441
16442
16443 Height string `json:"height,omitempty"`
16444
16445
16446
16447
16448
16449 ThumbnailUri string `json:"thumbnailUri,omitempty"`
16450
16451
16452
16453
16454
16455 ForceSendFields []string `json:"-"`
16456
16457
16458
16459
16460 NullFields []string `json:"-"`
16461 }
16462
16463 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
16464 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
16465 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16466 }
16467
16468
16469
16470
16471
16472
16473 type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
16474
16475
16476 CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
16477
16478
16479
16480
16481
16482
16483 CardWidth string `json:"cardWidth,omitempty"`
16484
16485
16486
16487
16488
16489 ForceSendFields []string `json:"-"`
16490
16491
16492
16493
16494 NullFields []string `json:"-"`
16495 }
16496
16497 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
16498 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
16499 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16500 }
16501
16502
16503
16504
16505
16506
16507 type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
16508
16509 CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
16510
16511
16512
16513
16514
16515
16516 CardOrientation string `json:"cardOrientation,omitempty"`
16517
16518
16519
16520
16521
16522
16523
16524 ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
16525
16526
16527
16528
16529
16530 ForceSendFields []string `json:"-"`
16531
16532
16533
16534
16535 NullFields []string `json:"-"`
16536 }
16537
16538 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
16539 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
16540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16541 }
16542
16543
16544
16545
16546 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
16547
16548 Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
16549
16550 OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
16551
16552
16553
16554 PostbackData string `json:"postbackData,omitempty"`
16555
16556 ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
16557
16558 Text string `json:"text,omitempty"`
16559
16560
16561
16562
16563
16564 ForceSendFields []string `json:"-"`
16565
16566
16567
16568
16569 NullFields []string `json:"-"`
16570 }
16571
16572 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
16573 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
16574 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16575 }
16576
16577
16578
16579
16580 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
16581
16582
16583
16584 PhoneNumber string `json:"phoneNumber,omitempty"`
16585
16586
16587
16588
16589
16590 ForceSendFields []string `json:"-"`
16591
16592
16593
16594
16595 NullFields []string `json:"-"`
16596 }
16597
16598 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
16599 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
16600 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16601 }
16602
16603
16604
16605
16606
16607
16608 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
16609
16610 Uri string `json:"uri,omitempty"`
16611
16612
16613
16614
16615
16616 ForceSendFields []string `json:"-"`
16617
16618
16619
16620
16621 NullFields []string `json:"-"`
16622 }
16623
16624 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
16625 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
16626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16627 }
16628
16629
16630
16631
16632 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
16633 }
16634
16635
16636
16637
16638 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
16639
16640
16641
16642 PostbackData string `json:"postbackData,omitempty"`
16643
16644 Text string `json:"text,omitempty"`
16645
16646
16647
16648
16649
16650 ForceSendFields []string `json:"-"`
16651
16652
16653
16654
16655 NullFields []string `json:"-"`
16656 }
16657
16658 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
16659 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
16660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16661 }
16662
16663
16664
16665
16666 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
16667
16668 Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
16669
16670 Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
16671
16672
16673
16674
16675
16676 ForceSendFields []string `json:"-"`
16677
16678
16679
16680
16681 NullFields []string `json:"-"`
16682 }
16683
16684 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
16685 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
16686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16687 }
16688
16689
16690
16691 type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
16692
16693 RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
16694
16695 Text string `json:"text,omitempty"`
16696
16697
16698
16699
16700
16701 ForceSendFields []string `json:"-"`
16702
16703
16704
16705
16706 NullFields []string `json:"-"`
16707 }
16708
16709 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
16710 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
16711 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16712 }
16713
16714
16715
16716 type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
16717
16718
16719 Key string `json:"key,omitempty"`
16720
16721
16722 Synonyms []string `json:"synonyms,omitempty"`
16723
16724
16725
16726
16727
16728 ForceSendFields []string `json:"-"`
16729
16730
16731
16732
16733 NullFields []string `json:"-"`
16734 }
16735
16736 func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
16737 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
16738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16739 }
16740
16741
16742
16743 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
16744
16745 DisplayText string `json:"displayText,omitempty"`
16746
16747
16748
16749 Ssml string `json:"ssml,omitempty"`
16750
16751
16752 TextToSpeech string `json:"textToSpeech,omitempty"`
16753
16754
16755
16756
16757
16758 ForceSendFields []string `json:"-"`
16759
16760
16761
16762
16763 NullFields []string `json:"-"`
16764 }
16765
16766 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
16767 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
16768 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16769 }
16770
16771
16772
16773
16774
16775
16776 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
16777
16778 SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
16779
16780
16781
16782
16783
16784 ForceSendFields []string `json:"-"`
16785
16786
16787
16788
16789 NullFields []string `json:"-"`
16790 }
16791
16792 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
16793 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
16794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16795 }
16796
16797
16798
16799 type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
16800
16801 Title string `json:"title,omitempty"`
16802
16803
16804
16805
16806
16807 ForceSendFields []string `json:"-"`
16808
16809
16810
16811
16812 NullFields []string `json:"-"`
16813 }
16814
16815 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
16816 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
16817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16818 }
16819
16820
16821
16822 type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
16823
16824 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
16825
16826
16827
16828
16829
16830 ForceSendFields []string `json:"-"`
16831
16832
16833
16834
16835 NullFields []string `json:"-"`
16836 }
16837
16838 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
16839 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
16840 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16841 }
16842
16843
16844
16845 type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
16846
16847 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
16848
16849
16850 ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
16851
16852 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16853
16854 Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
16855
16856 Subtitle string `json:"subtitle,omitempty"`
16857
16858 Title string `json:"title,omitempty"`
16859
16860
16861
16862
16863
16864 ForceSendFields []string `json:"-"`
16865
16866
16867
16868
16869 NullFields []string `json:"-"`
16870 }
16871
16872 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
16873 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
16874 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16875 }
16876
16877
16878
16879 type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
16880
16881 Text string `json:"text,omitempty"`
16882
16883
16884
16885
16886
16887 ForceSendFields []string `json:"-"`
16888
16889
16890
16891
16892 NullFields []string `json:"-"`
16893 }
16894
16895 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
16896 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
16897 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16898 }
16899
16900
16901 type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
16902
16903 Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
16904
16905 DividerAfter bool `json:"dividerAfter,omitempty"`
16906
16907
16908
16909
16910
16911 ForceSendFields []string `json:"-"`
16912
16913
16914
16915
16916 NullFields []string `json:"-"`
16917 }
16918
16919 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
16920 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
16921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16922 }
16923
16924
16925
16926 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
16927
16928
16929
16930
16931
16932
16933
16934
16935
16936 AudioUri string `json:"audioUri,omitempty"`
16937
16938
16939
16940
16941
16942 ForceSendFields []string `json:"-"`
16943
16944
16945
16946
16947 NullFields []string `json:"-"`
16948 }
16949
16950 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
16951 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
16952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16953 }
16954
16955
16956
16957
16958
16959
16960 type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
16961
16962
16963 Ssml string `json:"ssml,omitempty"`
16964
16965 Text string `json:"text,omitempty"`
16966
16967
16968
16969
16970
16971 ForceSendFields []string `json:"-"`
16972
16973
16974
16975
16976 NullFields []string `json:"-"`
16977 }
16978
16979 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
16980 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
16981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16982 }
16983
16984
16985
16986 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
16987
16988
16989
16990 PhoneNumber string `json:"phoneNumber,omitempty"`
16991
16992
16993
16994
16995
16996 ForceSendFields []string `json:"-"`
16997
16998
16999
17000
17001 NullFields []string `json:"-"`
17002 }
17003
17004 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
17005 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
17006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17007 }
17008
17009
17010 type GoogleCloudDialogflowV2beta1IntentMessageText struct {
17011
17012 Text []string `json:"text,omitempty"`
17013
17014
17015
17016
17017
17018 ForceSendFields []string `json:"-"`
17019
17020
17021
17022
17023 NullFields []string `json:"-"`
17024 }
17025
17026 func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
17027 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
17028 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17029 }
17030
17031
17032 type GoogleCloudDialogflowV2beta1IntentParameter struct {
17033
17034
17035
17036 DefaultValue string `json:"defaultValue,omitempty"`
17037
17038 DisplayName string `json:"displayName,omitempty"`
17039
17040
17041
17042 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
17043
17044
17045 IsList bool `json:"isList,omitempty"`
17046
17047
17048
17049 Mandatory bool `json:"mandatory,omitempty"`
17050
17051 Name string `json:"name,omitempty"`
17052
17053
17054 Prompts []string `json:"prompts,omitempty"`
17055
17056
17057
17058
17059 Value string `json:"value,omitempty"`
17060
17061
17062
17063
17064
17065 ForceSendFields []string `json:"-"`
17066
17067
17068
17069
17070 NullFields []string `json:"-"`
17071 }
17072
17073 func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
17074 type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
17075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17076 }
17077
17078
17079
17080 type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
17081
17082
17083
17084 Description string `json:"description,omitempty"`
17085
17086 DisplayName string `json:"displayName,omitempty"`
17087
17088
17089 IntentV2 string `json:"intentV2,omitempty"`
17090
17091
17092
17093
17094
17095 ForceSendFields []string `json:"-"`
17096
17097
17098
17099
17100 NullFields []string `json:"-"`
17101 }
17102
17103 func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
17104 type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
17105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17106 }
17107
17108
17109
17110 type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
17111
17112 Name string `json:"name,omitempty"`
17113
17114
17115
17116
17117
17118
17119
17120
17121
17122
17123
17124
17125 Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
17126
17127
17128
17129 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
17130
17131
17132
17133
17134
17135
17136
17137
17138
17139
17140
17141
17142 Type string `json:"type,omitempty"`
17143
17144
17145
17146
17147
17148 ForceSendFields []string `json:"-"`
17149
17150
17151
17152
17153 NullFields []string `json:"-"`
17154 }
17155
17156 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
17157 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
17158 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17159 }
17160
17161
17162
17163 type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
17164
17165
17166
17167 Alias string `json:"alias,omitempty"`
17168
17169
17170 EntityType string `json:"entityType,omitempty"`
17171
17172 Text string `json:"text,omitempty"`
17173
17174
17175
17176
17177 UserDefined bool `json:"userDefined,omitempty"`
17178
17179
17180
17181
17182
17183 ForceSendFields []string `json:"-"`
17184
17185
17186
17187
17188 NullFields []string `json:"-"`
17189 }
17190
17191 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
17192 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
17193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17194 }
17195
17196
17197
17198 type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
17199
17200 Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
17201
17202
17203
17204
17205
17206 ForceSendFields []string `json:"-"`
17207
17208
17209
17210
17211 NullFields []string `json:"-"`
17212 }
17213
17214 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
17215 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
17216 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17217 }
17218
17219
17220
17221 type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
17222
17223
17224 Answer string `json:"answer,omitempty"`
17225
17226
17227 FaqQuestion string `json:"faqQuestion,omitempty"`
17228
17229
17230
17231
17232
17233
17234
17235 MatchConfidence float64 `json:"matchConfidence,omitempty"`
17236
17237
17238
17239
17240
17241
17242
17243
17244
17245
17246
17247
17248 MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
17249
17250
17251 Source string `json:"source,omitempty"`
17252
17253
17254
17255
17256
17257 ForceSendFields []string `json:"-"`
17258
17259
17260
17261
17262 NullFields []string `json:"-"`
17263 }
17264
17265 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
17266 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
17267 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17268 }
17269
17270 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
17271 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
17272 var s1 struct {
17273 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
17274 *NoMethod
17275 }
17276 s1.NoMethod = (*NoMethod)(s)
17277 if err := json.Unmarshal(data, &s1); err != nil {
17278 return err
17279 }
17280 s.MatchConfidence = float64(s1.MatchConfidence)
17281 return nil
17282 }
17283
17284
17285
17286 type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
17287
17288
17289 ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
17290
17291
17292 KnowledgeBase string `json:"knowledgeBase,omitempty"`
17293
17294
17295
17296
17297
17298
17299
17300 State string `json:"state,omitempty"`
17301
17302
17303
17304
17305
17306 ForceSendFields []string `json:"-"`
17307
17308
17309
17310
17311 NullFields []string `json:"-"`
17312 }
17313
17314 func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
17315 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
17316 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17317 }
17318
17319
17320
17321 type GoogleCloudDialogflowV2beta1Message struct {
17322
17323 Content string `json:"content,omitempty"`
17324
17325
17326 CreateTime string `json:"createTime,omitempty"`
17327
17328
17329
17330 LanguageCode string `json:"languageCode,omitempty"`
17331
17332 MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
17333
17334
17335 Name string `json:"name,omitempty"`
17336
17337 Participant string `json:"participant,omitempty"`
17338
17339
17340
17341
17342
17343
17344
17345
17346
17347 ParticipantRole string `json:"participantRole,omitempty"`
17348
17349 SendTime string `json:"sendTime,omitempty"`
17350
17351
17352 SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
17353
17354
17355
17356
17357
17358 ForceSendFields []string `json:"-"`
17359
17360
17361
17362
17363 NullFields []string `json:"-"`
17364 }
17365
17366 func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
17367 type NoMethod GoogleCloudDialogflowV2beta1Message
17368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17369 }
17370
17371
17372
17373 type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
17374
17375
17376 ContainEntities bool `json:"containEntities,omitempty"`
17377
17378
17379
17380 Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
17381
17382
17383
17384
17385
17386 ForceSendFields []string `json:"-"`
17387
17388
17389
17390
17391 NullFields []string `json:"-"`
17392 }
17393
17394 func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
17395 type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
17396 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17397 }
17398
17399
17400
17401
17402 type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
17403
17404
17405
17406
17407
17408
17409
17410
17411 Payload googleapi.RawMessage `json:"payload,omitempty"`
17412
17413
17414 Source string `json:"source,omitempty"`
17415
17416
17417 Version string `json:"version,omitempty"`
17418
17419
17420
17421
17422
17423 ForceSendFields []string `json:"-"`
17424
17425
17426
17427
17428 NullFields []string `json:"-"`
17429 }
17430
17431 func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
17432 type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
17433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17434 }
17435
17436
17437
17438 type GoogleCloudDialogflowV2beta1QueryResult struct {
17439
17440 Action string `json:"action,omitempty"`
17441
17442
17443
17444
17445 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
17446
17447
17448
17449
17450 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
17451
17452
17453
17454
17455 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
17456
17457 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
17458
17459
17460
17461 FulfillmentText string `json:"fulfillmentText,omitempty"`
17462
17463
17464
17465 Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
17466
17467
17468
17469
17470
17471
17472
17473
17474 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
17475
17476
17477 KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
17478
17479
17480
17481
17482 LanguageCode string `json:"languageCode,omitempty"`
17483
17484
17485
17486 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
17487
17488
17489
17490
17491
17492
17493
17494
17495
17496 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
17497
17498
17499
17500
17501
17502
17503 QueryText string `json:"queryText,omitempty"`
17504
17505
17506 SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
17507
17508
17509
17510
17511
17512
17513
17514 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
17515
17516
17517 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
17518
17519
17520 WebhookSource string `json:"webhookSource,omitempty"`
17521
17522
17523
17524
17525
17526 ForceSendFields []string `json:"-"`
17527
17528
17529
17530
17531 NullFields []string `json:"-"`
17532 }
17533
17534 func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
17535 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
17536 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17537 }
17538
17539 func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
17540 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
17541 var s1 struct {
17542 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
17543 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
17544 *NoMethod
17545 }
17546 s1.NoMethod = (*NoMethod)(s)
17547 if err := json.Unmarshal(data, &s1); err != nil {
17548 return err
17549 }
17550 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
17551 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
17552 return nil
17553 }
17554
17555
17556
17557
17558
17559
17560 type GoogleCloudDialogflowV2beta1Sentiment struct {
17561
17562
17563
17564 Magnitude float64 `json:"magnitude,omitempty"`
17565
17566
17567 Score float64 `json:"score,omitempty"`
17568
17569
17570
17571
17572
17573 ForceSendFields []string `json:"-"`
17574
17575
17576
17577
17578 NullFields []string `json:"-"`
17579 }
17580
17581 func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
17582 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17584 }
17585
17586 func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
17587 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17588 var s1 struct {
17589 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
17590 Score gensupport.JSONFloat64 `json:"score"`
17591 *NoMethod
17592 }
17593 s1.NoMethod = (*NoMethod)(s)
17594 if err := json.Unmarshal(data, &s1); err != nil {
17595 return err
17596 }
17597 s.Magnitude = float64(s1.Magnitude)
17598 s.Score = float64(s1.Score)
17599 return nil
17600 }
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611 type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
17612
17613 QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
17614
17615
17616
17617
17618
17619 ForceSendFields []string `json:"-"`
17620
17621
17622
17623
17624 NullFields []string `json:"-"`
17625 }
17626
17627 func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
17628 type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
17629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17630 }
17631
17632
17633
17634
17635
17636
17637
17638
17639
17640 type GoogleCloudDialogflowV2beta1SessionEntityType struct {
17641
17642
17643 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
17644
17645
17646
17647
17648
17649
17650
17651
17652
17653
17654
17655
17656
17657
17658
17659
17660 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
17661
17662
17663
17664
17665
17666
17667
17668
17669
17670
17671 Name string `json:"name,omitempty"`
17672
17673
17674
17675
17676
17677 ForceSendFields []string `json:"-"`
17678
17679
17680
17681
17682 NullFields []string `json:"-"`
17683 }
17684
17685 func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
17686 type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
17687 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17688 }
17689
17690
17691
17692 type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
17693
17694
17695 ConversationProfile string `json:"conversationProfile,omitempty"`
17696
17697
17698 CreateTime string `json:"createTime,omitempty"`
17699
17700
17701
17702
17703
17704
17705
17706
17707
17708
17709 ParticipantRole string `json:"participantRole,omitempty"`
17710
17711
17712
17713
17714
17715
17716
17717
17718
17719
17720
17721
17722
17723
17724 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
17725
17726
17727
17728
17729
17730 ForceSendFields []string `json:"-"`
17731
17732
17733
17734
17735 NullFields []string `json:"-"`
17736 }
17737
17738 func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
17739 type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
17740 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17741 }
17742
17743
17744
17745 type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
17746
17747
17748 AnswerRecord string `json:"answerRecord,omitempty"`
17749
17750
17751
17752 Confidence float64 `json:"confidence,omitempty"`
17753
17754 Reply string `json:"reply,omitempty"`
17755
17756
17757
17758
17759
17760 ForceSendFields []string `json:"-"`
17761
17762
17763
17764
17765 NullFields []string `json:"-"`
17766 }
17767
17768 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
17769 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
17770 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17771 }
17772
17773 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
17774 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
17775 var s1 struct {
17776 Confidence gensupport.JSONFloat64 `json:"confidence"`
17777 *NoMethod
17778 }
17779 s1.NoMethod = (*NoMethod)(s)
17780 if err := json.Unmarshal(data, &s1); err != nil {
17781 return err
17782 }
17783 s.Confidence = float64(s1.Confidence)
17784 return nil
17785 }
17786
17787
17788
17789 type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
17790
17791 ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
17792
17793
17794
17795
17796 ContextSize int64 `json:"contextSize,omitempty"`
17797
17798
17799 LatestMessage string `json:"latestMessage,omitempty"`
17800
17801
17802
17803
17804
17805 ForceSendFields []string `json:"-"`
17806
17807
17808
17809
17810 NullFields []string `json:"-"`
17811 }
17812
17813 func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
17814 type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
17815 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17816 }
17817
17818
17819
17820 type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
17821
17822
17823
17824
17825 ContextSize int64 `json:"contextSize,omitempty"`
17826
17827
17828
17829 DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
17830
17831
17832 LatestMessage string `json:"latestMessage,omitempty"`
17833
17834
17835
17836
17837
17838 ForceSendFields []string `json:"-"`
17839
17840
17841
17842
17843 NullFields []string `json:"-"`
17844 }
17845
17846 func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
17847 type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
17848 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17849 }
17850
17851
17852
17853 type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
17854
17855
17856
17857
17858 ContextSize int64 `json:"contextSize,omitempty"`
17859
17860 FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
17861
17862
17863 LatestMessage string `json:"latestMessage,omitempty"`
17864
17865
17866
17867
17868
17869 ForceSendFields []string `json:"-"`
17870
17871
17872
17873
17874 NullFields []string `json:"-"`
17875 }
17876
17877 func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
17878 type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
17879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17880 }
17881
17882
17883
17884 type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
17885
17886
17887
17888
17889 ContextSize int64 `json:"contextSize,omitempty"`
17890
17891
17892 LatestMessage string `json:"latestMessage,omitempty"`
17893
17894
17895
17896 SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
17897
17898
17899
17900
17901
17902 ForceSendFields []string `json:"-"`
17903
17904
17905
17906
17907 NullFields []string `json:"-"`
17908 }
17909
17910 func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
17911 type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
17912 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17913 }
17914
17915
17916
17917
17918
17919 type GoogleCloudDialogflowV2beta1SuggestionResult struct {
17920
17921 Error *GoogleRpcStatus `json:"error,omitempty"`
17922
17923
17924 SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
17925
17926
17927 SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
17928
17929
17930 SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
17931
17932
17933 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
17934
17935
17936 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
17937
17938
17939
17940
17941
17942 ForceSendFields []string `json:"-"`
17943
17944
17945
17946
17947 NullFields []string `json:"-"`
17948 }
17949
17950 func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
17951 type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
17952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17953 }
17954
17955
17956
17957 type GoogleCloudDialogflowV2beta1WebhookRequest struct {
17958
17959 AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
17960
17961
17962 OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
17963
17964
17965 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
17966
17967
17968 ResponseId string `json:"responseId,omitempty"`
17969
17970
17971
17972
17973
17974 Session string `json:"session,omitempty"`
17975
17976
17977
17978
17979
17980 ForceSendFields []string `json:"-"`
17981
17982
17983
17984
17985 NullFields []string `json:"-"`
17986 }
17987
17988 func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
17989 type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
17990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17991 }
17992
17993
17994
17995
17996
17997
17998
17999
18000
18001 type GoogleCloudDialogflowV2beta1WebhookResponse struct {
18002
18003
18004
18005 EndInteraction bool `json:"endInteraction,omitempty"`
18006
18007
18008
18009 FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
18010
18011
18012
18013 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
18014
18015
18016
18017
18018 FulfillmentText string `json:"fulfillmentText,omitempty"`
18019
18020
18021
18022
18023 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
18024
18025
18026
18027
18028 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
18029
18030
18031
18032
18033
18034
18035
18036
18037
18038 Payload googleapi.RawMessage `json:"payload,omitempty"`
18039
18040
18041
18042
18043
18044 SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
18045
18046
18047
18048
18049 Source string `json:"source,omitempty"`
18050
18051
18052
18053
18054
18055 ForceSendFields []string `json:"-"`
18056
18057
18058
18059
18060 NullFields []string `json:"-"`
18061 }
18062
18063 func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
18064 type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
18065 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18066 }
18067
18068
18069
18070
18071 type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
18072
18073 TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
18074
18075
18076
18077
18078
18079 ForceSendFields []string `json:"-"`
18080
18081
18082
18083
18084 NullFields []string `json:"-"`
18085 }
18086
18087 func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
18088 type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
18089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18090 }
18091
18092
18093
18094 type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
18095
18096 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18097
18098
18099
18100
18101
18102 ForceSendFields []string `json:"-"`
18103
18104
18105
18106
18107 NullFields []string `json:"-"`
18108 }
18109
18110 func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18111 type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
18112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18113 }
18114
18115
18116
18117 type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
18118
18119 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18120
18121
18122
18123
18124
18125 ForceSendFields []string `json:"-"`
18126
18127
18128
18129
18130 NullFields []string `json:"-"`
18131 }
18132
18133 func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18134 type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
18135 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18136 }
18137
18138
18139
18140 type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
18141
18142
18143
18144
18145
18146
18147
18148 State string `json:"state,omitempty"`
18149
18150
18151
18152
18153
18154 ForceSendFields []string `json:"-"`
18155
18156
18157
18158
18159 NullFields []string `json:"-"`
18160 }
18161
18162 func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
18163 type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
18164 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18165 }
18166
18167
18168
18169 type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
18170
18171 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18172
18173
18174
18175
18176
18177 ForceSendFields []string `json:"-"`
18178
18179
18180
18181
18182 NullFields []string `json:"-"`
18183 }
18184
18185 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
18186 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
18187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18188 }
18189
18190
18191
18192 type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
18193
18194 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
18195
18196
18197
18198
18199
18200 ForceSendFields []string `json:"-"`
18201
18202
18203
18204
18205 NullFields []string `json:"-"`
18206 }
18207
18208 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
18209 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
18210 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18211 }
18212
18213
18214
18215 type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
18216
18217 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18218
18219
18220
18221
18222
18223 ForceSendFields []string `json:"-"`
18224
18225
18226
18227
18228 NullFields []string `json:"-"`
18229 }
18230
18231 func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18232 type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
18233 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18234 }
18235
18236
18237
18238 type GoogleCloudDialogflowV3alpha1TurnSignals struct {
18239
18240 AgentEscalated bool `json:"agentEscalated,omitempty"`
18241
18242 DtmfUsed bool `json:"dtmfUsed,omitempty"`
18243
18244
18245
18246
18247
18248
18249 FailureReasons []string `json:"failureReasons,omitempty"`
18250
18251 NoMatch bool `json:"noMatch,omitempty"`
18252
18253 NoUserInput bool `json:"noUserInput,omitempty"`
18254
18255 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
18256
18257
18258 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
18259
18260
18261 SentimentScore float64 `json:"sentimentScore,omitempty"`
18262
18263
18264 TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
18265
18266 UserEscalated bool `json:"userEscalated,omitempty"`
18267
18268
18269 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
18270
18271
18272
18273
18274
18275 ForceSendFields []string `json:"-"`
18276
18277
18278
18279
18280 NullFields []string `json:"-"`
18281 }
18282
18283 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
18284 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18285 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18286 }
18287
18288 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
18289 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18290 var s1 struct {
18291 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
18292 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
18293 *NoMethod
18294 }
18295 s1.NoMethod = (*NoMethod)(s)
18296 if err := json.Unmarshal(data, &s1); err != nil {
18297 return err
18298 }
18299 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
18300 s.SentimentScore = float64(s1.SentimentScore)
18301 return nil
18302 }
18303
18304
18305
18306 type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
18307
18308 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18309
18310
18311
18312
18313
18314 ForceSendFields []string `json:"-"`
18315
18316
18317
18318
18319 NullFields []string `json:"-"`
18320 }
18321
18322 func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18323 type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
18324 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18325 }
18326
18327
18328
18329 type GoogleCloudLocationListLocationsResponse struct {
18330
18331
18332 Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
18333
18334 NextPageToken string `json:"nextPageToken,omitempty"`
18335
18336
18337 googleapi.ServerResponse `json:"-"`
18338
18339
18340
18341
18342
18343 ForceSendFields []string `json:"-"`
18344
18345
18346
18347
18348 NullFields []string `json:"-"`
18349 }
18350
18351 func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
18352 type NoMethod GoogleCloudLocationListLocationsResponse
18353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18354 }
18355
18356
18357
18358 type GoogleCloudLocationLocation struct {
18359
18360
18361 DisplayName string `json:"displayName,omitempty"`
18362
18363
18364 Labels map[string]string `json:"labels,omitempty"`
18365
18366 LocationId string `json:"locationId,omitempty"`
18367
18368
18369 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18370
18371
18372
18373 Name string `json:"name,omitempty"`
18374
18375
18376 googleapi.ServerResponse `json:"-"`
18377
18378
18379
18380
18381
18382 ForceSendFields []string `json:"-"`
18383
18384
18385
18386
18387 NullFields []string `json:"-"`
18388 }
18389
18390 func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
18391 type NoMethod GoogleCloudLocationLocation
18392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18393 }
18394
18395
18396
18397 type GoogleLongrunningListOperationsResponse struct {
18398
18399 NextPageToken string `json:"nextPageToken,omitempty"`
18400
18401
18402 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
18403
18404
18405 googleapi.ServerResponse `json:"-"`
18406
18407
18408
18409
18410
18411 ForceSendFields []string `json:"-"`
18412
18413
18414
18415
18416 NullFields []string `json:"-"`
18417 }
18418
18419 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
18420 type NoMethod GoogleLongrunningListOperationsResponse
18421 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18422 }
18423
18424
18425
18426 type GoogleLongrunningOperation struct {
18427
18428
18429
18430 Done bool `json:"done,omitempty"`
18431
18432 Error *GoogleRpcStatus `json:"error,omitempty"`
18433
18434
18435
18436
18437 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18438
18439
18440
18441 Name string `json:"name,omitempty"`
18442
18443
18444
18445
18446
18447
18448
18449 Response googleapi.RawMessage `json:"response,omitempty"`
18450
18451
18452 googleapi.ServerResponse `json:"-"`
18453
18454
18455
18456
18457
18458 ForceSendFields []string `json:"-"`
18459
18460
18461
18462
18463 NullFields []string `json:"-"`
18464 }
18465
18466 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
18467 type NoMethod GoogleLongrunningOperation
18468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18469 }
18470
18471
18472
18473
18474
18475
18476 type GoogleProtobufEmpty struct {
18477
18478 googleapi.ServerResponse `json:"-"`
18479 }
18480
18481
18482
18483
18484
18485
18486
18487 type GoogleRpcStatus struct {
18488
18489 Code int64 `json:"code,omitempty"`
18490
18491
18492 Details []googleapi.RawMessage `json:"details,omitempty"`
18493
18494
18495
18496 Message string `json:"message,omitempty"`
18497
18498
18499
18500
18501
18502 ForceSendFields []string `json:"-"`
18503
18504
18505
18506
18507 NullFields []string `json:"-"`
18508 }
18509
18510 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
18511 type NoMethod GoogleRpcStatus
18512 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18513 }
18514
18515
18516
18517
18518
18519 type GoogleTypeLatLng struct {
18520
18521 Latitude float64 `json:"latitude,omitempty"`
18522
18523
18524 Longitude float64 `json:"longitude,omitempty"`
18525
18526
18527
18528
18529
18530 ForceSendFields []string `json:"-"`
18531
18532
18533
18534
18535 NullFields []string `json:"-"`
18536 }
18537
18538 func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
18539 type NoMethod GoogleTypeLatLng
18540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18541 }
18542
18543 func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
18544 type NoMethod GoogleTypeLatLng
18545 var s1 struct {
18546 Latitude gensupport.JSONFloat64 `json:"latitude"`
18547 Longitude gensupport.JSONFloat64 `json:"longitude"`
18548 *NoMethod
18549 }
18550 s1.NoMethod = (*NoMethod)(s)
18551 if err := json.Unmarshal(data, &s1); err != nil {
18552 return err
18553 }
18554 s.Latitude = float64(s1.Latitude)
18555 s.Longitude = float64(s1.Longitude)
18556 return nil
18557 }
18558
18559 type ProjectsLocationsGetCall struct {
18560 s *Service
18561 name string
18562 urlParams_ gensupport.URLParams
18563 ifNoneMatch_ string
18564 ctx_ context.Context
18565 header_ http.Header
18566 }
18567
18568
18569
18570
18571 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
18572 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18573 c.name = name
18574 return c
18575 }
18576
18577
18578
18579
18580 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
18581 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18582 return c
18583 }
18584
18585
18586
18587
18588 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
18589 c.ifNoneMatch_ = entityTag
18590 return c
18591 }
18592
18593
18594 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
18595 c.ctx_ = ctx
18596 return c
18597 }
18598
18599
18600
18601 func (c *ProjectsLocationsGetCall) Header() http.Header {
18602 if c.header_ == nil {
18603 c.header_ = make(http.Header)
18604 }
18605 return c.header_
18606 }
18607
18608 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
18609 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18610 if c.ifNoneMatch_ != "" {
18611 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18612 }
18613 var body io.Reader = nil
18614 c.urlParams_.Set("alt", alt)
18615 c.urlParams_.Set("prettyPrint", "false")
18616 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
18617 urls += "?" + c.urlParams_.Encode()
18618 req, err := http.NewRequest("GET", urls, body)
18619 if err != nil {
18620 return nil, err
18621 }
18622 req.Header = reqHeaders
18623 googleapi.Expand(req.URL, map[string]string{
18624 "name": c.name,
18625 })
18626 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18627 }
18628
18629
18630
18631
18632
18633
18634
18635 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
18636 gensupport.SetOptions(c.urlParams_, opts...)
18637 res, err := c.doRequest("json")
18638 if res != nil && res.StatusCode == http.StatusNotModified {
18639 if res.Body != nil {
18640 res.Body.Close()
18641 }
18642 return nil, gensupport.WrapError(&googleapi.Error{
18643 Code: res.StatusCode,
18644 Header: res.Header,
18645 })
18646 }
18647 if err != nil {
18648 return nil, err
18649 }
18650 defer googleapi.CloseBody(res)
18651 if err := googleapi.CheckResponse(res); err != nil {
18652 return nil, gensupport.WrapError(err)
18653 }
18654 ret := &GoogleCloudLocationLocation{
18655 ServerResponse: googleapi.ServerResponse{
18656 Header: res.Header,
18657 HTTPStatusCode: res.StatusCode,
18658 },
18659 }
18660 target := &ret
18661 if err := gensupport.DecodeResponse(target, res); err != nil {
18662 return nil, err
18663 }
18664 return ret, nil
18665 }
18666
18667 type ProjectsLocationsListCall struct {
18668 s *Service
18669 name string
18670 urlParams_ gensupport.URLParams
18671 ifNoneMatch_ string
18672 ctx_ context.Context
18673 header_ http.Header
18674 }
18675
18676
18677
18678
18679 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
18680 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18681 c.name = name
18682 return c
18683 }
18684
18685
18686
18687
18688
18689 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
18690 c.urlParams_.Set("filter", filter)
18691 return c
18692 }
18693
18694
18695
18696 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
18697 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
18698 return c
18699 }
18700
18701
18702
18703
18704 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
18705 c.urlParams_.Set("pageToken", pageToken)
18706 return c
18707 }
18708
18709
18710
18711
18712 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
18713 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18714 return c
18715 }
18716
18717
18718
18719
18720 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
18721 c.ifNoneMatch_ = entityTag
18722 return c
18723 }
18724
18725
18726 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
18727 c.ctx_ = ctx
18728 return c
18729 }
18730
18731
18732
18733 func (c *ProjectsLocationsListCall) Header() http.Header {
18734 if c.header_ == nil {
18735 c.header_ = make(http.Header)
18736 }
18737 return c.header_
18738 }
18739
18740 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
18741 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18742 if c.ifNoneMatch_ != "" {
18743 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18744 }
18745 var body io.Reader = nil
18746 c.urlParams_.Set("alt", alt)
18747 c.urlParams_.Set("prettyPrint", "false")
18748 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}/locations")
18749 urls += "?" + c.urlParams_.Encode()
18750 req, err := http.NewRequest("GET", urls, body)
18751 if err != nil {
18752 return nil, err
18753 }
18754 req.Header = reqHeaders
18755 googleapi.Expand(req.URL, map[string]string{
18756 "name": c.name,
18757 })
18758 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18759 }
18760
18761
18762
18763
18764
18765
18766
18767 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
18768 gensupport.SetOptions(c.urlParams_, opts...)
18769 res, err := c.doRequest("json")
18770 if res != nil && res.StatusCode == http.StatusNotModified {
18771 if res.Body != nil {
18772 res.Body.Close()
18773 }
18774 return nil, gensupport.WrapError(&googleapi.Error{
18775 Code: res.StatusCode,
18776 Header: res.Header,
18777 })
18778 }
18779 if err != nil {
18780 return nil, err
18781 }
18782 defer googleapi.CloseBody(res)
18783 if err := googleapi.CheckResponse(res); err != nil {
18784 return nil, gensupport.WrapError(err)
18785 }
18786 ret := &GoogleCloudLocationListLocationsResponse{
18787 ServerResponse: googleapi.ServerResponse{
18788 Header: res.Header,
18789 HTTPStatusCode: res.StatusCode,
18790 },
18791 }
18792 target := &ret
18793 if err := gensupport.DecodeResponse(target, res); err != nil {
18794 return nil, err
18795 }
18796 return ret, nil
18797 }
18798
18799
18800
18801
18802 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
18803 c.ctx_ = ctx
18804 defer c.PageToken(c.urlParams_.Get("pageToken"))
18805 for {
18806 x, err := c.Do()
18807 if err != nil {
18808 return err
18809 }
18810 if err := f(x); err != nil {
18811 return err
18812 }
18813 if x.NextPageToken == "" {
18814 return nil
18815 }
18816 c.PageToken(x.NextPageToken)
18817 }
18818 }
18819
18820 type ProjectsLocationsAgentsCreateCall struct {
18821 s *Service
18822 parent string
18823 googleclouddialogflowcxv3agent *GoogleCloudDialogflowCxV3Agent
18824 urlParams_ gensupport.URLParams
18825 ctx_ context.Context
18826 header_ http.Header
18827 }
18828
18829
18830
18831
18832
18833
18834
18835 func (r *ProjectsLocationsAgentsService) Create(parent string, googleclouddialogflowcxv3agent *GoogleCloudDialogflowCxV3Agent) *ProjectsLocationsAgentsCreateCall {
18836 c := &ProjectsLocationsAgentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18837 c.parent = parent
18838 c.googleclouddialogflowcxv3agent = googleclouddialogflowcxv3agent
18839 return c
18840 }
18841
18842
18843
18844
18845 func (c *ProjectsLocationsAgentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsCreateCall {
18846 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18847 return c
18848 }
18849
18850
18851 func (c *ProjectsLocationsAgentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsCreateCall {
18852 c.ctx_ = ctx
18853 return c
18854 }
18855
18856
18857
18858 func (c *ProjectsLocationsAgentsCreateCall) Header() http.Header {
18859 if c.header_ == nil {
18860 c.header_ = make(http.Header)
18861 }
18862 return c.header_
18863 }
18864
18865 func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Response, error) {
18866 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
18867 var body io.Reader = nil
18868 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3agent)
18869 if err != nil {
18870 return nil, err
18871 }
18872 c.urlParams_.Set("alt", alt)
18873 c.urlParams_.Set("prettyPrint", "false")
18874 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/agents")
18875 urls += "?" + c.urlParams_.Encode()
18876 req, err := http.NewRequest("POST", urls, body)
18877 if err != nil {
18878 return nil, err
18879 }
18880 req.Header = reqHeaders
18881 googleapi.Expand(req.URL, map[string]string{
18882 "parent": c.parent,
18883 })
18884 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18885 }
18886
18887
18888
18889
18890
18891
18892
18893 func (c *ProjectsLocationsAgentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Agent, error) {
18894 gensupport.SetOptions(c.urlParams_, opts...)
18895 res, err := c.doRequest("json")
18896 if res != nil && res.StatusCode == http.StatusNotModified {
18897 if res.Body != nil {
18898 res.Body.Close()
18899 }
18900 return nil, gensupport.WrapError(&googleapi.Error{
18901 Code: res.StatusCode,
18902 Header: res.Header,
18903 })
18904 }
18905 if err != nil {
18906 return nil, err
18907 }
18908 defer googleapi.CloseBody(res)
18909 if err := googleapi.CheckResponse(res); err != nil {
18910 return nil, gensupport.WrapError(err)
18911 }
18912 ret := &GoogleCloudDialogflowCxV3Agent{
18913 ServerResponse: googleapi.ServerResponse{
18914 Header: res.Header,
18915 HTTPStatusCode: res.StatusCode,
18916 },
18917 }
18918 target := &ret
18919 if err := gensupport.DecodeResponse(target, res); err != nil {
18920 return nil, err
18921 }
18922 return ret, nil
18923 }
18924
18925 type ProjectsLocationsAgentsDeleteCall struct {
18926 s *Service
18927 name string
18928 urlParams_ gensupport.URLParams
18929 ctx_ context.Context
18930 header_ http.Header
18931 }
18932
18933
18934
18935
18936
18937 func (r *ProjectsLocationsAgentsService) Delete(name string) *ProjectsLocationsAgentsDeleteCall {
18938 c := &ProjectsLocationsAgentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18939 c.name = name
18940 return c
18941 }
18942
18943
18944
18945
18946 func (c *ProjectsLocationsAgentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsDeleteCall {
18947 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18948 return c
18949 }
18950
18951
18952 func (c *ProjectsLocationsAgentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsDeleteCall {
18953 c.ctx_ = ctx
18954 return c
18955 }
18956
18957
18958
18959 func (c *ProjectsLocationsAgentsDeleteCall) Header() http.Header {
18960 if c.header_ == nil {
18961 c.header_ = make(http.Header)
18962 }
18963 return c.header_
18964 }
18965
18966 func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Response, error) {
18967 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18968 var body io.Reader = nil
18969 c.urlParams_.Set("alt", alt)
18970 c.urlParams_.Set("prettyPrint", "false")
18971 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
18972 urls += "?" + c.urlParams_.Encode()
18973 req, err := http.NewRequest("DELETE", urls, body)
18974 if err != nil {
18975 return nil, err
18976 }
18977 req.Header = reqHeaders
18978 googleapi.Expand(req.URL, map[string]string{
18979 "name": c.name,
18980 })
18981 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18982 }
18983
18984
18985
18986
18987
18988
18989
18990 func (c *ProjectsLocationsAgentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
18991 gensupport.SetOptions(c.urlParams_, opts...)
18992 res, err := c.doRequest("json")
18993 if res != nil && res.StatusCode == http.StatusNotModified {
18994 if res.Body != nil {
18995 res.Body.Close()
18996 }
18997 return nil, gensupport.WrapError(&googleapi.Error{
18998 Code: res.StatusCode,
18999 Header: res.Header,
19000 })
19001 }
19002 if err != nil {
19003 return nil, err
19004 }
19005 defer googleapi.CloseBody(res)
19006 if err := googleapi.CheckResponse(res); err != nil {
19007 return nil, gensupport.WrapError(err)
19008 }
19009 ret := &GoogleProtobufEmpty{
19010 ServerResponse: googleapi.ServerResponse{
19011 Header: res.Header,
19012 HTTPStatusCode: res.StatusCode,
19013 },
19014 }
19015 target := &ret
19016 if err := gensupport.DecodeResponse(target, res); err != nil {
19017 return nil, err
19018 }
19019 return ret, nil
19020 }
19021
19022 type ProjectsLocationsAgentsExportCall struct {
19023 s *Service
19024 name string
19025 googleclouddialogflowcxv3exportagentrequest *GoogleCloudDialogflowCxV3ExportAgentRequest
19026 urlParams_ gensupport.URLParams
19027 ctx_ context.Context
19028 header_ http.Header
19029 }
19030
19031
19032
19033
19034
19035
19036
19037
19038
19039
19040
19041 func (r *ProjectsLocationsAgentsService) Export(name string, googleclouddialogflowcxv3exportagentrequest *GoogleCloudDialogflowCxV3ExportAgentRequest) *ProjectsLocationsAgentsExportCall {
19042 c := &ProjectsLocationsAgentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19043 c.name = name
19044 c.googleclouddialogflowcxv3exportagentrequest = googleclouddialogflowcxv3exportagentrequest
19045 return c
19046 }
19047
19048
19049
19050
19051 func (c *ProjectsLocationsAgentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsExportCall {
19052 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19053 return c
19054 }
19055
19056
19057 func (c *ProjectsLocationsAgentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsExportCall {
19058 c.ctx_ = ctx
19059 return c
19060 }
19061
19062
19063
19064 func (c *ProjectsLocationsAgentsExportCall) Header() http.Header {
19065 if c.header_ == nil {
19066 c.header_ = make(http.Header)
19067 }
19068 return c.header_
19069 }
19070
19071 func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Response, error) {
19072 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19073 var body io.Reader = nil
19074 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3exportagentrequest)
19075 if err != nil {
19076 return nil, err
19077 }
19078 c.urlParams_.Set("alt", alt)
19079 c.urlParams_.Set("prettyPrint", "false")
19080 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:export")
19081 urls += "?" + c.urlParams_.Encode()
19082 req, err := http.NewRequest("POST", urls, body)
19083 if err != nil {
19084 return nil, err
19085 }
19086 req.Header = reqHeaders
19087 googleapi.Expand(req.URL, map[string]string{
19088 "name": c.name,
19089 })
19090 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19091 }
19092
19093
19094
19095
19096
19097
19098
19099 func (c *ProjectsLocationsAgentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19100 gensupport.SetOptions(c.urlParams_, opts...)
19101 res, err := c.doRequest("json")
19102 if res != nil && res.StatusCode == http.StatusNotModified {
19103 if res.Body != nil {
19104 res.Body.Close()
19105 }
19106 return nil, gensupport.WrapError(&googleapi.Error{
19107 Code: res.StatusCode,
19108 Header: res.Header,
19109 })
19110 }
19111 if err != nil {
19112 return nil, err
19113 }
19114 defer googleapi.CloseBody(res)
19115 if err := googleapi.CheckResponse(res); err != nil {
19116 return nil, gensupport.WrapError(err)
19117 }
19118 ret := &GoogleLongrunningOperation{
19119 ServerResponse: googleapi.ServerResponse{
19120 Header: res.Header,
19121 HTTPStatusCode: res.StatusCode,
19122 },
19123 }
19124 target := &ret
19125 if err := gensupport.DecodeResponse(target, res); err != nil {
19126 return nil, err
19127 }
19128 return ret, nil
19129 }
19130
19131 type ProjectsLocationsAgentsGetCall struct {
19132 s *Service
19133 name string
19134 urlParams_ gensupport.URLParams
19135 ifNoneMatch_ string
19136 ctx_ context.Context
19137 header_ http.Header
19138 }
19139
19140
19141
19142
19143 func (r *ProjectsLocationsAgentsService) Get(name string) *ProjectsLocationsAgentsGetCall {
19144 c := &ProjectsLocationsAgentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19145 c.name = name
19146 return c
19147 }
19148
19149
19150
19151
19152 func (c *ProjectsLocationsAgentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetCall {
19153 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19154 return c
19155 }
19156
19157
19158
19159
19160 func (c *ProjectsLocationsAgentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetCall {
19161 c.ifNoneMatch_ = entityTag
19162 return c
19163 }
19164
19165
19166 func (c *ProjectsLocationsAgentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetCall {
19167 c.ctx_ = ctx
19168 return c
19169 }
19170
19171
19172
19173 func (c *ProjectsLocationsAgentsGetCall) Header() http.Header {
19174 if c.header_ == nil {
19175 c.header_ = make(http.Header)
19176 }
19177 return c.header_
19178 }
19179
19180 func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, error) {
19181 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19182 if c.ifNoneMatch_ != "" {
19183 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19184 }
19185 var body io.Reader = nil
19186 c.urlParams_.Set("alt", alt)
19187 c.urlParams_.Set("prettyPrint", "false")
19188 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
19189 urls += "?" + c.urlParams_.Encode()
19190 req, err := http.NewRequest("GET", urls, body)
19191 if err != nil {
19192 return nil, err
19193 }
19194 req.Header = reqHeaders
19195 googleapi.Expand(req.URL, map[string]string{
19196 "name": c.name,
19197 })
19198 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19199 }
19200
19201
19202
19203
19204
19205
19206
19207 func (c *ProjectsLocationsAgentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Agent, error) {
19208 gensupport.SetOptions(c.urlParams_, opts...)
19209 res, err := c.doRequest("json")
19210 if res != nil && res.StatusCode == http.StatusNotModified {
19211 if res.Body != nil {
19212 res.Body.Close()
19213 }
19214 return nil, gensupport.WrapError(&googleapi.Error{
19215 Code: res.StatusCode,
19216 Header: res.Header,
19217 })
19218 }
19219 if err != nil {
19220 return nil, err
19221 }
19222 defer googleapi.CloseBody(res)
19223 if err := googleapi.CheckResponse(res); err != nil {
19224 return nil, gensupport.WrapError(err)
19225 }
19226 ret := &GoogleCloudDialogflowCxV3Agent{
19227 ServerResponse: googleapi.ServerResponse{
19228 Header: res.Header,
19229 HTTPStatusCode: res.StatusCode,
19230 },
19231 }
19232 target := &ret
19233 if err := gensupport.DecodeResponse(target, res); err != nil {
19234 return nil, err
19235 }
19236 return ret, nil
19237 }
19238
19239 type ProjectsLocationsAgentsGetGenerativeSettingsCall struct {
19240 s *Service
19241 name string
19242 urlParams_ gensupport.URLParams
19243 ifNoneMatch_ string
19244 ctx_ context.Context
19245 header_ http.Header
19246 }
19247
19248
19249
19250
19251 func (r *ProjectsLocationsAgentsService) GetGenerativeSettings(name string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19252 c := &ProjectsLocationsAgentsGetGenerativeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19253 c.name = name
19254 return c
19255 }
19256
19257
19258
19259 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19260 c.urlParams_.Set("languageCode", languageCode)
19261 return c
19262 }
19263
19264
19265
19266
19267 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19268 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19269 return c
19270 }
19271
19272
19273
19274
19275 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19276 c.ifNoneMatch_ = entityTag
19277 return c
19278 }
19279
19280
19281 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19282 c.ctx_ = ctx
19283 return c
19284 }
19285
19286
19287
19288 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Header() http.Header {
19289 if c.header_ == nil {
19290 c.header_ = make(http.Header)
19291 }
19292 return c.header_
19293 }
19294
19295 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) doRequest(alt string) (*http.Response, error) {
19296 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19297 if c.ifNoneMatch_ != "" {
19298 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19299 }
19300 var body io.Reader = nil
19301 c.urlParams_.Set("alt", alt)
19302 c.urlParams_.Set("prettyPrint", "false")
19303 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
19304 urls += "?" + c.urlParams_.Encode()
19305 req, err := http.NewRequest("GET", urls, body)
19306 if err != nil {
19307 return nil, err
19308 }
19309 req.Header = reqHeaders
19310 googleapi.Expand(req.URL, map[string]string{
19311 "name": c.name,
19312 })
19313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19314 }
19315
19316
19317
19318
19319
19320
19321
19322 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3GenerativeSettings, error) {
19323 gensupport.SetOptions(c.urlParams_, opts...)
19324 res, err := c.doRequest("json")
19325 if res != nil && res.StatusCode == http.StatusNotModified {
19326 if res.Body != nil {
19327 res.Body.Close()
19328 }
19329 return nil, gensupport.WrapError(&googleapi.Error{
19330 Code: res.StatusCode,
19331 Header: res.Header,
19332 })
19333 }
19334 if err != nil {
19335 return nil, err
19336 }
19337 defer googleapi.CloseBody(res)
19338 if err := googleapi.CheckResponse(res); err != nil {
19339 return nil, gensupport.WrapError(err)
19340 }
19341 ret := &GoogleCloudDialogflowCxV3GenerativeSettings{
19342 ServerResponse: googleapi.ServerResponse{
19343 Header: res.Header,
19344 HTTPStatusCode: res.StatusCode,
19345 },
19346 }
19347 target := &ret
19348 if err := gensupport.DecodeResponse(target, res); err != nil {
19349 return nil, err
19350 }
19351 return ret, nil
19352 }
19353
19354 type ProjectsLocationsAgentsGetValidationResultCall struct {
19355 s *Service
19356 name string
19357 urlParams_ gensupport.URLParams
19358 ifNoneMatch_ string
19359 ctx_ context.Context
19360 header_ http.Header
19361 }
19362
19363
19364
19365
19366
19367
19368 func (r *ProjectsLocationsAgentsService) GetValidationResult(name string) *ProjectsLocationsAgentsGetValidationResultCall {
19369 c := &ProjectsLocationsAgentsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19370 c.name = name
19371 return c
19372 }
19373
19374
19375
19376 func (c *ProjectsLocationsAgentsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetValidationResultCall {
19377 c.urlParams_.Set("languageCode", languageCode)
19378 return c
19379 }
19380
19381
19382
19383
19384 func (c *ProjectsLocationsAgentsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetValidationResultCall {
19385 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19386 return c
19387 }
19388
19389
19390
19391
19392 func (c *ProjectsLocationsAgentsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetValidationResultCall {
19393 c.ifNoneMatch_ = entityTag
19394 return c
19395 }
19396
19397
19398 func (c *ProjectsLocationsAgentsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetValidationResultCall {
19399 c.ctx_ = ctx
19400 return c
19401 }
19402
19403
19404
19405 func (c *ProjectsLocationsAgentsGetValidationResultCall) Header() http.Header {
19406 if c.header_ == nil {
19407 c.header_ = make(http.Header)
19408 }
19409 return c.header_
19410 }
19411
19412 func (c *ProjectsLocationsAgentsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
19413 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19414 if c.ifNoneMatch_ != "" {
19415 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19416 }
19417 var body io.Reader = nil
19418 c.urlParams_.Set("alt", alt)
19419 c.urlParams_.Set("prettyPrint", "false")
19420 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
19421 urls += "?" + c.urlParams_.Encode()
19422 req, err := http.NewRequest("GET", urls, body)
19423 if err != nil {
19424 return nil, err
19425 }
19426 req.Header = reqHeaders
19427 googleapi.Expand(req.URL, map[string]string{
19428 "name": c.name,
19429 })
19430 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19431 }
19432
19433
19434
19435
19436
19437
19438
19439 func (c *ProjectsLocationsAgentsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3AgentValidationResult, error) {
19440 gensupport.SetOptions(c.urlParams_, opts...)
19441 res, err := c.doRequest("json")
19442 if res != nil && res.StatusCode == http.StatusNotModified {
19443 if res.Body != nil {
19444 res.Body.Close()
19445 }
19446 return nil, gensupport.WrapError(&googleapi.Error{
19447 Code: res.StatusCode,
19448 Header: res.Header,
19449 })
19450 }
19451 if err != nil {
19452 return nil, err
19453 }
19454 defer googleapi.CloseBody(res)
19455 if err := googleapi.CheckResponse(res); err != nil {
19456 return nil, gensupport.WrapError(err)
19457 }
19458 ret := &GoogleCloudDialogflowCxV3AgentValidationResult{
19459 ServerResponse: googleapi.ServerResponse{
19460 Header: res.Header,
19461 HTTPStatusCode: res.StatusCode,
19462 },
19463 }
19464 target := &ret
19465 if err := gensupport.DecodeResponse(target, res); err != nil {
19466 return nil, err
19467 }
19468 return ret, nil
19469 }
19470
19471 type ProjectsLocationsAgentsListCall struct {
19472 s *Service
19473 parent string
19474 urlParams_ gensupport.URLParams
19475 ifNoneMatch_ string
19476 ctx_ context.Context
19477 header_ http.Header
19478 }
19479
19480
19481
19482
19483
19484 func (r *ProjectsLocationsAgentsService) List(parent string) *ProjectsLocationsAgentsListCall {
19485 c := &ProjectsLocationsAgentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19486 c.parent = parent
19487 return c
19488 }
19489
19490
19491
19492 func (c *ProjectsLocationsAgentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsListCall {
19493 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19494 return c
19495 }
19496
19497
19498
19499 func (c *ProjectsLocationsAgentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsListCall {
19500 c.urlParams_.Set("pageToken", pageToken)
19501 return c
19502 }
19503
19504
19505
19506
19507 func (c *ProjectsLocationsAgentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsListCall {
19508 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19509 return c
19510 }
19511
19512
19513
19514
19515 func (c *ProjectsLocationsAgentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsListCall {
19516 c.ifNoneMatch_ = entityTag
19517 return c
19518 }
19519
19520
19521 func (c *ProjectsLocationsAgentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsListCall {
19522 c.ctx_ = ctx
19523 return c
19524 }
19525
19526
19527
19528 func (c *ProjectsLocationsAgentsListCall) Header() http.Header {
19529 if c.header_ == nil {
19530 c.header_ = make(http.Header)
19531 }
19532 return c.header_
19533 }
19534
19535 func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, error) {
19536 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19537 if c.ifNoneMatch_ != "" {
19538 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19539 }
19540 var body io.Reader = nil
19541 c.urlParams_.Set("alt", alt)
19542 c.urlParams_.Set("prettyPrint", "false")
19543 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/agents")
19544 urls += "?" + c.urlParams_.Encode()
19545 req, err := http.NewRequest("GET", urls, body)
19546 if err != nil {
19547 return nil, err
19548 }
19549 req.Header = reqHeaders
19550 googleapi.Expand(req.URL, map[string]string{
19551 "parent": c.parent,
19552 })
19553 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19554 }
19555
19556
19557
19558
19559
19560
19561
19562 func (c *ProjectsLocationsAgentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListAgentsResponse, error) {
19563 gensupport.SetOptions(c.urlParams_, opts...)
19564 res, err := c.doRequest("json")
19565 if res != nil && res.StatusCode == http.StatusNotModified {
19566 if res.Body != nil {
19567 res.Body.Close()
19568 }
19569 return nil, gensupport.WrapError(&googleapi.Error{
19570 Code: res.StatusCode,
19571 Header: res.Header,
19572 })
19573 }
19574 if err != nil {
19575 return nil, err
19576 }
19577 defer googleapi.CloseBody(res)
19578 if err := googleapi.CheckResponse(res); err != nil {
19579 return nil, gensupport.WrapError(err)
19580 }
19581 ret := &GoogleCloudDialogflowCxV3ListAgentsResponse{
19582 ServerResponse: googleapi.ServerResponse{
19583 Header: res.Header,
19584 HTTPStatusCode: res.StatusCode,
19585 },
19586 }
19587 target := &ret
19588 if err := gensupport.DecodeResponse(target, res); err != nil {
19589 return nil, err
19590 }
19591 return ret, nil
19592 }
19593
19594
19595
19596
19597 func (c *ProjectsLocationsAgentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListAgentsResponse) error) error {
19598 c.ctx_ = ctx
19599 defer c.PageToken(c.urlParams_.Get("pageToken"))
19600 for {
19601 x, err := c.Do()
19602 if err != nil {
19603 return err
19604 }
19605 if err := f(x); err != nil {
19606 return err
19607 }
19608 if x.NextPageToken == "" {
19609 return nil
19610 }
19611 c.PageToken(x.NextPageToken)
19612 }
19613 }
19614
19615 type ProjectsLocationsAgentsPatchCall struct {
19616 s *Service
19617 nameid string
19618 googleclouddialogflowcxv3agent *GoogleCloudDialogflowCxV3Agent
19619 urlParams_ gensupport.URLParams
19620 ctx_ context.Context
19621 header_ http.Header
19622 }
19623
19624
19625
19626
19627
19628
19629
19630
19631 func (r *ProjectsLocationsAgentsService) Patch(nameid string, googleclouddialogflowcxv3agent *GoogleCloudDialogflowCxV3Agent) *ProjectsLocationsAgentsPatchCall {
19632 c := &ProjectsLocationsAgentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19633 c.nameid = nameid
19634 c.googleclouddialogflowcxv3agent = googleclouddialogflowcxv3agent
19635 return c
19636 }
19637
19638
19639
19640
19641 func (c *ProjectsLocationsAgentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsPatchCall {
19642 c.urlParams_.Set("updateMask", updateMask)
19643 return c
19644 }
19645
19646
19647
19648
19649 func (c *ProjectsLocationsAgentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPatchCall {
19650 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19651 return c
19652 }
19653
19654
19655 func (c *ProjectsLocationsAgentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsPatchCall {
19656 c.ctx_ = ctx
19657 return c
19658 }
19659
19660
19661
19662 func (c *ProjectsLocationsAgentsPatchCall) Header() http.Header {
19663 if c.header_ == nil {
19664 c.header_ = make(http.Header)
19665 }
19666 return c.header_
19667 }
19668
19669 func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response, error) {
19670 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19671 var body io.Reader = nil
19672 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3agent)
19673 if err != nil {
19674 return nil, err
19675 }
19676 c.urlParams_.Set("alt", alt)
19677 c.urlParams_.Set("prettyPrint", "false")
19678 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
19679 urls += "?" + c.urlParams_.Encode()
19680 req, err := http.NewRequest("PATCH", urls, body)
19681 if err != nil {
19682 return nil, err
19683 }
19684 req.Header = reqHeaders
19685 googleapi.Expand(req.URL, map[string]string{
19686 "name": c.nameid,
19687 })
19688 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19689 }
19690
19691
19692
19693
19694
19695
19696
19697 func (c *ProjectsLocationsAgentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Agent, error) {
19698 gensupport.SetOptions(c.urlParams_, opts...)
19699 res, err := c.doRequest("json")
19700 if res != nil && res.StatusCode == http.StatusNotModified {
19701 if res.Body != nil {
19702 res.Body.Close()
19703 }
19704 return nil, gensupport.WrapError(&googleapi.Error{
19705 Code: res.StatusCode,
19706 Header: res.Header,
19707 })
19708 }
19709 if err != nil {
19710 return nil, err
19711 }
19712 defer googleapi.CloseBody(res)
19713 if err := googleapi.CheckResponse(res); err != nil {
19714 return nil, gensupport.WrapError(err)
19715 }
19716 ret := &GoogleCloudDialogflowCxV3Agent{
19717 ServerResponse: googleapi.ServerResponse{
19718 Header: res.Header,
19719 HTTPStatusCode: res.StatusCode,
19720 },
19721 }
19722 target := &ret
19723 if err := gensupport.DecodeResponse(target, res); err != nil {
19724 return nil, err
19725 }
19726 return ret, nil
19727 }
19728
19729 type ProjectsLocationsAgentsRestoreCall struct {
19730 s *Service
19731 name string
19732 googleclouddialogflowcxv3restoreagentrequest *GoogleCloudDialogflowCxV3RestoreAgentRequest
19733 urlParams_ gensupport.URLParams
19734 ctx_ context.Context
19735 header_ http.Header
19736 }
19737
19738
19739
19740
19741
19742
19743
19744
19745
19746
19747
19748
19749
19750
19751
19752
19753
19754 func (r *ProjectsLocationsAgentsService) Restore(name string, googleclouddialogflowcxv3restoreagentrequest *GoogleCloudDialogflowCxV3RestoreAgentRequest) *ProjectsLocationsAgentsRestoreCall {
19755 c := &ProjectsLocationsAgentsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19756 c.name = name
19757 c.googleclouddialogflowcxv3restoreagentrequest = googleclouddialogflowcxv3restoreagentrequest
19758 return c
19759 }
19760
19761
19762
19763
19764 func (c *ProjectsLocationsAgentsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsRestoreCall {
19765 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19766 return c
19767 }
19768
19769
19770 func (c *ProjectsLocationsAgentsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentsRestoreCall {
19771 c.ctx_ = ctx
19772 return c
19773 }
19774
19775
19776
19777 func (c *ProjectsLocationsAgentsRestoreCall) Header() http.Header {
19778 if c.header_ == nil {
19779 c.header_ = make(http.Header)
19780 }
19781 return c.header_
19782 }
19783
19784 func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Response, error) {
19785 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19786 var body io.Reader = nil
19787 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3restoreagentrequest)
19788 if err != nil {
19789 return nil, err
19790 }
19791 c.urlParams_.Set("alt", alt)
19792 c.urlParams_.Set("prettyPrint", "false")
19793 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:restore")
19794 urls += "?" + c.urlParams_.Encode()
19795 req, err := http.NewRequest("POST", urls, body)
19796 if err != nil {
19797 return nil, err
19798 }
19799 req.Header = reqHeaders
19800 googleapi.Expand(req.URL, map[string]string{
19801 "name": c.name,
19802 })
19803 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19804 }
19805
19806
19807
19808
19809
19810
19811
19812 func (c *ProjectsLocationsAgentsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19813 gensupport.SetOptions(c.urlParams_, opts...)
19814 res, err := c.doRequest("json")
19815 if res != nil && res.StatusCode == http.StatusNotModified {
19816 if res.Body != nil {
19817 res.Body.Close()
19818 }
19819 return nil, gensupport.WrapError(&googleapi.Error{
19820 Code: res.StatusCode,
19821 Header: res.Header,
19822 })
19823 }
19824 if err != nil {
19825 return nil, err
19826 }
19827 defer googleapi.CloseBody(res)
19828 if err := googleapi.CheckResponse(res); err != nil {
19829 return nil, gensupport.WrapError(err)
19830 }
19831 ret := &GoogleLongrunningOperation{
19832 ServerResponse: googleapi.ServerResponse{
19833 Header: res.Header,
19834 HTTPStatusCode: res.StatusCode,
19835 },
19836 }
19837 target := &ret
19838 if err := gensupport.DecodeResponse(target, res); err != nil {
19839 return nil, err
19840 }
19841 return ret, nil
19842 }
19843
19844 type ProjectsLocationsAgentsUpdateGenerativeSettingsCall struct {
19845 s *Service
19846 name string
19847 googleclouddialogflowcxv3generativesettings *GoogleCloudDialogflowCxV3GenerativeSettings
19848 urlParams_ gensupport.URLParams
19849 ctx_ context.Context
19850 header_ http.Header
19851 }
19852
19853
19854
19855
19856 func (r *ProjectsLocationsAgentsService) UpdateGenerativeSettings(name string, googleclouddialogflowcxv3generativesettings *GoogleCloudDialogflowCxV3GenerativeSettings) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
19857 c := &ProjectsLocationsAgentsUpdateGenerativeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19858 c.name = name
19859 c.googleclouddialogflowcxv3generativesettings = googleclouddialogflowcxv3generativesettings
19860 return c
19861 }
19862
19863
19864
19865
19866 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
19867 c.urlParams_.Set("updateMask", updateMask)
19868 return c
19869 }
19870
19871
19872
19873
19874 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
19875 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19876 return c
19877 }
19878
19879
19880 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Context(ctx context.Context) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
19881 c.ctx_ = ctx
19882 return c
19883 }
19884
19885
19886
19887 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Header() http.Header {
19888 if c.header_ == nil {
19889 c.header_ = make(http.Header)
19890 }
19891 return c.header_
19892 }
19893
19894 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) doRequest(alt string) (*http.Response, error) {
19895 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19896 var body io.Reader = nil
19897 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3generativesettings)
19898 if err != nil {
19899 return nil, err
19900 }
19901 c.urlParams_.Set("alt", alt)
19902 c.urlParams_.Set("prettyPrint", "false")
19903 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
19904 urls += "?" + c.urlParams_.Encode()
19905 req, err := http.NewRequest("PATCH", urls, body)
19906 if err != nil {
19907 return nil, err
19908 }
19909 req.Header = reqHeaders
19910 googleapi.Expand(req.URL, map[string]string{
19911 "name": c.name,
19912 })
19913 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19914 }
19915
19916
19917
19918
19919
19920
19921
19922 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3GenerativeSettings, error) {
19923 gensupport.SetOptions(c.urlParams_, opts...)
19924 res, err := c.doRequest("json")
19925 if res != nil && res.StatusCode == http.StatusNotModified {
19926 if res.Body != nil {
19927 res.Body.Close()
19928 }
19929 return nil, gensupport.WrapError(&googleapi.Error{
19930 Code: res.StatusCode,
19931 Header: res.Header,
19932 })
19933 }
19934 if err != nil {
19935 return nil, err
19936 }
19937 defer googleapi.CloseBody(res)
19938 if err := googleapi.CheckResponse(res); err != nil {
19939 return nil, gensupport.WrapError(err)
19940 }
19941 ret := &GoogleCloudDialogflowCxV3GenerativeSettings{
19942 ServerResponse: googleapi.ServerResponse{
19943 Header: res.Header,
19944 HTTPStatusCode: res.StatusCode,
19945 },
19946 }
19947 target := &ret
19948 if err := gensupport.DecodeResponse(target, res); err != nil {
19949 return nil, err
19950 }
19951 return ret, nil
19952 }
19953
19954 type ProjectsLocationsAgentsValidateCall struct {
19955 s *Service
19956 name string
19957 googleclouddialogflowcxv3validateagentrequest *GoogleCloudDialogflowCxV3ValidateAgentRequest
19958 urlParams_ gensupport.URLParams
19959 ctx_ context.Context
19960 header_ http.Header
19961 }
19962
19963
19964
19965
19966
19967
19968 func (r *ProjectsLocationsAgentsService) Validate(name string, googleclouddialogflowcxv3validateagentrequest *GoogleCloudDialogflowCxV3ValidateAgentRequest) *ProjectsLocationsAgentsValidateCall {
19969 c := &ProjectsLocationsAgentsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19970 c.name = name
19971 c.googleclouddialogflowcxv3validateagentrequest = googleclouddialogflowcxv3validateagentrequest
19972 return c
19973 }
19974
19975
19976
19977
19978 func (c *ProjectsLocationsAgentsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsValidateCall {
19979 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19980 return c
19981 }
19982
19983
19984 func (c *ProjectsLocationsAgentsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsValidateCall {
19985 c.ctx_ = ctx
19986 return c
19987 }
19988
19989
19990
19991 func (c *ProjectsLocationsAgentsValidateCall) Header() http.Header {
19992 if c.header_ == nil {
19993 c.header_ = make(http.Header)
19994 }
19995 return c.header_
19996 }
19997
19998 func (c *ProjectsLocationsAgentsValidateCall) doRequest(alt string) (*http.Response, error) {
19999 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20000 var body io.Reader = nil
20001 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3validateagentrequest)
20002 if err != nil {
20003 return nil, err
20004 }
20005 c.urlParams_.Set("alt", alt)
20006 c.urlParams_.Set("prettyPrint", "false")
20007 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:validate")
20008 urls += "?" + c.urlParams_.Encode()
20009 req, err := http.NewRequest("POST", urls, body)
20010 if err != nil {
20011 return nil, err
20012 }
20013 req.Header = reqHeaders
20014 googleapi.Expand(req.URL, map[string]string{
20015 "name": c.name,
20016 })
20017 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20018 }
20019
20020
20021
20022
20023
20024
20025
20026 func (c *ProjectsLocationsAgentsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3AgentValidationResult, error) {
20027 gensupport.SetOptions(c.urlParams_, opts...)
20028 res, err := c.doRequest("json")
20029 if res != nil && res.StatusCode == http.StatusNotModified {
20030 if res.Body != nil {
20031 res.Body.Close()
20032 }
20033 return nil, gensupport.WrapError(&googleapi.Error{
20034 Code: res.StatusCode,
20035 Header: res.Header,
20036 })
20037 }
20038 if err != nil {
20039 return nil, err
20040 }
20041 defer googleapi.CloseBody(res)
20042 if err := googleapi.CheckResponse(res); err != nil {
20043 return nil, gensupport.WrapError(err)
20044 }
20045 ret := &GoogleCloudDialogflowCxV3AgentValidationResult{
20046 ServerResponse: googleapi.ServerResponse{
20047 Header: res.Header,
20048 HTTPStatusCode: res.StatusCode,
20049 },
20050 }
20051 target := &ret
20052 if err := gensupport.DecodeResponse(target, res); err != nil {
20053 return nil, err
20054 }
20055 return ret, nil
20056 }
20057
20058 type ProjectsLocationsAgentsChangelogsGetCall struct {
20059 s *Service
20060 name string
20061 urlParams_ gensupport.URLParams
20062 ifNoneMatch_ string
20063 ctx_ context.Context
20064 header_ http.Header
20065 }
20066
20067
20068
20069
20070
20071 func (r *ProjectsLocationsAgentsChangelogsService) Get(name string) *ProjectsLocationsAgentsChangelogsGetCall {
20072 c := &ProjectsLocationsAgentsChangelogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20073 c.name = name
20074 return c
20075 }
20076
20077
20078
20079
20080 func (c *ProjectsLocationsAgentsChangelogsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsChangelogsGetCall {
20081 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20082 return c
20083 }
20084
20085
20086
20087
20088 func (c *ProjectsLocationsAgentsChangelogsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsChangelogsGetCall {
20089 c.ifNoneMatch_ = entityTag
20090 return c
20091 }
20092
20093
20094 func (c *ProjectsLocationsAgentsChangelogsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsChangelogsGetCall {
20095 c.ctx_ = ctx
20096 return c
20097 }
20098
20099
20100
20101 func (c *ProjectsLocationsAgentsChangelogsGetCall) Header() http.Header {
20102 if c.header_ == nil {
20103 c.header_ = make(http.Header)
20104 }
20105 return c.header_
20106 }
20107
20108 func (c *ProjectsLocationsAgentsChangelogsGetCall) doRequest(alt string) (*http.Response, error) {
20109 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20110 if c.ifNoneMatch_ != "" {
20111 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20112 }
20113 var body io.Reader = nil
20114 c.urlParams_.Set("alt", alt)
20115 c.urlParams_.Set("prettyPrint", "false")
20116 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
20117 urls += "?" + c.urlParams_.Encode()
20118 req, err := http.NewRequest("GET", urls, body)
20119 if err != nil {
20120 return nil, err
20121 }
20122 req.Header = reqHeaders
20123 googleapi.Expand(req.URL, map[string]string{
20124 "name": c.name,
20125 })
20126 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20127 }
20128
20129
20130
20131
20132
20133
20134
20135 func (c *ProjectsLocationsAgentsChangelogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Changelog, error) {
20136 gensupport.SetOptions(c.urlParams_, opts...)
20137 res, err := c.doRequest("json")
20138 if res != nil && res.StatusCode == http.StatusNotModified {
20139 if res.Body != nil {
20140 res.Body.Close()
20141 }
20142 return nil, gensupport.WrapError(&googleapi.Error{
20143 Code: res.StatusCode,
20144 Header: res.Header,
20145 })
20146 }
20147 if err != nil {
20148 return nil, err
20149 }
20150 defer googleapi.CloseBody(res)
20151 if err := googleapi.CheckResponse(res); err != nil {
20152 return nil, gensupport.WrapError(err)
20153 }
20154 ret := &GoogleCloudDialogflowCxV3Changelog{
20155 ServerResponse: googleapi.ServerResponse{
20156 Header: res.Header,
20157 HTTPStatusCode: res.StatusCode,
20158 },
20159 }
20160 target := &ret
20161 if err := gensupport.DecodeResponse(target, res); err != nil {
20162 return nil, err
20163 }
20164 return ret, nil
20165 }
20166
20167 type ProjectsLocationsAgentsChangelogsListCall struct {
20168 s *Service
20169 parent string
20170 urlParams_ gensupport.URLParams
20171 ifNoneMatch_ string
20172 ctx_ context.Context
20173 header_ http.Header
20174 }
20175
20176
20177
20178
20179
20180 func (r *ProjectsLocationsAgentsChangelogsService) List(parent string) *ProjectsLocationsAgentsChangelogsListCall {
20181 c := &ProjectsLocationsAgentsChangelogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20182 c.parent = parent
20183 return c
20184 }
20185
20186
20187
20188
20189
20190
20191
20192
20193
20194
20195
20196
20197 func (c *ProjectsLocationsAgentsChangelogsListCall) Filter(filter string) *ProjectsLocationsAgentsChangelogsListCall {
20198 c.urlParams_.Set("filter", filter)
20199 return c
20200 }
20201
20202
20203
20204 func (c *ProjectsLocationsAgentsChangelogsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsChangelogsListCall {
20205 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20206 return c
20207 }
20208
20209
20210
20211 func (c *ProjectsLocationsAgentsChangelogsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsChangelogsListCall {
20212 c.urlParams_.Set("pageToken", pageToken)
20213 return c
20214 }
20215
20216
20217
20218
20219 func (c *ProjectsLocationsAgentsChangelogsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsChangelogsListCall {
20220 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20221 return c
20222 }
20223
20224
20225
20226
20227 func (c *ProjectsLocationsAgentsChangelogsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsChangelogsListCall {
20228 c.ifNoneMatch_ = entityTag
20229 return c
20230 }
20231
20232
20233 func (c *ProjectsLocationsAgentsChangelogsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsChangelogsListCall {
20234 c.ctx_ = ctx
20235 return c
20236 }
20237
20238
20239
20240 func (c *ProjectsLocationsAgentsChangelogsListCall) Header() http.Header {
20241 if c.header_ == nil {
20242 c.header_ = make(http.Header)
20243 }
20244 return c.header_
20245 }
20246
20247 func (c *ProjectsLocationsAgentsChangelogsListCall) doRequest(alt string) (*http.Response, error) {
20248 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20249 if c.ifNoneMatch_ != "" {
20250 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20251 }
20252 var body io.Reader = nil
20253 c.urlParams_.Set("alt", alt)
20254 c.urlParams_.Set("prettyPrint", "false")
20255 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/changelogs")
20256 urls += "?" + c.urlParams_.Encode()
20257 req, err := http.NewRequest("GET", urls, body)
20258 if err != nil {
20259 return nil, err
20260 }
20261 req.Header = reqHeaders
20262 googleapi.Expand(req.URL, map[string]string{
20263 "parent": c.parent,
20264 })
20265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20266 }
20267
20268
20269
20270
20271
20272
20273
20274 func (c *ProjectsLocationsAgentsChangelogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListChangelogsResponse, error) {
20275 gensupport.SetOptions(c.urlParams_, opts...)
20276 res, err := c.doRequest("json")
20277 if res != nil && res.StatusCode == http.StatusNotModified {
20278 if res.Body != nil {
20279 res.Body.Close()
20280 }
20281 return nil, gensupport.WrapError(&googleapi.Error{
20282 Code: res.StatusCode,
20283 Header: res.Header,
20284 })
20285 }
20286 if err != nil {
20287 return nil, err
20288 }
20289 defer googleapi.CloseBody(res)
20290 if err := googleapi.CheckResponse(res); err != nil {
20291 return nil, gensupport.WrapError(err)
20292 }
20293 ret := &GoogleCloudDialogflowCxV3ListChangelogsResponse{
20294 ServerResponse: googleapi.ServerResponse{
20295 Header: res.Header,
20296 HTTPStatusCode: res.StatusCode,
20297 },
20298 }
20299 target := &ret
20300 if err := gensupport.DecodeResponse(target, res); err != nil {
20301 return nil, err
20302 }
20303 return ret, nil
20304 }
20305
20306
20307
20308
20309 func (c *ProjectsLocationsAgentsChangelogsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListChangelogsResponse) error) error {
20310 c.ctx_ = ctx
20311 defer c.PageToken(c.urlParams_.Get("pageToken"))
20312 for {
20313 x, err := c.Do()
20314 if err != nil {
20315 return err
20316 }
20317 if err := f(x); err != nil {
20318 return err
20319 }
20320 if x.NextPageToken == "" {
20321 return nil
20322 }
20323 c.PageToken(x.NextPageToken)
20324 }
20325 }
20326
20327 type ProjectsLocationsAgentsEntityTypesCreateCall struct {
20328 s *Service
20329 parent string
20330 googleclouddialogflowcxv3entitytype *GoogleCloudDialogflowCxV3EntityType
20331 urlParams_ gensupport.URLParams
20332 ctx_ context.Context
20333 header_ http.Header
20334 }
20335
20336
20337
20338
20339
20340
20341
20342
20343 func (r *ProjectsLocationsAgentsEntityTypesService) Create(parent string, googleclouddialogflowcxv3entitytype *GoogleCloudDialogflowCxV3EntityType) *ProjectsLocationsAgentsEntityTypesCreateCall {
20344 c := &ProjectsLocationsAgentsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20345 c.parent = parent
20346 c.googleclouddialogflowcxv3entitytype = googleclouddialogflowcxv3entitytype
20347 return c
20348 }
20349
20350
20351
20352
20353
20354
20355
20356
20357 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesCreateCall {
20358 c.urlParams_.Set("languageCode", languageCode)
20359 return c
20360 }
20361
20362
20363
20364
20365 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesCreateCall {
20366 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20367 return c
20368 }
20369
20370
20371 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesCreateCall {
20372 c.ctx_ = ctx
20373 return c
20374 }
20375
20376
20377
20378 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Header() http.Header {
20379 if c.header_ == nil {
20380 c.header_ = make(http.Header)
20381 }
20382 return c.header_
20383 }
20384
20385 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
20386 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20387 var body io.Reader = nil
20388 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3entitytype)
20389 if err != nil {
20390 return nil, err
20391 }
20392 c.urlParams_.Set("alt", alt)
20393 c.urlParams_.Set("prettyPrint", "false")
20394 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes")
20395 urls += "?" + c.urlParams_.Encode()
20396 req, err := http.NewRequest("POST", urls, body)
20397 if err != nil {
20398 return nil, err
20399 }
20400 req.Header = reqHeaders
20401 googleapi.Expand(req.URL, map[string]string{
20402 "parent": c.parent,
20403 })
20404 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20405 }
20406
20407
20408
20409
20410
20411
20412
20413 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3EntityType, error) {
20414 gensupport.SetOptions(c.urlParams_, opts...)
20415 res, err := c.doRequest("json")
20416 if res != nil && res.StatusCode == http.StatusNotModified {
20417 if res.Body != nil {
20418 res.Body.Close()
20419 }
20420 return nil, gensupport.WrapError(&googleapi.Error{
20421 Code: res.StatusCode,
20422 Header: res.Header,
20423 })
20424 }
20425 if err != nil {
20426 return nil, err
20427 }
20428 defer googleapi.CloseBody(res)
20429 if err := googleapi.CheckResponse(res); err != nil {
20430 return nil, gensupport.WrapError(err)
20431 }
20432 ret := &GoogleCloudDialogflowCxV3EntityType{
20433 ServerResponse: googleapi.ServerResponse{
20434 Header: res.Header,
20435 HTTPStatusCode: res.StatusCode,
20436 },
20437 }
20438 target := &ret
20439 if err := gensupport.DecodeResponse(target, res); err != nil {
20440 return nil, err
20441 }
20442 return ret, nil
20443 }
20444
20445 type ProjectsLocationsAgentsEntityTypesDeleteCall struct {
20446 s *Service
20447 name string
20448 urlParams_ gensupport.URLParams
20449 ctx_ context.Context
20450 header_ http.Header
20451 }
20452
20453
20454
20455
20456
20457
20458
20459 func (r *ProjectsLocationsAgentsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEntityTypesDeleteCall {
20460 c := &ProjectsLocationsAgentsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20461 c.name = name
20462 return c
20463 }
20464
20465
20466
20467
20468
20469
20470
20471
20472 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsAgentsEntityTypesDeleteCall {
20473 c.urlParams_.Set("force", fmt.Sprint(force))
20474 return c
20475 }
20476
20477
20478
20479
20480 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesDeleteCall {
20481 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20482 return c
20483 }
20484
20485
20486 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesDeleteCall {
20487 c.ctx_ = ctx
20488 return c
20489 }
20490
20491
20492
20493 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Header() http.Header {
20494 if c.header_ == nil {
20495 c.header_ = make(http.Header)
20496 }
20497 return c.header_
20498 }
20499
20500 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
20501 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20502 var body io.Reader = nil
20503 c.urlParams_.Set("alt", alt)
20504 c.urlParams_.Set("prettyPrint", "false")
20505 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
20506 urls += "?" + c.urlParams_.Encode()
20507 req, err := http.NewRequest("DELETE", urls, body)
20508 if err != nil {
20509 return nil, err
20510 }
20511 req.Header = reqHeaders
20512 googleapi.Expand(req.URL, map[string]string{
20513 "name": c.name,
20514 })
20515 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20516 }
20517
20518
20519
20520
20521
20522
20523
20524 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20525 gensupport.SetOptions(c.urlParams_, opts...)
20526 res, err := c.doRequest("json")
20527 if res != nil && res.StatusCode == http.StatusNotModified {
20528 if res.Body != nil {
20529 res.Body.Close()
20530 }
20531 return nil, gensupport.WrapError(&googleapi.Error{
20532 Code: res.StatusCode,
20533 Header: res.Header,
20534 })
20535 }
20536 if err != nil {
20537 return nil, err
20538 }
20539 defer googleapi.CloseBody(res)
20540 if err := googleapi.CheckResponse(res); err != nil {
20541 return nil, gensupport.WrapError(err)
20542 }
20543 ret := &GoogleProtobufEmpty{
20544 ServerResponse: googleapi.ServerResponse{
20545 Header: res.Header,
20546 HTTPStatusCode: res.StatusCode,
20547 },
20548 }
20549 target := &ret
20550 if err := gensupport.DecodeResponse(target, res); err != nil {
20551 return nil, err
20552 }
20553 return ret, nil
20554 }
20555
20556 type ProjectsLocationsAgentsEntityTypesExportCall struct {
20557 s *Service
20558 parent string
20559 googleclouddialogflowcxv3exportentitytypesrequest *GoogleCloudDialogflowCxV3ExportEntityTypesRequest
20560 urlParams_ gensupport.URLParams
20561 ctx_ context.Context
20562 header_ http.Header
20563 }
20564
20565
20566
20567
20568
20569 func (r *ProjectsLocationsAgentsEntityTypesService) Export(parent string, googleclouddialogflowcxv3exportentitytypesrequest *GoogleCloudDialogflowCxV3ExportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesExportCall {
20570 c := &ProjectsLocationsAgentsEntityTypesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20571 c.parent = parent
20572 c.googleclouddialogflowcxv3exportentitytypesrequest = googleclouddialogflowcxv3exportentitytypesrequest
20573 return c
20574 }
20575
20576
20577
20578
20579 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesExportCall {
20580 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20581 return c
20582 }
20583
20584
20585 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesExportCall {
20586 c.ctx_ = ctx
20587 return c
20588 }
20589
20590
20591
20592 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Header() http.Header {
20593 if c.header_ == nil {
20594 c.header_ = make(http.Header)
20595 }
20596 return c.header_
20597 }
20598
20599 func (c *ProjectsLocationsAgentsEntityTypesExportCall) doRequest(alt string) (*http.Response, error) {
20600 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20601 var body io.Reader = nil
20602 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3exportentitytypesrequest)
20603 if err != nil {
20604 return nil, err
20605 }
20606 c.urlParams_.Set("alt", alt)
20607 c.urlParams_.Set("prettyPrint", "false")
20608 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes:export")
20609 urls += "?" + c.urlParams_.Encode()
20610 req, err := http.NewRequest("POST", urls, body)
20611 if err != nil {
20612 return nil, err
20613 }
20614 req.Header = reqHeaders
20615 googleapi.Expand(req.URL, map[string]string{
20616 "parent": c.parent,
20617 })
20618 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20619 }
20620
20621
20622
20623
20624
20625
20626
20627 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20628 gensupport.SetOptions(c.urlParams_, opts...)
20629 res, err := c.doRequest("json")
20630 if res != nil && res.StatusCode == http.StatusNotModified {
20631 if res.Body != nil {
20632 res.Body.Close()
20633 }
20634 return nil, gensupport.WrapError(&googleapi.Error{
20635 Code: res.StatusCode,
20636 Header: res.Header,
20637 })
20638 }
20639 if err != nil {
20640 return nil, err
20641 }
20642 defer googleapi.CloseBody(res)
20643 if err := googleapi.CheckResponse(res); err != nil {
20644 return nil, gensupport.WrapError(err)
20645 }
20646 ret := &GoogleLongrunningOperation{
20647 ServerResponse: googleapi.ServerResponse{
20648 Header: res.Header,
20649 HTTPStatusCode: res.StatusCode,
20650 },
20651 }
20652 target := &ret
20653 if err := gensupport.DecodeResponse(target, res); err != nil {
20654 return nil, err
20655 }
20656 return ret, nil
20657 }
20658
20659 type ProjectsLocationsAgentsEntityTypesGetCall struct {
20660 s *Service
20661 name string
20662 urlParams_ gensupport.URLParams
20663 ifNoneMatch_ string
20664 ctx_ context.Context
20665 header_ http.Header
20666 }
20667
20668
20669
20670
20671
20672 func (r *ProjectsLocationsAgentsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEntityTypesGetCall {
20673 c := &ProjectsLocationsAgentsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20674 c.name = name
20675 return c
20676 }
20677
20678
20679
20680
20681
20682
20683
20684
20685
20686 func (c *ProjectsLocationsAgentsEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesGetCall {
20687 c.urlParams_.Set("languageCode", languageCode)
20688 return c
20689 }
20690
20691
20692
20693
20694 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesGetCall {
20695 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20696 return c
20697 }
20698
20699
20700
20701
20702 func (c *ProjectsLocationsAgentsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesGetCall {
20703 c.ifNoneMatch_ = entityTag
20704 return c
20705 }
20706
20707
20708 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesGetCall {
20709 c.ctx_ = ctx
20710 return c
20711 }
20712
20713
20714
20715 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Header() http.Header {
20716 if c.header_ == nil {
20717 c.header_ = make(http.Header)
20718 }
20719 return c.header_
20720 }
20721
20722 func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
20723 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20724 if c.ifNoneMatch_ != "" {
20725 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20726 }
20727 var body io.Reader = nil
20728 c.urlParams_.Set("alt", alt)
20729 c.urlParams_.Set("prettyPrint", "false")
20730 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
20731 urls += "?" + c.urlParams_.Encode()
20732 req, err := http.NewRequest("GET", urls, body)
20733 if err != nil {
20734 return nil, err
20735 }
20736 req.Header = reqHeaders
20737 googleapi.Expand(req.URL, map[string]string{
20738 "name": c.name,
20739 })
20740 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20741 }
20742
20743
20744
20745
20746
20747
20748
20749 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3EntityType, error) {
20750 gensupport.SetOptions(c.urlParams_, opts...)
20751 res, err := c.doRequest("json")
20752 if res != nil && res.StatusCode == http.StatusNotModified {
20753 if res.Body != nil {
20754 res.Body.Close()
20755 }
20756 return nil, gensupport.WrapError(&googleapi.Error{
20757 Code: res.StatusCode,
20758 Header: res.Header,
20759 })
20760 }
20761 if err != nil {
20762 return nil, err
20763 }
20764 defer googleapi.CloseBody(res)
20765 if err := googleapi.CheckResponse(res); err != nil {
20766 return nil, gensupport.WrapError(err)
20767 }
20768 ret := &GoogleCloudDialogflowCxV3EntityType{
20769 ServerResponse: googleapi.ServerResponse{
20770 Header: res.Header,
20771 HTTPStatusCode: res.StatusCode,
20772 },
20773 }
20774 target := &ret
20775 if err := gensupport.DecodeResponse(target, res); err != nil {
20776 return nil, err
20777 }
20778 return ret, nil
20779 }
20780
20781 type ProjectsLocationsAgentsEntityTypesImportCall struct {
20782 s *Service
20783 parent string
20784 googleclouddialogflowcxv3importentitytypesrequest *GoogleCloudDialogflowCxV3ImportEntityTypesRequest
20785 urlParams_ gensupport.URLParams
20786 ctx_ context.Context
20787 header_ http.Header
20788 }
20789
20790
20791
20792
20793
20794 func (r *ProjectsLocationsAgentsEntityTypesService) Import(parent string, googleclouddialogflowcxv3importentitytypesrequest *GoogleCloudDialogflowCxV3ImportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesImportCall {
20795 c := &ProjectsLocationsAgentsEntityTypesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20796 c.parent = parent
20797 c.googleclouddialogflowcxv3importentitytypesrequest = googleclouddialogflowcxv3importentitytypesrequest
20798 return c
20799 }
20800
20801
20802
20803
20804 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesImportCall {
20805 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20806 return c
20807 }
20808
20809
20810 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesImportCall {
20811 c.ctx_ = ctx
20812 return c
20813 }
20814
20815
20816
20817 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Header() http.Header {
20818 if c.header_ == nil {
20819 c.header_ = make(http.Header)
20820 }
20821 return c.header_
20822 }
20823
20824 func (c *ProjectsLocationsAgentsEntityTypesImportCall) doRequest(alt string) (*http.Response, error) {
20825 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20826 var body io.Reader = nil
20827 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3importentitytypesrequest)
20828 if err != nil {
20829 return nil, err
20830 }
20831 c.urlParams_.Set("alt", alt)
20832 c.urlParams_.Set("prettyPrint", "false")
20833 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes:import")
20834 urls += "?" + c.urlParams_.Encode()
20835 req, err := http.NewRequest("POST", urls, body)
20836 if err != nil {
20837 return nil, err
20838 }
20839 req.Header = reqHeaders
20840 googleapi.Expand(req.URL, map[string]string{
20841 "parent": c.parent,
20842 })
20843 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20844 }
20845
20846
20847
20848
20849
20850
20851
20852 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20853 gensupport.SetOptions(c.urlParams_, opts...)
20854 res, err := c.doRequest("json")
20855 if res != nil && res.StatusCode == http.StatusNotModified {
20856 if res.Body != nil {
20857 res.Body.Close()
20858 }
20859 return nil, gensupport.WrapError(&googleapi.Error{
20860 Code: res.StatusCode,
20861 Header: res.Header,
20862 })
20863 }
20864 if err != nil {
20865 return nil, err
20866 }
20867 defer googleapi.CloseBody(res)
20868 if err := googleapi.CheckResponse(res); err != nil {
20869 return nil, gensupport.WrapError(err)
20870 }
20871 ret := &GoogleLongrunningOperation{
20872 ServerResponse: googleapi.ServerResponse{
20873 Header: res.Header,
20874 HTTPStatusCode: res.StatusCode,
20875 },
20876 }
20877 target := &ret
20878 if err := gensupport.DecodeResponse(target, res); err != nil {
20879 return nil, err
20880 }
20881 return ret, nil
20882 }
20883
20884 type ProjectsLocationsAgentsEntityTypesListCall struct {
20885 s *Service
20886 parent string
20887 urlParams_ gensupport.URLParams
20888 ifNoneMatch_ string
20889 ctx_ context.Context
20890 header_ http.Header
20891 }
20892
20893
20894
20895
20896
20897 func (r *ProjectsLocationsAgentsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEntityTypesListCall {
20898 c := &ProjectsLocationsAgentsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20899 c.parent = parent
20900 return c
20901 }
20902
20903
20904
20905
20906
20907
20908
20909
20910
20911 func (c *ProjectsLocationsAgentsEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesListCall {
20912 c.urlParams_.Set("languageCode", languageCode)
20913 return c
20914 }
20915
20916
20917
20918 func (c *ProjectsLocationsAgentsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEntityTypesListCall {
20919 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20920 return c
20921 }
20922
20923
20924
20925 func (c *ProjectsLocationsAgentsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEntityTypesListCall {
20926 c.urlParams_.Set("pageToken", pageToken)
20927 return c
20928 }
20929
20930
20931
20932
20933 func (c *ProjectsLocationsAgentsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesListCall {
20934 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20935 return c
20936 }
20937
20938
20939
20940
20941 func (c *ProjectsLocationsAgentsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesListCall {
20942 c.ifNoneMatch_ = entityTag
20943 return c
20944 }
20945
20946
20947 func (c *ProjectsLocationsAgentsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesListCall {
20948 c.ctx_ = ctx
20949 return c
20950 }
20951
20952
20953
20954 func (c *ProjectsLocationsAgentsEntityTypesListCall) Header() http.Header {
20955 if c.header_ == nil {
20956 c.header_ = make(http.Header)
20957 }
20958 return c.header_
20959 }
20960
20961 func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
20962 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20963 if c.ifNoneMatch_ != "" {
20964 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20965 }
20966 var body io.Reader = nil
20967 c.urlParams_.Set("alt", alt)
20968 c.urlParams_.Set("prettyPrint", "false")
20969 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes")
20970 urls += "?" + c.urlParams_.Encode()
20971 req, err := http.NewRequest("GET", urls, body)
20972 if err != nil {
20973 return nil, err
20974 }
20975 req.Header = reqHeaders
20976 googleapi.Expand(req.URL, map[string]string{
20977 "parent": c.parent,
20978 })
20979 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20980 }
20981
20982
20983
20984
20985
20986
20987
20988 func (c *ProjectsLocationsAgentsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListEntityTypesResponse, error) {
20989 gensupport.SetOptions(c.urlParams_, opts...)
20990 res, err := c.doRequest("json")
20991 if res != nil && res.StatusCode == http.StatusNotModified {
20992 if res.Body != nil {
20993 res.Body.Close()
20994 }
20995 return nil, gensupport.WrapError(&googleapi.Error{
20996 Code: res.StatusCode,
20997 Header: res.Header,
20998 })
20999 }
21000 if err != nil {
21001 return nil, err
21002 }
21003 defer googleapi.CloseBody(res)
21004 if err := googleapi.CheckResponse(res); err != nil {
21005 return nil, gensupport.WrapError(err)
21006 }
21007 ret := &GoogleCloudDialogflowCxV3ListEntityTypesResponse{
21008 ServerResponse: googleapi.ServerResponse{
21009 Header: res.Header,
21010 HTTPStatusCode: res.StatusCode,
21011 },
21012 }
21013 target := &ret
21014 if err := gensupport.DecodeResponse(target, res); err != nil {
21015 return nil, err
21016 }
21017 return ret, nil
21018 }
21019
21020
21021
21022
21023 func (c *ProjectsLocationsAgentsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListEntityTypesResponse) error) error {
21024 c.ctx_ = ctx
21025 defer c.PageToken(c.urlParams_.Get("pageToken"))
21026 for {
21027 x, err := c.Do()
21028 if err != nil {
21029 return err
21030 }
21031 if err := f(x); err != nil {
21032 return err
21033 }
21034 if x.NextPageToken == "" {
21035 return nil
21036 }
21037 c.PageToken(x.NextPageToken)
21038 }
21039 }
21040
21041 type ProjectsLocationsAgentsEntityTypesPatchCall struct {
21042 s *Service
21043 nameid string
21044 googleclouddialogflowcxv3entitytype *GoogleCloudDialogflowCxV3EntityType
21045 urlParams_ gensupport.URLParams
21046 ctx_ context.Context
21047 header_ http.Header
21048 }
21049
21050
21051
21052
21053
21054
21055
21056
21057 func (r *ProjectsLocationsAgentsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3entitytype *GoogleCloudDialogflowCxV3EntityType) *ProjectsLocationsAgentsEntityTypesPatchCall {
21058 c := &ProjectsLocationsAgentsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21059 c.nameid = nameid
21060 c.googleclouddialogflowcxv3entitytype = googleclouddialogflowcxv3entitytype
21061 return c
21062 }
21063
21064
21065
21066
21067
21068
21069
21070
21071 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesPatchCall {
21072 c.urlParams_.Set("languageCode", languageCode)
21073 return c
21074 }
21075
21076
21077
21078 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEntityTypesPatchCall {
21079 c.urlParams_.Set("updateMask", updateMask)
21080 return c
21081 }
21082
21083
21084
21085
21086 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesPatchCall {
21087 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21088 return c
21089 }
21090
21091
21092 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesPatchCall {
21093 c.ctx_ = ctx
21094 return c
21095 }
21096
21097
21098
21099 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Header() http.Header {
21100 if c.header_ == nil {
21101 c.header_ = make(http.Header)
21102 }
21103 return c.header_
21104 }
21105
21106 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
21107 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21108 var body io.Reader = nil
21109 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3entitytype)
21110 if err != nil {
21111 return nil, err
21112 }
21113 c.urlParams_.Set("alt", alt)
21114 c.urlParams_.Set("prettyPrint", "false")
21115 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
21116 urls += "?" + c.urlParams_.Encode()
21117 req, err := http.NewRequest("PATCH", urls, body)
21118 if err != nil {
21119 return nil, err
21120 }
21121 req.Header = reqHeaders
21122 googleapi.Expand(req.URL, map[string]string{
21123 "name": c.nameid,
21124 })
21125 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21126 }
21127
21128
21129
21130
21131
21132
21133
21134 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3EntityType, error) {
21135 gensupport.SetOptions(c.urlParams_, opts...)
21136 res, err := c.doRequest("json")
21137 if res != nil && res.StatusCode == http.StatusNotModified {
21138 if res.Body != nil {
21139 res.Body.Close()
21140 }
21141 return nil, gensupport.WrapError(&googleapi.Error{
21142 Code: res.StatusCode,
21143 Header: res.Header,
21144 })
21145 }
21146 if err != nil {
21147 return nil, err
21148 }
21149 defer googleapi.CloseBody(res)
21150 if err := googleapi.CheckResponse(res); err != nil {
21151 return nil, gensupport.WrapError(err)
21152 }
21153 ret := &GoogleCloudDialogflowCxV3EntityType{
21154 ServerResponse: googleapi.ServerResponse{
21155 Header: res.Header,
21156 HTTPStatusCode: res.StatusCode,
21157 },
21158 }
21159 target := &ret
21160 if err := gensupport.DecodeResponse(target, res); err != nil {
21161 return nil, err
21162 }
21163 return ret, nil
21164 }
21165
21166 type ProjectsLocationsAgentsEnvironmentsCreateCall struct {
21167 s *Service
21168 parent string
21169 googleclouddialogflowcxv3environment *GoogleCloudDialogflowCxV3Environment
21170 urlParams_ gensupport.URLParams
21171 ctx_ context.Context
21172 header_ http.Header
21173 }
21174
21175
21176
21177
21178
21179
21180
21181
21182
21183
21184
21185 func (r *ProjectsLocationsAgentsEnvironmentsService) Create(parent string, googleclouddialogflowcxv3environment *GoogleCloudDialogflowCxV3Environment) *ProjectsLocationsAgentsEnvironmentsCreateCall {
21186 c := &ProjectsLocationsAgentsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21187 c.parent = parent
21188 c.googleclouddialogflowcxv3environment = googleclouddialogflowcxv3environment
21189 return c
21190 }
21191
21192
21193
21194
21195 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsCreateCall {
21196 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21197 return c
21198 }
21199
21200
21201 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsCreateCall {
21202 c.ctx_ = ctx
21203 return c
21204 }
21205
21206
21207
21208 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Header() http.Header {
21209 if c.header_ == nil {
21210 c.header_ = make(http.Header)
21211 }
21212 return c.header_
21213 }
21214
21215 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21216 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21217 var body io.Reader = nil
21218 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3environment)
21219 if err != nil {
21220 return nil, err
21221 }
21222 c.urlParams_.Set("alt", alt)
21223 c.urlParams_.Set("prettyPrint", "false")
21224 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/environments")
21225 urls += "?" + c.urlParams_.Encode()
21226 req, err := http.NewRequest("POST", urls, body)
21227 if err != nil {
21228 return nil, err
21229 }
21230 req.Header = reqHeaders
21231 googleapi.Expand(req.URL, map[string]string{
21232 "parent": c.parent,
21233 })
21234 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21235 }
21236
21237
21238
21239
21240
21241
21242
21243 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21244 gensupport.SetOptions(c.urlParams_, opts...)
21245 res, err := c.doRequest("json")
21246 if res != nil && res.StatusCode == http.StatusNotModified {
21247 if res.Body != nil {
21248 res.Body.Close()
21249 }
21250 return nil, gensupport.WrapError(&googleapi.Error{
21251 Code: res.StatusCode,
21252 Header: res.Header,
21253 })
21254 }
21255 if err != nil {
21256 return nil, err
21257 }
21258 defer googleapi.CloseBody(res)
21259 if err := googleapi.CheckResponse(res); err != nil {
21260 return nil, gensupport.WrapError(err)
21261 }
21262 ret := &GoogleLongrunningOperation{
21263 ServerResponse: googleapi.ServerResponse{
21264 Header: res.Header,
21265 HTTPStatusCode: res.StatusCode,
21266 },
21267 }
21268 target := &ret
21269 if err := gensupport.DecodeResponse(target, res); err != nil {
21270 return nil, err
21271 }
21272 return ret, nil
21273 }
21274
21275 type ProjectsLocationsAgentsEnvironmentsDeleteCall struct {
21276 s *Service
21277 name string
21278 urlParams_ gensupport.URLParams
21279 ctx_ context.Context
21280 header_ http.Header
21281 }
21282
21283
21284
21285
21286
21287 func (r *ProjectsLocationsAgentsEnvironmentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
21288 c := &ProjectsLocationsAgentsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21289 c.name = name
21290 return c
21291 }
21292
21293
21294
21295
21296 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
21297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21298 return c
21299 }
21300
21301
21302 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
21303 c.ctx_ = ctx
21304 return c
21305 }
21306
21307
21308
21309 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Header() http.Header {
21310 if c.header_ == nil {
21311 c.header_ = make(http.Header)
21312 }
21313 return c.header_
21314 }
21315
21316 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
21317 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21318 var body io.Reader = nil
21319 c.urlParams_.Set("alt", alt)
21320 c.urlParams_.Set("prettyPrint", "false")
21321 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
21322 urls += "?" + c.urlParams_.Encode()
21323 req, err := http.NewRequest("DELETE", urls, body)
21324 if err != nil {
21325 return nil, err
21326 }
21327 req.Header = reqHeaders
21328 googleapi.Expand(req.URL, map[string]string{
21329 "name": c.name,
21330 })
21331 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21332 }
21333
21334
21335
21336
21337
21338
21339
21340 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21341 gensupport.SetOptions(c.urlParams_, opts...)
21342 res, err := c.doRequest("json")
21343 if res != nil && res.StatusCode == http.StatusNotModified {
21344 if res.Body != nil {
21345 res.Body.Close()
21346 }
21347 return nil, gensupport.WrapError(&googleapi.Error{
21348 Code: res.StatusCode,
21349 Header: res.Header,
21350 })
21351 }
21352 if err != nil {
21353 return nil, err
21354 }
21355 defer googleapi.CloseBody(res)
21356 if err := googleapi.CheckResponse(res); err != nil {
21357 return nil, gensupport.WrapError(err)
21358 }
21359 ret := &GoogleProtobufEmpty{
21360 ServerResponse: googleapi.ServerResponse{
21361 Header: res.Header,
21362 HTTPStatusCode: res.StatusCode,
21363 },
21364 }
21365 target := &ret
21366 if err := gensupport.DecodeResponse(target, res); err != nil {
21367 return nil, err
21368 }
21369 return ret, nil
21370 }
21371
21372 type ProjectsLocationsAgentsEnvironmentsDeployFlowCall struct {
21373 s *Service
21374 environment string
21375 googleclouddialogflowcxv3deployflowrequest *GoogleCloudDialogflowCxV3DeployFlowRequest
21376 urlParams_ gensupport.URLParams
21377 ctx_ context.Context
21378 header_ http.Header
21379 }
21380
21381
21382
21383
21384
21385
21386
21387
21388
21389 func (r *ProjectsLocationsAgentsEnvironmentsService) DeployFlow(environment string, googleclouddialogflowcxv3deployflowrequest *GoogleCloudDialogflowCxV3DeployFlowRequest) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
21390 c := &ProjectsLocationsAgentsEnvironmentsDeployFlowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21391 c.environment = environment
21392 c.googleclouddialogflowcxv3deployflowrequest = googleclouddialogflowcxv3deployflowrequest
21393 return c
21394 }
21395
21396
21397
21398
21399 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
21400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21401 return c
21402 }
21403
21404
21405 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
21406 c.ctx_ = ctx
21407 return c
21408 }
21409
21410
21411
21412 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Header() http.Header {
21413 if c.header_ == nil {
21414 c.header_ = make(http.Header)
21415 }
21416 return c.header_
21417 }
21418
21419 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) doRequest(alt string) (*http.Response, error) {
21420 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21421 var body io.Reader = nil
21422 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3deployflowrequest)
21423 if err != nil {
21424 return nil, err
21425 }
21426 c.urlParams_.Set("alt", alt)
21427 c.urlParams_.Set("prettyPrint", "false")
21428 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+environment}:deployFlow")
21429 urls += "?" + c.urlParams_.Encode()
21430 req, err := http.NewRequest("POST", urls, body)
21431 if err != nil {
21432 return nil, err
21433 }
21434 req.Header = reqHeaders
21435 googleapi.Expand(req.URL, map[string]string{
21436 "environment": c.environment,
21437 })
21438 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21439 }
21440
21441
21442
21443
21444
21445
21446
21447 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21448 gensupport.SetOptions(c.urlParams_, opts...)
21449 res, err := c.doRequest("json")
21450 if res != nil && res.StatusCode == http.StatusNotModified {
21451 if res.Body != nil {
21452 res.Body.Close()
21453 }
21454 return nil, gensupport.WrapError(&googleapi.Error{
21455 Code: res.StatusCode,
21456 Header: res.Header,
21457 })
21458 }
21459 if err != nil {
21460 return nil, err
21461 }
21462 defer googleapi.CloseBody(res)
21463 if err := googleapi.CheckResponse(res); err != nil {
21464 return nil, gensupport.WrapError(err)
21465 }
21466 ret := &GoogleLongrunningOperation{
21467 ServerResponse: googleapi.ServerResponse{
21468 Header: res.Header,
21469 HTTPStatusCode: res.StatusCode,
21470 },
21471 }
21472 target := &ret
21473 if err := gensupport.DecodeResponse(target, res); err != nil {
21474 return nil, err
21475 }
21476 return ret, nil
21477 }
21478
21479 type ProjectsLocationsAgentsEnvironmentsGetCall struct {
21480 s *Service
21481 name string
21482 urlParams_ gensupport.URLParams
21483 ifNoneMatch_ string
21484 ctx_ context.Context
21485 header_ http.Header
21486 }
21487
21488
21489
21490
21491
21492 func (r *ProjectsLocationsAgentsEnvironmentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsGetCall {
21493 c := &ProjectsLocationsAgentsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21494 c.name = name
21495 return c
21496 }
21497
21498
21499
21500
21501 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsGetCall {
21502 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21503 return c
21504 }
21505
21506
21507
21508
21509 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsGetCall {
21510 c.ifNoneMatch_ = entityTag
21511 return c
21512 }
21513
21514
21515 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsGetCall {
21516 c.ctx_ = ctx
21517 return c
21518 }
21519
21520
21521
21522 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Header() http.Header {
21523 if c.header_ == nil {
21524 c.header_ = make(http.Header)
21525 }
21526 return c.header_
21527 }
21528
21529 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
21530 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21531 if c.ifNoneMatch_ != "" {
21532 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21533 }
21534 var body io.Reader = nil
21535 c.urlParams_.Set("alt", alt)
21536 c.urlParams_.Set("prettyPrint", "false")
21537 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
21538 urls += "?" + c.urlParams_.Encode()
21539 req, err := http.NewRequest("GET", urls, body)
21540 if err != nil {
21541 return nil, err
21542 }
21543 req.Header = reqHeaders
21544 googleapi.Expand(req.URL, map[string]string{
21545 "name": c.name,
21546 })
21547 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21548 }
21549
21550
21551
21552
21553
21554
21555
21556 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Environment, error) {
21557 gensupport.SetOptions(c.urlParams_, opts...)
21558 res, err := c.doRequest("json")
21559 if res != nil && res.StatusCode == http.StatusNotModified {
21560 if res.Body != nil {
21561 res.Body.Close()
21562 }
21563 return nil, gensupport.WrapError(&googleapi.Error{
21564 Code: res.StatusCode,
21565 Header: res.Header,
21566 })
21567 }
21568 if err != nil {
21569 return nil, err
21570 }
21571 defer googleapi.CloseBody(res)
21572 if err := googleapi.CheckResponse(res); err != nil {
21573 return nil, gensupport.WrapError(err)
21574 }
21575 ret := &GoogleCloudDialogflowCxV3Environment{
21576 ServerResponse: googleapi.ServerResponse{
21577 Header: res.Header,
21578 HTTPStatusCode: res.StatusCode,
21579 },
21580 }
21581 target := &ret
21582 if err := gensupport.DecodeResponse(target, res); err != nil {
21583 return nil, err
21584 }
21585 return ret, nil
21586 }
21587
21588 type ProjectsLocationsAgentsEnvironmentsListCall struct {
21589 s *Service
21590 parent string
21591 urlParams_ gensupport.URLParams
21592 ifNoneMatch_ string
21593 ctx_ context.Context
21594 header_ http.Header
21595 }
21596
21597
21598
21599
21600
21601 func (r *ProjectsLocationsAgentsEnvironmentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsListCall {
21602 c := &ProjectsLocationsAgentsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21603 c.parent = parent
21604 return c
21605 }
21606
21607
21608
21609 func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsListCall {
21610 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21611 return c
21612 }
21613
21614
21615
21616 func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsListCall {
21617 c.urlParams_.Set("pageToken", pageToken)
21618 return c
21619 }
21620
21621
21622
21623
21624 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsListCall {
21625 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21626 return c
21627 }
21628
21629
21630
21631
21632 func (c *ProjectsLocationsAgentsEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsListCall {
21633 c.ifNoneMatch_ = entityTag
21634 return c
21635 }
21636
21637
21638 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsListCall {
21639 c.ctx_ = ctx
21640 return c
21641 }
21642
21643
21644
21645 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Header() http.Header {
21646 if c.header_ == nil {
21647 c.header_ = make(http.Header)
21648 }
21649 return c.header_
21650 }
21651
21652 func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
21653 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21654 if c.ifNoneMatch_ != "" {
21655 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21656 }
21657 var body io.Reader = nil
21658 c.urlParams_.Set("alt", alt)
21659 c.urlParams_.Set("prettyPrint", "false")
21660 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/environments")
21661 urls += "?" + c.urlParams_.Encode()
21662 req, err := http.NewRequest("GET", urls, body)
21663 if err != nil {
21664 return nil, err
21665 }
21666 req.Header = reqHeaders
21667 googleapi.Expand(req.URL, map[string]string{
21668 "parent": c.parent,
21669 })
21670 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21671 }
21672
21673
21674
21675
21676
21677
21678
21679 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListEnvironmentsResponse, error) {
21680 gensupport.SetOptions(c.urlParams_, opts...)
21681 res, err := c.doRequest("json")
21682 if res != nil && res.StatusCode == http.StatusNotModified {
21683 if res.Body != nil {
21684 res.Body.Close()
21685 }
21686 return nil, gensupport.WrapError(&googleapi.Error{
21687 Code: res.StatusCode,
21688 Header: res.Header,
21689 })
21690 }
21691 if err != nil {
21692 return nil, err
21693 }
21694 defer googleapi.CloseBody(res)
21695 if err := googleapi.CheckResponse(res); err != nil {
21696 return nil, gensupport.WrapError(err)
21697 }
21698 ret := &GoogleCloudDialogflowCxV3ListEnvironmentsResponse{
21699 ServerResponse: googleapi.ServerResponse{
21700 Header: res.Header,
21701 HTTPStatusCode: res.StatusCode,
21702 },
21703 }
21704 target := &ret
21705 if err := gensupport.DecodeResponse(target, res); err != nil {
21706 return nil, err
21707 }
21708 return ret, nil
21709 }
21710
21711
21712
21713
21714 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListEnvironmentsResponse) error) error {
21715 c.ctx_ = ctx
21716 defer c.PageToken(c.urlParams_.Get("pageToken"))
21717 for {
21718 x, err := c.Do()
21719 if err != nil {
21720 return err
21721 }
21722 if err := f(x); err != nil {
21723 return err
21724 }
21725 if x.NextPageToken == "" {
21726 return nil
21727 }
21728 c.PageToken(x.NextPageToken)
21729 }
21730 }
21731
21732 type ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall struct {
21733 s *Service
21734 name string
21735 urlParams_ gensupport.URLParams
21736 ifNoneMatch_ string
21737 ctx_ context.Context
21738 header_ http.Header
21739 }
21740
21741
21742
21743
21744
21745 func (r *ProjectsLocationsAgentsEnvironmentsService) LookupEnvironmentHistory(name string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
21746 c := &ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21747 c.name = name
21748 return c
21749 }
21750
21751
21752
21753 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
21754 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21755 return c
21756 }
21757
21758
21759
21760 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
21761 c.urlParams_.Set("pageToken", pageToken)
21762 return c
21763 }
21764
21765
21766
21767
21768 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
21769 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21770 return c
21771 }
21772
21773
21774
21775
21776 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
21777 c.ifNoneMatch_ = entityTag
21778 return c
21779 }
21780
21781
21782 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
21783 c.ctx_ = ctx
21784 return c
21785 }
21786
21787
21788
21789 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Header() http.Header {
21790 if c.header_ == nil {
21791 c.header_ = make(http.Header)
21792 }
21793 return c.header_
21794 }
21795
21796 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequest(alt string) (*http.Response, error) {
21797 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21798 if c.ifNoneMatch_ != "" {
21799 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21800 }
21801 var body io.Reader = nil
21802 c.urlParams_.Set("alt", alt)
21803 c.urlParams_.Set("prettyPrint", "false")
21804 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:lookupEnvironmentHistory")
21805 urls += "?" + c.urlParams_.Encode()
21806 req, err := http.NewRequest("GET", urls, body)
21807 if err != nil {
21808 return nil, err
21809 }
21810 req.Header = reqHeaders
21811 googleapi.Expand(req.URL, map[string]string{
21812 "name": c.name,
21813 })
21814 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21815 }
21816
21817
21818
21819
21820
21821
21822
21823 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse, error) {
21824 gensupport.SetOptions(c.urlParams_, opts...)
21825 res, err := c.doRequest("json")
21826 if res != nil && res.StatusCode == http.StatusNotModified {
21827 if res.Body != nil {
21828 res.Body.Close()
21829 }
21830 return nil, gensupport.WrapError(&googleapi.Error{
21831 Code: res.StatusCode,
21832 Header: res.Header,
21833 })
21834 }
21835 if err != nil {
21836 return nil, err
21837 }
21838 defer googleapi.CloseBody(res)
21839 if err := googleapi.CheckResponse(res); err != nil {
21840 return nil, gensupport.WrapError(err)
21841 }
21842 ret := &GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse{
21843 ServerResponse: googleapi.ServerResponse{
21844 Header: res.Header,
21845 HTTPStatusCode: res.StatusCode,
21846 },
21847 }
21848 target := &ret
21849 if err := gensupport.DecodeResponse(target, res); err != nil {
21850 return nil, err
21851 }
21852 return ret, nil
21853 }
21854
21855
21856
21857
21858 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3LookupEnvironmentHistoryResponse) error) error {
21859 c.ctx_ = ctx
21860 defer c.PageToken(c.urlParams_.Get("pageToken"))
21861 for {
21862 x, err := c.Do()
21863 if err != nil {
21864 return err
21865 }
21866 if err := f(x); err != nil {
21867 return err
21868 }
21869 if x.NextPageToken == "" {
21870 return nil
21871 }
21872 c.PageToken(x.NextPageToken)
21873 }
21874 }
21875
21876 type ProjectsLocationsAgentsEnvironmentsPatchCall struct {
21877 s *Service
21878 name string
21879 googleclouddialogflowcxv3environment *GoogleCloudDialogflowCxV3Environment
21880 urlParams_ gensupport.URLParams
21881 ctx_ context.Context
21882 header_ http.Header
21883 }
21884
21885
21886
21887
21888
21889
21890
21891
21892
21893
21894
21895 func (r *ProjectsLocationsAgentsEnvironmentsService) Patch(name string, googleclouddialogflowcxv3environment *GoogleCloudDialogflowCxV3Environment) *ProjectsLocationsAgentsEnvironmentsPatchCall {
21896 c := &ProjectsLocationsAgentsEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21897 c.name = name
21898 c.googleclouddialogflowcxv3environment = googleclouddialogflowcxv3environment
21899 return c
21900 }
21901
21902
21903
21904 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsPatchCall {
21905 c.urlParams_.Set("updateMask", updateMask)
21906 return c
21907 }
21908
21909
21910
21911
21912 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsPatchCall {
21913 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21914 return c
21915 }
21916
21917
21918 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsPatchCall {
21919 c.ctx_ = ctx
21920 return c
21921 }
21922
21923
21924
21925 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Header() http.Header {
21926 if c.header_ == nil {
21927 c.header_ = make(http.Header)
21928 }
21929 return c.header_
21930 }
21931
21932 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
21933 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21934 var body io.Reader = nil
21935 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3environment)
21936 if err != nil {
21937 return nil, err
21938 }
21939 c.urlParams_.Set("alt", alt)
21940 c.urlParams_.Set("prettyPrint", "false")
21941 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
21942 urls += "?" + c.urlParams_.Encode()
21943 req, err := http.NewRequest("PATCH", urls, body)
21944 if err != nil {
21945 return nil, err
21946 }
21947 req.Header = reqHeaders
21948 googleapi.Expand(req.URL, map[string]string{
21949 "name": c.name,
21950 })
21951 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21952 }
21953
21954
21955
21956
21957
21958
21959
21960 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21961 gensupport.SetOptions(c.urlParams_, opts...)
21962 res, err := c.doRequest("json")
21963 if res != nil && res.StatusCode == http.StatusNotModified {
21964 if res.Body != nil {
21965 res.Body.Close()
21966 }
21967 return nil, gensupport.WrapError(&googleapi.Error{
21968 Code: res.StatusCode,
21969 Header: res.Header,
21970 })
21971 }
21972 if err != nil {
21973 return nil, err
21974 }
21975 defer googleapi.CloseBody(res)
21976 if err := googleapi.CheckResponse(res); err != nil {
21977 return nil, gensupport.WrapError(err)
21978 }
21979 ret := &GoogleLongrunningOperation{
21980 ServerResponse: googleapi.ServerResponse{
21981 Header: res.Header,
21982 HTTPStatusCode: res.StatusCode,
21983 },
21984 }
21985 target := &ret
21986 if err := gensupport.DecodeResponse(target, res); err != nil {
21987 return nil, err
21988 }
21989 return ret, nil
21990 }
21991
21992 type ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall struct {
21993 s *Service
21994 environment string
21995 googleclouddialogflowcxv3runcontinuoustestrequest *GoogleCloudDialogflowCxV3RunContinuousTestRequest
21996 urlParams_ gensupport.URLParams
21997 ctx_ context.Context
21998 header_ http.Header
21999 }
22000
22001
22002
22003
22004
22005
22006
22007
22008
22009 func (r *ProjectsLocationsAgentsEnvironmentsService) RunContinuousTest(environment string, googleclouddialogflowcxv3runcontinuoustestrequest *GoogleCloudDialogflowCxV3RunContinuousTestRequest) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
22010 c := &ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22011 c.environment = environment
22012 c.googleclouddialogflowcxv3runcontinuoustestrequest = googleclouddialogflowcxv3runcontinuoustestrequest
22013 return c
22014 }
22015
22016
22017
22018
22019 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
22020 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22021 return c
22022 }
22023
22024
22025 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
22026 c.ctx_ = ctx
22027 return c
22028 }
22029
22030
22031
22032 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Header() http.Header {
22033 if c.header_ == nil {
22034 c.header_ = make(http.Header)
22035 }
22036 return c.header_
22037 }
22038
22039 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) doRequest(alt string) (*http.Response, error) {
22040 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22041 var body io.Reader = nil
22042 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3runcontinuoustestrequest)
22043 if err != nil {
22044 return nil, err
22045 }
22046 c.urlParams_.Set("alt", alt)
22047 c.urlParams_.Set("prettyPrint", "false")
22048 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+environment}:runContinuousTest")
22049 urls += "?" + c.urlParams_.Encode()
22050 req, err := http.NewRequest("POST", urls, body)
22051 if err != nil {
22052 return nil, err
22053 }
22054 req.Header = reqHeaders
22055 googleapi.Expand(req.URL, map[string]string{
22056 "environment": c.environment,
22057 })
22058 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22059 }
22060
22061
22062
22063
22064
22065
22066
22067 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22068 gensupport.SetOptions(c.urlParams_, opts...)
22069 res, err := c.doRequest("json")
22070 if res != nil && res.StatusCode == http.StatusNotModified {
22071 if res.Body != nil {
22072 res.Body.Close()
22073 }
22074 return nil, gensupport.WrapError(&googleapi.Error{
22075 Code: res.StatusCode,
22076 Header: res.Header,
22077 })
22078 }
22079 if err != nil {
22080 return nil, err
22081 }
22082 defer googleapi.CloseBody(res)
22083 if err := googleapi.CheckResponse(res); err != nil {
22084 return nil, gensupport.WrapError(err)
22085 }
22086 ret := &GoogleLongrunningOperation{
22087 ServerResponse: googleapi.ServerResponse{
22088 Header: res.Header,
22089 HTTPStatusCode: res.StatusCode,
22090 },
22091 }
22092 target := &ret
22093 if err := gensupport.DecodeResponse(target, res); err != nil {
22094 return nil, err
22095 }
22096 return ret, nil
22097 }
22098
22099 type ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall struct {
22100 s *Service
22101 parent string
22102 urlParams_ gensupport.URLParams
22103 ifNoneMatch_ string
22104 ctx_ context.Context
22105 header_ http.Header
22106 }
22107
22108
22109
22110
22111
22112 func (r *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22113 c := &ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22114 c.parent = parent
22115 return c
22116 }
22117
22118
22119
22120 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22121 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22122 return c
22123 }
22124
22125
22126
22127 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22128 c.urlParams_.Set("pageToken", pageToken)
22129 return c
22130 }
22131
22132
22133
22134
22135 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22136 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22137 return c
22138 }
22139
22140
22141
22142
22143 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22144 c.ifNoneMatch_ = entityTag
22145 return c
22146 }
22147
22148
22149 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22150 c.ctx_ = ctx
22151 return c
22152 }
22153
22154
22155
22156 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Header() http.Header {
22157 if c.header_ == nil {
22158 c.header_ = make(http.Header)
22159 }
22160 return c.header_
22161 }
22162
22163 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) doRequest(alt string) (*http.Response, error) {
22164 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22165 if c.ifNoneMatch_ != "" {
22166 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22167 }
22168 var body io.Reader = nil
22169 c.urlParams_.Set("alt", alt)
22170 c.urlParams_.Set("prettyPrint", "false")
22171 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/continuousTestResults")
22172 urls += "?" + c.urlParams_.Encode()
22173 req, err := http.NewRequest("GET", urls, body)
22174 if err != nil {
22175 return nil, err
22176 }
22177 req.Header = reqHeaders
22178 googleapi.Expand(req.URL, map[string]string{
22179 "parent": c.parent,
22180 })
22181 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22182 }
22183
22184
22185
22186
22187
22188
22189
22190 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse, error) {
22191 gensupport.SetOptions(c.urlParams_, opts...)
22192 res, err := c.doRequest("json")
22193 if res != nil && res.StatusCode == http.StatusNotModified {
22194 if res.Body != nil {
22195 res.Body.Close()
22196 }
22197 return nil, gensupport.WrapError(&googleapi.Error{
22198 Code: res.StatusCode,
22199 Header: res.Header,
22200 })
22201 }
22202 if err != nil {
22203 return nil, err
22204 }
22205 defer googleapi.CloseBody(res)
22206 if err := googleapi.CheckResponse(res); err != nil {
22207 return nil, gensupport.WrapError(err)
22208 }
22209 ret := &GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse{
22210 ServerResponse: googleapi.ServerResponse{
22211 Header: res.Header,
22212 HTTPStatusCode: res.StatusCode,
22213 },
22214 }
22215 target := &ret
22216 if err := gensupport.DecodeResponse(target, res); err != nil {
22217 return nil, err
22218 }
22219 return ret, nil
22220 }
22221
22222
22223
22224
22225 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse) error) error {
22226 c.ctx_ = ctx
22227 defer c.PageToken(c.urlParams_.Get("pageToken"))
22228 for {
22229 x, err := c.Do()
22230 if err != nil {
22231 return err
22232 }
22233 if err := f(x); err != nil {
22234 return err
22235 }
22236 if x.NextPageToken == "" {
22237 return nil
22238 }
22239 c.PageToken(x.NextPageToken)
22240 }
22241 }
22242
22243 type ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall struct {
22244 s *Service
22245 name string
22246 urlParams_ gensupport.URLParams
22247 ifNoneMatch_ string
22248 ctx_ context.Context
22249 header_ http.Header
22250 }
22251
22252
22253
22254
22255
22256 func (r *ProjectsLocationsAgentsEnvironmentsDeploymentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
22257 c := &ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22258 c.name = name
22259 return c
22260 }
22261
22262
22263
22264
22265 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
22266 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22267 return c
22268 }
22269
22270
22271
22272
22273 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
22274 c.ifNoneMatch_ = entityTag
22275 return c
22276 }
22277
22278
22279 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
22280 c.ctx_ = ctx
22281 return c
22282 }
22283
22284
22285
22286 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Header() http.Header {
22287 if c.header_ == nil {
22288 c.header_ = make(http.Header)
22289 }
22290 return c.header_
22291 }
22292
22293 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
22294 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22295 if c.ifNoneMatch_ != "" {
22296 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22297 }
22298 var body io.Reader = nil
22299 c.urlParams_.Set("alt", alt)
22300 c.urlParams_.Set("prettyPrint", "false")
22301 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
22302 urls += "?" + c.urlParams_.Encode()
22303 req, err := http.NewRequest("GET", urls, body)
22304 if err != nil {
22305 return nil, err
22306 }
22307 req.Header = reqHeaders
22308 googleapi.Expand(req.URL, map[string]string{
22309 "name": c.name,
22310 })
22311 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22312 }
22313
22314
22315
22316
22317
22318
22319
22320 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Deployment, error) {
22321 gensupport.SetOptions(c.urlParams_, opts...)
22322 res, err := c.doRequest("json")
22323 if res != nil && res.StatusCode == http.StatusNotModified {
22324 if res.Body != nil {
22325 res.Body.Close()
22326 }
22327 return nil, gensupport.WrapError(&googleapi.Error{
22328 Code: res.StatusCode,
22329 Header: res.Header,
22330 })
22331 }
22332 if err != nil {
22333 return nil, err
22334 }
22335 defer googleapi.CloseBody(res)
22336 if err := googleapi.CheckResponse(res); err != nil {
22337 return nil, gensupport.WrapError(err)
22338 }
22339 ret := &GoogleCloudDialogflowCxV3Deployment{
22340 ServerResponse: googleapi.ServerResponse{
22341 Header: res.Header,
22342 HTTPStatusCode: res.StatusCode,
22343 },
22344 }
22345 target := &ret
22346 if err := gensupport.DecodeResponse(target, res); err != nil {
22347 return nil, err
22348 }
22349 return ret, nil
22350 }
22351
22352 type ProjectsLocationsAgentsEnvironmentsDeploymentsListCall struct {
22353 s *Service
22354 parent string
22355 urlParams_ gensupport.URLParams
22356 ifNoneMatch_ string
22357 ctx_ context.Context
22358 header_ http.Header
22359 }
22360
22361
22362
22363
22364
22365 func (r *ProjectsLocationsAgentsEnvironmentsDeploymentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
22366 c := &ProjectsLocationsAgentsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22367 c.parent = parent
22368 return c
22369 }
22370
22371
22372
22373 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
22374 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22375 return c
22376 }
22377
22378
22379
22380 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
22381 c.urlParams_.Set("pageToken", pageToken)
22382 return c
22383 }
22384
22385
22386
22387
22388 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
22389 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22390 return c
22391 }
22392
22393
22394
22395
22396 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
22397 c.ifNoneMatch_ = entityTag
22398 return c
22399 }
22400
22401
22402 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
22403 c.ctx_ = ctx
22404 return c
22405 }
22406
22407
22408
22409 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Header() http.Header {
22410 if c.header_ == nil {
22411 c.header_ = make(http.Header)
22412 }
22413 return c.header_
22414 }
22415
22416 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
22417 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22418 if c.ifNoneMatch_ != "" {
22419 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22420 }
22421 var body io.Reader = nil
22422 c.urlParams_.Set("alt", alt)
22423 c.urlParams_.Set("prettyPrint", "false")
22424 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/deployments")
22425 urls += "?" + c.urlParams_.Encode()
22426 req, err := http.NewRequest("GET", urls, body)
22427 if err != nil {
22428 return nil, err
22429 }
22430 req.Header = reqHeaders
22431 googleapi.Expand(req.URL, map[string]string{
22432 "parent": c.parent,
22433 })
22434 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22435 }
22436
22437
22438
22439
22440
22441
22442
22443 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListDeploymentsResponse, error) {
22444 gensupport.SetOptions(c.urlParams_, opts...)
22445 res, err := c.doRequest("json")
22446 if res != nil && res.StatusCode == http.StatusNotModified {
22447 if res.Body != nil {
22448 res.Body.Close()
22449 }
22450 return nil, gensupport.WrapError(&googleapi.Error{
22451 Code: res.StatusCode,
22452 Header: res.Header,
22453 })
22454 }
22455 if err != nil {
22456 return nil, err
22457 }
22458 defer googleapi.CloseBody(res)
22459 if err := googleapi.CheckResponse(res); err != nil {
22460 return nil, gensupport.WrapError(err)
22461 }
22462 ret := &GoogleCloudDialogflowCxV3ListDeploymentsResponse{
22463 ServerResponse: googleapi.ServerResponse{
22464 Header: res.Header,
22465 HTTPStatusCode: res.StatusCode,
22466 },
22467 }
22468 target := &ret
22469 if err := gensupport.DecodeResponse(target, res); err != nil {
22470 return nil, err
22471 }
22472 return ret, nil
22473 }
22474
22475
22476
22477
22478 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListDeploymentsResponse) error) error {
22479 c.ctx_ = ctx
22480 defer c.PageToken(c.urlParams_.Get("pageToken"))
22481 for {
22482 x, err := c.Do()
22483 if err != nil {
22484 return err
22485 }
22486 if err := f(x); err != nil {
22487 return err
22488 }
22489 if x.NextPageToken == "" {
22490 return nil
22491 }
22492 c.PageToken(x.NextPageToken)
22493 }
22494 }
22495
22496 type ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall struct {
22497 s *Service
22498 parent string
22499 googleclouddialogflowcxv3experiment *GoogleCloudDialogflowCxV3Experiment
22500 urlParams_ gensupport.URLParams
22501 ctx_ context.Context
22502 header_ http.Header
22503 }
22504
22505
22506
22507
22508
22509 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Create(parent string, googleclouddialogflowcxv3experiment *GoogleCloudDialogflowCxV3Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
22510 c := &ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22511 c.parent = parent
22512 c.googleclouddialogflowcxv3experiment = googleclouddialogflowcxv3experiment
22513 return c
22514 }
22515
22516
22517
22518
22519 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
22520 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22521 return c
22522 }
22523
22524
22525 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
22526 c.ctx_ = ctx
22527 return c
22528 }
22529
22530
22531
22532 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Header() http.Header {
22533 if c.header_ == nil {
22534 c.header_ = make(http.Header)
22535 }
22536 return c.header_
22537 }
22538
22539 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) doRequest(alt string) (*http.Response, error) {
22540 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22541 var body io.Reader = nil
22542 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3experiment)
22543 if err != nil {
22544 return nil, err
22545 }
22546 c.urlParams_.Set("alt", alt)
22547 c.urlParams_.Set("prettyPrint", "false")
22548 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/experiments")
22549 urls += "?" + c.urlParams_.Encode()
22550 req, err := http.NewRequest("POST", urls, body)
22551 if err != nil {
22552 return nil, err
22553 }
22554 req.Header = reqHeaders
22555 googleapi.Expand(req.URL, map[string]string{
22556 "parent": c.parent,
22557 })
22558 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22559 }
22560
22561
22562
22563
22564
22565
22566
22567 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Experiment, error) {
22568 gensupport.SetOptions(c.urlParams_, opts...)
22569 res, err := c.doRequest("json")
22570 if res != nil && res.StatusCode == http.StatusNotModified {
22571 if res.Body != nil {
22572 res.Body.Close()
22573 }
22574 return nil, gensupport.WrapError(&googleapi.Error{
22575 Code: res.StatusCode,
22576 Header: res.Header,
22577 })
22578 }
22579 if err != nil {
22580 return nil, err
22581 }
22582 defer googleapi.CloseBody(res)
22583 if err := googleapi.CheckResponse(res); err != nil {
22584 return nil, gensupport.WrapError(err)
22585 }
22586 ret := &GoogleCloudDialogflowCxV3Experiment{
22587 ServerResponse: googleapi.ServerResponse{
22588 Header: res.Header,
22589 HTTPStatusCode: res.StatusCode,
22590 },
22591 }
22592 target := &ret
22593 if err := gensupport.DecodeResponse(target, res); err != nil {
22594 return nil, err
22595 }
22596 return ret, nil
22597 }
22598
22599 type ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall struct {
22600 s *Service
22601 name string
22602 urlParams_ gensupport.URLParams
22603 ctx_ context.Context
22604 header_ http.Header
22605 }
22606
22607
22608
22609
22610
22611 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
22612 c := &ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22613 c.name = name
22614 return c
22615 }
22616
22617
22618
22619
22620 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
22621 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22622 return c
22623 }
22624
22625
22626 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
22627 c.ctx_ = ctx
22628 return c
22629 }
22630
22631
22632
22633 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Header() http.Header {
22634 if c.header_ == nil {
22635 c.header_ = make(http.Header)
22636 }
22637 return c.header_
22638 }
22639
22640 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) doRequest(alt string) (*http.Response, error) {
22641 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22642 var body io.Reader = nil
22643 c.urlParams_.Set("alt", alt)
22644 c.urlParams_.Set("prettyPrint", "false")
22645 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
22646 urls += "?" + c.urlParams_.Encode()
22647 req, err := http.NewRequest("DELETE", urls, body)
22648 if err != nil {
22649 return nil, err
22650 }
22651 req.Header = reqHeaders
22652 googleapi.Expand(req.URL, map[string]string{
22653 "name": c.name,
22654 })
22655 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22656 }
22657
22658
22659
22660
22661
22662
22663
22664 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22665 gensupport.SetOptions(c.urlParams_, opts...)
22666 res, err := c.doRequest("json")
22667 if res != nil && res.StatusCode == http.StatusNotModified {
22668 if res.Body != nil {
22669 res.Body.Close()
22670 }
22671 return nil, gensupport.WrapError(&googleapi.Error{
22672 Code: res.StatusCode,
22673 Header: res.Header,
22674 })
22675 }
22676 if err != nil {
22677 return nil, err
22678 }
22679 defer googleapi.CloseBody(res)
22680 if err := googleapi.CheckResponse(res); err != nil {
22681 return nil, gensupport.WrapError(err)
22682 }
22683 ret := &GoogleProtobufEmpty{
22684 ServerResponse: googleapi.ServerResponse{
22685 Header: res.Header,
22686 HTTPStatusCode: res.StatusCode,
22687 },
22688 }
22689 target := &ret
22690 if err := gensupport.DecodeResponse(target, res); err != nil {
22691 return nil, err
22692 }
22693 return ret, nil
22694 }
22695
22696 type ProjectsLocationsAgentsEnvironmentsExperimentsGetCall struct {
22697 s *Service
22698 name string
22699 urlParams_ gensupport.URLParams
22700 ifNoneMatch_ string
22701 ctx_ context.Context
22702 header_ http.Header
22703 }
22704
22705
22706
22707
22708
22709 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
22710 c := &ProjectsLocationsAgentsEnvironmentsExperimentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22711 c.name = name
22712 return c
22713 }
22714
22715
22716
22717
22718 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
22719 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22720 return c
22721 }
22722
22723
22724
22725
22726 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
22727 c.ifNoneMatch_ = entityTag
22728 return c
22729 }
22730
22731
22732 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
22733 c.ctx_ = ctx
22734 return c
22735 }
22736
22737
22738
22739 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Header() http.Header {
22740 if c.header_ == nil {
22741 c.header_ = make(http.Header)
22742 }
22743 return c.header_
22744 }
22745
22746 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) doRequest(alt string) (*http.Response, error) {
22747 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22748 if c.ifNoneMatch_ != "" {
22749 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22750 }
22751 var body io.Reader = nil
22752 c.urlParams_.Set("alt", alt)
22753 c.urlParams_.Set("prettyPrint", "false")
22754 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
22755 urls += "?" + c.urlParams_.Encode()
22756 req, err := http.NewRequest("GET", urls, body)
22757 if err != nil {
22758 return nil, err
22759 }
22760 req.Header = reqHeaders
22761 googleapi.Expand(req.URL, map[string]string{
22762 "name": c.name,
22763 })
22764 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22765 }
22766
22767
22768
22769
22770
22771
22772
22773 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Experiment, error) {
22774 gensupport.SetOptions(c.urlParams_, opts...)
22775 res, err := c.doRequest("json")
22776 if res != nil && res.StatusCode == http.StatusNotModified {
22777 if res.Body != nil {
22778 res.Body.Close()
22779 }
22780 return nil, gensupport.WrapError(&googleapi.Error{
22781 Code: res.StatusCode,
22782 Header: res.Header,
22783 })
22784 }
22785 if err != nil {
22786 return nil, err
22787 }
22788 defer googleapi.CloseBody(res)
22789 if err := googleapi.CheckResponse(res); err != nil {
22790 return nil, gensupport.WrapError(err)
22791 }
22792 ret := &GoogleCloudDialogflowCxV3Experiment{
22793 ServerResponse: googleapi.ServerResponse{
22794 Header: res.Header,
22795 HTTPStatusCode: res.StatusCode,
22796 },
22797 }
22798 target := &ret
22799 if err := gensupport.DecodeResponse(target, res); err != nil {
22800 return nil, err
22801 }
22802 return ret, nil
22803 }
22804
22805 type ProjectsLocationsAgentsEnvironmentsExperimentsListCall struct {
22806 s *Service
22807 parent string
22808 urlParams_ gensupport.URLParams
22809 ifNoneMatch_ string
22810 ctx_ context.Context
22811 header_ http.Header
22812 }
22813
22814
22815
22816
22817
22818 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
22819 c := &ProjectsLocationsAgentsEnvironmentsExperimentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22820 c.parent = parent
22821 return c
22822 }
22823
22824
22825
22826 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
22827 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22828 return c
22829 }
22830
22831
22832
22833 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
22834 c.urlParams_.Set("pageToken", pageToken)
22835 return c
22836 }
22837
22838
22839
22840
22841 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
22842 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22843 return c
22844 }
22845
22846
22847
22848
22849 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
22850 c.ifNoneMatch_ = entityTag
22851 return c
22852 }
22853
22854
22855 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
22856 c.ctx_ = ctx
22857 return c
22858 }
22859
22860
22861
22862 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Header() http.Header {
22863 if c.header_ == nil {
22864 c.header_ = make(http.Header)
22865 }
22866 return c.header_
22867 }
22868
22869 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) doRequest(alt string) (*http.Response, error) {
22870 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22871 if c.ifNoneMatch_ != "" {
22872 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22873 }
22874 var body io.Reader = nil
22875 c.urlParams_.Set("alt", alt)
22876 c.urlParams_.Set("prettyPrint", "false")
22877 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/experiments")
22878 urls += "?" + c.urlParams_.Encode()
22879 req, err := http.NewRequest("GET", urls, body)
22880 if err != nil {
22881 return nil, err
22882 }
22883 req.Header = reqHeaders
22884 googleapi.Expand(req.URL, map[string]string{
22885 "parent": c.parent,
22886 })
22887 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22888 }
22889
22890
22891
22892
22893
22894
22895
22896 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListExperimentsResponse, error) {
22897 gensupport.SetOptions(c.urlParams_, opts...)
22898 res, err := c.doRequest("json")
22899 if res != nil && res.StatusCode == http.StatusNotModified {
22900 if res.Body != nil {
22901 res.Body.Close()
22902 }
22903 return nil, gensupport.WrapError(&googleapi.Error{
22904 Code: res.StatusCode,
22905 Header: res.Header,
22906 })
22907 }
22908 if err != nil {
22909 return nil, err
22910 }
22911 defer googleapi.CloseBody(res)
22912 if err := googleapi.CheckResponse(res); err != nil {
22913 return nil, gensupport.WrapError(err)
22914 }
22915 ret := &GoogleCloudDialogflowCxV3ListExperimentsResponse{
22916 ServerResponse: googleapi.ServerResponse{
22917 Header: res.Header,
22918 HTTPStatusCode: res.StatusCode,
22919 },
22920 }
22921 target := &ret
22922 if err := gensupport.DecodeResponse(target, res); err != nil {
22923 return nil, err
22924 }
22925 return ret, nil
22926 }
22927
22928
22929
22930
22931 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListExperimentsResponse) error) error {
22932 c.ctx_ = ctx
22933 defer c.PageToken(c.urlParams_.Get("pageToken"))
22934 for {
22935 x, err := c.Do()
22936 if err != nil {
22937 return err
22938 }
22939 if err := f(x); err != nil {
22940 return err
22941 }
22942 if x.NextPageToken == "" {
22943 return nil
22944 }
22945 c.PageToken(x.NextPageToken)
22946 }
22947 }
22948
22949 type ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall struct {
22950 s *Service
22951 name string
22952 googleclouddialogflowcxv3experiment *GoogleCloudDialogflowCxV3Experiment
22953 urlParams_ gensupport.URLParams
22954 ctx_ context.Context
22955 header_ http.Header
22956 }
22957
22958
22959
22960
22961
22962 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Patch(name string, googleclouddialogflowcxv3experiment *GoogleCloudDialogflowCxV3Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
22963 c := &ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22964 c.name = name
22965 c.googleclouddialogflowcxv3experiment = googleclouddialogflowcxv3experiment
22966 return c
22967 }
22968
22969
22970
22971 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
22972 c.urlParams_.Set("updateMask", updateMask)
22973 return c
22974 }
22975
22976
22977
22978
22979 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
22980 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22981 return c
22982 }
22983
22984
22985 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
22986 c.ctx_ = ctx
22987 return c
22988 }
22989
22990
22991
22992 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Header() http.Header {
22993 if c.header_ == nil {
22994 c.header_ = make(http.Header)
22995 }
22996 return c.header_
22997 }
22998
22999 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) doRequest(alt string) (*http.Response, error) {
23000 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23001 var body io.Reader = nil
23002 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3experiment)
23003 if err != nil {
23004 return nil, err
23005 }
23006 c.urlParams_.Set("alt", alt)
23007 c.urlParams_.Set("prettyPrint", "false")
23008 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
23009 urls += "?" + c.urlParams_.Encode()
23010 req, err := http.NewRequest("PATCH", urls, body)
23011 if err != nil {
23012 return nil, err
23013 }
23014 req.Header = reqHeaders
23015 googleapi.Expand(req.URL, map[string]string{
23016 "name": c.name,
23017 })
23018 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23019 }
23020
23021
23022
23023
23024
23025
23026
23027 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Experiment, error) {
23028 gensupport.SetOptions(c.urlParams_, opts...)
23029 res, err := c.doRequest("json")
23030 if res != nil && res.StatusCode == http.StatusNotModified {
23031 if res.Body != nil {
23032 res.Body.Close()
23033 }
23034 return nil, gensupport.WrapError(&googleapi.Error{
23035 Code: res.StatusCode,
23036 Header: res.Header,
23037 })
23038 }
23039 if err != nil {
23040 return nil, err
23041 }
23042 defer googleapi.CloseBody(res)
23043 if err := googleapi.CheckResponse(res); err != nil {
23044 return nil, gensupport.WrapError(err)
23045 }
23046 ret := &GoogleCloudDialogflowCxV3Experiment{
23047 ServerResponse: googleapi.ServerResponse{
23048 Header: res.Header,
23049 HTTPStatusCode: res.StatusCode,
23050 },
23051 }
23052 target := &ret
23053 if err := gensupport.DecodeResponse(target, res); err != nil {
23054 return nil, err
23055 }
23056 return ret, nil
23057 }
23058
23059 type ProjectsLocationsAgentsEnvironmentsExperimentsStartCall struct {
23060 s *Service
23061 name string
23062 googleclouddialogflowcxv3startexperimentrequest *GoogleCloudDialogflowCxV3StartExperimentRequest
23063 urlParams_ gensupport.URLParams
23064 ctx_ context.Context
23065 header_ http.Header
23066 }
23067
23068
23069
23070
23071
23072
23073 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Start(name string, googleclouddialogflowcxv3startexperimentrequest *GoogleCloudDialogflowCxV3StartExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
23074 c := &ProjectsLocationsAgentsEnvironmentsExperimentsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23075 c.name = name
23076 c.googleclouddialogflowcxv3startexperimentrequest = googleclouddialogflowcxv3startexperimentrequest
23077 return c
23078 }
23079
23080
23081
23082
23083 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
23084 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23085 return c
23086 }
23087
23088
23089 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
23090 c.ctx_ = ctx
23091 return c
23092 }
23093
23094
23095
23096 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Header() http.Header {
23097 if c.header_ == nil {
23098 c.header_ = make(http.Header)
23099 }
23100 return c.header_
23101 }
23102
23103 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) doRequest(alt string) (*http.Response, error) {
23104 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23105 var body io.Reader = nil
23106 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3startexperimentrequest)
23107 if err != nil {
23108 return nil, err
23109 }
23110 c.urlParams_.Set("alt", alt)
23111 c.urlParams_.Set("prettyPrint", "false")
23112 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:start")
23113 urls += "?" + c.urlParams_.Encode()
23114 req, err := http.NewRequest("POST", urls, body)
23115 if err != nil {
23116 return nil, err
23117 }
23118 req.Header = reqHeaders
23119 googleapi.Expand(req.URL, map[string]string{
23120 "name": c.name,
23121 })
23122 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23123 }
23124
23125
23126
23127
23128
23129
23130
23131 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Experiment, error) {
23132 gensupport.SetOptions(c.urlParams_, opts...)
23133 res, err := c.doRequest("json")
23134 if res != nil && res.StatusCode == http.StatusNotModified {
23135 if res.Body != nil {
23136 res.Body.Close()
23137 }
23138 return nil, gensupport.WrapError(&googleapi.Error{
23139 Code: res.StatusCode,
23140 Header: res.Header,
23141 })
23142 }
23143 if err != nil {
23144 return nil, err
23145 }
23146 defer googleapi.CloseBody(res)
23147 if err := googleapi.CheckResponse(res); err != nil {
23148 return nil, gensupport.WrapError(err)
23149 }
23150 ret := &GoogleCloudDialogflowCxV3Experiment{
23151 ServerResponse: googleapi.ServerResponse{
23152 Header: res.Header,
23153 HTTPStatusCode: res.StatusCode,
23154 },
23155 }
23156 target := &ret
23157 if err := gensupport.DecodeResponse(target, res); err != nil {
23158 return nil, err
23159 }
23160 return ret, nil
23161 }
23162
23163 type ProjectsLocationsAgentsEnvironmentsExperimentsStopCall struct {
23164 s *Service
23165 name string
23166 googleclouddialogflowcxv3stopexperimentrequest *GoogleCloudDialogflowCxV3StopExperimentRequest
23167 urlParams_ gensupport.URLParams
23168 ctx_ context.Context
23169 header_ http.Header
23170 }
23171
23172
23173
23174
23175
23176
23177 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Stop(name string, googleclouddialogflowcxv3stopexperimentrequest *GoogleCloudDialogflowCxV3StopExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
23178 c := &ProjectsLocationsAgentsEnvironmentsExperimentsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23179 c.name = name
23180 c.googleclouddialogflowcxv3stopexperimentrequest = googleclouddialogflowcxv3stopexperimentrequest
23181 return c
23182 }
23183
23184
23185
23186
23187 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
23188 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23189 return c
23190 }
23191
23192
23193 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
23194 c.ctx_ = ctx
23195 return c
23196 }
23197
23198
23199
23200 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Header() http.Header {
23201 if c.header_ == nil {
23202 c.header_ = make(http.Header)
23203 }
23204 return c.header_
23205 }
23206
23207 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) doRequest(alt string) (*http.Response, error) {
23208 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23209 var body io.Reader = nil
23210 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3stopexperimentrequest)
23211 if err != nil {
23212 return nil, err
23213 }
23214 c.urlParams_.Set("alt", alt)
23215 c.urlParams_.Set("prettyPrint", "false")
23216 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:stop")
23217 urls += "?" + c.urlParams_.Encode()
23218 req, err := http.NewRequest("POST", urls, body)
23219 if err != nil {
23220 return nil, err
23221 }
23222 req.Header = reqHeaders
23223 googleapi.Expand(req.URL, map[string]string{
23224 "name": c.name,
23225 })
23226 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23227 }
23228
23229
23230
23231
23232
23233
23234
23235 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Experiment, error) {
23236 gensupport.SetOptions(c.urlParams_, opts...)
23237 res, err := c.doRequest("json")
23238 if res != nil && res.StatusCode == http.StatusNotModified {
23239 if res.Body != nil {
23240 res.Body.Close()
23241 }
23242 return nil, gensupport.WrapError(&googleapi.Error{
23243 Code: res.StatusCode,
23244 Header: res.Header,
23245 })
23246 }
23247 if err != nil {
23248 return nil, err
23249 }
23250 defer googleapi.CloseBody(res)
23251 if err := googleapi.CheckResponse(res); err != nil {
23252 return nil, gensupport.WrapError(err)
23253 }
23254 ret := &GoogleCloudDialogflowCxV3Experiment{
23255 ServerResponse: googleapi.ServerResponse{
23256 Header: res.Header,
23257 HTTPStatusCode: res.StatusCode,
23258 },
23259 }
23260 target := &ret
23261 if err := gensupport.DecodeResponse(target, res); err != nil {
23262 return nil, err
23263 }
23264 return ret, nil
23265 }
23266
23267 type ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall struct {
23268 s *Service
23269 sessionid string
23270 googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest
23271 urlParams_ gensupport.URLParams
23272 ctx_ context.Context
23273 header_ http.Header
23274 }
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
23296 c := &ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23297 c.sessionid = sessionid
23298 c.googleclouddialogflowcxv3detectintentrequest = googleclouddialogflowcxv3detectintentrequest
23299 return c
23300 }
23301
23302
23303
23304
23305 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
23306 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23307 return c
23308 }
23309
23310
23311 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
23312 c.ctx_ = ctx
23313 return c
23314 }
23315
23316
23317
23318 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Header() http.Header {
23319 if c.header_ == nil {
23320 c.header_ = make(http.Header)
23321 }
23322 return c.header_
23323 }
23324
23325 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
23326 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23327 var body io.Reader = nil
23328 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3detectintentrequest)
23329 if err != nil {
23330 return nil, err
23331 }
23332 c.urlParams_.Set("alt", alt)
23333 c.urlParams_.Set("prettyPrint", "false")
23334 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:detectIntent")
23335 urls += "?" + c.urlParams_.Encode()
23336 req, err := http.NewRequest("POST", urls, body)
23337 if err != nil {
23338 return nil, err
23339 }
23340 req.Header = reqHeaders
23341 googleapi.Expand(req.URL, map[string]string{
23342 "session": c.sessionid,
23343 })
23344 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23345 }
23346
23347
23348
23349
23350
23351
23352
23353 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3DetectIntentResponse, error) {
23354 gensupport.SetOptions(c.urlParams_, opts...)
23355 res, err := c.doRequest("json")
23356 if res != nil && res.StatusCode == http.StatusNotModified {
23357 if res.Body != nil {
23358 res.Body.Close()
23359 }
23360 return nil, gensupport.WrapError(&googleapi.Error{
23361 Code: res.StatusCode,
23362 Header: res.Header,
23363 })
23364 }
23365 if err != nil {
23366 return nil, err
23367 }
23368 defer googleapi.CloseBody(res)
23369 if err := googleapi.CheckResponse(res); err != nil {
23370 return nil, gensupport.WrapError(err)
23371 }
23372 ret := &GoogleCloudDialogflowCxV3DetectIntentResponse{
23373 ServerResponse: googleapi.ServerResponse{
23374 Header: res.Header,
23375 HTTPStatusCode: res.StatusCode,
23376 },
23377 }
23378 target := &ret
23379 if err := gensupport.DecodeResponse(target, res); err != nil {
23380 return nil, err
23381 }
23382 return ret, nil
23383 }
23384
23385 type ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall struct {
23386 s *Service
23387 sessionid string
23388 googleclouddialogflowcxv3fulfillintentrequest *GoogleCloudDialogflowCxV3FulfillIntentRequest
23389 urlParams_ gensupport.URLParams
23390 ctx_ context.Context
23391 header_ http.Header
23392 }
23393
23394
23395
23396
23397
23398
23399
23400
23401
23402
23403
23404
23405
23406
23407 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3fulfillintentrequest *GoogleCloudDialogflowCxV3FulfillIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
23408 c := &ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23409 c.sessionid = sessionid
23410 c.googleclouddialogflowcxv3fulfillintentrequest = googleclouddialogflowcxv3fulfillintentrequest
23411 return c
23412 }
23413
23414
23415
23416
23417 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
23418 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23419 return c
23420 }
23421
23422
23423 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
23424 c.ctx_ = ctx
23425 return c
23426 }
23427
23428
23429
23430 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Header() http.Header {
23431 if c.header_ == nil {
23432 c.header_ = make(http.Header)
23433 }
23434 return c.header_
23435 }
23436
23437 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
23438 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23439 var body io.Reader = nil
23440 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3fulfillintentrequest)
23441 if err != nil {
23442 return nil, err
23443 }
23444 c.urlParams_.Set("alt", alt)
23445 c.urlParams_.Set("prettyPrint", "false")
23446 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:fulfillIntent")
23447 urls += "?" + c.urlParams_.Encode()
23448 req, err := http.NewRequest("POST", urls, body)
23449 if err != nil {
23450 return nil, err
23451 }
23452 req.Header = reqHeaders
23453 googleapi.Expand(req.URL, map[string]string{
23454 "session": c.sessionid,
23455 })
23456 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23457 }
23458
23459
23460
23461
23462
23463
23464
23465 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3FulfillIntentResponse, error) {
23466 gensupport.SetOptions(c.urlParams_, opts...)
23467 res, err := c.doRequest("json")
23468 if res != nil && res.StatusCode == http.StatusNotModified {
23469 if res.Body != nil {
23470 res.Body.Close()
23471 }
23472 return nil, gensupport.WrapError(&googleapi.Error{
23473 Code: res.StatusCode,
23474 Header: res.Header,
23475 })
23476 }
23477 if err != nil {
23478 return nil, err
23479 }
23480 defer googleapi.CloseBody(res)
23481 if err := googleapi.CheckResponse(res); err != nil {
23482 return nil, gensupport.WrapError(err)
23483 }
23484 ret := &GoogleCloudDialogflowCxV3FulfillIntentResponse{
23485 ServerResponse: googleapi.ServerResponse{
23486 Header: res.Header,
23487 HTTPStatusCode: res.StatusCode,
23488 },
23489 }
23490 target := &ret
23491 if err := gensupport.DecodeResponse(target, res); err != nil {
23492 return nil, err
23493 }
23494 return ret, nil
23495 }
23496
23497 type ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall struct {
23498 s *Service
23499 sessionid string
23500 googleclouddialogflowcxv3matchintentrequest *GoogleCloudDialogflowCxV3MatchIntentRequest
23501 urlParams_ gensupport.URLParams
23502 ctx_ context.Context
23503 header_ http.Header
23504 }
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3matchintentrequest *GoogleCloudDialogflowCxV3MatchIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
23519 c := &ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23520 c.sessionid = sessionid
23521 c.googleclouddialogflowcxv3matchintentrequest = googleclouddialogflowcxv3matchintentrequest
23522 return c
23523 }
23524
23525
23526
23527
23528 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
23529 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23530 return c
23531 }
23532
23533
23534 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
23535 c.ctx_ = ctx
23536 return c
23537 }
23538
23539
23540
23541 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Header() http.Header {
23542 if c.header_ == nil {
23543 c.header_ = make(http.Header)
23544 }
23545 return c.header_
23546 }
23547
23548 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
23549 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23550 var body io.Reader = nil
23551 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3matchintentrequest)
23552 if err != nil {
23553 return nil, err
23554 }
23555 c.urlParams_.Set("alt", alt)
23556 c.urlParams_.Set("prettyPrint", "false")
23557 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:matchIntent")
23558 urls += "?" + c.urlParams_.Encode()
23559 req, err := http.NewRequest("POST", urls, body)
23560 if err != nil {
23561 return nil, err
23562 }
23563 req.Header = reqHeaders
23564 googleapi.Expand(req.URL, map[string]string{
23565 "session": c.sessionid,
23566 })
23567 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23568 }
23569
23570
23571
23572
23573
23574
23575
23576 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3MatchIntentResponse, error) {
23577 gensupport.SetOptions(c.urlParams_, opts...)
23578 res, err := c.doRequest("json")
23579 if res != nil && res.StatusCode == http.StatusNotModified {
23580 if res.Body != nil {
23581 res.Body.Close()
23582 }
23583 return nil, gensupport.WrapError(&googleapi.Error{
23584 Code: res.StatusCode,
23585 Header: res.Header,
23586 })
23587 }
23588 if err != nil {
23589 return nil, err
23590 }
23591 defer googleapi.CloseBody(res)
23592 if err := googleapi.CheckResponse(res); err != nil {
23593 return nil, gensupport.WrapError(err)
23594 }
23595 ret := &GoogleCloudDialogflowCxV3MatchIntentResponse{
23596 ServerResponse: googleapi.ServerResponse{
23597 Header: res.Header,
23598 HTTPStatusCode: res.StatusCode,
23599 },
23600 }
23601 target := &ret
23602 if err := gensupport.DecodeResponse(target, res); err != nil {
23603 return nil, err
23604 }
23605 return ret, nil
23606 }
23607
23608 type ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall struct {
23609 s *Service
23610 sessionid string
23611 googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest
23612 urlParams_ gensupport.URLParams
23613 ctx_ context.Context
23614 header_ http.Header
23615 }
23616
23617
23618
23619
23620
23621
23622
23623
23624
23625
23626
23627
23628
23629
23630
23631
23632
23633
23634
23635 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) ServerStreamingDetectIntent(sessionid string, googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
23636 c := &ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23637 c.sessionid = sessionid
23638 c.googleclouddialogflowcxv3detectintentrequest = googleclouddialogflowcxv3detectintentrequest
23639 return c
23640 }
23641
23642
23643
23644
23645 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
23646 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23647 return c
23648 }
23649
23650
23651 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
23652 c.ctx_ = ctx
23653 return c
23654 }
23655
23656
23657
23658 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Header() http.Header {
23659 if c.header_ == nil {
23660 c.header_ = make(http.Header)
23661 }
23662 return c.header_
23663 }
23664
23665 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) doRequest(alt string) (*http.Response, error) {
23666 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23667 var body io.Reader = nil
23668 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3detectintentrequest)
23669 if err != nil {
23670 return nil, err
23671 }
23672 c.urlParams_.Set("alt", alt)
23673 c.urlParams_.Set("prettyPrint", "false")
23674 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:serverStreamingDetectIntent")
23675 urls += "?" + c.urlParams_.Encode()
23676 req, err := http.NewRequest("POST", urls, body)
23677 if err != nil {
23678 return nil, err
23679 }
23680 req.Header = reqHeaders
23681 googleapi.Expand(req.URL, map[string]string{
23682 "session": c.sessionid,
23683 })
23684 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23685 }
23686
23687
23688
23689
23690
23691
23692
23693 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3DetectIntentResponse, error) {
23694 gensupport.SetOptions(c.urlParams_, opts...)
23695 res, err := c.doRequest("json")
23696 if res != nil && res.StatusCode == http.StatusNotModified {
23697 if res.Body != nil {
23698 res.Body.Close()
23699 }
23700 return nil, gensupport.WrapError(&googleapi.Error{
23701 Code: res.StatusCode,
23702 Header: res.Header,
23703 })
23704 }
23705 if err != nil {
23706 return nil, err
23707 }
23708 defer googleapi.CloseBody(res)
23709 if err := googleapi.CheckResponse(res); err != nil {
23710 return nil, gensupport.WrapError(err)
23711 }
23712 ret := &GoogleCloudDialogflowCxV3DetectIntentResponse{
23713 ServerResponse: googleapi.ServerResponse{
23714 Header: res.Header,
23715 HTTPStatusCode: res.StatusCode,
23716 },
23717 }
23718 target := &ret
23719 if err := gensupport.DecodeResponse(target, res); err != nil {
23720 return nil, err
23721 }
23722 return ret, nil
23723 }
23724
23725 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall struct {
23726 s *Service
23727 parent string
23728 googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType
23729 urlParams_ gensupport.URLParams
23730 ctx_ context.Context
23731 header_ http.Header
23732 }
23733
23734
23735
23736
23737
23738
23739
23740 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
23741 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23742 c.parent = parent
23743 c.googleclouddialogflowcxv3sessionentitytype = googleclouddialogflowcxv3sessionentitytype
23744 return c
23745 }
23746
23747
23748
23749
23750 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
23751 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23752 return c
23753 }
23754
23755
23756 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
23757 c.ctx_ = ctx
23758 return c
23759 }
23760
23761
23762
23763 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Header() http.Header {
23764 if c.header_ == nil {
23765 c.header_ = make(http.Header)
23766 }
23767 return c.header_
23768 }
23769
23770 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
23771 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23772 var body io.Reader = nil
23773 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3sessionentitytype)
23774 if err != nil {
23775 return nil, err
23776 }
23777 c.urlParams_.Set("alt", alt)
23778 c.urlParams_.Set("prettyPrint", "false")
23779 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes")
23780 urls += "?" + c.urlParams_.Encode()
23781 req, err := http.NewRequest("POST", urls, body)
23782 if err != nil {
23783 return nil, err
23784 }
23785 req.Header = reqHeaders
23786 googleapi.Expand(req.URL, map[string]string{
23787 "parent": c.parent,
23788 })
23789 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23790 }
23791
23792
23793
23794
23795
23796
23797
23798 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SessionEntityType, error) {
23799 gensupport.SetOptions(c.urlParams_, opts...)
23800 res, err := c.doRequest("json")
23801 if res != nil && res.StatusCode == http.StatusNotModified {
23802 if res.Body != nil {
23803 res.Body.Close()
23804 }
23805 return nil, gensupport.WrapError(&googleapi.Error{
23806 Code: res.StatusCode,
23807 Header: res.Header,
23808 })
23809 }
23810 if err != nil {
23811 return nil, err
23812 }
23813 defer googleapi.CloseBody(res)
23814 if err := googleapi.CheckResponse(res); err != nil {
23815 return nil, gensupport.WrapError(err)
23816 }
23817 ret := &GoogleCloudDialogflowCxV3SessionEntityType{
23818 ServerResponse: googleapi.ServerResponse{
23819 Header: res.Header,
23820 HTTPStatusCode: res.StatusCode,
23821 },
23822 }
23823 target := &ret
23824 if err := gensupport.DecodeResponse(target, res); err != nil {
23825 return nil, err
23826 }
23827 return ret, nil
23828 }
23829
23830 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall struct {
23831 s *Service
23832 name string
23833 urlParams_ gensupport.URLParams
23834 ctx_ context.Context
23835 header_ http.Header
23836 }
23837
23838
23839
23840
23841
23842
23843
23844 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
23845 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23846 c.name = name
23847 return c
23848 }
23849
23850
23851
23852
23853 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
23854 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23855 return c
23856 }
23857
23858
23859 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
23860 c.ctx_ = ctx
23861 return c
23862 }
23863
23864
23865
23866 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Header() http.Header {
23867 if c.header_ == nil {
23868 c.header_ = make(http.Header)
23869 }
23870 return c.header_
23871 }
23872
23873 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
23874 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23875 var body io.Reader = nil
23876 c.urlParams_.Set("alt", alt)
23877 c.urlParams_.Set("prettyPrint", "false")
23878 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
23879 urls += "?" + c.urlParams_.Encode()
23880 req, err := http.NewRequest("DELETE", urls, body)
23881 if err != nil {
23882 return nil, err
23883 }
23884 req.Header = reqHeaders
23885 googleapi.Expand(req.URL, map[string]string{
23886 "name": c.name,
23887 })
23888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23889 }
23890
23891
23892
23893
23894
23895
23896
23897 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23898 gensupport.SetOptions(c.urlParams_, opts...)
23899 res, err := c.doRequest("json")
23900 if res != nil && res.StatusCode == http.StatusNotModified {
23901 if res.Body != nil {
23902 res.Body.Close()
23903 }
23904 return nil, gensupport.WrapError(&googleapi.Error{
23905 Code: res.StatusCode,
23906 Header: res.Header,
23907 })
23908 }
23909 if err != nil {
23910 return nil, err
23911 }
23912 defer googleapi.CloseBody(res)
23913 if err := googleapi.CheckResponse(res); err != nil {
23914 return nil, gensupport.WrapError(err)
23915 }
23916 ret := &GoogleProtobufEmpty{
23917 ServerResponse: googleapi.ServerResponse{
23918 Header: res.Header,
23919 HTTPStatusCode: res.StatusCode,
23920 },
23921 }
23922 target := &ret
23923 if err := gensupport.DecodeResponse(target, res); err != nil {
23924 return nil, err
23925 }
23926 return ret, nil
23927 }
23928
23929 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall struct {
23930 s *Service
23931 name string
23932 urlParams_ gensupport.URLParams
23933 ifNoneMatch_ string
23934 ctx_ context.Context
23935 header_ http.Header
23936 }
23937
23938
23939
23940
23941
23942
23943
23944 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
23945 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23946 c.name = name
23947 return c
23948 }
23949
23950
23951
23952
23953 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
23954 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23955 return c
23956 }
23957
23958
23959
23960
23961 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
23962 c.ifNoneMatch_ = entityTag
23963 return c
23964 }
23965
23966
23967 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
23968 c.ctx_ = ctx
23969 return c
23970 }
23971
23972
23973
23974 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Header() http.Header {
23975 if c.header_ == nil {
23976 c.header_ = make(http.Header)
23977 }
23978 return c.header_
23979 }
23980
23981 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
23982 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23983 if c.ifNoneMatch_ != "" {
23984 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23985 }
23986 var body io.Reader = nil
23987 c.urlParams_.Set("alt", alt)
23988 c.urlParams_.Set("prettyPrint", "false")
23989 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
23990 urls += "?" + c.urlParams_.Encode()
23991 req, err := http.NewRequest("GET", urls, body)
23992 if err != nil {
23993 return nil, err
23994 }
23995 req.Header = reqHeaders
23996 googleapi.Expand(req.URL, map[string]string{
23997 "name": c.name,
23998 })
23999 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24000 }
24001
24002
24003
24004
24005
24006
24007
24008 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SessionEntityType, error) {
24009 gensupport.SetOptions(c.urlParams_, opts...)
24010 res, err := c.doRequest("json")
24011 if res != nil && res.StatusCode == http.StatusNotModified {
24012 if res.Body != nil {
24013 res.Body.Close()
24014 }
24015 return nil, gensupport.WrapError(&googleapi.Error{
24016 Code: res.StatusCode,
24017 Header: res.Header,
24018 })
24019 }
24020 if err != nil {
24021 return nil, err
24022 }
24023 defer googleapi.CloseBody(res)
24024 if err := googleapi.CheckResponse(res); err != nil {
24025 return nil, gensupport.WrapError(err)
24026 }
24027 ret := &GoogleCloudDialogflowCxV3SessionEntityType{
24028 ServerResponse: googleapi.ServerResponse{
24029 Header: res.Header,
24030 HTTPStatusCode: res.StatusCode,
24031 },
24032 }
24033 target := &ret
24034 if err := gensupport.DecodeResponse(target, res); err != nil {
24035 return nil, err
24036 }
24037 return ret, nil
24038 }
24039
24040 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall struct {
24041 s *Service
24042 parent string
24043 urlParams_ gensupport.URLParams
24044 ifNoneMatch_ string
24045 ctx_ context.Context
24046 header_ http.Header
24047 }
24048
24049
24050
24051
24052
24053
24054
24055 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24056 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24057 c.parent = parent
24058 return c
24059 }
24060
24061
24062
24063 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24064 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24065 return c
24066 }
24067
24068
24069
24070 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24071 c.urlParams_.Set("pageToken", pageToken)
24072 return c
24073 }
24074
24075
24076
24077
24078 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24079 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24080 return c
24081 }
24082
24083
24084
24085
24086 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24087 c.ifNoneMatch_ = entityTag
24088 return c
24089 }
24090
24091
24092 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24093 c.ctx_ = ctx
24094 return c
24095 }
24096
24097
24098
24099 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Header() http.Header {
24100 if c.header_ == nil {
24101 c.header_ = make(http.Header)
24102 }
24103 return c.header_
24104 }
24105
24106 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
24107 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24108 if c.ifNoneMatch_ != "" {
24109 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24110 }
24111 var body io.Reader = nil
24112 c.urlParams_.Set("alt", alt)
24113 c.urlParams_.Set("prettyPrint", "false")
24114 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes")
24115 urls += "?" + c.urlParams_.Encode()
24116 req, err := http.NewRequest("GET", urls, body)
24117 if err != nil {
24118 return nil, err
24119 }
24120 req.Header = reqHeaders
24121 googleapi.Expand(req.URL, map[string]string{
24122 "parent": c.parent,
24123 })
24124 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24125 }
24126
24127
24128
24129
24130
24131
24132
24133 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse, error) {
24134 gensupport.SetOptions(c.urlParams_, opts...)
24135 res, err := c.doRequest("json")
24136 if res != nil && res.StatusCode == http.StatusNotModified {
24137 if res.Body != nil {
24138 res.Body.Close()
24139 }
24140 return nil, gensupport.WrapError(&googleapi.Error{
24141 Code: res.StatusCode,
24142 Header: res.Header,
24143 })
24144 }
24145 if err != nil {
24146 return nil, err
24147 }
24148 defer googleapi.CloseBody(res)
24149 if err := googleapi.CheckResponse(res); err != nil {
24150 return nil, gensupport.WrapError(err)
24151 }
24152 ret := &GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse{
24153 ServerResponse: googleapi.ServerResponse{
24154 Header: res.Header,
24155 HTTPStatusCode: res.StatusCode,
24156 },
24157 }
24158 target := &ret
24159 if err := gensupport.DecodeResponse(target, res); err != nil {
24160 return nil, err
24161 }
24162 return ret, nil
24163 }
24164
24165
24166
24167
24168 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse) error) error {
24169 c.ctx_ = ctx
24170 defer c.PageToken(c.urlParams_.Get("pageToken"))
24171 for {
24172 x, err := c.Do()
24173 if err != nil {
24174 return err
24175 }
24176 if err := f(x); err != nil {
24177 return err
24178 }
24179 if x.NextPageToken == "" {
24180 return nil
24181 }
24182 c.PageToken(x.NextPageToken)
24183 }
24184 }
24185
24186 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall struct {
24187 s *Service
24188 nameid string
24189 googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType
24190 urlParams_ gensupport.URLParams
24191 ctx_ context.Context
24192 header_ http.Header
24193 }
24194
24195
24196
24197
24198
24199
24200
24201 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24202 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24203 c.nameid = nameid
24204 c.googleclouddialogflowcxv3sessionentitytype = googleclouddialogflowcxv3sessionentitytype
24205 return c
24206 }
24207
24208
24209
24210 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24211 c.urlParams_.Set("updateMask", updateMask)
24212 return c
24213 }
24214
24215
24216
24217
24218 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24219 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24220 return c
24221 }
24222
24223
24224 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24225 c.ctx_ = ctx
24226 return c
24227 }
24228
24229
24230
24231 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Header() http.Header {
24232 if c.header_ == nil {
24233 c.header_ = make(http.Header)
24234 }
24235 return c.header_
24236 }
24237
24238 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
24239 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24240 var body io.Reader = nil
24241 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3sessionentitytype)
24242 if err != nil {
24243 return nil, err
24244 }
24245 c.urlParams_.Set("alt", alt)
24246 c.urlParams_.Set("prettyPrint", "false")
24247 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
24248 urls += "?" + c.urlParams_.Encode()
24249 req, err := http.NewRequest("PATCH", urls, body)
24250 if err != nil {
24251 return nil, err
24252 }
24253 req.Header = reqHeaders
24254 googleapi.Expand(req.URL, map[string]string{
24255 "name": c.nameid,
24256 })
24257 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24258 }
24259
24260
24261
24262
24263
24264
24265
24266 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SessionEntityType, error) {
24267 gensupport.SetOptions(c.urlParams_, opts...)
24268 res, err := c.doRequest("json")
24269 if res != nil && res.StatusCode == http.StatusNotModified {
24270 if res.Body != nil {
24271 res.Body.Close()
24272 }
24273 return nil, gensupport.WrapError(&googleapi.Error{
24274 Code: res.StatusCode,
24275 Header: res.Header,
24276 })
24277 }
24278 if err != nil {
24279 return nil, err
24280 }
24281 defer googleapi.CloseBody(res)
24282 if err := googleapi.CheckResponse(res); err != nil {
24283 return nil, gensupport.WrapError(err)
24284 }
24285 ret := &GoogleCloudDialogflowCxV3SessionEntityType{
24286 ServerResponse: googleapi.ServerResponse{
24287 Header: res.Header,
24288 HTTPStatusCode: res.StatusCode,
24289 },
24290 }
24291 target := &ret
24292 if err := gensupport.DecodeResponse(target, res); err != nil {
24293 return nil, err
24294 }
24295 return ret, nil
24296 }
24297
24298 type ProjectsLocationsAgentsFlowsCreateCall struct {
24299 s *Service
24300 parent string
24301 googleclouddialogflowcxv3flow *GoogleCloudDialogflowCxV3Flow
24302 urlParams_ gensupport.URLParams
24303 ctx_ context.Context
24304 header_ http.Header
24305 }
24306
24307
24308
24309
24310
24311
24312
24313 func (r *ProjectsLocationsAgentsFlowsService) Create(parent string, googleclouddialogflowcxv3flow *GoogleCloudDialogflowCxV3Flow) *ProjectsLocationsAgentsFlowsCreateCall {
24314 c := &ProjectsLocationsAgentsFlowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24315 c.parent = parent
24316 c.googleclouddialogflowcxv3flow = googleclouddialogflowcxv3flow
24317 return c
24318 }
24319
24320
24321
24322
24323
24324
24325
24326
24327
24328
24329
24330 func (c *ProjectsLocationsAgentsFlowsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsCreateCall {
24331 c.urlParams_.Set("languageCode", languageCode)
24332 return c
24333 }
24334
24335
24336
24337
24338 func (c *ProjectsLocationsAgentsFlowsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsCreateCall {
24339 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24340 return c
24341 }
24342
24343
24344 func (c *ProjectsLocationsAgentsFlowsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsCreateCall {
24345 c.ctx_ = ctx
24346 return c
24347 }
24348
24349
24350
24351 func (c *ProjectsLocationsAgentsFlowsCreateCall) Header() http.Header {
24352 if c.header_ == nil {
24353 c.header_ = make(http.Header)
24354 }
24355 return c.header_
24356 }
24357
24358 func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Response, error) {
24359 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24360 var body io.Reader = nil
24361 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3flow)
24362 if err != nil {
24363 return nil, err
24364 }
24365 c.urlParams_.Set("alt", alt)
24366 c.urlParams_.Set("prettyPrint", "false")
24367 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/flows")
24368 urls += "?" + c.urlParams_.Encode()
24369 req, err := http.NewRequest("POST", urls, body)
24370 if err != nil {
24371 return nil, err
24372 }
24373 req.Header = reqHeaders
24374 googleapi.Expand(req.URL, map[string]string{
24375 "parent": c.parent,
24376 })
24377 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24378 }
24379
24380
24381
24382
24383
24384
24385
24386 func (c *ProjectsLocationsAgentsFlowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Flow, error) {
24387 gensupport.SetOptions(c.urlParams_, opts...)
24388 res, err := c.doRequest("json")
24389 if res != nil && res.StatusCode == http.StatusNotModified {
24390 if res.Body != nil {
24391 res.Body.Close()
24392 }
24393 return nil, gensupport.WrapError(&googleapi.Error{
24394 Code: res.StatusCode,
24395 Header: res.Header,
24396 })
24397 }
24398 if err != nil {
24399 return nil, err
24400 }
24401 defer googleapi.CloseBody(res)
24402 if err := googleapi.CheckResponse(res); err != nil {
24403 return nil, gensupport.WrapError(err)
24404 }
24405 ret := &GoogleCloudDialogflowCxV3Flow{
24406 ServerResponse: googleapi.ServerResponse{
24407 Header: res.Header,
24408 HTTPStatusCode: res.StatusCode,
24409 },
24410 }
24411 target := &ret
24412 if err := gensupport.DecodeResponse(target, res); err != nil {
24413 return nil, err
24414 }
24415 return ret, nil
24416 }
24417
24418 type ProjectsLocationsAgentsFlowsDeleteCall struct {
24419 s *Service
24420 name string
24421 urlParams_ gensupport.URLParams
24422 ctx_ context.Context
24423 header_ http.Header
24424 }
24425
24426
24427
24428
24429
24430 func (r *ProjectsLocationsAgentsFlowsService) Delete(name string) *ProjectsLocationsAgentsFlowsDeleteCall {
24431 c := &ProjectsLocationsAgentsFlowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24432 c.name = name
24433 return c
24434 }
24435
24436
24437
24438
24439
24440
24441
24442
24443 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsDeleteCall {
24444 c.urlParams_.Set("force", fmt.Sprint(force))
24445 return c
24446 }
24447
24448
24449
24450
24451 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsDeleteCall {
24452 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24453 return c
24454 }
24455
24456
24457 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsDeleteCall {
24458 c.ctx_ = ctx
24459 return c
24460 }
24461
24462
24463
24464 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Header() http.Header {
24465 if c.header_ == nil {
24466 c.header_ = make(http.Header)
24467 }
24468 return c.header_
24469 }
24470
24471 func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Response, error) {
24472 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24473 var body io.Reader = nil
24474 c.urlParams_.Set("alt", alt)
24475 c.urlParams_.Set("prettyPrint", "false")
24476 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
24477 urls += "?" + c.urlParams_.Encode()
24478 req, err := http.NewRequest("DELETE", urls, body)
24479 if err != nil {
24480 return nil, err
24481 }
24482 req.Header = reqHeaders
24483 googleapi.Expand(req.URL, map[string]string{
24484 "name": c.name,
24485 })
24486 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24487 }
24488
24489
24490
24491
24492
24493
24494
24495 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24496 gensupport.SetOptions(c.urlParams_, opts...)
24497 res, err := c.doRequest("json")
24498 if res != nil && res.StatusCode == http.StatusNotModified {
24499 if res.Body != nil {
24500 res.Body.Close()
24501 }
24502 return nil, gensupport.WrapError(&googleapi.Error{
24503 Code: res.StatusCode,
24504 Header: res.Header,
24505 })
24506 }
24507 if err != nil {
24508 return nil, err
24509 }
24510 defer googleapi.CloseBody(res)
24511 if err := googleapi.CheckResponse(res); err != nil {
24512 return nil, gensupport.WrapError(err)
24513 }
24514 ret := &GoogleProtobufEmpty{
24515 ServerResponse: googleapi.ServerResponse{
24516 Header: res.Header,
24517 HTTPStatusCode: res.StatusCode,
24518 },
24519 }
24520 target := &ret
24521 if err := gensupport.DecodeResponse(target, res); err != nil {
24522 return nil, err
24523 }
24524 return ret, nil
24525 }
24526
24527 type ProjectsLocationsAgentsFlowsExportCall struct {
24528 s *Service
24529 name string
24530 googleclouddialogflowcxv3exportflowrequest *GoogleCloudDialogflowCxV3ExportFlowRequest
24531 urlParams_ gensupport.URLParams
24532 ctx_ context.Context
24533 header_ http.Header
24534 }
24535
24536
24537
24538
24539
24540
24541
24542
24543
24544
24545
24546
24547 func (r *ProjectsLocationsAgentsFlowsService) Export(name string, googleclouddialogflowcxv3exportflowrequest *GoogleCloudDialogflowCxV3ExportFlowRequest) *ProjectsLocationsAgentsFlowsExportCall {
24548 c := &ProjectsLocationsAgentsFlowsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24549 c.name = name
24550 c.googleclouddialogflowcxv3exportflowrequest = googleclouddialogflowcxv3exportflowrequest
24551 return c
24552 }
24553
24554
24555
24556
24557 func (c *ProjectsLocationsAgentsFlowsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsExportCall {
24558 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24559 return c
24560 }
24561
24562
24563 func (c *ProjectsLocationsAgentsFlowsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsExportCall {
24564 c.ctx_ = ctx
24565 return c
24566 }
24567
24568
24569
24570 func (c *ProjectsLocationsAgentsFlowsExportCall) Header() http.Header {
24571 if c.header_ == nil {
24572 c.header_ = make(http.Header)
24573 }
24574 return c.header_
24575 }
24576
24577 func (c *ProjectsLocationsAgentsFlowsExportCall) doRequest(alt string) (*http.Response, error) {
24578 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24579 var body io.Reader = nil
24580 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3exportflowrequest)
24581 if err != nil {
24582 return nil, err
24583 }
24584 c.urlParams_.Set("alt", alt)
24585 c.urlParams_.Set("prettyPrint", "false")
24586 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:export")
24587 urls += "?" + c.urlParams_.Encode()
24588 req, err := http.NewRequest("POST", urls, body)
24589 if err != nil {
24590 return nil, err
24591 }
24592 req.Header = reqHeaders
24593 googleapi.Expand(req.URL, map[string]string{
24594 "name": c.name,
24595 })
24596 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24597 }
24598
24599
24600
24601
24602
24603
24604
24605 func (c *ProjectsLocationsAgentsFlowsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24606 gensupport.SetOptions(c.urlParams_, opts...)
24607 res, err := c.doRequest("json")
24608 if res != nil && res.StatusCode == http.StatusNotModified {
24609 if res.Body != nil {
24610 res.Body.Close()
24611 }
24612 return nil, gensupport.WrapError(&googleapi.Error{
24613 Code: res.StatusCode,
24614 Header: res.Header,
24615 })
24616 }
24617 if err != nil {
24618 return nil, err
24619 }
24620 defer googleapi.CloseBody(res)
24621 if err := googleapi.CheckResponse(res); err != nil {
24622 return nil, gensupport.WrapError(err)
24623 }
24624 ret := &GoogleLongrunningOperation{
24625 ServerResponse: googleapi.ServerResponse{
24626 Header: res.Header,
24627 HTTPStatusCode: res.StatusCode,
24628 },
24629 }
24630 target := &ret
24631 if err := gensupport.DecodeResponse(target, res); err != nil {
24632 return nil, err
24633 }
24634 return ret, nil
24635 }
24636
24637 type ProjectsLocationsAgentsFlowsGetCall struct {
24638 s *Service
24639 name string
24640 urlParams_ gensupport.URLParams
24641 ifNoneMatch_ string
24642 ctx_ context.Context
24643 header_ http.Header
24644 }
24645
24646
24647
24648
24649
24650 func (r *ProjectsLocationsAgentsFlowsService) Get(name string) *ProjectsLocationsAgentsFlowsGetCall {
24651 c := &ProjectsLocationsAgentsFlowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24652 c.name = name
24653 return c
24654 }
24655
24656
24657
24658
24659
24660
24661
24662
24663
24664
24665
24666 func (c *ProjectsLocationsAgentsFlowsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetCall {
24667 c.urlParams_.Set("languageCode", languageCode)
24668 return c
24669 }
24670
24671
24672
24673
24674 func (c *ProjectsLocationsAgentsFlowsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetCall {
24675 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24676 return c
24677 }
24678
24679
24680
24681
24682 func (c *ProjectsLocationsAgentsFlowsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetCall {
24683 c.ifNoneMatch_ = entityTag
24684 return c
24685 }
24686
24687
24688 func (c *ProjectsLocationsAgentsFlowsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetCall {
24689 c.ctx_ = ctx
24690 return c
24691 }
24692
24693
24694
24695 func (c *ProjectsLocationsAgentsFlowsGetCall) Header() http.Header {
24696 if c.header_ == nil {
24697 c.header_ = make(http.Header)
24698 }
24699 return c.header_
24700 }
24701
24702 func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Response, error) {
24703 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24704 if c.ifNoneMatch_ != "" {
24705 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24706 }
24707 var body io.Reader = nil
24708 c.urlParams_.Set("alt", alt)
24709 c.urlParams_.Set("prettyPrint", "false")
24710 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
24711 urls += "?" + c.urlParams_.Encode()
24712 req, err := http.NewRequest("GET", urls, body)
24713 if err != nil {
24714 return nil, err
24715 }
24716 req.Header = reqHeaders
24717 googleapi.Expand(req.URL, map[string]string{
24718 "name": c.name,
24719 })
24720 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24721 }
24722
24723
24724
24725
24726
24727
24728
24729 func (c *ProjectsLocationsAgentsFlowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Flow, error) {
24730 gensupport.SetOptions(c.urlParams_, opts...)
24731 res, err := c.doRequest("json")
24732 if res != nil && res.StatusCode == http.StatusNotModified {
24733 if res.Body != nil {
24734 res.Body.Close()
24735 }
24736 return nil, gensupport.WrapError(&googleapi.Error{
24737 Code: res.StatusCode,
24738 Header: res.Header,
24739 })
24740 }
24741 if err != nil {
24742 return nil, err
24743 }
24744 defer googleapi.CloseBody(res)
24745 if err := googleapi.CheckResponse(res); err != nil {
24746 return nil, gensupport.WrapError(err)
24747 }
24748 ret := &GoogleCloudDialogflowCxV3Flow{
24749 ServerResponse: googleapi.ServerResponse{
24750 Header: res.Header,
24751 HTTPStatusCode: res.StatusCode,
24752 },
24753 }
24754 target := &ret
24755 if err := gensupport.DecodeResponse(target, res); err != nil {
24756 return nil, err
24757 }
24758 return ret, nil
24759 }
24760
24761 type ProjectsLocationsAgentsFlowsGetValidationResultCall struct {
24762 s *Service
24763 name string
24764 urlParams_ gensupport.URLParams
24765 ifNoneMatch_ string
24766 ctx_ context.Context
24767 header_ http.Header
24768 }
24769
24770
24771
24772
24773
24774
24775 func (r *ProjectsLocationsAgentsFlowsService) GetValidationResult(name string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
24776 c := &ProjectsLocationsAgentsFlowsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24777 c.name = name
24778 return c
24779 }
24780
24781
24782
24783 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
24784 c.urlParams_.Set("languageCode", languageCode)
24785 return c
24786 }
24787
24788
24789
24790
24791 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
24792 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24793 return c
24794 }
24795
24796
24797
24798
24799 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
24800 c.ifNoneMatch_ = entityTag
24801 return c
24802 }
24803
24804
24805 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
24806 c.ctx_ = ctx
24807 return c
24808 }
24809
24810
24811
24812 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Header() http.Header {
24813 if c.header_ == nil {
24814 c.header_ = make(http.Header)
24815 }
24816 return c.header_
24817 }
24818
24819 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
24820 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24821 if c.ifNoneMatch_ != "" {
24822 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24823 }
24824 var body io.Reader = nil
24825 c.urlParams_.Set("alt", alt)
24826 c.urlParams_.Set("prettyPrint", "false")
24827 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
24828 urls += "?" + c.urlParams_.Encode()
24829 req, err := http.NewRequest("GET", urls, body)
24830 if err != nil {
24831 return nil, err
24832 }
24833 req.Header = reqHeaders
24834 googleapi.Expand(req.URL, map[string]string{
24835 "name": c.name,
24836 })
24837 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24838 }
24839
24840
24841
24842
24843
24844
24845
24846 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3FlowValidationResult, error) {
24847 gensupport.SetOptions(c.urlParams_, opts...)
24848 res, err := c.doRequest("json")
24849 if res != nil && res.StatusCode == http.StatusNotModified {
24850 if res.Body != nil {
24851 res.Body.Close()
24852 }
24853 return nil, gensupport.WrapError(&googleapi.Error{
24854 Code: res.StatusCode,
24855 Header: res.Header,
24856 })
24857 }
24858 if err != nil {
24859 return nil, err
24860 }
24861 defer googleapi.CloseBody(res)
24862 if err := googleapi.CheckResponse(res); err != nil {
24863 return nil, gensupport.WrapError(err)
24864 }
24865 ret := &GoogleCloudDialogflowCxV3FlowValidationResult{
24866 ServerResponse: googleapi.ServerResponse{
24867 Header: res.Header,
24868 HTTPStatusCode: res.StatusCode,
24869 },
24870 }
24871 target := &ret
24872 if err := gensupport.DecodeResponse(target, res); err != nil {
24873 return nil, err
24874 }
24875 return ret, nil
24876 }
24877
24878 type ProjectsLocationsAgentsFlowsImportCall struct {
24879 s *Service
24880 parent string
24881 googleclouddialogflowcxv3importflowrequest *GoogleCloudDialogflowCxV3ImportFlowRequest
24882 urlParams_ gensupport.URLParams
24883 ctx_ context.Context
24884 header_ http.Header
24885 }
24886
24887
24888
24889
24890
24891
24892
24893
24894
24895
24896
24897
24898
24899 func (r *ProjectsLocationsAgentsFlowsService) Import(parent string, googleclouddialogflowcxv3importflowrequest *GoogleCloudDialogflowCxV3ImportFlowRequest) *ProjectsLocationsAgentsFlowsImportCall {
24900 c := &ProjectsLocationsAgentsFlowsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24901 c.parent = parent
24902 c.googleclouddialogflowcxv3importflowrequest = googleclouddialogflowcxv3importflowrequest
24903 return c
24904 }
24905
24906
24907
24908
24909 func (c *ProjectsLocationsAgentsFlowsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsImportCall {
24910 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24911 return c
24912 }
24913
24914
24915 func (c *ProjectsLocationsAgentsFlowsImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsImportCall {
24916 c.ctx_ = ctx
24917 return c
24918 }
24919
24920
24921
24922 func (c *ProjectsLocationsAgentsFlowsImportCall) Header() http.Header {
24923 if c.header_ == nil {
24924 c.header_ = make(http.Header)
24925 }
24926 return c.header_
24927 }
24928
24929 func (c *ProjectsLocationsAgentsFlowsImportCall) doRequest(alt string) (*http.Response, error) {
24930 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24931 var body io.Reader = nil
24932 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3importflowrequest)
24933 if err != nil {
24934 return nil, err
24935 }
24936 c.urlParams_.Set("alt", alt)
24937 c.urlParams_.Set("prettyPrint", "false")
24938 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/flows:import")
24939 urls += "?" + c.urlParams_.Encode()
24940 req, err := http.NewRequest("POST", urls, body)
24941 if err != nil {
24942 return nil, err
24943 }
24944 req.Header = reqHeaders
24945 googleapi.Expand(req.URL, map[string]string{
24946 "parent": c.parent,
24947 })
24948 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24949 }
24950
24951
24952
24953
24954
24955
24956
24957 func (c *ProjectsLocationsAgentsFlowsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
24958 gensupport.SetOptions(c.urlParams_, opts...)
24959 res, err := c.doRequest("json")
24960 if res != nil && res.StatusCode == http.StatusNotModified {
24961 if res.Body != nil {
24962 res.Body.Close()
24963 }
24964 return nil, gensupport.WrapError(&googleapi.Error{
24965 Code: res.StatusCode,
24966 Header: res.Header,
24967 })
24968 }
24969 if err != nil {
24970 return nil, err
24971 }
24972 defer googleapi.CloseBody(res)
24973 if err := googleapi.CheckResponse(res); err != nil {
24974 return nil, gensupport.WrapError(err)
24975 }
24976 ret := &GoogleLongrunningOperation{
24977 ServerResponse: googleapi.ServerResponse{
24978 Header: res.Header,
24979 HTTPStatusCode: res.StatusCode,
24980 },
24981 }
24982 target := &ret
24983 if err := gensupport.DecodeResponse(target, res); err != nil {
24984 return nil, err
24985 }
24986 return ret, nil
24987 }
24988
24989 type ProjectsLocationsAgentsFlowsListCall struct {
24990 s *Service
24991 parent string
24992 urlParams_ gensupport.URLParams
24993 ifNoneMatch_ string
24994 ctx_ context.Context
24995 header_ http.Header
24996 }
24997
24998
24999
25000
25001
25002 func (r *ProjectsLocationsAgentsFlowsService) List(parent string) *ProjectsLocationsAgentsFlowsListCall {
25003 c := &ProjectsLocationsAgentsFlowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25004 c.parent = parent
25005 return c
25006 }
25007
25008
25009
25010
25011
25012
25013
25014
25015
25016
25017
25018 func (c *ProjectsLocationsAgentsFlowsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsListCall {
25019 c.urlParams_.Set("languageCode", languageCode)
25020 return c
25021 }
25022
25023
25024
25025 func (c *ProjectsLocationsAgentsFlowsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsListCall {
25026 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25027 return c
25028 }
25029
25030
25031
25032 func (c *ProjectsLocationsAgentsFlowsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsListCall {
25033 c.urlParams_.Set("pageToken", pageToken)
25034 return c
25035 }
25036
25037
25038
25039
25040 func (c *ProjectsLocationsAgentsFlowsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsListCall {
25041 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25042 return c
25043 }
25044
25045
25046
25047
25048 func (c *ProjectsLocationsAgentsFlowsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsListCall {
25049 c.ifNoneMatch_ = entityTag
25050 return c
25051 }
25052
25053
25054 func (c *ProjectsLocationsAgentsFlowsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsListCall {
25055 c.ctx_ = ctx
25056 return c
25057 }
25058
25059
25060
25061 func (c *ProjectsLocationsAgentsFlowsListCall) Header() http.Header {
25062 if c.header_ == nil {
25063 c.header_ = make(http.Header)
25064 }
25065 return c.header_
25066 }
25067
25068 func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Response, error) {
25069 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25070 if c.ifNoneMatch_ != "" {
25071 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25072 }
25073 var body io.Reader = nil
25074 c.urlParams_.Set("alt", alt)
25075 c.urlParams_.Set("prettyPrint", "false")
25076 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/flows")
25077 urls += "?" + c.urlParams_.Encode()
25078 req, err := http.NewRequest("GET", urls, body)
25079 if err != nil {
25080 return nil, err
25081 }
25082 req.Header = reqHeaders
25083 googleapi.Expand(req.URL, map[string]string{
25084 "parent": c.parent,
25085 })
25086 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25087 }
25088
25089
25090
25091
25092
25093
25094
25095 func (c *ProjectsLocationsAgentsFlowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListFlowsResponse, error) {
25096 gensupport.SetOptions(c.urlParams_, opts...)
25097 res, err := c.doRequest("json")
25098 if res != nil && res.StatusCode == http.StatusNotModified {
25099 if res.Body != nil {
25100 res.Body.Close()
25101 }
25102 return nil, gensupport.WrapError(&googleapi.Error{
25103 Code: res.StatusCode,
25104 Header: res.Header,
25105 })
25106 }
25107 if err != nil {
25108 return nil, err
25109 }
25110 defer googleapi.CloseBody(res)
25111 if err := googleapi.CheckResponse(res); err != nil {
25112 return nil, gensupport.WrapError(err)
25113 }
25114 ret := &GoogleCloudDialogflowCxV3ListFlowsResponse{
25115 ServerResponse: googleapi.ServerResponse{
25116 Header: res.Header,
25117 HTTPStatusCode: res.StatusCode,
25118 },
25119 }
25120 target := &ret
25121 if err := gensupport.DecodeResponse(target, res); err != nil {
25122 return nil, err
25123 }
25124 return ret, nil
25125 }
25126
25127
25128
25129
25130 func (c *ProjectsLocationsAgentsFlowsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListFlowsResponse) error) error {
25131 c.ctx_ = ctx
25132 defer c.PageToken(c.urlParams_.Get("pageToken"))
25133 for {
25134 x, err := c.Do()
25135 if err != nil {
25136 return err
25137 }
25138 if err := f(x); err != nil {
25139 return err
25140 }
25141 if x.NextPageToken == "" {
25142 return nil
25143 }
25144 c.PageToken(x.NextPageToken)
25145 }
25146 }
25147
25148 type ProjectsLocationsAgentsFlowsPatchCall struct {
25149 s *Service
25150 nameid string
25151 googleclouddialogflowcxv3flow *GoogleCloudDialogflowCxV3Flow
25152 urlParams_ gensupport.URLParams
25153 ctx_ context.Context
25154 header_ http.Header
25155 }
25156
25157
25158
25159
25160
25161
25162
25163 func (r *ProjectsLocationsAgentsFlowsService) Patch(nameid string, googleclouddialogflowcxv3flow *GoogleCloudDialogflowCxV3Flow) *ProjectsLocationsAgentsFlowsPatchCall {
25164 c := &ProjectsLocationsAgentsFlowsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25165 c.nameid = nameid
25166 c.googleclouddialogflowcxv3flow = googleclouddialogflowcxv3flow
25167 return c
25168 }
25169
25170
25171
25172
25173
25174
25175
25176
25177
25178
25179
25180 func (c *ProjectsLocationsAgentsFlowsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPatchCall {
25181 c.urlParams_.Set("languageCode", languageCode)
25182 return c
25183 }
25184
25185
25186
25187
25188 func (c *ProjectsLocationsAgentsFlowsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPatchCall {
25189 c.urlParams_.Set("updateMask", updateMask)
25190 return c
25191 }
25192
25193
25194
25195
25196 func (c *ProjectsLocationsAgentsFlowsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPatchCall {
25197 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25198 return c
25199 }
25200
25201
25202 func (c *ProjectsLocationsAgentsFlowsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPatchCall {
25203 c.ctx_ = ctx
25204 return c
25205 }
25206
25207
25208
25209 func (c *ProjectsLocationsAgentsFlowsPatchCall) Header() http.Header {
25210 if c.header_ == nil {
25211 c.header_ = make(http.Header)
25212 }
25213 return c.header_
25214 }
25215
25216 func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Response, error) {
25217 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25218 var body io.Reader = nil
25219 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3flow)
25220 if err != nil {
25221 return nil, err
25222 }
25223 c.urlParams_.Set("alt", alt)
25224 c.urlParams_.Set("prettyPrint", "false")
25225 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
25226 urls += "?" + c.urlParams_.Encode()
25227 req, err := http.NewRequest("PATCH", urls, body)
25228 if err != nil {
25229 return nil, err
25230 }
25231 req.Header = reqHeaders
25232 googleapi.Expand(req.URL, map[string]string{
25233 "name": c.nameid,
25234 })
25235 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25236 }
25237
25238
25239
25240
25241
25242
25243
25244 func (c *ProjectsLocationsAgentsFlowsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Flow, error) {
25245 gensupport.SetOptions(c.urlParams_, opts...)
25246 res, err := c.doRequest("json")
25247 if res != nil && res.StatusCode == http.StatusNotModified {
25248 if res.Body != nil {
25249 res.Body.Close()
25250 }
25251 return nil, gensupport.WrapError(&googleapi.Error{
25252 Code: res.StatusCode,
25253 Header: res.Header,
25254 })
25255 }
25256 if err != nil {
25257 return nil, err
25258 }
25259 defer googleapi.CloseBody(res)
25260 if err := googleapi.CheckResponse(res); err != nil {
25261 return nil, gensupport.WrapError(err)
25262 }
25263 ret := &GoogleCloudDialogflowCxV3Flow{
25264 ServerResponse: googleapi.ServerResponse{
25265 Header: res.Header,
25266 HTTPStatusCode: res.StatusCode,
25267 },
25268 }
25269 target := &ret
25270 if err := gensupport.DecodeResponse(target, res); err != nil {
25271 return nil, err
25272 }
25273 return ret, nil
25274 }
25275
25276 type ProjectsLocationsAgentsFlowsTrainCall struct {
25277 s *Service
25278 name string
25279 googleclouddialogflowcxv3trainflowrequest *GoogleCloudDialogflowCxV3TrainFlowRequest
25280 urlParams_ gensupport.URLParams
25281 ctx_ context.Context
25282 header_ http.Header
25283 }
25284
25285
25286
25287
25288
25289
25290
25291
25292
25293
25294
25295
25296
25297
25298 func (r *ProjectsLocationsAgentsFlowsService) Train(name string, googleclouddialogflowcxv3trainflowrequest *GoogleCloudDialogflowCxV3TrainFlowRequest) *ProjectsLocationsAgentsFlowsTrainCall {
25299 c := &ProjectsLocationsAgentsFlowsTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25300 c.name = name
25301 c.googleclouddialogflowcxv3trainflowrequest = googleclouddialogflowcxv3trainflowrequest
25302 return c
25303 }
25304
25305
25306
25307
25308 func (c *ProjectsLocationsAgentsFlowsTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTrainCall {
25309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25310 return c
25311 }
25312
25313
25314 func (c *ProjectsLocationsAgentsFlowsTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTrainCall {
25315 c.ctx_ = ctx
25316 return c
25317 }
25318
25319
25320
25321 func (c *ProjectsLocationsAgentsFlowsTrainCall) Header() http.Header {
25322 if c.header_ == nil {
25323 c.header_ = make(http.Header)
25324 }
25325 return c.header_
25326 }
25327
25328 func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Response, error) {
25329 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25330 var body io.Reader = nil
25331 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3trainflowrequest)
25332 if err != nil {
25333 return nil, err
25334 }
25335 c.urlParams_.Set("alt", alt)
25336 c.urlParams_.Set("prettyPrint", "false")
25337 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:train")
25338 urls += "?" + c.urlParams_.Encode()
25339 req, err := http.NewRequest("POST", urls, body)
25340 if err != nil {
25341 return nil, err
25342 }
25343 req.Header = reqHeaders
25344 googleapi.Expand(req.URL, map[string]string{
25345 "name": c.name,
25346 })
25347 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25348 }
25349
25350
25351
25352
25353
25354
25355
25356 func (c *ProjectsLocationsAgentsFlowsTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25357 gensupport.SetOptions(c.urlParams_, opts...)
25358 res, err := c.doRequest("json")
25359 if res != nil && res.StatusCode == http.StatusNotModified {
25360 if res.Body != nil {
25361 res.Body.Close()
25362 }
25363 return nil, gensupport.WrapError(&googleapi.Error{
25364 Code: res.StatusCode,
25365 Header: res.Header,
25366 })
25367 }
25368 if err != nil {
25369 return nil, err
25370 }
25371 defer googleapi.CloseBody(res)
25372 if err := googleapi.CheckResponse(res); err != nil {
25373 return nil, gensupport.WrapError(err)
25374 }
25375 ret := &GoogleLongrunningOperation{
25376 ServerResponse: googleapi.ServerResponse{
25377 Header: res.Header,
25378 HTTPStatusCode: res.StatusCode,
25379 },
25380 }
25381 target := &ret
25382 if err := gensupport.DecodeResponse(target, res); err != nil {
25383 return nil, err
25384 }
25385 return ret, nil
25386 }
25387
25388 type ProjectsLocationsAgentsFlowsValidateCall struct {
25389 s *Service
25390 name string
25391 googleclouddialogflowcxv3validateflowrequest *GoogleCloudDialogflowCxV3ValidateFlowRequest
25392 urlParams_ gensupport.URLParams
25393 ctx_ context.Context
25394 header_ http.Header
25395 }
25396
25397
25398
25399
25400
25401
25402 func (r *ProjectsLocationsAgentsFlowsService) Validate(name string, googleclouddialogflowcxv3validateflowrequest *GoogleCloudDialogflowCxV3ValidateFlowRequest) *ProjectsLocationsAgentsFlowsValidateCall {
25403 c := &ProjectsLocationsAgentsFlowsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25404 c.name = name
25405 c.googleclouddialogflowcxv3validateflowrequest = googleclouddialogflowcxv3validateflowrequest
25406 return c
25407 }
25408
25409
25410
25411
25412 func (c *ProjectsLocationsAgentsFlowsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsValidateCall {
25413 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25414 return c
25415 }
25416
25417
25418 func (c *ProjectsLocationsAgentsFlowsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsValidateCall {
25419 c.ctx_ = ctx
25420 return c
25421 }
25422
25423
25424
25425 func (c *ProjectsLocationsAgentsFlowsValidateCall) Header() http.Header {
25426 if c.header_ == nil {
25427 c.header_ = make(http.Header)
25428 }
25429 return c.header_
25430 }
25431
25432 func (c *ProjectsLocationsAgentsFlowsValidateCall) doRequest(alt string) (*http.Response, error) {
25433 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25434 var body io.Reader = nil
25435 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3validateflowrequest)
25436 if err != nil {
25437 return nil, err
25438 }
25439 c.urlParams_.Set("alt", alt)
25440 c.urlParams_.Set("prettyPrint", "false")
25441 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:validate")
25442 urls += "?" + c.urlParams_.Encode()
25443 req, err := http.NewRequest("POST", urls, body)
25444 if err != nil {
25445 return nil, err
25446 }
25447 req.Header = reqHeaders
25448 googleapi.Expand(req.URL, map[string]string{
25449 "name": c.name,
25450 })
25451 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25452 }
25453
25454
25455
25456
25457
25458
25459
25460 func (c *ProjectsLocationsAgentsFlowsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3FlowValidationResult, error) {
25461 gensupport.SetOptions(c.urlParams_, opts...)
25462 res, err := c.doRequest("json")
25463 if res != nil && res.StatusCode == http.StatusNotModified {
25464 if res.Body != nil {
25465 res.Body.Close()
25466 }
25467 return nil, gensupport.WrapError(&googleapi.Error{
25468 Code: res.StatusCode,
25469 Header: res.Header,
25470 })
25471 }
25472 if err != nil {
25473 return nil, err
25474 }
25475 defer googleapi.CloseBody(res)
25476 if err := googleapi.CheckResponse(res); err != nil {
25477 return nil, gensupport.WrapError(err)
25478 }
25479 ret := &GoogleCloudDialogflowCxV3FlowValidationResult{
25480 ServerResponse: googleapi.ServerResponse{
25481 Header: res.Header,
25482 HTTPStatusCode: res.StatusCode,
25483 },
25484 }
25485 target := &ret
25486 if err := gensupport.DecodeResponse(target, res); err != nil {
25487 return nil, err
25488 }
25489 return ret, nil
25490 }
25491
25492 type ProjectsLocationsAgentsFlowsPagesCreateCall struct {
25493 s *Service
25494 parent string
25495 googleclouddialogflowcxv3page *GoogleCloudDialogflowCxV3Page
25496 urlParams_ gensupport.URLParams
25497 ctx_ context.Context
25498 header_ http.Header
25499 }
25500
25501
25502
25503
25504
25505
25506
25507 func (r *ProjectsLocationsAgentsFlowsPagesService) Create(parent string, googleclouddialogflowcxv3page *GoogleCloudDialogflowCxV3Page) *ProjectsLocationsAgentsFlowsPagesCreateCall {
25508 c := &ProjectsLocationsAgentsFlowsPagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25509 c.parent = parent
25510 c.googleclouddialogflowcxv3page = googleclouddialogflowcxv3page
25511 return c
25512 }
25513
25514
25515
25516
25517
25518
25519
25520
25521
25522
25523
25524
25525
25526
25527
25528
25529
25530 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesCreateCall {
25531 c.urlParams_.Set("languageCode", languageCode)
25532 return c
25533 }
25534
25535
25536
25537
25538 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesCreateCall {
25539 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25540 return c
25541 }
25542
25543
25544 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesCreateCall {
25545 c.ctx_ = ctx
25546 return c
25547 }
25548
25549
25550
25551 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Header() http.Header {
25552 if c.header_ == nil {
25553 c.header_ = make(http.Header)
25554 }
25555 return c.header_
25556 }
25557
25558 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*http.Response, error) {
25559 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25560 var body io.Reader = nil
25561 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3page)
25562 if err != nil {
25563 return nil, err
25564 }
25565 c.urlParams_.Set("alt", alt)
25566 c.urlParams_.Set("prettyPrint", "false")
25567 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/pages")
25568 urls += "?" + c.urlParams_.Encode()
25569 req, err := http.NewRequest("POST", urls, body)
25570 if err != nil {
25571 return nil, err
25572 }
25573 req.Header = reqHeaders
25574 googleapi.Expand(req.URL, map[string]string{
25575 "parent": c.parent,
25576 })
25577 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25578 }
25579
25580
25581
25582
25583
25584
25585
25586 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Page, error) {
25587 gensupport.SetOptions(c.urlParams_, opts...)
25588 res, err := c.doRequest("json")
25589 if res != nil && res.StatusCode == http.StatusNotModified {
25590 if res.Body != nil {
25591 res.Body.Close()
25592 }
25593 return nil, gensupport.WrapError(&googleapi.Error{
25594 Code: res.StatusCode,
25595 Header: res.Header,
25596 })
25597 }
25598 if err != nil {
25599 return nil, err
25600 }
25601 defer googleapi.CloseBody(res)
25602 if err := googleapi.CheckResponse(res); err != nil {
25603 return nil, gensupport.WrapError(err)
25604 }
25605 ret := &GoogleCloudDialogflowCxV3Page{
25606 ServerResponse: googleapi.ServerResponse{
25607 Header: res.Header,
25608 HTTPStatusCode: res.StatusCode,
25609 },
25610 }
25611 target := &ret
25612 if err := gensupport.DecodeResponse(target, res); err != nil {
25613 return nil, err
25614 }
25615 return ret, nil
25616 }
25617
25618 type ProjectsLocationsAgentsFlowsPagesDeleteCall struct {
25619 s *Service
25620 name string
25621 urlParams_ gensupport.URLParams
25622 ctx_ context.Context
25623 header_ http.Header
25624 }
25625
25626
25627
25628
25629
25630
25631
25632 func (r *ProjectsLocationsAgentsFlowsPagesService) Delete(name string) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
25633 c := &ProjectsLocationsAgentsFlowsPagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25634 c.name = name
25635 return c
25636 }
25637
25638
25639
25640
25641
25642
25643
25644
25645 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
25646 c.urlParams_.Set("force", fmt.Sprint(force))
25647 return c
25648 }
25649
25650
25651
25652
25653 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
25654 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25655 return c
25656 }
25657
25658
25659 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
25660 c.ctx_ = ctx
25661 return c
25662 }
25663
25664
25665
25666 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Header() http.Header {
25667 if c.header_ == nil {
25668 c.header_ = make(http.Header)
25669 }
25670 return c.header_
25671 }
25672
25673 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*http.Response, error) {
25674 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25675 var body io.Reader = nil
25676 c.urlParams_.Set("alt", alt)
25677 c.urlParams_.Set("prettyPrint", "false")
25678 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
25679 urls += "?" + c.urlParams_.Encode()
25680 req, err := http.NewRequest("DELETE", urls, body)
25681 if err != nil {
25682 return nil, err
25683 }
25684 req.Header = reqHeaders
25685 googleapi.Expand(req.URL, map[string]string{
25686 "name": c.name,
25687 })
25688 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25689 }
25690
25691
25692
25693
25694
25695
25696
25697 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25698 gensupport.SetOptions(c.urlParams_, opts...)
25699 res, err := c.doRequest("json")
25700 if res != nil && res.StatusCode == http.StatusNotModified {
25701 if res.Body != nil {
25702 res.Body.Close()
25703 }
25704 return nil, gensupport.WrapError(&googleapi.Error{
25705 Code: res.StatusCode,
25706 Header: res.Header,
25707 })
25708 }
25709 if err != nil {
25710 return nil, err
25711 }
25712 defer googleapi.CloseBody(res)
25713 if err := googleapi.CheckResponse(res); err != nil {
25714 return nil, gensupport.WrapError(err)
25715 }
25716 ret := &GoogleProtobufEmpty{
25717 ServerResponse: googleapi.ServerResponse{
25718 Header: res.Header,
25719 HTTPStatusCode: res.StatusCode,
25720 },
25721 }
25722 target := &ret
25723 if err := gensupport.DecodeResponse(target, res); err != nil {
25724 return nil, err
25725 }
25726 return ret, nil
25727 }
25728
25729 type ProjectsLocationsAgentsFlowsPagesGetCall struct {
25730 s *Service
25731 name string
25732 urlParams_ gensupport.URLParams
25733 ifNoneMatch_ string
25734 ctx_ context.Context
25735 header_ http.Header
25736 }
25737
25738
25739
25740
25741
25742 func (r *ProjectsLocationsAgentsFlowsPagesService) Get(name string) *ProjectsLocationsAgentsFlowsPagesGetCall {
25743 c := &ProjectsLocationsAgentsFlowsPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25744 c.name = name
25745 return c
25746 }
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesGetCall {
25766 c.urlParams_.Set("languageCode", languageCode)
25767 return c
25768 }
25769
25770
25771
25772
25773 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesGetCall {
25774 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25775 return c
25776 }
25777
25778
25779
25780
25781 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesGetCall {
25782 c.ifNoneMatch_ = entityTag
25783 return c
25784 }
25785
25786
25787 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesGetCall {
25788 c.ctx_ = ctx
25789 return c
25790 }
25791
25792
25793
25794 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Header() http.Header {
25795 if c.header_ == nil {
25796 c.header_ = make(http.Header)
25797 }
25798 return c.header_
25799 }
25800
25801 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http.Response, error) {
25802 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25803 if c.ifNoneMatch_ != "" {
25804 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25805 }
25806 var body io.Reader = nil
25807 c.urlParams_.Set("alt", alt)
25808 c.urlParams_.Set("prettyPrint", "false")
25809 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
25810 urls += "?" + c.urlParams_.Encode()
25811 req, err := http.NewRequest("GET", urls, body)
25812 if err != nil {
25813 return nil, err
25814 }
25815 req.Header = reqHeaders
25816 googleapi.Expand(req.URL, map[string]string{
25817 "name": c.name,
25818 })
25819 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25820 }
25821
25822
25823
25824
25825
25826
25827
25828 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Page, error) {
25829 gensupport.SetOptions(c.urlParams_, opts...)
25830 res, err := c.doRequest("json")
25831 if res != nil && res.StatusCode == http.StatusNotModified {
25832 if res.Body != nil {
25833 res.Body.Close()
25834 }
25835 return nil, gensupport.WrapError(&googleapi.Error{
25836 Code: res.StatusCode,
25837 Header: res.Header,
25838 })
25839 }
25840 if err != nil {
25841 return nil, err
25842 }
25843 defer googleapi.CloseBody(res)
25844 if err := googleapi.CheckResponse(res); err != nil {
25845 return nil, gensupport.WrapError(err)
25846 }
25847 ret := &GoogleCloudDialogflowCxV3Page{
25848 ServerResponse: googleapi.ServerResponse{
25849 Header: res.Header,
25850 HTTPStatusCode: res.StatusCode,
25851 },
25852 }
25853 target := &ret
25854 if err := gensupport.DecodeResponse(target, res); err != nil {
25855 return nil, err
25856 }
25857 return ret, nil
25858 }
25859
25860 type ProjectsLocationsAgentsFlowsPagesListCall struct {
25861 s *Service
25862 parent string
25863 urlParams_ gensupport.URLParams
25864 ifNoneMatch_ string
25865 ctx_ context.Context
25866 header_ http.Header
25867 }
25868
25869
25870
25871
25872
25873 func (r *ProjectsLocationsAgentsFlowsPagesService) List(parent string) *ProjectsLocationsAgentsFlowsPagesListCall {
25874 c := &ProjectsLocationsAgentsFlowsPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25875 c.parent = parent
25876 return c
25877 }
25878
25879
25880
25881
25882
25883
25884
25885
25886
25887
25888
25889
25890
25891
25892
25893
25894
25895
25896 func (c *ProjectsLocationsAgentsFlowsPagesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesListCall {
25897 c.urlParams_.Set("languageCode", languageCode)
25898 return c
25899 }
25900
25901
25902
25903 func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsPagesListCall {
25904 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25905 return c
25906 }
25907
25908
25909
25910 func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsPagesListCall {
25911 c.urlParams_.Set("pageToken", pageToken)
25912 return c
25913 }
25914
25915
25916
25917
25918 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesListCall {
25919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25920 return c
25921 }
25922
25923
25924
25925
25926 func (c *ProjectsLocationsAgentsFlowsPagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesListCall {
25927 c.ifNoneMatch_ = entityTag
25928 return c
25929 }
25930
25931
25932 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesListCall {
25933 c.ctx_ = ctx
25934 return c
25935 }
25936
25937
25938
25939 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Header() http.Header {
25940 if c.header_ == nil {
25941 c.header_ = make(http.Header)
25942 }
25943 return c.header_
25944 }
25945
25946 func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http.Response, error) {
25947 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25948 if c.ifNoneMatch_ != "" {
25949 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25950 }
25951 var body io.Reader = nil
25952 c.urlParams_.Set("alt", alt)
25953 c.urlParams_.Set("prettyPrint", "false")
25954 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/pages")
25955 urls += "?" + c.urlParams_.Encode()
25956 req, err := http.NewRequest("GET", urls, body)
25957 if err != nil {
25958 return nil, err
25959 }
25960 req.Header = reqHeaders
25961 googleapi.Expand(req.URL, map[string]string{
25962 "parent": c.parent,
25963 })
25964 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25965 }
25966
25967
25968
25969
25970
25971
25972
25973 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListPagesResponse, error) {
25974 gensupport.SetOptions(c.urlParams_, opts...)
25975 res, err := c.doRequest("json")
25976 if res != nil && res.StatusCode == http.StatusNotModified {
25977 if res.Body != nil {
25978 res.Body.Close()
25979 }
25980 return nil, gensupport.WrapError(&googleapi.Error{
25981 Code: res.StatusCode,
25982 Header: res.Header,
25983 })
25984 }
25985 if err != nil {
25986 return nil, err
25987 }
25988 defer googleapi.CloseBody(res)
25989 if err := googleapi.CheckResponse(res); err != nil {
25990 return nil, gensupport.WrapError(err)
25991 }
25992 ret := &GoogleCloudDialogflowCxV3ListPagesResponse{
25993 ServerResponse: googleapi.ServerResponse{
25994 Header: res.Header,
25995 HTTPStatusCode: res.StatusCode,
25996 },
25997 }
25998 target := &ret
25999 if err := gensupport.DecodeResponse(target, res); err != nil {
26000 return nil, err
26001 }
26002 return ret, nil
26003 }
26004
26005
26006
26007
26008 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListPagesResponse) error) error {
26009 c.ctx_ = ctx
26010 defer c.PageToken(c.urlParams_.Get("pageToken"))
26011 for {
26012 x, err := c.Do()
26013 if err != nil {
26014 return err
26015 }
26016 if err := f(x); err != nil {
26017 return err
26018 }
26019 if x.NextPageToken == "" {
26020 return nil
26021 }
26022 c.PageToken(x.NextPageToken)
26023 }
26024 }
26025
26026 type ProjectsLocationsAgentsFlowsPagesPatchCall struct {
26027 s *Service
26028 nameid string
26029 googleclouddialogflowcxv3page *GoogleCloudDialogflowCxV3Page
26030 urlParams_ gensupport.URLParams
26031 ctx_ context.Context
26032 header_ http.Header
26033 }
26034
26035
26036
26037
26038
26039
26040
26041
26042 func (r *ProjectsLocationsAgentsFlowsPagesService) Patch(nameid string, googleclouddialogflowcxv3page *GoogleCloudDialogflowCxV3Page) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26043 c := &ProjectsLocationsAgentsFlowsPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26044 c.nameid = nameid
26045 c.googleclouddialogflowcxv3page = googleclouddialogflowcxv3page
26046 return c
26047 }
26048
26049
26050
26051
26052
26053
26054
26055
26056
26057
26058
26059
26060
26061
26062
26063
26064
26065 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26066 c.urlParams_.Set("languageCode", languageCode)
26067 return c
26068 }
26069
26070
26071
26072
26073 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26074 c.urlParams_.Set("updateMask", updateMask)
26075 return c
26076 }
26077
26078
26079
26080
26081 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26082 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26083 return c
26084 }
26085
26086
26087 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26088 c.ctx_ = ctx
26089 return c
26090 }
26091
26092
26093
26094 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Header() http.Header {
26095 if c.header_ == nil {
26096 c.header_ = make(http.Header)
26097 }
26098 return c.header_
26099 }
26100
26101 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*http.Response, error) {
26102 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26103 var body io.Reader = nil
26104 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3page)
26105 if err != nil {
26106 return nil, err
26107 }
26108 c.urlParams_.Set("alt", alt)
26109 c.urlParams_.Set("prettyPrint", "false")
26110 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
26111 urls += "?" + c.urlParams_.Encode()
26112 req, err := http.NewRequest("PATCH", urls, body)
26113 if err != nil {
26114 return nil, err
26115 }
26116 req.Header = reqHeaders
26117 googleapi.Expand(req.URL, map[string]string{
26118 "name": c.nameid,
26119 })
26120 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26121 }
26122
26123
26124
26125
26126
26127
26128
26129 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Page, error) {
26130 gensupport.SetOptions(c.urlParams_, opts...)
26131 res, err := c.doRequest("json")
26132 if res != nil && res.StatusCode == http.StatusNotModified {
26133 if res.Body != nil {
26134 res.Body.Close()
26135 }
26136 return nil, gensupport.WrapError(&googleapi.Error{
26137 Code: res.StatusCode,
26138 Header: res.Header,
26139 })
26140 }
26141 if err != nil {
26142 return nil, err
26143 }
26144 defer googleapi.CloseBody(res)
26145 if err := googleapi.CheckResponse(res); err != nil {
26146 return nil, gensupport.WrapError(err)
26147 }
26148 ret := &GoogleCloudDialogflowCxV3Page{
26149 ServerResponse: googleapi.ServerResponse{
26150 Header: res.Header,
26151 HTTPStatusCode: res.StatusCode,
26152 },
26153 }
26154 target := &ret
26155 if err := gensupport.DecodeResponse(target, res); err != nil {
26156 return nil, err
26157 }
26158 return ret, nil
26159 }
26160
26161 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall struct {
26162 s *Service
26163 parent string
26164 googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup
26165 urlParams_ gensupport.URLParams
26166 ctx_ context.Context
26167 header_ http.Header
26168 }
26169
26170
26171
26172
26173
26174
26175
26176
26177
26178 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26179 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26180 c.parent = parent
26181 c.googleclouddialogflowcxv3transitionroutegroup = googleclouddialogflowcxv3transitionroutegroup
26182 return c
26183 }
26184
26185
26186
26187
26188
26189
26190
26191
26192
26193 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26194 c.urlParams_.Set("languageCode", languageCode)
26195 return c
26196 }
26197
26198
26199
26200
26201 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26202 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26203 return c
26204 }
26205
26206
26207 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26208 c.ctx_ = ctx
26209 return c
26210 }
26211
26212
26213
26214 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Header() http.Header {
26215 if c.header_ == nil {
26216 c.header_ = make(http.Header)
26217 }
26218 return c.header_
26219 }
26220
26221 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
26222 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26223 var body io.Reader = nil
26224 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3transitionroutegroup)
26225 if err != nil {
26226 return nil, err
26227 }
26228 c.urlParams_.Set("alt", alt)
26229 c.urlParams_.Set("prettyPrint", "false")
26230 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/transitionRouteGroups")
26231 urls += "?" + c.urlParams_.Encode()
26232 req, err := http.NewRequest("POST", urls, body)
26233 if err != nil {
26234 return nil, err
26235 }
26236 req.Header = reqHeaders
26237 googleapi.Expand(req.URL, map[string]string{
26238 "parent": c.parent,
26239 })
26240 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26241 }
26242
26243
26244
26245
26246
26247
26248
26249 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TransitionRouteGroup, error) {
26250 gensupport.SetOptions(c.urlParams_, opts...)
26251 res, err := c.doRequest("json")
26252 if res != nil && res.StatusCode == http.StatusNotModified {
26253 if res.Body != nil {
26254 res.Body.Close()
26255 }
26256 return nil, gensupport.WrapError(&googleapi.Error{
26257 Code: res.StatusCode,
26258 Header: res.Header,
26259 })
26260 }
26261 if err != nil {
26262 return nil, err
26263 }
26264 defer googleapi.CloseBody(res)
26265 if err := googleapi.CheckResponse(res); err != nil {
26266 return nil, gensupport.WrapError(err)
26267 }
26268 ret := &GoogleCloudDialogflowCxV3TransitionRouteGroup{
26269 ServerResponse: googleapi.ServerResponse{
26270 Header: res.Header,
26271 HTTPStatusCode: res.StatusCode,
26272 },
26273 }
26274 target := &ret
26275 if err := gensupport.DecodeResponse(target, res); err != nil {
26276 return nil, err
26277 }
26278 return ret, nil
26279 }
26280
26281 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall struct {
26282 s *Service
26283 name string
26284 urlParams_ gensupport.URLParams
26285 ctx_ context.Context
26286 header_ http.Header
26287 }
26288
26289
26290
26291
26292
26293
26294
26295
26296 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
26297 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26298 c.name = name
26299 return c
26300 }
26301
26302
26303
26304
26305
26306
26307
26308 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
26309 c.urlParams_.Set("force", fmt.Sprint(force))
26310 return c
26311 }
26312
26313
26314
26315
26316 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
26317 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26318 return c
26319 }
26320
26321
26322 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
26323 c.ctx_ = ctx
26324 return c
26325 }
26326
26327
26328
26329 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Header() http.Header {
26330 if c.header_ == nil {
26331 c.header_ = make(http.Header)
26332 }
26333 return c.header_
26334 }
26335
26336 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
26337 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26338 var body io.Reader = nil
26339 c.urlParams_.Set("alt", alt)
26340 c.urlParams_.Set("prettyPrint", "false")
26341 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
26342 urls += "?" + c.urlParams_.Encode()
26343 req, err := http.NewRequest("DELETE", urls, body)
26344 if err != nil {
26345 return nil, err
26346 }
26347 req.Header = reqHeaders
26348 googleapi.Expand(req.URL, map[string]string{
26349 "name": c.name,
26350 })
26351 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26352 }
26353
26354
26355
26356
26357
26358
26359
26360 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26361 gensupport.SetOptions(c.urlParams_, opts...)
26362 res, err := c.doRequest("json")
26363 if res != nil && res.StatusCode == http.StatusNotModified {
26364 if res.Body != nil {
26365 res.Body.Close()
26366 }
26367 return nil, gensupport.WrapError(&googleapi.Error{
26368 Code: res.StatusCode,
26369 Header: res.Header,
26370 })
26371 }
26372 if err != nil {
26373 return nil, err
26374 }
26375 defer googleapi.CloseBody(res)
26376 if err := googleapi.CheckResponse(res); err != nil {
26377 return nil, gensupport.WrapError(err)
26378 }
26379 ret := &GoogleProtobufEmpty{
26380 ServerResponse: googleapi.ServerResponse{
26381 Header: res.Header,
26382 HTTPStatusCode: res.StatusCode,
26383 },
26384 }
26385 target := &ret
26386 if err := gensupport.DecodeResponse(target, res); err != nil {
26387 return nil, err
26388 }
26389 return ret, nil
26390 }
26391
26392 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall struct {
26393 s *Service
26394 name string
26395 urlParams_ gensupport.URLParams
26396 ifNoneMatch_ string
26397 ctx_ context.Context
26398 header_ http.Header
26399 }
26400
26401
26402
26403
26404
26405
26406 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
26407 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26408 c.name = name
26409 return c
26410 }
26411
26412
26413
26414
26415
26416
26417
26418
26419
26420
26421 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
26422 c.urlParams_.Set("languageCode", languageCode)
26423 return c
26424 }
26425
26426
26427
26428
26429 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
26430 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26431 return c
26432 }
26433
26434
26435
26436
26437 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
26438 c.ifNoneMatch_ = entityTag
26439 return c
26440 }
26441
26442
26443 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
26444 c.ctx_ = ctx
26445 return c
26446 }
26447
26448
26449
26450 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Header() http.Header {
26451 if c.header_ == nil {
26452 c.header_ = make(http.Header)
26453 }
26454 return c.header_
26455 }
26456
26457 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
26458 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26459 if c.ifNoneMatch_ != "" {
26460 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26461 }
26462 var body io.Reader = nil
26463 c.urlParams_.Set("alt", alt)
26464 c.urlParams_.Set("prettyPrint", "false")
26465 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
26466 urls += "?" + c.urlParams_.Encode()
26467 req, err := http.NewRequest("GET", urls, body)
26468 if err != nil {
26469 return nil, err
26470 }
26471 req.Header = reqHeaders
26472 googleapi.Expand(req.URL, map[string]string{
26473 "name": c.name,
26474 })
26475 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26476 }
26477
26478
26479
26480
26481
26482
26483
26484 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TransitionRouteGroup, error) {
26485 gensupport.SetOptions(c.urlParams_, opts...)
26486 res, err := c.doRequest("json")
26487 if res != nil && res.StatusCode == http.StatusNotModified {
26488 if res.Body != nil {
26489 res.Body.Close()
26490 }
26491 return nil, gensupport.WrapError(&googleapi.Error{
26492 Code: res.StatusCode,
26493 Header: res.Header,
26494 })
26495 }
26496 if err != nil {
26497 return nil, err
26498 }
26499 defer googleapi.CloseBody(res)
26500 if err := googleapi.CheckResponse(res); err != nil {
26501 return nil, gensupport.WrapError(err)
26502 }
26503 ret := &GoogleCloudDialogflowCxV3TransitionRouteGroup{
26504 ServerResponse: googleapi.ServerResponse{
26505 Header: res.Header,
26506 HTTPStatusCode: res.StatusCode,
26507 },
26508 }
26509 target := &ret
26510 if err := gensupport.DecodeResponse(target, res); err != nil {
26511 return nil, err
26512 }
26513 return ret, nil
26514 }
26515
26516 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall struct {
26517 s *Service
26518 parent string
26519 urlParams_ gensupport.URLParams
26520 ifNoneMatch_ string
26521 ctx_ context.Context
26522 header_ http.Header
26523 }
26524
26525
26526
26527
26528
26529 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26530 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26531 c.parent = parent
26532 return c
26533 }
26534
26535
26536
26537
26538
26539
26540
26541
26542
26543
26544 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26545 c.urlParams_.Set("languageCode", languageCode)
26546 return c
26547 }
26548
26549
26550
26551 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26552 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26553 return c
26554 }
26555
26556
26557
26558 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26559 c.urlParams_.Set("pageToken", pageToken)
26560 return c
26561 }
26562
26563
26564
26565
26566 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26567 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26568 return c
26569 }
26570
26571
26572
26573
26574 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26575 c.ifNoneMatch_ = entityTag
26576 return c
26577 }
26578
26579
26580 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
26581 c.ctx_ = ctx
26582 return c
26583 }
26584
26585
26586
26587 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Header() http.Header {
26588 if c.header_ == nil {
26589 c.header_ = make(http.Header)
26590 }
26591 return c.header_
26592 }
26593
26594 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
26595 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26596 if c.ifNoneMatch_ != "" {
26597 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26598 }
26599 var body io.Reader = nil
26600 c.urlParams_.Set("alt", alt)
26601 c.urlParams_.Set("prettyPrint", "false")
26602 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/transitionRouteGroups")
26603 urls += "?" + c.urlParams_.Encode()
26604 req, err := http.NewRequest("GET", urls, body)
26605 if err != nil {
26606 return nil, err
26607 }
26608 req.Header = reqHeaders
26609 googleapi.Expand(req.URL, map[string]string{
26610 "parent": c.parent,
26611 })
26612 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26613 }
26614
26615
26616
26617
26618
26619
26620
26621 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse, error) {
26622 gensupport.SetOptions(c.urlParams_, opts...)
26623 res, err := c.doRequest("json")
26624 if res != nil && res.StatusCode == http.StatusNotModified {
26625 if res.Body != nil {
26626 res.Body.Close()
26627 }
26628 return nil, gensupport.WrapError(&googleapi.Error{
26629 Code: res.StatusCode,
26630 Header: res.Header,
26631 })
26632 }
26633 if err != nil {
26634 return nil, err
26635 }
26636 defer googleapi.CloseBody(res)
26637 if err := googleapi.CheckResponse(res); err != nil {
26638 return nil, gensupport.WrapError(err)
26639 }
26640 ret := &GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse{
26641 ServerResponse: googleapi.ServerResponse{
26642 Header: res.Header,
26643 HTTPStatusCode: res.StatusCode,
26644 },
26645 }
26646 target := &ret
26647 if err := gensupport.DecodeResponse(target, res); err != nil {
26648 return nil, err
26649 }
26650 return ret, nil
26651 }
26652
26653
26654
26655
26656 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse) error) error {
26657 c.ctx_ = ctx
26658 defer c.PageToken(c.urlParams_.Get("pageToken"))
26659 for {
26660 x, err := c.Do()
26661 if err != nil {
26662 return err
26663 }
26664 if err := f(x); err != nil {
26665 return err
26666 }
26667 if x.NextPageToken == "" {
26668 return nil
26669 }
26670 c.PageToken(x.NextPageToken)
26671 }
26672 }
26673
26674 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall struct {
26675 s *Service
26676 nameid string
26677 googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup
26678 urlParams_ gensupport.URLParams
26679 ctx_ context.Context
26680 header_ http.Header
26681 }
26682
26683
26684
26685
26686
26687
26688
26689
26690
26691 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
26692 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26693 c.nameid = nameid
26694 c.googleclouddialogflowcxv3transitionroutegroup = googleclouddialogflowcxv3transitionroutegroup
26695 return c
26696 }
26697
26698
26699
26700
26701
26702
26703
26704
26705
26706 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
26707 c.urlParams_.Set("languageCode", languageCode)
26708 return c
26709 }
26710
26711
26712
26713 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
26714 c.urlParams_.Set("updateMask", updateMask)
26715 return c
26716 }
26717
26718
26719
26720
26721 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
26722 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26723 return c
26724 }
26725
26726
26727 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
26728 c.ctx_ = ctx
26729 return c
26730 }
26731
26732
26733
26734 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Header() http.Header {
26735 if c.header_ == nil {
26736 c.header_ = make(http.Header)
26737 }
26738 return c.header_
26739 }
26740
26741 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
26742 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26743 var body io.Reader = nil
26744 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3transitionroutegroup)
26745 if err != nil {
26746 return nil, err
26747 }
26748 c.urlParams_.Set("alt", alt)
26749 c.urlParams_.Set("prettyPrint", "false")
26750 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
26751 urls += "?" + c.urlParams_.Encode()
26752 req, err := http.NewRequest("PATCH", urls, body)
26753 if err != nil {
26754 return nil, err
26755 }
26756 req.Header = reqHeaders
26757 googleapi.Expand(req.URL, map[string]string{
26758 "name": c.nameid,
26759 })
26760 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26761 }
26762
26763
26764
26765
26766
26767
26768
26769 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TransitionRouteGroup, error) {
26770 gensupport.SetOptions(c.urlParams_, opts...)
26771 res, err := c.doRequest("json")
26772 if res != nil && res.StatusCode == http.StatusNotModified {
26773 if res.Body != nil {
26774 res.Body.Close()
26775 }
26776 return nil, gensupport.WrapError(&googleapi.Error{
26777 Code: res.StatusCode,
26778 Header: res.Header,
26779 })
26780 }
26781 if err != nil {
26782 return nil, err
26783 }
26784 defer googleapi.CloseBody(res)
26785 if err := googleapi.CheckResponse(res); err != nil {
26786 return nil, gensupport.WrapError(err)
26787 }
26788 ret := &GoogleCloudDialogflowCxV3TransitionRouteGroup{
26789 ServerResponse: googleapi.ServerResponse{
26790 Header: res.Header,
26791 HTTPStatusCode: res.StatusCode,
26792 },
26793 }
26794 target := &ret
26795 if err := gensupport.DecodeResponse(target, res); err != nil {
26796 return nil, err
26797 }
26798 return ret, nil
26799 }
26800
26801 type ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall struct {
26802 s *Service
26803 baseVersion string
26804 googleclouddialogflowcxv3compareversionsrequest *GoogleCloudDialogflowCxV3CompareVersionsRequest
26805 urlParams_ gensupport.URLParams
26806 ctx_ context.Context
26807 header_ http.Header
26808 }
26809
26810
26811
26812
26813
26814
26815 func (r *ProjectsLocationsAgentsFlowsVersionsService) CompareVersions(baseVersion string, googleclouddialogflowcxv3compareversionsrequest *GoogleCloudDialogflowCxV3CompareVersionsRequest) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
26816 c := &ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26817 c.baseVersion = baseVersion
26818 c.googleclouddialogflowcxv3compareversionsrequest = googleclouddialogflowcxv3compareversionsrequest
26819 return c
26820 }
26821
26822
26823
26824
26825 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
26826 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26827 return c
26828 }
26829
26830
26831 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
26832 c.ctx_ = ctx
26833 return c
26834 }
26835
26836
26837
26838 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Header() http.Header {
26839 if c.header_ == nil {
26840 c.header_ = make(http.Header)
26841 }
26842 return c.header_
26843 }
26844
26845 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) doRequest(alt string) (*http.Response, error) {
26846 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26847 var body io.Reader = nil
26848 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3compareversionsrequest)
26849 if err != nil {
26850 return nil, err
26851 }
26852 c.urlParams_.Set("alt", alt)
26853 c.urlParams_.Set("prettyPrint", "false")
26854 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+baseVersion}:compareVersions")
26855 urls += "?" + c.urlParams_.Encode()
26856 req, err := http.NewRequest("POST", urls, body)
26857 if err != nil {
26858 return nil, err
26859 }
26860 req.Header = reqHeaders
26861 googleapi.Expand(req.URL, map[string]string{
26862 "baseVersion": c.baseVersion,
26863 })
26864 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26865 }
26866
26867
26868
26869
26870
26871
26872
26873 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3CompareVersionsResponse, error) {
26874 gensupport.SetOptions(c.urlParams_, opts...)
26875 res, err := c.doRequest("json")
26876 if res != nil && res.StatusCode == http.StatusNotModified {
26877 if res.Body != nil {
26878 res.Body.Close()
26879 }
26880 return nil, gensupport.WrapError(&googleapi.Error{
26881 Code: res.StatusCode,
26882 Header: res.Header,
26883 })
26884 }
26885 if err != nil {
26886 return nil, err
26887 }
26888 defer googleapi.CloseBody(res)
26889 if err := googleapi.CheckResponse(res); err != nil {
26890 return nil, gensupport.WrapError(err)
26891 }
26892 ret := &GoogleCloudDialogflowCxV3CompareVersionsResponse{
26893 ServerResponse: googleapi.ServerResponse{
26894 Header: res.Header,
26895 HTTPStatusCode: res.StatusCode,
26896 },
26897 }
26898 target := &ret
26899 if err := gensupport.DecodeResponse(target, res); err != nil {
26900 return nil, err
26901 }
26902 return ret, nil
26903 }
26904
26905 type ProjectsLocationsAgentsFlowsVersionsCreateCall struct {
26906 s *Service
26907 parent string
26908 googleclouddialogflowcxv3version *GoogleCloudDialogflowCxV3Version
26909 urlParams_ gensupport.URLParams
26910 ctx_ context.Context
26911 header_ http.Header
26912 }
26913
26914
26915
26916
26917
26918
26919
26920
26921
26922 func (r *ProjectsLocationsAgentsFlowsVersionsService) Create(parent string, googleclouddialogflowcxv3version *GoogleCloudDialogflowCxV3Version) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
26923 c := &ProjectsLocationsAgentsFlowsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26924 c.parent = parent
26925 c.googleclouddialogflowcxv3version = googleclouddialogflowcxv3version
26926 return c
26927 }
26928
26929
26930
26931
26932 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
26933 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26934 return c
26935 }
26936
26937
26938 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
26939 c.ctx_ = ctx
26940 return c
26941 }
26942
26943
26944
26945 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Header() http.Header {
26946 if c.header_ == nil {
26947 c.header_ = make(http.Header)
26948 }
26949 return c.header_
26950 }
26951
26952 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
26953 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26954 var body io.Reader = nil
26955 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3version)
26956 if err != nil {
26957 return nil, err
26958 }
26959 c.urlParams_.Set("alt", alt)
26960 c.urlParams_.Set("prettyPrint", "false")
26961 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/versions")
26962 urls += "?" + c.urlParams_.Encode()
26963 req, err := http.NewRequest("POST", urls, body)
26964 if err != nil {
26965 return nil, err
26966 }
26967 req.Header = reqHeaders
26968 googleapi.Expand(req.URL, map[string]string{
26969 "parent": c.parent,
26970 })
26971 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26972 }
26973
26974
26975
26976
26977
26978
26979
26980 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26981 gensupport.SetOptions(c.urlParams_, opts...)
26982 res, err := c.doRequest("json")
26983 if res != nil && res.StatusCode == http.StatusNotModified {
26984 if res.Body != nil {
26985 res.Body.Close()
26986 }
26987 return nil, gensupport.WrapError(&googleapi.Error{
26988 Code: res.StatusCode,
26989 Header: res.Header,
26990 })
26991 }
26992 if err != nil {
26993 return nil, err
26994 }
26995 defer googleapi.CloseBody(res)
26996 if err := googleapi.CheckResponse(res); err != nil {
26997 return nil, gensupport.WrapError(err)
26998 }
26999 ret := &GoogleLongrunningOperation{
27000 ServerResponse: googleapi.ServerResponse{
27001 Header: res.Header,
27002 HTTPStatusCode: res.StatusCode,
27003 },
27004 }
27005 target := &ret
27006 if err := gensupport.DecodeResponse(target, res); err != nil {
27007 return nil, err
27008 }
27009 return ret, nil
27010 }
27011
27012 type ProjectsLocationsAgentsFlowsVersionsDeleteCall struct {
27013 s *Service
27014 name string
27015 urlParams_ gensupport.URLParams
27016 ctx_ context.Context
27017 header_ http.Header
27018 }
27019
27020
27021
27022
27023
27024 func (r *ProjectsLocationsAgentsFlowsVersionsService) Delete(name string) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
27025 c := &ProjectsLocationsAgentsFlowsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27026 c.name = name
27027 return c
27028 }
27029
27030
27031
27032
27033 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
27034 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27035 return c
27036 }
27037
27038
27039 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
27040 c.ctx_ = ctx
27041 return c
27042 }
27043
27044
27045
27046 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Header() http.Header {
27047 if c.header_ == nil {
27048 c.header_ = make(http.Header)
27049 }
27050 return c.header_
27051 }
27052
27053 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
27054 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27055 var body io.Reader = nil
27056 c.urlParams_.Set("alt", alt)
27057 c.urlParams_.Set("prettyPrint", "false")
27058 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
27059 urls += "?" + c.urlParams_.Encode()
27060 req, err := http.NewRequest("DELETE", urls, body)
27061 if err != nil {
27062 return nil, err
27063 }
27064 req.Header = reqHeaders
27065 googleapi.Expand(req.URL, map[string]string{
27066 "name": c.name,
27067 })
27068 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27069 }
27070
27071
27072
27073
27074
27075
27076
27077 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27078 gensupport.SetOptions(c.urlParams_, opts...)
27079 res, err := c.doRequest("json")
27080 if res != nil && res.StatusCode == http.StatusNotModified {
27081 if res.Body != nil {
27082 res.Body.Close()
27083 }
27084 return nil, gensupport.WrapError(&googleapi.Error{
27085 Code: res.StatusCode,
27086 Header: res.Header,
27087 })
27088 }
27089 if err != nil {
27090 return nil, err
27091 }
27092 defer googleapi.CloseBody(res)
27093 if err := googleapi.CheckResponse(res); err != nil {
27094 return nil, gensupport.WrapError(err)
27095 }
27096 ret := &GoogleProtobufEmpty{
27097 ServerResponse: googleapi.ServerResponse{
27098 Header: res.Header,
27099 HTTPStatusCode: res.StatusCode,
27100 },
27101 }
27102 target := &ret
27103 if err := gensupport.DecodeResponse(target, res); err != nil {
27104 return nil, err
27105 }
27106 return ret, nil
27107 }
27108
27109 type ProjectsLocationsAgentsFlowsVersionsGetCall struct {
27110 s *Service
27111 name string
27112 urlParams_ gensupport.URLParams
27113 ifNoneMatch_ string
27114 ctx_ context.Context
27115 header_ http.Header
27116 }
27117
27118
27119
27120
27121
27122 func (r *ProjectsLocationsAgentsFlowsVersionsService) Get(name string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27123 c := &ProjectsLocationsAgentsFlowsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27124 c.name = name
27125 return c
27126 }
27127
27128
27129
27130
27131 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27132 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27133 return c
27134 }
27135
27136
27137
27138
27139 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27140 c.ifNoneMatch_ = entityTag
27141 return c
27142 }
27143
27144
27145 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27146 c.ctx_ = ctx
27147 return c
27148 }
27149
27150
27151
27152 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Header() http.Header {
27153 if c.header_ == nil {
27154 c.header_ = make(http.Header)
27155 }
27156 return c.header_
27157 }
27158
27159 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
27160 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27161 if c.ifNoneMatch_ != "" {
27162 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27163 }
27164 var body io.Reader = nil
27165 c.urlParams_.Set("alt", alt)
27166 c.urlParams_.Set("prettyPrint", "false")
27167 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
27168 urls += "?" + c.urlParams_.Encode()
27169 req, err := http.NewRequest("GET", urls, body)
27170 if err != nil {
27171 return nil, err
27172 }
27173 req.Header = reqHeaders
27174 googleapi.Expand(req.URL, map[string]string{
27175 "name": c.name,
27176 })
27177 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27178 }
27179
27180
27181
27182
27183
27184
27185
27186 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Version, error) {
27187 gensupport.SetOptions(c.urlParams_, opts...)
27188 res, err := c.doRequest("json")
27189 if res != nil && res.StatusCode == http.StatusNotModified {
27190 if res.Body != nil {
27191 res.Body.Close()
27192 }
27193 return nil, gensupport.WrapError(&googleapi.Error{
27194 Code: res.StatusCode,
27195 Header: res.Header,
27196 })
27197 }
27198 if err != nil {
27199 return nil, err
27200 }
27201 defer googleapi.CloseBody(res)
27202 if err := googleapi.CheckResponse(res); err != nil {
27203 return nil, gensupport.WrapError(err)
27204 }
27205 ret := &GoogleCloudDialogflowCxV3Version{
27206 ServerResponse: googleapi.ServerResponse{
27207 Header: res.Header,
27208 HTTPStatusCode: res.StatusCode,
27209 },
27210 }
27211 target := &ret
27212 if err := gensupport.DecodeResponse(target, res); err != nil {
27213 return nil, err
27214 }
27215 return ret, nil
27216 }
27217
27218 type ProjectsLocationsAgentsFlowsVersionsListCall struct {
27219 s *Service
27220 parent string
27221 urlParams_ gensupport.URLParams
27222 ifNoneMatch_ string
27223 ctx_ context.Context
27224 header_ http.Header
27225 }
27226
27227
27228
27229
27230
27231 func (r *ProjectsLocationsAgentsFlowsVersionsService) List(parent string) *ProjectsLocationsAgentsFlowsVersionsListCall {
27232 c := &ProjectsLocationsAgentsFlowsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27233 c.parent = parent
27234 return c
27235 }
27236
27237
27238
27239 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsVersionsListCall {
27240 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27241 return c
27242 }
27243
27244
27245
27246 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsVersionsListCall {
27247 c.urlParams_.Set("pageToken", pageToken)
27248 return c
27249 }
27250
27251
27252
27253
27254 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsListCall {
27255 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27256 return c
27257 }
27258
27259
27260
27261
27262 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsListCall {
27263 c.ifNoneMatch_ = entityTag
27264 return c
27265 }
27266
27267
27268 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsListCall {
27269 c.ctx_ = ctx
27270 return c
27271 }
27272
27273
27274
27275 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Header() http.Header {
27276 if c.header_ == nil {
27277 c.header_ = make(http.Header)
27278 }
27279 return c.header_
27280 }
27281
27282 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*http.Response, error) {
27283 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27284 if c.ifNoneMatch_ != "" {
27285 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27286 }
27287 var body io.Reader = nil
27288 c.urlParams_.Set("alt", alt)
27289 c.urlParams_.Set("prettyPrint", "false")
27290 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/versions")
27291 urls += "?" + c.urlParams_.Encode()
27292 req, err := http.NewRequest("GET", urls, body)
27293 if err != nil {
27294 return nil, err
27295 }
27296 req.Header = reqHeaders
27297 googleapi.Expand(req.URL, map[string]string{
27298 "parent": c.parent,
27299 })
27300 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27301 }
27302
27303
27304
27305
27306
27307
27308
27309 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListVersionsResponse, error) {
27310 gensupport.SetOptions(c.urlParams_, opts...)
27311 res, err := c.doRequest("json")
27312 if res != nil && res.StatusCode == http.StatusNotModified {
27313 if res.Body != nil {
27314 res.Body.Close()
27315 }
27316 return nil, gensupport.WrapError(&googleapi.Error{
27317 Code: res.StatusCode,
27318 Header: res.Header,
27319 })
27320 }
27321 if err != nil {
27322 return nil, err
27323 }
27324 defer googleapi.CloseBody(res)
27325 if err := googleapi.CheckResponse(res); err != nil {
27326 return nil, gensupport.WrapError(err)
27327 }
27328 ret := &GoogleCloudDialogflowCxV3ListVersionsResponse{
27329 ServerResponse: googleapi.ServerResponse{
27330 Header: res.Header,
27331 HTTPStatusCode: res.StatusCode,
27332 },
27333 }
27334 target := &ret
27335 if err := gensupport.DecodeResponse(target, res); err != nil {
27336 return nil, err
27337 }
27338 return ret, nil
27339 }
27340
27341
27342
27343
27344 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListVersionsResponse) error) error {
27345 c.ctx_ = ctx
27346 defer c.PageToken(c.urlParams_.Get("pageToken"))
27347 for {
27348 x, err := c.Do()
27349 if err != nil {
27350 return err
27351 }
27352 if err := f(x); err != nil {
27353 return err
27354 }
27355 if x.NextPageToken == "" {
27356 return nil
27357 }
27358 c.PageToken(x.NextPageToken)
27359 }
27360 }
27361
27362 type ProjectsLocationsAgentsFlowsVersionsLoadCall struct {
27363 s *Service
27364 name string
27365 googleclouddialogflowcxv3loadversionrequest *GoogleCloudDialogflowCxV3LoadVersionRequest
27366 urlParams_ gensupport.URLParams
27367 ctx_ context.Context
27368 header_ http.Header
27369 }
27370
27371
27372
27373
27374
27375
27376
27377
27378
27379
27380
27381
27382 func (r *ProjectsLocationsAgentsFlowsVersionsService) Load(name string, googleclouddialogflowcxv3loadversionrequest *GoogleCloudDialogflowCxV3LoadVersionRequest) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
27383 c := &ProjectsLocationsAgentsFlowsVersionsLoadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27384 c.name = name
27385 c.googleclouddialogflowcxv3loadversionrequest = googleclouddialogflowcxv3loadversionrequest
27386 return c
27387 }
27388
27389
27390
27391
27392 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
27393 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27394 return c
27395 }
27396
27397
27398 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
27399 c.ctx_ = ctx
27400 return c
27401 }
27402
27403
27404
27405 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Header() http.Header {
27406 if c.header_ == nil {
27407 c.header_ = make(http.Header)
27408 }
27409 return c.header_
27410 }
27411
27412 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*http.Response, error) {
27413 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27414 var body io.Reader = nil
27415 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3loadversionrequest)
27416 if err != nil {
27417 return nil, err
27418 }
27419 c.urlParams_.Set("alt", alt)
27420 c.urlParams_.Set("prettyPrint", "false")
27421 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:load")
27422 urls += "?" + c.urlParams_.Encode()
27423 req, err := http.NewRequest("POST", urls, body)
27424 if err != nil {
27425 return nil, err
27426 }
27427 req.Header = reqHeaders
27428 googleapi.Expand(req.URL, map[string]string{
27429 "name": c.name,
27430 })
27431 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27432 }
27433
27434
27435
27436
27437
27438
27439
27440 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27441 gensupport.SetOptions(c.urlParams_, opts...)
27442 res, err := c.doRequest("json")
27443 if res != nil && res.StatusCode == http.StatusNotModified {
27444 if res.Body != nil {
27445 res.Body.Close()
27446 }
27447 return nil, gensupport.WrapError(&googleapi.Error{
27448 Code: res.StatusCode,
27449 Header: res.Header,
27450 })
27451 }
27452 if err != nil {
27453 return nil, err
27454 }
27455 defer googleapi.CloseBody(res)
27456 if err := googleapi.CheckResponse(res); err != nil {
27457 return nil, gensupport.WrapError(err)
27458 }
27459 ret := &GoogleLongrunningOperation{
27460 ServerResponse: googleapi.ServerResponse{
27461 Header: res.Header,
27462 HTTPStatusCode: res.StatusCode,
27463 },
27464 }
27465 target := &ret
27466 if err := gensupport.DecodeResponse(target, res); err != nil {
27467 return nil, err
27468 }
27469 return ret, nil
27470 }
27471
27472 type ProjectsLocationsAgentsFlowsVersionsPatchCall struct {
27473 s *Service
27474 name string
27475 googleclouddialogflowcxv3version *GoogleCloudDialogflowCxV3Version
27476 urlParams_ gensupport.URLParams
27477 ctx_ context.Context
27478 header_ http.Header
27479 }
27480
27481
27482
27483
27484
27485 func (r *ProjectsLocationsAgentsFlowsVersionsService) Patch(name string, googleclouddialogflowcxv3version *GoogleCloudDialogflowCxV3Version) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
27486 c := &ProjectsLocationsAgentsFlowsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27487 c.name = name
27488 c.googleclouddialogflowcxv3version = googleclouddialogflowcxv3version
27489 return c
27490 }
27491
27492
27493
27494
27495 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
27496 c.urlParams_.Set("updateMask", updateMask)
27497 return c
27498 }
27499
27500
27501
27502
27503 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
27504 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27505 return c
27506 }
27507
27508
27509 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
27510 c.ctx_ = ctx
27511 return c
27512 }
27513
27514
27515
27516 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Header() http.Header {
27517 if c.header_ == nil {
27518 c.header_ = make(http.Header)
27519 }
27520 return c.header_
27521 }
27522
27523 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
27524 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27525 var body io.Reader = nil
27526 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3version)
27527 if err != nil {
27528 return nil, err
27529 }
27530 c.urlParams_.Set("alt", alt)
27531 c.urlParams_.Set("prettyPrint", "false")
27532 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
27533 urls += "?" + c.urlParams_.Encode()
27534 req, err := http.NewRequest("PATCH", urls, body)
27535 if err != nil {
27536 return nil, err
27537 }
27538 req.Header = reqHeaders
27539 googleapi.Expand(req.URL, map[string]string{
27540 "name": c.name,
27541 })
27542 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27543 }
27544
27545
27546
27547
27548
27549
27550
27551 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Version, error) {
27552 gensupport.SetOptions(c.urlParams_, opts...)
27553 res, err := c.doRequest("json")
27554 if res != nil && res.StatusCode == http.StatusNotModified {
27555 if res.Body != nil {
27556 res.Body.Close()
27557 }
27558 return nil, gensupport.WrapError(&googleapi.Error{
27559 Code: res.StatusCode,
27560 Header: res.Header,
27561 })
27562 }
27563 if err != nil {
27564 return nil, err
27565 }
27566 defer googleapi.CloseBody(res)
27567 if err := googleapi.CheckResponse(res); err != nil {
27568 return nil, gensupport.WrapError(err)
27569 }
27570 ret := &GoogleCloudDialogflowCxV3Version{
27571 ServerResponse: googleapi.ServerResponse{
27572 Header: res.Header,
27573 HTTPStatusCode: res.StatusCode,
27574 },
27575 }
27576 target := &ret
27577 if err := gensupport.DecodeResponse(target, res); err != nil {
27578 return nil, err
27579 }
27580 return ret, nil
27581 }
27582
27583 type ProjectsLocationsAgentsGeneratorsCreateCall struct {
27584 s *Service
27585 parent string
27586 googleclouddialogflowcxv3generator *GoogleCloudDialogflowCxV3Generator
27587 urlParams_ gensupport.URLParams
27588 ctx_ context.Context
27589 header_ http.Header
27590 }
27591
27592
27593
27594
27595
27596 func (r *ProjectsLocationsAgentsGeneratorsService) Create(parent string, googleclouddialogflowcxv3generator *GoogleCloudDialogflowCxV3Generator) *ProjectsLocationsAgentsGeneratorsCreateCall {
27597 c := &ProjectsLocationsAgentsGeneratorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27598 c.parent = parent
27599 c.googleclouddialogflowcxv3generator = googleclouddialogflowcxv3generator
27600 return c
27601 }
27602
27603
27604
27605
27606 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsCreateCall {
27607 c.urlParams_.Set("languageCode", languageCode)
27608 return c
27609 }
27610
27611
27612
27613
27614 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsCreateCall {
27615 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27616 return c
27617 }
27618
27619
27620 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsCreateCall {
27621 c.ctx_ = ctx
27622 return c
27623 }
27624
27625
27626
27627 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Header() http.Header {
27628 if c.header_ == nil {
27629 c.header_ = make(http.Header)
27630 }
27631 return c.header_
27632 }
27633
27634 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) doRequest(alt string) (*http.Response, error) {
27635 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27636 var body io.Reader = nil
27637 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3generator)
27638 if err != nil {
27639 return nil, err
27640 }
27641 c.urlParams_.Set("alt", alt)
27642 c.urlParams_.Set("prettyPrint", "false")
27643 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/generators")
27644 urls += "?" + c.urlParams_.Encode()
27645 req, err := http.NewRequest("POST", urls, body)
27646 if err != nil {
27647 return nil, err
27648 }
27649 req.Header = reqHeaders
27650 googleapi.Expand(req.URL, map[string]string{
27651 "parent": c.parent,
27652 })
27653 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27654 }
27655
27656
27657
27658
27659
27660
27661
27662 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Generator, error) {
27663 gensupport.SetOptions(c.urlParams_, opts...)
27664 res, err := c.doRequest("json")
27665 if res != nil && res.StatusCode == http.StatusNotModified {
27666 if res.Body != nil {
27667 res.Body.Close()
27668 }
27669 return nil, gensupport.WrapError(&googleapi.Error{
27670 Code: res.StatusCode,
27671 Header: res.Header,
27672 })
27673 }
27674 if err != nil {
27675 return nil, err
27676 }
27677 defer googleapi.CloseBody(res)
27678 if err := googleapi.CheckResponse(res); err != nil {
27679 return nil, gensupport.WrapError(err)
27680 }
27681 ret := &GoogleCloudDialogflowCxV3Generator{
27682 ServerResponse: googleapi.ServerResponse{
27683 Header: res.Header,
27684 HTTPStatusCode: res.StatusCode,
27685 },
27686 }
27687 target := &ret
27688 if err := gensupport.DecodeResponse(target, res); err != nil {
27689 return nil, err
27690 }
27691 return ret, nil
27692 }
27693
27694 type ProjectsLocationsAgentsGeneratorsDeleteCall struct {
27695 s *Service
27696 name string
27697 urlParams_ gensupport.URLParams
27698 ctx_ context.Context
27699 header_ http.Header
27700 }
27701
27702
27703
27704
27705
27706 func (r *ProjectsLocationsAgentsGeneratorsService) Delete(name string) *ProjectsLocationsAgentsGeneratorsDeleteCall {
27707 c := &ProjectsLocationsAgentsGeneratorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27708 c.name = name
27709 return c
27710 }
27711
27712
27713
27714
27715
27716
27717
27718 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Force(force bool) *ProjectsLocationsAgentsGeneratorsDeleteCall {
27719 c.urlParams_.Set("force", fmt.Sprint(force))
27720 return c
27721 }
27722
27723
27724
27725
27726 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsDeleteCall {
27727 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27728 return c
27729 }
27730
27731
27732 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsDeleteCall {
27733 c.ctx_ = ctx
27734 return c
27735 }
27736
27737
27738
27739 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Header() http.Header {
27740 if c.header_ == nil {
27741 c.header_ = make(http.Header)
27742 }
27743 return c.header_
27744 }
27745
27746 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) doRequest(alt string) (*http.Response, error) {
27747 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27748 var body io.Reader = nil
27749 c.urlParams_.Set("alt", alt)
27750 c.urlParams_.Set("prettyPrint", "false")
27751 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
27752 urls += "?" + c.urlParams_.Encode()
27753 req, err := http.NewRequest("DELETE", urls, body)
27754 if err != nil {
27755 return nil, err
27756 }
27757 req.Header = reqHeaders
27758 googleapi.Expand(req.URL, map[string]string{
27759 "name": c.name,
27760 })
27761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27762 }
27763
27764
27765
27766
27767
27768
27769
27770 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27771 gensupport.SetOptions(c.urlParams_, opts...)
27772 res, err := c.doRequest("json")
27773 if res != nil && res.StatusCode == http.StatusNotModified {
27774 if res.Body != nil {
27775 res.Body.Close()
27776 }
27777 return nil, gensupport.WrapError(&googleapi.Error{
27778 Code: res.StatusCode,
27779 Header: res.Header,
27780 })
27781 }
27782 if err != nil {
27783 return nil, err
27784 }
27785 defer googleapi.CloseBody(res)
27786 if err := googleapi.CheckResponse(res); err != nil {
27787 return nil, gensupport.WrapError(err)
27788 }
27789 ret := &GoogleProtobufEmpty{
27790 ServerResponse: googleapi.ServerResponse{
27791 Header: res.Header,
27792 HTTPStatusCode: res.StatusCode,
27793 },
27794 }
27795 target := &ret
27796 if err := gensupport.DecodeResponse(target, res); err != nil {
27797 return nil, err
27798 }
27799 return ret, nil
27800 }
27801
27802 type ProjectsLocationsAgentsGeneratorsGetCall struct {
27803 s *Service
27804 name string
27805 urlParams_ gensupport.URLParams
27806 ifNoneMatch_ string
27807 ctx_ context.Context
27808 header_ http.Header
27809 }
27810
27811
27812
27813
27814
27815 func (r *ProjectsLocationsAgentsGeneratorsService) Get(name string) *ProjectsLocationsAgentsGeneratorsGetCall {
27816 c := &ProjectsLocationsAgentsGeneratorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27817 c.name = name
27818 return c
27819 }
27820
27821
27822
27823 func (c *ProjectsLocationsAgentsGeneratorsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsGetCall {
27824 c.urlParams_.Set("languageCode", languageCode)
27825 return c
27826 }
27827
27828
27829
27830
27831 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsGetCall {
27832 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27833 return c
27834 }
27835
27836
27837
27838
27839 func (c *ProjectsLocationsAgentsGeneratorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGeneratorsGetCall {
27840 c.ifNoneMatch_ = entityTag
27841 return c
27842 }
27843
27844
27845 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsGetCall {
27846 c.ctx_ = ctx
27847 return c
27848 }
27849
27850
27851
27852 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Header() http.Header {
27853 if c.header_ == nil {
27854 c.header_ = make(http.Header)
27855 }
27856 return c.header_
27857 }
27858
27859 func (c *ProjectsLocationsAgentsGeneratorsGetCall) doRequest(alt string) (*http.Response, error) {
27860 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27861 if c.ifNoneMatch_ != "" {
27862 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27863 }
27864 var body io.Reader = nil
27865 c.urlParams_.Set("alt", alt)
27866 c.urlParams_.Set("prettyPrint", "false")
27867 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
27868 urls += "?" + c.urlParams_.Encode()
27869 req, err := http.NewRequest("GET", urls, body)
27870 if err != nil {
27871 return nil, err
27872 }
27873 req.Header = reqHeaders
27874 googleapi.Expand(req.URL, map[string]string{
27875 "name": c.name,
27876 })
27877 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27878 }
27879
27880
27881
27882
27883
27884
27885
27886 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Generator, error) {
27887 gensupport.SetOptions(c.urlParams_, opts...)
27888 res, err := c.doRequest("json")
27889 if res != nil && res.StatusCode == http.StatusNotModified {
27890 if res.Body != nil {
27891 res.Body.Close()
27892 }
27893 return nil, gensupport.WrapError(&googleapi.Error{
27894 Code: res.StatusCode,
27895 Header: res.Header,
27896 })
27897 }
27898 if err != nil {
27899 return nil, err
27900 }
27901 defer googleapi.CloseBody(res)
27902 if err := googleapi.CheckResponse(res); err != nil {
27903 return nil, gensupport.WrapError(err)
27904 }
27905 ret := &GoogleCloudDialogflowCxV3Generator{
27906 ServerResponse: googleapi.ServerResponse{
27907 Header: res.Header,
27908 HTTPStatusCode: res.StatusCode,
27909 },
27910 }
27911 target := &ret
27912 if err := gensupport.DecodeResponse(target, res); err != nil {
27913 return nil, err
27914 }
27915 return ret, nil
27916 }
27917
27918 type ProjectsLocationsAgentsGeneratorsListCall struct {
27919 s *Service
27920 parent string
27921 urlParams_ gensupport.URLParams
27922 ifNoneMatch_ string
27923 ctx_ context.Context
27924 header_ http.Header
27925 }
27926
27927
27928
27929
27930
27931 func (r *ProjectsLocationsAgentsGeneratorsService) List(parent string) *ProjectsLocationsAgentsGeneratorsListCall {
27932 c := &ProjectsLocationsAgentsGeneratorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27933 c.parent = parent
27934 return c
27935 }
27936
27937
27938
27939 func (c *ProjectsLocationsAgentsGeneratorsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsListCall {
27940 c.urlParams_.Set("languageCode", languageCode)
27941 return c
27942 }
27943
27944
27945
27946 func (c *ProjectsLocationsAgentsGeneratorsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsGeneratorsListCall {
27947 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27948 return c
27949 }
27950
27951
27952
27953 func (c *ProjectsLocationsAgentsGeneratorsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsGeneratorsListCall {
27954 c.urlParams_.Set("pageToken", pageToken)
27955 return c
27956 }
27957
27958
27959
27960
27961 func (c *ProjectsLocationsAgentsGeneratorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsListCall {
27962 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27963 return c
27964 }
27965
27966
27967
27968
27969 func (c *ProjectsLocationsAgentsGeneratorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGeneratorsListCall {
27970 c.ifNoneMatch_ = entityTag
27971 return c
27972 }
27973
27974
27975 func (c *ProjectsLocationsAgentsGeneratorsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsListCall {
27976 c.ctx_ = ctx
27977 return c
27978 }
27979
27980
27981
27982 func (c *ProjectsLocationsAgentsGeneratorsListCall) Header() http.Header {
27983 if c.header_ == nil {
27984 c.header_ = make(http.Header)
27985 }
27986 return c.header_
27987 }
27988
27989 func (c *ProjectsLocationsAgentsGeneratorsListCall) doRequest(alt string) (*http.Response, error) {
27990 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27991 if c.ifNoneMatch_ != "" {
27992 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27993 }
27994 var body io.Reader = nil
27995 c.urlParams_.Set("alt", alt)
27996 c.urlParams_.Set("prettyPrint", "false")
27997 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/generators")
27998 urls += "?" + c.urlParams_.Encode()
27999 req, err := http.NewRequest("GET", urls, body)
28000 if err != nil {
28001 return nil, err
28002 }
28003 req.Header = reqHeaders
28004 googleapi.Expand(req.URL, map[string]string{
28005 "parent": c.parent,
28006 })
28007 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28008 }
28009
28010
28011
28012
28013
28014
28015
28016 func (c *ProjectsLocationsAgentsGeneratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListGeneratorsResponse, error) {
28017 gensupport.SetOptions(c.urlParams_, opts...)
28018 res, err := c.doRequest("json")
28019 if res != nil && res.StatusCode == http.StatusNotModified {
28020 if res.Body != nil {
28021 res.Body.Close()
28022 }
28023 return nil, gensupport.WrapError(&googleapi.Error{
28024 Code: res.StatusCode,
28025 Header: res.Header,
28026 })
28027 }
28028 if err != nil {
28029 return nil, err
28030 }
28031 defer googleapi.CloseBody(res)
28032 if err := googleapi.CheckResponse(res); err != nil {
28033 return nil, gensupport.WrapError(err)
28034 }
28035 ret := &GoogleCloudDialogflowCxV3ListGeneratorsResponse{
28036 ServerResponse: googleapi.ServerResponse{
28037 Header: res.Header,
28038 HTTPStatusCode: res.StatusCode,
28039 },
28040 }
28041 target := &ret
28042 if err := gensupport.DecodeResponse(target, res); err != nil {
28043 return nil, err
28044 }
28045 return ret, nil
28046 }
28047
28048
28049
28050
28051 func (c *ProjectsLocationsAgentsGeneratorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListGeneratorsResponse) error) error {
28052 c.ctx_ = ctx
28053 defer c.PageToken(c.urlParams_.Get("pageToken"))
28054 for {
28055 x, err := c.Do()
28056 if err != nil {
28057 return err
28058 }
28059 if err := f(x); err != nil {
28060 return err
28061 }
28062 if x.NextPageToken == "" {
28063 return nil
28064 }
28065 c.PageToken(x.NextPageToken)
28066 }
28067 }
28068
28069 type ProjectsLocationsAgentsGeneratorsPatchCall struct {
28070 s *Service
28071 nameid string
28072 googleclouddialogflowcxv3generator *GoogleCloudDialogflowCxV3Generator
28073 urlParams_ gensupport.URLParams
28074 ctx_ context.Context
28075 header_ http.Header
28076 }
28077
28078
28079
28080
28081
28082
28083 func (r *ProjectsLocationsAgentsGeneratorsService) Patch(nameid string, googleclouddialogflowcxv3generator *GoogleCloudDialogflowCxV3Generator) *ProjectsLocationsAgentsGeneratorsPatchCall {
28084 c := &ProjectsLocationsAgentsGeneratorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28085 c.nameid = nameid
28086 c.googleclouddialogflowcxv3generator = googleclouddialogflowcxv3generator
28087 return c
28088 }
28089
28090
28091
28092 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsPatchCall {
28093 c.urlParams_.Set("languageCode", languageCode)
28094 return c
28095 }
28096
28097
28098
28099
28100 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsGeneratorsPatchCall {
28101 c.urlParams_.Set("updateMask", updateMask)
28102 return c
28103 }
28104
28105
28106
28107
28108 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsPatchCall {
28109 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28110 return c
28111 }
28112
28113
28114 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsPatchCall {
28115 c.ctx_ = ctx
28116 return c
28117 }
28118
28119
28120
28121 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Header() http.Header {
28122 if c.header_ == nil {
28123 c.header_ = make(http.Header)
28124 }
28125 return c.header_
28126 }
28127
28128 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) doRequest(alt string) (*http.Response, error) {
28129 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28130 var body io.Reader = nil
28131 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3generator)
28132 if err != nil {
28133 return nil, err
28134 }
28135 c.urlParams_.Set("alt", alt)
28136 c.urlParams_.Set("prettyPrint", "false")
28137 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
28138 urls += "?" + c.urlParams_.Encode()
28139 req, err := http.NewRequest("PATCH", urls, body)
28140 if err != nil {
28141 return nil, err
28142 }
28143 req.Header = reqHeaders
28144 googleapi.Expand(req.URL, map[string]string{
28145 "name": c.nameid,
28146 })
28147 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28148 }
28149
28150
28151
28152
28153
28154
28155
28156 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Generator, error) {
28157 gensupport.SetOptions(c.urlParams_, opts...)
28158 res, err := c.doRequest("json")
28159 if res != nil && res.StatusCode == http.StatusNotModified {
28160 if res.Body != nil {
28161 res.Body.Close()
28162 }
28163 return nil, gensupport.WrapError(&googleapi.Error{
28164 Code: res.StatusCode,
28165 Header: res.Header,
28166 })
28167 }
28168 if err != nil {
28169 return nil, err
28170 }
28171 defer googleapi.CloseBody(res)
28172 if err := googleapi.CheckResponse(res); err != nil {
28173 return nil, gensupport.WrapError(err)
28174 }
28175 ret := &GoogleCloudDialogflowCxV3Generator{
28176 ServerResponse: googleapi.ServerResponse{
28177 Header: res.Header,
28178 HTTPStatusCode: res.StatusCode,
28179 },
28180 }
28181 target := &ret
28182 if err := gensupport.DecodeResponse(target, res); err != nil {
28183 return nil, err
28184 }
28185 return ret, nil
28186 }
28187
28188 type ProjectsLocationsAgentsIntentsCreateCall struct {
28189 s *Service
28190 parent string
28191 googleclouddialogflowcxv3intent *GoogleCloudDialogflowCxV3Intent
28192 urlParams_ gensupport.URLParams
28193 ctx_ context.Context
28194 header_ http.Header
28195 }
28196
28197
28198
28199
28200
28201
28202
28203 func (r *ProjectsLocationsAgentsIntentsService) Create(parent string, googleclouddialogflowcxv3intent *GoogleCloudDialogflowCxV3Intent) *ProjectsLocationsAgentsIntentsCreateCall {
28204 c := &ProjectsLocationsAgentsIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28205 c.parent = parent
28206 c.googleclouddialogflowcxv3intent = googleclouddialogflowcxv3intent
28207 return c
28208 }
28209
28210
28211
28212
28213
28214
28215
28216 func (c *ProjectsLocationsAgentsIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsCreateCall {
28217 c.urlParams_.Set("languageCode", languageCode)
28218 return c
28219 }
28220
28221
28222
28223
28224 func (c *ProjectsLocationsAgentsIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsCreateCall {
28225 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28226 return c
28227 }
28228
28229
28230 func (c *ProjectsLocationsAgentsIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsCreateCall {
28231 c.ctx_ = ctx
28232 return c
28233 }
28234
28235
28236
28237 func (c *ProjectsLocationsAgentsIntentsCreateCall) Header() http.Header {
28238 if c.header_ == nil {
28239 c.header_ = make(http.Header)
28240 }
28241 return c.header_
28242 }
28243
28244 func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
28245 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28246 var body io.Reader = nil
28247 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3intent)
28248 if err != nil {
28249 return nil, err
28250 }
28251 c.urlParams_.Set("alt", alt)
28252 c.urlParams_.Set("prettyPrint", "false")
28253 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/intents")
28254 urls += "?" + c.urlParams_.Encode()
28255 req, err := http.NewRequest("POST", urls, body)
28256 if err != nil {
28257 return nil, err
28258 }
28259 req.Header = reqHeaders
28260 googleapi.Expand(req.URL, map[string]string{
28261 "parent": c.parent,
28262 })
28263 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28264 }
28265
28266
28267
28268
28269
28270
28271
28272 func (c *ProjectsLocationsAgentsIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Intent, error) {
28273 gensupport.SetOptions(c.urlParams_, opts...)
28274 res, err := c.doRequest("json")
28275 if res != nil && res.StatusCode == http.StatusNotModified {
28276 if res.Body != nil {
28277 res.Body.Close()
28278 }
28279 return nil, gensupport.WrapError(&googleapi.Error{
28280 Code: res.StatusCode,
28281 Header: res.Header,
28282 })
28283 }
28284 if err != nil {
28285 return nil, err
28286 }
28287 defer googleapi.CloseBody(res)
28288 if err := googleapi.CheckResponse(res); err != nil {
28289 return nil, gensupport.WrapError(err)
28290 }
28291 ret := &GoogleCloudDialogflowCxV3Intent{
28292 ServerResponse: googleapi.ServerResponse{
28293 Header: res.Header,
28294 HTTPStatusCode: res.StatusCode,
28295 },
28296 }
28297 target := &ret
28298 if err := gensupport.DecodeResponse(target, res); err != nil {
28299 return nil, err
28300 }
28301 return ret, nil
28302 }
28303
28304 type ProjectsLocationsAgentsIntentsDeleteCall struct {
28305 s *Service
28306 name string
28307 urlParams_ gensupport.URLParams
28308 ctx_ context.Context
28309 header_ http.Header
28310 }
28311
28312
28313
28314
28315
28316
28317
28318 func (r *ProjectsLocationsAgentsIntentsService) Delete(name string) *ProjectsLocationsAgentsIntentsDeleteCall {
28319 c := &ProjectsLocationsAgentsIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28320 c.name = name
28321 return c
28322 }
28323
28324
28325
28326
28327 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsDeleteCall {
28328 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28329 return c
28330 }
28331
28332
28333 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsDeleteCall {
28334 c.ctx_ = ctx
28335 return c
28336 }
28337
28338
28339
28340 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Header() http.Header {
28341 if c.header_ == nil {
28342 c.header_ = make(http.Header)
28343 }
28344 return c.header_
28345 }
28346
28347 func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
28348 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28349 var body io.Reader = nil
28350 c.urlParams_.Set("alt", alt)
28351 c.urlParams_.Set("prettyPrint", "false")
28352 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
28353 urls += "?" + c.urlParams_.Encode()
28354 req, err := http.NewRequest("DELETE", urls, body)
28355 if err != nil {
28356 return nil, err
28357 }
28358 req.Header = reqHeaders
28359 googleapi.Expand(req.URL, map[string]string{
28360 "name": c.name,
28361 })
28362 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28363 }
28364
28365
28366
28367
28368
28369
28370
28371 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28372 gensupport.SetOptions(c.urlParams_, opts...)
28373 res, err := c.doRequest("json")
28374 if res != nil && res.StatusCode == http.StatusNotModified {
28375 if res.Body != nil {
28376 res.Body.Close()
28377 }
28378 return nil, gensupport.WrapError(&googleapi.Error{
28379 Code: res.StatusCode,
28380 Header: res.Header,
28381 })
28382 }
28383 if err != nil {
28384 return nil, err
28385 }
28386 defer googleapi.CloseBody(res)
28387 if err := googleapi.CheckResponse(res); err != nil {
28388 return nil, gensupport.WrapError(err)
28389 }
28390 ret := &GoogleProtobufEmpty{
28391 ServerResponse: googleapi.ServerResponse{
28392 Header: res.Header,
28393 HTTPStatusCode: res.StatusCode,
28394 },
28395 }
28396 target := &ret
28397 if err := gensupport.DecodeResponse(target, res); err != nil {
28398 return nil, err
28399 }
28400 return ret, nil
28401 }
28402
28403 type ProjectsLocationsAgentsIntentsExportCall struct {
28404 s *Service
28405 parent string
28406 googleclouddialogflowcxv3exportintentsrequest *GoogleCloudDialogflowCxV3ExportIntentsRequest
28407 urlParams_ gensupport.URLParams
28408 ctx_ context.Context
28409 header_ http.Header
28410 }
28411
28412
28413
28414
28415
28416
28417
28418
28419
28420 func (r *ProjectsLocationsAgentsIntentsService) Export(parent string, googleclouddialogflowcxv3exportintentsrequest *GoogleCloudDialogflowCxV3ExportIntentsRequest) *ProjectsLocationsAgentsIntentsExportCall {
28421 c := &ProjectsLocationsAgentsIntentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28422 c.parent = parent
28423 c.googleclouddialogflowcxv3exportintentsrequest = googleclouddialogflowcxv3exportintentsrequest
28424 return c
28425 }
28426
28427
28428
28429
28430 func (c *ProjectsLocationsAgentsIntentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsExportCall {
28431 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28432 return c
28433 }
28434
28435
28436 func (c *ProjectsLocationsAgentsIntentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsExportCall {
28437 c.ctx_ = ctx
28438 return c
28439 }
28440
28441
28442
28443 func (c *ProjectsLocationsAgentsIntentsExportCall) Header() http.Header {
28444 if c.header_ == nil {
28445 c.header_ = make(http.Header)
28446 }
28447 return c.header_
28448 }
28449
28450 func (c *ProjectsLocationsAgentsIntentsExportCall) doRequest(alt string) (*http.Response, error) {
28451 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28452 var body io.Reader = nil
28453 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3exportintentsrequest)
28454 if err != nil {
28455 return nil, err
28456 }
28457 c.urlParams_.Set("alt", alt)
28458 c.urlParams_.Set("prettyPrint", "false")
28459 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/intents:export")
28460 urls += "?" + c.urlParams_.Encode()
28461 req, err := http.NewRequest("POST", urls, body)
28462 if err != nil {
28463 return nil, err
28464 }
28465 req.Header = reqHeaders
28466 googleapi.Expand(req.URL, map[string]string{
28467 "parent": c.parent,
28468 })
28469 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28470 }
28471
28472
28473
28474
28475
28476
28477
28478 func (c *ProjectsLocationsAgentsIntentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28479 gensupport.SetOptions(c.urlParams_, opts...)
28480 res, err := c.doRequest("json")
28481 if res != nil && res.StatusCode == http.StatusNotModified {
28482 if res.Body != nil {
28483 res.Body.Close()
28484 }
28485 return nil, gensupport.WrapError(&googleapi.Error{
28486 Code: res.StatusCode,
28487 Header: res.Header,
28488 })
28489 }
28490 if err != nil {
28491 return nil, err
28492 }
28493 defer googleapi.CloseBody(res)
28494 if err := googleapi.CheckResponse(res); err != nil {
28495 return nil, gensupport.WrapError(err)
28496 }
28497 ret := &GoogleLongrunningOperation{
28498 ServerResponse: googleapi.ServerResponse{
28499 Header: res.Header,
28500 HTTPStatusCode: res.StatusCode,
28501 },
28502 }
28503 target := &ret
28504 if err := gensupport.DecodeResponse(target, res); err != nil {
28505 return nil, err
28506 }
28507 return ret, nil
28508 }
28509
28510 type ProjectsLocationsAgentsIntentsGetCall struct {
28511 s *Service
28512 name string
28513 urlParams_ gensupport.URLParams
28514 ifNoneMatch_ string
28515 ctx_ context.Context
28516 header_ http.Header
28517 }
28518
28519
28520
28521
28522
28523 func (r *ProjectsLocationsAgentsIntentsService) Get(name string) *ProjectsLocationsAgentsIntentsGetCall {
28524 c := &ProjectsLocationsAgentsIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28525 c.name = name
28526 return c
28527 }
28528
28529
28530
28531
28532
28533
28534
28535
28536 func (c *ProjectsLocationsAgentsIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsGetCall {
28537 c.urlParams_.Set("languageCode", languageCode)
28538 return c
28539 }
28540
28541
28542
28543
28544 func (c *ProjectsLocationsAgentsIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsGetCall {
28545 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28546 return c
28547 }
28548
28549
28550
28551
28552 func (c *ProjectsLocationsAgentsIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsGetCall {
28553 c.ifNoneMatch_ = entityTag
28554 return c
28555 }
28556
28557
28558 func (c *ProjectsLocationsAgentsIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsGetCall {
28559 c.ctx_ = ctx
28560 return c
28561 }
28562
28563
28564
28565 func (c *ProjectsLocationsAgentsIntentsGetCall) Header() http.Header {
28566 if c.header_ == nil {
28567 c.header_ = make(http.Header)
28568 }
28569 return c.header_
28570 }
28571
28572 func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Response, error) {
28573 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28574 if c.ifNoneMatch_ != "" {
28575 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28576 }
28577 var body io.Reader = nil
28578 c.urlParams_.Set("alt", alt)
28579 c.urlParams_.Set("prettyPrint", "false")
28580 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
28581 urls += "?" + c.urlParams_.Encode()
28582 req, err := http.NewRequest("GET", urls, body)
28583 if err != nil {
28584 return nil, err
28585 }
28586 req.Header = reqHeaders
28587 googleapi.Expand(req.URL, map[string]string{
28588 "name": c.name,
28589 })
28590 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28591 }
28592
28593
28594
28595
28596
28597
28598
28599 func (c *ProjectsLocationsAgentsIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Intent, error) {
28600 gensupport.SetOptions(c.urlParams_, opts...)
28601 res, err := c.doRequest("json")
28602 if res != nil && res.StatusCode == http.StatusNotModified {
28603 if res.Body != nil {
28604 res.Body.Close()
28605 }
28606 return nil, gensupport.WrapError(&googleapi.Error{
28607 Code: res.StatusCode,
28608 Header: res.Header,
28609 })
28610 }
28611 if err != nil {
28612 return nil, err
28613 }
28614 defer googleapi.CloseBody(res)
28615 if err := googleapi.CheckResponse(res); err != nil {
28616 return nil, gensupport.WrapError(err)
28617 }
28618 ret := &GoogleCloudDialogflowCxV3Intent{
28619 ServerResponse: googleapi.ServerResponse{
28620 Header: res.Header,
28621 HTTPStatusCode: res.StatusCode,
28622 },
28623 }
28624 target := &ret
28625 if err := gensupport.DecodeResponse(target, res); err != nil {
28626 return nil, err
28627 }
28628 return ret, nil
28629 }
28630
28631 type ProjectsLocationsAgentsIntentsImportCall struct {
28632 s *Service
28633 parent string
28634 googleclouddialogflowcxv3importintentsrequest *GoogleCloudDialogflowCxV3ImportIntentsRequest
28635 urlParams_ gensupport.URLParams
28636 ctx_ context.Context
28637 header_ http.Header
28638 }
28639
28640
28641
28642
28643
28644
28645
28646
28647
28648 func (r *ProjectsLocationsAgentsIntentsService) Import(parent string, googleclouddialogflowcxv3importintentsrequest *GoogleCloudDialogflowCxV3ImportIntentsRequest) *ProjectsLocationsAgentsIntentsImportCall {
28649 c := &ProjectsLocationsAgentsIntentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28650 c.parent = parent
28651 c.googleclouddialogflowcxv3importintentsrequest = googleclouddialogflowcxv3importintentsrequest
28652 return c
28653 }
28654
28655
28656
28657
28658 func (c *ProjectsLocationsAgentsIntentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsImportCall {
28659 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28660 return c
28661 }
28662
28663
28664 func (c *ProjectsLocationsAgentsIntentsImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsImportCall {
28665 c.ctx_ = ctx
28666 return c
28667 }
28668
28669
28670
28671 func (c *ProjectsLocationsAgentsIntentsImportCall) Header() http.Header {
28672 if c.header_ == nil {
28673 c.header_ = make(http.Header)
28674 }
28675 return c.header_
28676 }
28677
28678 func (c *ProjectsLocationsAgentsIntentsImportCall) doRequest(alt string) (*http.Response, error) {
28679 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28680 var body io.Reader = nil
28681 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3importintentsrequest)
28682 if err != nil {
28683 return nil, err
28684 }
28685 c.urlParams_.Set("alt", alt)
28686 c.urlParams_.Set("prettyPrint", "false")
28687 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/intents:import")
28688 urls += "?" + c.urlParams_.Encode()
28689 req, err := http.NewRequest("POST", urls, body)
28690 if err != nil {
28691 return nil, err
28692 }
28693 req.Header = reqHeaders
28694 googleapi.Expand(req.URL, map[string]string{
28695 "parent": c.parent,
28696 })
28697 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28698 }
28699
28700
28701
28702
28703
28704
28705
28706 func (c *ProjectsLocationsAgentsIntentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28707 gensupport.SetOptions(c.urlParams_, opts...)
28708 res, err := c.doRequest("json")
28709 if res != nil && res.StatusCode == http.StatusNotModified {
28710 if res.Body != nil {
28711 res.Body.Close()
28712 }
28713 return nil, gensupport.WrapError(&googleapi.Error{
28714 Code: res.StatusCode,
28715 Header: res.Header,
28716 })
28717 }
28718 if err != nil {
28719 return nil, err
28720 }
28721 defer googleapi.CloseBody(res)
28722 if err := googleapi.CheckResponse(res); err != nil {
28723 return nil, gensupport.WrapError(err)
28724 }
28725 ret := &GoogleLongrunningOperation{
28726 ServerResponse: googleapi.ServerResponse{
28727 Header: res.Header,
28728 HTTPStatusCode: res.StatusCode,
28729 },
28730 }
28731 target := &ret
28732 if err := gensupport.DecodeResponse(target, res); err != nil {
28733 return nil, err
28734 }
28735 return ret, nil
28736 }
28737
28738 type ProjectsLocationsAgentsIntentsListCall struct {
28739 s *Service
28740 parent string
28741 urlParams_ gensupport.URLParams
28742 ifNoneMatch_ string
28743 ctx_ context.Context
28744 header_ http.Header
28745 }
28746
28747
28748
28749
28750
28751 func (r *ProjectsLocationsAgentsIntentsService) List(parent string) *ProjectsLocationsAgentsIntentsListCall {
28752 c := &ProjectsLocationsAgentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28753 c.parent = parent
28754 return c
28755 }
28756
28757
28758
28759
28760
28761
28762
28763
28764
28765
28766
28767
28768 func (c *ProjectsLocationsAgentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentsIntentsListCall {
28769 c.urlParams_.Set("intentView", intentView)
28770 return c
28771 }
28772
28773
28774
28775
28776
28777
28778
28779
28780 func (c *ProjectsLocationsAgentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsListCall {
28781 c.urlParams_.Set("languageCode", languageCode)
28782 return c
28783 }
28784
28785
28786
28787 func (c *ProjectsLocationsAgentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsIntentsListCall {
28788 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28789 return c
28790 }
28791
28792
28793
28794 func (c *ProjectsLocationsAgentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsIntentsListCall {
28795 c.urlParams_.Set("pageToken", pageToken)
28796 return c
28797 }
28798
28799
28800
28801
28802 func (c *ProjectsLocationsAgentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsListCall {
28803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28804 return c
28805 }
28806
28807
28808
28809
28810 func (c *ProjectsLocationsAgentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsListCall {
28811 c.ifNoneMatch_ = entityTag
28812 return c
28813 }
28814
28815
28816 func (c *ProjectsLocationsAgentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsListCall {
28817 c.ctx_ = ctx
28818 return c
28819 }
28820
28821
28822
28823 func (c *ProjectsLocationsAgentsIntentsListCall) Header() http.Header {
28824 if c.header_ == nil {
28825 c.header_ = make(http.Header)
28826 }
28827 return c.header_
28828 }
28829
28830 func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
28831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28832 if c.ifNoneMatch_ != "" {
28833 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28834 }
28835 var body io.Reader = nil
28836 c.urlParams_.Set("alt", alt)
28837 c.urlParams_.Set("prettyPrint", "false")
28838 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/intents")
28839 urls += "?" + c.urlParams_.Encode()
28840 req, err := http.NewRequest("GET", urls, body)
28841 if err != nil {
28842 return nil, err
28843 }
28844 req.Header = reqHeaders
28845 googleapi.Expand(req.URL, map[string]string{
28846 "parent": c.parent,
28847 })
28848 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28849 }
28850
28851
28852
28853
28854
28855
28856
28857 func (c *ProjectsLocationsAgentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListIntentsResponse, error) {
28858 gensupport.SetOptions(c.urlParams_, opts...)
28859 res, err := c.doRequest("json")
28860 if res != nil && res.StatusCode == http.StatusNotModified {
28861 if res.Body != nil {
28862 res.Body.Close()
28863 }
28864 return nil, gensupport.WrapError(&googleapi.Error{
28865 Code: res.StatusCode,
28866 Header: res.Header,
28867 })
28868 }
28869 if err != nil {
28870 return nil, err
28871 }
28872 defer googleapi.CloseBody(res)
28873 if err := googleapi.CheckResponse(res); err != nil {
28874 return nil, gensupport.WrapError(err)
28875 }
28876 ret := &GoogleCloudDialogflowCxV3ListIntentsResponse{
28877 ServerResponse: googleapi.ServerResponse{
28878 Header: res.Header,
28879 HTTPStatusCode: res.StatusCode,
28880 },
28881 }
28882 target := &ret
28883 if err := gensupport.DecodeResponse(target, res); err != nil {
28884 return nil, err
28885 }
28886 return ret, nil
28887 }
28888
28889
28890
28891
28892 func (c *ProjectsLocationsAgentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListIntentsResponse) error) error {
28893 c.ctx_ = ctx
28894 defer c.PageToken(c.urlParams_.Get("pageToken"))
28895 for {
28896 x, err := c.Do()
28897 if err != nil {
28898 return err
28899 }
28900 if err := f(x); err != nil {
28901 return err
28902 }
28903 if x.NextPageToken == "" {
28904 return nil
28905 }
28906 c.PageToken(x.NextPageToken)
28907 }
28908 }
28909
28910 type ProjectsLocationsAgentsIntentsPatchCall struct {
28911 s *Service
28912 nameid string
28913 googleclouddialogflowcxv3intent *GoogleCloudDialogflowCxV3Intent
28914 urlParams_ gensupport.URLParams
28915 ctx_ context.Context
28916 header_ http.Header
28917 }
28918
28919
28920
28921
28922
28923
28924
28925
28926 func (r *ProjectsLocationsAgentsIntentsService) Patch(nameid string, googleclouddialogflowcxv3intent *GoogleCloudDialogflowCxV3Intent) *ProjectsLocationsAgentsIntentsPatchCall {
28927 c := &ProjectsLocationsAgentsIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28928 c.nameid = nameid
28929 c.googleclouddialogflowcxv3intent = googleclouddialogflowcxv3intent
28930 return c
28931 }
28932
28933
28934
28935
28936
28937
28938
28939 func (c *ProjectsLocationsAgentsIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsPatchCall {
28940 c.urlParams_.Set("languageCode", languageCode)
28941 return c
28942 }
28943
28944
28945
28946
28947 func (c *ProjectsLocationsAgentsIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsIntentsPatchCall {
28948 c.urlParams_.Set("updateMask", updateMask)
28949 return c
28950 }
28951
28952
28953
28954
28955 func (c *ProjectsLocationsAgentsIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsPatchCall {
28956 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28957 return c
28958 }
28959
28960
28961 func (c *ProjectsLocationsAgentsIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsPatchCall {
28962 c.ctx_ = ctx
28963 return c
28964 }
28965
28966
28967
28968 func (c *ProjectsLocationsAgentsIntentsPatchCall) Header() http.Header {
28969 if c.header_ == nil {
28970 c.header_ = make(http.Header)
28971 }
28972 return c.header_
28973 }
28974
28975 func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
28976 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28977 var body io.Reader = nil
28978 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3intent)
28979 if err != nil {
28980 return nil, err
28981 }
28982 c.urlParams_.Set("alt", alt)
28983 c.urlParams_.Set("prettyPrint", "false")
28984 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
28985 urls += "?" + c.urlParams_.Encode()
28986 req, err := http.NewRequest("PATCH", urls, body)
28987 if err != nil {
28988 return nil, err
28989 }
28990 req.Header = reqHeaders
28991 googleapi.Expand(req.URL, map[string]string{
28992 "name": c.nameid,
28993 })
28994 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28995 }
28996
28997
28998
28999
29000
29001
29002
29003 func (c *ProjectsLocationsAgentsIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Intent, error) {
29004 gensupport.SetOptions(c.urlParams_, opts...)
29005 res, err := c.doRequest("json")
29006 if res != nil && res.StatusCode == http.StatusNotModified {
29007 if res.Body != nil {
29008 res.Body.Close()
29009 }
29010 return nil, gensupport.WrapError(&googleapi.Error{
29011 Code: res.StatusCode,
29012 Header: res.Header,
29013 })
29014 }
29015 if err != nil {
29016 return nil, err
29017 }
29018 defer googleapi.CloseBody(res)
29019 if err := googleapi.CheckResponse(res); err != nil {
29020 return nil, gensupport.WrapError(err)
29021 }
29022 ret := &GoogleCloudDialogflowCxV3Intent{
29023 ServerResponse: googleapi.ServerResponse{
29024 Header: res.Header,
29025 HTTPStatusCode: res.StatusCode,
29026 },
29027 }
29028 target := &ret
29029 if err := gensupport.DecodeResponse(target, res); err != nil {
29030 return nil, err
29031 }
29032 return ret, nil
29033 }
29034
29035 type ProjectsLocationsAgentsSessionsDetectIntentCall struct {
29036 s *Service
29037 sessionid string
29038 googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest
29039 urlParams_ gensupport.URLParams
29040 ctx_ context.Context
29041 header_ http.Header
29042 }
29043
29044
29045
29046
29047
29048
29049
29050
29051
29052
29053
29054
29055
29056
29057
29058
29059
29060
29061
29062
29063 func (r *ProjectsLocationsAgentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest) *ProjectsLocationsAgentsSessionsDetectIntentCall {
29064 c := &ProjectsLocationsAgentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29065 c.sessionid = sessionid
29066 c.googleclouddialogflowcxv3detectintentrequest = googleclouddialogflowcxv3detectintentrequest
29067 return c
29068 }
29069
29070
29071
29072
29073 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsDetectIntentCall {
29074 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29075 return c
29076 }
29077
29078
29079 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsDetectIntentCall {
29080 c.ctx_ = ctx
29081 return c
29082 }
29083
29084
29085
29086 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Header() http.Header {
29087 if c.header_ == nil {
29088 c.header_ = make(http.Header)
29089 }
29090 return c.header_
29091 }
29092
29093 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
29094 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29095 var body io.Reader = nil
29096 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3detectintentrequest)
29097 if err != nil {
29098 return nil, err
29099 }
29100 c.urlParams_.Set("alt", alt)
29101 c.urlParams_.Set("prettyPrint", "false")
29102 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:detectIntent")
29103 urls += "?" + c.urlParams_.Encode()
29104 req, err := http.NewRequest("POST", urls, body)
29105 if err != nil {
29106 return nil, err
29107 }
29108 req.Header = reqHeaders
29109 googleapi.Expand(req.URL, map[string]string{
29110 "session": c.sessionid,
29111 })
29112 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29113 }
29114
29115
29116
29117
29118
29119
29120
29121 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3DetectIntentResponse, error) {
29122 gensupport.SetOptions(c.urlParams_, opts...)
29123 res, err := c.doRequest("json")
29124 if res != nil && res.StatusCode == http.StatusNotModified {
29125 if res.Body != nil {
29126 res.Body.Close()
29127 }
29128 return nil, gensupport.WrapError(&googleapi.Error{
29129 Code: res.StatusCode,
29130 Header: res.Header,
29131 })
29132 }
29133 if err != nil {
29134 return nil, err
29135 }
29136 defer googleapi.CloseBody(res)
29137 if err := googleapi.CheckResponse(res); err != nil {
29138 return nil, gensupport.WrapError(err)
29139 }
29140 ret := &GoogleCloudDialogflowCxV3DetectIntentResponse{
29141 ServerResponse: googleapi.ServerResponse{
29142 Header: res.Header,
29143 HTTPStatusCode: res.StatusCode,
29144 },
29145 }
29146 target := &ret
29147 if err := gensupport.DecodeResponse(target, res); err != nil {
29148 return nil, err
29149 }
29150 return ret, nil
29151 }
29152
29153 type ProjectsLocationsAgentsSessionsFulfillIntentCall struct {
29154 s *Service
29155 sessionid string
29156 googleclouddialogflowcxv3fulfillintentrequest *GoogleCloudDialogflowCxV3FulfillIntentRequest
29157 urlParams_ gensupport.URLParams
29158 ctx_ context.Context
29159 header_ http.Header
29160 }
29161
29162
29163
29164
29165
29166
29167
29168
29169
29170
29171
29172
29173
29174
29175 func (r *ProjectsLocationsAgentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3fulfillintentrequest *GoogleCloudDialogflowCxV3FulfillIntentRequest) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
29176 c := &ProjectsLocationsAgentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29177 c.sessionid = sessionid
29178 c.googleclouddialogflowcxv3fulfillintentrequest = googleclouddialogflowcxv3fulfillintentrequest
29179 return c
29180 }
29181
29182
29183
29184
29185 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
29186 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29187 return c
29188 }
29189
29190
29191 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
29192 c.ctx_ = ctx
29193 return c
29194 }
29195
29196
29197
29198 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Header() http.Header {
29199 if c.header_ == nil {
29200 c.header_ = make(http.Header)
29201 }
29202 return c.header_
29203 }
29204
29205 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
29206 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29207 var body io.Reader = nil
29208 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3fulfillintentrequest)
29209 if err != nil {
29210 return nil, err
29211 }
29212 c.urlParams_.Set("alt", alt)
29213 c.urlParams_.Set("prettyPrint", "false")
29214 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:fulfillIntent")
29215 urls += "?" + c.urlParams_.Encode()
29216 req, err := http.NewRequest("POST", urls, body)
29217 if err != nil {
29218 return nil, err
29219 }
29220 req.Header = reqHeaders
29221 googleapi.Expand(req.URL, map[string]string{
29222 "session": c.sessionid,
29223 })
29224 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29225 }
29226
29227
29228
29229
29230
29231
29232
29233 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3FulfillIntentResponse, error) {
29234 gensupport.SetOptions(c.urlParams_, opts...)
29235 res, err := c.doRequest("json")
29236 if res != nil && res.StatusCode == http.StatusNotModified {
29237 if res.Body != nil {
29238 res.Body.Close()
29239 }
29240 return nil, gensupport.WrapError(&googleapi.Error{
29241 Code: res.StatusCode,
29242 Header: res.Header,
29243 })
29244 }
29245 if err != nil {
29246 return nil, err
29247 }
29248 defer googleapi.CloseBody(res)
29249 if err := googleapi.CheckResponse(res); err != nil {
29250 return nil, gensupport.WrapError(err)
29251 }
29252 ret := &GoogleCloudDialogflowCxV3FulfillIntentResponse{
29253 ServerResponse: googleapi.ServerResponse{
29254 Header: res.Header,
29255 HTTPStatusCode: res.StatusCode,
29256 },
29257 }
29258 target := &ret
29259 if err := gensupport.DecodeResponse(target, res); err != nil {
29260 return nil, err
29261 }
29262 return ret, nil
29263 }
29264
29265 type ProjectsLocationsAgentsSessionsMatchIntentCall struct {
29266 s *Service
29267 sessionid string
29268 googleclouddialogflowcxv3matchintentrequest *GoogleCloudDialogflowCxV3MatchIntentRequest
29269 urlParams_ gensupport.URLParams
29270 ctx_ context.Context
29271 header_ http.Header
29272 }
29273
29274
29275
29276
29277
29278
29279
29280
29281
29282
29283
29284
29285
29286 func (r *ProjectsLocationsAgentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3matchintentrequest *GoogleCloudDialogflowCxV3MatchIntentRequest) *ProjectsLocationsAgentsSessionsMatchIntentCall {
29287 c := &ProjectsLocationsAgentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29288 c.sessionid = sessionid
29289 c.googleclouddialogflowcxv3matchintentrequest = googleclouddialogflowcxv3matchintentrequest
29290 return c
29291 }
29292
29293
29294
29295
29296 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsMatchIntentCall {
29297 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29298 return c
29299 }
29300
29301
29302 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsMatchIntentCall {
29303 c.ctx_ = ctx
29304 return c
29305 }
29306
29307
29308
29309 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Header() http.Header {
29310 if c.header_ == nil {
29311 c.header_ = make(http.Header)
29312 }
29313 return c.header_
29314 }
29315
29316 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
29317 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29318 var body io.Reader = nil
29319 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3matchintentrequest)
29320 if err != nil {
29321 return nil, err
29322 }
29323 c.urlParams_.Set("alt", alt)
29324 c.urlParams_.Set("prettyPrint", "false")
29325 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:matchIntent")
29326 urls += "?" + c.urlParams_.Encode()
29327 req, err := http.NewRequest("POST", urls, body)
29328 if err != nil {
29329 return nil, err
29330 }
29331 req.Header = reqHeaders
29332 googleapi.Expand(req.URL, map[string]string{
29333 "session": c.sessionid,
29334 })
29335 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29336 }
29337
29338
29339
29340
29341
29342
29343
29344 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3MatchIntentResponse, error) {
29345 gensupport.SetOptions(c.urlParams_, opts...)
29346 res, err := c.doRequest("json")
29347 if res != nil && res.StatusCode == http.StatusNotModified {
29348 if res.Body != nil {
29349 res.Body.Close()
29350 }
29351 return nil, gensupport.WrapError(&googleapi.Error{
29352 Code: res.StatusCode,
29353 Header: res.Header,
29354 })
29355 }
29356 if err != nil {
29357 return nil, err
29358 }
29359 defer googleapi.CloseBody(res)
29360 if err := googleapi.CheckResponse(res); err != nil {
29361 return nil, gensupport.WrapError(err)
29362 }
29363 ret := &GoogleCloudDialogflowCxV3MatchIntentResponse{
29364 ServerResponse: googleapi.ServerResponse{
29365 Header: res.Header,
29366 HTTPStatusCode: res.StatusCode,
29367 },
29368 }
29369 target := &ret
29370 if err := gensupport.DecodeResponse(target, res); err != nil {
29371 return nil, err
29372 }
29373 return ret, nil
29374 }
29375
29376 type ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall struct {
29377 s *Service
29378 sessionid string
29379 googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest
29380 urlParams_ gensupport.URLParams
29381 ctx_ context.Context
29382 header_ http.Header
29383 }
29384
29385
29386
29387
29388
29389
29390
29391
29392
29393
29394
29395
29396
29397
29398
29399
29400
29401
29402
29403 func (r *ProjectsLocationsAgentsSessionsService) ServerStreamingDetectIntent(sessionid string, googleclouddialogflowcxv3detectintentrequest *GoogleCloudDialogflowCxV3DetectIntentRequest) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
29404 c := &ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29405 c.sessionid = sessionid
29406 c.googleclouddialogflowcxv3detectintentrequest = googleclouddialogflowcxv3detectintentrequest
29407 return c
29408 }
29409
29410
29411
29412
29413 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
29414 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29415 return c
29416 }
29417
29418
29419 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
29420 c.ctx_ = ctx
29421 return c
29422 }
29423
29424
29425
29426 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Header() http.Header {
29427 if c.header_ == nil {
29428 c.header_ = make(http.Header)
29429 }
29430 return c.header_
29431 }
29432
29433 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) doRequest(alt string) (*http.Response, error) {
29434 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29435 var body io.Reader = nil
29436 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3detectintentrequest)
29437 if err != nil {
29438 return nil, err
29439 }
29440 c.urlParams_.Set("alt", alt)
29441 c.urlParams_.Set("prettyPrint", "false")
29442 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:serverStreamingDetectIntent")
29443 urls += "?" + c.urlParams_.Encode()
29444 req, err := http.NewRequest("POST", urls, body)
29445 if err != nil {
29446 return nil, err
29447 }
29448 req.Header = reqHeaders
29449 googleapi.Expand(req.URL, map[string]string{
29450 "session": c.sessionid,
29451 })
29452 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29453 }
29454
29455
29456
29457
29458
29459
29460
29461 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3DetectIntentResponse, error) {
29462 gensupport.SetOptions(c.urlParams_, opts...)
29463 res, err := c.doRequest("json")
29464 if res != nil && res.StatusCode == http.StatusNotModified {
29465 if res.Body != nil {
29466 res.Body.Close()
29467 }
29468 return nil, gensupport.WrapError(&googleapi.Error{
29469 Code: res.StatusCode,
29470 Header: res.Header,
29471 })
29472 }
29473 if err != nil {
29474 return nil, err
29475 }
29476 defer googleapi.CloseBody(res)
29477 if err := googleapi.CheckResponse(res); err != nil {
29478 return nil, gensupport.WrapError(err)
29479 }
29480 ret := &GoogleCloudDialogflowCxV3DetectIntentResponse{
29481 ServerResponse: googleapi.ServerResponse{
29482 Header: res.Header,
29483 HTTPStatusCode: res.StatusCode,
29484 },
29485 }
29486 target := &ret
29487 if err := gensupport.DecodeResponse(target, res); err != nil {
29488 return nil, err
29489 }
29490 return ret, nil
29491 }
29492
29493 type ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall struct {
29494 s *Service
29495 session string
29496 googleclouddialogflowcxv3submitanswerfeedbackrequest *GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest
29497 urlParams_ gensupport.URLParams
29498 ctx_ context.Context
29499 header_ http.Header
29500 }
29501
29502
29503
29504
29505
29506 func (r *ProjectsLocationsAgentsSessionsService) SubmitAnswerFeedback(session string, googleclouddialogflowcxv3submitanswerfeedbackrequest *GoogleCloudDialogflowCxV3SubmitAnswerFeedbackRequest) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
29507 c := &ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29508 c.session = session
29509 c.googleclouddialogflowcxv3submitanswerfeedbackrequest = googleclouddialogflowcxv3submitanswerfeedbackrequest
29510 return c
29511 }
29512
29513
29514
29515
29516 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
29517 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29518 return c
29519 }
29520
29521
29522 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
29523 c.ctx_ = ctx
29524 return c
29525 }
29526
29527
29528
29529 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Header() http.Header {
29530 if c.header_ == nil {
29531 c.header_ = make(http.Header)
29532 }
29533 return c.header_
29534 }
29535
29536 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) doRequest(alt string) (*http.Response, error) {
29537 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29538 var body io.Reader = nil
29539 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3submitanswerfeedbackrequest)
29540 if err != nil {
29541 return nil, err
29542 }
29543 c.urlParams_.Set("alt", alt)
29544 c.urlParams_.Set("prettyPrint", "false")
29545 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+session}:submitAnswerFeedback")
29546 urls += "?" + c.urlParams_.Encode()
29547 req, err := http.NewRequest("POST", urls, body)
29548 if err != nil {
29549 return nil, err
29550 }
29551 req.Header = reqHeaders
29552 googleapi.Expand(req.URL, map[string]string{
29553 "session": c.session,
29554 })
29555 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29556 }
29557
29558
29559
29560
29561
29562
29563
29564 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3AnswerFeedback, error) {
29565 gensupport.SetOptions(c.urlParams_, opts...)
29566 res, err := c.doRequest("json")
29567 if res != nil && res.StatusCode == http.StatusNotModified {
29568 if res.Body != nil {
29569 res.Body.Close()
29570 }
29571 return nil, gensupport.WrapError(&googleapi.Error{
29572 Code: res.StatusCode,
29573 Header: res.Header,
29574 })
29575 }
29576 if err != nil {
29577 return nil, err
29578 }
29579 defer googleapi.CloseBody(res)
29580 if err := googleapi.CheckResponse(res); err != nil {
29581 return nil, gensupport.WrapError(err)
29582 }
29583 ret := &GoogleCloudDialogflowCxV3AnswerFeedback{
29584 ServerResponse: googleapi.ServerResponse{
29585 Header: res.Header,
29586 HTTPStatusCode: res.StatusCode,
29587 },
29588 }
29589 target := &ret
29590 if err := gensupport.DecodeResponse(target, res); err != nil {
29591 return nil, err
29592 }
29593 return ret, nil
29594 }
29595
29596 type ProjectsLocationsAgentsSessionsEntityTypesCreateCall struct {
29597 s *Service
29598 parent string
29599 googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType
29600 urlParams_ gensupport.URLParams
29601 ctx_ context.Context
29602 header_ http.Header
29603 }
29604
29605
29606
29607
29608
29609
29610
29611 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
29612 c := &ProjectsLocationsAgentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29613 c.parent = parent
29614 c.googleclouddialogflowcxv3sessionentitytype = googleclouddialogflowcxv3sessionentitytype
29615 return c
29616 }
29617
29618
29619
29620
29621 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
29622 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29623 return c
29624 }
29625
29626
29627 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
29628 c.ctx_ = ctx
29629 return c
29630 }
29631
29632
29633
29634 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Header() http.Header {
29635 if c.header_ == nil {
29636 c.header_ = make(http.Header)
29637 }
29638 return c.header_
29639 }
29640
29641 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
29642 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29643 var body io.Reader = nil
29644 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3sessionentitytype)
29645 if err != nil {
29646 return nil, err
29647 }
29648 c.urlParams_.Set("alt", alt)
29649 c.urlParams_.Set("prettyPrint", "false")
29650 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes")
29651 urls += "?" + c.urlParams_.Encode()
29652 req, err := http.NewRequest("POST", urls, body)
29653 if err != nil {
29654 return nil, err
29655 }
29656 req.Header = reqHeaders
29657 googleapi.Expand(req.URL, map[string]string{
29658 "parent": c.parent,
29659 })
29660 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29661 }
29662
29663
29664
29665
29666
29667
29668
29669 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SessionEntityType, error) {
29670 gensupport.SetOptions(c.urlParams_, opts...)
29671 res, err := c.doRequest("json")
29672 if res != nil && res.StatusCode == http.StatusNotModified {
29673 if res.Body != nil {
29674 res.Body.Close()
29675 }
29676 return nil, gensupport.WrapError(&googleapi.Error{
29677 Code: res.StatusCode,
29678 Header: res.Header,
29679 })
29680 }
29681 if err != nil {
29682 return nil, err
29683 }
29684 defer googleapi.CloseBody(res)
29685 if err := googleapi.CheckResponse(res); err != nil {
29686 return nil, gensupport.WrapError(err)
29687 }
29688 ret := &GoogleCloudDialogflowCxV3SessionEntityType{
29689 ServerResponse: googleapi.ServerResponse{
29690 Header: res.Header,
29691 HTTPStatusCode: res.StatusCode,
29692 },
29693 }
29694 target := &ret
29695 if err := gensupport.DecodeResponse(target, res); err != nil {
29696 return nil, err
29697 }
29698 return ret, nil
29699 }
29700
29701 type ProjectsLocationsAgentsSessionsEntityTypesDeleteCall struct {
29702 s *Service
29703 name string
29704 urlParams_ gensupport.URLParams
29705 ctx_ context.Context
29706 header_ http.Header
29707 }
29708
29709
29710
29711
29712
29713
29714
29715 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
29716 c := &ProjectsLocationsAgentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29717 c.name = name
29718 return c
29719 }
29720
29721
29722
29723
29724 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
29725 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29726 return c
29727 }
29728
29729
29730 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
29731 c.ctx_ = ctx
29732 return c
29733 }
29734
29735
29736
29737 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Header() http.Header {
29738 if c.header_ == nil {
29739 c.header_ = make(http.Header)
29740 }
29741 return c.header_
29742 }
29743
29744 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
29745 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29746 var body io.Reader = nil
29747 c.urlParams_.Set("alt", alt)
29748 c.urlParams_.Set("prettyPrint", "false")
29749 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
29750 urls += "?" + c.urlParams_.Encode()
29751 req, err := http.NewRequest("DELETE", urls, body)
29752 if err != nil {
29753 return nil, err
29754 }
29755 req.Header = reqHeaders
29756 googleapi.Expand(req.URL, map[string]string{
29757 "name": c.name,
29758 })
29759 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29760 }
29761
29762
29763
29764
29765
29766
29767
29768 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29769 gensupport.SetOptions(c.urlParams_, opts...)
29770 res, err := c.doRequest("json")
29771 if res != nil && res.StatusCode == http.StatusNotModified {
29772 if res.Body != nil {
29773 res.Body.Close()
29774 }
29775 return nil, gensupport.WrapError(&googleapi.Error{
29776 Code: res.StatusCode,
29777 Header: res.Header,
29778 })
29779 }
29780 if err != nil {
29781 return nil, err
29782 }
29783 defer googleapi.CloseBody(res)
29784 if err := googleapi.CheckResponse(res); err != nil {
29785 return nil, gensupport.WrapError(err)
29786 }
29787 ret := &GoogleProtobufEmpty{
29788 ServerResponse: googleapi.ServerResponse{
29789 Header: res.Header,
29790 HTTPStatusCode: res.StatusCode,
29791 },
29792 }
29793 target := &ret
29794 if err := gensupport.DecodeResponse(target, res); err != nil {
29795 return nil, err
29796 }
29797 return ret, nil
29798 }
29799
29800 type ProjectsLocationsAgentsSessionsEntityTypesGetCall struct {
29801 s *Service
29802 name string
29803 urlParams_ gensupport.URLParams
29804 ifNoneMatch_ string
29805 ctx_ context.Context
29806 header_ http.Header
29807 }
29808
29809
29810
29811
29812
29813
29814
29815 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
29816 c := &ProjectsLocationsAgentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29817 c.name = name
29818 return c
29819 }
29820
29821
29822
29823
29824 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
29825 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29826 return c
29827 }
29828
29829
29830
29831
29832 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
29833 c.ifNoneMatch_ = entityTag
29834 return c
29835 }
29836
29837
29838 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
29839 c.ctx_ = ctx
29840 return c
29841 }
29842
29843
29844
29845 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Header() http.Header {
29846 if c.header_ == nil {
29847 c.header_ = make(http.Header)
29848 }
29849 return c.header_
29850 }
29851
29852 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
29853 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29854 if c.ifNoneMatch_ != "" {
29855 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29856 }
29857 var body io.Reader = nil
29858 c.urlParams_.Set("alt", alt)
29859 c.urlParams_.Set("prettyPrint", "false")
29860 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
29861 urls += "?" + c.urlParams_.Encode()
29862 req, err := http.NewRequest("GET", urls, body)
29863 if err != nil {
29864 return nil, err
29865 }
29866 req.Header = reqHeaders
29867 googleapi.Expand(req.URL, map[string]string{
29868 "name": c.name,
29869 })
29870 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29871 }
29872
29873
29874
29875
29876
29877
29878
29879 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SessionEntityType, error) {
29880 gensupport.SetOptions(c.urlParams_, opts...)
29881 res, err := c.doRequest("json")
29882 if res != nil && res.StatusCode == http.StatusNotModified {
29883 if res.Body != nil {
29884 res.Body.Close()
29885 }
29886 return nil, gensupport.WrapError(&googleapi.Error{
29887 Code: res.StatusCode,
29888 Header: res.Header,
29889 })
29890 }
29891 if err != nil {
29892 return nil, err
29893 }
29894 defer googleapi.CloseBody(res)
29895 if err := googleapi.CheckResponse(res); err != nil {
29896 return nil, gensupport.WrapError(err)
29897 }
29898 ret := &GoogleCloudDialogflowCxV3SessionEntityType{
29899 ServerResponse: googleapi.ServerResponse{
29900 Header: res.Header,
29901 HTTPStatusCode: res.StatusCode,
29902 },
29903 }
29904 target := &ret
29905 if err := gensupport.DecodeResponse(target, res); err != nil {
29906 return nil, err
29907 }
29908 return ret, nil
29909 }
29910
29911 type ProjectsLocationsAgentsSessionsEntityTypesListCall struct {
29912 s *Service
29913 parent string
29914 urlParams_ gensupport.URLParams
29915 ifNoneMatch_ string
29916 ctx_ context.Context
29917 header_ http.Header
29918 }
29919
29920
29921
29922
29923
29924
29925
29926 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
29927 c := &ProjectsLocationsAgentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29928 c.parent = parent
29929 return c
29930 }
29931
29932
29933
29934 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
29935 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29936 return c
29937 }
29938
29939
29940
29941 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
29942 c.urlParams_.Set("pageToken", pageToken)
29943 return c
29944 }
29945
29946
29947
29948
29949 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
29950 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29951 return c
29952 }
29953
29954
29955
29956
29957 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
29958 c.ifNoneMatch_ = entityTag
29959 return c
29960 }
29961
29962
29963 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
29964 c.ctx_ = ctx
29965 return c
29966 }
29967
29968
29969
29970 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Header() http.Header {
29971 if c.header_ == nil {
29972 c.header_ = make(http.Header)
29973 }
29974 return c.header_
29975 }
29976
29977 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
29978 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29979 if c.ifNoneMatch_ != "" {
29980 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29981 }
29982 var body io.Reader = nil
29983 c.urlParams_.Set("alt", alt)
29984 c.urlParams_.Set("prettyPrint", "false")
29985 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/entityTypes")
29986 urls += "?" + c.urlParams_.Encode()
29987 req, err := http.NewRequest("GET", urls, body)
29988 if err != nil {
29989 return nil, err
29990 }
29991 req.Header = reqHeaders
29992 googleapi.Expand(req.URL, map[string]string{
29993 "parent": c.parent,
29994 })
29995 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29996 }
29997
29998
29999
30000
30001
30002
30003
30004 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse, error) {
30005 gensupport.SetOptions(c.urlParams_, opts...)
30006 res, err := c.doRequest("json")
30007 if res != nil && res.StatusCode == http.StatusNotModified {
30008 if res.Body != nil {
30009 res.Body.Close()
30010 }
30011 return nil, gensupport.WrapError(&googleapi.Error{
30012 Code: res.StatusCode,
30013 Header: res.Header,
30014 })
30015 }
30016 if err != nil {
30017 return nil, err
30018 }
30019 defer googleapi.CloseBody(res)
30020 if err := googleapi.CheckResponse(res); err != nil {
30021 return nil, gensupport.WrapError(err)
30022 }
30023 ret := &GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse{
30024 ServerResponse: googleapi.ServerResponse{
30025 Header: res.Header,
30026 HTTPStatusCode: res.StatusCode,
30027 },
30028 }
30029 target := &ret
30030 if err := gensupport.DecodeResponse(target, res); err != nil {
30031 return nil, err
30032 }
30033 return ret, nil
30034 }
30035
30036
30037
30038
30039 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListSessionEntityTypesResponse) error) error {
30040 c.ctx_ = ctx
30041 defer c.PageToken(c.urlParams_.Get("pageToken"))
30042 for {
30043 x, err := c.Do()
30044 if err != nil {
30045 return err
30046 }
30047 if err := f(x); err != nil {
30048 return err
30049 }
30050 if x.NextPageToken == "" {
30051 return nil
30052 }
30053 c.PageToken(x.NextPageToken)
30054 }
30055 }
30056
30057 type ProjectsLocationsAgentsSessionsEntityTypesPatchCall struct {
30058 s *Service
30059 nameid string
30060 googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType
30061 urlParams_ gensupport.URLParams
30062 ctx_ context.Context
30063 header_ http.Header
30064 }
30065
30066
30067
30068
30069
30070
30071
30072 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3sessionentitytype *GoogleCloudDialogflowCxV3SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30073 c := &ProjectsLocationsAgentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30074 c.nameid = nameid
30075 c.googleclouddialogflowcxv3sessionentitytype = googleclouddialogflowcxv3sessionentitytype
30076 return c
30077 }
30078
30079
30080
30081 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30082 c.urlParams_.Set("updateMask", updateMask)
30083 return c
30084 }
30085
30086
30087
30088
30089 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30090 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30091 return c
30092 }
30093
30094
30095 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30096 c.ctx_ = ctx
30097 return c
30098 }
30099
30100
30101
30102 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Header() http.Header {
30103 if c.header_ == nil {
30104 c.header_ = make(http.Header)
30105 }
30106 return c.header_
30107 }
30108
30109 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
30110 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30111 var body io.Reader = nil
30112 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3sessionentitytype)
30113 if err != nil {
30114 return nil, err
30115 }
30116 c.urlParams_.Set("alt", alt)
30117 c.urlParams_.Set("prettyPrint", "false")
30118 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
30119 urls += "?" + c.urlParams_.Encode()
30120 req, err := http.NewRequest("PATCH", urls, body)
30121 if err != nil {
30122 return nil, err
30123 }
30124 req.Header = reqHeaders
30125 googleapi.Expand(req.URL, map[string]string{
30126 "name": c.nameid,
30127 })
30128 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30129 }
30130
30131
30132
30133
30134
30135
30136
30137 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SessionEntityType, error) {
30138 gensupport.SetOptions(c.urlParams_, opts...)
30139 res, err := c.doRequest("json")
30140 if res != nil && res.StatusCode == http.StatusNotModified {
30141 if res.Body != nil {
30142 res.Body.Close()
30143 }
30144 return nil, gensupport.WrapError(&googleapi.Error{
30145 Code: res.StatusCode,
30146 Header: res.Header,
30147 })
30148 }
30149 if err != nil {
30150 return nil, err
30151 }
30152 defer googleapi.CloseBody(res)
30153 if err := googleapi.CheckResponse(res); err != nil {
30154 return nil, gensupport.WrapError(err)
30155 }
30156 ret := &GoogleCloudDialogflowCxV3SessionEntityType{
30157 ServerResponse: googleapi.ServerResponse{
30158 Header: res.Header,
30159 HTTPStatusCode: res.StatusCode,
30160 },
30161 }
30162 target := &ret
30163 if err := gensupport.DecodeResponse(target, res); err != nil {
30164 return nil, err
30165 }
30166 return ret, nil
30167 }
30168
30169 type ProjectsLocationsAgentsTestCasesBatchDeleteCall struct {
30170 s *Service
30171 parent string
30172 googleclouddialogflowcxv3batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest
30173 urlParams_ gensupport.URLParams
30174 ctx_ context.Context
30175 header_ http.Header
30176 }
30177
30178
30179
30180
30181
30182 func (r *ProjectsLocationsAgentsTestCasesService) BatchDelete(parent string, googleclouddialogflowcxv3batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3BatchDeleteTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
30183 c := &ProjectsLocationsAgentsTestCasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30184 c.parent = parent
30185 c.googleclouddialogflowcxv3batchdeletetestcasesrequest = googleclouddialogflowcxv3batchdeletetestcasesrequest
30186 return c
30187 }
30188
30189
30190
30191
30192 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
30193 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30194 return c
30195 }
30196
30197
30198 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
30199 c.ctx_ = ctx
30200 return c
30201 }
30202
30203
30204
30205 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Header() http.Header {
30206 if c.header_ == nil {
30207 c.header_ = make(http.Header)
30208 }
30209 return c.header_
30210 }
30211
30212 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
30213 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30214 var body io.Reader = nil
30215 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3batchdeletetestcasesrequest)
30216 if err != nil {
30217 return nil, err
30218 }
30219 c.urlParams_.Set("alt", alt)
30220 c.urlParams_.Set("prettyPrint", "false")
30221 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/testCases:batchDelete")
30222 urls += "?" + c.urlParams_.Encode()
30223 req, err := http.NewRequest("POST", urls, body)
30224 if err != nil {
30225 return nil, err
30226 }
30227 req.Header = reqHeaders
30228 googleapi.Expand(req.URL, map[string]string{
30229 "parent": c.parent,
30230 })
30231 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30232 }
30233
30234
30235
30236
30237
30238
30239
30240 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30241 gensupport.SetOptions(c.urlParams_, opts...)
30242 res, err := c.doRequest("json")
30243 if res != nil && res.StatusCode == http.StatusNotModified {
30244 if res.Body != nil {
30245 res.Body.Close()
30246 }
30247 return nil, gensupport.WrapError(&googleapi.Error{
30248 Code: res.StatusCode,
30249 Header: res.Header,
30250 })
30251 }
30252 if err != nil {
30253 return nil, err
30254 }
30255 defer googleapi.CloseBody(res)
30256 if err := googleapi.CheckResponse(res); err != nil {
30257 return nil, gensupport.WrapError(err)
30258 }
30259 ret := &GoogleProtobufEmpty{
30260 ServerResponse: googleapi.ServerResponse{
30261 Header: res.Header,
30262 HTTPStatusCode: res.StatusCode,
30263 },
30264 }
30265 target := &ret
30266 if err := gensupport.DecodeResponse(target, res); err != nil {
30267 return nil, err
30268 }
30269 return ret, nil
30270 }
30271
30272 type ProjectsLocationsAgentsTestCasesBatchRunCall struct {
30273 s *Service
30274 parent string
30275 googleclouddialogflowcxv3batchruntestcasesrequest *GoogleCloudDialogflowCxV3BatchRunTestCasesRequest
30276 urlParams_ gensupport.URLParams
30277 ctx_ context.Context
30278 header_ http.Header
30279 }
30280
30281
30282
30283
30284
30285
30286
30287
30288
30289 func (r *ProjectsLocationsAgentsTestCasesService) BatchRun(parent string, googleclouddialogflowcxv3batchruntestcasesrequest *GoogleCloudDialogflowCxV3BatchRunTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchRunCall {
30290 c := &ProjectsLocationsAgentsTestCasesBatchRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30291 c.parent = parent
30292 c.googleclouddialogflowcxv3batchruntestcasesrequest = googleclouddialogflowcxv3batchruntestcasesrequest
30293 return c
30294 }
30295
30296
30297
30298
30299 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchRunCall {
30300 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30301 return c
30302 }
30303
30304
30305 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchRunCall {
30306 c.ctx_ = ctx
30307 return c
30308 }
30309
30310
30311
30312 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Header() http.Header {
30313 if c.header_ == nil {
30314 c.header_ = make(http.Header)
30315 }
30316 return c.header_
30317 }
30318
30319 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) doRequest(alt string) (*http.Response, error) {
30320 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30321 var body io.Reader = nil
30322 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3batchruntestcasesrequest)
30323 if err != nil {
30324 return nil, err
30325 }
30326 c.urlParams_.Set("alt", alt)
30327 c.urlParams_.Set("prettyPrint", "false")
30328 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/testCases:batchRun")
30329 urls += "?" + c.urlParams_.Encode()
30330 req, err := http.NewRequest("POST", urls, body)
30331 if err != nil {
30332 return nil, err
30333 }
30334 req.Header = reqHeaders
30335 googleapi.Expand(req.URL, map[string]string{
30336 "parent": c.parent,
30337 })
30338 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30339 }
30340
30341
30342
30343
30344
30345
30346
30347 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30348 gensupport.SetOptions(c.urlParams_, opts...)
30349 res, err := c.doRequest("json")
30350 if res != nil && res.StatusCode == http.StatusNotModified {
30351 if res.Body != nil {
30352 res.Body.Close()
30353 }
30354 return nil, gensupport.WrapError(&googleapi.Error{
30355 Code: res.StatusCode,
30356 Header: res.Header,
30357 })
30358 }
30359 if err != nil {
30360 return nil, err
30361 }
30362 defer googleapi.CloseBody(res)
30363 if err := googleapi.CheckResponse(res); err != nil {
30364 return nil, gensupport.WrapError(err)
30365 }
30366 ret := &GoogleLongrunningOperation{
30367 ServerResponse: googleapi.ServerResponse{
30368 Header: res.Header,
30369 HTTPStatusCode: res.StatusCode,
30370 },
30371 }
30372 target := &ret
30373 if err := gensupport.DecodeResponse(target, res); err != nil {
30374 return nil, err
30375 }
30376 return ret, nil
30377 }
30378
30379 type ProjectsLocationsAgentsTestCasesCalculateCoverageCall struct {
30380 s *Service
30381 agent string
30382 urlParams_ gensupport.URLParams
30383 ifNoneMatch_ string
30384 ctx_ context.Context
30385 header_ http.Header
30386 }
30387
30388
30389
30390
30391
30392 func (r *ProjectsLocationsAgentsTestCasesService) CalculateCoverage(agent string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
30393 c := &ProjectsLocationsAgentsTestCasesCalculateCoverageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30394 c.agent = agent
30395 return c
30396 }
30397
30398
30399
30400
30401
30402
30403
30404
30405
30406
30407 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Type(type_ string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
30408 c.urlParams_.Set("type", type_)
30409 return c
30410 }
30411
30412
30413
30414
30415 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
30416 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30417 return c
30418 }
30419
30420
30421
30422
30423 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
30424 c.ifNoneMatch_ = entityTag
30425 return c
30426 }
30427
30428
30429 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
30430 c.ctx_ = ctx
30431 return c
30432 }
30433
30434
30435
30436 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Header() http.Header {
30437 if c.header_ == nil {
30438 c.header_ = make(http.Header)
30439 }
30440 return c.header_
30441 }
30442
30443 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) doRequest(alt string) (*http.Response, error) {
30444 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30445 if c.ifNoneMatch_ != "" {
30446 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30447 }
30448 var body io.Reader = nil
30449 c.urlParams_.Set("alt", alt)
30450 c.urlParams_.Set("prettyPrint", "false")
30451 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+agent}/testCases:calculateCoverage")
30452 urls += "?" + c.urlParams_.Encode()
30453 req, err := http.NewRequest("GET", urls, body)
30454 if err != nil {
30455 return nil, err
30456 }
30457 req.Header = reqHeaders
30458 googleapi.Expand(req.URL, map[string]string{
30459 "agent": c.agent,
30460 })
30461 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30462 }
30463
30464
30465
30466
30467
30468
30469
30470 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3CalculateCoverageResponse, error) {
30471 gensupport.SetOptions(c.urlParams_, opts...)
30472 res, err := c.doRequest("json")
30473 if res != nil && res.StatusCode == http.StatusNotModified {
30474 if res.Body != nil {
30475 res.Body.Close()
30476 }
30477 return nil, gensupport.WrapError(&googleapi.Error{
30478 Code: res.StatusCode,
30479 Header: res.Header,
30480 })
30481 }
30482 if err != nil {
30483 return nil, err
30484 }
30485 defer googleapi.CloseBody(res)
30486 if err := googleapi.CheckResponse(res); err != nil {
30487 return nil, gensupport.WrapError(err)
30488 }
30489 ret := &GoogleCloudDialogflowCxV3CalculateCoverageResponse{
30490 ServerResponse: googleapi.ServerResponse{
30491 Header: res.Header,
30492 HTTPStatusCode: res.StatusCode,
30493 },
30494 }
30495 target := &ret
30496 if err := gensupport.DecodeResponse(target, res); err != nil {
30497 return nil, err
30498 }
30499 return ret, nil
30500 }
30501
30502 type ProjectsLocationsAgentsTestCasesCreateCall struct {
30503 s *Service
30504 parent string
30505 googleclouddialogflowcxv3testcase *GoogleCloudDialogflowCxV3TestCase
30506 urlParams_ gensupport.URLParams
30507 ctx_ context.Context
30508 header_ http.Header
30509 }
30510
30511
30512
30513
30514
30515 func (r *ProjectsLocationsAgentsTestCasesService) Create(parent string, googleclouddialogflowcxv3testcase *GoogleCloudDialogflowCxV3TestCase) *ProjectsLocationsAgentsTestCasesCreateCall {
30516 c := &ProjectsLocationsAgentsTestCasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30517 c.parent = parent
30518 c.googleclouddialogflowcxv3testcase = googleclouddialogflowcxv3testcase
30519 return c
30520 }
30521
30522
30523
30524
30525 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCreateCall {
30526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30527 return c
30528 }
30529
30530
30531 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCreateCall {
30532 c.ctx_ = ctx
30533 return c
30534 }
30535
30536
30537
30538 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Header() http.Header {
30539 if c.header_ == nil {
30540 c.header_ = make(http.Header)
30541 }
30542 return c.header_
30543 }
30544
30545 func (c *ProjectsLocationsAgentsTestCasesCreateCall) doRequest(alt string) (*http.Response, error) {
30546 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30547 var body io.Reader = nil
30548 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3testcase)
30549 if err != nil {
30550 return nil, err
30551 }
30552 c.urlParams_.Set("alt", alt)
30553 c.urlParams_.Set("prettyPrint", "false")
30554 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/testCases")
30555 urls += "?" + c.urlParams_.Encode()
30556 req, err := http.NewRequest("POST", urls, body)
30557 if err != nil {
30558 return nil, err
30559 }
30560 req.Header = reqHeaders
30561 googleapi.Expand(req.URL, map[string]string{
30562 "parent": c.parent,
30563 })
30564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30565 }
30566
30567
30568
30569
30570
30571
30572
30573 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TestCase, error) {
30574 gensupport.SetOptions(c.urlParams_, opts...)
30575 res, err := c.doRequest("json")
30576 if res != nil && res.StatusCode == http.StatusNotModified {
30577 if res.Body != nil {
30578 res.Body.Close()
30579 }
30580 return nil, gensupport.WrapError(&googleapi.Error{
30581 Code: res.StatusCode,
30582 Header: res.Header,
30583 })
30584 }
30585 if err != nil {
30586 return nil, err
30587 }
30588 defer googleapi.CloseBody(res)
30589 if err := googleapi.CheckResponse(res); err != nil {
30590 return nil, gensupport.WrapError(err)
30591 }
30592 ret := &GoogleCloudDialogflowCxV3TestCase{
30593 ServerResponse: googleapi.ServerResponse{
30594 Header: res.Header,
30595 HTTPStatusCode: res.StatusCode,
30596 },
30597 }
30598 target := &ret
30599 if err := gensupport.DecodeResponse(target, res); err != nil {
30600 return nil, err
30601 }
30602 return ret, nil
30603 }
30604
30605 type ProjectsLocationsAgentsTestCasesExportCall struct {
30606 s *Service
30607 parent string
30608 googleclouddialogflowcxv3exporttestcasesrequest *GoogleCloudDialogflowCxV3ExportTestCasesRequest
30609 urlParams_ gensupport.URLParams
30610 ctx_ context.Context
30611 header_ http.Header
30612 }
30613
30614
30615
30616
30617
30618
30619
30620
30621
30622
30623 func (r *ProjectsLocationsAgentsTestCasesService) Export(parent string, googleclouddialogflowcxv3exporttestcasesrequest *GoogleCloudDialogflowCxV3ExportTestCasesRequest) *ProjectsLocationsAgentsTestCasesExportCall {
30624 c := &ProjectsLocationsAgentsTestCasesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30625 c.parent = parent
30626 c.googleclouddialogflowcxv3exporttestcasesrequest = googleclouddialogflowcxv3exporttestcasesrequest
30627 return c
30628 }
30629
30630
30631
30632
30633 func (c *ProjectsLocationsAgentsTestCasesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesExportCall {
30634 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30635 return c
30636 }
30637
30638
30639 func (c *ProjectsLocationsAgentsTestCasesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesExportCall {
30640 c.ctx_ = ctx
30641 return c
30642 }
30643
30644
30645
30646 func (c *ProjectsLocationsAgentsTestCasesExportCall) Header() http.Header {
30647 if c.header_ == nil {
30648 c.header_ = make(http.Header)
30649 }
30650 return c.header_
30651 }
30652
30653 func (c *ProjectsLocationsAgentsTestCasesExportCall) doRequest(alt string) (*http.Response, error) {
30654 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30655 var body io.Reader = nil
30656 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3exporttestcasesrequest)
30657 if err != nil {
30658 return nil, err
30659 }
30660 c.urlParams_.Set("alt", alt)
30661 c.urlParams_.Set("prettyPrint", "false")
30662 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/testCases:export")
30663 urls += "?" + c.urlParams_.Encode()
30664 req, err := http.NewRequest("POST", urls, body)
30665 if err != nil {
30666 return nil, err
30667 }
30668 req.Header = reqHeaders
30669 googleapi.Expand(req.URL, map[string]string{
30670 "parent": c.parent,
30671 })
30672 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30673 }
30674
30675
30676
30677
30678
30679
30680
30681 func (c *ProjectsLocationsAgentsTestCasesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30682 gensupport.SetOptions(c.urlParams_, opts...)
30683 res, err := c.doRequest("json")
30684 if res != nil && res.StatusCode == http.StatusNotModified {
30685 if res.Body != nil {
30686 res.Body.Close()
30687 }
30688 return nil, gensupport.WrapError(&googleapi.Error{
30689 Code: res.StatusCode,
30690 Header: res.Header,
30691 })
30692 }
30693 if err != nil {
30694 return nil, err
30695 }
30696 defer googleapi.CloseBody(res)
30697 if err := googleapi.CheckResponse(res); err != nil {
30698 return nil, gensupport.WrapError(err)
30699 }
30700 ret := &GoogleLongrunningOperation{
30701 ServerResponse: googleapi.ServerResponse{
30702 Header: res.Header,
30703 HTTPStatusCode: res.StatusCode,
30704 },
30705 }
30706 target := &ret
30707 if err := gensupport.DecodeResponse(target, res); err != nil {
30708 return nil, err
30709 }
30710 return ret, nil
30711 }
30712
30713 type ProjectsLocationsAgentsTestCasesGetCall struct {
30714 s *Service
30715 name string
30716 urlParams_ gensupport.URLParams
30717 ifNoneMatch_ string
30718 ctx_ context.Context
30719 header_ http.Header
30720 }
30721
30722
30723
30724
30725
30726 func (r *ProjectsLocationsAgentsTestCasesService) Get(name string) *ProjectsLocationsAgentsTestCasesGetCall {
30727 c := &ProjectsLocationsAgentsTestCasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30728 c.name = name
30729 return c
30730 }
30731
30732
30733
30734
30735 func (c *ProjectsLocationsAgentsTestCasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesGetCall {
30736 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30737 return c
30738 }
30739
30740
30741
30742
30743 func (c *ProjectsLocationsAgentsTestCasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesGetCall {
30744 c.ifNoneMatch_ = entityTag
30745 return c
30746 }
30747
30748
30749 func (c *ProjectsLocationsAgentsTestCasesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesGetCall {
30750 c.ctx_ = ctx
30751 return c
30752 }
30753
30754
30755
30756 func (c *ProjectsLocationsAgentsTestCasesGetCall) Header() http.Header {
30757 if c.header_ == nil {
30758 c.header_ = make(http.Header)
30759 }
30760 return c.header_
30761 }
30762
30763 func (c *ProjectsLocationsAgentsTestCasesGetCall) doRequest(alt string) (*http.Response, error) {
30764 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30765 if c.ifNoneMatch_ != "" {
30766 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30767 }
30768 var body io.Reader = nil
30769 c.urlParams_.Set("alt", alt)
30770 c.urlParams_.Set("prettyPrint", "false")
30771 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
30772 urls += "?" + c.urlParams_.Encode()
30773 req, err := http.NewRequest("GET", urls, body)
30774 if err != nil {
30775 return nil, err
30776 }
30777 req.Header = reqHeaders
30778 googleapi.Expand(req.URL, map[string]string{
30779 "name": c.name,
30780 })
30781 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30782 }
30783
30784
30785
30786
30787
30788
30789
30790 func (c *ProjectsLocationsAgentsTestCasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TestCase, error) {
30791 gensupport.SetOptions(c.urlParams_, opts...)
30792 res, err := c.doRequest("json")
30793 if res != nil && res.StatusCode == http.StatusNotModified {
30794 if res.Body != nil {
30795 res.Body.Close()
30796 }
30797 return nil, gensupport.WrapError(&googleapi.Error{
30798 Code: res.StatusCode,
30799 Header: res.Header,
30800 })
30801 }
30802 if err != nil {
30803 return nil, err
30804 }
30805 defer googleapi.CloseBody(res)
30806 if err := googleapi.CheckResponse(res); err != nil {
30807 return nil, gensupport.WrapError(err)
30808 }
30809 ret := &GoogleCloudDialogflowCxV3TestCase{
30810 ServerResponse: googleapi.ServerResponse{
30811 Header: res.Header,
30812 HTTPStatusCode: res.StatusCode,
30813 },
30814 }
30815 target := &ret
30816 if err := gensupport.DecodeResponse(target, res); err != nil {
30817 return nil, err
30818 }
30819 return ret, nil
30820 }
30821
30822 type ProjectsLocationsAgentsTestCasesImportCall struct {
30823 s *Service
30824 parent string
30825 googleclouddialogflowcxv3importtestcasesrequest *GoogleCloudDialogflowCxV3ImportTestCasesRequest
30826 urlParams_ gensupport.URLParams
30827 ctx_ context.Context
30828 header_ http.Header
30829 }
30830
30831
30832
30833
30834
30835
30836
30837
30838
30839
30840
30841 func (r *ProjectsLocationsAgentsTestCasesService) Import(parent string, googleclouddialogflowcxv3importtestcasesrequest *GoogleCloudDialogflowCxV3ImportTestCasesRequest) *ProjectsLocationsAgentsTestCasesImportCall {
30842 c := &ProjectsLocationsAgentsTestCasesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30843 c.parent = parent
30844 c.googleclouddialogflowcxv3importtestcasesrequest = googleclouddialogflowcxv3importtestcasesrequest
30845 return c
30846 }
30847
30848
30849
30850
30851 func (c *ProjectsLocationsAgentsTestCasesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesImportCall {
30852 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30853 return c
30854 }
30855
30856
30857 func (c *ProjectsLocationsAgentsTestCasesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesImportCall {
30858 c.ctx_ = ctx
30859 return c
30860 }
30861
30862
30863
30864 func (c *ProjectsLocationsAgentsTestCasesImportCall) Header() http.Header {
30865 if c.header_ == nil {
30866 c.header_ = make(http.Header)
30867 }
30868 return c.header_
30869 }
30870
30871 func (c *ProjectsLocationsAgentsTestCasesImportCall) doRequest(alt string) (*http.Response, error) {
30872 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30873 var body io.Reader = nil
30874 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3importtestcasesrequest)
30875 if err != nil {
30876 return nil, err
30877 }
30878 c.urlParams_.Set("alt", alt)
30879 c.urlParams_.Set("prettyPrint", "false")
30880 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/testCases:import")
30881 urls += "?" + c.urlParams_.Encode()
30882 req, err := http.NewRequest("POST", urls, body)
30883 if err != nil {
30884 return nil, err
30885 }
30886 req.Header = reqHeaders
30887 googleapi.Expand(req.URL, map[string]string{
30888 "parent": c.parent,
30889 })
30890 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30891 }
30892
30893
30894
30895
30896
30897
30898
30899 func (c *ProjectsLocationsAgentsTestCasesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
30900 gensupport.SetOptions(c.urlParams_, opts...)
30901 res, err := c.doRequest("json")
30902 if res != nil && res.StatusCode == http.StatusNotModified {
30903 if res.Body != nil {
30904 res.Body.Close()
30905 }
30906 return nil, gensupport.WrapError(&googleapi.Error{
30907 Code: res.StatusCode,
30908 Header: res.Header,
30909 })
30910 }
30911 if err != nil {
30912 return nil, err
30913 }
30914 defer googleapi.CloseBody(res)
30915 if err := googleapi.CheckResponse(res); err != nil {
30916 return nil, gensupport.WrapError(err)
30917 }
30918 ret := &GoogleLongrunningOperation{
30919 ServerResponse: googleapi.ServerResponse{
30920 Header: res.Header,
30921 HTTPStatusCode: res.StatusCode,
30922 },
30923 }
30924 target := &ret
30925 if err := gensupport.DecodeResponse(target, res); err != nil {
30926 return nil, err
30927 }
30928 return ret, nil
30929 }
30930
30931 type ProjectsLocationsAgentsTestCasesListCall struct {
30932 s *Service
30933 parent string
30934 urlParams_ gensupport.URLParams
30935 ifNoneMatch_ string
30936 ctx_ context.Context
30937 header_ http.Header
30938 }
30939
30940
30941
30942
30943
30944 func (r *ProjectsLocationsAgentsTestCasesService) List(parent string) *ProjectsLocationsAgentsTestCasesListCall {
30945 c := &ProjectsLocationsAgentsTestCasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30946 c.parent = parent
30947 return c
30948 }
30949
30950
30951
30952
30953
30954 func (c *ProjectsLocationsAgentsTestCasesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesListCall {
30955 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30956 return c
30957 }
30958
30959
30960
30961 func (c *ProjectsLocationsAgentsTestCasesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesListCall {
30962 c.urlParams_.Set("pageToken", pageToken)
30963 return c
30964 }
30965
30966
30967
30968
30969
30970
30971
30972
30973
30974
30975
30976
30977
30978
30979
30980 func (c *ProjectsLocationsAgentsTestCasesListCall) View(view string) *ProjectsLocationsAgentsTestCasesListCall {
30981 c.urlParams_.Set("view", view)
30982 return c
30983 }
30984
30985
30986
30987
30988 func (c *ProjectsLocationsAgentsTestCasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesListCall {
30989 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30990 return c
30991 }
30992
30993
30994
30995
30996 func (c *ProjectsLocationsAgentsTestCasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesListCall {
30997 c.ifNoneMatch_ = entityTag
30998 return c
30999 }
31000
31001
31002 func (c *ProjectsLocationsAgentsTestCasesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesListCall {
31003 c.ctx_ = ctx
31004 return c
31005 }
31006
31007
31008
31009 func (c *ProjectsLocationsAgentsTestCasesListCall) Header() http.Header {
31010 if c.header_ == nil {
31011 c.header_ = make(http.Header)
31012 }
31013 return c.header_
31014 }
31015
31016 func (c *ProjectsLocationsAgentsTestCasesListCall) doRequest(alt string) (*http.Response, error) {
31017 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31018 if c.ifNoneMatch_ != "" {
31019 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31020 }
31021 var body io.Reader = nil
31022 c.urlParams_.Set("alt", alt)
31023 c.urlParams_.Set("prettyPrint", "false")
31024 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/testCases")
31025 urls += "?" + c.urlParams_.Encode()
31026 req, err := http.NewRequest("GET", urls, body)
31027 if err != nil {
31028 return nil, err
31029 }
31030 req.Header = reqHeaders
31031 googleapi.Expand(req.URL, map[string]string{
31032 "parent": c.parent,
31033 })
31034 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31035 }
31036
31037
31038
31039
31040
31041
31042
31043 func (c *ProjectsLocationsAgentsTestCasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListTestCasesResponse, error) {
31044 gensupport.SetOptions(c.urlParams_, opts...)
31045 res, err := c.doRequest("json")
31046 if res != nil && res.StatusCode == http.StatusNotModified {
31047 if res.Body != nil {
31048 res.Body.Close()
31049 }
31050 return nil, gensupport.WrapError(&googleapi.Error{
31051 Code: res.StatusCode,
31052 Header: res.Header,
31053 })
31054 }
31055 if err != nil {
31056 return nil, err
31057 }
31058 defer googleapi.CloseBody(res)
31059 if err := googleapi.CheckResponse(res); err != nil {
31060 return nil, gensupport.WrapError(err)
31061 }
31062 ret := &GoogleCloudDialogflowCxV3ListTestCasesResponse{
31063 ServerResponse: googleapi.ServerResponse{
31064 Header: res.Header,
31065 HTTPStatusCode: res.StatusCode,
31066 },
31067 }
31068 target := &ret
31069 if err := gensupport.DecodeResponse(target, res); err != nil {
31070 return nil, err
31071 }
31072 return ret, nil
31073 }
31074
31075
31076
31077
31078 func (c *ProjectsLocationsAgentsTestCasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListTestCasesResponse) error) error {
31079 c.ctx_ = ctx
31080 defer c.PageToken(c.urlParams_.Get("pageToken"))
31081 for {
31082 x, err := c.Do()
31083 if err != nil {
31084 return err
31085 }
31086 if err := f(x); err != nil {
31087 return err
31088 }
31089 if x.NextPageToken == "" {
31090 return nil
31091 }
31092 c.PageToken(x.NextPageToken)
31093 }
31094 }
31095
31096 type ProjectsLocationsAgentsTestCasesPatchCall struct {
31097 s *Service
31098 nameid string
31099 googleclouddialogflowcxv3testcase *GoogleCloudDialogflowCxV3TestCase
31100 urlParams_ gensupport.URLParams
31101 ctx_ context.Context
31102 header_ http.Header
31103 }
31104
31105
31106
31107
31108
31109
31110 func (r *ProjectsLocationsAgentsTestCasesService) Patch(nameid string, googleclouddialogflowcxv3testcase *GoogleCloudDialogflowCxV3TestCase) *ProjectsLocationsAgentsTestCasesPatchCall {
31111 c := &ProjectsLocationsAgentsTestCasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31112 c.nameid = nameid
31113 c.googleclouddialogflowcxv3testcase = googleclouddialogflowcxv3testcase
31114 return c
31115 }
31116
31117
31118
31119
31120 func (c *ProjectsLocationsAgentsTestCasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTestCasesPatchCall {
31121 c.urlParams_.Set("updateMask", updateMask)
31122 return c
31123 }
31124
31125
31126
31127
31128 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesPatchCall {
31129 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31130 return c
31131 }
31132
31133
31134 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesPatchCall {
31135 c.ctx_ = ctx
31136 return c
31137 }
31138
31139
31140
31141 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Header() http.Header {
31142 if c.header_ == nil {
31143 c.header_ = make(http.Header)
31144 }
31145 return c.header_
31146 }
31147
31148 func (c *ProjectsLocationsAgentsTestCasesPatchCall) doRequest(alt string) (*http.Response, error) {
31149 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31150 var body io.Reader = nil
31151 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3testcase)
31152 if err != nil {
31153 return nil, err
31154 }
31155 c.urlParams_.Set("alt", alt)
31156 c.urlParams_.Set("prettyPrint", "false")
31157 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
31158 urls += "?" + c.urlParams_.Encode()
31159 req, err := http.NewRequest("PATCH", urls, body)
31160 if err != nil {
31161 return nil, err
31162 }
31163 req.Header = reqHeaders
31164 googleapi.Expand(req.URL, map[string]string{
31165 "name": c.nameid,
31166 })
31167 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31168 }
31169
31170
31171
31172
31173
31174
31175
31176 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TestCase, error) {
31177 gensupport.SetOptions(c.urlParams_, opts...)
31178 res, err := c.doRequest("json")
31179 if res != nil && res.StatusCode == http.StatusNotModified {
31180 if res.Body != nil {
31181 res.Body.Close()
31182 }
31183 return nil, gensupport.WrapError(&googleapi.Error{
31184 Code: res.StatusCode,
31185 Header: res.Header,
31186 })
31187 }
31188 if err != nil {
31189 return nil, err
31190 }
31191 defer googleapi.CloseBody(res)
31192 if err := googleapi.CheckResponse(res); err != nil {
31193 return nil, gensupport.WrapError(err)
31194 }
31195 ret := &GoogleCloudDialogflowCxV3TestCase{
31196 ServerResponse: googleapi.ServerResponse{
31197 Header: res.Header,
31198 HTTPStatusCode: res.StatusCode,
31199 },
31200 }
31201 target := &ret
31202 if err := gensupport.DecodeResponse(target, res); err != nil {
31203 return nil, err
31204 }
31205 return ret, nil
31206 }
31207
31208 type ProjectsLocationsAgentsTestCasesRunCall struct {
31209 s *Service
31210 name string
31211 googleclouddialogflowcxv3runtestcaserequest *GoogleCloudDialogflowCxV3RunTestCaseRequest
31212 urlParams_ gensupport.URLParams
31213 ctx_ context.Context
31214 header_ http.Header
31215 }
31216
31217
31218
31219
31220
31221
31222
31223
31224 func (r *ProjectsLocationsAgentsTestCasesService) Run(name string, googleclouddialogflowcxv3runtestcaserequest *GoogleCloudDialogflowCxV3RunTestCaseRequest) *ProjectsLocationsAgentsTestCasesRunCall {
31225 c := &ProjectsLocationsAgentsTestCasesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31226 c.name = name
31227 c.googleclouddialogflowcxv3runtestcaserequest = googleclouddialogflowcxv3runtestcaserequest
31228 return c
31229 }
31230
31231
31232
31233
31234 func (c *ProjectsLocationsAgentsTestCasesRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesRunCall {
31235 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31236 return c
31237 }
31238
31239
31240 func (c *ProjectsLocationsAgentsTestCasesRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesRunCall {
31241 c.ctx_ = ctx
31242 return c
31243 }
31244
31245
31246
31247 func (c *ProjectsLocationsAgentsTestCasesRunCall) Header() http.Header {
31248 if c.header_ == nil {
31249 c.header_ = make(http.Header)
31250 }
31251 return c.header_
31252 }
31253
31254 func (c *ProjectsLocationsAgentsTestCasesRunCall) doRequest(alt string) (*http.Response, error) {
31255 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31256 var body io.Reader = nil
31257 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3runtestcaserequest)
31258 if err != nil {
31259 return nil, err
31260 }
31261 c.urlParams_.Set("alt", alt)
31262 c.urlParams_.Set("prettyPrint", "false")
31263 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:run")
31264 urls += "?" + c.urlParams_.Encode()
31265 req, err := http.NewRequest("POST", urls, body)
31266 if err != nil {
31267 return nil, err
31268 }
31269 req.Header = reqHeaders
31270 googleapi.Expand(req.URL, map[string]string{
31271 "name": c.name,
31272 })
31273 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31274 }
31275
31276
31277
31278
31279
31280
31281
31282 func (c *ProjectsLocationsAgentsTestCasesRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31283 gensupport.SetOptions(c.urlParams_, opts...)
31284 res, err := c.doRequest("json")
31285 if res != nil && res.StatusCode == http.StatusNotModified {
31286 if res.Body != nil {
31287 res.Body.Close()
31288 }
31289 return nil, gensupport.WrapError(&googleapi.Error{
31290 Code: res.StatusCode,
31291 Header: res.Header,
31292 })
31293 }
31294 if err != nil {
31295 return nil, err
31296 }
31297 defer googleapi.CloseBody(res)
31298 if err := googleapi.CheckResponse(res); err != nil {
31299 return nil, gensupport.WrapError(err)
31300 }
31301 ret := &GoogleLongrunningOperation{
31302 ServerResponse: googleapi.ServerResponse{
31303 Header: res.Header,
31304 HTTPStatusCode: res.StatusCode,
31305 },
31306 }
31307 target := &ret
31308 if err := gensupport.DecodeResponse(target, res); err != nil {
31309 return nil, err
31310 }
31311 return ret, nil
31312 }
31313
31314 type ProjectsLocationsAgentsTestCasesResultsGetCall struct {
31315 s *Service
31316 name string
31317 urlParams_ gensupport.URLParams
31318 ifNoneMatch_ string
31319 ctx_ context.Context
31320 header_ http.Header
31321 }
31322
31323
31324
31325
31326
31327 func (r *ProjectsLocationsAgentsTestCasesResultsService) Get(name string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
31328 c := &ProjectsLocationsAgentsTestCasesResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31329 c.name = name
31330 return c
31331 }
31332
31333
31334
31335
31336 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsGetCall {
31337 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31338 return c
31339 }
31340
31341
31342
31343
31344 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
31345 c.ifNoneMatch_ = entityTag
31346 return c
31347 }
31348
31349
31350 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsGetCall {
31351 c.ctx_ = ctx
31352 return c
31353 }
31354
31355
31356
31357 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Header() http.Header {
31358 if c.header_ == nil {
31359 c.header_ = make(http.Header)
31360 }
31361 return c.header_
31362 }
31363
31364 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) doRequest(alt string) (*http.Response, error) {
31365 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31366 if c.ifNoneMatch_ != "" {
31367 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31368 }
31369 var body io.Reader = nil
31370 c.urlParams_.Set("alt", alt)
31371 c.urlParams_.Set("prettyPrint", "false")
31372 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
31373 urls += "?" + c.urlParams_.Encode()
31374 req, err := http.NewRequest("GET", urls, body)
31375 if err != nil {
31376 return nil, err
31377 }
31378 req.Header = reqHeaders
31379 googleapi.Expand(req.URL, map[string]string{
31380 "name": c.name,
31381 })
31382 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31383 }
31384
31385
31386
31387
31388
31389
31390
31391 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TestCaseResult, error) {
31392 gensupport.SetOptions(c.urlParams_, opts...)
31393 res, err := c.doRequest("json")
31394 if res != nil && res.StatusCode == http.StatusNotModified {
31395 if res.Body != nil {
31396 res.Body.Close()
31397 }
31398 return nil, gensupport.WrapError(&googleapi.Error{
31399 Code: res.StatusCode,
31400 Header: res.Header,
31401 })
31402 }
31403 if err != nil {
31404 return nil, err
31405 }
31406 defer googleapi.CloseBody(res)
31407 if err := googleapi.CheckResponse(res); err != nil {
31408 return nil, gensupport.WrapError(err)
31409 }
31410 ret := &GoogleCloudDialogflowCxV3TestCaseResult{
31411 ServerResponse: googleapi.ServerResponse{
31412 Header: res.Header,
31413 HTTPStatusCode: res.StatusCode,
31414 },
31415 }
31416 target := &ret
31417 if err := gensupport.DecodeResponse(target, res); err != nil {
31418 return nil, err
31419 }
31420 return ret, nil
31421 }
31422
31423 type ProjectsLocationsAgentsTestCasesResultsListCall struct {
31424 s *Service
31425 parent string
31426 urlParams_ gensupport.URLParams
31427 ifNoneMatch_ string
31428 ctx_ context.Context
31429 header_ http.Header
31430 }
31431
31432
31433
31434
31435
31436
31437
31438 func (r *ProjectsLocationsAgentsTestCasesResultsService) List(parent string) *ProjectsLocationsAgentsTestCasesResultsListCall {
31439 c := &ProjectsLocationsAgentsTestCasesResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31440 c.parent = parent
31441 return c
31442 }
31443
31444
31445
31446
31447
31448
31449
31450
31451
31452
31453
31454
31455
31456 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Filter(filter string) *ProjectsLocationsAgentsTestCasesResultsListCall {
31457 c.urlParams_.Set("filter", filter)
31458 return c
31459 }
31460
31461
31462
31463 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesResultsListCall {
31464 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31465 return c
31466 }
31467
31468
31469
31470 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesResultsListCall {
31471 c.urlParams_.Set("pageToken", pageToken)
31472 return c
31473 }
31474
31475
31476
31477
31478 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsListCall {
31479 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31480 return c
31481 }
31482
31483
31484
31485
31486 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsListCall {
31487 c.ifNoneMatch_ = entityTag
31488 return c
31489 }
31490
31491
31492 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsListCall {
31493 c.ctx_ = ctx
31494 return c
31495 }
31496
31497
31498
31499 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Header() http.Header {
31500 if c.header_ == nil {
31501 c.header_ = make(http.Header)
31502 }
31503 return c.header_
31504 }
31505
31506 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) doRequest(alt string) (*http.Response, error) {
31507 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31508 if c.ifNoneMatch_ != "" {
31509 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31510 }
31511 var body io.Reader = nil
31512 c.urlParams_.Set("alt", alt)
31513 c.urlParams_.Set("prettyPrint", "false")
31514 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/results")
31515 urls += "?" + c.urlParams_.Encode()
31516 req, err := http.NewRequest("GET", urls, body)
31517 if err != nil {
31518 return nil, err
31519 }
31520 req.Header = reqHeaders
31521 googleapi.Expand(req.URL, map[string]string{
31522 "parent": c.parent,
31523 })
31524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31525 }
31526
31527
31528
31529
31530
31531
31532
31533 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListTestCaseResultsResponse, error) {
31534 gensupport.SetOptions(c.urlParams_, opts...)
31535 res, err := c.doRequest("json")
31536 if res != nil && res.StatusCode == http.StatusNotModified {
31537 if res.Body != nil {
31538 res.Body.Close()
31539 }
31540 return nil, gensupport.WrapError(&googleapi.Error{
31541 Code: res.StatusCode,
31542 Header: res.Header,
31543 })
31544 }
31545 if err != nil {
31546 return nil, err
31547 }
31548 defer googleapi.CloseBody(res)
31549 if err := googleapi.CheckResponse(res); err != nil {
31550 return nil, gensupport.WrapError(err)
31551 }
31552 ret := &GoogleCloudDialogflowCxV3ListTestCaseResultsResponse{
31553 ServerResponse: googleapi.ServerResponse{
31554 Header: res.Header,
31555 HTTPStatusCode: res.StatusCode,
31556 },
31557 }
31558 target := &ret
31559 if err := gensupport.DecodeResponse(target, res); err != nil {
31560 return nil, err
31561 }
31562 return ret, nil
31563 }
31564
31565
31566
31567
31568 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListTestCaseResultsResponse) error) error {
31569 c.ctx_ = ctx
31570 defer c.PageToken(c.urlParams_.Get("pageToken"))
31571 for {
31572 x, err := c.Do()
31573 if err != nil {
31574 return err
31575 }
31576 if err := f(x); err != nil {
31577 return err
31578 }
31579 if x.NextPageToken == "" {
31580 return nil
31581 }
31582 c.PageToken(x.NextPageToken)
31583 }
31584 }
31585
31586 type ProjectsLocationsAgentsTransitionRouteGroupsCreateCall struct {
31587 s *Service
31588 parent string
31589 googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup
31590 urlParams_ gensupport.URLParams
31591 ctx_ context.Context
31592 header_ http.Header
31593 }
31594
31595
31596
31597
31598
31599
31600
31601
31602
31603 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
31604 c := &ProjectsLocationsAgentsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31605 c.parent = parent
31606 c.googleclouddialogflowcxv3transitionroutegroup = googleclouddialogflowcxv3transitionroutegroup
31607 return c
31608 }
31609
31610
31611
31612
31613
31614
31615
31616
31617
31618 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
31619 c.urlParams_.Set("languageCode", languageCode)
31620 return c
31621 }
31622
31623
31624
31625
31626 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
31627 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31628 return c
31629 }
31630
31631
31632 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
31633 c.ctx_ = ctx
31634 return c
31635 }
31636
31637
31638
31639 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Header() http.Header {
31640 if c.header_ == nil {
31641 c.header_ = make(http.Header)
31642 }
31643 return c.header_
31644 }
31645
31646 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
31647 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31648 var body io.Reader = nil
31649 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3transitionroutegroup)
31650 if err != nil {
31651 return nil, err
31652 }
31653 c.urlParams_.Set("alt", alt)
31654 c.urlParams_.Set("prettyPrint", "false")
31655 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/transitionRouteGroups")
31656 urls += "?" + c.urlParams_.Encode()
31657 req, err := http.NewRequest("POST", urls, body)
31658 if err != nil {
31659 return nil, err
31660 }
31661 req.Header = reqHeaders
31662 googleapi.Expand(req.URL, map[string]string{
31663 "parent": c.parent,
31664 })
31665 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31666 }
31667
31668
31669
31670
31671
31672
31673
31674 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TransitionRouteGroup, error) {
31675 gensupport.SetOptions(c.urlParams_, opts...)
31676 res, err := c.doRequest("json")
31677 if res != nil && res.StatusCode == http.StatusNotModified {
31678 if res.Body != nil {
31679 res.Body.Close()
31680 }
31681 return nil, gensupport.WrapError(&googleapi.Error{
31682 Code: res.StatusCode,
31683 Header: res.Header,
31684 })
31685 }
31686 if err != nil {
31687 return nil, err
31688 }
31689 defer googleapi.CloseBody(res)
31690 if err := googleapi.CheckResponse(res); err != nil {
31691 return nil, gensupport.WrapError(err)
31692 }
31693 ret := &GoogleCloudDialogflowCxV3TransitionRouteGroup{
31694 ServerResponse: googleapi.ServerResponse{
31695 Header: res.Header,
31696 HTTPStatusCode: res.StatusCode,
31697 },
31698 }
31699 target := &ret
31700 if err := gensupport.DecodeResponse(target, res); err != nil {
31701 return nil, err
31702 }
31703 return ret, nil
31704 }
31705
31706 type ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall struct {
31707 s *Service
31708 name string
31709 urlParams_ gensupport.URLParams
31710 ctx_ context.Context
31711 header_ http.Header
31712 }
31713
31714
31715
31716
31717
31718
31719
31720
31721 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
31722 c := &ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31723 c.name = name
31724 return c
31725 }
31726
31727
31728
31729
31730
31731
31732
31733 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
31734 c.urlParams_.Set("force", fmt.Sprint(force))
31735 return c
31736 }
31737
31738
31739
31740
31741 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
31742 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31743 return c
31744 }
31745
31746
31747 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
31748 c.ctx_ = ctx
31749 return c
31750 }
31751
31752
31753
31754 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Header() http.Header {
31755 if c.header_ == nil {
31756 c.header_ = make(http.Header)
31757 }
31758 return c.header_
31759 }
31760
31761 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
31762 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31763 var body io.Reader = nil
31764 c.urlParams_.Set("alt", alt)
31765 c.urlParams_.Set("prettyPrint", "false")
31766 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
31767 urls += "?" + c.urlParams_.Encode()
31768 req, err := http.NewRequest("DELETE", urls, body)
31769 if err != nil {
31770 return nil, err
31771 }
31772 req.Header = reqHeaders
31773 googleapi.Expand(req.URL, map[string]string{
31774 "name": c.name,
31775 })
31776 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31777 }
31778
31779
31780
31781
31782
31783
31784
31785 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
31786 gensupport.SetOptions(c.urlParams_, opts...)
31787 res, err := c.doRequest("json")
31788 if res != nil && res.StatusCode == http.StatusNotModified {
31789 if res.Body != nil {
31790 res.Body.Close()
31791 }
31792 return nil, gensupport.WrapError(&googleapi.Error{
31793 Code: res.StatusCode,
31794 Header: res.Header,
31795 })
31796 }
31797 if err != nil {
31798 return nil, err
31799 }
31800 defer googleapi.CloseBody(res)
31801 if err := googleapi.CheckResponse(res); err != nil {
31802 return nil, gensupport.WrapError(err)
31803 }
31804 ret := &GoogleProtobufEmpty{
31805 ServerResponse: googleapi.ServerResponse{
31806 Header: res.Header,
31807 HTTPStatusCode: res.StatusCode,
31808 },
31809 }
31810 target := &ret
31811 if err := gensupport.DecodeResponse(target, res); err != nil {
31812 return nil, err
31813 }
31814 return ret, nil
31815 }
31816
31817 type ProjectsLocationsAgentsTransitionRouteGroupsGetCall struct {
31818 s *Service
31819 name string
31820 urlParams_ gensupport.URLParams
31821 ifNoneMatch_ string
31822 ctx_ context.Context
31823 header_ http.Header
31824 }
31825
31826
31827
31828
31829
31830
31831 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
31832 c := &ProjectsLocationsAgentsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31833 c.name = name
31834 return c
31835 }
31836
31837
31838
31839
31840
31841
31842
31843
31844
31845
31846 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
31847 c.urlParams_.Set("languageCode", languageCode)
31848 return c
31849 }
31850
31851
31852
31853
31854 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
31855 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31856 return c
31857 }
31858
31859
31860
31861
31862 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
31863 c.ifNoneMatch_ = entityTag
31864 return c
31865 }
31866
31867
31868 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
31869 c.ctx_ = ctx
31870 return c
31871 }
31872
31873
31874
31875 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Header() http.Header {
31876 if c.header_ == nil {
31877 c.header_ = make(http.Header)
31878 }
31879 return c.header_
31880 }
31881
31882 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
31883 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31884 if c.ifNoneMatch_ != "" {
31885 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31886 }
31887 var body io.Reader = nil
31888 c.urlParams_.Set("alt", alt)
31889 c.urlParams_.Set("prettyPrint", "false")
31890 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
31891 urls += "?" + c.urlParams_.Encode()
31892 req, err := http.NewRequest("GET", urls, body)
31893 if err != nil {
31894 return nil, err
31895 }
31896 req.Header = reqHeaders
31897 googleapi.Expand(req.URL, map[string]string{
31898 "name": c.name,
31899 })
31900 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31901 }
31902
31903
31904
31905
31906
31907
31908
31909 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TransitionRouteGroup, error) {
31910 gensupport.SetOptions(c.urlParams_, opts...)
31911 res, err := c.doRequest("json")
31912 if res != nil && res.StatusCode == http.StatusNotModified {
31913 if res.Body != nil {
31914 res.Body.Close()
31915 }
31916 return nil, gensupport.WrapError(&googleapi.Error{
31917 Code: res.StatusCode,
31918 Header: res.Header,
31919 })
31920 }
31921 if err != nil {
31922 return nil, err
31923 }
31924 defer googleapi.CloseBody(res)
31925 if err := googleapi.CheckResponse(res); err != nil {
31926 return nil, gensupport.WrapError(err)
31927 }
31928 ret := &GoogleCloudDialogflowCxV3TransitionRouteGroup{
31929 ServerResponse: googleapi.ServerResponse{
31930 Header: res.Header,
31931 HTTPStatusCode: res.StatusCode,
31932 },
31933 }
31934 target := &ret
31935 if err := gensupport.DecodeResponse(target, res); err != nil {
31936 return nil, err
31937 }
31938 return ret, nil
31939 }
31940
31941 type ProjectsLocationsAgentsTransitionRouteGroupsListCall struct {
31942 s *Service
31943 parent string
31944 urlParams_ gensupport.URLParams
31945 ifNoneMatch_ string
31946 ctx_ context.Context
31947 header_ http.Header
31948 }
31949
31950
31951
31952
31953
31954 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
31955 c := &ProjectsLocationsAgentsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31956 c.parent = parent
31957 return c
31958 }
31959
31960
31961
31962
31963
31964
31965
31966
31967
31968
31969 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
31970 c.urlParams_.Set("languageCode", languageCode)
31971 return c
31972 }
31973
31974
31975
31976 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
31977 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31978 return c
31979 }
31980
31981
31982
31983 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
31984 c.urlParams_.Set("pageToken", pageToken)
31985 return c
31986 }
31987
31988
31989
31990
31991 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
31992 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31993 return c
31994 }
31995
31996
31997
31998
31999 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32000 c.ifNoneMatch_ = entityTag
32001 return c
32002 }
32003
32004
32005 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32006 c.ctx_ = ctx
32007 return c
32008 }
32009
32010
32011
32012 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Header() http.Header {
32013 if c.header_ == nil {
32014 c.header_ = make(http.Header)
32015 }
32016 return c.header_
32017 }
32018
32019 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
32020 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32021 if c.ifNoneMatch_ != "" {
32022 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32023 }
32024 var body io.Reader = nil
32025 c.urlParams_.Set("alt", alt)
32026 c.urlParams_.Set("prettyPrint", "false")
32027 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/transitionRouteGroups")
32028 urls += "?" + c.urlParams_.Encode()
32029 req, err := http.NewRequest("GET", urls, body)
32030 if err != nil {
32031 return nil, err
32032 }
32033 req.Header = reqHeaders
32034 googleapi.Expand(req.URL, map[string]string{
32035 "parent": c.parent,
32036 })
32037 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32038 }
32039
32040
32041
32042
32043
32044
32045
32046 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse, error) {
32047 gensupport.SetOptions(c.urlParams_, opts...)
32048 res, err := c.doRequest("json")
32049 if res != nil && res.StatusCode == http.StatusNotModified {
32050 if res.Body != nil {
32051 res.Body.Close()
32052 }
32053 return nil, gensupport.WrapError(&googleapi.Error{
32054 Code: res.StatusCode,
32055 Header: res.Header,
32056 })
32057 }
32058 if err != nil {
32059 return nil, err
32060 }
32061 defer googleapi.CloseBody(res)
32062 if err := googleapi.CheckResponse(res); err != nil {
32063 return nil, gensupport.WrapError(err)
32064 }
32065 ret := &GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse{
32066 ServerResponse: googleapi.ServerResponse{
32067 Header: res.Header,
32068 HTTPStatusCode: res.StatusCode,
32069 },
32070 }
32071 target := &ret
32072 if err := gensupport.DecodeResponse(target, res); err != nil {
32073 return nil, err
32074 }
32075 return ret, nil
32076 }
32077
32078
32079
32080
32081 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListTransitionRouteGroupsResponse) error) error {
32082 c.ctx_ = ctx
32083 defer c.PageToken(c.urlParams_.Get("pageToken"))
32084 for {
32085 x, err := c.Do()
32086 if err != nil {
32087 return err
32088 }
32089 if err := f(x); err != nil {
32090 return err
32091 }
32092 if x.NextPageToken == "" {
32093 return nil
32094 }
32095 c.PageToken(x.NextPageToken)
32096 }
32097 }
32098
32099 type ProjectsLocationsAgentsTransitionRouteGroupsPatchCall struct {
32100 s *Service
32101 nameid string
32102 googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup
32103 urlParams_ gensupport.URLParams
32104 ctx_ context.Context
32105 header_ http.Header
32106 }
32107
32108
32109
32110
32111
32112
32113
32114
32115
32116 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3transitionroutegroup *GoogleCloudDialogflowCxV3TransitionRouteGroup) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32117 c := &ProjectsLocationsAgentsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32118 c.nameid = nameid
32119 c.googleclouddialogflowcxv3transitionroutegroup = googleclouddialogflowcxv3transitionroutegroup
32120 return c
32121 }
32122
32123
32124
32125
32126
32127
32128
32129
32130
32131 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32132 c.urlParams_.Set("languageCode", languageCode)
32133 return c
32134 }
32135
32136
32137
32138 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32139 c.urlParams_.Set("updateMask", updateMask)
32140 return c
32141 }
32142
32143
32144
32145
32146 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32147 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32148 return c
32149 }
32150
32151
32152 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32153 c.ctx_ = ctx
32154 return c
32155 }
32156
32157
32158
32159 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Header() http.Header {
32160 if c.header_ == nil {
32161 c.header_ = make(http.Header)
32162 }
32163 return c.header_
32164 }
32165
32166 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
32167 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32168 var body io.Reader = nil
32169 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3transitionroutegroup)
32170 if err != nil {
32171 return nil, err
32172 }
32173 c.urlParams_.Set("alt", alt)
32174 c.urlParams_.Set("prettyPrint", "false")
32175 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
32176 urls += "?" + c.urlParams_.Encode()
32177 req, err := http.NewRequest("PATCH", urls, body)
32178 if err != nil {
32179 return nil, err
32180 }
32181 req.Header = reqHeaders
32182 googleapi.Expand(req.URL, map[string]string{
32183 "name": c.nameid,
32184 })
32185 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32186 }
32187
32188
32189
32190
32191
32192
32193
32194 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3TransitionRouteGroup, error) {
32195 gensupport.SetOptions(c.urlParams_, opts...)
32196 res, err := c.doRequest("json")
32197 if res != nil && res.StatusCode == http.StatusNotModified {
32198 if res.Body != nil {
32199 res.Body.Close()
32200 }
32201 return nil, gensupport.WrapError(&googleapi.Error{
32202 Code: res.StatusCode,
32203 Header: res.Header,
32204 })
32205 }
32206 if err != nil {
32207 return nil, err
32208 }
32209 defer googleapi.CloseBody(res)
32210 if err := googleapi.CheckResponse(res); err != nil {
32211 return nil, gensupport.WrapError(err)
32212 }
32213 ret := &GoogleCloudDialogflowCxV3TransitionRouteGroup{
32214 ServerResponse: googleapi.ServerResponse{
32215 Header: res.Header,
32216 HTTPStatusCode: res.StatusCode,
32217 },
32218 }
32219 target := &ret
32220 if err := gensupport.DecodeResponse(target, res); err != nil {
32221 return nil, err
32222 }
32223 return ret, nil
32224 }
32225
32226 type ProjectsLocationsAgentsWebhooksCreateCall struct {
32227 s *Service
32228 parent string
32229 googleclouddialogflowcxv3webhook *GoogleCloudDialogflowCxV3Webhook
32230 urlParams_ gensupport.URLParams
32231 ctx_ context.Context
32232 header_ http.Header
32233 }
32234
32235
32236
32237
32238
32239 func (r *ProjectsLocationsAgentsWebhooksService) Create(parent string, googleclouddialogflowcxv3webhook *GoogleCloudDialogflowCxV3Webhook) *ProjectsLocationsAgentsWebhooksCreateCall {
32240 c := &ProjectsLocationsAgentsWebhooksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32241 c.parent = parent
32242 c.googleclouddialogflowcxv3webhook = googleclouddialogflowcxv3webhook
32243 return c
32244 }
32245
32246
32247
32248
32249 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksCreateCall {
32250 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32251 return c
32252 }
32253
32254
32255 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksCreateCall {
32256 c.ctx_ = ctx
32257 return c
32258 }
32259
32260
32261
32262 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Header() http.Header {
32263 if c.header_ == nil {
32264 c.header_ = make(http.Header)
32265 }
32266 return c.header_
32267 }
32268
32269 func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http.Response, error) {
32270 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32271 var body io.Reader = nil
32272 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3webhook)
32273 if err != nil {
32274 return nil, err
32275 }
32276 c.urlParams_.Set("alt", alt)
32277 c.urlParams_.Set("prettyPrint", "false")
32278 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/webhooks")
32279 urls += "?" + c.urlParams_.Encode()
32280 req, err := http.NewRequest("POST", urls, body)
32281 if err != nil {
32282 return nil, err
32283 }
32284 req.Header = reqHeaders
32285 googleapi.Expand(req.URL, map[string]string{
32286 "parent": c.parent,
32287 })
32288 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32289 }
32290
32291
32292
32293
32294
32295
32296
32297 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Webhook, error) {
32298 gensupport.SetOptions(c.urlParams_, opts...)
32299 res, err := c.doRequest("json")
32300 if res != nil && res.StatusCode == http.StatusNotModified {
32301 if res.Body != nil {
32302 res.Body.Close()
32303 }
32304 return nil, gensupport.WrapError(&googleapi.Error{
32305 Code: res.StatusCode,
32306 Header: res.Header,
32307 })
32308 }
32309 if err != nil {
32310 return nil, err
32311 }
32312 defer googleapi.CloseBody(res)
32313 if err := googleapi.CheckResponse(res); err != nil {
32314 return nil, gensupport.WrapError(err)
32315 }
32316 ret := &GoogleCloudDialogflowCxV3Webhook{
32317 ServerResponse: googleapi.ServerResponse{
32318 Header: res.Header,
32319 HTTPStatusCode: res.StatusCode,
32320 },
32321 }
32322 target := &ret
32323 if err := gensupport.DecodeResponse(target, res); err != nil {
32324 return nil, err
32325 }
32326 return ret, nil
32327 }
32328
32329 type ProjectsLocationsAgentsWebhooksDeleteCall struct {
32330 s *Service
32331 name string
32332 urlParams_ gensupport.URLParams
32333 ctx_ context.Context
32334 header_ http.Header
32335 }
32336
32337
32338
32339
32340
32341 func (r *ProjectsLocationsAgentsWebhooksService) Delete(name string) *ProjectsLocationsAgentsWebhooksDeleteCall {
32342 c := &ProjectsLocationsAgentsWebhooksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32343 c.name = name
32344 return c
32345 }
32346
32347
32348
32349
32350
32351
32352
32353
32354 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Force(force bool) *ProjectsLocationsAgentsWebhooksDeleteCall {
32355 c.urlParams_.Set("force", fmt.Sprint(force))
32356 return c
32357 }
32358
32359
32360
32361
32362 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksDeleteCall {
32363 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32364 return c
32365 }
32366
32367
32368 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksDeleteCall {
32369 c.ctx_ = ctx
32370 return c
32371 }
32372
32373
32374
32375 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Header() http.Header {
32376 if c.header_ == nil {
32377 c.header_ = make(http.Header)
32378 }
32379 return c.header_
32380 }
32381
32382 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http.Response, error) {
32383 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32384 var body io.Reader = nil
32385 c.urlParams_.Set("alt", alt)
32386 c.urlParams_.Set("prettyPrint", "false")
32387 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
32388 urls += "?" + c.urlParams_.Encode()
32389 req, err := http.NewRequest("DELETE", urls, body)
32390 if err != nil {
32391 return nil, err
32392 }
32393 req.Header = reqHeaders
32394 googleapi.Expand(req.URL, map[string]string{
32395 "name": c.name,
32396 })
32397 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32398 }
32399
32400
32401
32402
32403
32404
32405
32406 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
32407 gensupport.SetOptions(c.urlParams_, opts...)
32408 res, err := c.doRequest("json")
32409 if res != nil && res.StatusCode == http.StatusNotModified {
32410 if res.Body != nil {
32411 res.Body.Close()
32412 }
32413 return nil, gensupport.WrapError(&googleapi.Error{
32414 Code: res.StatusCode,
32415 Header: res.Header,
32416 })
32417 }
32418 if err != nil {
32419 return nil, err
32420 }
32421 defer googleapi.CloseBody(res)
32422 if err := googleapi.CheckResponse(res); err != nil {
32423 return nil, gensupport.WrapError(err)
32424 }
32425 ret := &GoogleProtobufEmpty{
32426 ServerResponse: googleapi.ServerResponse{
32427 Header: res.Header,
32428 HTTPStatusCode: res.StatusCode,
32429 },
32430 }
32431 target := &ret
32432 if err := gensupport.DecodeResponse(target, res); err != nil {
32433 return nil, err
32434 }
32435 return ret, nil
32436 }
32437
32438 type ProjectsLocationsAgentsWebhooksGetCall struct {
32439 s *Service
32440 name string
32441 urlParams_ gensupport.URLParams
32442 ifNoneMatch_ string
32443 ctx_ context.Context
32444 header_ http.Header
32445 }
32446
32447
32448
32449
32450
32451 func (r *ProjectsLocationsAgentsWebhooksService) Get(name string) *ProjectsLocationsAgentsWebhooksGetCall {
32452 c := &ProjectsLocationsAgentsWebhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32453 c.name = name
32454 return c
32455 }
32456
32457
32458
32459
32460 func (c *ProjectsLocationsAgentsWebhooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksGetCall {
32461 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32462 return c
32463 }
32464
32465
32466
32467
32468 func (c *ProjectsLocationsAgentsWebhooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksGetCall {
32469 c.ifNoneMatch_ = entityTag
32470 return c
32471 }
32472
32473
32474 func (c *ProjectsLocationsAgentsWebhooksGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksGetCall {
32475 c.ctx_ = ctx
32476 return c
32477 }
32478
32479
32480
32481 func (c *ProjectsLocationsAgentsWebhooksGetCall) Header() http.Header {
32482 if c.header_ == nil {
32483 c.header_ = make(http.Header)
32484 }
32485 return c.header_
32486 }
32487
32488 func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Response, error) {
32489 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32490 if c.ifNoneMatch_ != "" {
32491 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32492 }
32493 var body io.Reader = nil
32494 c.urlParams_.Set("alt", alt)
32495 c.urlParams_.Set("prettyPrint", "false")
32496 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
32497 urls += "?" + c.urlParams_.Encode()
32498 req, err := http.NewRequest("GET", urls, body)
32499 if err != nil {
32500 return nil, err
32501 }
32502 req.Header = reqHeaders
32503 googleapi.Expand(req.URL, map[string]string{
32504 "name": c.name,
32505 })
32506 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32507 }
32508
32509
32510
32511
32512
32513
32514
32515 func (c *ProjectsLocationsAgentsWebhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Webhook, error) {
32516 gensupport.SetOptions(c.urlParams_, opts...)
32517 res, err := c.doRequest("json")
32518 if res != nil && res.StatusCode == http.StatusNotModified {
32519 if res.Body != nil {
32520 res.Body.Close()
32521 }
32522 return nil, gensupport.WrapError(&googleapi.Error{
32523 Code: res.StatusCode,
32524 Header: res.Header,
32525 })
32526 }
32527 if err != nil {
32528 return nil, err
32529 }
32530 defer googleapi.CloseBody(res)
32531 if err := googleapi.CheckResponse(res); err != nil {
32532 return nil, gensupport.WrapError(err)
32533 }
32534 ret := &GoogleCloudDialogflowCxV3Webhook{
32535 ServerResponse: googleapi.ServerResponse{
32536 Header: res.Header,
32537 HTTPStatusCode: res.StatusCode,
32538 },
32539 }
32540 target := &ret
32541 if err := gensupport.DecodeResponse(target, res); err != nil {
32542 return nil, err
32543 }
32544 return ret, nil
32545 }
32546
32547 type ProjectsLocationsAgentsWebhooksListCall struct {
32548 s *Service
32549 parent string
32550 urlParams_ gensupport.URLParams
32551 ifNoneMatch_ string
32552 ctx_ context.Context
32553 header_ http.Header
32554 }
32555
32556
32557
32558
32559
32560 func (r *ProjectsLocationsAgentsWebhooksService) List(parent string) *ProjectsLocationsAgentsWebhooksListCall {
32561 c := &ProjectsLocationsAgentsWebhooksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32562 c.parent = parent
32563 return c
32564 }
32565
32566
32567
32568 func (c *ProjectsLocationsAgentsWebhooksListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsWebhooksListCall {
32569 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32570 return c
32571 }
32572
32573
32574
32575 func (c *ProjectsLocationsAgentsWebhooksListCall) PageToken(pageToken string) *ProjectsLocationsAgentsWebhooksListCall {
32576 c.urlParams_.Set("pageToken", pageToken)
32577 return c
32578 }
32579
32580
32581
32582
32583 func (c *ProjectsLocationsAgentsWebhooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksListCall {
32584 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32585 return c
32586 }
32587
32588
32589
32590
32591 func (c *ProjectsLocationsAgentsWebhooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksListCall {
32592 c.ifNoneMatch_ = entityTag
32593 return c
32594 }
32595
32596
32597 func (c *ProjectsLocationsAgentsWebhooksListCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksListCall {
32598 c.ctx_ = ctx
32599 return c
32600 }
32601
32602
32603
32604 func (c *ProjectsLocationsAgentsWebhooksListCall) Header() http.Header {
32605 if c.header_ == nil {
32606 c.header_ = make(http.Header)
32607 }
32608 return c.header_
32609 }
32610
32611 func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.Response, error) {
32612 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32613 if c.ifNoneMatch_ != "" {
32614 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32615 }
32616 var body io.Reader = nil
32617 c.urlParams_.Set("alt", alt)
32618 c.urlParams_.Set("prettyPrint", "false")
32619 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/webhooks")
32620 urls += "?" + c.urlParams_.Encode()
32621 req, err := http.NewRequest("GET", urls, body)
32622 if err != nil {
32623 return nil, err
32624 }
32625 req.Header = reqHeaders
32626 googleapi.Expand(req.URL, map[string]string{
32627 "parent": c.parent,
32628 })
32629 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32630 }
32631
32632
32633
32634
32635
32636
32637
32638 func (c *ProjectsLocationsAgentsWebhooksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListWebhooksResponse, error) {
32639 gensupport.SetOptions(c.urlParams_, opts...)
32640 res, err := c.doRequest("json")
32641 if res != nil && res.StatusCode == http.StatusNotModified {
32642 if res.Body != nil {
32643 res.Body.Close()
32644 }
32645 return nil, gensupport.WrapError(&googleapi.Error{
32646 Code: res.StatusCode,
32647 Header: res.Header,
32648 })
32649 }
32650 if err != nil {
32651 return nil, err
32652 }
32653 defer googleapi.CloseBody(res)
32654 if err := googleapi.CheckResponse(res); err != nil {
32655 return nil, gensupport.WrapError(err)
32656 }
32657 ret := &GoogleCloudDialogflowCxV3ListWebhooksResponse{
32658 ServerResponse: googleapi.ServerResponse{
32659 Header: res.Header,
32660 HTTPStatusCode: res.StatusCode,
32661 },
32662 }
32663 target := &ret
32664 if err := gensupport.DecodeResponse(target, res); err != nil {
32665 return nil, err
32666 }
32667 return ret, nil
32668 }
32669
32670
32671
32672
32673 func (c *ProjectsLocationsAgentsWebhooksListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListWebhooksResponse) error) error {
32674 c.ctx_ = ctx
32675 defer c.PageToken(c.urlParams_.Get("pageToken"))
32676 for {
32677 x, err := c.Do()
32678 if err != nil {
32679 return err
32680 }
32681 if err := f(x); err != nil {
32682 return err
32683 }
32684 if x.NextPageToken == "" {
32685 return nil
32686 }
32687 c.PageToken(x.NextPageToken)
32688 }
32689 }
32690
32691 type ProjectsLocationsAgentsWebhooksPatchCall struct {
32692 s *Service
32693 nameid string
32694 googleclouddialogflowcxv3webhook *GoogleCloudDialogflowCxV3Webhook
32695 urlParams_ gensupport.URLParams
32696 ctx_ context.Context
32697 header_ http.Header
32698 }
32699
32700
32701
32702
32703
32704
32705 func (r *ProjectsLocationsAgentsWebhooksService) Patch(nameid string, googleclouddialogflowcxv3webhook *GoogleCloudDialogflowCxV3Webhook) *ProjectsLocationsAgentsWebhooksPatchCall {
32706 c := &ProjectsLocationsAgentsWebhooksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32707 c.nameid = nameid
32708 c.googleclouddialogflowcxv3webhook = googleclouddialogflowcxv3webhook
32709 return c
32710 }
32711
32712
32713
32714
32715 func (c *ProjectsLocationsAgentsWebhooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsWebhooksPatchCall {
32716 c.urlParams_.Set("updateMask", updateMask)
32717 return c
32718 }
32719
32720
32721
32722
32723 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksPatchCall {
32724 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32725 return c
32726 }
32727
32728
32729 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksPatchCall {
32730 c.ctx_ = ctx
32731 return c
32732 }
32733
32734
32735
32736 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Header() http.Header {
32737 if c.header_ == nil {
32738 c.header_ = make(http.Header)
32739 }
32740 return c.header_
32741 }
32742
32743 func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http.Response, error) {
32744 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32745 var body io.Reader = nil
32746 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3webhook)
32747 if err != nil {
32748 return nil, err
32749 }
32750 c.urlParams_.Set("alt", alt)
32751 c.urlParams_.Set("prettyPrint", "false")
32752 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
32753 urls += "?" + c.urlParams_.Encode()
32754 req, err := http.NewRequest("PATCH", urls, body)
32755 if err != nil {
32756 return nil, err
32757 }
32758 req.Header = reqHeaders
32759 googleapi.Expand(req.URL, map[string]string{
32760 "name": c.nameid,
32761 })
32762 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32763 }
32764
32765
32766
32767
32768
32769
32770
32771 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3Webhook, error) {
32772 gensupport.SetOptions(c.urlParams_, opts...)
32773 res, err := c.doRequest("json")
32774 if res != nil && res.StatusCode == http.StatusNotModified {
32775 if res.Body != nil {
32776 res.Body.Close()
32777 }
32778 return nil, gensupport.WrapError(&googleapi.Error{
32779 Code: res.StatusCode,
32780 Header: res.Header,
32781 })
32782 }
32783 if err != nil {
32784 return nil, err
32785 }
32786 defer googleapi.CloseBody(res)
32787 if err := googleapi.CheckResponse(res); err != nil {
32788 return nil, gensupport.WrapError(err)
32789 }
32790 ret := &GoogleCloudDialogflowCxV3Webhook{
32791 ServerResponse: googleapi.ServerResponse{
32792 Header: res.Header,
32793 HTTPStatusCode: res.StatusCode,
32794 },
32795 }
32796 target := &ret
32797 if err := gensupport.DecodeResponse(target, res); err != nil {
32798 return nil, err
32799 }
32800 return ret, nil
32801 }
32802
32803 type ProjectsLocationsOperationsCancelCall struct {
32804 s *Service
32805 name string
32806 urlParams_ gensupport.URLParams
32807 ctx_ context.Context
32808 header_ http.Header
32809 }
32810
32811
32812
32813
32814
32815
32816
32817
32818
32819
32820
32821
32822 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
32823 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32824 c.name = name
32825 return c
32826 }
32827
32828
32829
32830
32831 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
32832 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32833 return c
32834 }
32835
32836
32837 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
32838 c.ctx_ = ctx
32839 return c
32840 }
32841
32842
32843
32844 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
32845 if c.header_ == nil {
32846 c.header_ = make(http.Header)
32847 }
32848 return c.header_
32849 }
32850
32851 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
32852 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32853 var body io.Reader = nil
32854 c.urlParams_.Set("alt", alt)
32855 c.urlParams_.Set("prettyPrint", "false")
32856 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:cancel")
32857 urls += "?" + c.urlParams_.Encode()
32858 req, err := http.NewRequest("POST", urls, body)
32859 if err != nil {
32860 return nil, err
32861 }
32862 req.Header = reqHeaders
32863 googleapi.Expand(req.URL, map[string]string{
32864 "name": c.name,
32865 })
32866 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32867 }
32868
32869
32870
32871
32872
32873
32874
32875 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
32876 gensupport.SetOptions(c.urlParams_, opts...)
32877 res, err := c.doRequest("json")
32878 if res != nil && res.StatusCode == http.StatusNotModified {
32879 if res.Body != nil {
32880 res.Body.Close()
32881 }
32882 return nil, gensupport.WrapError(&googleapi.Error{
32883 Code: res.StatusCode,
32884 Header: res.Header,
32885 })
32886 }
32887 if err != nil {
32888 return nil, err
32889 }
32890 defer googleapi.CloseBody(res)
32891 if err := googleapi.CheckResponse(res); err != nil {
32892 return nil, gensupport.WrapError(err)
32893 }
32894 ret := &GoogleProtobufEmpty{
32895 ServerResponse: googleapi.ServerResponse{
32896 Header: res.Header,
32897 HTTPStatusCode: res.StatusCode,
32898 },
32899 }
32900 target := &ret
32901 if err := gensupport.DecodeResponse(target, res); err != nil {
32902 return nil, err
32903 }
32904 return ret, nil
32905 }
32906
32907 type ProjectsLocationsOperationsGetCall struct {
32908 s *Service
32909 name string
32910 urlParams_ gensupport.URLParams
32911 ifNoneMatch_ string
32912 ctx_ context.Context
32913 header_ http.Header
32914 }
32915
32916
32917
32918
32919
32920
32921 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
32922 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32923 c.name = name
32924 return c
32925 }
32926
32927
32928
32929
32930 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
32931 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32932 return c
32933 }
32934
32935
32936
32937
32938 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
32939 c.ifNoneMatch_ = entityTag
32940 return c
32941 }
32942
32943
32944 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
32945 c.ctx_ = ctx
32946 return c
32947 }
32948
32949
32950
32951 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
32952 if c.header_ == nil {
32953 c.header_ = make(http.Header)
32954 }
32955 return c.header_
32956 }
32957
32958 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
32959 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32960 if c.ifNoneMatch_ != "" {
32961 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32962 }
32963 var body io.Reader = nil
32964 c.urlParams_.Set("alt", alt)
32965 c.urlParams_.Set("prettyPrint", "false")
32966 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
32967 urls += "?" + c.urlParams_.Encode()
32968 req, err := http.NewRequest("GET", urls, body)
32969 if err != nil {
32970 return nil, err
32971 }
32972 req.Header = reqHeaders
32973 googleapi.Expand(req.URL, map[string]string{
32974 "name": c.name,
32975 })
32976 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32977 }
32978
32979
32980
32981
32982
32983
32984
32985 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32986 gensupport.SetOptions(c.urlParams_, opts...)
32987 res, err := c.doRequest("json")
32988 if res != nil && res.StatusCode == http.StatusNotModified {
32989 if res.Body != nil {
32990 res.Body.Close()
32991 }
32992 return nil, gensupport.WrapError(&googleapi.Error{
32993 Code: res.StatusCode,
32994 Header: res.Header,
32995 })
32996 }
32997 if err != nil {
32998 return nil, err
32999 }
33000 defer googleapi.CloseBody(res)
33001 if err := googleapi.CheckResponse(res); err != nil {
33002 return nil, gensupport.WrapError(err)
33003 }
33004 ret := &GoogleLongrunningOperation{
33005 ServerResponse: googleapi.ServerResponse{
33006 Header: res.Header,
33007 HTTPStatusCode: res.StatusCode,
33008 },
33009 }
33010 target := &ret
33011 if err := gensupport.DecodeResponse(target, res); err != nil {
33012 return nil, err
33013 }
33014 return ret, nil
33015 }
33016
33017 type ProjectsLocationsOperationsListCall struct {
33018 s *Service
33019 name string
33020 urlParams_ gensupport.URLParams
33021 ifNoneMatch_ string
33022 ctx_ context.Context
33023 header_ http.Header
33024 }
33025
33026
33027
33028
33029
33030 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
33031 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33032 c.name = name
33033 return c
33034 }
33035
33036
33037 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
33038 c.urlParams_.Set("filter", filter)
33039 return c
33040 }
33041
33042
33043
33044 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
33045 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33046 return c
33047 }
33048
33049
33050
33051 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
33052 c.urlParams_.Set("pageToken", pageToken)
33053 return c
33054 }
33055
33056
33057
33058
33059 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
33060 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33061 return c
33062 }
33063
33064
33065
33066
33067 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
33068 c.ifNoneMatch_ = entityTag
33069 return c
33070 }
33071
33072
33073 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
33074 c.ctx_ = ctx
33075 return c
33076 }
33077
33078
33079
33080 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
33081 if c.header_ == nil {
33082 c.header_ = make(http.Header)
33083 }
33084 return c.header_
33085 }
33086
33087 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
33088 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33089 if c.ifNoneMatch_ != "" {
33090 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33091 }
33092 var body io.Reader = nil
33093 c.urlParams_.Set("alt", alt)
33094 c.urlParams_.Set("prettyPrint", "false")
33095 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}/operations")
33096 urls += "?" + c.urlParams_.Encode()
33097 req, err := http.NewRequest("GET", urls, body)
33098 if err != nil {
33099 return nil, err
33100 }
33101 req.Header = reqHeaders
33102 googleapi.Expand(req.URL, map[string]string{
33103 "name": c.name,
33104 })
33105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33106 }
33107
33108
33109
33110
33111
33112
33113
33114 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
33115 gensupport.SetOptions(c.urlParams_, opts...)
33116 res, err := c.doRequest("json")
33117 if res != nil && res.StatusCode == http.StatusNotModified {
33118 if res.Body != nil {
33119 res.Body.Close()
33120 }
33121 return nil, gensupport.WrapError(&googleapi.Error{
33122 Code: res.StatusCode,
33123 Header: res.Header,
33124 })
33125 }
33126 if err != nil {
33127 return nil, err
33128 }
33129 defer googleapi.CloseBody(res)
33130 if err := googleapi.CheckResponse(res); err != nil {
33131 return nil, gensupport.WrapError(err)
33132 }
33133 ret := &GoogleLongrunningListOperationsResponse{
33134 ServerResponse: googleapi.ServerResponse{
33135 Header: res.Header,
33136 HTTPStatusCode: res.StatusCode,
33137 },
33138 }
33139 target := &ret
33140 if err := gensupport.DecodeResponse(target, res); err != nil {
33141 return nil, err
33142 }
33143 return ret, nil
33144 }
33145
33146
33147
33148
33149 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
33150 c.ctx_ = ctx
33151 defer c.PageToken(c.urlParams_.Get("pageToken"))
33152 for {
33153 x, err := c.Do()
33154 if err != nil {
33155 return err
33156 }
33157 if err := f(x); err != nil {
33158 return err
33159 }
33160 if x.NextPageToken == "" {
33161 return nil
33162 }
33163 c.PageToken(x.NextPageToken)
33164 }
33165 }
33166
33167 type ProjectsLocationsSecuritySettingsCreateCall struct {
33168 s *Service
33169 parent string
33170 googleclouddialogflowcxv3securitysettings *GoogleCloudDialogflowCxV3SecuritySettings
33171 urlParams_ gensupport.URLParams
33172 ctx_ context.Context
33173 header_ http.Header
33174 }
33175
33176
33177
33178
33179
33180 func (r *ProjectsLocationsSecuritySettingsService) Create(parent string, googleclouddialogflowcxv3securitysettings *GoogleCloudDialogflowCxV3SecuritySettings) *ProjectsLocationsSecuritySettingsCreateCall {
33181 c := &ProjectsLocationsSecuritySettingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33182 c.parent = parent
33183 c.googleclouddialogflowcxv3securitysettings = googleclouddialogflowcxv3securitysettings
33184 return c
33185 }
33186
33187
33188
33189
33190 func (c *ProjectsLocationsSecuritySettingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsCreateCall {
33191 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33192 return c
33193 }
33194
33195
33196 func (c *ProjectsLocationsSecuritySettingsCreateCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsCreateCall {
33197 c.ctx_ = ctx
33198 return c
33199 }
33200
33201
33202
33203 func (c *ProjectsLocationsSecuritySettingsCreateCall) Header() http.Header {
33204 if c.header_ == nil {
33205 c.header_ = make(http.Header)
33206 }
33207 return c.header_
33208 }
33209
33210 func (c *ProjectsLocationsSecuritySettingsCreateCall) doRequest(alt string) (*http.Response, error) {
33211 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33212 var body io.Reader = nil
33213 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3securitysettings)
33214 if err != nil {
33215 return nil, err
33216 }
33217 c.urlParams_.Set("alt", alt)
33218 c.urlParams_.Set("prettyPrint", "false")
33219 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/securitySettings")
33220 urls += "?" + c.urlParams_.Encode()
33221 req, err := http.NewRequest("POST", urls, body)
33222 if err != nil {
33223 return nil, err
33224 }
33225 req.Header = reqHeaders
33226 googleapi.Expand(req.URL, map[string]string{
33227 "parent": c.parent,
33228 })
33229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33230 }
33231
33232
33233
33234
33235
33236
33237
33238 func (c *ProjectsLocationsSecuritySettingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SecuritySettings, error) {
33239 gensupport.SetOptions(c.urlParams_, opts...)
33240 res, err := c.doRequest("json")
33241 if res != nil && res.StatusCode == http.StatusNotModified {
33242 if res.Body != nil {
33243 res.Body.Close()
33244 }
33245 return nil, gensupport.WrapError(&googleapi.Error{
33246 Code: res.StatusCode,
33247 Header: res.Header,
33248 })
33249 }
33250 if err != nil {
33251 return nil, err
33252 }
33253 defer googleapi.CloseBody(res)
33254 if err := googleapi.CheckResponse(res); err != nil {
33255 return nil, gensupport.WrapError(err)
33256 }
33257 ret := &GoogleCloudDialogflowCxV3SecuritySettings{
33258 ServerResponse: googleapi.ServerResponse{
33259 Header: res.Header,
33260 HTTPStatusCode: res.StatusCode,
33261 },
33262 }
33263 target := &ret
33264 if err := gensupport.DecodeResponse(target, res); err != nil {
33265 return nil, err
33266 }
33267 return ret, nil
33268 }
33269
33270 type ProjectsLocationsSecuritySettingsDeleteCall struct {
33271 s *Service
33272 name string
33273 urlParams_ gensupport.URLParams
33274 ctx_ context.Context
33275 header_ http.Header
33276 }
33277
33278
33279
33280
33281
33282 func (r *ProjectsLocationsSecuritySettingsService) Delete(name string) *ProjectsLocationsSecuritySettingsDeleteCall {
33283 c := &ProjectsLocationsSecuritySettingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33284 c.name = name
33285 return c
33286 }
33287
33288
33289
33290
33291 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsDeleteCall {
33292 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33293 return c
33294 }
33295
33296
33297 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsDeleteCall {
33298 c.ctx_ = ctx
33299 return c
33300 }
33301
33302
33303
33304 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Header() http.Header {
33305 if c.header_ == nil {
33306 c.header_ = make(http.Header)
33307 }
33308 return c.header_
33309 }
33310
33311 func (c *ProjectsLocationsSecuritySettingsDeleteCall) doRequest(alt string) (*http.Response, error) {
33312 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33313 var body io.Reader = nil
33314 c.urlParams_.Set("alt", alt)
33315 c.urlParams_.Set("prettyPrint", "false")
33316 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
33317 urls += "?" + c.urlParams_.Encode()
33318 req, err := http.NewRequest("DELETE", urls, body)
33319 if err != nil {
33320 return nil, err
33321 }
33322 req.Header = reqHeaders
33323 googleapi.Expand(req.URL, map[string]string{
33324 "name": c.name,
33325 })
33326 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33327 }
33328
33329
33330
33331
33332
33333
33334
33335 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
33336 gensupport.SetOptions(c.urlParams_, opts...)
33337 res, err := c.doRequest("json")
33338 if res != nil && res.StatusCode == http.StatusNotModified {
33339 if res.Body != nil {
33340 res.Body.Close()
33341 }
33342 return nil, gensupport.WrapError(&googleapi.Error{
33343 Code: res.StatusCode,
33344 Header: res.Header,
33345 })
33346 }
33347 if err != nil {
33348 return nil, err
33349 }
33350 defer googleapi.CloseBody(res)
33351 if err := googleapi.CheckResponse(res); err != nil {
33352 return nil, gensupport.WrapError(err)
33353 }
33354 ret := &GoogleProtobufEmpty{
33355 ServerResponse: googleapi.ServerResponse{
33356 Header: res.Header,
33357 HTTPStatusCode: res.StatusCode,
33358 },
33359 }
33360 target := &ret
33361 if err := gensupport.DecodeResponse(target, res); err != nil {
33362 return nil, err
33363 }
33364 return ret, nil
33365 }
33366
33367 type ProjectsLocationsSecuritySettingsGetCall struct {
33368 s *Service
33369 name string
33370 urlParams_ gensupport.URLParams
33371 ifNoneMatch_ string
33372 ctx_ context.Context
33373 header_ http.Header
33374 }
33375
33376
33377
33378
33379
33380
33381 func (r *ProjectsLocationsSecuritySettingsService) Get(name string) *ProjectsLocationsSecuritySettingsGetCall {
33382 c := &ProjectsLocationsSecuritySettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33383 c.name = name
33384 return c
33385 }
33386
33387
33388
33389
33390 func (c *ProjectsLocationsSecuritySettingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsGetCall {
33391 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33392 return c
33393 }
33394
33395
33396
33397
33398 func (c *ProjectsLocationsSecuritySettingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsGetCall {
33399 c.ifNoneMatch_ = entityTag
33400 return c
33401 }
33402
33403
33404 func (c *ProjectsLocationsSecuritySettingsGetCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsGetCall {
33405 c.ctx_ = ctx
33406 return c
33407 }
33408
33409
33410
33411 func (c *ProjectsLocationsSecuritySettingsGetCall) Header() http.Header {
33412 if c.header_ == nil {
33413 c.header_ = make(http.Header)
33414 }
33415 return c.header_
33416 }
33417
33418 func (c *ProjectsLocationsSecuritySettingsGetCall) doRequest(alt string) (*http.Response, error) {
33419 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33420 if c.ifNoneMatch_ != "" {
33421 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33422 }
33423 var body io.Reader = nil
33424 c.urlParams_.Set("alt", alt)
33425 c.urlParams_.Set("prettyPrint", "false")
33426 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
33427 urls += "?" + c.urlParams_.Encode()
33428 req, err := http.NewRequest("GET", urls, body)
33429 if err != nil {
33430 return nil, err
33431 }
33432 req.Header = reqHeaders
33433 googleapi.Expand(req.URL, map[string]string{
33434 "name": c.name,
33435 })
33436 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33437 }
33438
33439
33440
33441
33442
33443
33444
33445 func (c *ProjectsLocationsSecuritySettingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SecuritySettings, error) {
33446 gensupport.SetOptions(c.urlParams_, opts...)
33447 res, err := c.doRequest("json")
33448 if res != nil && res.StatusCode == http.StatusNotModified {
33449 if res.Body != nil {
33450 res.Body.Close()
33451 }
33452 return nil, gensupport.WrapError(&googleapi.Error{
33453 Code: res.StatusCode,
33454 Header: res.Header,
33455 })
33456 }
33457 if err != nil {
33458 return nil, err
33459 }
33460 defer googleapi.CloseBody(res)
33461 if err := googleapi.CheckResponse(res); err != nil {
33462 return nil, gensupport.WrapError(err)
33463 }
33464 ret := &GoogleCloudDialogflowCxV3SecuritySettings{
33465 ServerResponse: googleapi.ServerResponse{
33466 Header: res.Header,
33467 HTTPStatusCode: res.StatusCode,
33468 },
33469 }
33470 target := &ret
33471 if err := gensupport.DecodeResponse(target, res); err != nil {
33472 return nil, err
33473 }
33474 return ret, nil
33475 }
33476
33477 type ProjectsLocationsSecuritySettingsListCall struct {
33478 s *Service
33479 parent string
33480 urlParams_ gensupport.URLParams
33481 ifNoneMatch_ string
33482 ctx_ context.Context
33483 header_ http.Header
33484 }
33485
33486
33487
33488
33489
33490 func (r *ProjectsLocationsSecuritySettingsService) List(parent string) *ProjectsLocationsSecuritySettingsListCall {
33491 c := &ProjectsLocationsSecuritySettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33492 c.parent = parent
33493 return c
33494 }
33495
33496
33497
33498 func (c *ProjectsLocationsSecuritySettingsListCall) PageSize(pageSize int64) *ProjectsLocationsSecuritySettingsListCall {
33499 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33500 return c
33501 }
33502
33503
33504
33505 func (c *ProjectsLocationsSecuritySettingsListCall) PageToken(pageToken string) *ProjectsLocationsSecuritySettingsListCall {
33506 c.urlParams_.Set("pageToken", pageToken)
33507 return c
33508 }
33509
33510
33511
33512
33513 func (c *ProjectsLocationsSecuritySettingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsListCall {
33514 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33515 return c
33516 }
33517
33518
33519
33520
33521 func (c *ProjectsLocationsSecuritySettingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsListCall {
33522 c.ifNoneMatch_ = entityTag
33523 return c
33524 }
33525
33526
33527 func (c *ProjectsLocationsSecuritySettingsListCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsListCall {
33528 c.ctx_ = ctx
33529 return c
33530 }
33531
33532
33533
33534 func (c *ProjectsLocationsSecuritySettingsListCall) Header() http.Header {
33535 if c.header_ == nil {
33536 c.header_ = make(http.Header)
33537 }
33538 return c.header_
33539 }
33540
33541 func (c *ProjectsLocationsSecuritySettingsListCall) doRequest(alt string) (*http.Response, error) {
33542 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33543 if c.ifNoneMatch_ != "" {
33544 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33545 }
33546 var body io.Reader = nil
33547 c.urlParams_.Set("alt", alt)
33548 c.urlParams_.Set("prettyPrint", "false")
33549 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+parent}/securitySettings")
33550 urls += "?" + c.urlParams_.Encode()
33551 req, err := http.NewRequest("GET", urls, body)
33552 if err != nil {
33553 return nil, err
33554 }
33555 req.Header = reqHeaders
33556 googleapi.Expand(req.URL, map[string]string{
33557 "parent": c.parent,
33558 })
33559 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33560 }
33561
33562
33563
33564
33565
33566
33567
33568 func (c *ProjectsLocationsSecuritySettingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3ListSecuritySettingsResponse, error) {
33569 gensupport.SetOptions(c.urlParams_, opts...)
33570 res, err := c.doRequest("json")
33571 if res != nil && res.StatusCode == http.StatusNotModified {
33572 if res.Body != nil {
33573 res.Body.Close()
33574 }
33575 return nil, gensupport.WrapError(&googleapi.Error{
33576 Code: res.StatusCode,
33577 Header: res.Header,
33578 })
33579 }
33580 if err != nil {
33581 return nil, err
33582 }
33583 defer googleapi.CloseBody(res)
33584 if err := googleapi.CheckResponse(res); err != nil {
33585 return nil, gensupport.WrapError(err)
33586 }
33587 ret := &GoogleCloudDialogflowCxV3ListSecuritySettingsResponse{
33588 ServerResponse: googleapi.ServerResponse{
33589 Header: res.Header,
33590 HTTPStatusCode: res.StatusCode,
33591 },
33592 }
33593 target := &ret
33594 if err := gensupport.DecodeResponse(target, res); err != nil {
33595 return nil, err
33596 }
33597 return ret, nil
33598 }
33599
33600
33601
33602
33603 func (c *ProjectsLocationsSecuritySettingsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3ListSecuritySettingsResponse) error) error {
33604 c.ctx_ = ctx
33605 defer c.PageToken(c.urlParams_.Get("pageToken"))
33606 for {
33607 x, err := c.Do()
33608 if err != nil {
33609 return err
33610 }
33611 if err := f(x); err != nil {
33612 return err
33613 }
33614 if x.NextPageToken == "" {
33615 return nil
33616 }
33617 c.PageToken(x.NextPageToken)
33618 }
33619 }
33620
33621 type ProjectsLocationsSecuritySettingsPatchCall struct {
33622 s *Service
33623 name string
33624 googleclouddialogflowcxv3securitysettings *GoogleCloudDialogflowCxV3SecuritySettings
33625 urlParams_ gensupport.URLParams
33626 ctx_ context.Context
33627 header_ http.Header
33628 }
33629
33630
33631
33632
33633
33634
33635
33636 func (r *ProjectsLocationsSecuritySettingsService) Patch(name string, googleclouddialogflowcxv3securitysettings *GoogleCloudDialogflowCxV3SecuritySettings) *ProjectsLocationsSecuritySettingsPatchCall {
33637 c := &ProjectsLocationsSecuritySettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33638 c.name = name
33639 c.googleclouddialogflowcxv3securitysettings = googleclouddialogflowcxv3securitysettings
33640 return c
33641 }
33642
33643
33644
33645
33646 func (c *ProjectsLocationsSecuritySettingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSecuritySettingsPatchCall {
33647 c.urlParams_.Set("updateMask", updateMask)
33648 return c
33649 }
33650
33651
33652
33653
33654 func (c *ProjectsLocationsSecuritySettingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsPatchCall {
33655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33656 return c
33657 }
33658
33659
33660 func (c *ProjectsLocationsSecuritySettingsPatchCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsPatchCall {
33661 c.ctx_ = ctx
33662 return c
33663 }
33664
33665
33666
33667 func (c *ProjectsLocationsSecuritySettingsPatchCall) Header() http.Header {
33668 if c.header_ == nil {
33669 c.header_ = make(http.Header)
33670 }
33671 return c.header_
33672 }
33673
33674 func (c *ProjectsLocationsSecuritySettingsPatchCall) doRequest(alt string) (*http.Response, error) {
33675 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33676 var body io.Reader = nil
33677 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3securitysettings)
33678 if err != nil {
33679 return nil, err
33680 }
33681 c.urlParams_.Set("alt", alt)
33682 c.urlParams_.Set("prettyPrint", "false")
33683 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
33684 urls += "?" + c.urlParams_.Encode()
33685 req, err := http.NewRequest("PATCH", urls, body)
33686 if err != nil {
33687 return nil, err
33688 }
33689 req.Header = reqHeaders
33690 googleapi.Expand(req.URL, map[string]string{
33691 "name": c.name,
33692 })
33693 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33694 }
33695
33696
33697
33698
33699
33700
33701
33702 func (c *ProjectsLocationsSecuritySettingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3SecuritySettings, error) {
33703 gensupport.SetOptions(c.urlParams_, opts...)
33704 res, err := c.doRequest("json")
33705 if res != nil && res.StatusCode == http.StatusNotModified {
33706 if res.Body != nil {
33707 res.Body.Close()
33708 }
33709 return nil, gensupport.WrapError(&googleapi.Error{
33710 Code: res.StatusCode,
33711 Header: res.Header,
33712 })
33713 }
33714 if err != nil {
33715 return nil, err
33716 }
33717 defer googleapi.CloseBody(res)
33718 if err := googleapi.CheckResponse(res); err != nil {
33719 return nil, gensupport.WrapError(err)
33720 }
33721 ret := &GoogleCloudDialogflowCxV3SecuritySettings{
33722 ServerResponse: googleapi.ServerResponse{
33723 Header: res.Header,
33724 HTTPStatusCode: res.StatusCode,
33725 },
33726 }
33727 target := &ret
33728 if err := gensupport.DecodeResponse(target, res); err != nil {
33729 return nil, err
33730 }
33731 return ret, nil
33732 }
33733
33734 type ProjectsOperationsCancelCall struct {
33735 s *Service
33736 name string
33737 urlParams_ gensupport.URLParams
33738 ctx_ context.Context
33739 header_ http.Header
33740 }
33741
33742
33743
33744
33745
33746
33747
33748
33749
33750
33751
33752
33753 func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
33754 c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33755 c.name = name
33756 return c
33757 }
33758
33759
33760
33761
33762 func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
33763 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33764 return c
33765 }
33766
33767
33768 func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
33769 c.ctx_ = ctx
33770 return c
33771 }
33772
33773
33774
33775 func (c *ProjectsOperationsCancelCall) Header() http.Header {
33776 if c.header_ == nil {
33777 c.header_ = make(http.Header)
33778 }
33779 return c.header_
33780 }
33781
33782 func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
33783 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33784 var body io.Reader = nil
33785 c.urlParams_.Set("alt", alt)
33786 c.urlParams_.Set("prettyPrint", "false")
33787 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}:cancel")
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 "name": c.name,
33796 })
33797 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33798 }
33799
33800
33801
33802
33803
33804
33805
33806 func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, 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 := &GoogleProtobufEmpty{
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 ProjectsOperationsGetCall struct {
33839 s *Service
33840 name string
33841 urlParams_ gensupport.URLParams
33842 ifNoneMatch_ string
33843 ctx_ context.Context
33844 header_ http.Header
33845 }
33846
33847
33848
33849
33850
33851
33852 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
33853 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33854 c.name = name
33855 return c
33856 }
33857
33858
33859
33860
33861 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
33862 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33863 return c
33864 }
33865
33866
33867
33868
33869 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
33870 c.ifNoneMatch_ = entityTag
33871 return c
33872 }
33873
33874
33875 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
33876 c.ctx_ = ctx
33877 return c
33878 }
33879
33880
33881
33882 func (c *ProjectsOperationsGetCall) Header() http.Header {
33883 if c.header_ == nil {
33884 c.header_ = make(http.Header)
33885 }
33886 return c.header_
33887 }
33888
33889 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
33890 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33891 if c.ifNoneMatch_ != "" {
33892 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33893 }
33894 var body io.Reader = nil
33895 c.urlParams_.Set("alt", alt)
33896 c.urlParams_.Set("prettyPrint", "false")
33897 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}")
33898 urls += "?" + c.urlParams_.Encode()
33899 req, err := http.NewRequest("GET", urls, body)
33900 if err != nil {
33901 return nil, err
33902 }
33903 req.Header = reqHeaders
33904 googleapi.Expand(req.URL, map[string]string{
33905 "name": c.name,
33906 })
33907 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33908 }
33909
33910
33911
33912
33913
33914
33915
33916 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33917 gensupport.SetOptions(c.urlParams_, opts...)
33918 res, err := c.doRequest("json")
33919 if res != nil && res.StatusCode == http.StatusNotModified {
33920 if res.Body != nil {
33921 res.Body.Close()
33922 }
33923 return nil, gensupport.WrapError(&googleapi.Error{
33924 Code: res.StatusCode,
33925 Header: res.Header,
33926 })
33927 }
33928 if err != nil {
33929 return nil, err
33930 }
33931 defer googleapi.CloseBody(res)
33932 if err := googleapi.CheckResponse(res); err != nil {
33933 return nil, gensupport.WrapError(err)
33934 }
33935 ret := &GoogleLongrunningOperation{
33936 ServerResponse: googleapi.ServerResponse{
33937 Header: res.Header,
33938 HTTPStatusCode: res.StatusCode,
33939 },
33940 }
33941 target := &ret
33942 if err := gensupport.DecodeResponse(target, res); err != nil {
33943 return nil, err
33944 }
33945 return ret, nil
33946 }
33947
33948 type ProjectsOperationsListCall struct {
33949 s *Service
33950 name string
33951 urlParams_ gensupport.URLParams
33952 ifNoneMatch_ string
33953 ctx_ context.Context
33954 header_ http.Header
33955 }
33956
33957
33958
33959
33960
33961 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
33962 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33963 c.name = name
33964 return c
33965 }
33966
33967
33968 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
33969 c.urlParams_.Set("filter", filter)
33970 return c
33971 }
33972
33973
33974
33975 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
33976 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33977 return c
33978 }
33979
33980
33981
33982 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
33983 c.urlParams_.Set("pageToken", pageToken)
33984 return c
33985 }
33986
33987
33988
33989
33990 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
33991 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33992 return c
33993 }
33994
33995
33996
33997
33998 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
33999 c.ifNoneMatch_ = entityTag
34000 return c
34001 }
34002
34003
34004 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
34005 c.ctx_ = ctx
34006 return c
34007 }
34008
34009
34010
34011 func (c *ProjectsOperationsListCall) Header() http.Header {
34012 if c.header_ == nil {
34013 c.header_ = make(http.Header)
34014 }
34015 return c.header_
34016 }
34017
34018 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
34019 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34020 if c.ifNoneMatch_ != "" {
34021 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34022 }
34023 var body io.Reader = nil
34024 c.urlParams_.Set("alt", alt)
34025 c.urlParams_.Set("prettyPrint", "false")
34026 urls := googleapi.ResolveRelative(c.s.BasePath, "v3/{+name}/operations")
34027 urls += "?" + c.urlParams_.Encode()
34028 req, err := http.NewRequest("GET", urls, body)
34029 if err != nil {
34030 return nil, err
34031 }
34032 req.Header = reqHeaders
34033 googleapi.Expand(req.URL, map[string]string{
34034 "name": c.name,
34035 })
34036 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34037 }
34038
34039
34040
34041
34042
34043
34044
34045 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
34046 gensupport.SetOptions(c.urlParams_, opts...)
34047 res, err := c.doRequest("json")
34048 if res != nil && res.StatusCode == http.StatusNotModified {
34049 if res.Body != nil {
34050 res.Body.Close()
34051 }
34052 return nil, gensupport.WrapError(&googleapi.Error{
34053 Code: res.StatusCode,
34054 Header: res.Header,
34055 })
34056 }
34057 if err != nil {
34058 return nil, err
34059 }
34060 defer googleapi.CloseBody(res)
34061 if err := googleapi.CheckResponse(res); err != nil {
34062 return nil, gensupport.WrapError(err)
34063 }
34064 ret := &GoogleLongrunningListOperationsResponse{
34065 ServerResponse: googleapi.ServerResponse{
34066 Header: res.Header,
34067 HTTPStatusCode: res.StatusCode,
34068 },
34069 }
34070 target := &ret
34071 if err := gensupport.DecodeResponse(target, res); err != nil {
34072 return nil, err
34073 }
34074 return ret, nil
34075 }
34076
34077
34078
34079
34080 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
34081 c.ctx_ = ctx
34082 defer c.PageToken(c.urlParams_.Get("pageToken"))
34083 for {
34084 x, err := c.Do()
34085 if err != nil {
34086 return err
34087 }
34088 if err := f(x); err != nil {
34089 return err
34090 }
34091 if x.NextPageToken == "" {
34092 return nil
34093 }
34094 c.PageToken(x.NextPageToken)
34095 }
34096 }
34097
View as plain text