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:v3beta1"
97 const apiName = "dialogflow"
98 const apiVersion = "v3beta1"
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.Conversations = NewProjectsLocationsAgentsConversationsService(s)
205 rs.EntityTypes = NewProjectsLocationsAgentsEntityTypesService(s)
206 rs.Environments = NewProjectsLocationsAgentsEnvironmentsService(s)
207 rs.Flows = NewProjectsLocationsAgentsFlowsService(s)
208 rs.Generators = NewProjectsLocationsAgentsGeneratorsService(s)
209 rs.Intents = NewProjectsLocationsAgentsIntentsService(s)
210 rs.Sessions = NewProjectsLocationsAgentsSessionsService(s)
211 rs.TestCases = NewProjectsLocationsAgentsTestCasesService(s)
212 rs.TransitionRouteGroups = NewProjectsLocationsAgentsTransitionRouteGroupsService(s)
213 rs.Webhooks = NewProjectsLocationsAgentsWebhooksService(s)
214 return rs
215 }
216
217 type ProjectsLocationsAgentsService struct {
218 s *Service
219
220 Changelogs *ProjectsLocationsAgentsChangelogsService
221
222 Conversations *ProjectsLocationsAgentsConversationsService
223
224 EntityTypes *ProjectsLocationsAgentsEntityTypesService
225
226 Environments *ProjectsLocationsAgentsEnvironmentsService
227
228 Flows *ProjectsLocationsAgentsFlowsService
229
230 Generators *ProjectsLocationsAgentsGeneratorsService
231
232 Intents *ProjectsLocationsAgentsIntentsService
233
234 Sessions *ProjectsLocationsAgentsSessionsService
235
236 TestCases *ProjectsLocationsAgentsTestCasesService
237
238 TransitionRouteGroups *ProjectsLocationsAgentsTransitionRouteGroupsService
239
240 Webhooks *ProjectsLocationsAgentsWebhooksService
241 }
242
243 func NewProjectsLocationsAgentsChangelogsService(s *Service) *ProjectsLocationsAgentsChangelogsService {
244 rs := &ProjectsLocationsAgentsChangelogsService{s: s}
245 return rs
246 }
247
248 type ProjectsLocationsAgentsChangelogsService struct {
249 s *Service
250 }
251
252 func NewProjectsLocationsAgentsConversationsService(s *Service) *ProjectsLocationsAgentsConversationsService {
253 rs := &ProjectsLocationsAgentsConversationsService{s: s}
254 return rs
255 }
256
257 type ProjectsLocationsAgentsConversationsService struct {
258 s *Service
259 }
260
261 func NewProjectsLocationsAgentsEntityTypesService(s *Service) *ProjectsLocationsAgentsEntityTypesService {
262 rs := &ProjectsLocationsAgentsEntityTypesService{s: s}
263 return rs
264 }
265
266 type ProjectsLocationsAgentsEntityTypesService struct {
267 s *Service
268 }
269
270 func NewProjectsLocationsAgentsEnvironmentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsService {
271 rs := &ProjectsLocationsAgentsEnvironmentsService{s: s}
272 rs.ContinuousTestResults = NewProjectsLocationsAgentsEnvironmentsContinuousTestResultsService(s)
273 rs.Deployments = NewProjectsLocationsAgentsEnvironmentsDeploymentsService(s)
274 rs.Experiments = NewProjectsLocationsAgentsEnvironmentsExperimentsService(s)
275 rs.Sessions = NewProjectsLocationsAgentsEnvironmentsSessionsService(s)
276 return rs
277 }
278
279 type ProjectsLocationsAgentsEnvironmentsService struct {
280 s *Service
281
282 ContinuousTestResults *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService
283
284 Deployments *ProjectsLocationsAgentsEnvironmentsDeploymentsService
285
286 Experiments *ProjectsLocationsAgentsEnvironmentsExperimentsService
287
288 Sessions *ProjectsLocationsAgentsEnvironmentsSessionsService
289 }
290
291 func NewProjectsLocationsAgentsEnvironmentsContinuousTestResultsService(s *Service) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService {
292 rs := &ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService{s: s}
293 return rs
294 }
295
296 type ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService struct {
297 s *Service
298 }
299
300 func NewProjectsLocationsAgentsEnvironmentsDeploymentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsDeploymentsService {
301 rs := &ProjectsLocationsAgentsEnvironmentsDeploymentsService{s: s}
302 return rs
303 }
304
305 type ProjectsLocationsAgentsEnvironmentsDeploymentsService struct {
306 s *Service
307 }
308
309 func NewProjectsLocationsAgentsEnvironmentsExperimentsService(s *Service) *ProjectsLocationsAgentsEnvironmentsExperimentsService {
310 rs := &ProjectsLocationsAgentsEnvironmentsExperimentsService{s: s}
311 return rs
312 }
313
314 type ProjectsLocationsAgentsEnvironmentsExperimentsService struct {
315 s *Service
316 }
317
318 func NewProjectsLocationsAgentsEnvironmentsSessionsService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsService {
319 rs := &ProjectsLocationsAgentsEnvironmentsSessionsService{s: s}
320 rs.EntityTypes = NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s)
321 return rs
322 }
323
324 type ProjectsLocationsAgentsEnvironmentsSessionsService struct {
325 s *Service
326
327 EntityTypes *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService
328 }
329
330 func NewProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService {
331 rs := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService{s: s}
332 return rs
333 }
334
335 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService struct {
336 s *Service
337 }
338
339 func NewProjectsLocationsAgentsFlowsService(s *Service) *ProjectsLocationsAgentsFlowsService {
340 rs := &ProjectsLocationsAgentsFlowsService{s: s}
341 rs.Pages = NewProjectsLocationsAgentsFlowsPagesService(s)
342 rs.TransitionRouteGroups = NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s)
343 rs.Versions = NewProjectsLocationsAgentsFlowsVersionsService(s)
344 return rs
345 }
346
347 type ProjectsLocationsAgentsFlowsService struct {
348 s *Service
349
350 Pages *ProjectsLocationsAgentsFlowsPagesService
351
352 TransitionRouteGroups *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService
353
354 Versions *ProjectsLocationsAgentsFlowsVersionsService
355 }
356
357 func NewProjectsLocationsAgentsFlowsPagesService(s *Service) *ProjectsLocationsAgentsFlowsPagesService {
358 rs := &ProjectsLocationsAgentsFlowsPagesService{s: s}
359 return rs
360 }
361
362 type ProjectsLocationsAgentsFlowsPagesService struct {
363 s *Service
364 }
365
366 func NewProjectsLocationsAgentsFlowsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService {
367 rs := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsService{s: s}
368 return rs
369 }
370
371 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsService struct {
372 s *Service
373 }
374
375 func NewProjectsLocationsAgentsFlowsVersionsService(s *Service) *ProjectsLocationsAgentsFlowsVersionsService {
376 rs := &ProjectsLocationsAgentsFlowsVersionsService{s: s}
377 return rs
378 }
379
380 type ProjectsLocationsAgentsFlowsVersionsService struct {
381 s *Service
382 }
383
384 func NewProjectsLocationsAgentsGeneratorsService(s *Service) *ProjectsLocationsAgentsGeneratorsService {
385 rs := &ProjectsLocationsAgentsGeneratorsService{s: s}
386 return rs
387 }
388
389 type ProjectsLocationsAgentsGeneratorsService struct {
390 s *Service
391 }
392
393 func NewProjectsLocationsAgentsIntentsService(s *Service) *ProjectsLocationsAgentsIntentsService {
394 rs := &ProjectsLocationsAgentsIntentsService{s: s}
395 return rs
396 }
397
398 type ProjectsLocationsAgentsIntentsService struct {
399 s *Service
400 }
401
402 func NewProjectsLocationsAgentsSessionsService(s *Service) *ProjectsLocationsAgentsSessionsService {
403 rs := &ProjectsLocationsAgentsSessionsService{s: s}
404 rs.EntityTypes = NewProjectsLocationsAgentsSessionsEntityTypesService(s)
405 return rs
406 }
407
408 type ProjectsLocationsAgentsSessionsService struct {
409 s *Service
410
411 EntityTypes *ProjectsLocationsAgentsSessionsEntityTypesService
412 }
413
414 func NewProjectsLocationsAgentsSessionsEntityTypesService(s *Service) *ProjectsLocationsAgentsSessionsEntityTypesService {
415 rs := &ProjectsLocationsAgentsSessionsEntityTypesService{s: s}
416 return rs
417 }
418
419 type ProjectsLocationsAgentsSessionsEntityTypesService struct {
420 s *Service
421 }
422
423 func NewProjectsLocationsAgentsTestCasesService(s *Service) *ProjectsLocationsAgentsTestCasesService {
424 rs := &ProjectsLocationsAgentsTestCasesService{s: s}
425 rs.Results = NewProjectsLocationsAgentsTestCasesResultsService(s)
426 return rs
427 }
428
429 type ProjectsLocationsAgentsTestCasesService struct {
430 s *Service
431
432 Results *ProjectsLocationsAgentsTestCasesResultsService
433 }
434
435 func NewProjectsLocationsAgentsTestCasesResultsService(s *Service) *ProjectsLocationsAgentsTestCasesResultsService {
436 rs := &ProjectsLocationsAgentsTestCasesResultsService{s: s}
437 return rs
438 }
439
440 type ProjectsLocationsAgentsTestCasesResultsService struct {
441 s *Service
442 }
443
444 func NewProjectsLocationsAgentsTransitionRouteGroupsService(s *Service) *ProjectsLocationsAgentsTransitionRouteGroupsService {
445 rs := &ProjectsLocationsAgentsTransitionRouteGroupsService{s: s}
446 return rs
447 }
448
449 type ProjectsLocationsAgentsTransitionRouteGroupsService struct {
450 s *Service
451 }
452
453 func NewProjectsLocationsAgentsWebhooksService(s *Service) *ProjectsLocationsAgentsWebhooksService {
454 rs := &ProjectsLocationsAgentsWebhooksService{s: s}
455 return rs
456 }
457
458 type ProjectsLocationsAgentsWebhooksService struct {
459 s *Service
460 }
461
462 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
463 rs := &ProjectsLocationsOperationsService{s: s}
464 return rs
465 }
466
467 type ProjectsLocationsOperationsService struct {
468 s *Service
469 }
470
471 func NewProjectsLocationsSecuritySettingsService(s *Service) *ProjectsLocationsSecuritySettingsService {
472 rs := &ProjectsLocationsSecuritySettingsService{s: s}
473 return rs
474 }
475
476 type ProjectsLocationsSecuritySettingsService struct {
477 s *Service
478 }
479
480 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
481 rs := &ProjectsOperationsService{s: s}
482 return rs
483 }
484
485 type ProjectsOperationsService struct {
486 s *Service
487 }
488
489
490
491
492
493
494
495
496
497
498 type GoogleCloudDialogflowCxV3AdvancedSettings struct {
499
500
501
502 AudioExportGcsDestination *GoogleCloudDialogflowCxV3GcsDestination `json:"audioExportGcsDestination,omitempty"`
503
504
505 DtmfSettings *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
506
507
508
509 LoggingSettings *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
510
511
512 SpeechSettings *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
513
514
515
516
517
518 ForceSendFields []string `json:"-"`
519
520
521
522
523 NullFields []string `json:"-"`
524 }
525
526 func (s *GoogleCloudDialogflowCxV3AdvancedSettings) MarshalJSON() ([]byte, error) {
527 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettings
528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
529 }
530
531
532
533 type GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings struct {
534
535
536
537
538
539
540 Enabled bool `json:"enabled,omitempty"`
541
542
543 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
544
545 FinishDigit string `json:"finishDigit,omitempty"`
546
547
548 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
549
550 MaxDigits int64 `json:"maxDigits,omitempty"`
551
552
553
554
555
556 ForceSendFields []string `json:"-"`
557
558
559
560
561 NullFields []string `json:"-"`
562 }
563
564 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
565 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
567 }
568
569
570
571 type GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings struct {
572
573
574 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
575
576 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
577
578
579
580
581
582 ForceSendFields []string `json:"-"`
583
584
585
586
587 NullFields []string `json:"-"`
588 }
589
590 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
591 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
593 }
594
595
596
597 type GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings struct {
598
599
600 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
601
602
603
604
605 Models map[string]string `json:"models,omitempty"`
606
607 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
608
609
610 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
611
612
613
614
615
616 ForceSendFields []string `json:"-"`
617
618
619
620
621 NullFields []string `json:"-"`
622 }
623
624 func (s *GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
625 type NoMethod GoogleCloudDialogflowCxV3AdvancedSettingsSpeechSettings
626 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
627 }
628
629
630
631 type GoogleCloudDialogflowCxV3AudioInput struct {
632
633
634
635
636
637
638 Audio string `json:"audio,omitempty"`
639
640
641 Config *GoogleCloudDialogflowCxV3InputAudioConfig `json:"config,omitempty"`
642
643
644
645
646
647 ForceSendFields []string `json:"-"`
648
649
650
651
652 NullFields []string `json:"-"`
653 }
654
655 func (s *GoogleCloudDialogflowCxV3AudioInput) MarshalJSON() ([]byte, error) {
656 type NoMethod GoogleCloudDialogflowCxV3AudioInput
657 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
658 }
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676 type GoogleCloudDialogflowCxV3BargeInConfig struct {
677
678
679 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
680
681
682 TotalDuration string `json:"totalDuration,omitempty"`
683
684
685
686
687
688 ForceSendFields []string `json:"-"`
689
690
691
692
693 NullFields []string `json:"-"`
694 }
695
696 func (s *GoogleCloudDialogflowCxV3BargeInConfig) MarshalJSON() ([]byte, error) {
697 type NoMethod GoogleCloudDialogflowCxV3BargeInConfig
698 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
699 }
700
701
702
703 type GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata struct {
704
705 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
706
707
708
709
710
711 ForceSendFields []string `json:"-"`
712
713
714
715
716 NullFields []string `json:"-"`
717 }
718
719 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
720 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesMetadata
721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
722 }
723
724
725
726 type GoogleCloudDialogflowCxV3BatchRunTestCasesResponse struct {
727
728
729 Results []*GoogleCloudDialogflowCxV3TestCaseResult `json:"results,omitempty"`
730
731
732
733
734
735 ForceSendFields []string `json:"-"`
736
737
738
739
740 NullFields []string `json:"-"`
741 }
742
743 func (s *GoogleCloudDialogflowCxV3BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
744 type NoMethod GoogleCloudDialogflowCxV3BatchRunTestCasesResponse
745 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
746 }
747
748
749
750 type GoogleCloudDialogflowCxV3ContinuousTestResult struct {
751
752
753 Name string `json:"name,omitempty"`
754
755
756
757
758
759
760
761
762 Result string `json:"result,omitempty"`
763
764 RunTime string `json:"runTime,omitempty"`
765
766
767 TestCaseResults []string `json:"testCaseResults,omitempty"`
768
769
770
771
772
773 ForceSendFields []string `json:"-"`
774
775
776
777
778 NullFields []string `json:"-"`
779 }
780
781 func (s *GoogleCloudDialogflowCxV3ContinuousTestResult) MarshalJSON() ([]byte, error) {
782 type NoMethod GoogleCloudDialogflowCxV3ContinuousTestResult
783 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
784 }
785
786
787
788
789 type GoogleCloudDialogflowCxV3ConversationSignals struct {
790
791 TurnSignals *GoogleCloudDialogflowCxV3TurnSignals `json:"turnSignals,omitempty"`
792
793
794
795
796
797 ForceSendFields []string `json:"-"`
798
799
800
801
802 NullFields []string `json:"-"`
803 }
804
805 func (s *GoogleCloudDialogflowCxV3ConversationSignals) MarshalJSON() ([]byte, error) {
806 type NoMethod GoogleCloudDialogflowCxV3ConversationSignals
807 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
808 }
809
810
811
812
813 type GoogleCloudDialogflowCxV3ConversationTurn struct {
814
815 UserInput *GoogleCloudDialogflowCxV3ConversationTurnUserInput `json:"userInput,omitempty"`
816
817 VirtualAgentOutput *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
818
819
820
821
822
823 ForceSendFields []string `json:"-"`
824
825
826
827
828 NullFields []string `json:"-"`
829 }
830
831 func (s *GoogleCloudDialogflowCxV3ConversationTurn) MarshalJSON() ([]byte, error) {
832 type NoMethod GoogleCloudDialogflowCxV3ConversationTurn
833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
834 }
835
836
837
838 type GoogleCloudDialogflowCxV3ConversationTurnUserInput struct {
839
840 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
841
842
843 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
844
845 Input *GoogleCloudDialogflowCxV3QueryInput `json:"input,omitempty"`
846
847
848
849 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
850
851
852
853
854
855 ForceSendFields []string `json:"-"`
856
857
858
859
860 NullFields []string `json:"-"`
861 }
862
863 func (s *GoogleCloudDialogflowCxV3ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
864 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnUserInput
865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
866 }
867
868
869
870 type GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput struct {
871
872
873 CurrentPage *GoogleCloudDialogflowCxV3Page `json:"currentPage,omitempty"`
874
875
876 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
877
878
879
880 Differences []*GoogleCloudDialogflowCxV3TestRunDifference `json:"differences,omitempty"`
881
882
883 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
884
885
886 Status *GoogleRpcStatus `json:"status,omitempty"`
887
888 TextResponses []*GoogleCloudDialogflowCxV3ResponseMessageText `json:"textResponses,omitempty"`
889
890
891 TriggeredIntent *GoogleCloudDialogflowCxV3Intent `json:"triggeredIntent,omitempty"`
892
893
894
895
896
897 ForceSendFields []string `json:"-"`
898
899
900
901
902 NullFields []string `json:"-"`
903 }
904
905 func (s *GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
906 type NoMethod GoogleCloudDialogflowCxV3ConversationTurnVirtualAgentOutput
907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
908 }
909
910
911
912 type GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata struct {
913
914 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
915
916
917
918
919
920 ForceSendFields []string `json:"-"`
921
922
923
924
925 NullFields []string `json:"-"`
926 }
927
928 func (s *GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
929 type NoMethod GoogleCloudDialogflowCxV3CreateDocumentOperationMetadata
930 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
931 }
932
933
934
935 type GoogleCloudDialogflowCxV3CreateVersionOperationMetadata struct {
936
937
938 Version string `json:"version,omitempty"`
939
940
941
942
943
944 ForceSendFields []string `json:"-"`
945
946
947
948
949 NullFields []string `json:"-"`
950 }
951
952 func (s *GoogleCloudDialogflowCxV3CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
953 type NoMethod GoogleCloudDialogflowCxV3CreateVersionOperationMetadata
954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
955 }
956
957
958
959
960 type GoogleCloudDialogflowCxV3DataStoreConnection struct {
961
962
963
964
965 DataStore string `json:"dataStore,omitempty"`
966
967
968
969
970
971
972
973
974
975 DataStoreType string `json:"dataStoreType,omitempty"`
976
977
978
979
980
981 ForceSendFields []string `json:"-"`
982
983
984
985
986 NullFields []string `json:"-"`
987 }
988
989 func (s *GoogleCloudDialogflowCxV3DataStoreConnection) MarshalJSON() ([]byte, error) {
990 type NoMethod GoogleCloudDialogflowCxV3DataStoreConnection
991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
992 }
993
994
995
996 type GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata struct {
997
998 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
999
1000
1001
1002
1003
1004 ForceSendFields []string `json:"-"`
1005
1006
1007
1008
1009 NullFields []string `json:"-"`
1010 }
1011
1012 func (s *GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
1013 type NoMethod GoogleCloudDialogflowCxV3DeleteDocumentOperationMetadata
1014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1015 }
1016
1017
1018
1019 type GoogleCloudDialogflowCxV3DeployFlowMetadata struct {
1020
1021 TestErrors []*GoogleCloudDialogflowCxV3TestError `json:"testErrors,omitempty"`
1022
1023
1024
1025
1026
1027 ForceSendFields []string `json:"-"`
1028
1029
1030
1031
1032 NullFields []string `json:"-"`
1033 }
1034
1035 func (s *GoogleCloudDialogflowCxV3DeployFlowMetadata) MarshalJSON() ([]byte, error) {
1036 type NoMethod GoogleCloudDialogflowCxV3DeployFlowMetadata
1037 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1038 }
1039
1040
1041
1042 type GoogleCloudDialogflowCxV3DeployFlowResponse struct {
1043
1044
1045 Deployment string `json:"deployment,omitempty"`
1046
1047 Environment *GoogleCloudDialogflowCxV3Environment `json:"environment,omitempty"`
1048
1049
1050
1051
1052
1053 ForceSendFields []string `json:"-"`
1054
1055
1056
1057
1058 NullFields []string `json:"-"`
1059 }
1060
1061 func (s *GoogleCloudDialogflowCxV3DeployFlowResponse) MarshalJSON() ([]byte, error) {
1062 type NoMethod GoogleCloudDialogflowCxV3DeployFlowResponse
1063 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1064 }
1065
1066
1067 type GoogleCloudDialogflowCxV3DtmfInput struct {
1068
1069 Digits string `json:"digits,omitempty"`
1070
1071 FinishDigit string `json:"finishDigit,omitempty"`
1072
1073
1074
1075
1076
1077 ForceSendFields []string `json:"-"`
1078
1079
1080
1081
1082 NullFields []string `json:"-"`
1083 }
1084
1085 func (s *GoogleCloudDialogflowCxV3DtmfInput) MarshalJSON() ([]byte, error) {
1086 type NoMethod GoogleCloudDialogflowCxV3DtmfInput
1087 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1088 }
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098 type GoogleCloudDialogflowCxV3Environment struct {
1099
1100
1101 Description string `json:"description,omitempty"`
1102
1103
1104 DisplayName string `json:"displayName,omitempty"`
1105
1106
1107 Name string `json:"name,omitempty"`
1108
1109
1110 TestCasesConfig *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
1111
1112 UpdateTime string `json:"updateTime,omitempty"`
1113
1114
1115
1116 VersionConfigs []*GoogleCloudDialogflowCxV3EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
1117
1118 WebhookConfig *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
1119
1120
1121
1122
1123
1124 ForceSendFields []string `json:"-"`
1125
1126
1127
1128
1129 NullFields []string `json:"-"`
1130 }
1131
1132 func (s *GoogleCloudDialogflowCxV3Environment) MarshalJSON() ([]byte, error) {
1133 type NoMethod GoogleCloudDialogflowCxV3Environment
1134 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1135 }
1136
1137
1138
1139 type GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig struct {
1140
1141
1142 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
1143
1144
1145
1146 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
1147
1148
1149
1150 TestCases []string `json:"testCases,omitempty"`
1151
1152
1153
1154
1155
1156 ForceSendFields []string `json:"-"`
1157
1158
1159
1160
1161 NullFields []string `json:"-"`
1162 }
1163
1164 func (s *GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
1165 type NoMethod GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
1166 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1167 }
1168
1169
1170
1171 type GoogleCloudDialogflowCxV3EnvironmentVersionConfig struct {
1172
1173 Version string `json:"version,omitempty"`
1174
1175
1176
1177
1178
1179 ForceSendFields []string `json:"-"`
1180
1181
1182
1183
1184 NullFields []string `json:"-"`
1185 }
1186
1187 func (s *GoogleCloudDialogflowCxV3EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
1188 type NoMethod GoogleCloudDialogflowCxV3EnvironmentVersionConfig
1189 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1190 }
1191
1192
1193
1194 type GoogleCloudDialogflowCxV3EnvironmentWebhookConfig struct {
1195
1196
1197
1198 WebhookOverrides []*GoogleCloudDialogflowCxV3Webhook `json:"webhookOverrides,omitempty"`
1199
1200
1201
1202
1203
1204 ForceSendFields []string `json:"-"`
1205
1206
1207
1208
1209 NullFields []string `json:"-"`
1210 }
1211
1212 func (s *GoogleCloudDialogflowCxV3EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
1213 type NoMethod GoogleCloudDialogflowCxV3EnvironmentWebhookConfig
1214 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1215 }
1216
1217
1218
1219
1220
1221
1222
1223
1224 type GoogleCloudDialogflowCxV3EventHandler struct {
1225
1226 Event string `json:"event,omitempty"`
1227
1228 Name string `json:"name,omitempty"`
1229
1230
1231 TargetFlow string `json:"targetFlow,omitempty"`
1232
1233
1234 TargetPage string `json:"targetPage,omitempty"`
1235
1236
1237
1238
1239 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
1240
1241
1242
1243
1244
1245 ForceSendFields []string `json:"-"`
1246
1247
1248
1249
1250 NullFields []string `json:"-"`
1251 }
1252
1253 func (s *GoogleCloudDialogflowCxV3EventHandler) MarshalJSON() ([]byte, error) {
1254 type NoMethod GoogleCloudDialogflowCxV3EventHandler
1255 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1256 }
1257
1258
1259 type GoogleCloudDialogflowCxV3EventInput struct {
1260
1261 Event string `json:"event,omitempty"`
1262
1263
1264
1265
1266
1267 ForceSendFields []string `json:"-"`
1268
1269
1270
1271
1272 NullFields []string `json:"-"`
1273 }
1274
1275 func (s *GoogleCloudDialogflowCxV3EventInput) MarshalJSON() ([]byte, error) {
1276 type NoMethod GoogleCloudDialogflowCxV3EventInput
1277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1278 }
1279
1280
1281
1282 type GoogleCloudDialogflowCxV3ExportAgentResponse struct {
1283
1284
1285
1286 AgentContent string `json:"agentContent,omitempty"`
1287
1288
1289 AgentUri string `json:"agentUri,omitempty"`
1290
1291
1292 CommitSha string `json:"commitSha,omitempty"`
1293
1294
1295
1296
1297
1298 ForceSendFields []string `json:"-"`
1299
1300
1301
1302
1303 NullFields []string `json:"-"`
1304 }
1305
1306 func (s *GoogleCloudDialogflowCxV3ExportAgentResponse) MarshalJSON() ([]byte, error) {
1307 type NoMethod GoogleCloudDialogflowCxV3ExportAgentResponse
1308 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1309 }
1310
1311
1312
1313 type GoogleCloudDialogflowCxV3ExportEntityTypesMetadata struct {
1314 }
1315
1316
1317
1318 type GoogleCloudDialogflowCxV3ExportEntityTypesResponse struct {
1319
1320
1321
1322 EntityTypesContent *GoogleCloudDialogflowCxV3InlineDestination `json:"entityTypesContent,omitempty"`
1323
1324
1325
1326 EntityTypesUri string `json:"entityTypesUri,omitempty"`
1327
1328
1329
1330
1331
1332 ForceSendFields []string `json:"-"`
1333
1334
1335
1336
1337 NullFields []string `json:"-"`
1338 }
1339
1340 func (s *GoogleCloudDialogflowCxV3ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
1341 type NoMethod GoogleCloudDialogflowCxV3ExportEntityTypesResponse
1342 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1343 }
1344
1345
1346
1347 type GoogleCloudDialogflowCxV3ExportFlowResponse struct {
1348
1349 FlowContent string `json:"flowContent,omitempty"`
1350
1351
1352 FlowUri string `json:"flowUri,omitempty"`
1353
1354
1355
1356
1357
1358 ForceSendFields []string `json:"-"`
1359
1360
1361
1362
1363 NullFields []string `json:"-"`
1364 }
1365
1366 func (s *GoogleCloudDialogflowCxV3ExportFlowResponse) MarshalJSON() ([]byte, error) {
1367 type NoMethod GoogleCloudDialogflowCxV3ExportFlowResponse
1368 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1369 }
1370
1371
1372
1373 type GoogleCloudDialogflowCxV3ExportIntentsMetadata struct {
1374 }
1375
1376
1377
1378 type GoogleCloudDialogflowCxV3ExportIntentsResponse struct {
1379
1380
1381
1382 IntentsContent *GoogleCloudDialogflowCxV3InlineDestination `json:"intentsContent,omitempty"`
1383
1384
1385 IntentsUri string `json:"intentsUri,omitempty"`
1386
1387
1388
1389
1390
1391 ForceSendFields []string `json:"-"`
1392
1393
1394
1395
1396 NullFields []string `json:"-"`
1397 }
1398
1399 func (s *GoogleCloudDialogflowCxV3ExportIntentsResponse) MarshalJSON() ([]byte, error) {
1400 type NoMethod GoogleCloudDialogflowCxV3ExportIntentsResponse
1401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1402 }
1403
1404
1405
1406
1407 type GoogleCloudDialogflowCxV3ExportTestCasesMetadata struct {
1408 }
1409
1410
1411
1412 type GoogleCloudDialogflowCxV3ExportTestCasesResponse struct {
1413
1414 Content string `json:"content,omitempty"`
1415
1416
1417 GcsUri string `json:"gcsUri,omitempty"`
1418
1419
1420
1421
1422
1423 ForceSendFields []string `json:"-"`
1424
1425
1426
1427
1428 NullFields []string `json:"-"`
1429 }
1430
1431 func (s *GoogleCloudDialogflowCxV3ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
1432 type NoMethod GoogleCloudDialogflowCxV3ExportTestCasesResponse
1433 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1434 }
1435
1436
1437
1438
1439
1440
1441 type GoogleCloudDialogflowCxV3Form struct {
1442
1443 Parameters []*GoogleCloudDialogflowCxV3FormParameter `json:"parameters,omitempty"`
1444
1445
1446
1447
1448
1449 ForceSendFields []string `json:"-"`
1450
1451
1452
1453
1454 NullFields []string `json:"-"`
1455 }
1456
1457 func (s *GoogleCloudDialogflowCxV3Form) MarshalJSON() ([]byte, error) {
1458 type NoMethod GoogleCloudDialogflowCxV3Form
1459 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1460 }
1461
1462
1463 type GoogleCloudDialogflowCxV3FormParameter struct {
1464
1465
1466
1467 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
1468
1469
1470 DefaultValue interface{} `json:"defaultValue,omitempty"`
1471
1472
1473 DisplayName string `json:"displayName,omitempty"`
1474
1475
1476
1477
1478 EntityType string `json:"entityType,omitempty"`
1479
1480 FillBehavior *GoogleCloudDialogflowCxV3FormParameterFillBehavior `json:"fillBehavior,omitempty"`
1481
1482 IsList bool `json:"isList,omitempty"`
1483
1484
1485
1486
1487 Redact bool `json:"redact,omitempty"`
1488
1489
1490
1491 Required bool `json:"required,omitempty"`
1492
1493
1494
1495
1496
1497 ForceSendFields []string `json:"-"`
1498
1499
1500
1501
1502 NullFields []string `json:"-"`
1503 }
1504
1505 func (s *GoogleCloudDialogflowCxV3FormParameter) MarshalJSON() ([]byte, error) {
1506 type NoMethod GoogleCloudDialogflowCxV3FormParameter
1507 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1508 }
1509
1510
1511
1512 type GoogleCloudDialogflowCxV3FormParameterFillBehavior struct {
1513
1514
1515
1516 InitialPromptFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"initialPromptFulfillment,omitempty"`
1517
1518
1519
1520
1521
1522
1523
1524
1525
1526
1527
1528
1529
1530
1531
1532
1533
1534
1535
1536
1537
1538 RepromptEventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"repromptEventHandlers,omitempty"`
1539
1540
1541
1542
1543
1544 ForceSendFields []string `json:"-"`
1545
1546
1547
1548
1549 NullFields []string `json:"-"`
1550 }
1551
1552 func (s *GoogleCloudDialogflowCxV3FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
1553 type NoMethod GoogleCloudDialogflowCxV3FormParameterFillBehavior
1554 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1555 }
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565 type GoogleCloudDialogflowCxV3Fulfillment struct {
1566
1567
1568
1569 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
1570
1571 ConditionalCases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
1572
1573
1574
1575
1576 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
1577
1578 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
1579
1580
1581
1582
1583
1584
1585
1586 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
1587
1588 SetParameterActions []*GoogleCloudDialogflowCxV3FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
1589
1590
1591
1592
1593
1594 Tag string `json:"tag,omitempty"`
1595
1596
1597 Webhook string `json:"webhook,omitempty"`
1598
1599
1600
1601
1602
1603 ForceSendFields []string `json:"-"`
1604
1605
1606
1607
1608 NullFields []string `json:"-"`
1609 }
1610
1611 func (s *GoogleCloudDialogflowCxV3Fulfillment) MarshalJSON() ([]byte, error) {
1612 type NoMethod GoogleCloudDialogflowCxV3Fulfillment
1613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1614 }
1615
1616
1617
1618
1619 type GoogleCloudDialogflowCxV3FulfillmentConditionalCases struct {
1620
1621 Cases []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase `json:"cases,omitempty"`
1622
1623
1624
1625
1626
1627 ForceSendFields []string `json:"-"`
1628
1629
1630
1631
1632 NullFields []string `json:"-"`
1633 }
1634
1635 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
1636 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCases
1637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1638 }
1639
1640
1641
1642
1643 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase struct {
1644
1645 CaseContent []*GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
1646
1647
1648
1649
1650 Condition string `json:"condition,omitempty"`
1651
1652
1653
1654
1655
1656 ForceSendFields []string `json:"-"`
1657
1658
1659
1660
1661 NullFields []string `json:"-"`
1662 }
1663
1664 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
1665 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCase
1666 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1667 }
1668
1669
1670
1671 type GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent struct {
1672
1673 AdditionalCases *GoogleCloudDialogflowCxV3FulfillmentConditionalCases `json:"additionalCases,omitempty"`
1674
1675 Message *GoogleCloudDialogflowCxV3ResponseMessage `json:"message,omitempty"`
1676
1677
1678
1679
1680
1681 ForceSendFields []string `json:"-"`
1682
1683
1684
1685
1686 NullFields []string `json:"-"`
1687 }
1688
1689 func (s *GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
1690 type NoMethod GoogleCloudDialogflowCxV3FulfillmentConditionalCasesCaseCaseContent
1691 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1692 }
1693
1694
1695
1696 type GoogleCloudDialogflowCxV3FulfillmentSetParameterAction struct {
1697
1698 Parameter string `json:"parameter,omitempty"`
1699
1700 Value interface{} `json:"value,omitempty"`
1701
1702
1703
1704
1705
1706 ForceSendFields []string `json:"-"`
1707
1708
1709
1710
1711 NullFields []string `json:"-"`
1712 }
1713
1714 func (s *GoogleCloudDialogflowCxV3FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
1715 type NoMethod GoogleCloudDialogflowCxV3FulfillmentSetParameterAction
1716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1717 }
1718
1719
1720
1721
1722 type GoogleCloudDialogflowCxV3GcsDestination struct {
1723
1724
1725
1726 Uri string `json:"uri,omitempty"`
1727
1728
1729
1730
1731
1732 ForceSendFields []string `json:"-"`
1733
1734
1735
1736
1737 NullFields []string `json:"-"`
1738 }
1739
1740 func (s *GoogleCloudDialogflowCxV3GcsDestination) MarshalJSON() ([]byte, error) {
1741 type NoMethod GoogleCloudDialogflowCxV3GcsDestination
1742 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1743 }
1744
1745
1746
1747 type GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata struct {
1748
1749
1750
1751
1752
1753
1754
1755 State string `json:"state,omitempty"`
1756
1757
1758
1759
1760
1761 ForceSendFields []string `json:"-"`
1762
1763
1764
1765
1766 NullFields []string `json:"-"`
1767 }
1768
1769 func (s *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
1770 type NoMethod GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
1771 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1772 }
1773
1774
1775
1776 type GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata struct {
1777
1778 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
1779
1780
1781
1782
1783
1784 ForceSendFields []string `json:"-"`
1785
1786
1787
1788
1789 NullFields []string `json:"-"`
1790 }
1791
1792 func (s *GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
1793 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsOperationMetadata
1794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1795 }
1796
1797
1798
1799 type GoogleCloudDialogflowCxV3ImportDocumentsResponse struct {
1800
1801 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
1802
1803
1804
1805
1806
1807 ForceSendFields []string `json:"-"`
1808
1809
1810
1811
1812 NullFields []string `json:"-"`
1813 }
1814
1815 func (s *GoogleCloudDialogflowCxV3ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
1816 type NoMethod GoogleCloudDialogflowCxV3ImportDocumentsResponse
1817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1818 }
1819
1820
1821
1822 type GoogleCloudDialogflowCxV3ImportEntityTypesMetadata struct {
1823 }
1824
1825
1826
1827 type GoogleCloudDialogflowCxV3ImportEntityTypesResponse struct {
1828
1829
1830 ConflictingResources *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
1831
1832
1833 EntityTypes []string `json:"entityTypes,omitempty"`
1834
1835
1836
1837
1838
1839 ForceSendFields []string `json:"-"`
1840
1841
1842
1843
1844 NullFields []string `json:"-"`
1845 }
1846
1847 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
1848 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponse
1849 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1850 }
1851
1852
1853
1854
1855
1856 type GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources struct {
1857
1858 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
1859
1860 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
1861
1862
1863
1864
1865
1866 ForceSendFields []string `json:"-"`
1867
1868
1869
1870
1871 NullFields []string `json:"-"`
1872 }
1873
1874 func (s *GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
1875 type NoMethod GoogleCloudDialogflowCxV3ImportEntityTypesResponseConflictingResources
1876 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1877 }
1878
1879
1880
1881 type GoogleCloudDialogflowCxV3ImportFlowResponse struct {
1882
1883
1884 Flow string `json:"flow,omitempty"`
1885
1886
1887
1888
1889
1890 ForceSendFields []string `json:"-"`
1891
1892
1893
1894
1895 NullFields []string `json:"-"`
1896 }
1897
1898 func (s *GoogleCloudDialogflowCxV3ImportFlowResponse) MarshalJSON() ([]byte, error) {
1899 type NoMethod GoogleCloudDialogflowCxV3ImportFlowResponse
1900 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1901 }
1902
1903
1904
1905 type GoogleCloudDialogflowCxV3ImportIntentsMetadata struct {
1906 }
1907
1908
1909
1910 type GoogleCloudDialogflowCxV3ImportIntentsResponse struct {
1911
1912
1913 ConflictingResources *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
1914
1915
1916 Intents []string `json:"intents,omitempty"`
1917
1918
1919
1920
1921
1922 ForceSendFields []string `json:"-"`
1923
1924
1925
1926
1927 NullFields []string `json:"-"`
1928 }
1929
1930 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponse) MarshalJSON() ([]byte, error) {
1931 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponse
1932 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1933 }
1934
1935
1936
1937
1938
1939 type GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources struct {
1940
1941 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
1942
1943 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
1944
1945
1946
1947
1948
1949 ForceSendFields []string `json:"-"`
1950
1951
1952
1953
1954 NullFields []string `json:"-"`
1955 }
1956
1957 func (s *GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
1958 type NoMethod GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
1959 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1960 }
1961
1962
1963
1964 type GoogleCloudDialogflowCxV3ImportTestCasesMetadata struct {
1965
1966 Errors []*GoogleCloudDialogflowCxV3TestCaseError `json:"errors,omitempty"`
1967
1968
1969
1970
1971
1972 ForceSendFields []string `json:"-"`
1973
1974
1975
1976
1977 NullFields []string `json:"-"`
1978 }
1979
1980 func (s *GoogleCloudDialogflowCxV3ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
1981 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesMetadata
1982 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1983 }
1984
1985
1986
1987 type GoogleCloudDialogflowCxV3ImportTestCasesResponse struct {
1988
1989
1990 Names []string `json:"names,omitempty"`
1991
1992
1993
1994
1995
1996 ForceSendFields []string `json:"-"`
1997
1998
1999
2000
2001 NullFields []string `json:"-"`
2002 }
2003
2004 func (s *GoogleCloudDialogflowCxV3ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
2005 type NoMethod GoogleCloudDialogflowCxV3ImportTestCasesResponse
2006 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2007 }
2008
2009
2010
2011
2012 type GoogleCloudDialogflowCxV3InlineDestination struct {
2013
2014
2015 Content string `json:"content,omitempty"`
2016
2017
2018
2019
2020
2021 ForceSendFields []string `json:"-"`
2022
2023
2024
2025
2026 NullFields []string `json:"-"`
2027 }
2028
2029 func (s *GoogleCloudDialogflowCxV3InlineDestination) MarshalJSON() ([]byte, error) {
2030 type NoMethod GoogleCloudDialogflowCxV3InlineDestination
2031 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2032 }
2033
2034
2035
2036 type GoogleCloudDialogflowCxV3InputAudioConfig struct {
2037
2038
2039
2040
2041
2042
2043
2044
2045
2046
2047
2048
2049
2050
2051
2052
2053
2054
2055
2056
2057
2058
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070 AudioEncoding string `json:"audioEncoding,omitempty"`
2071
2072
2073 BargeInConfig *GoogleCloudDialogflowCxV3BargeInConfig `json:"bargeInConfig,omitempty"`
2074
2075
2076
2077
2078 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
2079
2080
2081
2082 Model string `json:"model,omitempty"`
2083
2084
2085
2086
2087
2088
2089
2090
2091
2092
2093
2094
2095
2096
2097
2098
2099 ModelVariant string `json:"modelVariant,omitempty"`
2100
2101
2102
2103
2104
2105 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
2106
2107
2108
2109
2110
2111 PhraseHints []string `json:"phraseHints,omitempty"`
2112
2113
2114
2115 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
2116
2117
2118
2119
2120
2121
2122
2123 SingleUtterance bool `json:"singleUtterance,omitempty"`
2124
2125
2126
2127
2128
2129 ForceSendFields []string `json:"-"`
2130
2131
2132
2133
2134 NullFields []string `json:"-"`
2135 }
2136
2137 func (s *GoogleCloudDialogflowCxV3InputAudioConfig) MarshalJSON() ([]byte, error) {
2138 type NoMethod GoogleCloudDialogflowCxV3InputAudioConfig
2139 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2140 }
2141
2142
2143
2144
2145
2146 type GoogleCloudDialogflowCxV3Intent struct {
2147
2148
2149
2150 Description string `json:"description,omitempty"`
2151
2152
2153 DisplayName string `json:"displayName,omitempty"`
2154
2155
2156
2157
2158
2159 IsFallback bool `json:"isFallback,omitempty"`
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169 Labels map[string]string `json:"labels,omitempty"`
2170
2171
2172
2173 Name string `json:"name,omitempty"`
2174
2175 Parameters []*GoogleCloudDialogflowCxV3IntentParameter `json:"parameters,omitempty"`
2176
2177
2178
2179
2180
2181 Priority int64 `json:"priority,omitempty"`
2182
2183
2184 TrainingPhrases []*GoogleCloudDialogflowCxV3IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
2185
2186
2187
2188
2189
2190 ForceSendFields []string `json:"-"`
2191
2192
2193
2194
2195 NullFields []string `json:"-"`
2196 }
2197
2198 func (s *GoogleCloudDialogflowCxV3Intent) MarshalJSON() ([]byte, error) {
2199 type NoMethod GoogleCloudDialogflowCxV3Intent
2200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2201 }
2202
2203
2204
2205 type GoogleCloudDialogflowCxV3IntentInput struct {
2206
2207
2208 Intent string `json:"intent,omitempty"`
2209
2210
2211
2212
2213
2214 ForceSendFields []string `json:"-"`
2215
2216
2217
2218
2219 NullFields []string `json:"-"`
2220 }
2221
2222 func (s *GoogleCloudDialogflowCxV3IntentInput) MarshalJSON() ([]byte, error) {
2223 type NoMethod GoogleCloudDialogflowCxV3IntentInput
2224 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2225 }
2226
2227
2228 type GoogleCloudDialogflowCxV3IntentParameter struct {
2229
2230
2231
2232
2233 EntityType string `json:"entityType,omitempty"`
2234
2235
2236 Id string `json:"id,omitempty"`
2237
2238 IsList bool `json:"isList,omitempty"`
2239
2240
2241
2242
2243 Redact bool `json:"redact,omitempty"`
2244
2245
2246
2247
2248
2249 ForceSendFields []string `json:"-"`
2250
2251
2252
2253
2254 NullFields []string `json:"-"`
2255 }
2256
2257 func (s *GoogleCloudDialogflowCxV3IntentParameter) MarshalJSON() ([]byte, error) {
2258 type NoMethod GoogleCloudDialogflowCxV3IntentParameter
2259 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2260 }
2261
2262
2263
2264 type GoogleCloudDialogflowCxV3IntentTrainingPhrase struct {
2265
2266 Id string `json:"id,omitempty"`
2267
2268
2269
2270
2271
2272
2273
2274
2275
2276
2277
2278 Parts []*GoogleCloudDialogflowCxV3IntentTrainingPhrasePart `json:"parts,omitempty"`
2279
2280 RepeatCount int64 `json:"repeatCount,omitempty"`
2281
2282
2283
2284
2285
2286 ForceSendFields []string `json:"-"`
2287
2288
2289
2290
2291 NullFields []string `json:"-"`
2292 }
2293
2294 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
2295 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrase
2296 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2297 }
2298
2299
2300
2301 type GoogleCloudDialogflowCxV3IntentTrainingPhrasePart struct {
2302
2303
2304 ParameterId string `json:"parameterId,omitempty"`
2305
2306 Text string `json:"text,omitempty"`
2307
2308
2309
2310
2311
2312 ForceSendFields []string `json:"-"`
2313
2314
2315
2316
2317 NullFields []string `json:"-"`
2318 }
2319
2320 func (s *GoogleCloudDialogflowCxV3IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
2321 type NoMethod GoogleCloudDialogflowCxV3IntentTrainingPhrasePart
2322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2323 }
2324
2325
2326
2327
2328 type GoogleCloudDialogflowCxV3KnowledgeConnectorSettings struct {
2329
2330 DataStoreConnections []*GoogleCloudDialogflowCxV3DataStoreConnection `json:"dataStoreConnections,omitempty"`
2331
2332 Enabled bool `json:"enabled,omitempty"`
2333
2334
2335 TargetFlow string `json:"targetFlow,omitempty"`
2336
2337
2338 TargetPage string `json:"targetPage,omitempty"`
2339
2340
2341
2342
2343
2344 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
2345
2346
2347
2348
2349
2350 ForceSendFields []string `json:"-"`
2351
2352
2353
2354
2355 NullFields []string `json:"-"`
2356 }
2357
2358 func (s *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
2359 type NoMethod GoogleCloudDialogflowCxV3KnowledgeConnectorSettings
2360 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2361 }
2362
2363
2364
2365 type GoogleCloudDialogflowCxV3LanguageInfo struct {
2366
2367
2368 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
2369
2370 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
2371
2372
2373 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
2374
2375
2376
2377
2378
2379 ForceSendFields []string `json:"-"`
2380
2381
2382
2383
2384 NullFields []string `json:"-"`
2385 }
2386
2387 func (s *GoogleCloudDialogflowCxV3LanguageInfo) MarshalJSON() ([]byte, error) {
2388 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
2389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2390 }
2391
2392 func (s *GoogleCloudDialogflowCxV3LanguageInfo) UnmarshalJSON(data []byte) error {
2393 type NoMethod GoogleCloudDialogflowCxV3LanguageInfo
2394 var s1 struct {
2395 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
2396 *NoMethod
2397 }
2398 s1.NoMethod = (*NoMethod)(s)
2399 if err := json.Unmarshal(data, &s1); err != nil {
2400 return err
2401 }
2402 s.ConfidenceScore = float64(s1.ConfidenceScore)
2403 return nil
2404 }
2405
2406
2407
2408
2409
2410
2411
2412
2413
2414
2415
2416
2417
2418
2419 type GoogleCloudDialogflowCxV3Page struct {
2420
2421
2422
2423 AdvancedSettings *GoogleCloudDialogflowCxV3AdvancedSettings `json:"advancedSettings,omitempty"`
2424
2425
2426 Description string `json:"description,omitempty"`
2427
2428
2429 DisplayName string `json:"displayName,omitempty"`
2430
2431
2432 EntryFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"entryFulfillment,omitempty"`
2433
2434
2435 EventHandlers []*GoogleCloudDialogflowCxV3EventHandler `json:"eventHandlers,omitempty"`
2436
2437
2438 Form *GoogleCloudDialogflowCxV3Form `json:"form,omitempty"`
2439
2440 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
2441
2442
2443
2444 Name string `json:"name,omitempty"`
2445
2446
2447
2448
2449
2450
2451
2452
2453
2454
2455
2456
2457 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
2458
2459
2460
2461
2462
2463
2464
2465
2466
2467
2468 TransitionRoutes []*GoogleCloudDialogflowCxV3TransitionRoute `json:"transitionRoutes,omitempty"`
2469
2470
2471
2472
2473
2474 ForceSendFields []string `json:"-"`
2475
2476
2477
2478
2479 NullFields []string `json:"-"`
2480 }
2481
2482 func (s *GoogleCloudDialogflowCxV3Page) MarshalJSON() ([]byte, error) {
2483 type NoMethod GoogleCloudDialogflowCxV3Page
2484 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2485 }
2486
2487
2488
2489 type GoogleCloudDialogflowCxV3PageInfo struct {
2490
2491
2492
2493 CurrentPage string `json:"currentPage,omitempty"`
2494
2495
2496 DisplayName string `json:"displayName,omitempty"`
2497
2498
2499 FormInfo *GoogleCloudDialogflowCxV3PageInfoFormInfo `json:"formInfo,omitempty"`
2500
2501
2502
2503
2504
2505 ForceSendFields []string `json:"-"`
2506
2507
2508
2509
2510 NullFields []string `json:"-"`
2511 }
2512
2513 func (s *GoogleCloudDialogflowCxV3PageInfo) MarshalJSON() ([]byte, error) {
2514 type NoMethod GoogleCloudDialogflowCxV3PageInfo
2515 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2516 }
2517
2518
2519 type GoogleCloudDialogflowCxV3PageInfoFormInfo struct {
2520
2521
2522
2523 ParameterInfo []*GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
2524
2525
2526
2527
2528
2529 ForceSendFields []string `json:"-"`
2530
2531
2532
2533
2534 NullFields []string `json:"-"`
2535 }
2536
2537 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfo) MarshalJSON() ([]byte, error) {
2538 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfo
2539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2540 }
2541
2542
2543
2544 type GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo struct {
2545
2546
2547
2548 DisplayName string `json:"displayName,omitempty"`
2549
2550
2551
2552 JustCollected bool `json:"justCollected,omitempty"`
2553
2554
2555
2556
2557 Required bool `json:"required,omitempty"`
2558
2559
2560
2561
2562
2563
2564
2565
2566
2567
2568
2569
2570 State string `json:"state,omitempty"`
2571
2572
2573
2574 Value interface{} `json:"value,omitempty"`
2575
2576
2577
2578
2579
2580 ForceSendFields []string `json:"-"`
2581
2582
2583
2584
2585 NullFields []string `json:"-"`
2586 }
2587
2588 func (s *GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
2589 type NoMethod GoogleCloudDialogflowCxV3PageInfoFormInfoParameterInfo
2590 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2591 }
2592
2593
2594
2595
2596
2597
2598
2599 type GoogleCloudDialogflowCxV3QueryInput struct {
2600
2601 Audio *GoogleCloudDialogflowCxV3AudioInput `json:"audio,omitempty"`
2602
2603 Dtmf *GoogleCloudDialogflowCxV3DtmfInput `json:"dtmf,omitempty"`
2604
2605 Event *GoogleCloudDialogflowCxV3EventInput `json:"event,omitempty"`
2606
2607 Intent *GoogleCloudDialogflowCxV3IntentInput `json:"intent,omitempty"`
2608
2609
2610
2611
2612 LanguageCode string `json:"languageCode,omitempty"`
2613
2614 Text *GoogleCloudDialogflowCxV3TextInput `json:"text,omitempty"`
2615
2616
2617
2618
2619
2620 ForceSendFields []string `json:"-"`
2621
2622
2623
2624
2625 NullFields []string `json:"-"`
2626 }
2627
2628 func (s *GoogleCloudDialogflowCxV3QueryInput) MarshalJSON() ([]byte, error) {
2629 type NoMethod GoogleCloudDialogflowCxV3QueryInput
2630 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2631 }
2632
2633
2634
2635 type GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata struct {
2636
2637 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
2638
2639
2640
2641
2642
2643 ForceSendFields []string `json:"-"`
2644
2645
2646
2647
2648 NullFields []string `json:"-"`
2649 }
2650
2651 func (s *GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
2652 type NoMethod GoogleCloudDialogflowCxV3ReloadDocumentOperationMetadata
2653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2654 }
2655
2656
2657
2658
2659
2660
2661
2662
2663
2664
2665
2666
2667
2668
2669 type GoogleCloudDialogflowCxV3ResponseMessage struct {
2670
2671
2672
2673 Channel string `json:"channel,omitempty"`
2674
2675 ConversationSuccess *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
2676
2677
2678
2679
2680
2681 EndInteraction *GoogleCloudDialogflowCxV3ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
2682
2683
2684 KnowledgeInfoCard *GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
2685
2686 LiveAgentHandoff *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
2687
2688
2689
2690
2691 MixedAudio *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
2692
2693
2694
2695 OutputAudioText *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
2696
2697 Payload googleapi.RawMessage `json:"payload,omitempty"`
2698
2699
2700
2701 PlayAudio *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio `json:"playAudio,omitempty"`
2702
2703
2704
2705
2706
2707
2708
2709
2710 ResponseType string `json:"responseType,omitempty"`
2711
2712
2713 TelephonyTransferCall *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
2714
2715 Text *GoogleCloudDialogflowCxV3ResponseMessageText `json:"text,omitempty"`
2716
2717
2718
2719
2720
2721 ForceSendFields []string `json:"-"`
2722
2723
2724
2725
2726 NullFields []string `json:"-"`
2727 }
2728
2729 func (s *GoogleCloudDialogflowCxV3ResponseMessage) MarshalJSON() ([]byte, error) {
2730 type NoMethod GoogleCloudDialogflowCxV3ResponseMessage
2731 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2732 }
2733
2734
2735
2736
2737
2738
2739
2740
2741
2742
2743
2744 type GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess struct {
2745
2746 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2747
2748
2749
2750
2751
2752 ForceSendFields []string `json:"-"`
2753
2754
2755
2756
2757 NullFields []string `json:"-"`
2758 }
2759
2760 func (s *GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
2761 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageConversationSuccess
2762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2763 }
2764
2765
2766
2767
2768 type GoogleCloudDialogflowCxV3ResponseMessageEndInteraction struct {
2769 }
2770
2771
2772
2773
2774
2775 type GoogleCloudDialogflowCxV3ResponseMessageKnowledgeInfoCard struct {
2776 }
2777
2778
2779
2780
2781
2782
2783
2784
2785
2786 type GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff struct {
2787
2788
2789 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
2790
2791
2792
2793
2794
2795 ForceSendFields []string `json:"-"`
2796
2797
2798
2799
2800 NullFields []string `json:"-"`
2801 }
2802
2803 func (s *GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
2804 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageLiveAgentHandoff
2805 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2806 }
2807
2808
2809
2810
2811
2812
2813 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudio struct {
2814
2815 Segments []*GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
2816
2817
2818
2819
2820
2821 ForceSendFields []string `json:"-"`
2822
2823
2824
2825
2826 NullFields []string `json:"-"`
2827 }
2828
2829 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
2830 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudio
2831 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2832 }
2833
2834
2835
2836 type GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment struct {
2837
2838
2839
2840 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2841
2842
2843 Audio string `json:"audio,omitempty"`
2844
2845
2846 Uri string `json:"uri,omitempty"`
2847
2848
2849
2850
2851
2852 ForceSendFields []string `json:"-"`
2853
2854
2855
2856
2857 NullFields []string `json:"-"`
2858 }
2859
2860 func (s *GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
2861 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageMixedAudioSegment
2862 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2863 }
2864
2865
2866
2867
2868 type GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText struct {
2869
2870
2871
2872 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2873
2874
2875 Ssml string `json:"ssml,omitempty"`
2876
2877 Text string `json:"text,omitempty"`
2878
2879
2880
2881
2882
2883 ForceSendFields []string `json:"-"`
2884
2885
2886
2887
2888 NullFields []string `json:"-"`
2889 }
2890
2891 func (s *GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
2892 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageOutputAudioText
2893 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2894 }
2895
2896
2897
2898 type GoogleCloudDialogflowCxV3ResponseMessagePlayAudio struct {
2899
2900
2901
2902 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2903
2904
2905 AudioUri string `json:"audioUri,omitempty"`
2906
2907
2908
2909
2910
2911 ForceSendFields []string `json:"-"`
2912
2913
2914
2915
2916 NullFields []string `json:"-"`
2917 }
2918
2919 func (s *GoogleCloudDialogflowCxV3ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
2920 type NoMethod GoogleCloudDialogflowCxV3ResponseMessagePlayAudio
2921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2922 }
2923
2924
2925
2926
2927 type GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall struct {
2928
2929
2930 PhoneNumber string `json:"phoneNumber,omitempty"`
2931
2932
2933
2934
2935
2936 ForceSendFields []string `json:"-"`
2937
2938
2939
2940
2941 NullFields []string `json:"-"`
2942 }
2943
2944 func (s *GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
2945 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
2946 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2947 }
2948
2949
2950 type GoogleCloudDialogflowCxV3ResponseMessageText struct {
2951
2952
2953
2954 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
2955
2956 Text []string `json:"text,omitempty"`
2957
2958
2959
2960
2961
2962 ForceSendFields []string `json:"-"`
2963
2964
2965
2966
2967 NullFields []string `json:"-"`
2968 }
2969
2970 func (s *GoogleCloudDialogflowCxV3ResponseMessageText) MarshalJSON() ([]byte, error) {
2971 type NoMethod GoogleCloudDialogflowCxV3ResponseMessageText
2972 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2973 }
2974
2975
2976
2977 type GoogleCloudDialogflowCxV3RunContinuousTestMetadata struct {
2978
2979 Errors []*GoogleCloudDialogflowCxV3TestError `json:"errors,omitempty"`
2980
2981
2982
2983
2984
2985 ForceSendFields []string `json:"-"`
2986
2987
2988
2989
2990 NullFields []string `json:"-"`
2991 }
2992
2993 func (s *GoogleCloudDialogflowCxV3RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
2994 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestMetadata
2995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2996 }
2997
2998
2999
3000 type GoogleCloudDialogflowCxV3RunContinuousTestResponse struct {
3001
3002 ContinuousTestResult *GoogleCloudDialogflowCxV3ContinuousTestResult `json:"continuousTestResult,omitempty"`
3003
3004
3005
3006
3007
3008 ForceSendFields []string `json:"-"`
3009
3010
3011
3012
3013 NullFields []string `json:"-"`
3014 }
3015
3016 func (s *GoogleCloudDialogflowCxV3RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
3017 type NoMethod GoogleCloudDialogflowCxV3RunContinuousTestResponse
3018 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3019 }
3020
3021
3022
3023
3024 type GoogleCloudDialogflowCxV3RunTestCaseMetadata struct {
3025 }
3026
3027
3028
3029 type GoogleCloudDialogflowCxV3RunTestCaseResponse struct {
3030
3031 Result *GoogleCloudDialogflowCxV3TestCaseResult `json:"result,omitempty"`
3032
3033
3034
3035
3036
3037 ForceSendFields []string `json:"-"`
3038
3039
3040
3041
3042 NullFields []string `json:"-"`
3043 }
3044
3045 func (s *GoogleCloudDialogflowCxV3RunTestCaseResponse) MarshalJSON() ([]byte, error) {
3046 type NoMethod GoogleCloudDialogflowCxV3RunTestCaseResponse
3047 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3048 }
3049
3050
3051
3052 type GoogleCloudDialogflowCxV3SessionInfo struct {
3053
3054
3055
3056
3057
3058 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
3059
3060
3061
3062
3063
3064 Session string `json:"session,omitempty"`
3065
3066
3067
3068
3069
3070 ForceSendFields []string `json:"-"`
3071
3072
3073
3074
3075 NullFields []string `json:"-"`
3076 }
3077
3078 func (s *GoogleCloudDialogflowCxV3SessionInfo) MarshalJSON() ([]byte, error) {
3079 type NoMethod GoogleCloudDialogflowCxV3SessionInfo
3080 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3081 }
3082
3083
3084 type GoogleCloudDialogflowCxV3TestCase struct {
3085
3086 CreationTime string `json:"creationTime,omitempty"`
3087
3088
3089 DisplayName string `json:"displayName,omitempty"`
3090
3091 LastTestResult *GoogleCloudDialogflowCxV3TestCaseResult `json:"lastTestResult,omitempty"`
3092
3093
3094
3095 Name string `json:"name,omitempty"`
3096
3097
3098 Notes string `json:"notes,omitempty"`
3099
3100
3101
3102 Tags []string `json:"tags,omitempty"`
3103
3104
3105
3106 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"testCaseConversationTurns,omitempty"`
3107
3108 TestConfig *GoogleCloudDialogflowCxV3TestConfig `json:"testConfig,omitempty"`
3109
3110
3111
3112
3113
3114 ForceSendFields []string `json:"-"`
3115
3116
3117
3118
3119 NullFields []string `json:"-"`
3120 }
3121
3122 func (s *GoogleCloudDialogflowCxV3TestCase) MarshalJSON() ([]byte, error) {
3123 type NoMethod GoogleCloudDialogflowCxV3TestCase
3124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3125 }
3126
3127
3128 type GoogleCloudDialogflowCxV3TestCaseError struct {
3129
3130 Status *GoogleRpcStatus `json:"status,omitempty"`
3131
3132 TestCase *GoogleCloudDialogflowCxV3TestCase `json:"testCase,omitempty"`
3133
3134
3135
3136
3137
3138 ForceSendFields []string `json:"-"`
3139
3140
3141
3142
3143 NullFields []string `json:"-"`
3144 }
3145
3146 func (s *GoogleCloudDialogflowCxV3TestCaseError) MarshalJSON() ([]byte, error) {
3147 type NoMethod GoogleCloudDialogflowCxV3TestCaseError
3148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3149 }
3150
3151
3152
3153 type GoogleCloudDialogflowCxV3TestCaseResult struct {
3154
3155
3156 ConversationTurns []*GoogleCloudDialogflowCxV3ConversationTurn `json:"conversationTurns,omitempty"`
3157
3158
3159 Environment string `json:"environment,omitempty"`
3160
3161
3162 Name string `json:"name,omitempty"`
3163
3164
3165
3166
3167
3168
3169 TestResult string `json:"testResult,omitempty"`
3170
3171 TestTime string `json:"testTime,omitempty"`
3172
3173
3174
3175
3176
3177 ForceSendFields []string `json:"-"`
3178
3179
3180
3181
3182 NullFields []string `json:"-"`
3183 }
3184
3185 func (s *GoogleCloudDialogflowCxV3TestCaseResult) MarshalJSON() ([]byte, error) {
3186 type NoMethod GoogleCloudDialogflowCxV3TestCaseResult
3187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3188 }
3189
3190
3191
3192 type GoogleCloudDialogflowCxV3TestConfig struct {
3193
3194
3195
3196
3197
3198 Flow string `json:"flow,omitempty"`
3199
3200
3201
3202
3203
3204 Page string `json:"page,omitempty"`
3205
3206
3207 TrackingParameters []string `json:"trackingParameters,omitempty"`
3208
3209
3210
3211
3212
3213 ForceSendFields []string `json:"-"`
3214
3215
3216
3217
3218 NullFields []string `json:"-"`
3219 }
3220
3221 func (s *GoogleCloudDialogflowCxV3TestConfig) MarshalJSON() ([]byte, error) {
3222 type NoMethod GoogleCloudDialogflowCxV3TestConfig
3223 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3224 }
3225
3226
3227 type GoogleCloudDialogflowCxV3TestError struct {
3228
3229 Status *GoogleRpcStatus `json:"status,omitempty"`
3230
3231 TestCase string `json:"testCase,omitempty"`
3232
3233 TestTime string `json:"testTime,omitempty"`
3234
3235
3236
3237
3238
3239 ForceSendFields []string `json:"-"`
3240
3241
3242
3243
3244 NullFields []string `json:"-"`
3245 }
3246
3247 func (s *GoogleCloudDialogflowCxV3TestError) MarshalJSON() ([]byte, error) {
3248 type NoMethod GoogleCloudDialogflowCxV3TestError
3249 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3250 }
3251
3252
3253
3254 type GoogleCloudDialogflowCxV3TestRunDifference struct {
3255
3256
3257 Description string `json:"description,omitempty"`
3258
3259
3260
3261
3262
3263
3264
3265
3266
3267 Type string `json:"type,omitempty"`
3268
3269
3270
3271
3272
3273 ForceSendFields []string `json:"-"`
3274
3275
3276
3277
3278 NullFields []string `json:"-"`
3279 }
3280
3281 func (s *GoogleCloudDialogflowCxV3TestRunDifference) MarshalJSON() ([]byte, error) {
3282 type NoMethod GoogleCloudDialogflowCxV3TestRunDifference
3283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3284 }
3285
3286
3287
3288 type GoogleCloudDialogflowCxV3TextInput struct {
3289
3290 Text string `json:"text,omitempty"`
3291
3292
3293
3294
3295
3296 ForceSendFields []string `json:"-"`
3297
3298
3299
3300
3301 NullFields []string `json:"-"`
3302 }
3303
3304 func (s *GoogleCloudDialogflowCxV3TextInput) MarshalJSON() ([]byte, error) {
3305 type NoMethod GoogleCloudDialogflowCxV3TextInput
3306 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3307 }
3308
3309
3310
3311
3312
3313
3314
3315
3316
3317 type GoogleCloudDialogflowCxV3TransitionRoute struct {
3318
3319
3320
3321
3322
3323
3324 Condition string `json:"condition,omitempty"`
3325
3326
3327 Description string `json:"description,omitempty"`
3328
3329
3330
3331
3332
3333 Intent string `json:"intent,omitempty"`
3334
3335 Name string `json:"name,omitempty"`
3336
3337
3338 TargetFlow string `json:"targetFlow,omitempty"`
3339
3340
3341 TargetPage string `json:"targetPage,omitempty"`
3342
3343
3344
3345 TriggerFulfillment *GoogleCloudDialogflowCxV3Fulfillment `json:"triggerFulfillment,omitempty"`
3346
3347
3348
3349
3350
3351 ForceSendFields []string `json:"-"`
3352
3353
3354
3355
3356 NullFields []string `json:"-"`
3357 }
3358
3359 func (s *GoogleCloudDialogflowCxV3TransitionRoute) MarshalJSON() ([]byte, error) {
3360 type NoMethod GoogleCloudDialogflowCxV3TransitionRoute
3361 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3362 }
3363
3364
3365
3366 type GoogleCloudDialogflowCxV3TurnSignals struct {
3367
3368 AgentEscalated bool `json:"agentEscalated,omitempty"`
3369
3370 DtmfUsed bool `json:"dtmfUsed,omitempty"`
3371
3372
3373
3374
3375
3376
3377 FailureReasons []string `json:"failureReasons,omitempty"`
3378
3379 NoMatch bool `json:"noMatch,omitempty"`
3380
3381 NoUserInput bool `json:"noUserInput,omitempty"`
3382
3383 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
3384
3385
3386 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
3387
3388
3389 SentimentScore float64 `json:"sentimentScore,omitempty"`
3390
3391 UserEscalated bool `json:"userEscalated,omitempty"`
3392
3393
3394 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
3395
3396
3397
3398
3399
3400 ForceSendFields []string `json:"-"`
3401
3402
3403
3404
3405 NullFields []string `json:"-"`
3406 }
3407
3408 func (s *GoogleCloudDialogflowCxV3TurnSignals) MarshalJSON() ([]byte, error) {
3409 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
3410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3411 }
3412
3413 func (s *GoogleCloudDialogflowCxV3TurnSignals) UnmarshalJSON(data []byte) error {
3414 type NoMethod GoogleCloudDialogflowCxV3TurnSignals
3415 var s1 struct {
3416 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
3417 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
3418 *NoMethod
3419 }
3420 s1.NoMethod = (*NoMethod)(s)
3421 if err := json.Unmarshal(data, &s1); err != nil {
3422 return err
3423 }
3424 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
3425 s.SentimentScore = float64(s1.SentimentScore)
3426 return nil
3427 }
3428
3429
3430
3431 type GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata struct {
3432
3433 GenericMetadata *GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
3434
3435
3436
3437
3438
3439 ForceSendFields []string `json:"-"`
3440
3441
3442
3443
3444 NullFields []string `json:"-"`
3445 }
3446
3447 func (s *GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
3448 type NoMethod GoogleCloudDialogflowCxV3UpdateDocumentOperationMetadata
3449 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3450 }
3451
3452
3453
3454
3455
3456 type GoogleCloudDialogflowCxV3Webhook struct {
3457
3458 Disabled bool `json:"disabled,omitempty"`
3459
3460
3461 DisplayName string `json:"displayName,omitempty"`
3462
3463 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
3464
3465
3466
3467 Name string `json:"name,omitempty"`
3468
3469
3470 ServiceDirectory *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
3471
3472
3473
3474 Timeout string `json:"timeout,omitempty"`
3475
3476
3477
3478
3479
3480 ForceSendFields []string `json:"-"`
3481
3482
3483
3484
3485 NullFields []string `json:"-"`
3486 }
3487
3488 func (s *GoogleCloudDialogflowCxV3Webhook) MarshalJSON() ([]byte, error) {
3489 type NoMethod GoogleCloudDialogflowCxV3Webhook
3490 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3491 }
3492
3493
3494
3495 type GoogleCloudDialogflowCxV3WebhookGenericWebService struct {
3496
3497
3498
3499
3500
3501
3502
3503
3504 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
3505
3506
3507
3508
3509
3510
3511
3512
3513
3514
3515
3516
3517 HttpMethod string `json:"httpMethod,omitempty"`
3518
3519
3520
3521 OauthConfig *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
3522
3523
3524
3525 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
3526
3527 Password string `json:"password,omitempty"`
3528
3529
3530 RequestBody string `json:"requestBody,omitempty"`
3531
3532
3533 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
3534
3535
3536
3537
3538
3539
3540
3541
3542
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
3554
3555
3556 Uri string `json:"uri,omitempty"`
3557
3558 Username string `json:"username,omitempty"`
3559
3560
3561
3562
3563
3564
3565 WebhookType string `json:"webhookType,omitempty"`
3566
3567
3568
3569
3570
3571 ForceSendFields []string `json:"-"`
3572
3573
3574
3575
3576 NullFields []string `json:"-"`
3577 }
3578
3579 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebService) MarshalJSON() ([]byte, error) {
3580 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebService
3581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3582 }
3583
3584
3585
3586
3587 type GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig struct {
3588
3589 ClientId string `json:"clientId,omitempty"`
3590
3591
3592 ClientSecret string `json:"clientSecret,omitempty"`
3593
3594 Scopes []string `json:"scopes,omitempty"`
3595
3596
3597 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
3598
3599
3600
3601
3602
3603 ForceSendFields []string `json:"-"`
3604
3605
3606
3607
3608 NullFields []string `json:"-"`
3609 }
3610
3611 func (s *GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
3612 type NoMethod GoogleCloudDialogflowCxV3WebhookGenericWebServiceOAuthConfig
3613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3614 }
3615
3616
3617
3618
3619
3620
3621 type GoogleCloudDialogflowCxV3WebhookRequest struct {
3622
3623
3624 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
3625
3626
3627 DtmfDigits string `json:"dtmfDigits,omitempty"`
3628
3629
3630 FulfillmentInfo *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
3631
3632 IntentInfo *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
3633
3634 LanguageCode string `json:"languageCode,omitempty"`
3635
3636 LanguageInfo *GoogleCloudDialogflowCxV3LanguageInfo `json:"languageInfo,omitempty"`
3637
3638
3639
3640 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3641
3642 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3643
3644 Payload googleapi.RawMessage `json:"payload,omitempty"`
3645
3646
3647
3648 SentimentAnalysisResult *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
3649
3650 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3651
3652
3653 Text string `json:"text,omitempty"`
3654
3655
3656 Transcript string `json:"transcript,omitempty"`
3657
3658
3659 TriggerEvent string `json:"triggerEvent,omitempty"`
3660
3661
3662
3663 TriggerIntent string `json:"triggerIntent,omitempty"`
3664
3665
3666
3667
3668
3669 ForceSendFields []string `json:"-"`
3670
3671
3672
3673
3674 NullFields []string `json:"-"`
3675 }
3676
3677 func (s *GoogleCloudDialogflowCxV3WebhookRequest) MarshalJSON() ([]byte, error) {
3678 type NoMethod GoogleCloudDialogflowCxV3WebhookRequest
3679 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3680 }
3681
3682
3683
3684 type GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo struct {
3685
3686
3687
3688
3689 Tag string `json:"tag,omitempty"`
3690
3691
3692
3693
3694
3695 ForceSendFields []string `json:"-"`
3696
3697
3698
3699
3700 NullFields []string `json:"-"`
3701 }
3702
3703 func (s *GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
3704 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestFulfillmentInfo
3705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3706 }
3707
3708
3709
3710 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfo struct {
3711
3712
3713 Confidence float64 `json:"confidence,omitempty"`
3714
3715 DisplayName string `json:"displayName,omitempty"`
3716
3717
3718 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
3719
3720
3721
3722
3723 Parameters map[string]GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
3724
3725
3726
3727
3728
3729 ForceSendFields []string `json:"-"`
3730
3731
3732
3733
3734 NullFields []string `json:"-"`
3735 }
3736
3737 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
3738 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
3739 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3740 }
3741
3742 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
3743 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfo
3744 var s1 struct {
3745 Confidence gensupport.JSONFloat64 `json:"confidence"`
3746 *NoMethod
3747 }
3748 s1.NoMethod = (*NoMethod)(s)
3749 if err := json.Unmarshal(data, &s1); err != nil {
3750 return err
3751 }
3752 s.Confidence = float64(s1.Confidence)
3753 return nil
3754 }
3755
3756
3757
3758 type GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue struct {
3759
3760
3761 OriginalValue string `json:"originalValue,omitempty"`
3762
3763
3764 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
3765
3766
3767
3768
3769
3770 ForceSendFields []string `json:"-"`
3771
3772
3773
3774
3775 NullFields []string `json:"-"`
3776 }
3777
3778 func (s *GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
3779 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestIntentInfoIntentParameterValue
3780 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3781 }
3782
3783
3784
3785 type GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult struct {
3786
3787
3788
3789 Magnitude float64 `json:"magnitude,omitempty"`
3790
3791
3792 Score float64 `json:"score,omitempty"`
3793
3794
3795
3796
3797
3798 ForceSendFields []string `json:"-"`
3799
3800
3801
3802
3803 NullFields []string `json:"-"`
3804 }
3805
3806 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
3807 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3809 }
3810
3811 func (s *GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
3812 type NoMethod GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
3813 var s1 struct {
3814 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
3815 Score gensupport.JSONFloat64 `json:"score"`
3816 *NoMethod
3817 }
3818 s1.NoMethod = (*NoMethod)(s)
3819 if err := json.Unmarshal(data, &s1); err != nil {
3820 return err
3821 }
3822 s.Magnitude = float64(s1.Magnitude)
3823 s.Score = float64(s1.Score)
3824 return nil
3825 }
3826
3827
3828
3829 type GoogleCloudDialogflowCxV3WebhookResponse struct {
3830
3831
3832
3833 FulfillmentResponse *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
3834
3835
3836 PageInfo *GoogleCloudDialogflowCxV3PageInfo `json:"pageInfo,omitempty"`
3837
3838 Payload googleapi.RawMessage `json:"payload,omitempty"`
3839
3840
3841 SessionInfo *GoogleCloudDialogflowCxV3SessionInfo `json:"sessionInfo,omitempty"`
3842
3843
3844 TargetFlow string `json:"targetFlow,omitempty"`
3845
3846
3847 TargetPage string `json:"targetPage,omitempty"`
3848
3849
3850
3851
3852
3853 ForceSendFields []string `json:"-"`
3854
3855
3856
3857
3858 NullFields []string `json:"-"`
3859 }
3860
3861 func (s *GoogleCloudDialogflowCxV3WebhookResponse) MarshalJSON() ([]byte, error) {
3862 type NoMethod GoogleCloudDialogflowCxV3WebhookResponse
3863 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3864 }
3865
3866
3867
3868 type GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse struct {
3869
3870
3871
3872
3873
3874
3875
3876
3877 MergeBehavior string `json:"mergeBehavior,omitempty"`
3878
3879 Messages []*GoogleCloudDialogflowCxV3ResponseMessage `json:"messages,omitempty"`
3880
3881
3882
3883
3884
3885 ForceSendFields []string `json:"-"`
3886
3887
3888
3889
3890 NullFields []string `json:"-"`
3891 }
3892
3893 func (s *GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
3894 type NoMethod GoogleCloudDialogflowCxV3WebhookResponseFulfillmentResponse
3895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3896 }
3897
3898
3899
3900
3901 type GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig struct {
3902
3903 GenericWebService *GoogleCloudDialogflowCxV3WebhookGenericWebService `json:"genericWebService,omitempty"`
3904
3905
3906
3907
3908 Service string `json:"service,omitempty"`
3909
3910
3911
3912
3913
3914 ForceSendFields []string `json:"-"`
3915
3916
3917
3918
3919 NullFields []string `json:"-"`
3920 }
3921
3922 func (s *GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
3923 type NoMethod GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
3924 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3925 }
3926
3927
3928
3929
3930
3931
3932
3933
3934
3935
3936 type GoogleCloudDialogflowCxV3beta1AdvancedSettings struct {
3937
3938
3939
3940 AudioExportGcsDestination *GoogleCloudDialogflowCxV3beta1GcsDestination `json:"audioExportGcsDestination,omitempty"`
3941
3942
3943 DtmfSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings `json:"dtmfSettings,omitempty"`
3944
3945
3946
3947 LoggingSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings `json:"loggingSettings,omitempty"`
3948
3949
3950 SpeechSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings `json:"speechSettings,omitempty"`
3951
3952
3953
3954
3955
3956 ForceSendFields []string `json:"-"`
3957
3958
3959
3960
3961 NullFields []string `json:"-"`
3962 }
3963
3964 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettings) MarshalJSON() ([]byte, error) {
3965 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettings
3966 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3967 }
3968
3969
3970
3971 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings struct {
3972
3973
3974
3975
3976
3977
3978 Enabled bool `json:"enabled,omitempty"`
3979
3980
3981 EndpointingTimeoutDuration string `json:"endpointingTimeoutDuration,omitempty"`
3982
3983 FinishDigit string `json:"finishDigit,omitempty"`
3984
3985
3986 InterdigitTimeoutDuration string `json:"interdigitTimeoutDuration,omitempty"`
3987
3988 MaxDigits int64 `json:"maxDigits,omitempty"`
3989
3990
3991
3992
3993
3994 ForceSendFields []string `json:"-"`
3995
3996
3997
3998
3999 NullFields []string `json:"-"`
4000 }
4001
4002 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings) MarshalJSON() ([]byte, error) {
4003 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
4004 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4005 }
4006
4007
4008
4009 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings struct {
4010
4011
4012 EnableInteractionLogging bool `json:"enableInteractionLogging,omitempty"`
4013
4014 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
4015
4016
4017
4018
4019
4020 ForceSendFields []string `json:"-"`
4021
4022
4023
4024
4025 NullFields []string `json:"-"`
4026 }
4027
4028 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings) MarshalJSON() ([]byte, error) {
4029 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
4030 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4031 }
4032
4033
4034
4035 type GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings struct {
4036
4037
4038 EndpointerSensitivity int64 `json:"endpointerSensitivity,omitempty"`
4039
4040
4041
4042
4043 Models map[string]string `json:"models,omitempty"`
4044
4045 NoSpeechTimeout string `json:"noSpeechTimeout,omitempty"`
4046
4047
4048 UseTimeoutBasedEndpointing bool `json:"useTimeoutBasedEndpointing,omitempty"`
4049
4050
4051
4052
4053
4054 ForceSendFields []string `json:"-"`
4055
4056
4057
4058
4059 NullFields []string `json:"-"`
4060 }
4061
4062 func (s *GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings) MarshalJSON() ([]byte, error) {
4063 type NoMethod GoogleCloudDialogflowCxV3beta1AdvancedSettingsSpeechSettings
4064 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4065 }
4066
4067
4068
4069
4070
4071
4072
4073 type GoogleCloudDialogflowCxV3beta1Agent struct {
4074
4075
4076
4077 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
4078
4079 AnswerFeedbackSettings *GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings `json:"answerFeedbackSettings,omitempty"`
4080
4081
4082
4083
4084 AvatarUri string `json:"avatarUri,omitempty"`
4085
4086
4087
4088
4089
4090 DefaultLanguageCode string `json:"defaultLanguageCode,omitempty"`
4091
4092
4093 Description string `json:"description,omitempty"`
4094
4095
4096 DisplayName string `json:"displayName,omitempty"`
4097
4098
4099
4100 EnableMultiLanguageTraining bool `json:"enableMultiLanguageTraining,omitempty"`
4101
4102
4103 EnableSpellCorrection bool `json:"enableSpellCorrection,omitempty"`
4104
4105
4106 EnableStackdriverLogging bool `json:"enableStackdriverLogging,omitempty"`
4107
4108 GenAppBuilderSettings *GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings `json:"genAppBuilderSettings,omitempty"`
4109
4110 GitIntegrationSettings *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings `json:"gitIntegrationSettings,omitempty"`
4111
4112
4113 Locked bool `json:"locked,omitempty"`
4114
4115
4116
4117 Name string `json:"name,omitempty"`
4118
4119 PersonalizationSettings *GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings `json:"personalizationSettings,omitempty"`
4120
4121
4122 SecuritySettings string `json:"securitySettings,omitempty"`
4123
4124 SpeechToTextSettings *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings `json:"speechToTextSettings,omitempty"`
4125
4126
4127
4128
4129 StartFlow string `json:"startFlow,omitempty"`
4130
4131
4132 SupportedLanguageCodes []string `json:"supportedLanguageCodes,omitempty"`
4133
4134
4135 TextToSpeechSettings *GoogleCloudDialogflowCxV3beta1TextToSpeechSettings `json:"textToSpeechSettings,omitempty"`
4136
4137
4138 TimeZone string `json:"timeZone,omitempty"`
4139
4140
4141 googleapi.ServerResponse `json:"-"`
4142
4143
4144
4145
4146
4147 ForceSendFields []string `json:"-"`
4148
4149
4150
4151
4152 NullFields []string `json:"-"`
4153 }
4154
4155 func (s *GoogleCloudDialogflowCxV3beta1Agent) MarshalJSON() ([]byte, error) {
4156 type NoMethod GoogleCloudDialogflowCxV3beta1Agent
4157 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4158 }
4159
4160
4161
4162 type GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings struct {
4163
4164
4165
4166 EnableAnswerFeedback bool `json:"enableAnswerFeedback,omitempty"`
4167
4168
4169
4170
4171
4172 ForceSendFields []string `json:"-"`
4173
4174
4175
4176
4177 NullFields []string `json:"-"`
4178 }
4179
4180 func (s *GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings) MarshalJSON() ([]byte, error) {
4181 type NoMethod GoogleCloudDialogflowCxV3beta1AgentAnswerFeedbackSettings
4182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4183 }
4184
4185
4186
4187 type GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings struct {
4188
4189
4190
4191 Engine string `json:"engine,omitempty"`
4192
4193
4194
4195
4196
4197 ForceSendFields []string `json:"-"`
4198
4199
4200
4201
4202 NullFields []string `json:"-"`
4203 }
4204
4205 func (s *GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings) MarshalJSON() ([]byte, error) {
4206 type NoMethod GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings
4207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4208 }
4209
4210
4211
4212 type GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings struct {
4213
4214 GithubSettings *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings `json:"githubSettings,omitempty"`
4215
4216
4217
4218
4219
4220 ForceSendFields []string `json:"-"`
4221
4222
4223
4224
4225 NullFields []string `json:"-"`
4226 }
4227
4228 func (s *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings) MarshalJSON() ([]byte, error) {
4229 type NoMethod GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings
4230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4231 }
4232
4233
4234
4235 type GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings struct {
4236
4237
4238 AccessToken string `json:"accessToken,omitempty"`
4239
4240 Branches []string `json:"branches,omitempty"`
4241
4242 DisplayName string `json:"displayName,omitempty"`
4243
4244 RepositoryUri string `json:"repositoryUri,omitempty"`
4245
4246 TrackingBranch string `json:"trackingBranch,omitempty"`
4247
4248
4249
4250
4251
4252 ForceSendFields []string `json:"-"`
4253
4254
4255
4256
4257 NullFields []string `json:"-"`
4258 }
4259
4260 func (s *GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings) MarshalJSON() ([]byte, error) {
4261 type NoMethod GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings
4262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4263 }
4264
4265
4266
4267 type GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings struct {
4268
4269
4270
4271
4272
4273 DefaultEndUserMetadata googleapi.RawMessage `json:"defaultEndUserMetadata,omitempty"`
4274
4275
4276
4277
4278
4279 ForceSendFields []string `json:"-"`
4280
4281
4282
4283
4284 NullFields []string `json:"-"`
4285 }
4286
4287 func (s *GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings) MarshalJSON() ([]byte, error) {
4288 type NoMethod GoogleCloudDialogflowCxV3beta1AgentPersonalizationSettings
4289 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4290 }
4291
4292
4293
4294 type GoogleCloudDialogflowCxV3beta1AgentValidationResult struct {
4295
4296 FlowValidationResults []*GoogleCloudDialogflowCxV3beta1FlowValidationResult `json:"flowValidationResults,omitempty"`
4297
4298
4299 Name string `json:"name,omitempty"`
4300
4301
4302 googleapi.ServerResponse `json:"-"`
4303
4304
4305
4306
4307
4308 ForceSendFields []string `json:"-"`
4309
4310
4311
4312
4313 NullFields []string `json:"-"`
4314 }
4315
4316 func (s *GoogleCloudDialogflowCxV3beta1AgentValidationResult) MarshalJSON() ([]byte, error) {
4317 type NoMethod GoogleCloudDialogflowCxV3beta1AgentValidationResult
4318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4319 }
4320
4321
4322
4323 type GoogleCloudDialogflowCxV3beta1AnswerFeedback struct {
4324
4325
4326
4327 CustomRating string `json:"customRating,omitempty"`
4328
4329
4330
4331
4332
4333
4334 Rating string `json:"rating,omitempty"`
4335
4336
4337 RatingReason *GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason `json:"ratingReason,omitempty"`
4338
4339
4340 googleapi.ServerResponse `json:"-"`
4341
4342
4343
4344
4345
4346 ForceSendFields []string `json:"-"`
4347
4348
4349
4350
4351 NullFields []string `json:"-"`
4352 }
4353
4354 func (s *GoogleCloudDialogflowCxV3beta1AnswerFeedback) MarshalJSON() ([]byte, error) {
4355 type NoMethod GoogleCloudDialogflowCxV3beta1AnswerFeedback
4356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4357 }
4358
4359
4360
4361 type GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason struct {
4362
4363
4364 Feedback string `json:"feedback,omitempty"`
4365
4366
4367
4368 ReasonLabels []string `json:"reasonLabels,omitempty"`
4369
4370
4371
4372
4373
4374 ForceSendFields []string `json:"-"`
4375
4376
4377
4378
4379 NullFields []string `json:"-"`
4380 }
4381
4382 func (s *GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason) MarshalJSON() ([]byte, error) {
4383 type NoMethod GoogleCloudDialogflowCxV3beta1AnswerFeedbackRatingReason
4384 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4385 }
4386
4387
4388
4389 type GoogleCloudDialogflowCxV3beta1AudioInput struct {
4390
4391
4392
4393
4394
4395
4396 Audio string `json:"audio,omitempty"`
4397
4398
4399 Config *GoogleCloudDialogflowCxV3beta1InputAudioConfig `json:"config,omitempty"`
4400
4401
4402
4403
4404
4405 ForceSendFields []string `json:"-"`
4406
4407
4408
4409
4410 NullFields []string `json:"-"`
4411 }
4412
4413 func (s *GoogleCloudDialogflowCxV3beta1AudioInput) MarshalJSON() ([]byte, error) {
4414 type NoMethod GoogleCloudDialogflowCxV3beta1AudioInput
4415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4416 }
4417
4418
4419
4420
4421
4422
4423
4424
4425
4426
4427
4428
4429
4430
4431
4432
4433
4434 type GoogleCloudDialogflowCxV3beta1BargeInConfig struct {
4435
4436
4437 NoBargeInDuration string `json:"noBargeInDuration,omitempty"`
4438
4439
4440 TotalDuration string `json:"totalDuration,omitempty"`
4441
4442
4443
4444
4445
4446 ForceSendFields []string `json:"-"`
4447
4448
4449
4450
4451 NullFields []string `json:"-"`
4452 }
4453
4454 func (s *GoogleCloudDialogflowCxV3beta1BargeInConfig) MarshalJSON() ([]byte, error) {
4455 type NoMethod GoogleCloudDialogflowCxV3beta1BargeInConfig
4456 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4457 }
4458
4459
4460
4461 type GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest struct {
4462
4463
4464 Names []string `json:"names,omitempty"`
4465
4466
4467
4468
4469
4470 ForceSendFields []string `json:"-"`
4471
4472
4473
4474
4475 NullFields []string `json:"-"`
4476 }
4477
4478 func (s *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest) MarshalJSON() ([]byte, error) {
4479 type NoMethod GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest
4480 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4481 }
4482
4483
4484
4485 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata struct {
4486
4487 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
4488
4489
4490
4491
4492
4493 ForceSendFields []string `json:"-"`
4494
4495
4496
4497
4498 NullFields []string `json:"-"`
4499 }
4500
4501 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata) MarshalJSON() ([]byte, error) {
4502 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesMetadata
4503 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4504 }
4505
4506
4507
4508 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest struct {
4509
4510
4511 Environment string `json:"environment,omitempty"`
4512
4513 TestCases []string `json:"testCases,omitempty"`
4514
4515
4516
4517
4518
4519 ForceSendFields []string `json:"-"`
4520
4521
4522
4523
4524 NullFields []string `json:"-"`
4525 }
4526
4527 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest) MarshalJSON() ([]byte, error) {
4528 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest
4529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4530 }
4531
4532
4533
4534 type GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse struct {
4535
4536
4537 Results []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"results,omitempty"`
4538
4539
4540
4541
4542
4543 ForceSendFields []string `json:"-"`
4544
4545
4546
4547
4548 NullFields []string `json:"-"`
4549 }
4550
4551 func (s *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse) MarshalJSON() ([]byte, error) {
4552 type NoMethod GoogleCloudDialogflowCxV3beta1BatchRunTestCasesResponse
4553 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4554 }
4555
4556
4557
4558
4559
4560 type GoogleCloudDialogflowCxV3beta1BoostSpec struct {
4561
4562
4563
4564
4565 ConditionBoostSpecs []*GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec `json:"conditionBoostSpecs,omitempty"`
4566
4567
4568
4569
4570
4571 ForceSendFields []string `json:"-"`
4572
4573
4574
4575
4576 NullFields []string `json:"-"`
4577 }
4578
4579 func (s *GoogleCloudDialogflowCxV3beta1BoostSpec) MarshalJSON() ([]byte, error) {
4580 type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpec
4581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4582 }
4583
4584
4585
4586 type GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec struct {
4587
4588
4589
4590
4591
4592
4593
4594
4595
4596
4597
4598
4599 Boost float64 `json:"boost,omitempty"`
4600
4601
4602
4603
4604 Condition string `json:"condition,omitempty"`
4605
4606
4607
4608
4609
4610 ForceSendFields []string `json:"-"`
4611
4612
4613
4614
4615 NullFields []string `json:"-"`
4616 }
4617
4618 func (s *GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec) MarshalJSON() ([]byte, error) {
4619 type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec
4620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4621 }
4622
4623 func (s *GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec) UnmarshalJSON(data []byte) error {
4624 type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpecConditionBoostSpec
4625 var s1 struct {
4626 Boost gensupport.JSONFloat64 `json:"boost"`
4627 *NoMethod
4628 }
4629 s1.NoMethod = (*NoMethod)(s)
4630 if err := json.Unmarshal(data, &s1); err != nil {
4631 return err
4632 }
4633 s.Boost = float64(s1.Boost)
4634 return nil
4635 }
4636
4637
4638
4639 type GoogleCloudDialogflowCxV3beta1BoostSpecs struct {
4640
4641
4642
4643
4644
4645 DataStores []string `json:"dataStores,omitempty"`
4646
4647 Spec []*GoogleCloudDialogflowCxV3beta1BoostSpec `json:"spec,omitempty"`
4648
4649
4650
4651
4652
4653 ForceSendFields []string `json:"-"`
4654
4655
4656
4657
4658 NullFields []string `json:"-"`
4659 }
4660
4661 func (s *GoogleCloudDialogflowCxV3beta1BoostSpecs) MarshalJSON() ([]byte, error) {
4662 type NoMethod GoogleCloudDialogflowCxV3beta1BoostSpecs
4663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4664 }
4665
4666
4667
4668 type GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse struct {
4669
4670
4671 Agent string `json:"agent,omitempty"`
4672
4673 IntentCoverage *GoogleCloudDialogflowCxV3beta1IntentCoverage `json:"intentCoverage,omitempty"`
4674
4675 RouteGroupCoverage *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage `json:"routeGroupCoverage,omitempty"`
4676
4677 TransitionCoverage *GoogleCloudDialogflowCxV3beta1TransitionCoverage `json:"transitionCoverage,omitempty"`
4678
4679
4680 googleapi.ServerResponse `json:"-"`
4681
4682
4683
4684
4685
4686 ForceSendFields []string `json:"-"`
4687
4688
4689
4690
4691 NullFields []string `json:"-"`
4692 }
4693
4694 func (s *GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse) MarshalJSON() ([]byte, error) {
4695 type NoMethod GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse
4696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4697 }
4698
4699
4700
4701 type GoogleCloudDialogflowCxV3beta1Changelog struct {
4702
4703 Action string `json:"action,omitempty"`
4704
4705 CreateTime string `json:"createTime,omitempty"`
4706
4707 DisplayName string `json:"displayName,omitempty"`
4708
4709 LanguageCode string `json:"languageCode,omitempty"`
4710
4711
4712 Name string `json:"name,omitempty"`
4713
4714 Resource string `json:"resource,omitempty"`
4715
4716 Type string `json:"type,omitempty"`
4717
4718 UserEmail string `json:"userEmail,omitempty"`
4719
4720
4721 googleapi.ServerResponse `json:"-"`
4722
4723
4724
4725
4726
4727 ForceSendFields []string `json:"-"`
4728
4729
4730
4731
4732 NullFields []string `json:"-"`
4733 }
4734
4735 func (s *GoogleCloudDialogflowCxV3beta1Changelog) MarshalJSON() ([]byte, error) {
4736 type NoMethod GoogleCloudDialogflowCxV3beta1Changelog
4737 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4738 }
4739
4740
4741
4742 type GoogleCloudDialogflowCxV3beta1CompareVersionsRequest struct {
4743
4744
4745
4746
4747 LanguageCode string `json:"languageCode,omitempty"`
4748
4749
4750
4751 TargetVersion string `json:"targetVersion,omitempty"`
4752
4753
4754
4755
4756
4757 ForceSendFields []string `json:"-"`
4758
4759
4760
4761
4762 NullFields []string `json:"-"`
4763 }
4764
4765 func (s *GoogleCloudDialogflowCxV3beta1CompareVersionsRequest) MarshalJSON() ([]byte, error) {
4766 type NoMethod GoogleCloudDialogflowCxV3beta1CompareVersionsRequest
4767 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4768 }
4769
4770
4771
4772 type GoogleCloudDialogflowCxV3beta1CompareVersionsResponse struct {
4773
4774 BaseVersionContentJson string `json:"baseVersionContentJson,omitempty"`
4775
4776 CompareTime string `json:"compareTime,omitempty"`
4777
4778 TargetVersionContentJson string `json:"targetVersionContentJson,omitempty"`
4779
4780
4781 googleapi.ServerResponse `json:"-"`
4782
4783
4784
4785
4786
4787 ForceSendFields []string `json:"-"`
4788
4789
4790
4791
4792 NullFields []string `json:"-"`
4793 }
4794
4795 func (s *GoogleCloudDialogflowCxV3beta1CompareVersionsResponse) MarshalJSON() ([]byte, error) {
4796 type NoMethod GoogleCloudDialogflowCxV3beta1CompareVersionsResponse
4797 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4798 }
4799
4800
4801
4802 type GoogleCloudDialogflowCxV3beta1ContinuousTestResult struct {
4803
4804
4805 Name string `json:"name,omitempty"`
4806
4807
4808
4809
4810
4811
4812
4813
4814 Result string `json:"result,omitempty"`
4815
4816 RunTime string `json:"runTime,omitempty"`
4817
4818
4819 TestCaseResults []string `json:"testCaseResults,omitempty"`
4820
4821
4822
4823
4824
4825 ForceSendFields []string `json:"-"`
4826
4827
4828
4829
4830 NullFields []string `json:"-"`
4831 }
4832
4833 func (s *GoogleCloudDialogflowCxV3beta1ContinuousTestResult) MarshalJSON() ([]byte, error) {
4834 type NoMethod GoogleCloudDialogflowCxV3beta1ContinuousTestResult
4835 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4836 }
4837
4838
4839 type GoogleCloudDialogflowCxV3beta1Conversation struct {
4840
4841 Duration string `json:"duration,omitempty"`
4842
4843
4844 Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
4845
4846 FlowVersions map[string]string `json:"flowVersions,omitempty"`
4847
4848
4849 Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"`
4850
4851
4852 Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"`
4853
4854
4855 Interactions []*GoogleCloudDialogflowCxV3beta1ConversationInteraction `json:"interactions,omitempty"`
4856
4857
4858 LanguageCode string `json:"languageCode,omitempty"`
4859
4860 Metrics *GoogleCloudDialogflowCxV3beta1ConversationMetrics `json:"metrics,omitempty"`
4861
4862
4863
4864
4865 Name string `json:"name,omitempty"`
4866
4867
4868 Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"`
4869
4870
4871 StartTime string `json:"startTime,omitempty"`
4872
4873
4874
4875
4876
4877
4878
4879
4880
4881
4882
4883
4884
4885 Type string `json:"type,omitempty"`
4886
4887
4888 googleapi.ServerResponse `json:"-"`
4889
4890
4891
4892
4893
4894 ForceSendFields []string `json:"-"`
4895
4896
4897
4898
4899 NullFields []string `json:"-"`
4900 }
4901
4902 func (s *GoogleCloudDialogflowCxV3beta1Conversation) MarshalJSON() ([]byte, error) {
4903 type NoMethod GoogleCloudDialogflowCxV3beta1Conversation
4904 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4905 }
4906
4907
4908
4909
4910
4911 type GoogleCloudDialogflowCxV3beta1ConversationInteraction struct {
4912
4913 CreateTime string `json:"createTime,omitempty"`
4914
4915
4916 MissingTransition *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition `json:"missingTransition,omitempty"`
4917
4918
4919
4920 PartialResponses []*GoogleCloudDialogflowCxV3beta1DetectIntentResponse `json:"partialResponses,omitempty"`
4921
4922 Request *GoogleCloudDialogflowCxV3beta1DetectIntentRequest `json:"request,omitempty"`
4923
4924
4925 RequestUtterances string `json:"requestUtterances,omitempty"`
4926
4927 Response *GoogleCloudDialogflowCxV3beta1DetectIntentResponse `json:"response,omitempty"`
4928
4929
4930
4931 ResponseUtterances string `json:"responseUtterances,omitempty"`
4932
4933
4934
4935
4936
4937 ForceSendFields []string `json:"-"`
4938
4939
4940
4941
4942 NullFields []string `json:"-"`
4943 }
4944
4945 func (s *GoogleCloudDialogflowCxV3beta1ConversationInteraction) MarshalJSON() ([]byte, error) {
4946 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteraction
4947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4948 }
4949
4950
4951
4952
4953
4954 type GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition struct {
4955
4956 IntentDisplayName string `json:"intentDisplayName,omitempty"`
4957
4958
4959 Score float64 `json:"score,omitempty"`
4960
4961
4962
4963
4964
4965 ForceSendFields []string `json:"-"`
4966
4967
4968
4969
4970 NullFields []string `json:"-"`
4971 }
4972
4973 func (s *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition) MarshalJSON() ([]byte, error) {
4974 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition
4975 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4976 }
4977
4978 func (s *GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition) UnmarshalJSON(data []byte) error {
4979 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationInteractionMissingTransition
4980 var s1 struct {
4981 Score gensupport.JSONFloat64 `json:"score"`
4982 *NoMethod
4983 }
4984 s1.NoMethod = (*NoMethod)(s)
4985 if err := json.Unmarshal(data, &s1); err != nil {
4986 return err
4987 }
4988 s.Score = float64(s1.Score)
4989 return nil
4990 }
4991
4992
4993
4994 type GoogleCloudDialogflowCxV3beta1ConversationMetrics struct {
4995
4996
4997
4998 AverageMatchConfidence float64 `json:"averageMatchConfidence,omitempty"`
4999
5000
5001
5002 HasEndInteraction bool `json:"hasEndInteraction,omitempty"`
5003
5004
5005
5006 HasLiveAgentHandoff bool `json:"hasLiveAgentHandoff,omitempty"`
5007
5008 InputAudioDuration string `json:"inputAudioDuration,omitempty"`
5009
5010 InteractionCount int64 `json:"interactionCount,omitempty"`
5011
5012 MatchTypeCount *GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount `json:"matchTypeCount,omitempty"`
5013
5014 MaxWebhookLatency string `json:"maxWebhookLatency,omitempty"`
5015
5016 OutputAudioDuration string `json:"outputAudioDuration,omitempty"`
5017
5018 QueryInputCount *GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount `json:"queryInputCount,omitempty"`
5019
5020
5021
5022
5023
5024 ForceSendFields []string `json:"-"`
5025
5026
5027
5028
5029 NullFields []string `json:"-"`
5030 }
5031
5032 func (s *GoogleCloudDialogflowCxV3beta1ConversationMetrics) MarshalJSON() ([]byte, error) {
5033 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetrics
5034 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5035 }
5036
5037 func (s *GoogleCloudDialogflowCxV3beta1ConversationMetrics) UnmarshalJSON(data []byte) error {
5038 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetrics
5039 var s1 struct {
5040 AverageMatchConfidence gensupport.JSONFloat64 `json:"averageMatchConfidence"`
5041 *NoMethod
5042 }
5043 s1.NoMethod = (*NoMethod)(s)
5044 if err := json.Unmarshal(data, &s1); err != nil {
5045 return err
5046 }
5047 s.AverageMatchConfidence = float64(s1.AverageMatchConfidence)
5048 return nil
5049 }
5050
5051
5052
5053 type GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount struct {
5054
5055
5056 DirectIntentCount int64 `json:"directIntentCount,omitempty"`
5057
5058 EventCount int64 `json:"eventCount,omitempty"`
5059
5060 IntentCount int64 `json:"intentCount,omitempty"`
5061
5062 NoInputCount int64 `json:"noInputCount,omitempty"`
5063
5064 NoMatchCount int64 `json:"noMatchCount,omitempty"`
5065
5066
5067 ParameterFillingCount int64 `json:"parameterFillingCount,omitempty"`
5068
5069
5070 UnspecifiedCount int64 `json:"unspecifiedCount,omitempty"`
5071
5072
5073
5074
5075
5076 ForceSendFields []string `json:"-"`
5077
5078
5079
5080
5081 NullFields []string `json:"-"`
5082 }
5083
5084 func (s *GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount) MarshalJSON() ([]byte, error) {
5085 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetricsMatchTypeCount
5086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5087 }
5088
5089
5090
5091 type GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount struct {
5092
5093 AudioCount int64 `json:"audioCount,omitempty"`
5094
5095 DtmfCount int64 `json:"dtmfCount,omitempty"`
5096
5097 EventCount int64 `json:"eventCount,omitempty"`
5098
5099 IntentCount int64 `json:"intentCount,omitempty"`
5100
5101 TextCount int64 `json:"textCount,omitempty"`
5102
5103
5104
5105
5106
5107 ForceSendFields []string `json:"-"`
5108
5109
5110
5111
5112 NullFields []string `json:"-"`
5113 }
5114
5115 func (s *GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount) MarshalJSON() ([]byte, error) {
5116 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationMetricsQueryInputCount
5117 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5118 }
5119
5120
5121
5122
5123 type GoogleCloudDialogflowCxV3beta1ConversationSignals struct {
5124
5125 TurnSignals *GoogleCloudDialogflowCxV3beta1TurnSignals `json:"turnSignals,omitempty"`
5126
5127
5128
5129
5130
5131 ForceSendFields []string `json:"-"`
5132
5133
5134
5135
5136 NullFields []string `json:"-"`
5137 }
5138
5139 func (s *GoogleCloudDialogflowCxV3beta1ConversationSignals) MarshalJSON() ([]byte, error) {
5140 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationSignals
5141 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5142 }
5143
5144
5145
5146
5147 type GoogleCloudDialogflowCxV3beta1ConversationTurn struct {
5148
5149 UserInput *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput `json:"userInput,omitempty"`
5150
5151 VirtualAgentOutput *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput `json:"virtualAgentOutput,omitempty"`
5152
5153
5154
5155
5156
5157 ForceSendFields []string `json:"-"`
5158
5159
5160
5161
5162 NullFields []string `json:"-"`
5163 }
5164
5165 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurn) MarshalJSON() ([]byte, error) {
5166 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurn
5167 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5168 }
5169
5170
5171
5172 type GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput struct {
5173
5174 EnableSentimentAnalysis bool `json:"enableSentimentAnalysis,omitempty"`
5175
5176
5177 InjectedParameters googleapi.RawMessage `json:"injectedParameters,omitempty"`
5178
5179 Input *GoogleCloudDialogflowCxV3beta1QueryInput `json:"input,omitempty"`
5180
5181
5182
5183 IsWebhookEnabled bool `json:"isWebhookEnabled,omitempty"`
5184
5185
5186
5187
5188
5189 ForceSendFields []string `json:"-"`
5190
5191
5192
5193
5194 NullFields []string `json:"-"`
5195 }
5196
5197 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput) MarshalJSON() ([]byte, error) {
5198 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
5199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5200 }
5201
5202
5203
5204 type GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput struct {
5205
5206
5207 CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
5208
5209
5210 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
5211
5212
5213
5214 Differences []*GoogleCloudDialogflowCxV3beta1TestRunDifference `json:"differences,omitempty"`
5215
5216
5217 SessionParameters googleapi.RawMessage `json:"sessionParameters,omitempty"`
5218
5219
5220 Status *GoogleRpcStatus `json:"status,omitempty"`
5221
5222 TextResponses []*GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"textResponses,omitempty"`
5223
5224
5225 TriggeredIntent *GoogleCloudDialogflowCxV3beta1Intent `json:"triggeredIntent,omitempty"`
5226
5227
5228
5229
5230
5231 ForceSendFields []string `json:"-"`
5232
5233
5234
5235
5236 NullFields []string `json:"-"`
5237 }
5238
5239 func (s *GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput) MarshalJSON() ([]byte, error) {
5240 type NoMethod GoogleCloudDialogflowCxV3beta1ConversationTurnVirtualAgentOutput
5241 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5242 }
5243
5244
5245
5246 type GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata struct {
5247
5248 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5249
5250
5251
5252
5253
5254 ForceSendFields []string `json:"-"`
5255
5256
5257
5258
5259 NullFields []string `json:"-"`
5260 }
5261
5262 func (s *GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
5263 type NoMethod GoogleCloudDialogflowCxV3beta1CreateDocumentOperationMetadata
5264 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5265 }
5266
5267
5268
5269 type GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata struct {
5270
5271
5272 Version string `json:"version,omitempty"`
5273
5274
5275
5276
5277
5278 ForceSendFields []string `json:"-"`
5279
5280
5281
5282
5283 NullFields []string `json:"-"`
5284 }
5285
5286 func (s *GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata) MarshalJSON() ([]byte, error) {
5287 type NoMethod GoogleCloudDialogflowCxV3beta1CreateVersionOperationMetadata
5288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5289 }
5290
5291
5292
5293
5294 type GoogleCloudDialogflowCxV3beta1DataStoreConnection struct {
5295
5296
5297
5298
5299 DataStore string `json:"dataStore,omitempty"`
5300
5301
5302
5303
5304
5305
5306
5307
5308
5309 DataStoreType string `json:"dataStoreType,omitempty"`
5310
5311
5312
5313
5314
5315 ForceSendFields []string `json:"-"`
5316
5317
5318
5319
5320 NullFields []string `json:"-"`
5321 }
5322
5323 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnection) MarshalJSON() ([]byte, error) {
5324 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnection
5325 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5326 }
5327
5328
5329
5330
5331
5332
5333 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals struct {
5334
5335 Answer string `json:"answer,omitempty"`
5336
5337
5338 AnswerGenerationModelCallSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals `json:"answerGenerationModelCallSignals,omitempty"`
5339
5340
5341 AnswerParts []*GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart `json:"answerParts,omitempty"`
5342
5343
5344 CitedSnippets []*GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet `json:"citedSnippets,omitempty"`
5345
5346 GroundingSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals `json:"groundingSignals,omitempty"`
5347
5348
5349 RewriterModelCallSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals `json:"rewriterModelCallSignals,omitempty"`
5350
5351 RewrittenQuery string `json:"rewrittenQuery,omitempty"`
5352
5353 SafetySignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals `json:"safetySignals,omitempty"`
5354
5355
5356 SearchSnippets []*GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet `json:"searchSnippets,omitempty"`
5357
5358
5359
5360
5361
5362 ForceSendFields []string `json:"-"`
5363
5364
5365
5366
5367 NullFields []string `json:"-"`
5368 }
5369
5370 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals) MarshalJSON() ([]byte, error) {
5371 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals
5372 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5373 }
5374
5375
5376
5377 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals struct {
5378
5379 ModelOutput string `json:"modelOutput,omitempty"`
5380
5381 RenderedPrompt string `json:"renderedPrompt,omitempty"`
5382
5383
5384
5385
5386
5387 ForceSendFields []string `json:"-"`
5388
5389
5390
5391
5392 NullFields []string `json:"-"`
5393 }
5394
5395 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals) MarshalJSON() ([]byte, error) {
5396 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerGenerationModelCallSignals
5397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5398 }
5399
5400
5401
5402 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart struct {
5403
5404
5405 SupportingIndices []int64 `json:"supportingIndices,omitempty"`
5406
5407 Text string `json:"text,omitempty"`
5408
5409
5410
5411
5412
5413 ForceSendFields []string `json:"-"`
5414
5415
5416
5417
5418 NullFields []string `json:"-"`
5419 }
5420
5421 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart) MarshalJSON() ([]byte, error) {
5422 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsAnswerPart
5423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5424 }
5425
5426
5427
5428 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet struct {
5429
5430 SearchSnippet *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet `json:"searchSnippet,omitempty"`
5431
5432 SnippetIndex int64 `json:"snippetIndex,omitempty"`
5433
5434
5435
5436
5437
5438 ForceSendFields []string `json:"-"`
5439
5440
5441
5442
5443 NullFields []string `json:"-"`
5444 }
5445
5446 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet) MarshalJSON() ([]byte, error) {
5447 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsCitedSnippet
5448 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5449 }
5450
5451
5452
5453 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals struct {
5454
5455
5456
5457
5458
5459
5460 Decision string `json:"decision,omitempty"`
5461
5462
5463
5464
5465
5466
5467
5468
5469
5470 Score string `json:"score,omitempty"`
5471
5472
5473
5474
5475
5476 ForceSendFields []string `json:"-"`
5477
5478
5479
5480
5481 NullFields []string `json:"-"`
5482 }
5483
5484 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals) MarshalJSON() ([]byte, error) {
5485 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsGroundingSignals
5486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5487 }
5488
5489
5490
5491 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals struct {
5492
5493 ModelOutput string `json:"modelOutput,omitempty"`
5494
5495 RenderedPrompt string `json:"renderedPrompt,omitempty"`
5496
5497
5498
5499
5500
5501 ForceSendFields []string `json:"-"`
5502
5503
5504
5505
5506 NullFields []string `json:"-"`
5507 }
5508
5509 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals) MarshalJSON() ([]byte, error) {
5510 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsRewriterModelCallSignals
5511 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5512 }
5513
5514
5515
5516 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals struct {
5517
5518
5519
5520
5521
5522
5523
5524 BannedPhraseMatch string `json:"bannedPhraseMatch,omitempty"`
5525
5526
5527
5528
5529
5530
5531 Decision string `json:"decision,omitempty"`
5532
5533 MatchedBannedPhrase string `json:"matchedBannedPhrase,omitempty"`
5534
5535
5536
5537
5538
5539 ForceSendFields []string `json:"-"`
5540
5541
5542
5543
5544 NullFields []string `json:"-"`
5545 }
5546
5547 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals) MarshalJSON() ([]byte, error) {
5548 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSafetySignals
5549 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5550 }
5551
5552
5553
5554 type GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet struct {
5555
5556 DocumentTitle string `json:"documentTitle,omitempty"`
5557
5558 DocumentUri string `json:"documentUri,omitempty"`
5559
5560 Text string `json:"text,omitempty"`
5561
5562
5563
5564
5565
5566 ForceSendFields []string `json:"-"`
5567
5568
5569
5570
5571 NullFields []string `json:"-"`
5572 }
5573
5574 func (s *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet) MarshalJSON() ([]byte, error) {
5575 type NoMethod GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignalsSearchSnippet
5576 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5577 }
5578
5579
5580
5581 type GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata struct {
5582
5583 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
5584
5585
5586
5587
5588
5589 ForceSendFields []string `json:"-"`
5590
5591
5592
5593
5594 NullFields []string `json:"-"`
5595 }
5596
5597 func (s *GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
5598 type NoMethod GoogleCloudDialogflowCxV3beta1DeleteDocumentOperationMetadata
5599 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5600 }
5601
5602
5603
5604 type GoogleCloudDialogflowCxV3beta1DeployFlowMetadata struct {
5605
5606 TestErrors []*GoogleCloudDialogflowCxV3beta1TestError `json:"testErrors,omitempty"`
5607
5608
5609
5610
5611
5612 ForceSendFields []string `json:"-"`
5613
5614
5615
5616
5617 NullFields []string `json:"-"`
5618 }
5619
5620 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowMetadata) MarshalJSON() ([]byte, error) {
5621 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
5622 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5623 }
5624
5625
5626
5627 type GoogleCloudDialogflowCxV3beta1DeployFlowRequest struct {
5628
5629
5630 FlowVersion string `json:"flowVersion,omitempty"`
5631
5632
5633
5634
5635
5636 ForceSendFields []string `json:"-"`
5637
5638
5639
5640
5641 NullFields []string `json:"-"`
5642 }
5643
5644 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowRequest) MarshalJSON() ([]byte, error) {
5645 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowRequest
5646 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5647 }
5648
5649
5650
5651 type GoogleCloudDialogflowCxV3beta1DeployFlowResponse struct {
5652
5653
5654 Deployment string `json:"deployment,omitempty"`
5655
5656 Environment *GoogleCloudDialogflowCxV3beta1Environment `json:"environment,omitempty"`
5657
5658
5659
5660
5661
5662 ForceSendFields []string `json:"-"`
5663
5664
5665
5666
5667 NullFields []string `json:"-"`
5668 }
5669
5670 func (s *GoogleCloudDialogflowCxV3beta1DeployFlowResponse) MarshalJSON() ([]byte, error) {
5671 type NoMethod GoogleCloudDialogflowCxV3beta1DeployFlowResponse
5672 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5673 }
5674
5675
5676
5677
5678
5679 type GoogleCloudDialogflowCxV3beta1Deployment struct {
5680
5681 EndTime string `json:"endTime,omitempty"`
5682
5683
5684 FlowVersion string `json:"flowVersion,omitempty"`
5685
5686
5687 Name string `json:"name,omitempty"`
5688
5689 Result *GoogleCloudDialogflowCxV3beta1DeploymentResult `json:"result,omitempty"`
5690
5691 StartTime string `json:"startTime,omitempty"`
5692
5693
5694
5695
5696
5697
5698
5699 State string `json:"state,omitempty"`
5700
5701
5702 googleapi.ServerResponse `json:"-"`
5703
5704
5705
5706
5707
5708 ForceSendFields []string `json:"-"`
5709
5710
5711
5712
5713 NullFields []string `json:"-"`
5714 }
5715
5716 func (s *GoogleCloudDialogflowCxV3beta1Deployment) MarshalJSON() ([]byte, error) {
5717 type NoMethod GoogleCloudDialogflowCxV3beta1Deployment
5718 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5719 }
5720
5721
5722 type GoogleCloudDialogflowCxV3beta1DeploymentResult struct {
5723
5724
5725 DeploymentTestResults []string `json:"deploymentTestResults,omitempty"`
5726
5727
5728 Experiment string `json:"experiment,omitempty"`
5729
5730
5731
5732
5733
5734 ForceSendFields []string `json:"-"`
5735
5736
5737
5738
5739 NullFields []string `json:"-"`
5740 }
5741
5742 func (s *GoogleCloudDialogflowCxV3beta1DeploymentResult) MarshalJSON() ([]byte, error) {
5743 type NoMethod GoogleCloudDialogflowCxV3beta1DeploymentResult
5744 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5745 }
5746
5747
5748
5749 type GoogleCloudDialogflowCxV3beta1DetectIntentRequest struct {
5750
5751
5752 OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
5753
5754 QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
5755
5756 QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
5757
5758
5759
5760
5761
5762
5763
5764
5765
5766
5767
5768 Session string `json:"session,omitempty"`
5769
5770
5771
5772
5773
5774 ForceSendFields []string `json:"-"`
5775
5776
5777
5778
5779 NullFields []string `json:"-"`
5780 }
5781
5782 func (s *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) MarshalJSON() ([]byte, error) {
5783 type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentRequest
5784 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5785 }
5786
5787
5788
5789 type GoogleCloudDialogflowCxV3beta1DetectIntentResponse struct {
5790
5791
5792
5793 AllowCancellation bool `json:"allowCancellation,omitempty"`
5794
5795
5796
5797
5798
5799
5800
5801
5802 OutputAudio string `json:"outputAudio,omitempty"`
5803
5804
5805 OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
5806
5807 QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
5808
5809
5810
5811 ResponseId string `json:"responseId,omitempty"`
5812
5813
5814
5815
5816
5817
5818
5819
5820 ResponseType string `json:"responseType,omitempty"`
5821
5822
5823 googleapi.ServerResponse `json:"-"`
5824
5825
5826
5827
5828
5829 ForceSendFields []string `json:"-"`
5830
5831
5832
5833
5834 NullFields []string `json:"-"`
5835 }
5836
5837 func (s *GoogleCloudDialogflowCxV3beta1DetectIntentResponse) MarshalJSON() ([]byte, error) {
5838 type NoMethod GoogleCloudDialogflowCxV3beta1DetectIntentResponse
5839 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5840 }
5841
5842
5843
5844 type GoogleCloudDialogflowCxV3beta1DtmfInput struct {
5845
5846 Digits string `json:"digits,omitempty"`
5847
5848 FinishDigit string `json:"finishDigit,omitempty"`
5849
5850
5851
5852
5853
5854 ForceSendFields []string `json:"-"`
5855
5856
5857
5858
5859 NullFields []string `json:"-"`
5860 }
5861
5862 func (s *GoogleCloudDialogflowCxV3beta1DtmfInput) MarshalJSON() ([]byte, error) {
5863 type NoMethod GoogleCloudDialogflowCxV3beta1DtmfInput
5864 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5865 }
5866
5867
5868
5869
5870
5871
5872
5873
5874
5875
5876
5877
5878
5879
5880
5881
5882
5883
5884
5885
5886 type GoogleCloudDialogflowCxV3beta1EntityType struct {
5887
5888
5889
5890
5891
5892
5893
5894
5895 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
5896
5897
5898 DisplayName string `json:"displayName,omitempty"`
5899
5900
5901 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
5902
5903 Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
5904
5905
5906
5907
5908
5909 ExcludedPhrases []*GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase `json:"excludedPhrases,omitempty"`
5910
5911
5912
5913
5914
5915
5916
5917
5918
5919
5920
5921 Kind string `json:"kind,omitempty"`
5922
5923
5924
5925 Name string `json:"name,omitempty"`
5926
5927
5928
5929
5930 Redact bool `json:"redact,omitempty"`
5931
5932
5933 googleapi.ServerResponse `json:"-"`
5934
5935
5936
5937
5938
5939 ForceSendFields []string `json:"-"`
5940
5941
5942
5943
5944 NullFields []string `json:"-"`
5945 }
5946
5947 func (s *GoogleCloudDialogflowCxV3beta1EntityType) MarshalJSON() ([]byte, error) {
5948 type NoMethod GoogleCloudDialogflowCxV3beta1EntityType
5949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5950 }
5951
5952
5953
5954 type GoogleCloudDialogflowCxV3beta1EntityTypeEntity struct {
5955
5956
5957
5958
5959 Synonyms []string `json:"synonyms,omitempty"`
5960
5961
5962
5963
5964
5965 Value string `json:"value,omitempty"`
5966
5967
5968
5969
5970
5971 ForceSendFields []string `json:"-"`
5972
5973
5974
5975
5976 NullFields []string `json:"-"`
5977 }
5978
5979 func (s *GoogleCloudDialogflowCxV3beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
5980 type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeEntity
5981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5982 }
5983
5984
5985
5986 type GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase struct {
5987
5988 Value string `json:"value,omitempty"`
5989
5990
5991
5992
5993
5994 ForceSendFields []string `json:"-"`
5995
5996
5997
5998
5999 NullFields []string `json:"-"`
6000 }
6001
6002 func (s *GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase) MarshalJSON() ([]byte, error) {
6003 type NoMethod GoogleCloudDialogflowCxV3beta1EntityTypeExcludedPhrase
6004 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6005 }
6006
6007
6008
6009
6010
6011
6012
6013
6014
6015 type GoogleCloudDialogflowCxV3beta1Environment struct {
6016
6017
6018 Description string `json:"description,omitempty"`
6019
6020
6021 DisplayName string `json:"displayName,omitempty"`
6022
6023
6024 Name string `json:"name,omitempty"`
6025
6026
6027 TestCasesConfig *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig `json:"testCasesConfig,omitempty"`
6028
6029 UpdateTime string `json:"updateTime,omitempty"`
6030
6031
6032
6033 VersionConfigs []*GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig `json:"versionConfigs,omitempty"`
6034
6035 WebhookConfig *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig `json:"webhookConfig,omitempty"`
6036
6037
6038 googleapi.ServerResponse `json:"-"`
6039
6040
6041
6042
6043
6044 ForceSendFields []string `json:"-"`
6045
6046
6047
6048
6049 NullFields []string `json:"-"`
6050 }
6051
6052 func (s *GoogleCloudDialogflowCxV3beta1Environment) MarshalJSON() ([]byte, error) {
6053 type NoMethod GoogleCloudDialogflowCxV3beta1Environment
6054 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6055 }
6056
6057
6058
6059 type GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig struct {
6060
6061
6062 EnableContinuousRun bool `json:"enableContinuousRun,omitempty"`
6063
6064
6065
6066 EnablePredeploymentRun bool `json:"enablePredeploymentRun,omitempty"`
6067
6068
6069
6070 TestCases []string `json:"testCases,omitempty"`
6071
6072
6073
6074
6075
6076 ForceSendFields []string `json:"-"`
6077
6078
6079
6080
6081 NullFields []string `json:"-"`
6082 }
6083
6084 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig) MarshalJSON() ([]byte, error) {
6085 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
6086 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6087 }
6088
6089
6090
6091 type GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig struct {
6092
6093 Version string `json:"version,omitempty"`
6094
6095
6096
6097
6098
6099 ForceSendFields []string `json:"-"`
6100
6101
6102
6103
6104 NullFields []string `json:"-"`
6105 }
6106
6107 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig) MarshalJSON() ([]byte, error) {
6108 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
6109 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6110 }
6111
6112
6113
6114 type GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig struct {
6115
6116
6117
6118 WebhookOverrides []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhookOverrides,omitempty"`
6119
6120
6121
6122
6123
6124 ForceSendFields []string `json:"-"`
6125
6126
6127
6128
6129 NullFields []string `json:"-"`
6130 }
6131
6132 func (s *GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig) MarshalJSON() ([]byte, error) {
6133 type NoMethod GoogleCloudDialogflowCxV3beta1EnvironmentWebhookConfig
6134 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6135 }
6136
6137
6138
6139
6140
6141
6142
6143
6144 type GoogleCloudDialogflowCxV3beta1EventHandler struct {
6145
6146 Event string `json:"event,omitempty"`
6147
6148 Name string `json:"name,omitempty"`
6149
6150
6151 TargetFlow string `json:"targetFlow,omitempty"`
6152
6153
6154 TargetPage string `json:"targetPage,omitempty"`
6155
6156
6157
6158
6159 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
6160
6161
6162
6163
6164
6165 ForceSendFields []string `json:"-"`
6166
6167
6168
6169
6170 NullFields []string `json:"-"`
6171 }
6172
6173 func (s *GoogleCloudDialogflowCxV3beta1EventHandler) MarshalJSON() ([]byte, error) {
6174 type NoMethod GoogleCloudDialogflowCxV3beta1EventHandler
6175 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6176 }
6177
6178
6179 type GoogleCloudDialogflowCxV3beta1EventInput struct {
6180
6181 Event string `json:"event,omitempty"`
6182
6183
6184
6185
6186
6187 ForceSendFields []string `json:"-"`
6188
6189
6190
6191
6192 NullFields []string `json:"-"`
6193 }
6194
6195 func (s *GoogleCloudDialogflowCxV3beta1EventInput) MarshalJSON() ([]byte, error) {
6196 type NoMethod GoogleCloudDialogflowCxV3beta1EventInput
6197 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6198 }
6199
6200
6201
6202 type GoogleCloudDialogflowCxV3beta1Experiment struct {
6203
6204 CreateTime string `json:"createTime,omitempty"`
6205
6206 Definition *GoogleCloudDialogflowCxV3beta1ExperimentDefinition `json:"definition,omitempty"`
6207
6208 Description string `json:"description,omitempty"`
6209
6210
6211 DisplayName string `json:"displayName,omitempty"`
6212
6213 EndTime string `json:"endTime,omitempty"`
6214
6215
6216
6217 ExperimentLength string `json:"experimentLength,omitempty"`
6218
6219 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
6220
6221
6222 Name string `json:"name,omitempty"`
6223
6224 Result *GoogleCloudDialogflowCxV3beta1ExperimentResult `json:"result,omitempty"`
6225
6226
6227
6228
6229
6230 RolloutConfig *GoogleCloudDialogflowCxV3beta1RolloutConfig `json:"rolloutConfig,omitempty"`
6231
6232
6233 RolloutFailureReason string `json:"rolloutFailureReason,omitempty"`
6234
6235 RolloutState *GoogleCloudDialogflowCxV3beta1RolloutState `json:"rolloutState,omitempty"`
6236
6237 StartTime string `json:"startTime,omitempty"`
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 State string `json:"state,omitempty"`
6249
6250 VariantsHistory []*GoogleCloudDialogflowCxV3beta1VariantsHistory `json:"variantsHistory,omitempty"`
6251
6252
6253 googleapi.ServerResponse `json:"-"`
6254
6255
6256
6257
6258
6259 ForceSendFields []string `json:"-"`
6260
6261
6262
6263
6264 NullFields []string `json:"-"`
6265 }
6266
6267 func (s *GoogleCloudDialogflowCxV3beta1Experiment) MarshalJSON() ([]byte, error) {
6268 type NoMethod GoogleCloudDialogflowCxV3beta1Experiment
6269 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6270 }
6271
6272
6273
6274 type GoogleCloudDialogflowCxV3beta1ExperimentDefinition struct {
6275
6276
6277
6278
6279 Condition string `json:"condition,omitempty"`
6280
6281 VersionVariants *GoogleCloudDialogflowCxV3beta1VersionVariants `json:"versionVariants,omitempty"`
6282
6283
6284
6285
6286
6287 ForceSendFields []string `json:"-"`
6288
6289
6290
6291
6292 NullFields []string `json:"-"`
6293 }
6294
6295 func (s *GoogleCloudDialogflowCxV3beta1ExperimentDefinition) MarshalJSON() ([]byte, error) {
6296 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentDefinition
6297 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6298 }
6299
6300
6301
6302 type GoogleCloudDialogflowCxV3beta1ExperimentResult struct {
6303
6304
6305 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
6306
6307 VersionMetrics []*GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics `json:"versionMetrics,omitempty"`
6308
6309
6310
6311
6312
6313 ForceSendFields []string `json:"-"`
6314
6315
6316
6317
6318 NullFields []string `json:"-"`
6319 }
6320
6321 func (s *GoogleCloudDialogflowCxV3beta1ExperimentResult) MarshalJSON() ([]byte, error) {
6322 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResult
6323 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6324 }
6325
6326
6327
6328
6329 type GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval struct {
6330
6331
6332 ConfidenceLevel float64 `json:"confidenceLevel,omitempty"`
6333
6334 LowerBound float64 `json:"lowerBound,omitempty"`
6335
6336
6337 Ratio float64 `json:"ratio,omitempty"`
6338
6339 UpperBound float64 `json:"upperBound,omitempty"`
6340
6341
6342
6343
6344
6345 ForceSendFields []string `json:"-"`
6346
6347
6348
6349
6350 NullFields []string `json:"-"`
6351 }
6352
6353 func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval) MarshalJSON() ([]byte, error) {
6354 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
6355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6356 }
6357
6358 func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval) UnmarshalJSON(data []byte) error {
6359 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval
6360 var s1 struct {
6361 ConfidenceLevel gensupport.JSONFloat64 `json:"confidenceLevel"`
6362 LowerBound gensupport.JSONFloat64 `json:"lowerBound"`
6363 Ratio gensupport.JSONFloat64 `json:"ratio"`
6364 UpperBound gensupport.JSONFloat64 `json:"upperBound"`
6365 *NoMethod
6366 }
6367 s1.NoMethod = (*NoMethod)(s)
6368 if err := json.Unmarshal(data, &s1); err != nil {
6369 return err
6370 }
6371 s.ConfidenceLevel = float64(s1.ConfidenceLevel)
6372 s.LowerBound = float64(s1.LowerBound)
6373 s.Ratio = float64(s1.Ratio)
6374 s.UpperBound = float64(s1.UpperBound)
6375 return nil
6376 }
6377
6378
6379
6380 type GoogleCloudDialogflowCxV3beta1ExperimentResultMetric struct {
6381
6382
6383 ConfidenceInterval *GoogleCloudDialogflowCxV3beta1ExperimentResultConfidenceInterval `json:"confidenceInterval,omitempty"`
6384
6385 Count float64 `json:"count,omitempty"`
6386
6387
6388
6389
6390
6391
6392
6393
6394 CountType string `json:"countType,omitempty"`
6395
6396 Ratio float64 `json:"ratio,omitempty"`
6397
6398
6399
6400
6401
6402
6403
6404
6405
6406
6407
6408
6409
6410
6411 Type string `json:"type,omitempty"`
6412
6413
6414
6415
6416
6417 ForceSendFields []string `json:"-"`
6418
6419
6420
6421
6422 NullFields []string `json:"-"`
6423 }
6424
6425 func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultMetric) MarshalJSON() ([]byte, error) {
6426 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
6427 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6428 }
6429
6430 func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultMetric) UnmarshalJSON(data []byte) error {
6431 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultMetric
6432 var s1 struct {
6433 Count gensupport.JSONFloat64 `json:"count"`
6434 Ratio gensupport.JSONFloat64 `json:"ratio"`
6435 *NoMethod
6436 }
6437 s1.NoMethod = (*NoMethod)(s)
6438 if err := json.Unmarshal(data, &s1); err != nil {
6439 return err
6440 }
6441 s.Count = float64(s1.Count)
6442 s.Ratio = float64(s1.Ratio)
6443 return nil
6444 }
6445
6446
6447
6448 type GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics struct {
6449
6450
6451 Metrics []*GoogleCloudDialogflowCxV3beta1ExperimentResultMetric `json:"metrics,omitempty"`
6452
6453 SessionCount int64 `json:"sessionCount,omitempty"`
6454
6455
6456 Version string `json:"version,omitempty"`
6457
6458
6459
6460
6461
6462 ForceSendFields []string `json:"-"`
6463
6464
6465
6466
6467 NullFields []string `json:"-"`
6468 }
6469
6470 func (s *GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics) MarshalJSON() ([]byte, error) {
6471 type NoMethod GoogleCloudDialogflowCxV3beta1ExperimentResultVersionMetrics
6472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6473 }
6474
6475
6476
6477 type GoogleCloudDialogflowCxV3beta1ExportAgentRequest struct {
6478
6479
6480
6481
6482
6483
6484
6485
6486 AgentUri string `json:"agentUri,omitempty"`
6487
6488
6489
6490
6491
6492
6493
6494 DataFormat string `json:"dataFormat,omitempty"`
6495
6496
6497 Environment string `json:"environment,omitempty"`
6498
6499 GitDestination *GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination `json:"gitDestination,omitempty"`
6500
6501
6502 IncludeBigqueryExportSettings bool `json:"includeBigqueryExportSettings,omitempty"`
6503
6504
6505
6506
6507
6508 ForceSendFields []string `json:"-"`
6509
6510
6511
6512
6513 NullFields []string `json:"-"`
6514 }
6515
6516 func (s *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) MarshalJSON() ([]byte, error) {
6517 type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentRequest
6518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6519 }
6520
6521
6522
6523 type GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination struct {
6524
6525 CommitMessage string `json:"commitMessage,omitempty"`
6526
6527 TrackingBranch string `json:"trackingBranch,omitempty"`
6528
6529
6530
6531
6532
6533 ForceSendFields []string `json:"-"`
6534
6535
6536
6537
6538 NullFields []string `json:"-"`
6539 }
6540
6541 func (s *GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination) MarshalJSON() ([]byte, error) {
6542 type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentRequestGitDestination
6543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6544 }
6545
6546
6547
6548 type GoogleCloudDialogflowCxV3beta1ExportAgentResponse struct {
6549
6550
6551
6552 AgentContent string `json:"agentContent,omitempty"`
6553
6554
6555 AgentUri string `json:"agentUri,omitempty"`
6556
6557
6558 CommitSha string `json:"commitSha,omitempty"`
6559
6560
6561
6562
6563
6564 ForceSendFields []string `json:"-"`
6565
6566
6567
6568
6569 NullFields []string `json:"-"`
6570 }
6571
6572 func (s *GoogleCloudDialogflowCxV3beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
6573 type NoMethod GoogleCloudDialogflowCxV3beta1ExportAgentResponse
6574 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6575 }
6576
6577
6578
6579 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesMetadata struct {
6580 }
6581
6582
6583
6584 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest struct {
6585
6586
6587
6588
6589
6590
6591
6592 DataFormat string `json:"dataFormat,omitempty"`
6593
6594
6595 EntityTypes []string `json:"entityTypes,omitempty"`
6596
6597
6598 EntityTypesContentInline bool `json:"entityTypesContentInline,omitempty"`
6599
6600
6601
6602
6603
6604
6605
6606 EntityTypesUri string `json:"entityTypesUri,omitempty"`
6607
6608
6609
6610
6611
6612
6613 LanguageCode string `json:"languageCode,omitempty"`
6614
6615
6616
6617
6618
6619 ForceSendFields []string `json:"-"`
6620
6621
6622
6623
6624 NullFields []string `json:"-"`
6625 }
6626
6627 func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest) MarshalJSON() ([]byte, error) {
6628 type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest
6629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6630 }
6631
6632
6633
6634 type GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse struct {
6635
6636
6637
6638 EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"entityTypesContent,omitempty"`
6639
6640
6641
6642 EntityTypesUri string `json:"entityTypesUri,omitempty"`
6643
6644
6645
6646
6647
6648 ForceSendFields []string `json:"-"`
6649
6650
6651
6652
6653 NullFields []string `json:"-"`
6654 }
6655
6656 func (s *GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse) MarshalJSON() ([]byte, error) {
6657 type NoMethod GoogleCloudDialogflowCxV3beta1ExportEntityTypesResponse
6658 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6659 }
6660
6661
6662
6663 type GoogleCloudDialogflowCxV3beta1ExportFlowRequest struct {
6664
6665
6666
6667
6668
6669
6670
6671
6672 FlowUri string `json:"flowUri,omitempty"`
6673
6674
6675 IncludeReferencedFlows bool `json:"includeReferencedFlows,omitempty"`
6676
6677
6678
6679
6680
6681 ForceSendFields []string `json:"-"`
6682
6683
6684
6685
6686 NullFields []string `json:"-"`
6687 }
6688
6689 func (s *GoogleCloudDialogflowCxV3beta1ExportFlowRequest) MarshalJSON() ([]byte, error) {
6690 type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowRequest
6691 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6692 }
6693
6694
6695
6696 type GoogleCloudDialogflowCxV3beta1ExportFlowResponse struct {
6697
6698 FlowContent string `json:"flowContent,omitempty"`
6699
6700
6701 FlowUri string `json:"flowUri,omitempty"`
6702
6703
6704
6705
6706
6707 ForceSendFields []string `json:"-"`
6708
6709
6710
6711
6712 NullFields []string `json:"-"`
6713 }
6714
6715 func (s *GoogleCloudDialogflowCxV3beta1ExportFlowResponse) MarshalJSON() ([]byte, error) {
6716 type NoMethod GoogleCloudDialogflowCxV3beta1ExportFlowResponse
6717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6718 }
6719
6720
6721
6722 type GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata struct {
6723 }
6724
6725
6726
6727 type GoogleCloudDialogflowCxV3beta1ExportIntentsRequest struct {
6728
6729
6730
6731
6732
6733
6734
6735
6736 DataFormat string `json:"dataFormat,omitempty"`
6737
6738
6739 Intents []string `json:"intents,omitempty"`
6740
6741
6742 IntentsContentInline bool `json:"intentsContentInline,omitempty"`
6743
6744
6745
6746
6747
6748
6749
6750 IntentsUri string `json:"intentsUri,omitempty"`
6751
6752
6753
6754
6755
6756 ForceSendFields []string `json:"-"`
6757
6758
6759
6760
6761 NullFields []string `json:"-"`
6762 }
6763
6764 func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsRequest) MarshalJSON() ([]byte, error) {
6765 type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsRequest
6766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6767 }
6768
6769
6770
6771 type GoogleCloudDialogflowCxV3beta1ExportIntentsResponse struct {
6772
6773
6774
6775 IntentsContent *GoogleCloudDialogflowCxV3beta1InlineDestination `json:"intentsContent,omitempty"`
6776
6777
6778 IntentsUri string `json:"intentsUri,omitempty"`
6779
6780
6781
6782
6783
6784 ForceSendFields []string `json:"-"`
6785
6786
6787
6788
6789 NullFields []string `json:"-"`
6790 }
6791
6792 func (s *GoogleCloudDialogflowCxV3beta1ExportIntentsResponse) MarshalJSON() ([]byte, error) {
6793 type NoMethod GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
6794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6795 }
6796
6797
6798
6799
6800 type GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata struct {
6801 }
6802
6803
6804
6805 type GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest struct {
6806
6807
6808
6809
6810
6811
6812
6813 DataFormat string `json:"dataFormat,omitempty"`
6814
6815
6816
6817
6818
6819 Filter string `json:"filter,omitempty"`
6820
6821
6822
6823
6824
6825
6826
6827 GcsUri string `json:"gcsUri,omitempty"`
6828
6829
6830
6831
6832
6833 ForceSendFields []string `json:"-"`
6834
6835
6836
6837
6838 NullFields []string `json:"-"`
6839 }
6840
6841 func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest) MarshalJSON() ([]byte, error) {
6842 type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest
6843 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6844 }
6845
6846
6847
6848 type GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse struct {
6849
6850 Content string `json:"content,omitempty"`
6851
6852
6853 GcsUri string `json:"gcsUri,omitempty"`
6854
6855
6856
6857
6858
6859 ForceSendFields []string `json:"-"`
6860
6861
6862
6863
6864 NullFields []string `json:"-"`
6865 }
6866
6867 func (s *GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse) MarshalJSON() ([]byte, error) {
6868 type NoMethod GoogleCloudDialogflowCxV3beta1ExportTestCasesResponse
6869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6870 }
6871
6872
6873
6874 type GoogleCloudDialogflowCxV3beta1FilterSpecs struct {
6875
6876
6877
6878
6879
6880 DataStores []string `json:"dataStores,omitempty"`
6881
6882
6883
6884 Filter string `json:"filter,omitempty"`
6885
6886
6887
6888
6889
6890 ForceSendFields []string `json:"-"`
6891
6892
6893
6894
6895 NullFields []string `json:"-"`
6896 }
6897
6898 func (s *GoogleCloudDialogflowCxV3beta1FilterSpecs) MarshalJSON() ([]byte, error) {
6899 type NoMethod GoogleCloudDialogflowCxV3beta1FilterSpecs
6900 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6901 }
6902
6903
6904
6905
6906
6907
6908
6909
6910
6911
6912
6913
6914 type GoogleCloudDialogflowCxV3beta1Flow struct {
6915
6916
6917
6918 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
6919
6920
6921 Description string `json:"description,omitempty"`
6922
6923 DisplayName string `json:"displayName,omitempty"`
6924
6925
6926
6927
6928
6929
6930
6931 EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
6932
6933 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
6934
6935 MultiLanguageSettings *GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings `json:"multiLanguageSettings,omitempty"`
6936
6937
6938 Name string `json:"name,omitempty"`
6939
6940 NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
6941
6942
6943
6944
6945
6946
6947
6948 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
6949
6950
6951
6952
6953
6954
6955
6956
6957
6958 TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
6959
6960
6961 googleapi.ServerResponse `json:"-"`
6962
6963
6964
6965
6966
6967 ForceSendFields []string `json:"-"`
6968
6969
6970
6971
6972 NullFields []string `json:"-"`
6973 }
6974
6975 func (s *GoogleCloudDialogflowCxV3beta1Flow) MarshalJSON() ([]byte, error) {
6976 type NoMethod GoogleCloudDialogflowCxV3beta1Flow
6977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6978 }
6979
6980
6981
6982 type GoogleCloudDialogflowCxV3beta1FlowImportStrategy struct {
6983
6984
6985
6986
6987
6988
6989
6990
6991
6992
6993
6994
6995
6996
6997
6998
6999
7000 GlobalImportStrategy string `json:"globalImportStrategy,omitempty"`
7001
7002
7003
7004
7005
7006 ForceSendFields []string `json:"-"`
7007
7008
7009
7010
7011 NullFields []string `json:"-"`
7012 }
7013
7014 func (s *GoogleCloudDialogflowCxV3beta1FlowImportStrategy) MarshalJSON() ([]byte, error) {
7015 type NoMethod GoogleCloudDialogflowCxV3beta1FlowImportStrategy
7016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7017 }
7018
7019
7020
7021 type GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings struct {
7022
7023
7024
7025 EnableMultiLanguageDetection bool `json:"enableMultiLanguageDetection,omitempty"`
7026
7027
7028
7029
7030
7031
7032 SupportedResponseLanguageCodes []string `json:"supportedResponseLanguageCodes,omitempty"`
7033
7034
7035
7036
7037
7038 ForceSendFields []string `json:"-"`
7039
7040
7041
7042
7043 NullFields []string `json:"-"`
7044 }
7045
7046 func (s *GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings) MarshalJSON() ([]byte, error) {
7047 type NoMethod GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings
7048 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7049 }
7050
7051
7052
7053 type GoogleCloudDialogflowCxV3beta1FlowValidationResult struct {
7054
7055
7056 Name string `json:"name,omitempty"`
7057
7058 UpdateTime string `json:"updateTime,omitempty"`
7059
7060 ValidationMessages []*GoogleCloudDialogflowCxV3beta1ValidationMessage `json:"validationMessages,omitempty"`
7061
7062
7063 googleapi.ServerResponse `json:"-"`
7064
7065
7066
7067
7068
7069 ForceSendFields []string `json:"-"`
7070
7071
7072
7073
7074 NullFields []string `json:"-"`
7075 }
7076
7077 func (s *GoogleCloudDialogflowCxV3beta1FlowValidationResult) MarshalJSON() ([]byte, error) {
7078 type NoMethod GoogleCloudDialogflowCxV3beta1FlowValidationResult
7079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7080 }
7081
7082
7083
7084
7085
7086
7087 type GoogleCloudDialogflowCxV3beta1Form struct {
7088
7089 Parameters []*GoogleCloudDialogflowCxV3beta1FormParameter `json:"parameters,omitempty"`
7090
7091
7092
7093
7094
7095 ForceSendFields []string `json:"-"`
7096
7097
7098
7099
7100 NullFields []string `json:"-"`
7101 }
7102
7103 func (s *GoogleCloudDialogflowCxV3beta1Form) MarshalJSON() ([]byte, error) {
7104 type NoMethod GoogleCloudDialogflowCxV3beta1Form
7105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7106 }
7107
7108
7109 type GoogleCloudDialogflowCxV3beta1FormParameter struct {
7110
7111
7112
7113 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
7114
7115
7116 DefaultValue interface{} `json:"defaultValue,omitempty"`
7117
7118
7119 DisplayName string `json:"displayName,omitempty"`
7120
7121
7122
7123
7124 EntityType string `json:"entityType,omitempty"`
7125
7126 FillBehavior *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior `json:"fillBehavior,omitempty"`
7127
7128 IsList bool `json:"isList,omitempty"`
7129
7130
7131
7132
7133 Redact bool `json:"redact,omitempty"`
7134
7135
7136
7137 Required bool `json:"required,omitempty"`
7138
7139
7140
7141
7142
7143 ForceSendFields []string `json:"-"`
7144
7145
7146
7147
7148 NullFields []string `json:"-"`
7149 }
7150
7151 func (s *GoogleCloudDialogflowCxV3beta1FormParameter) MarshalJSON() ([]byte, error) {
7152 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameter
7153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7154 }
7155
7156
7157
7158 type GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior struct {
7159
7160
7161
7162 InitialPromptFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"initialPromptFulfillment,omitempty"`
7163
7164
7165
7166
7167
7168
7169
7170
7171
7172
7173
7174
7175
7176
7177
7178
7179
7180
7181
7182
7183
7184 RepromptEventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"repromptEventHandlers,omitempty"`
7185
7186
7187
7188
7189
7190 ForceSendFields []string `json:"-"`
7191
7192
7193
7194
7195 NullFields []string `json:"-"`
7196 }
7197
7198 func (s *GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior) MarshalJSON() ([]byte, error) {
7199 type NoMethod GoogleCloudDialogflowCxV3beta1FormParameterFillBehavior
7200 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7201 }
7202
7203
7204 type GoogleCloudDialogflowCxV3beta1FulfillIntentRequest struct {
7205
7206 Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
7207
7208
7209 MatchIntentRequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest `json:"matchIntentRequest,omitempty"`
7210
7211
7212 OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
7213
7214
7215
7216
7217
7218 ForceSendFields []string `json:"-"`
7219
7220
7221
7222
7223 NullFields []string `json:"-"`
7224 }
7225
7226 func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) MarshalJSON() ([]byte, error) {
7227 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
7228 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7229 }
7230
7231
7232
7233 type GoogleCloudDialogflowCxV3beta1FulfillIntentResponse struct {
7234
7235
7236
7237
7238
7239
7240
7241
7242 OutputAudio string `json:"outputAudio,omitempty"`
7243
7244
7245 OutputAudioConfig *GoogleCloudDialogflowCxV3beta1OutputAudioConfig `json:"outputAudioConfig,omitempty"`
7246
7247 QueryResult *GoogleCloudDialogflowCxV3beta1QueryResult `json:"queryResult,omitempty"`
7248
7249
7250
7251 ResponseId string `json:"responseId,omitempty"`
7252
7253
7254 googleapi.ServerResponse `json:"-"`
7255
7256
7257
7258
7259
7260 ForceSendFields []string `json:"-"`
7261
7262
7263
7264
7265 NullFields []string `json:"-"`
7266 }
7267
7268 func (s *GoogleCloudDialogflowCxV3beta1FulfillIntentResponse) MarshalJSON() ([]byte, error) {
7269 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillIntentResponse
7270 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7271 }
7272
7273
7274
7275
7276
7277
7278
7279
7280
7281 type GoogleCloudDialogflowCxV3beta1Fulfillment struct {
7282
7283
7284
7285 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
7286
7287 ConditionalCases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"conditionalCases,omitempty"`
7288
7289
7290
7291
7292 EnableGenerativeFallback bool `json:"enableGenerativeFallback,omitempty"`
7293
7294 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
7295
7296
7297
7298
7299
7300
7301
7302 ReturnPartialResponses bool `json:"returnPartialResponses,omitempty"`
7303
7304 SetParameterActions []*GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction `json:"setParameterActions,omitempty"`
7305
7306
7307
7308
7309
7310 Tag string `json:"tag,omitempty"`
7311
7312
7313 Webhook string `json:"webhook,omitempty"`
7314
7315
7316
7317
7318
7319 ForceSendFields []string `json:"-"`
7320
7321
7322
7323
7324 NullFields []string `json:"-"`
7325 }
7326
7327 func (s *GoogleCloudDialogflowCxV3beta1Fulfillment) MarshalJSON() ([]byte, error) {
7328 type NoMethod GoogleCloudDialogflowCxV3beta1Fulfillment
7329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7330 }
7331
7332
7333
7334
7335 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases struct {
7336
7337 Cases []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase `json:"cases,omitempty"`
7338
7339
7340
7341
7342
7343 ForceSendFields []string `json:"-"`
7344
7345
7346
7347
7348 NullFields []string `json:"-"`
7349 }
7350
7351 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases) MarshalJSON() ([]byte, error) {
7352 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases
7353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7354 }
7355
7356
7357
7358
7359 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase struct {
7360
7361 CaseContent []*GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent `json:"caseContent,omitempty"`
7362
7363
7364
7365
7366 Condition string `json:"condition,omitempty"`
7367
7368
7369
7370
7371
7372 ForceSendFields []string `json:"-"`
7373
7374
7375
7376
7377 NullFields []string `json:"-"`
7378 }
7379
7380 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase) MarshalJSON() ([]byte, error) {
7381 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCase
7382 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7383 }
7384
7385
7386
7387 type GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent struct {
7388
7389 AdditionalCases *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases `json:"additionalCases,omitempty"`
7390
7391 Message *GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"message,omitempty"`
7392
7393
7394
7395
7396
7397 ForceSendFields []string `json:"-"`
7398
7399
7400
7401
7402 NullFields []string `json:"-"`
7403 }
7404
7405 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent) MarshalJSON() ([]byte, error) {
7406 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCasesCaseCaseContent
7407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7408 }
7409
7410
7411
7412 type GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction struct {
7413
7414 Parameter string `json:"parameter,omitempty"`
7415
7416 Value interface{} `json:"value,omitempty"`
7417
7418
7419
7420
7421
7422 ForceSendFields []string `json:"-"`
7423
7424
7425
7426
7427 NullFields []string `json:"-"`
7428 }
7429
7430 func (s *GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction) MarshalJSON() ([]byte, error) {
7431 type NoMethod GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction
7432 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7433 }
7434
7435
7436
7437
7438 type GoogleCloudDialogflowCxV3beta1GcsDestination struct {
7439
7440
7441
7442 Uri string `json:"uri,omitempty"`
7443
7444
7445
7446
7447
7448 ForceSendFields []string `json:"-"`
7449
7450
7451
7452
7453 NullFields []string `json:"-"`
7454 }
7455
7456 func (s *GoogleCloudDialogflowCxV3beta1GcsDestination) MarshalJSON() ([]byte, error) {
7457 type NoMethod GoogleCloudDialogflowCxV3beta1GcsDestination
7458 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7459 }
7460
7461
7462
7463 type GoogleCloudDialogflowCxV3beta1GenerativeSettings struct {
7464
7465 FallbackSettings *GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings `json:"fallbackSettings,omitempty"`
7466
7467 GenerativeSafetySettings *GoogleCloudDialogflowCxV3beta1SafetySettings `json:"generativeSafetySettings,omitempty"`
7468
7469 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
7470
7471 LanguageCode string `json:"languageCode,omitempty"`
7472
7473 Name string `json:"name,omitempty"`
7474
7475
7476 googleapi.ServerResponse `json:"-"`
7477
7478
7479
7480
7481
7482 ForceSendFields []string `json:"-"`
7483
7484
7485
7486
7487 NullFields []string `json:"-"`
7488 }
7489
7490 func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettings) MarshalJSON() ([]byte, error) {
7491 type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettings
7492 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7493 }
7494
7495
7496
7497 type GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings struct {
7498
7499
7500 PromptTemplates []*GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate `json:"promptTemplates,omitempty"`
7501
7502 SelectedPrompt string `json:"selectedPrompt,omitempty"`
7503
7504
7505
7506
7507
7508 ForceSendFields []string `json:"-"`
7509
7510
7511
7512
7513 NullFields []string `json:"-"`
7514 }
7515
7516 func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings) MarshalJSON() ([]byte, error) {
7517 type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
7518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7519 }
7520
7521
7522
7523 type GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate struct {
7524
7525 DisplayName string `json:"displayName,omitempty"`
7526
7527
7528 Frozen bool `json:"frozen,omitempty"`
7529
7530
7531
7532 PromptText string `json:"promptText,omitempty"`
7533
7534
7535
7536
7537
7538 ForceSendFields []string `json:"-"`
7539
7540
7541
7542
7543 NullFields []string `json:"-"`
7544 }
7545
7546 func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate) MarshalJSON() ([]byte, error) {
7547 type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
7548 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7549 }
7550
7551
7552
7553
7554
7555 type GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings struct {
7556
7557 Agent string `json:"agent,omitempty"`
7558
7559 AgentIdentity string `json:"agentIdentity,omitempty"`
7560
7561
7562 AgentScope string `json:"agentScope,omitempty"`
7563
7564
7565
7566 Business string `json:"business,omitempty"`
7567
7568
7569 BusinessDescription string `json:"businessDescription,omitempty"`
7570
7571
7572
7573 DisableDataStoreFallback bool `json:"disableDataStoreFallback,omitempty"`
7574
7575
7576
7577
7578
7579 ForceSendFields []string `json:"-"`
7580
7581
7582
7583
7584 NullFields []string `json:"-"`
7585 }
7586
7587 func (s *GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
7588 type NoMethod GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings
7589 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7590 }
7591
7592
7593
7594
7595
7596 type GoogleCloudDialogflowCxV3beta1Generator struct {
7597
7598
7599
7600
7601 DisplayName string `json:"displayName,omitempty"`
7602
7603
7604
7605 Name string `json:"name,omitempty"`
7606
7607 Placeholders []*GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder `json:"placeholders,omitempty"`
7608
7609 PromptText *GoogleCloudDialogflowCxV3beta1Phrase `json:"promptText,omitempty"`
7610
7611
7612 googleapi.ServerResponse `json:"-"`
7613
7614
7615
7616
7617
7618 ForceSendFields []string `json:"-"`
7619
7620
7621
7622
7623 NullFields []string `json:"-"`
7624 }
7625
7626 func (s *GoogleCloudDialogflowCxV3beta1Generator) MarshalJSON() ([]byte, error) {
7627 type NoMethod GoogleCloudDialogflowCxV3beta1Generator
7628 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7629 }
7630
7631
7632
7633 type GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder struct {
7634
7635 Id string `json:"id,omitempty"`
7636
7637 Name string `json:"name,omitempty"`
7638
7639
7640
7641
7642
7643 ForceSendFields []string `json:"-"`
7644
7645
7646
7647
7648 NullFields []string `json:"-"`
7649 }
7650
7651 func (s *GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder) MarshalJSON() ([]byte, error) {
7652 type NoMethod GoogleCloudDialogflowCxV3beta1GeneratorPlaceholder
7653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7654 }
7655
7656
7657
7658 type GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata struct {
7659
7660
7661
7662
7663
7664
7665
7666 State string `json:"state,omitempty"`
7667
7668
7669
7670
7671
7672 ForceSendFields []string `json:"-"`
7673
7674
7675
7676
7677 NullFields []string `json:"-"`
7678 }
7679
7680 func (s *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
7681 type NoMethod GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
7682 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7683 }
7684
7685
7686
7687 type GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata struct {
7688
7689 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
7690
7691
7692
7693
7694
7695 ForceSendFields []string `json:"-"`
7696
7697
7698
7699
7700 NullFields []string `json:"-"`
7701 }
7702
7703 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
7704 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsOperationMetadata
7705 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7706 }
7707
7708
7709
7710 type GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse struct {
7711
7712 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
7713
7714
7715
7716
7717
7718 ForceSendFields []string `json:"-"`
7719
7720
7721
7722
7723 NullFields []string `json:"-"`
7724 }
7725
7726 func (s *GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
7727 type NoMethod GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
7728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7729 }
7730
7731
7732
7733 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesMetadata struct {
7734 }
7735
7736
7737
7738 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest struct {
7739
7740 EntityTypesContent *GoogleCloudDialogflowCxV3beta1InlineSource `json:"entityTypesContent,omitempty"`
7741
7742
7743
7744
7745
7746
7747
7748 EntityTypesUri string `json:"entityTypesUri,omitempty"`
7749
7750
7751
7752
7753
7754
7755
7756
7757
7758
7759
7760
7761
7762
7763
7764 MergeOption string `json:"mergeOption,omitempty"`
7765
7766
7767
7768
7769
7770 TargetEntityType string `json:"targetEntityType,omitempty"`
7771
7772
7773
7774
7775
7776 ForceSendFields []string `json:"-"`
7777
7778
7779
7780
7781 NullFields []string `json:"-"`
7782 }
7783
7784 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest) MarshalJSON() ([]byte, error) {
7785 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest
7786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7787 }
7788
7789
7790
7791 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse struct {
7792
7793
7794 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources `json:"conflictingResources,omitempty"`
7795
7796
7797 EntityTypes []string `json:"entityTypes,omitempty"`
7798
7799
7800
7801
7802
7803 ForceSendFields []string `json:"-"`
7804
7805
7806
7807
7808 NullFields []string `json:"-"`
7809 }
7810
7811 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse) MarshalJSON() ([]byte, error) {
7812 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponse
7813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7814 }
7815
7816
7817
7818
7819
7820 type GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources struct {
7821
7822 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
7823
7824 EntityTypeDisplayNames []string `json:"entityTypeDisplayNames,omitempty"`
7825
7826
7827
7828
7829
7830 ForceSendFields []string `json:"-"`
7831
7832
7833
7834
7835 NullFields []string `json:"-"`
7836 }
7837
7838 func (s *GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources) MarshalJSON() ([]byte, error) {
7839 type NoMethod GoogleCloudDialogflowCxV3beta1ImportEntityTypesResponseConflictingResources
7840 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7841 }
7842
7843
7844
7845 type GoogleCloudDialogflowCxV3beta1ImportFlowRequest struct {
7846
7847 FlowContent string `json:"flowContent,omitempty"`
7848
7849
7850 FlowImportStrategy *GoogleCloudDialogflowCxV3beta1FlowImportStrategy `json:"flowImportStrategy,omitempty"`
7851
7852
7853
7854
7855
7856
7857 FlowUri string `json:"flowUri,omitempty"`
7858
7859
7860
7861
7862
7863
7864
7865
7866
7867
7868 ImportOption string `json:"importOption,omitempty"`
7869
7870
7871
7872
7873
7874 ForceSendFields []string `json:"-"`
7875
7876
7877
7878
7879 NullFields []string `json:"-"`
7880 }
7881
7882 func (s *GoogleCloudDialogflowCxV3beta1ImportFlowRequest) MarshalJSON() ([]byte, error) {
7883 type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowRequest
7884 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7885 }
7886
7887
7888
7889 type GoogleCloudDialogflowCxV3beta1ImportFlowResponse struct {
7890
7891
7892 Flow string `json:"flow,omitempty"`
7893
7894
7895
7896
7897
7898 ForceSendFields []string `json:"-"`
7899
7900
7901
7902
7903 NullFields []string `json:"-"`
7904 }
7905
7906 func (s *GoogleCloudDialogflowCxV3beta1ImportFlowResponse) MarshalJSON() ([]byte, error) {
7907 type NoMethod GoogleCloudDialogflowCxV3beta1ImportFlowResponse
7908 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7909 }
7910
7911
7912
7913 type GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata struct {
7914 }
7915
7916
7917
7918 type GoogleCloudDialogflowCxV3beta1ImportIntentsRequest struct {
7919
7920 IntentsContent *GoogleCloudDialogflowCxV3beta1InlineSource `json:"intentsContent,omitempty"`
7921
7922
7923
7924
7925
7926
7927
7928 IntentsUri string `json:"intentsUri,omitempty"`
7929
7930
7931
7932
7933
7934
7935
7936
7937
7938
7939
7940
7941
7942
7943
7944
7945
7946
7947 MergeOption string `json:"mergeOption,omitempty"`
7948
7949
7950
7951
7952
7953 ForceSendFields []string `json:"-"`
7954
7955
7956
7957
7958 NullFields []string `json:"-"`
7959 }
7960
7961 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsRequest) MarshalJSON() ([]byte, error) {
7962 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsRequest
7963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7964 }
7965
7966
7967
7968 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponse struct {
7969
7970
7971 ConflictingResources *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources `json:"conflictingResources,omitempty"`
7972
7973
7974 Intents []string `json:"intents,omitempty"`
7975
7976
7977
7978
7979
7980 ForceSendFields []string `json:"-"`
7981
7982
7983
7984
7985 NullFields []string `json:"-"`
7986 }
7987
7988 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponse) MarshalJSON() ([]byte, error) {
7989 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
7990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7991 }
7992
7993
7994
7995
7996
7997 type GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources struct {
7998
7999 EntityDisplayNames []string `json:"entityDisplayNames,omitempty"`
8000
8001 IntentDisplayNames []string `json:"intentDisplayNames,omitempty"`
8002
8003
8004
8005
8006
8007 ForceSendFields []string `json:"-"`
8008
8009
8010
8011
8012 NullFields []string `json:"-"`
8013 }
8014
8015 func (s *GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources) MarshalJSON() ([]byte, error) {
8016 type NoMethod GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
8017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8018 }
8019
8020
8021
8022 type GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata struct {
8023
8024 Errors []*GoogleCloudDialogflowCxV3beta1TestCaseError `json:"errors,omitempty"`
8025
8026
8027
8028
8029
8030 ForceSendFields []string `json:"-"`
8031
8032
8033
8034
8035 NullFields []string `json:"-"`
8036 }
8037
8038 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata) MarshalJSON() ([]byte, error) {
8039 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
8040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8041 }
8042
8043
8044
8045 type GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest struct {
8046
8047 Content string `json:"content,omitempty"`
8048
8049
8050
8051
8052
8053
8054 GcsUri string `json:"gcsUri,omitempty"`
8055
8056
8057
8058
8059
8060 ForceSendFields []string `json:"-"`
8061
8062
8063
8064
8065 NullFields []string `json:"-"`
8066 }
8067
8068 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest) MarshalJSON() ([]byte, error) {
8069 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest
8070 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8071 }
8072
8073
8074
8075 type GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse struct {
8076
8077
8078 Names []string `json:"names,omitempty"`
8079
8080
8081
8082
8083
8084 ForceSendFields []string `json:"-"`
8085
8086
8087
8088
8089 NullFields []string `json:"-"`
8090 }
8091
8092 func (s *GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse) MarshalJSON() ([]byte, error) {
8093 type NoMethod GoogleCloudDialogflowCxV3beta1ImportTestCasesResponse
8094 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8095 }
8096
8097
8098
8099
8100 type GoogleCloudDialogflowCxV3beta1InlineDestination struct {
8101
8102
8103 Content string `json:"content,omitempty"`
8104
8105
8106
8107
8108
8109 ForceSendFields []string `json:"-"`
8110
8111
8112
8113
8114 NullFields []string `json:"-"`
8115 }
8116
8117 func (s *GoogleCloudDialogflowCxV3beta1InlineDestination) MarshalJSON() ([]byte, error) {
8118 type NoMethod GoogleCloudDialogflowCxV3beta1InlineDestination
8119 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8120 }
8121
8122
8123
8124 type GoogleCloudDialogflowCxV3beta1InlineSource struct {
8125
8126 Content string `json:"content,omitempty"`
8127
8128
8129
8130
8131
8132 ForceSendFields []string `json:"-"`
8133
8134
8135
8136
8137 NullFields []string `json:"-"`
8138 }
8139
8140 func (s *GoogleCloudDialogflowCxV3beta1InlineSource) MarshalJSON() ([]byte, error) {
8141 type NoMethod GoogleCloudDialogflowCxV3beta1InlineSource
8142 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8143 }
8144
8145
8146
8147 type GoogleCloudDialogflowCxV3beta1InputAudioConfig struct {
8148
8149
8150
8151
8152
8153
8154
8155
8156
8157
8158
8159
8160
8161
8162
8163
8164
8165
8166
8167
8168
8169
8170
8171
8172
8173
8174
8175
8176
8177
8178
8179
8180
8181 AudioEncoding string `json:"audioEncoding,omitempty"`
8182
8183
8184 BargeInConfig *GoogleCloudDialogflowCxV3beta1BargeInConfig `json:"bargeInConfig,omitempty"`
8185
8186
8187
8188
8189 EnableWordInfo bool `json:"enableWordInfo,omitempty"`
8190
8191
8192
8193 Model string `json:"model,omitempty"`
8194
8195
8196
8197
8198
8199
8200
8201
8202
8203
8204
8205
8206
8207
8208
8209
8210 ModelVariant string `json:"modelVariant,omitempty"`
8211
8212
8213
8214
8215
8216 OptOutConformerModelMigration bool `json:"optOutConformerModelMigration,omitempty"`
8217
8218
8219
8220
8221
8222 PhraseHints []string `json:"phraseHints,omitempty"`
8223
8224
8225
8226 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
8227
8228
8229
8230
8231
8232
8233
8234 SingleUtterance bool `json:"singleUtterance,omitempty"`
8235
8236
8237
8238
8239
8240 ForceSendFields []string `json:"-"`
8241
8242
8243
8244
8245 NullFields []string `json:"-"`
8246 }
8247
8248 func (s *GoogleCloudDialogflowCxV3beta1InputAudioConfig) MarshalJSON() ([]byte, error) {
8249 type NoMethod GoogleCloudDialogflowCxV3beta1InputAudioConfig
8250 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8251 }
8252
8253
8254
8255
8256
8257 type GoogleCloudDialogflowCxV3beta1Intent struct {
8258
8259
8260
8261 Description string `json:"description,omitempty"`
8262
8263
8264 DisplayName string `json:"displayName,omitempty"`
8265
8266
8267
8268
8269
8270 IsFallback bool `json:"isFallback,omitempty"`
8271
8272
8273
8274
8275
8276
8277
8278
8279
8280 Labels map[string]string `json:"labels,omitempty"`
8281
8282
8283
8284 Name string `json:"name,omitempty"`
8285
8286 Parameters []*GoogleCloudDialogflowCxV3beta1IntentParameter `json:"parameters,omitempty"`
8287
8288
8289
8290
8291
8292 Priority int64 `json:"priority,omitempty"`
8293
8294
8295 TrainingPhrases []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
8296
8297
8298 googleapi.ServerResponse `json:"-"`
8299
8300
8301
8302
8303
8304 ForceSendFields []string `json:"-"`
8305
8306
8307
8308
8309 NullFields []string `json:"-"`
8310 }
8311
8312 func (s *GoogleCloudDialogflowCxV3beta1Intent) MarshalJSON() ([]byte, error) {
8313 type NoMethod GoogleCloudDialogflowCxV3beta1Intent
8314 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8315 }
8316
8317
8318
8319
8320 type GoogleCloudDialogflowCxV3beta1IntentCoverage struct {
8321
8322 CoverageScore float64 `json:"coverageScore,omitempty"`
8323
8324 Intents []*GoogleCloudDialogflowCxV3beta1IntentCoverageIntent `json:"intents,omitempty"`
8325
8326
8327
8328
8329
8330 ForceSendFields []string `json:"-"`
8331
8332
8333
8334
8335 NullFields []string `json:"-"`
8336 }
8337
8338 func (s *GoogleCloudDialogflowCxV3beta1IntentCoverage) MarshalJSON() ([]byte, error) {
8339 type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverage
8340 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8341 }
8342
8343 func (s *GoogleCloudDialogflowCxV3beta1IntentCoverage) UnmarshalJSON(data []byte) error {
8344 type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverage
8345 var s1 struct {
8346 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
8347 *NoMethod
8348 }
8349 s1.NoMethod = (*NoMethod)(s)
8350 if err := json.Unmarshal(data, &s1); err != nil {
8351 return err
8352 }
8353 s.CoverageScore = float64(s1.CoverageScore)
8354 return nil
8355 }
8356
8357
8358 type GoogleCloudDialogflowCxV3beta1IntentCoverageIntent struct {
8359
8360
8361 Covered bool `json:"covered,omitempty"`
8362
8363 Intent string `json:"intent,omitempty"`
8364
8365
8366
8367
8368
8369 ForceSendFields []string `json:"-"`
8370
8371
8372
8373
8374 NullFields []string `json:"-"`
8375 }
8376
8377 func (s *GoogleCloudDialogflowCxV3beta1IntentCoverageIntent) MarshalJSON() ([]byte, error) {
8378 type NoMethod GoogleCloudDialogflowCxV3beta1IntentCoverageIntent
8379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8380 }
8381
8382
8383
8384 type GoogleCloudDialogflowCxV3beta1IntentInput struct {
8385
8386
8387 Intent string `json:"intent,omitempty"`
8388
8389
8390
8391
8392
8393 ForceSendFields []string `json:"-"`
8394
8395
8396
8397
8398 NullFields []string `json:"-"`
8399 }
8400
8401 func (s *GoogleCloudDialogflowCxV3beta1IntentInput) MarshalJSON() ([]byte, error) {
8402 type NoMethod GoogleCloudDialogflowCxV3beta1IntentInput
8403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8404 }
8405
8406
8407
8408 type GoogleCloudDialogflowCxV3beta1IntentParameter struct {
8409
8410
8411
8412
8413 EntityType string `json:"entityType,omitempty"`
8414
8415
8416 Id string `json:"id,omitempty"`
8417
8418 IsList bool `json:"isList,omitempty"`
8419
8420
8421
8422
8423 Redact bool `json:"redact,omitempty"`
8424
8425
8426
8427
8428
8429 ForceSendFields []string `json:"-"`
8430
8431
8432
8433
8434 NullFields []string `json:"-"`
8435 }
8436
8437 func (s *GoogleCloudDialogflowCxV3beta1IntentParameter) MarshalJSON() ([]byte, error) {
8438 type NoMethod GoogleCloudDialogflowCxV3beta1IntentParameter
8439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8440 }
8441
8442
8443
8444 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase struct {
8445
8446 Id string `json:"id,omitempty"`
8447
8448
8449
8450
8451
8452
8453
8454
8455
8456
8457
8458 Parts []*GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
8459
8460 RepeatCount int64 `json:"repeatCount,omitempty"`
8461
8462
8463
8464
8465
8466 ForceSendFields []string `json:"-"`
8467
8468
8469
8470
8471 NullFields []string `json:"-"`
8472 }
8473
8474 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
8475 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrase
8476 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8477 }
8478
8479
8480
8481 type GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart struct {
8482
8483
8484 ParameterId string `json:"parameterId,omitempty"`
8485
8486 Text string `json:"text,omitempty"`
8487
8488
8489
8490
8491
8492 ForceSendFields []string `json:"-"`
8493
8494
8495
8496
8497 NullFields []string `json:"-"`
8498 }
8499
8500 func (s *GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
8501 type NoMethod GoogleCloudDialogflowCxV3beta1IntentTrainingPhrasePart
8502 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8503 }
8504
8505
8506
8507
8508 type GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings struct {
8509
8510 DataStoreConnections []*GoogleCloudDialogflowCxV3beta1DataStoreConnection `json:"dataStoreConnections,omitempty"`
8511
8512 Enabled bool `json:"enabled,omitempty"`
8513
8514
8515 TargetFlow string `json:"targetFlow,omitempty"`
8516
8517
8518 TargetPage string `json:"targetPage,omitempty"`
8519
8520
8521
8522
8523
8524 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
8525
8526
8527
8528
8529
8530 ForceSendFields []string `json:"-"`
8531
8532
8533
8534
8535 NullFields []string `json:"-"`
8536 }
8537
8538 func (s *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings) MarshalJSON() ([]byte, error) {
8539 type NoMethod GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings
8540 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8541 }
8542
8543
8544
8545 type GoogleCloudDialogflowCxV3beta1LanguageInfo struct {
8546
8547
8548 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
8549
8550 InputLanguageCode string `json:"inputLanguageCode,omitempty"`
8551
8552
8553 ResolvedLanguageCode string `json:"resolvedLanguageCode,omitempty"`
8554
8555
8556
8557
8558
8559 ForceSendFields []string `json:"-"`
8560
8561
8562
8563
8564 NullFields []string `json:"-"`
8565 }
8566
8567 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) MarshalJSON() ([]byte, error) {
8568 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
8569 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8570 }
8571
8572 func (s *GoogleCloudDialogflowCxV3beta1LanguageInfo) UnmarshalJSON(data []byte) error {
8573 type NoMethod GoogleCloudDialogflowCxV3beta1LanguageInfo
8574 var s1 struct {
8575 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
8576 *NoMethod
8577 }
8578 s1.NoMethod = (*NoMethod)(s)
8579 if err := json.Unmarshal(data, &s1); err != nil {
8580 return err
8581 }
8582 s.ConfidenceScore = float64(s1.ConfidenceScore)
8583 return nil
8584 }
8585
8586
8587
8588 type GoogleCloudDialogflowCxV3beta1ListAgentsResponse struct {
8589
8590
8591 Agents []*GoogleCloudDialogflowCxV3beta1Agent `json:"agents,omitempty"`
8592
8593
8594 NextPageToken string `json:"nextPageToken,omitempty"`
8595
8596
8597 googleapi.ServerResponse `json:"-"`
8598
8599
8600
8601
8602
8603 ForceSendFields []string `json:"-"`
8604
8605
8606
8607
8608 NullFields []string `json:"-"`
8609 }
8610
8611 func (s *GoogleCloudDialogflowCxV3beta1ListAgentsResponse) MarshalJSON() ([]byte, error) {
8612 type NoMethod GoogleCloudDialogflowCxV3beta1ListAgentsResponse
8613 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8614 }
8615
8616
8617
8618 type GoogleCloudDialogflowCxV3beta1ListChangelogsResponse struct {
8619
8620
8621
8622 Changelogs []*GoogleCloudDialogflowCxV3beta1Changelog `json:"changelogs,omitempty"`
8623
8624
8625 NextPageToken string `json:"nextPageToken,omitempty"`
8626
8627
8628 googleapi.ServerResponse `json:"-"`
8629
8630
8631
8632
8633
8634 ForceSendFields []string `json:"-"`
8635
8636
8637
8638
8639 NullFields []string `json:"-"`
8640 }
8641
8642 func (s *GoogleCloudDialogflowCxV3beta1ListChangelogsResponse) MarshalJSON() ([]byte, error) {
8643 type NoMethod GoogleCloudDialogflowCxV3beta1ListChangelogsResponse
8644 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8645 }
8646
8647
8648
8649 type GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse struct {
8650
8651 ContinuousTestResults []*GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResults,omitempty"`
8652
8653
8654 NextPageToken string `json:"nextPageToken,omitempty"`
8655
8656
8657 googleapi.ServerResponse `json:"-"`
8658
8659
8660
8661
8662
8663 ForceSendFields []string `json:"-"`
8664
8665
8666
8667
8668 NullFields []string `json:"-"`
8669 }
8670
8671 func (s *GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse) MarshalJSON() ([]byte, error) {
8672 type NoMethod GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse
8673 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8674 }
8675
8676
8677
8678 type GoogleCloudDialogflowCxV3beta1ListConversationsResponse struct {
8679
8680
8681
8682 Conversations []*GoogleCloudDialogflowCxV3beta1Conversation `json:"conversations,omitempty"`
8683
8684
8685 NextPageToken string `json:"nextPageToken,omitempty"`
8686
8687
8688 googleapi.ServerResponse `json:"-"`
8689
8690
8691
8692
8693
8694 ForceSendFields []string `json:"-"`
8695
8696
8697
8698
8699 NullFields []string `json:"-"`
8700 }
8701
8702 func (s *GoogleCloudDialogflowCxV3beta1ListConversationsResponse) MarshalJSON() ([]byte, error) {
8703 type NoMethod GoogleCloudDialogflowCxV3beta1ListConversationsResponse
8704 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8705 }
8706
8707
8708
8709 type GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse struct {
8710
8711
8712
8713
8714 Deployments []*GoogleCloudDialogflowCxV3beta1Deployment `json:"deployments,omitempty"`
8715
8716
8717 NextPageToken string `json:"nextPageToken,omitempty"`
8718
8719
8720 googleapi.ServerResponse `json:"-"`
8721
8722
8723
8724
8725
8726 ForceSendFields []string `json:"-"`
8727
8728
8729
8730
8731 NullFields []string `json:"-"`
8732 }
8733
8734 func (s *GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse) MarshalJSON() ([]byte, error) {
8735 type NoMethod GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse
8736 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8737 }
8738
8739
8740
8741 type GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse struct {
8742
8743
8744 EntityTypes []*GoogleCloudDialogflowCxV3beta1EntityType `json:"entityTypes,omitempty"`
8745
8746
8747 NextPageToken string `json:"nextPageToken,omitempty"`
8748
8749
8750 googleapi.ServerResponse `json:"-"`
8751
8752
8753
8754
8755
8756 ForceSendFields []string `json:"-"`
8757
8758
8759
8760
8761 NullFields []string `json:"-"`
8762 }
8763
8764 func (s *GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) MarshalJSON() ([]byte, error) {
8765 type NoMethod GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse
8766 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8767 }
8768
8769
8770
8771 type GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse struct {
8772
8773
8774
8775
8776 Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
8777
8778
8779 NextPageToken string `json:"nextPageToken,omitempty"`
8780
8781
8782 googleapi.ServerResponse `json:"-"`
8783
8784
8785
8786
8787
8788 ForceSendFields []string `json:"-"`
8789
8790
8791
8792
8793 NullFields []string `json:"-"`
8794 }
8795
8796 func (s *GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) MarshalJSON() ([]byte, error) {
8797 type NoMethod GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse
8798 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8799 }
8800
8801
8802
8803 type GoogleCloudDialogflowCxV3beta1ListExperimentsResponse struct {
8804
8805
8806
8807
8808 Experiments []*GoogleCloudDialogflowCxV3beta1Experiment `json:"experiments,omitempty"`
8809
8810
8811 NextPageToken string `json:"nextPageToken,omitempty"`
8812
8813
8814 googleapi.ServerResponse `json:"-"`
8815
8816
8817
8818
8819
8820 ForceSendFields []string `json:"-"`
8821
8822
8823
8824
8825 NullFields []string `json:"-"`
8826 }
8827
8828 func (s *GoogleCloudDialogflowCxV3beta1ListExperimentsResponse) MarshalJSON() ([]byte, error) {
8829 type NoMethod GoogleCloudDialogflowCxV3beta1ListExperimentsResponse
8830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8831 }
8832
8833
8834
8835 type GoogleCloudDialogflowCxV3beta1ListFlowsResponse struct {
8836
8837
8838 Flows []*GoogleCloudDialogflowCxV3beta1Flow `json:"flows,omitempty"`
8839
8840
8841 NextPageToken string `json:"nextPageToken,omitempty"`
8842
8843
8844 googleapi.ServerResponse `json:"-"`
8845
8846
8847
8848
8849
8850 ForceSendFields []string `json:"-"`
8851
8852
8853
8854
8855 NullFields []string `json:"-"`
8856 }
8857
8858 func (s *GoogleCloudDialogflowCxV3beta1ListFlowsResponse) MarshalJSON() ([]byte, error) {
8859 type NoMethod GoogleCloudDialogflowCxV3beta1ListFlowsResponse
8860 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8861 }
8862
8863
8864
8865 type GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse struct {
8866
8867
8868 Generators []*GoogleCloudDialogflowCxV3beta1Generator `json:"generators,omitempty"`
8869
8870
8871 NextPageToken string `json:"nextPageToken,omitempty"`
8872
8873
8874 googleapi.ServerResponse `json:"-"`
8875
8876
8877
8878
8879
8880 ForceSendFields []string `json:"-"`
8881
8882
8883
8884
8885 NullFields []string `json:"-"`
8886 }
8887
8888 func (s *GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse) MarshalJSON() ([]byte, error) {
8889 type NoMethod GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse
8890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8891 }
8892
8893
8894
8895 type GoogleCloudDialogflowCxV3beta1ListIntentsResponse struct {
8896
8897
8898 Intents []*GoogleCloudDialogflowCxV3beta1Intent `json:"intents,omitempty"`
8899
8900
8901 NextPageToken string `json:"nextPageToken,omitempty"`
8902
8903
8904 googleapi.ServerResponse `json:"-"`
8905
8906
8907
8908
8909
8910 ForceSendFields []string `json:"-"`
8911
8912
8913
8914
8915 NullFields []string `json:"-"`
8916 }
8917
8918 func (s *GoogleCloudDialogflowCxV3beta1ListIntentsResponse) MarshalJSON() ([]byte, error) {
8919 type NoMethod GoogleCloudDialogflowCxV3beta1ListIntentsResponse
8920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8921 }
8922
8923
8924
8925 type GoogleCloudDialogflowCxV3beta1ListPagesResponse struct {
8926
8927
8928 NextPageToken string `json:"nextPageToken,omitempty"`
8929
8930
8931 Pages []*GoogleCloudDialogflowCxV3beta1Page `json:"pages,omitempty"`
8932
8933
8934 googleapi.ServerResponse `json:"-"`
8935
8936
8937
8938
8939
8940 ForceSendFields []string `json:"-"`
8941
8942
8943
8944
8945 NullFields []string `json:"-"`
8946 }
8947
8948 func (s *GoogleCloudDialogflowCxV3beta1ListPagesResponse) MarshalJSON() ([]byte, error) {
8949 type NoMethod GoogleCloudDialogflowCxV3beta1ListPagesResponse
8950 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8951 }
8952
8953
8954
8955 type GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse struct {
8956
8957
8958 NextPageToken string `json:"nextPageToken,omitempty"`
8959
8960 SecuritySettings []*GoogleCloudDialogflowCxV3beta1SecuritySettings `json:"securitySettings,omitempty"`
8961
8962
8963 googleapi.ServerResponse `json:"-"`
8964
8965
8966
8967
8968
8969 ForceSendFields []string `json:"-"`
8970
8971
8972
8973
8974 NullFields []string `json:"-"`
8975 }
8976
8977 func (s *GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse) MarshalJSON() ([]byte, error) {
8978 type NoMethod GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse
8979 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
8980 }
8981
8982
8983
8984 type GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse struct {
8985
8986
8987 NextPageToken string `json:"nextPageToken,omitempty"`
8988
8989
8990
8991 SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
8992
8993
8994 googleapi.ServerResponse `json:"-"`
8995
8996
8997
8998
8999
9000 ForceSendFields []string `json:"-"`
9001
9002
9003
9004
9005 NullFields []string `json:"-"`
9006 }
9007
9008 func (s *GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) MarshalJSON() ([]byte, error) {
9009 type NoMethod GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse
9010 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9011 }
9012
9013
9014
9015 type GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse struct {
9016
9017
9018 NextPageToken string `json:"nextPageToken,omitempty"`
9019
9020 TestCaseResults []*GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"testCaseResults,omitempty"`
9021
9022
9023 googleapi.ServerResponse `json:"-"`
9024
9025
9026
9027
9028
9029 ForceSendFields []string `json:"-"`
9030
9031
9032
9033
9034 NullFields []string `json:"-"`
9035 }
9036
9037 func (s *GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse) MarshalJSON() ([]byte, error) {
9038 type NoMethod GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse
9039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9040 }
9041
9042
9043
9044 type GoogleCloudDialogflowCxV3beta1ListTestCasesResponse struct {
9045
9046
9047 NextPageToken string `json:"nextPageToken,omitempty"`
9048
9049
9050 TestCases []*GoogleCloudDialogflowCxV3beta1TestCase `json:"testCases,omitempty"`
9051
9052
9053 googleapi.ServerResponse `json:"-"`
9054
9055
9056
9057
9058
9059 ForceSendFields []string `json:"-"`
9060
9061
9062
9063
9064 NullFields []string `json:"-"`
9065 }
9066
9067 func (s *GoogleCloudDialogflowCxV3beta1ListTestCasesResponse) MarshalJSON() ([]byte, error) {
9068 type NoMethod GoogleCloudDialogflowCxV3beta1ListTestCasesResponse
9069 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9070 }
9071
9072
9073
9074 type GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse struct {
9075
9076
9077 NextPageToken string `json:"nextPageToken,omitempty"`
9078
9079
9080
9081
9082 TransitionRouteGroups []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"transitionRouteGroups,omitempty"`
9083
9084
9085 googleapi.ServerResponse `json:"-"`
9086
9087
9088
9089
9090
9091 ForceSendFields []string `json:"-"`
9092
9093
9094
9095
9096 NullFields []string `json:"-"`
9097 }
9098
9099 func (s *GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) MarshalJSON() ([]byte, error) {
9100 type NoMethod GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse
9101 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9102 }
9103
9104
9105
9106 type GoogleCloudDialogflowCxV3beta1ListVersionsResponse struct {
9107
9108
9109 NextPageToken string `json:"nextPageToken,omitempty"`
9110
9111
9112
9113
9114 Versions []*GoogleCloudDialogflowCxV3beta1Version `json:"versions,omitempty"`
9115
9116
9117 googleapi.ServerResponse `json:"-"`
9118
9119
9120
9121
9122
9123 ForceSendFields []string `json:"-"`
9124
9125
9126
9127
9128 NullFields []string `json:"-"`
9129 }
9130
9131 func (s *GoogleCloudDialogflowCxV3beta1ListVersionsResponse) MarshalJSON() ([]byte, error) {
9132 type NoMethod GoogleCloudDialogflowCxV3beta1ListVersionsResponse
9133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9134 }
9135
9136
9137
9138 type GoogleCloudDialogflowCxV3beta1ListWebhooksResponse struct {
9139
9140
9141 NextPageToken string `json:"nextPageToken,omitempty"`
9142
9143
9144 Webhooks []*GoogleCloudDialogflowCxV3beta1Webhook `json:"webhooks,omitempty"`
9145
9146
9147 googleapi.ServerResponse `json:"-"`
9148
9149
9150
9151
9152
9153 ForceSendFields []string `json:"-"`
9154
9155
9156
9157
9158 NullFields []string `json:"-"`
9159 }
9160
9161 func (s *GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) MarshalJSON() ([]byte, error) {
9162 type NoMethod GoogleCloudDialogflowCxV3beta1ListWebhooksResponse
9163 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9164 }
9165
9166
9167
9168 type GoogleCloudDialogflowCxV3beta1LoadVersionRequest struct {
9169
9170
9171
9172
9173
9174 AllowOverrideAgentResources bool `json:"allowOverrideAgentResources,omitempty"`
9175
9176
9177
9178
9179
9180 ForceSendFields []string `json:"-"`
9181
9182
9183
9184
9185 NullFields []string `json:"-"`
9186 }
9187
9188 func (s *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) MarshalJSON() ([]byte, error) {
9189 type NoMethod GoogleCloudDialogflowCxV3beta1LoadVersionRequest
9190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9191 }
9192
9193
9194
9195 type GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse struct {
9196
9197
9198 Environments []*GoogleCloudDialogflowCxV3beta1Environment `json:"environments,omitempty"`
9199
9200
9201 NextPageToken string `json:"nextPageToken,omitempty"`
9202
9203
9204 googleapi.ServerResponse `json:"-"`
9205
9206
9207
9208
9209
9210 ForceSendFields []string `json:"-"`
9211
9212
9213
9214
9215 NullFields []string `json:"-"`
9216 }
9217
9218 func (s *GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) MarshalJSON() ([]byte, error) {
9219 type NoMethod GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse
9220 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9221 }
9222
9223
9224
9225 type GoogleCloudDialogflowCxV3beta1Match struct {
9226
9227
9228
9229
9230
9231
9232 Confidence float64 `json:"confidence,omitempty"`
9233
9234
9235 Event string `json:"event,omitempty"`
9236
9237
9238
9239 Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
9240
9241
9242
9243
9244
9245
9246
9247
9248
9249
9250
9251 MatchType string `json:"matchType,omitempty"`
9252
9253
9254
9255
9256
9257
9258
9259
9260
9261 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
9262
9263
9264
9265 ResolvedInput string `json:"resolvedInput,omitempty"`
9266
9267
9268
9269
9270
9271 ForceSendFields []string `json:"-"`
9272
9273
9274
9275
9276 NullFields []string `json:"-"`
9277 }
9278
9279 func (s *GoogleCloudDialogflowCxV3beta1Match) MarshalJSON() ([]byte, error) {
9280 type NoMethod GoogleCloudDialogflowCxV3beta1Match
9281 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9282 }
9283
9284 func (s *GoogleCloudDialogflowCxV3beta1Match) UnmarshalJSON(data []byte) error {
9285 type NoMethod GoogleCloudDialogflowCxV3beta1Match
9286 var s1 struct {
9287 Confidence gensupport.JSONFloat64 `json:"confidence"`
9288 *NoMethod
9289 }
9290 s1.NoMethod = (*NoMethod)(s)
9291 if err := json.Unmarshal(data, &s1); err != nil {
9292 return err
9293 }
9294 s.Confidence = float64(s1.Confidence)
9295 return nil
9296 }
9297
9298
9299 type GoogleCloudDialogflowCxV3beta1MatchIntentRequest struct {
9300
9301
9302 PersistParameterChanges bool `json:"persistParameterChanges,omitempty"`
9303
9304 QueryInput *GoogleCloudDialogflowCxV3beta1QueryInput `json:"queryInput,omitempty"`
9305
9306 QueryParams *GoogleCloudDialogflowCxV3beta1QueryParameters `json:"queryParams,omitempty"`
9307
9308
9309
9310
9311
9312 ForceSendFields []string `json:"-"`
9313
9314
9315
9316
9317 NullFields []string `json:"-"`
9318 }
9319
9320 func (s *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) MarshalJSON() ([]byte, error) {
9321 type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentRequest
9322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9323 }
9324
9325
9326 type GoogleCloudDialogflowCxV3beta1MatchIntentResponse struct {
9327
9328
9329 CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
9330
9331
9332 Matches []*GoogleCloudDialogflowCxV3beta1Match `json:"matches,omitempty"`
9333
9334
9335 Text string `json:"text,omitempty"`
9336
9337
9338 Transcript string `json:"transcript,omitempty"`
9339
9340
9341 TriggerEvent string `json:"triggerEvent,omitempty"`
9342
9343
9344
9345 TriggerIntent string `json:"triggerIntent,omitempty"`
9346
9347
9348 googleapi.ServerResponse `json:"-"`
9349
9350
9351
9352
9353
9354 ForceSendFields []string `json:"-"`
9355
9356
9357
9358
9359 NullFields []string `json:"-"`
9360 }
9361
9362 func (s *GoogleCloudDialogflowCxV3beta1MatchIntentResponse) MarshalJSON() ([]byte, error) {
9363 type NoMethod GoogleCloudDialogflowCxV3beta1MatchIntentResponse
9364 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9365 }
9366
9367
9368 type GoogleCloudDialogflowCxV3beta1NluSettings struct {
9369
9370
9371
9372
9373
9374
9375 ClassificationThreshold float64 `json:"classificationThreshold,omitempty"`
9376
9377
9378
9379
9380
9381
9382
9383
9384
9385
9386 ModelTrainingMode string `json:"modelTrainingMode,omitempty"`
9387
9388
9389
9390
9391
9392
9393
9394 ModelType string `json:"modelType,omitempty"`
9395
9396
9397
9398
9399
9400 ForceSendFields []string `json:"-"`
9401
9402
9403
9404
9405 NullFields []string `json:"-"`
9406 }
9407
9408 func (s *GoogleCloudDialogflowCxV3beta1NluSettings) MarshalJSON() ([]byte, error) {
9409 type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
9410 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9411 }
9412
9413 func (s *GoogleCloudDialogflowCxV3beta1NluSettings) UnmarshalJSON(data []byte) error {
9414 type NoMethod GoogleCloudDialogflowCxV3beta1NluSettings
9415 var s1 struct {
9416 ClassificationThreshold gensupport.JSONFloat64 `json:"classificationThreshold"`
9417 *NoMethod
9418 }
9419 s1.NoMethod = (*NoMethod)(s)
9420 if err := json.Unmarshal(data, &s1); err != nil {
9421 return err
9422 }
9423 s.ClassificationThreshold = float64(s1.ClassificationThreshold)
9424 return nil
9425 }
9426
9427
9428
9429 type GoogleCloudDialogflowCxV3beta1OutputAudioConfig struct {
9430
9431
9432
9433
9434
9435
9436
9437
9438
9439
9440
9441
9442
9443
9444
9445
9446 AudioEncoding string `json:"audioEncoding,omitempty"`
9447
9448
9449
9450
9451
9452
9453 SampleRateHertz int64 `json:"sampleRateHertz,omitempty"`
9454
9455
9456 SynthesizeSpeechConfig *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfig,omitempty"`
9457
9458
9459
9460
9461
9462 ForceSendFields []string `json:"-"`
9463
9464
9465
9466
9467 NullFields []string `json:"-"`
9468 }
9469
9470 func (s *GoogleCloudDialogflowCxV3beta1OutputAudioConfig) MarshalJSON() ([]byte, error) {
9471 type NoMethod GoogleCloudDialogflowCxV3beta1OutputAudioConfig
9472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9473 }
9474
9475
9476
9477
9478
9479
9480
9481
9482
9483
9484
9485
9486
9487
9488 type GoogleCloudDialogflowCxV3beta1Page struct {
9489
9490
9491
9492 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
9493
9494
9495 Description string `json:"description,omitempty"`
9496
9497
9498 DisplayName string `json:"displayName,omitempty"`
9499
9500
9501 EntryFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"entryFulfillment,omitempty"`
9502
9503
9504 EventHandlers []*GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandlers,omitempty"`
9505
9506
9507 Form *GoogleCloudDialogflowCxV3beta1Form `json:"form,omitempty"`
9508
9509 KnowledgeConnectorSettings *GoogleCloudDialogflowCxV3beta1KnowledgeConnectorSettings `json:"knowledgeConnectorSettings,omitempty"`
9510
9511
9512
9513 Name string `json:"name,omitempty"`
9514
9515
9516
9517
9518
9519
9520
9521
9522
9523
9524
9525
9526 TransitionRouteGroups []string `json:"transitionRouteGroups,omitempty"`
9527
9528
9529
9530
9531
9532
9533
9534
9535
9536
9537 TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
9538
9539
9540 googleapi.ServerResponse `json:"-"`
9541
9542
9543
9544
9545
9546 ForceSendFields []string `json:"-"`
9547
9548
9549
9550
9551 NullFields []string `json:"-"`
9552 }
9553
9554 func (s *GoogleCloudDialogflowCxV3beta1Page) MarshalJSON() ([]byte, error) {
9555 type NoMethod GoogleCloudDialogflowCxV3beta1Page
9556 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9557 }
9558
9559
9560
9561 type GoogleCloudDialogflowCxV3beta1PageInfo struct {
9562
9563
9564
9565 CurrentPage string `json:"currentPage,omitempty"`
9566
9567
9568 DisplayName string `json:"displayName,omitempty"`
9569
9570
9571 FormInfo *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo `json:"formInfo,omitempty"`
9572
9573
9574
9575
9576
9577 ForceSendFields []string `json:"-"`
9578
9579
9580
9581
9582 NullFields []string `json:"-"`
9583 }
9584
9585 func (s *GoogleCloudDialogflowCxV3beta1PageInfo) MarshalJSON() ([]byte, error) {
9586 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfo
9587 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9588 }
9589
9590
9591 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfo struct {
9592
9593
9594
9595 ParameterInfo []*GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo `json:"parameterInfo,omitempty"`
9596
9597
9598
9599
9600
9601 ForceSendFields []string `json:"-"`
9602
9603
9604
9605
9606 NullFields []string `json:"-"`
9607 }
9608
9609 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfo) MarshalJSON() ([]byte, error) {
9610 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfo
9611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9612 }
9613
9614
9615
9616 type GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo struct {
9617
9618
9619
9620 DisplayName string `json:"displayName,omitempty"`
9621
9622
9623
9624 JustCollected bool `json:"justCollected,omitempty"`
9625
9626
9627
9628
9629 Required bool `json:"required,omitempty"`
9630
9631
9632
9633
9634
9635
9636
9637
9638
9639
9640
9641
9642 State string `json:"state,omitempty"`
9643
9644
9645
9646 Value interface{} `json:"value,omitempty"`
9647
9648
9649
9650
9651
9652 ForceSendFields []string `json:"-"`
9653
9654
9655
9656
9657 NullFields []string `json:"-"`
9658 }
9659
9660 func (s *GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo) MarshalJSON() ([]byte, error) {
9661 type NoMethod GoogleCloudDialogflowCxV3beta1PageInfoFormInfoParameterInfo
9662 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9663 }
9664
9665
9666
9667 type GoogleCloudDialogflowCxV3beta1Phrase struct {
9668
9669 Text string `json:"text,omitempty"`
9670
9671
9672
9673
9674
9675 ForceSendFields []string `json:"-"`
9676
9677
9678
9679
9680 NullFields []string `json:"-"`
9681 }
9682
9683 func (s *GoogleCloudDialogflowCxV3beta1Phrase) MarshalJSON() ([]byte, error) {
9684 type NoMethod GoogleCloudDialogflowCxV3beta1Phrase
9685 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9686 }
9687
9688
9689
9690
9691
9692
9693
9694 type GoogleCloudDialogflowCxV3beta1QueryInput struct {
9695
9696 Audio *GoogleCloudDialogflowCxV3beta1AudioInput `json:"audio,omitempty"`
9697
9698 Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
9699
9700 Event *GoogleCloudDialogflowCxV3beta1EventInput `json:"event,omitempty"`
9701
9702 Intent *GoogleCloudDialogflowCxV3beta1IntentInput `json:"intent,omitempty"`
9703
9704
9705
9706
9707 LanguageCode string `json:"languageCode,omitempty"`
9708
9709 Text *GoogleCloudDialogflowCxV3beta1TextInput `json:"text,omitempty"`
9710
9711
9712
9713
9714
9715 ForceSendFields []string `json:"-"`
9716
9717
9718
9719
9720 NullFields []string `json:"-"`
9721 }
9722
9723 func (s *GoogleCloudDialogflowCxV3beta1QueryInput) MarshalJSON() ([]byte, error) {
9724 type NoMethod GoogleCloudDialogflowCxV3beta1QueryInput
9725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9726 }
9727
9728
9729
9730 type GoogleCloudDialogflowCxV3beta1QueryParameters struct {
9731
9732
9733 AnalyzeQueryTextSentiment bool `json:"analyzeQueryTextSentiment,omitempty"`
9734
9735
9736
9737
9738
9739 Channel string `json:"channel,omitempty"`
9740
9741
9742
9743
9744
9745
9746 CurrentPage string `json:"currentPage,omitempty"`
9747
9748 DisableWebhook bool `json:"disableWebhook,omitempty"`
9749
9750
9751
9752
9753
9754
9755 EndUserMetadata googleapi.RawMessage `json:"endUserMetadata,omitempty"`
9756
9757
9758
9759
9760
9761 FlowVersions []string `json:"flowVersions,omitempty"`
9762
9763 GeoLocation *GoogleTypeLatLng `json:"geoLocation,omitempty"`
9764
9765
9766
9767
9768
9769
9770
9771
9772
9773
9774
9775
9776 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
9777
9778
9779
9780
9781
9782
9783 Payload googleapi.RawMessage `json:"payload,omitempty"`
9784
9785
9786
9787
9788 PopulateDataStoreConnectionSignals bool `json:"populateDataStoreConnectionSignals,omitempty"`
9789
9790 SearchConfig *GoogleCloudDialogflowCxV3beta1SearchConfig `json:"searchConfig,omitempty"`
9791
9792
9793
9794 SessionEntityTypes []*GoogleCloudDialogflowCxV3beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
9795
9796
9797
9798
9799 SessionTtl string `json:"sessionTtl,omitempty"`
9800
9801
9802
9803 TimeZone string `json:"timeZone,omitempty"`
9804
9805
9806
9807
9808
9809
9810
9811
9812 WebhookHeaders map[string]string `json:"webhookHeaders,omitempty"`
9813
9814
9815
9816
9817
9818 ForceSendFields []string `json:"-"`
9819
9820
9821
9822
9823 NullFields []string `json:"-"`
9824 }
9825
9826 func (s *GoogleCloudDialogflowCxV3beta1QueryParameters) MarshalJSON() ([]byte, error) {
9827 type NoMethod GoogleCloudDialogflowCxV3beta1QueryParameters
9828 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9829 }
9830
9831
9832
9833 type GoogleCloudDialogflowCxV3beta1QueryResult struct {
9834
9835
9836
9837
9838
9839
9840 AdvancedSettings *GoogleCloudDialogflowCxV3beta1AdvancedSettings `json:"advancedSettings,omitempty"`
9841
9842
9843
9844 AllowAnswerFeedback bool `json:"allowAnswerFeedback,omitempty"`
9845
9846
9847 CurrentPage *GoogleCloudDialogflowCxV3beta1Page `json:"currentPage,omitempty"`
9848
9849
9850
9851
9852 DataStoreConnectionSignals *GoogleCloudDialogflowCxV3beta1DataStoreConnectionSignals `json:"dataStoreConnectionSignals,omitempty"`
9853
9854
9855
9856
9857
9858
9859
9860
9861
9862
9863
9864
9865 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
9866
9867
9868 Dtmf *GoogleCloudDialogflowCxV3beta1DtmfInput `json:"dtmf,omitempty"`
9869
9870
9871
9872
9873 Intent *GoogleCloudDialogflowCxV3beta1Intent `json:"intent,omitempty"`
9874
9875
9876
9877
9878
9879
9880
9881 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
9882
9883
9884
9885
9886 LanguageCode string `json:"languageCode,omitempty"`
9887
9888 Match *GoogleCloudDialogflowCxV3beta1Match `json:"match,omitempty"`
9889
9890
9891
9892
9893
9894
9895
9896
9897
9898 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
9899
9900
9901
9902 ResponseMessages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"responseMessages,omitempty"`
9903
9904
9905 SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
9906
9907
9908 Text string `json:"text,omitempty"`
9909
9910
9911 Transcript string `json:"transcript,omitempty"`
9912
9913
9914 TriggerEvent string `json:"triggerEvent,omitempty"`
9915
9916
9917
9918 TriggerIntent string `json:"triggerIntent,omitempty"`
9919
9920
9921 WebhookDisplayNames []string `json:"webhookDisplayNames,omitempty"`
9922
9923 WebhookIds []string `json:"webhookIds,omitempty"`
9924
9925
9926 WebhookLatencies []string `json:"webhookLatencies,omitempty"`
9927
9928
9929
9930 WebhookPayloads []googleapi.RawMessage `json:"webhookPayloads,omitempty"`
9931
9932
9933 WebhookStatuses []*GoogleRpcStatus `json:"webhookStatuses,omitempty"`
9934
9935 WebhookTags []string `json:"webhookTags,omitempty"`
9936
9937
9938
9939
9940
9941 ForceSendFields []string `json:"-"`
9942
9943
9944
9945
9946 NullFields []string `json:"-"`
9947 }
9948
9949 func (s *GoogleCloudDialogflowCxV3beta1QueryResult) MarshalJSON() ([]byte, error) {
9950 type NoMethod GoogleCloudDialogflowCxV3beta1QueryResult
9951 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9952 }
9953
9954 func (s *GoogleCloudDialogflowCxV3beta1QueryResult) UnmarshalJSON(data []byte) error {
9955 type NoMethod GoogleCloudDialogflowCxV3beta1QueryResult
9956 var s1 struct {
9957 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
9958 *NoMethod
9959 }
9960 s1.NoMethod = (*NoMethod)(s)
9961 if err := json.Unmarshal(data, &s1); err != nil {
9962 return err
9963 }
9964 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
9965 return nil
9966 }
9967
9968
9969
9970 type GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata struct {
9971
9972 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
9973
9974
9975
9976
9977
9978 ForceSendFields []string `json:"-"`
9979
9980
9981
9982
9983 NullFields []string `json:"-"`
9984 }
9985
9986 func (s *GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
9987 type NoMethod GoogleCloudDialogflowCxV3beta1ReloadDocumentOperationMetadata
9988 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
9989 }
9990
9991
9992 type GoogleCloudDialogflowCxV3beta1ResourceName struct {
9993
9994 DisplayName string `json:"displayName,omitempty"`
9995
9996 Name string `json:"name,omitempty"`
9997
9998
9999
10000
10001
10002 ForceSendFields []string `json:"-"`
10003
10004
10005
10006
10007 NullFields []string `json:"-"`
10008 }
10009
10010 func (s *GoogleCloudDialogflowCxV3beta1ResourceName) MarshalJSON() ([]byte, error) {
10011 type NoMethod GoogleCloudDialogflowCxV3beta1ResourceName
10012 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10013 }
10014
10015
10016
10017
10018
10019
10020
10021
10022
10023
10024
10025
10026
10027
10028 type GoogleCloudDialogflowCxV3beta1ResponseMessage struct {
10029
10030
10031
10032 Channel string `json:"channel,omitempty"`
10033
10034 ConversationSuccess *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess `json:"conversationSuccess,omitempty"`
10035
10036
10037
10038
10039
10040 EndInteraction *GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction `json:"endInteraction,omitempty"`
10041
10042
10043 KnowledgeInfoCard *GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard `json:"knowledgeInfoCard,omitempty"`
10044
10045 LiveAgentHandoff *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff `json:"liveAgentHandoff,omitempty"`
10046
10047
10048
10049
10050 MixedAudio *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio `json:"mixedAudio,omitempty"`
10051
10052
10053
10054 OutputAudioText *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText `json:"outputAudioText,omitempty"`
10055
10056 Payload googleapi.RawMessage `json:"payload,omitempty"`
10057
10058
10059
10060 PlayAudio *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio `json:"playAudio,omitempty"`
10061
10062
10063 TelephonyTransferCall *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
10064
10065 Text *GoogleCloudDialogflowCxV3beta1ResponseMessageText `json:"text,omitempty"`
10066
10067
10068
10069
10070
10071 ForceSendFields []string `json:"-"`
10072
10073
10074
10075
10076 NullFields []string `json:"-"`
10077 }
10078
10079 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessage) MarshalJSON() ([]byte, error) {
10080 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessage
10081 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10082 }
10083
10084
10085
10086
10087
10088
10089
10090
10091
10092
10093
10094 type GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess struct {
10095
10096 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
10097
10098
10099
10100
10101
10102 ForceSendFields []string `json:"-"`
10103
10104
10105
10106
10107 NullFields []string `json:"-"`
10108 }
10109
10110 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess) MarshalJSON() ([]byte, error) {
10111 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageConversationSuccess
10112 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10113 }
10114
10115
10116
10117
10118 type GoogleCloudDialogflowCxV3beta1ResponseMessageEndInteraction struct {
10119 }
10120
10121
10122
10123
10124
10125 type GoogleCloudDialogflowCxV3beta1ResponseMessageKnowledgeInfoCard struct {
10126 }
10127
10128
10129
10130
10131
10132
10133
10134
10135
10136 type GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff struct {
10137
10138
10139 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
10140
10141
10142
10143
10144
10145 ForceSendFields []string `json:"-"`
10146
10147
10148
10149
10150 NullFields []string `json:"-"`
10151 }
10152
10153 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff) MarshalJSON() ([]byte, error) {
10154 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageLiveAgentHandoff
10155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10156 }
10157
10158
10159
10160
10161
10162
10163 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio struct {
10164
10165 Segments []*GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment `json:"segments,omitempty"`
10166
10167
10168
10169
10170
10171 ForceSendFields []string `json:"-"`
10172
10173
10174
10175
10176 NullFields []string `json:"-"`
10177 }
10178
10179 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio) MarshalJSON() ([]byte, error) {
10180 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudio
10181 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10182 }
10183
10184
10185
10186 type GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment struct {
10187
10188
10189
10190 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
10191
10192
10193 Audio string `json:"audio,omitempty"`
10194
10195
10196 Uri string `json:"uri,omitempty"`
10197
10198
10199
10200
10201
10202 ForceSendFields []string `json:"-"`
10203
10204
10205
10206
10207 NullFields []string `json:"-"`
10208 }
10209
10210 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment) MarshalJSON() ([]byte, error) {
10211 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageMixedAudioSegment
10212 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10213 }
10214
10215
10216
10217
10218 type GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText struct {
10219
10220
10221
10222 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
10223
10224
10225 Ssml string `json:"ssml,omitempty"`
10226
10227 Text string `json:"text,omitempty"`
10228
10229
10230
10231
10232
10233 ForceSendFields []string `json:"-"`
10234
10235
10236
10237
10238 NullFields []string `json:"-"`
10239 }
10240
10241 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText) MarshalJSON() ([]byte, error) {
10242 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageOutputAudioText
10243 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10244 }
10245
10246
10247
10248 type GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio struct {
10249
10250
10251
10252 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
10253
10254
10255 AudioUri string `json:"audioUri,omitempty"`
10256
10257
10258
10259
10260
10261 ForceSendFields []string `json:"-"`
10262
10263
10264
10265
10266 NullFields []string `json:"-"`
10267 }
10268
10269 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio) MarshalJSON() ([]byte, error) {
10270 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio
10271 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10272 }
10273
10274
10275
10276
10277 type GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall struct {
10278
10279
10280 PhoneNumber string `json:"phoneNumber,omitempty"`
10281
10282
10283
10284
10285
10286 ForceSendFields []string `json:"-"`
10287
10288
10289
10290
10291 NullFields []string `json:"-"`
10292 }
10293
10294 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
10295 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
10296 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10297 }
10298
10299
10300
10301 type GoogleCloudDialogflowCxV3beta1ResponseMessageText struct {
10302
10303
10304
10305 AllowPlaybackInterruption bool `json:"allowPlaybackInterruption,omitempty"`
10306
10307 Text []string `json:"text,omitempty"`
10308
10309
10310
10311
10312
10313 ForceSendFields []string `json:"-"`
10314
10315
10316
10317
10318 NullFields []string `json:"-"`
10319 }
10320
10321 func (s *GoogleCloudDialogflowCxV3beta1ResponseMessageText) MarshalJSON() ([]byte, error) {
10322 type NoMethod GoogleCloudDialogflowCxV3beta1ResponseMessageText
10323 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10324 }
10325
10326
10327
10328 type GoogleCloudDialogflowCxV3beta1RestoreAgentRequest struct {
10329
10330 AgentContent string `json:"agentContent,omitempty"`
10331
10332
10333
10334
10335
10336
10337 AgentUri string `json:"agentUri,omitempty"`
10338
10339 GitSource *GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource `json:"gitSource,omitempty"`
10340
10341
10342
10343
10344
10345
10346
10347
10348
10349 RestoreOption string `json:"restoreOption,omitempty"`
10350
10351
10352
10353
10354
10355 ForceSendFields []string `json:"-"`
10356
10357
10358
10359
10360 NullFields []string `json:"-"`
10361 }
10362
10363 func (s *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest) MarshalJSON() ([]byte, error) {
10364 type NoMethod GoogleCloudDialogflowCxV3beta1RestoreAgentRequest
10365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10366 }
10367
10368
10369
10370 type GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource struct {
10371
10372 TrackingBranch string `json:"trackingBranch,omitempty"`
10373
10374
10375
10376
10377
10378 ForceSendFields []string `json:"-"`
10379
10380
10381
10382
10383 NullFields []string `json:"-"`
10384 }
10385
10386 func (s *GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource) MarshalJSON() ([]byte, error) {
10387 type NoMethod GoogleCloudDialogflowCxV3beta1RestoreAgentRequestGitSource
10388 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10389 }
10390
10391
10392
10393 type GoogleCloudDialogflowCxV3beta1RolloutConfig struct {
10394
10395
10396
10397
10398 FailureCondition string `json:"failureCondition,omitempty"`
10399
10400
10401
10402
10403
10404 RolloutCondition string `json:"rolloutCondition,omitempty"`
10405
10406
10407 RolloutSteps []*GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep `json:"rolloutSteps,omitempty"`
10408
10409
10410
10411
10412
10413 ForceSendFields []string `json:"-"`
10414
10415
10416
10417
10418 NullFields []string `json:"-"`
10419 }
10420
10421 func (s *GoogleCloudDialogflowCxV3beta1RolloutConfig) MarshalJSON() ([]byte, error) {
10422 type NoMethod GoogleCloudDialogflowCxV3beta1RolloutConfig
10423 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10424 }
10425
10426
10427
10428 type GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep struct {
10429
10430 DisplayName string `json:"displayName,omitempty"`
10431
10432
10433
10434 MinDuration string `json:"minDuration,omitempty"`
10435
10436
10437 TrafficPercent int64 `json:"trafficPercent,omitempty"`
10438
10439
10440
10441
10442
10443 ForceSendFields []string `json:"-"`
10444
10445
10446
10447
10448 NullFields []string `json:"-"`
10449 }
10450
10451 func (s *GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep) MarshalJSON() ([]byte, error) {
10452 type NoMethod GoogleCloudDialogflowCxV3beta1RolloutConfigRolloutStep
10453 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10454 }
10455
10456
10457
10458 type GoogleCloudDialogflowCxV3beta1RolloutState struct {
10459
10460 StartTime string `json:"startTime,omitempty"`
10461
10462 Step string `json:"step,omitempty"`
10463
10464 StepIndex int64 `json:"stepIndex,omitempty"`
10465
10466
10467
10468
10469
10470 ForceSendFields []string `json:"-"`
10471
10472
10473
10474
10475 NullFields []string `json:"-"`
10476 }
10477
10478 func (s *GoogleCloudDialogflowCxV3beta1RolloutState) MarshalJSON() ([]byte, error) {
10479 type NoMethod GoogleCloudDialogflowCxV3beta1RolloutState
10480 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10481 }
10482
10483
10484
10485 type GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata struct {
10486
10487 Errors []*GoogleCloudDialogflowCxV3beta1TestError `json:"errors,omitempty"`
10488
10489
10490
10491
10492
10493 ForceSendFields []string `json:"-"`
10494
10495
10496
10497
10498 NullFields []string `json:"-"`
10499 }
10500
10501 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata) MarshalJSON() ([]byte, error) {
10502 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
10503 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10504 }
10505
10506
10507
10508 type GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest struct {
10509 }
10510
10511
10512
10513 type GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse struct {
10514
10515 ContinuousTestResult *GoogleCloudDialogflowCxV3beta1ContinuousTestResult `json:"continuousTestResult,omitempty"`
10516
10517
10518
10519
10520
10521 ForceSendFields []string `json:"-"`
10522
10523
10524
10525
10526 NullFields []string `json:"-"`
10527 }
10528
10529 func (s *GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse) MarshalJSON() ([]byte, error) {
10530 type NoMethod GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
10531 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10532 }
10533
10534
10535
10536
10537 type GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata struct {
10538 }
10539
10540
10541
10542 type GoogleCloudDialogflowCxV3beta1RunTestCaseRequest struct {
10543
10544
10545 Environment string `json:"environment,omitempty"`
10546
10547
10548
10549
10550
10551 ForceSendFields []string `json:"-"`
10552
10553
10554
10555
10556 NullFields []string `json:"-"`
10557 }
10558
10559 func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest) MarshalJSON() ([]byte, error) {
10560 type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseRequest
10561 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10562 }
10563
10564
10565
10566 type GoogleCloudDialogflowCxV3beta1RunTestCaseResponse struct {
10567
10568 Result *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"result,omitempty"`
10569
10570
10571
10572
10573
10574 ForceSendFields []string `json:"-"`
10575
10576
10577
10578
10579 NullFields []string `json:"-"`
10580 }
10581
10582 func (s *GoogleCloudDialogflowCxV3beta1RunTestCaseResponse) MarshalJSON() ([]byte, error) {
10583 type NoMethod GoogleCloudDialogflowCxV3beta1RunTestCaseResponse
10584 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10585 }
10586
10587
10588
10589 type GoogleCloudDialogflowCxV3beta1SafetySettings struct {
10590
10591 BannedPhrases []*GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase `json:"bannedPhrases,omitempty"`
10592
10593
10594
10595
10596
10597 ForceSendFields []string `json:"-"`
10598
10599
10600
10601
10602 NullFields []string `json:"-"`
10603 }
10604
10605 func (s *GoogleCloudDialogflowCxV3beta1SafetySettings) MarshalJSON() ([]byte, error) {
10606 type NoMethod GoogleCloudDialogflowCxV3beta1SafetySettings
10607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10608 }
10609
10610
10611
10612 type GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase struct {
10613
10614 LanguageCode string `json:"languageCode,omitempty"`
10615
10616 Text string `json:"text,omitempty"`
10617
10618
10619
10620
10621
10622 ForceSendFields []string `json:"-"`
10623
10624
10625
10626
10627 NullFields []string `json:"-"`
10628 }
10629
10630 func (s *GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase) MarshalJSON() ([]byte, error) {
10631 type NoMethod GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
10632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10633 }
10634
10635
10636
10637 type GoogleCloudDialogflowCxV3beta1SearchConfig struct {
10638
10639 BoostSpecs []*GoogleCloudDialogflowCxV3beta1BoostSpecs `json:"boostSpecs,omitempty"`
10640
10641 FilterSpecs []*GoogleCloudDialogflowCxV3beta1FilterSpecs `json:"filterSpecs,omitempty"`
10642
10643
10644
10645
10646
10647 ForceSendFields []string `json:"-"`
10648
10649
10650
10651
10652 NullFields []string `json:"-"`
10653 }
10654
10655 func (s *GoogleCloudDialogflowCxV3beta1SearchConfig) MarshalJSON() ([]byte, error) {
10656 type NoMethod GoogleCloudDialogflowCxV3beta1SearchConfig
10657 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10658 }
10659
10660
10661
10662
10663
10664 type GoogleCloudDialogflowCxV3beta1SecuritySettings struct {
10665
10666
10667
10668
10669
10670
10671
10672
10673
10674
10675 AudioExportSettings *GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings `json:"audioExportSettings,omitempty"`
10676
10677
10678
10679
10680
10681
10682
10683
10684
10685
10686 DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
10687
10688
10689 DisplayName string `json:"displayName,omitempty"`
10690
10691
10692
10693
10694 InsightsExportSettings *GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings `json:"insightsExportSettings,omitempty"`
10695
10696
10697
10698
10699
10700
10701
10702
10703
10704
10705 InspectTemplate string `json:"inspectTemplate,omitempty"`
10706
10707
10708
10709
10710 Name string `json:"name,omitempty"`
10711
10712
10713
10714
10715
10716
10717
10718 PurgeDataTypes []string `json:"purgeDataTypes,omitempty"`
10719
10720
10721
10722
10723
10724
10725
10726
10727
10728 RedactionScope string `json:"redactionScope,omitempty"`
10729
10730
10731
10732
10733
10734
10735 RedactionStrategy string `json:"redactionStrategy,omitempty"`
10736
10737
10738
10739
10740
10741
10742
10743
10744
10745 RetentionStrategy string `json:"retentionStrategy,omitempty"`
10746
10747
10748
10749
10750
10751
10752
10753
10754 RetentionWindowDays int64 `json:"retentionWindowDays,omitempty"`
10755
10756
10757 googleapi.ServerResponse `json:"-"`
10758
10759
10760
10761
10762
10763 ForceSendFields []string `json:"-"`
10764
10765
10766
10767
10768 NullFields []string `json:"-"`
10769 }
10770
10771 func (s *GoogleCloudDialogflowCxV3beta1SecuritySettings) MarshalJSON() ([]byte, error) {
10772 type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettings
10773 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10774 }
10775
10776
10777
10778 type GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings struct {
10779
10780 AudioExportPattern string `json:"audioExportPattern,omitempty"`
10781
10782
10783
10784
10785
10786
10787
10788
10789 AudioFormat string `json:"audioFormat,omitempty"`
10790
10791
10792
10793 EnableAudioRedaction bool `json:"enableAudioRedaction,omitempty"`
10794
10795
10796
10797
10798 GcsBucket string `json:"gcsBucket,omitempty"`
10799
10800
10801 StoreTtsAudio bool `json:"storeTtsAudio,omitempty"`
10802
10803
10804
10805
10806
10807 ForceSendFields []string `json:"-"`
10808
10809
10810
10811
10812 NullFields []string `json:"-"`
10813 }
10814
10815 func (s *GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings) MarshalJSON() ([]byte, error) {
10816 type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettingsAudioExportSettings
10817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10818 }
10819
10820
10821
10822
10823 type GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings struct {
10824
10825
10826 EnableInsightsExport bool `json:"enableInsightsExport,omitempty"`
10827
10828
10829
10830
10831
10832 ForceSendFields []string `json:"-"`
10833
10834
10835
10836
10837 NullFields []string `json:"-"`
10838 }
10839
10840 func (s *GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings) MarshalJSON() ([]byte, error) {
10841 type NoMethod GoogleCloudDialogflowCxV3beta1SecuritySettingsInsightsExportSettings
10842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10843 }
10844
10845
10846
10847
10848
10849 type GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult struct {
10850
10851
10852
10853 Magnitude float64 `json:"magnitude,omitempty"`
10854
10855
10856 Score float64 `json:"score,omitempty"`
10857
10858
10859
10860
10861
10862 ForceSendFields []string `json:"-"`
10863
10864
10865
10866
10867 NullFields []string `json:"-"`
10868 }
10869
10870 func (s *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
10871 type NoMethod GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
10872 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10873 }
10874
10875 func (s *GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult) UnmarshalJSON(data []byte) error {
10876 type NoMethod GoogleCloudDialogflowCxV3beta1SentimentAnalysisResult
10877 var s1 struct {
10878 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
10879 Score gensupport.JSONFloat64 `json:"score"`
10880 *NoMethod
10881 }
10882 s1.NoMethod = (*NoMethod)(s)
10883 if err := json.Unmarshal(data, &s1); err != nil {
10884 return err
10885 }
10886 s.Magnitude = float64(s1.Magnitude)
10887 s.Score = float64(s1.Score)
10888 return nil
10889 }
10890
10891
10892
10893
10894
10895
10896
10897
10898
10899
10900 type GoogleCloudDialogflowCxV3beta1SessionEntityType struct {
10901
10902
10903 Entities []*GoogleCloudDialogflowCxV3beta1EntityTypeEntity `json:"entities,omitempty"`
10904
10905
10906
10907
10908
10909
10910
10911
10912
10913
10914
10915
10916
10917
10918
10919
10920 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
10921
10922
10923
10924
10925 Name string `json:"name,omitempty"`
10926
10927
10928 googleapi.ServerResponse `json:"-"`
10929
10930
10931
10932
10933
10934 ForceSendFields []string `json:"-"`
10935
10936
10937
10938
10939 NullFields []string `json:"-"`
10940 }
10941
10942 func (s *GoogleCloudDialogflowCxV3beta1SessionEntityType) MarshalJSON() ([]byte, error) {
10943 type NoMethod GoogleCloudDialogflowCxV3beta1SessionEntityType
10944 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10945 }
10946
10947
10948
10949 type GoogleCloudDialogflowCxV3beta1SessionInfo struct {
10950
10951
10952
10953
10954
10955 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
10956
10957
10958
10959
10960
10961 Session string `json:"session,omitempty"`
10962
10963
10964
10965
10966
10967 ForceSendFields []string `json:"-"`
10968
10969
10970
10971
10972 NullFields []string `json:"-"`
10973 }
10974
10975 func (s *GoogleCloudDialogflowCxV3beta1SessionInfo) MarshalJSON() ([]byte, error) {
10976 type NoMethod GoogleCloudDialogflowCxV3beta1SessionInfo
10977 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
10978 }
10979
10980
10981
10982 type GoogleCloudDialogflowCxV3beta1SpeechToTextSettings struct {
10983
10984
10985 EnableSpeechAdaptation bool `json:"enableSpeechAdaptation,omitempty"`
10986
10987
10988
10989
10990
10991 ForceSendFields []string `json:"-"`
10992
10993
10994
10995
10996 NullFields []string `json:"-"`
10997 }
10998
10999 func (s *GoogleCloudDialogflowCxV3beta1SpeechToTextSettings) MarshalJSON() ([]byte, error) {
11000 type NoMethod GoogleCloudDialogflowCxV3beta1SpeechToTextSettings
11001 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11002 }
11003
11004
11005
11006 type GoogleCloudDialogflowCxV3beta1StartExperimentRequest struct {
11007 }
11008
11009
11010
11011 type GoogleCloudDialogflowCxV3beta1StopExperimentRequest struct {
11012 }
11013
11014
11015
11016 type GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest struct {
11017
11018 AnswerFeedback *GoogleCloudDialogflowCxV3beta1AnswerFeedback `json:"answerFeedback,omitempty"`
11019
11020
11021 ResponseId string `json:"responseId,omitempty"`
11022
11023
11024 UpdateMask string `json:"updateMask,omitempty"`
11025
11026
11027
11028
11029
11030 ForceSendFields []string `json:"-"`
11031
11032
11033
11034
11035 NullFields []string `json:"-"`
11036 }
11037
11038 func (s *GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest) MarshalJSON() ([]byte, error) {
11039 type NoMethod GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest
11040 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11041 }
11042
11043
11044
11045 type GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig struct {
11046
11047
11048
11049 EffectsProfileId []string `json:"effectsProfileId,omitempty"`
11050
11051
11052
11053 Pitch float64 `json:"pitch,omitempty"`
11054
11055
11056
11057
11058 SpeakingRate float64 `json:"speakingRate,omitempty"`
11059
11060 Voice *GoogleCloudDialogflowCxV3beta1VoiceSelectionParams `json:"voice,omitempty"`
11061
11062
11063
11064
11065
11066
11067
11068
11069 VolumeGainDb float64 `json:"volumeGainDb,omitempty"`
11070
11071
11072
11073
11074
11075 ForceSendFields []string `json:"-"`
11076
11077
11078
11079
11080 NullFields []string `json:"-"`
11081 }
11082
11083 func (s *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig) MarshalJSON() ([]byte, error) {
11084 type NoMethod GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
11085 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11086 }
11087
11088 func (s *GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig) UnmarshalJSON(data []byte) error {
11089 type NoMethod GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig
11090 var s1 struct {
11091 Pitch gensupport.JSONFloat64 `json:"pitch"`
11092 SpeakingRate gensupport.JSONFloat64 `json:"speakingRate"`
11093 VolumeGainDb gensupport.JSONFloat64 `json:"volumeGainDb"`
11094 *NoMethod
11095 }
11096 s1.NoMethod = (*NoMethod)(s)
11097 if err := json.Unmarshal(data, &s1); err != nil {
11098 return err
11099 }
11100 s.Pitch = float64(s1.Pitch)
11101 s.SpeakingRate = float64(s1.SpeakingRate)
11102 s.VolumeGainDb = float64(s1.VolumeGainDb)
11103 return nil
11104 }
11105
11106
11107 type GoogleCloudDialogflowCxV3beta1TestCase struct {
11108
11109 CreationTime string `json:"creationTime,omitempty"`
11110
11111
11112 DisplayName string `json:"displayName,omitempty"`
11113
11114 LastTestResult *GoogleCloudDialogflowCxV3beta1TestCaseResult `json:"lastTestResult,omitempty"`
11115
11116
11117
11118 Name string `json:"name,omitempty"`
11119
11120
11121 Notes string `json:"notes,omitempty"`
11122
11123
11124
11125 Tags []string `json:"tags,omitempty"`
11126
11127
11128
11129 TestCaseConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"testCaseConversationTurns,omitempty"`
11130
11131 TestConfig *GoogleCloudDialogflowCxV3beta1TestConfig `json:"testConfig,omitempty"`
11132
11133
11134 googleapi.ServerResponse `json:"-"`
11135
11136
11137
11138
11139
11140 ForceSendFields []string `json:"-"`
11141
11142
11143
11144
11145 NullFields []string `json:"-"`
11146 }
11147
11148 func (s *GoogleCloudDialogflowCxV3beta1TestCase) MarshalJSON() ([]byte, error) {
11149 type NoMethod GoogleCloudDialogflowCxV3beta1TestCase
11150 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11151 }
11152
11153
11154
11155 type GoogleCloudDialogflowCxV3beta1TestCaseError struct {
11156
11157 Status *GoogleRpcStatus `json:"status,omitempty"`
11158
11159 TestCase *GoogleCloudDialogflowCxV3beta1TestCase `json:"testCase,omitempty"`
11160
11161
11162
11163
11164
11165 ForceSendFields []string `json:"-"`
11166
11167
11168
11169
11170 NullFields []string `json:"-"`
11171 }
11172
11173 func (s *GoogleCloudDialogflowCxV3beta1TestCaseError) MarshalJSON() ([]byte, error) {
11174 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseError
11175 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11176 }
11177
11178
11179
11180 type GoogleCloudDialogflowCxV3beta1TestCaseResult struct {
11181
11182
11183 ConversationTurns []*GoogleCloudDialogflowCxV3beta1ConversationTurn `json:"conversationTurns,omitempty"`
11184
11185
11186 Environment string `json:"environment,omitempty"`
11187
11188
11189 Name string `json:"name,omitempty"`
11190
11191
11192
11193
11194
11195
11196 TestResult string `json:"testResult,omitempty"`
11197
11198 TestTime string `json:"testTime,omitempty"`
11199
11200
11201 googleapi.ServerResponse `json:"-"`
11202
11203
11204
11205
11206
11207 ForceSendFields []string `json:"-"`
11208
11209
11210
11211
11212 NullFields []string `json:"-"`
11213 }
11214
11215 func (s *GoogleCloudDialogflowCxV3beta1TestCaseResult) MarshalJSON() ([]byte, error) {
11216 type NoMethod GoogleCloudDialogflowCxV3beta1TestCaseResult
11217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11218 }
11219
11220
11221
11222 type GoogleCloudDialogflowCxV3beta1TestConfig struct {
11223
11224
11225
11226
11227
11228 Flow string `json:"flow,omitempty"`
11229
11230
11231
11232
11233
11234 Page string `json:"page,omitempty"`
11235
11236
11237 TrackingParameters []string `json:"trackingParameters,omitempty"`
11238
11239
11240
11241
11242
11243 ForceSendFields []string `json:"-"`
11244
11245
11246
11247
11248 NullFields []string `json:"-"`
11249 }
11250
11251 func (s *GoogleCloudDialogflowCxV3beta1TestConfig) MarshalJSON() ([]byte, error) {
11252 type NoMethod GoogleCloudDialogflowCxV3beta1TestConfig
11253 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11254 }
11255
11256
11257 type GoogleCloudDialogflowCxV3beta1TestError struct {
11258
11259 Status *GoogleRpcStatus `json:"status,omitempty"`
11260
11261 TestCase string `json:"testCase,omitempty"`
11262
11263 TestTime string `json:"testTime,omitempty"`
11264
11265
11266
11267
11268
11269 ForceSendFields []string `json:"-"`
11270
11271
11272
11273
11274 NullFields []string `json:"-"`
11275 }
11276
11277 func (s *GoogleCloudDialogflowCxV3beta1TestError) MarshalJSON() ([]byte, error) {
11278 type NoMethod GoogleCloudDialogflowCxV3beta1TestError
11279 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11280 }
11281
11282
11283
11284 type GoogleCloudDialogflowCxV3beta1TestRunDifference struct {
11285
11286
11287 Description string `json:"description,omitempty"`
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297 Type string `json:"type,omitempty"`
11298
11299
11300
11301
11302
11303 ForceSendFields []string `json:"-"`
11304
11305
11306
11307
11308 NullFields []string `json:"-"`
11309 }
11310
11311 func (s *GoogleCloudDialogflowCxV3beta1TestRunDifference) MarshalJSON() ([]byte, error) {
11312 type NoMethod GoogleCloudDialogflowCxV3beta1TestRunDifference
11313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11314 }
11315
11316
11317
11318 type GoogleCloudDialogflowCxV3beta1TextInput struct {
11319
11320 Text string `json:"text,omitempty"`
11321
11322
11323
11324
11325
11326 ForceSendFields []string `json:"-"`
11327
11328
11329
11330
11331 NullFields []string `json:"-"`
11332 }
11333
11334 func (s *GoogleCloudDialogflowCxV3beta1TextInput) MarshalJSON() ([]byte, error) {
11335 type NoMethod GoogleCloudDialogflowCxV3beta1TextInput
11336 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11337 }
11338
11339
11340
11341 type GoogleCloudDialogflowCxV3beta1TextToSpeechSettings struct {
11342
11343
11344
11345
11346
11347
11348
11349
11350 SynthesizeSpeechConfigs map[string]GoogleCloudDialogflowCxV3beta1SynthesizeSpeechConfig `json:"synthesizeSpeechConfigs,omitempty"`
11351
11352
11353
11354
11355
11356 ForceSendFields []string `json:"-"`
11357
11358
11359
11360
11361 NullFields []string `json:"-"`
11362 }
11363
11364 func (s *GoogleCloudDialogflowCxV3beta1TextToSpeechSettings) MarshalJSON() ([]byte, error) {
11365 type NoMethod GoogleCloudDialogflowCxV3beta1TextToSpeechSettings
11366 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11367 }
11368
11369
11370
11371 type GoogleCloudDialogflowCxV3beta1TrainFlowRequest struct {
11372 }
11373
11374
11375
11376
11377
11378 type GoogleCloudDialogflowCxV3beta1TransitionCoverage struct {
11379
11380 CoverageScore float64 `json:"coverageScore,omitempty"`
11381
11382 Transitions []*GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition `json:"transitions,omitempty"`
11383
11384
11385
11386
11387
11388 ForceSendFields []string `json:"-"`
11389
11390
11391
11392
11393 NullFields []string `json:"-"`
11394 }
11395
11396 func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverage) MarshalJSON() ([]byte, error) {
11397 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverage
11398 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11399 }
11400
11401 func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverage) UnmarshalJSON(data []byte) error {
11402 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverage
11403 var s1 struct {
11404 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
11405 *NoMethod
11406 }
11407 s1.NoMethod = (*NoMethod)(s)
11408 if err := json.Unmarshal(data, &s1); err != nil {
11409 return err
11410 }
11411 s.CoverageScore = float64(s1.CoverageScore)
11412 return nil
11413 }
11414
11415
11416
11417 type GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition struct {
11418
11419
11420 Covered bool `json:"covered,omitempty"`
11421
11422 EventHandler *GoogleCloudDialogflowCxV3beta1EventHandler `json:"eventHandler,omitempty"`
11423
11424 Index int64 `json:"index,omitempty"`
11425
11426 Source *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode `json:"source,omitempty"`
11427
11428 Target *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode `json:"target,omitempty"`
11429
11430 TransitionRoute *GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoute,omitempty"`
11431
11432
11433
11434
11435
11436 ForceSendFields []string `json:"-"`
11437
11438
11439
11440
11441 NullFields []string `json:"-"`
11442 }
11443
11444 func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition) MarshalJSON() ([]byte, error) {
11445 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition
11446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11447 }
11448
11449
11450
11451 type GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode struct {
11452
11453
11454 Flow *GoogleCloudDialogflowCxV3beta1Flow `json:"flow,omitempty"`
11455
11456
11457 Page *GoogleCloudDialogflowCxV3beta1Page `json:"page,omitempty"`
11458
11459
11460
11461
11462
11463 ForceSendFields []string `json:"-"`
11464
11465
11466
11467
11468 NullFields []string `json:"-"`
11469 }
11470
11471 func (s *GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode) MarshalJSON() ([]byte, error) {
11472 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionCoverageTransitionNode
11473 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11474 }
11475
11476
11477
11478
11479
11480
11481
11482
11483
11484 type GoogleCloudDialogflowCxV3beta1TransitionRoute struct {
11485
11486
11487
11488
11489
11490
11491 Condition string `json:"condition,omitempty"`
11492
11493
11494 Description string `json:"description,omitempty"`
11495
11496
11497
11498
11499
11500 Intent string `json:"intent,omitempty"`
11501
11502 Name string `json:"name,omitempty"`
11503
11504
11505 TargetFlow string `json:"targetFlow,omitempty"`
11506
11507
11508 TargetPage string `json:"targetPage,omitempty"`
11509
11510
11511
11512 TriggerFulfillment *GoogleCloudDialogflowCxV3beta1Fulfillment `json:"triggerFulfillment,omitempty"`
11513
11514
11515
11516
11517
11518 ForceSendFields []string `json:"-"`
11519
11520
11521
11522
11523 NullFields []string `json:"-"`
11524 }
11525
11526 func (s *GoogleCloudDialogflowCxV3beta1TransitionRoute) MarshalJSON() ([]byte, error) {
11527 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRoute
11528 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11529 }
11530
11531
11532
11533 type GoogleCloudDialogflowCxV3beta1TransitionRouteGroup struct {
11534
11535
11536
11537 DisplayName string `json:"displayName,omitempty"`
11538
11539
11540
11541
11542
11543
11544 Name string `json:"name,omitempty"`
11545
11546
11547 TransitionRoutes []*GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoutes,omitempty"`
11548
11549
11550 googleapi.ServerResponse `json:"-"`
11551
11552
11553
11554
11555
11556 ForceSendFields []string `json:"-"`
11557
11558
11559
11560
11561 NullFields []string `json:"-"`
11562 }
11563
11564 func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) MarshalJSON() ([]byte, error) {
11565 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
11566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11567 }
11568
11569
11570
11571
11572
11573 type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage struct {
11574
11575
11576 CoverageScore float64 `json:"coverageScore,omitempty"`
11577
11578 Coverages []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage `json:"coverages,omitempty"`
11579
11580
11581
11582
11583
11584 ForceSendFields []string `json:"-"`
11585
11586
11587
11588
11589 NullFields []string `json:"-"`
11590 }
11591
11592 func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage) MarshalJSON() ([]byte, error) {
11593 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
11594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11595 }
11596
11597 func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage) UnmarshalJSON(data []byte) error {
11598 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
11599 var s1 struct {
11600 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
11601 *NoMethod
11602 }
11603 s1.NoMethod = (*NoMethod)(s)
11604 if err := json.Unmarshal(data, &s1); err != nil {
11605 return err
11606 }
11607 s.CoverageScore = float64(s1.CoverageScore)
11608 return nil
11609 }
11610
11611
11612
11613 type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage struct {
11614
11615
11616 CoverageScore float64 `json:"coverageScore,omitempty"`
11617
11618
11619 RouteGroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup `json:"routeGroup,omitempty"`
11620
11621
11622 Transitions []*GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition `json:"transitions,omitempty"`
11623
11624
11625
11626
11627
11628 ForceSendFields []string `json:"-"`
11629
11630
11631
11632
11633 NullFields []string `json:"-"`
11634 }
11635
11636 func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage) MarshalJSON() ([]byte, error) {
11637 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
11638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11639 }
11640
11641 func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage) UnmarshalJSON(data []byte) error {
11642 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
11643 var s1 struct {
11644 CoverageScore gensupport.JSONFloat64 `json:"coverageScore"`
11645 *NoMethod
11646 }
11647 s1.NoMethod = (*NoMethod)(s)
11648 if err := json.Unmarshal(data, &s1); err != nil {
11649 return err
11650 }
11651 s.CoverageScore = float64(s1.CoverageScore)
11652 return nil
11653 }
11654
11655
11656
11657
11658 type GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition struct {
11659
11660
11661 Covered bool `json:"covered,omitempty"`
11662
11663 TransitionRoute *GoogleCloudDialogflowCxV3beta1TransitionRoute `json:"transitionRoute,omitempty"`
11664
11665
11666
11667
11668
11669 ForceSendFields []string `json:"-"`
11670
11671
11672
11673
11674 NullFields []string `json:"-"`
11675 }
11676
11677 func (s *GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition) MarshalJSON() ([]byte, error) {
11678 type NoMethod GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition
11679 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11680 }
11681
11682
11683
11684 type GoogleCloudDialogflowCxV3beta1TurnSignals struct {
11685
11686 AgentEscalated bool `json:"agentEscalated,omitempty"`
11687
11688 DtmfUsed bool `json:"dtmfUsed,omitempty"`
11689
11690
11691
11692
11693
11694
11695 FailureReasons []string `json:"failureReasons,omitempty"`
11696
11697 NoMatch bool `json:"noMatch,omitempty"`
11698
11699 NoUserInput bool `json:"noUserInput,omitempty"`
11700
11701 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
11702
11703
11704 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
11705
11706
11707 SentimentScore float64 `json:"sentimentScore,omitempty"`
11708
11709 UserEscalated bool `json:"userEscalated,omitempty"`
11710
11711
11712 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
11713
11714
11715
11716
11717
11718 ForceSendFields []string `json:"-"`
11719
11720
11721
11722
11723 NullFields []string `json:"-"`
11724 }
11725
11726 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) MarshalJSON() ([]byte, error) {
11727 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
11728 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11729 }
11730
11731 func (s *GoogleCloudDialogflowCxV3beta1TurnSignals) UnmarshalJSON(data []byte) error {
11732 type NoMethod GoogleCloudDialogflowCxV3beta1TurnSignals
11733 var s1 struct {
11734 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
11735 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
11736 *NoMethod
11737 }
11738 s1.NoMethod = (*NoMethod)(s)
11739 if err := json.Unmarshal(data, &s1); err != nil {
11740 return err
11741 }
11742 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
11743 s.SentimentScore = float64(s1.SentimentScore)
11744 return nil
11745 }
11746
11747
11748
11749 type GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata struct {
11750
11751 GenericMetadata *GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
11752
11753
11754
11755
11756
11757 ForceSendFields []string `json:"-"`
11758
11759
11760
11761
11762 NullFields []string `json:"-"`
11763 }
11764
11765 func (s *GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
11766 type NoMethod GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
11767 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11768 }
11769
11770
11771
11772 type GoogleCloudDialogflowCxV3beta1ValidateAgentRequest struct {
11773
11774 LanguageCode string `json:"languageCode,omitempty"`
11775
11776
11777
11778
11779
11780 ForceSendFields []string `json:"-"`
11781
11782
11783
11784
11785 NullFields []string `json:"-"`
11786 }
11787
11788 func (s *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest) MarshalJSON() ([]byte, error) {
11789 type NoMethod GoogleCloudDialogflowCxV3beta1ValidateAgentRequest
11790 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11791 }
11792
11793
11794
11795 type GoogleCloudDialogflowCxV3beta1ValidateFlowRequest struct {
11796
11797 LanguageCode string `json:"languageCode,omitempty"`
11798
11799
11800
11801
11802
11803 ForceSendFields []string `json:"-"`
11804
11805
11806
11807
11808 NullFields []string `json:"-"`
11809 }
11810
11811 func (s *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest) MarshalJSON() ([]byte, error) {
11812 type NoMethod GoogleCloudDialogflowCxV3beta1ValidateFlowRequest
11813 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11814 }
11815
11816
11817
11818 type GoogleCloudDialogflowCxV3beta1ValidationMessage struct {
11819
11820 Detail string `json:"detail,omitempty"`
11821
11822
11823 ResourceNames []*GoogleCloudDialogflowCxV3beta1ResourceName `json:"resourceNames,omitempty"`
11824
11825
11826
11827
11828
11829
11830
11831
11832
11833
11834
11835
11836
11837
11838
11839
11840
11841
11842 ResourceType string `json:"resourceType,omitempty"`
11843
11844 Resources []string `json:"resources,omitempty"`
11845
11846
11847
11848
11849
11850
11851
11852 Severity string `json:"severity,omitempty"`
11853
11854
11855
11856
11857
11858 ForceSendFields []string `json:"-"`
11859
11860
11861
11862
11863 NullFields []string `json:"-"`
11864 }
11865
11866 func (s *GoogleCloudDialogflowCxV3beta1ValidationMessage) MarshalJSON() ([]byte, error) {
11867 type NoMethod GoogleCloudDialogflowCxV3beta1ValidationMessage
11868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11869 }
11870
11871
11872
11873 type GoogleCloudDialogflowCxV3beta1VariantsHistory struct {
11874
11875 UpdateTime string `json:"updateTime,omitempty"`
11876
11877 VersionVariants *GoogleCloudDialogflowCxV3beta1VersionVariants `json:"versionVariants,omitempty"`
11878
11879
11880
11881
11882
11883 ForceSendFields []string `json:"-"`
11884
11885
11886
11887
11888 NullFields []string `json:"-"`
11889 }
11890
11891 func (s *GoogleCloudDialogflowCxV3beta1VariantsHistory) MarshalJSON() ([]byte, error) {
11892 type NoMethod GoogleCloudDialogflowCxV3beta1VariantsHistory
11893 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11894 }
11895
11896
11897 type GoogleCloudDialogflowCxV3beta1Version struct {
11898
11899 CreateTime string `json:"createTime,omitempty"`
11900
11901
11902 Description string `json:"description,omitempty"`
11903
11904
11905 DisplayName string `json:"displayName,omitempty"`
11906
11907
11908 Name string `json:"name,omitempty"`
11909
11910 NluSettings *GoogleCloudDialogflowCxV3beta1NluSettings `json:"nluSettings,omitempty"`
11911
11912
11913
11914
11915
11916
11917
11918
11919 State string `json:"state,omitempty"`
11920
11921
11922 googleapi.ServerResponse `json:"-"`
11923
11924
11925
11926
11927
11928 ForceSendFields []string `json:"-"`
11929
11930
11931
11932
11933 NullFields []string `json:"-"`
11934 }
11935
11936 func (s *GoogleCloudDialogflowCxV3beta1Version) MarshalJSON() ([]byte, error) {
11937 type NoMethod GoogleCloudDialogflowCxV3beta1Version
11938 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11939 }
11940
11941
11942
11943 type GoogleCloudDialogflowCxV3beta1VersionVariants struct {
11944
11945 Variants []*GoogleCloudDialogflowCxV3beta1VersionVariantsVariant `json:"variants,omitempty"`
11946
11947
11948
11949
11950
11951 ForceSendFields []string `json:"-"`
11952
11953
11954
11955
11956 NullFields []string `json:"-"`
11957 }
11958
11959 func (s *GoogleCloudDialogflowCxV3beta1VersionVariants) MarshalJSON() ([]byte, error) {
11960 type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariants
11961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11962 }
11963
11964
11965
11966 type GoogleCloudDialogflowCxV3beta1VersionVariantsVariant struct {
11967
11968 IsControlGroup bool `json:"isControlGroup,omitempty"`
11969
11970
11971 TrafficAllocation float64 `json:"trafficAllocation,omitempty"`
11972
11973
11974 Version string `json:"version,omitempty"`
11975
11976
11977
11978
11979
11980 ForceSendFields []string `json:"-"`
11981
11982
11983
11984
11985 NullFields []string `json:"-"`
11986 }
11987
11988 func (s *GoogleCloudDialogflowCxV3beta1VersionVariantsVariant) MarshalJSON() ([]byte, error) {
11989 type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
11990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
11991 }
11992
11993 func (s *GoogleCloudDialogflowCxV3beta1VersionVariantsVariant) UnmarshalJSON(data []byte) error {
11994 type NoMethod GoogleCloudDialogflowCxV3beta1VersionVariantsVariant
11995 var s1 struct {
11996 TrafficAllocation gensupport.JSONFloat64 `json:"trafficAllocation"`
11997 *NoMethod
11998 }
11999 s1.NoMethod = (*NoMethod)(s)
12000 if err := json.Unmarshal(data, &s1); err != nil {
12001 return err
12002 }
12003 s.TrafficAllocation = float64(s1.TrafficAllocation)
12004 return nil
12005 }
12006
12007
12008
12009 type GoogleCloudDialogflowCxV3beta1VoiceSelectionParams struct {
12010
12011
12012
12013
12014 Name string `json:"name,omitempty"`
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028 SsmlGender string `json:"ssmlGender,omitempty"`
12029
12030
12031
12032
12033
12034 ForceSendFields []string `json:"-"`
12035
12036
12037
12038
12039 NullFields []string `json:"-"`
12040 }
12041
12042 func (s *GoogleCloudDialogflowCxV3beta1VoiceSelectionParams) MarshalJSON() ([]byte, error) {
12043 type NoMethod GoogleCloudDialogflowCxV3beta1VoiceSelectionParams
12044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12045 }
12046
12047
12048
12049
12050
12051
12052 type GoogleCloudDialogflowCxV3beta1Webhook struct {
12053
12054 Disabled bool `json:"disabled,omitempty"`
12055
12056
12057 DisplayName string `json:"displayName,omitempty"`
12058
12059 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
12060
12061
12062
12063 Name string `json:"name,omitempty"`
12064
12065
12066 ServiceDirectory *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig `json:"serviceDirectory,omitempty"`
12067
12068
12069
12070 Timeout string `json:"timeout,omitempty"`
12071
12072
12073 googleapi.ServerResponse `json:"-"`
12074
12075
12076
12077
12078
12079 ForceSendFields []string `json:"-"`
12080
12081
12082
12083
12084 NullFields []string `json:"-"`
12085 }
12086
12087 func (s *GoogleCloudDialogflowCxV3beta1Webhook) MarshalJSON() ([]byte, error) {
12088 type NoMethod GoogleCloudDialogflowCxV3beta1Webhook
12089 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12090 }
12091
12092
12093
12094 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebService struct {
12095
12096
12097
12098
12099
12100
12101
12102
12103 AllowedCaCerts []string `json:"allowedCaCerts,omitempty"`
12104
12105
12106
12107
12108
12109
12110
12111
12112
12113
12114
12115
12116 HttpMethod string `json:"httpMethod,omitempty"`
12117
12118
12119
12120 OauthConfig *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig `json:"oauthConfig,omitempty"`
12121
12122
12123
12124 ParameterMapping map[string]string `json:"parameterMapping,omitempty"`
12125
12126 Password string `json:"password,omitempty"`
12127
12128
12129 RequestBody string `json:"requestBody,omitempty"`
12130
12131
12132 RequestHeaders map[string]string `json:"requestHeaders,omitempty"`
12133
12134
12135
12136
12137
12138
12139
12140
12141
12142
12143
12144
12145
12146
12147
12148
12149
12150
12151
12152 ServiceAgentAuth string `json:"serviceAgentAuth,omitempty"`
12153
12154
12155 Uri string `json:"uri,omitempty"`
12156
12157 Username string `json:"username,omitempty"`
12158
12159
12160
12161
12162
12163
12164 WebhookType string `json:"webhookType,omitempty"`
12165
12166
12167
12168
12169
12170 ForceSendFields []string `json:"-"`
12171
12172
12173
12174
12175 NullFields []string `json:"-"`
12176 }
12177
12178 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService) MarshalJSON() ([]byte, error) {
12179 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebService
12180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12181 }
12182
12183
12184
12185
12186 type GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig struct {
12187
12188 ClientId string `json:"clientId,omitempty"`
12189
12190
12191 ClientSecret string `json:"clientSecret,omitempty"`
12192
12193 Scopes []string `json:"scopes,omitempty"`
12194
12195
12196 TokenEndpoint string `json:"tokenEndpoint,omitempty"`
12197
12198
12199
12200
12201
12202 ForceSendFields []string `json:"-"`
12203
12204
12205
12206
12207 NullFields []string `json:"-"`
12208 }
12209
12210 func (s *GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig) MarshalJSON() ([]byte, error) {
12211 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookGenericWebServiceOAuthConfig
12212 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12213 }
12214
12215
12216
12217
12218
12219
12220 type GoogleCloudDialogflowCxV3beta1WebhookRequest struct {
12221
12222
12223 DetectIntentResponseId string `json:"detectIntentResponseId,omitempty"`
12224
12225
12226 DtmfDigits string `json:"dtmfDigits,omitempty"`
12227
12228
12229 FulfillmentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo `json:"fulfillmentInfo,omitempty"`
12230
12231 IntentInfo *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo `json:"intentInfo,omitempty"`
12232
12233 LanguageCode string `json:"languageCode,omitempty"`
12234
12235 LanguageInfo *GoogleCloudDialogflowCxV3beta1LanguageInfo `json:"languageInfo,omitempty"`
12236
12237
12238
12239 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
12240
12241 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
12242
12243 Payload googleapi.RawMessage `json:"payload,omitempty"`
12244
12245
12246
12247 SentimentAnalysisResult *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
12248
12249 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
12250
12251
12252 Text string `json:"text,omitempty"`
12253
12254
12255 Transcript string `json:"transcript,omitempty"`
12256
12257
12258 TriggerEvent string `json:"triggerEvent,omitempty"`
12259
12260
12261
12262 TriggerIntent string `json:"triggerIntent,omitempty"`
12263
12264
12265
12266
12267
12268 ForceSendFields []string `json:"-"`
12269
12270
12271
12272
12273 NullFields []string `json:"-"`
12274 }
12275
12276 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequest) MarshalJSON() ([]byte, error) {
12277 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequest
12278 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12279 }
12280
12281
12282
12283 type GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo struct {
12284
12285
12286
12287
12288 Tag string `json:"tag,omitempty"`
12289
12290
12291
12292
12293
12294 ForceSendFields []string `json:"-"`
12295
12296
12297
12298
12299 NullFields []string `json:"-"`
12300 }
12301
12302 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo) MarshalJSON() ([]byte, error) {
12303 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestFulfillmentInfo
12304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12305 }
12306
12307
12308
12309 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo struct {
12310
12311
12312 Confidence float64 `json:"confidence,omitempty"`
12313
12314 DisplayName string `json:"displayName,omitempty"`
12315
12316
12317 LastMatchedIntent string `json:"lastMatchedIntent,omitempty"`
12318
12319
12320
12321
12322 Parameters map[string]GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue `json:"parameters,omitempty"`
12323
12324
12325
12326
12327
12328 ForceSendFields []string `json:"-"`
12329
12330
12331
12332
12333 NullFields []string `json:"-"`
12334 }
12335
12336 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) MarshalJSON() ([]byte, error) {
12337 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
12338 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12339 }
12340
12341 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo) UnmarshalJSON(data []byte) error {
12342 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo
12343 var s1 struct {
12344 Confidence gensupport.JSONFloat64 `json:"confidence"`
12345 *NoMethod
12346 }
12347 s1.NoMethod = (*NoMethod)(s)
12348 if err := json.Unmarshal(data, &s1); err != nil {
12349 return err
12350 }
12351 s.Confidence = float64(s1.Confidence)
12352 return nil
12353 }
12354
12355
12356
12357 type GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue struct {
12358
12359
12360 OriginalValue string `json:"originalValue,omitempty"`
12361
12362
12363 ResolvedValue interface{} `json:"resolvedValue,omitempty"`
12364
12365
12366
12367
12368
12369 ForceSendFields []string `json:"-"`
12370
12371
12372
12373
12374 NullFields []string `json:"-"`
12375 }
12376
12377 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue) MarshalJSON() ([]byte, error) {
12378 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfoIntentParameterValue
12379 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12380 }
12381
12382
12383
12384 type GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult struct {
12385
12386
12387
12388 Magnitude float64 `json:"magnitude,omitempty"`
12389
12390
12391 Score float64 `json:"score,omitempty"`
12392
12393
12394
12395
12396
12397 ForceSendFields []string `json:"-"`
12398
12399
12400
12401
12402 NullFields []string `json:"-"`
12403 }
12404
12405 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) MarshalJSON() ([]byte, error) {
12406 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
12407 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12408 }
12409
12410 func (s *GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult) UnmarshalJSON(data []byte) error {
12411 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
12412 var s1 struct {
12413 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
12414 Score gensupport.JSONFloat64 `json:"score"`
12415 *NoMethod
12416 }
12417 s1.NoMethod = (*NoMethod)(s)
12418 if err := json.Unmarshal(data, &s1); err != nil {
12419 return err
12420 }
12421 s.Magnitude = float64(s1.Magnitude)
12422 s.Score = float64(s1.Score)
12423 return nil
12424 }
12425
12426
12427
12428 type GoogleCloudDialogflowCxV3beta1WebhookResponse struct {
12429
12430
12431
12432 FulfillmentResponse *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse `json:"fulfillmentResponse,omitempty"`
12433
12434
12435 PageInfo *GoogleCloudDialogflowCxV3beta1PageInfo `json:"pageInfo,omitempty"`
12436
12437 Payload googleapi.RawMessage `json:"payload,omitempty"`
12438
12439
12440 SessionInfo *GoogleCloudDialogflowCxV3beta1SessionInfo `json:"sessionInfo,omitempty"`
12441
12442
12443 TargetFlow string `json:"targetFlow,omitempty"`
12444
12445
12446 TargetPage string `json:"targetPage,omitempty"`
12447
12448
12449
12450
12451
12452 ForceSendFields []string `json:"-"`
12453
12454
12455
12456
12457 NullFields []string `json:"-"`
12458 }
12459
12460 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponse) MarshalJSON() ([]byte, error) {
12461 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponse
12462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12463 }
12464
12465
12466
12467 type GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse struct {
12468
12469
12470
12471
12472
12473
12474
12475
12476 MergeBehavior string `json:"mergeBehavior,omitempty"`
12477
12478 Messages []*GoogleCloudDialogflowCxV3beta1ResponseMessage `json:"messages,omitempty"`
12479
12480
12481
12482
12483
12484 ForceSendFields []string `json:"-"`
12485
12486
12487
12488
12489 NullFields []string `json:"-"`
12490 }
12491
12492 func (s *GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse) MarshalJSON() ([]byte, error) {
12493 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookResponseFulfillmentResponse
12494 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12495 }
12496
12497
12498
12499
12500 type GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig struct {
12501
12502 GenericWebService *GoogleCloudDialogflowCxV3beta1WebhookGenericWebService `json:"genericWebService,omitempty"`
12503
12504
12505
12506
12507 Service string `json:"service,omitempty"`
12508
12509
12510
12511
12512
12513 ForceSendFields []string `json:"-"`
12514
12515
12516
12517
12518 NullFields []string `json:"-"`
12519 }
12520
12521 func (s *GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig) MarshalJSON() ([]byte, error) {
12522 type NoMethod GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
12523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12524 }
12525
12526
12527
12528
12529 type GoogleCloudDialogflowV2AnnotatedMessagePart struct {
12530
12531
12532
12533
12534 EntityType string `json:"entityType,omitempty"`
12535
12536
12537
12538
12539 FormattedValue interface{} `json:"formattedValue,omitempty"`
12540
12541 Text string `json:"text,omitempty"`
12542
12543
12544
12545
12546
12547 ForceSendFields []string `json:"-"`
12548
12549
12550
12551
12552 NullFields []string `json:"-"`
12553 }
12554
12555 func (s *GoogleCloudDialogflowV2AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
12556 type NoMethod GoogleCloudDialogflowV2AnnotatedMessagePart
12557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12558 }
12559
12560
12561 type GoogleCloudDialogflowV2ArticleAnswer struct {
12562
12563
12564 AnswerRecord string `json:"answerRecord,omitempty"`
12565
12566
12567
12568 Confidence float64 `json:"confidence,omitempty"`
12569
12570
12571 Metadata map[string]string `json:"metadata,omitempty"`
12572
12573 Snippets []string `json:"snippets,omitempty"`
12574
12575 Title string `json:"title,omitempty"`
12576
12577 Uri string `json:"uri,omitempty"`
12578
12579
12580
12581
12582
12583 ForceSendFields []string `json:"-"`
12584
12585
12586
12587
12588 NullFields []string `json:"-"`
12589 }
12590
12591 func (s *GoogleCloudDialogflowV2ArticleAnswer) MarshalJSON() ([]byte, error) {
12592 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
12593 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12594 }
12595
12596 func (s *GoogleCloudDialogflowV2ArticleAnswer) UnmarshalJSON(data []byte) error {
12597 type NoMethod GoogleCloudDialogflowV2ArticleAnswer
12598 var s1 struct {
12599 Confidence gensupport.JSONFloat64 `json:"confidence"`
12600 *NoMethod
12601 }
12602 s1.NoMethod = (*NoMethod)(s)
12603 if err := json.Unmarshal(data, &s1); err != nil {
12604 return err
12605 }
12606 s.Confidence = float64(s1.Confidence)
12607 return nil
12608 }
12609
12610
12611
12612 type GoogleCloudDialogflowV2ArticleSuggestionModelMetadata struct {
12613
12614
12615
12616
12617
12618
12619
12620
12621 TrainingModelType string `json:"trainingModelType,omitempty"`
12622
12623
12624
12625
12626
12627 ForceSendFields []string `json:"-"`
12628
12629
12630
12631
12632 NullFields []string `json:"-"`
12633 }
12634
12635 func (s *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata) MarshalJSON() ([]byte, error) {
12636 type NoMethod GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
12637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12638 }
12639
12640
12641
12642 type GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse struct {
12643
12644 EntityTypes []*GoogleCloudDialogflowV2EntityType `json:"entityTypes,omitempty"`
12645
12646
12647
12648
12649
12650 ForceSendFields []string `json:"-"`
12651
12652
12653
12654
12655 NullFields []string `json:"-"`
12656 }
12657
12658 func (s *GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
12659 type NoMethod GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
12660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12661 }
12662
12663
12664
12665 type GoogleCloudDialogflowV2BatchUpdateIntentsResponse struct {
12666
12667 Intents []*GoogleCloudDialogflowV2Intent `json:"intents,omitempty"`
12668
12669
12670
12671
12672
12673 ForceSendFields []string `json:"-"`
12674
12675
12676
12677
12678 NullFields []string `json:"-"`
12679 }
12680
12681 func (s *GoogleCloudDialogflowV2BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
12682 type NoMethod GoogleCloudDialogflowV2BatchUpdateIntentsResponse
12683 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12684 }
12685
12686
12687
12688 type GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata struct {
12689
12690
12691 ConversationProfile string `json:"conversationProfile,omitempty"`
12692
12693
12694 CreateTime string `json:"createTime,omitempty"`
12695
12696
12697
12698
12699
12700
12701
12702
12703
12704
12705 ParticipantRole string `json:"participantRole,omitempty"`
12706
12707
12708
12709
12710
12711
12712
12713
12714
12715
12716 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
12717
12718
12719
12720
12721
12722 ForceSendFields []string `json:"-"`
12723
12724
12725
12726
12727 NullFields []string `json:"-"`
12728 }
12729
12730 func (s *GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
12731 type NoMethod GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
12732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12733 }
12734
12735
12736
12737
12738
12739
12740
12741
12742
12743
12744
12745
12746
12747
12748 type GoogleCloudDialogflowV2Context struct {
12749
12750
12751
12752
12753 LifespanCount int64 `json:"lifespanCount,omitempty"`
12754
12755
12756
12757
12758
12759
12760
12761
12762
12763
12764 Name string `json:"name,omitempty"`
12765
12766
12767
12768
12769
12770
12771
12772
12773
12774
12775 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
12776
12777
12778
12779
12780
12781 ForceSendFields []string `json:"-"`
12782
12783
12784
12785
12786 NullFields []string `json:"-"`
12787 }
12788
12789 func (s *GoogleCloudDialogflowV2Context) MarshalJSON() ([]byte, error) {
12790 type NoMethod GoogleCloudDialogflowV2Context
12791 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12792 }
12793
12794
12795
12796 type GoogleCloudDialogflowV2ConversationEvent struct {
12797
12798
12799 Conversation string `json:"conversation,omitempty"`
12800
12801
12802 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
12803
12804 NewMessagePayload *GoogleCloudDialogflowV2Message `json:"newMessagePayload,omitempty"`
12805
12806
12807
12808
12809
12810
12811
12812
12813
12814
12815
12816
12817
12818
12819
12820
12821
12822
12823
12824
12825 Type string `json:"type,omitempty"`
12826
12827
12828
12829
12830
12831 ForceSendFields []string `json:"-"`
12832
12833
12834
12835
12836 NullFields []string `json:"-"`
12837 }
12838
12839 func (s *GoogleCloudDialogflowV2ConversationEvent) MarshalJSON() ([]byte, error) {
12840 type NoMethod GoogleCloudDialogflowV2ConversationEvent
12841 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12842 }
12843
12844
12845 type GoogleCloudDialogflowV2ConversationModel struct {
12846
12847 ArticleSuggestionModelMetadata *GoogleCloudDialogflowV2ArticleSuggestionModelMetadata `json:"articleSuggestionModelMetadata,omitempty"`
12848
12849 CreateTime string `json:"createTime,omitempty"`
12850
12851 Datasets []*GoogleCloudDialogflowV2InputDataset `json:"datasets,omitempty"`
12852
12853 DisplayName string `json:"displayName,omitempty"`
12854
12855
12856
12857
12858
12859 LanguageCode string `json:"languageCode,omitempty"`
12860
12861
12862 Name string `json:"name,omitempty"`
12863
12864 SmartReplyModelMetadata *GoogleCloudDialogflowV2SmartReplyModelMetadata `json:"smartReplyModelMetadata,omitempty"`
12865
12866
12867
12868
12869
12870
12871
12872
12873
12874
12875
12876
12877
12878
12879
12880
12881 State string `json:"state,omitempty"`
12882
12883
12884
12885
12886
12887
12888 ForceSendFields []string `json:"-"`
12889
12890
12891
12892
12893 NullFields []string `json:"-"`
12894 }
12895
12896 func (s *GoogleCloudDialogflowV2ConversationModel) MarshalJSON() ([]byte, error) {
12897 type NoMethod GoogleCloudDialogflowV2ConversationModel
12898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12899 }
12900
12901
12902
12903 type GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata struct {
12904
12905
12906 ConversationDataset string `json:"conversationDataset,omitempty"`
12907
12908
12909
12910
12911
12912 ForceSendFields []string `json:"-"`
12913
12914
12915
12916
12917 NullFields []string `json:"-"`
12918 }
12919
12920 func (s *GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata) MarshalJSON() ([]byte, error) {
12921 type NoMethod GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
12922 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12923 }
12924
12925
12926
12927
12928 type GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata struct {
12929
12930
12931 ConversationModel string `json:"conversationModel,omitempty"`
12932
12933
12934 ConversationModelEvaluation string `json:"conversationModelEvaluation,omitempty"`
12935
12936
12937 CreateTime string `json:"createTime,omitempty"`
12938
12939
12940
12941
12942
12943
12944
12945
12946
12947 State string `json:"state,omitempty"`
12948
12949
12950
12951
12952
12953 ForceSendFields []string `json:"-"`
12954
12955
12956
12957
12958 NullFields []string `json:"-"`
12959 }
12960
12961 func (s *GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata) MarshalJSON() ([]byte, error) {
12962 type NoMethod GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
12963 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
12964 }
12965
12966
12967
12968 type GoogleCloudDialogflowV2CreateConversationModelOperationMetadata struct {
12969
12970
12971 ConversationModel string `json:"conversationModel,omitempty"`
12972
12973
12974 CreateTime string `json:"createTime,omitempty"`
12975
12976
12977
12978
12979
12980
12981
12982
12983
12984
12985
12986
12987 State string `json:"state,omitempty"`
12988
12989
12990
12991
12992
12993 ForceSendFields []string `json:"-"`
12994
12995
12996
12997
12998 NullFields []string `json:"-"`
12999 }
13000
13001 func (s *GoogleCloudDialogflowV2CreateConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
13002 type NoMethod GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
13003 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13004 }
13005
13006
13007
13008 type GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata struct {
13009 }
13010
13011
13012
13013 type GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata struct {
13014
13015
13016 ConversationModel string `json:"conversationModel,omitempty"`
13017
13018
13019 CreateTime string `json:"createTime,omitempty"`
13020
13021
13022
13023
13024
13025 ForceSendFields []string `json:"-"`
13026
13027
13028
13029
13030 NullFields []string `json:"-"`
13031 }
13032
13033 func (s *GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
13034 type NoMethod GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
13035 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13036 }
13037
13038
13039
13040 type GoogleCloudDialogflowV2DeployConversationModelOperationMetadata struct {
13041
13042
13043 ConversationModel string `json:"conversationModel,omitempty"`
13044
13045
13046 CreateTime string `json:"createTime,omitempty"`
13047
13048
13049
13050
13051
13052 ForceSendFields []string `json:"-"`
13053
13054
13055
13056
13057 NullFields []string `json:"-"`
13058 }
13059
13060 func (s *GoogleCloudDialogflowV2DeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
13061 type NoMethod GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
13062 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13063 }
13064
13065
13066
13067
13068
13069
13070
13071
13072
13073
13074
13075 type GoogleCloudDialogflowV2EntityType struct {
13076
13077
13078
13079
13080
13081
13082
13083
13084 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
13085
13086 DisplayName string `json:"displayName,omitempty"`
13087
13088
13089 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
13090
13091
13092 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
13093
13094
13095
13096
13097
13098
13099
13100
13101
13102
13103
13104 Kind string `json:"kind,omitempty"`
13105
13106
13107
13108 Name string `json:"name,omitempty"`
13109
13110
13111
13112
13113
13114 ForceSendFields []string `json:"-"`
13115
13116
13117
13118
13119 NullFields []string `json:"-"`
13120 }
13121
13122 func (s *GoogleCloudDialogflowV2EntityType) MarshalJSON() ([]byte, error) {
13123 type NoMethod GoogleCloudDialogflowV2EntityType
13124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13125 }
13126
13127
13128
13129 type GoogleCloudDialogflowV2EntityTypeEntity struct {
13130
13131
13132
13133
13134 Synonyms []string `json:"synonyms,omitempty"`
13135
13136
13137
13138
13139
13140 Value string `json:"value,omitempty"`
13141
13142
13143
13144
13145
13146 ForceSendFields []string `json:"-"`
13147
13148
13149
13150
13151 NullFields []string `json:"-"`
13152 }
13153
13154 func (s *GoogleCloudDialogflowV2EntityTypeEntity) MarshalJSON() ([]byte, error) {
13155 type NoMethod GoogleCloudDialogflowV2EntityTypeEntity
13156 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13157 }
13158
13159
13160
13161
13162
13163
13164 type GoogleCloudDialogflowV2EventInput struct {
13165
13166
13167
13168
13169
13170
13171
13172 LanguageCode string `json:"languageCode,omitempty"`
13173
13174 Name string `json:"name,omitempty"`
13175
13176
13177
13178
13179
13180
13181
13182
13183
13184
13185 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
13186
13187
13188
13189
13190
13191 ForceSendFields []string `json:"-"`
13192
13193
13194
13195
13196 NullFields []string `json:"-"`
13197 }
13198
13199 func (s *GoogleCloudDialogflowV2EventInput) MarshalJSON() ([]byte, error) {
13200 type NoMethod GoogleCloudDialogflowV2EventInput
13201 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13202 }
13203
13204
13205
13206 type GoogleCloudDialogflowV2ExportAgentResponse struct {
13207
13208 AgentContent string `json:"agentContent,omitempty"`
13209
13210
13211 AgentUri string `json:"agentUri,omitempty"`
13212
13213
13214
13215
13216
13217 ForceSendFields []string `json:"-"`
13218
13219
13220
13221
13222 NullFields []string `json:"-"`
13223 }
13224
13225 func (s *GoogleCloudDialogflowV2ExportAgentResponse) MarshalJSON() ([]byte, error) {
13226 type NoMethod GoogleCloudDialogflowV2ExportAgentResponse
13227 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13228 }
13229
13230
13231
13232 type GoogleCloudDialogflowV2ExportOperationMetadata struct {
13233
13234 ExportedGcsDestination *GoogleCloudDialogflowV2GcsDestination `json:"exportedGcsDestination,omitempty"`
13235
13236
13237
13238
13239
13240 ForceSendFields []string `json:"-"`
13241
13242
13243
13244
13245 NullFields []string `json:"-"`
13246 }
13247
13248 func (s *GoogleCloudDialogflowV2ExportOperationMetadata) MarshalJSON() ([]byte, error) {
13249 type NoMethod GoogleCloudDialogflowV2ExportOperationMetadata
13250 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13251 }
13252
13253
13254
13255 type GoogleCloudDialogflowV2FaqAnswer struct {
13256
13257 Answer string `json:"answer,omitempty"`
13258
13259
13260 AnswerRecord string `json:"answerRecord,omitempty"`
13261
13262
13263
13264 Confidence float64 `json:"confidence,omitempty"`
13265
13266
13267 Metadata map[string]string `json:"metadata,omitempty"`
13268
13269 Question string `json:"question,omitempty"`
13270
13271
13272 Source string `json:"source,omitempty"`
13273
13274
13275
13276
13277
13278 ForceSendFields []string `json:"-"`
13279
13280
13281
13282
13283 NullFields []string `json:"-"`
13284 }
13285
13286 func (s *GoogleCloudDialogflowV2FaqAnswer) MarshalJSON() ([]byte, error) {
13287 type NoMethod GoogleCloudDialogflowV2FaqAnswer
13288 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13289 }
13290
13291 func (s *GoogleCloudDialogflowV2FaqAnswer) UnmarshalJSON(data []byte) error {
13292 type NoMethod GoogleCloudDialogflowV2FaqAnswer
13293 var s1 struct {
13294 Confidence gensupport.JSONFloat64 `json:"confidence"`
13295 *NoMethod
13296 }
13297 s1.NoMethod = (*NoMethod)(s)
13298 if err := json.Unmarshal(data, &s1); err != nil {
13299 return err
13300 }
13301 s.Confidence = float64(s1.Confidence)
13302 return nil
13303 }
13304
13305
13306
13307 type GoogleCloudDialogflowV2GcsDestination struct {
13308
13309
13310
13311
13312 Uri string `json:"uri,omitempty"`
13313
13314
13315
13316
13317
13318 ForceSendFields []string `json:"-"`
13319
13320
13321
13322
13323 NullFields []string `json:"-"`
13324 }
13325
13326 func (s *GoogleCloudDialogflowV2GcsDestination) MarshalJSON() ([]byte, error) {
13327 type NoMethod GoogleCloudDialogflowV2GcsDestination
13328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13329 }
13330
13331
13332
13333
13334 type GoogleCloudDialogflowV2HumanAgentAssistantEvent struct {
13335
13336
13337 Conversation string `json:"conversation,omitempty"`
13338
13339
13340
13341 Participant string `json:"participant,omitempty"`
13342
13343
13344 SuggestionResults []*GoogleCloudDialogflowV2SuggestionResult `json:"suggestionResults,omitempty"`
13345
13346
13347
13348
13349
13350 ForceSendFields []string `json:"-"`
13351
13352
13353
13354
13355 NullFields []string `json:"-"`
13356 }
13357
13358 func (s *GoogleCloudDialogflowV2HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
13359 type NoMethod GoogleCloudDialogflowV2HumanAgentAssistantEvent
13360 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13361 }
13362
13363
13364
13365 type GoogleCloudDialogflowV2ImportConversationDataOperationMetadata struct {
13366
13367
13368 ConversationDataset string `json:"conversationDataset,omitempty"`
13369
13370
13371 CreateTime string `json:"createTime,omitempty"`
13372
13373
13374 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
13375
13376
13377
13378
13379
13380 ForceSendFields []string `json:"-"`
13381
13382
13383
13384
13385 NullFields []string `json:"-"`
13386 }
13387
13388 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationMetadata) MarshalJSON() ([]byte, error) {
13389 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
13390 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13391 }
13392
13393
13394
13395 type GoogleCloudDialogflowV2ImportConversationDataOperationResponse struct {
13396
13397
13398 ConversationDataset string `json:"conversationDataset,omitempty"`
13399
13400 ImportCount int64 `json:"importCount,omitempty"`
13401
13402
13403
13404
13405
13406 ForceSendFields []string `json:"-"`
13407
13408
13409
13410
13411 NullFields []string `json:"-"`
13412 }
13413
13414 func (s *GoogleCloudDialogflowV2ImportConversationDataOperationResponse) MarshalJSON() ([]byte, error) {
13415 type NoMethod GoogleCloudDialogflowV2ImportConversationDataOperationResponse
13416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13417 }
13418
13419
13420
13421 type GoogleCloudDialogflowV2ImportDocumentsResponse struct {
13422
13423 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
13424
13425
13426
13427
13428
13429 ForceSendFields []string `json:"-"`
13430
13431
13432
13433
13434 NullFields []string `json:"-"`
13435 }
13436
13437 func (s *GoogleCloudDialogflowV2ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
13438 type NoMethod GoogleCloudDialogflowV2ImportDocumentsResponse
13439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13440 }
13441
13442
13443
13444 type GoogleCloudDialogflowV2InputDataset struct {
13445
13446
13447 Dataset string `json:"dataset,omitempty"`
13448
13449
13450
13451
13452
13453 ForceSendFields []string `json:"-"`
13454
13455
13456
13457
13458 NullFields []string `json:"-"`
13459 }
13460
13461 func (s *GoogleCloudDialogflowV2InputDataset) MarshalJSON() ([]byte, error) {
13462 type NoMethod GoogleCloudDialogflowV2InputDataset
13463 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13464 }
13465
13466
13467
13468
13469
13470
13471
13472
13473
13474 type GoogleCloudDialogflowV2Intent struct {
13475
13476
13477 Action string `json:"action,omitempty"`
13478
13479
13480
13481
13482
13483
13484
13485
13486
13487
13488
13489
13490
13491
13492
13493
13494
13495 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
13496
13497 DisplayName string `json:"displayName,omitempty"`
13498
13499
13500
13501 EndInteraction bool `json:"endInteraction,omitempty"`
13502
13503
13504
13505
13506 Events []string `json:"events,omitempty"`
13507
13508
13509
13510 FollowupIntentInfo []*GoogleCloudDialogflowV2IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
13511
13512
13513 InputContextNames []string `json:"inputContextNames,omitempty"`
13514
13515 IsFallback bool `json:"isFallback,omitempty"`
13516
13517
13518
13519
13520 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
13521
13522
13523 Messages []*GoogleCloudDialogflowV2IntentMessage `json:"messages,omitempty"`
13524
13525
13526
13527
13528 MlDisabled bool `json:"mlDisabled,omitempty"`
13529
13530
13531
13532 Name string `json:"name,omitempty"`
13533
13534
13535
13536
13537
13538 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
13539
13540
13541 Parameters []*GoogleCloudDialogflowV2IntentParameter `json:"parameters,omitempty"`
13542
13543
13544
13545
13546
13547 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13548
13549
13550
13551
13552
13553 Priority int64 `json:"priority,omitempty"`
13554
13555
13556 ResetContexts bool `json:"resetContexts,omitempty"`
13557
13558
13559
13560
13561 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
13562
13563
13564 TrainingPhrases []*GoogleCloudDialogflowV2IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
13565
13566
13567
13568
13569
13570
13571
13572
13573
13574
13575
13576 WebhookState string `json:"webhookState,omitempty"`
13577
13578
13579
13580
13581
13582 ForceSendFields []string `json:"-"`
13583
13584
13585
13586
13587 NullFields []string `json:"-"`
13588 }
13589
13590 func (s *GoogleCloudDialogflowV2Intent) MarshalJSON() ([]byte, error) {
13591 type NoMethod GoogleCloudDialogflowV2Intent
13592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13593 }
13594
13595
13596
13597 type GoogleCloudDialogflowV2IntentFollowupIntentInfo struct {
13598
13599
13600 FollowupIntentName string `json:"followupIntentName,omitempty"`
13601
13602
13603 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
13604
13605
13606
13607
13608
13609 ForceSendFields []string `json:"-"`
13610
13611
13612
13613
13614 NullFields []string `json:"-"`
13615 }
13616
13617 func (s *GoogleCloudDialogflowV2IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
13618 type NoMethod GoogleCloudDialogflowV2IntentFollowupIntentInfo
13619 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13620 }
13621
13622
13623
13624
13625
13626 type GoogleCloudDialogflowV2IntentMessage struct {
13627
13628 BasicCard *GoogleCloudDialogflowV2IntentMessageBasicCard `json:"basicCard,omitempty"`
13629
13630 BrowseCarouselCard *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
13631
13632 Card *GoogleCloudDialogflowV2IntentMessageCard `json:"card,omitempty"`
13633
13634 CarouselSelect *GoogleCloudDialogflowV2IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
13635
13636 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13637
13638 LinkOutSuggestion *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
13639
13640 ListSelect *GoogleCloudDialogflowV2IntentMessageListSelect `json:"listSelect,omitempty"`
13641
13642 MediaContent *GoogleCloudDialogflowV2IntentMessageMediaContent `json:"mediaContent,omitempty"`
13643
13644 Payload googleapi.RawMessage `json:"payload,omitempty"`
13645
13646
13647
13648
13649
13650
13651
13652
13653
13654
13655
13656
13657
13658
13659
13660 Platform string `json:"platform,omitempty"`
13661
13662 QuickReplies *GoogleCloudDialogflowV2IntentMessageQuickReplies `json:"quickReplies,omitempty"`
13663
13664 SimpleResponses *GoogleCloudDialogflowV2IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
13665
13666 Suggestions *GoogleCloudDialogflowV2IntentMessageSuggestions `json:"suggestions,omitempty"`
13667
13668 TableCard *GoogleCloudDialogflowV2IntentMessageTableCard `json:"tableCard,omitempty"`
13669
13670 Text *GoogleCloudDialogflowV2IntentMessageText `json:"text,omitempty"`
13671
13672
13673
13674
13675
13676 ForceSendFields []string `json:"-"`
13677
13678
13679
13680
13681 NullFields []string `json:"-"`
13682 }
13683
13684 func (s *GoogleCloudDialogflowV2IntentMessage) MarshalJSON() ([]byte, error) {
13685 type NoMethod GoogleCloudDialogflowV2IntentMessage
13686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13687 }
13688
13689
13690
13691 type GoogleCloudDialogflowV2IntentMessageBasicCard struct {
13692
13693 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
13694
13695 FormattedText string `json:"formattedText,omitempty"`
13696
13697 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13698
13699 Subtitle string `json:"subtitle,omitempty"`
13700
13701 Title string `json:"title,omitempty"`
13702
13703
13704
13705
13706
13707 ForceSendFields []string `json:"-"`
13708
13709
13710
13711
13712 NullFields []string `json:"-"`
13713 }
13714
13715 func (s *GoogleCloudDialogflowV2IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
13716 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCard
13717 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13718 }
13719
13720
13721
13722 type GoogleCloudDialogflowV2IntentMessageBasicCardButton struct {
13723
13724 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
13725
13726 Title string `json:"title,omitempty"`
13727
13728
13729
13730
13731
13732 ForceSendFields []string `json:"-"`
13733
13734
13735
13736
13737 NullFields []string `json:"-"`
13738 }
13739
13740 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
13741 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButton
13742 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13743 }
13744
13745
13746
13747 type GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction struct {
13748
13749 Uri string `json:"uri,omitempty"`
13750
13751
13752
13753
13754
13755 ForceSendFields []string `json:"-"`
13756
13757
13758
13759
13760 NullFields []string `json:"-"`
13761 }
13762
13763 func (s *GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
13764 type NoMethod GoogleCloudDialogflowV2IntentMessageBasicCardButtonOpenUriAction
13765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13766 }
13767
13768
13769
13770
13771 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard struct {
13772
13773
13774
13775
13776
13777
13778
13779
13780
13781
13782
13783
13784
13785
13786
13787
13788
13789
13790 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
13791
13792
13793 Items []*GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
13794
13795
13796
13797
13798
13799 ForceSendFields []string `json:"-"`
13800
13801
13802
13803
13804 NullFields []string `json:"-"`
13805 }
13806
13807 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
13808 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCard
13809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13810 }
13811
13812
13813
13814
13815 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
13816
13817
13818 Description string `json:"description,omitempty"`
13819
13820
13821 Footer string `json:"footer,omitempty"`
13822
13823 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13824
13825 OpenUriAction *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
13826
13827 Title string `json:"title,omitempty"`
13828
13829
13830
13831
13832
13833 ForceSendFields []string `json:"-"`
13834
13835
13836
13837
13838 NullFields []string `json:"-"`
13839 }
13840
13841 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
13842 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItem
13843 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13844 }
13845
13846
13847
13848 type GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
13849
13850 Url string `json:"url,omitempty"`
13851
13852
13853
13854
13855
13856
13857
13858
13859 UrlTypeHint string `json:"urlTypeHint,omitempty"`
13860
13861
13862
13863
13864
13865 ForceSendFields []string `json:"-"`
13866
13867
13868
13869
13870 NullFields []string `json:"-"`
13871 }
13872
13873 func (s *GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
13874 type NoMethod GoogleCloudDialogflowV2IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
13875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13876 }
13877
13878
13879 type GoogleCloudDialogflowV2IntentMessageCard struct {
13880
13881 Buttons []*GoogleCloudDialogflowV2IntentMessageCardButton `json:"buttons,omitempty"`
13882
13883 ImageUri string `json:"imageUri,omitempty"`
13884
13885 Subtitle string `json:"subtitle,omitempty"`
13886
13887 Title string `json:"title,omitempty"`
13888
13889
13890
13891
13892
13893 ForceSendFields []string `json:"-"`
13894
13895
13896
13897
13898 NullFields []string `json:"-"`
13899 }
13900
13901 func (s *GoogleCloudDialogflowV2IntentMessageCard) MarshalJSON() ([]byte, error) {
13902 type NoMethod GoogleCloudDialogflowV2IntentMessageCard
13903 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13904 }
13905
13906
13907
13908 type GoogleCloudDialogflowV2IntentMessageCardButton struct {
13909
13910
13911 Postback string `json:"postback,omitempty"`
13912
13913 Text string `json:"text,omitempty"`
13914
13915
13916
13917
13918
13919 ForceSendFields []string `json:"-"`
13920
13921
13922
13923
13924 NullFields []string `json:"-"`
13925 }
13926
13927 func (s *GoogleCloudDialogflowV2IntentMessageCardButton) MarshalJSON() ([]byte, error) {
13928 type NoMethod GoogleCloudDialogflowV2IntentMessageCardButton
13929 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13930 }
13931
13932
13933
13934 type GoogleCloudDialogflowV2IntentMessageCarouselSelect struct {
13935
13936 Items []*GoogleCloudDialogflowV2IntentMessageCarouselSelectItem `json:"items,omitempty"`
13937
13938
13939
13940
13941
13942 ForceSendFields []string `json:"-"`
13943
13944
13945
13946
13947 NullFields []string `json:"-"`
13948 }
13949
13950 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
13951 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelect
13952 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13953 }
13954
13955
13956
13957 type GoogleCloudDialogflowV2IntentMessageCarouselSelectItem struct {
13958
13959 Description string `json:"description,omitempty"`
13960
13961 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
13962
13963 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
13964
13965 Title string `json:"title,omitempty"`
13966
13967
13968
13969
13970
13971 ForceSendFields []string `json:"-"`
13972
13973
13974
13975
13976 NullFields []string `json:"-"`
13977 }
13978
13979 func (s *GoogleCloudDialogflowV2IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
13980 type NoMethod GoogleCloudDialogflowV2IntentMessageCarouselSelectItem
13981 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
13982 }
13983
13984
13985
13986 type GoogleCloudDialogflowV2IntentMessageColumnProperties struct {
13987
13988 Header string `json:"header,omitempty"`
13989
13990
13991
13992
13993
13994
13995
13996
13997
13998 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
13999
14000
14001
14002
14003
14004 ForceSendFields []string `json:"-"`
14005
14006
14007
14008
14009 NullFields []string `json:"-"`
14010 }
14011
14012 func (s *GoogleCloudDialogflowV2IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
14013 type NoMethod GoogleCloudDialogflowV2IntentMessageColumnProperties
14014 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14015 }
14016
14017
14018 type GoogleCloudDialogflowV2IntentMessageImage struct {
14019
14020
14021 AccessibilityText string `json:"accessibilityText,omitempty"`
14022
14023 ImageUri string `json:"imageUri,omitempty"`
14024
14025
14026
14027
14028
14029 ForceSendFields []string `json:"-"`
14030
14031
14032
14033
14034 NullFields []string `json:"-"`
14035 }
14036
14037 func (s *GoogleCloudDialogflowV2IntentMessageImage) MarshalJSON() ([]byte, error) {
14038 type NoMethod GoogleCloudDialogflowV2IntentMessageImage
14039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14040 }
14041
14042
14043
14044
14045 type GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion struct {
14046
14047
14048 DestinationName string `json:"destinationName,omitempty"`
14049
14050
14051 Uri string `json:"uri,omitempty"`
14052
14053
14054
14055
14056
14057 ForceSendFields []string `json:"-"`
14058
14059
14060
14061
14062 NullFields []string `json:"-"`
14063 }
14064
14065 func (s *GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
14066 type NoMethod GoogleCloudDialogflowV2IntentMessageLinkOutSuggestion
14067 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14068 }
14069
14070
14071
14072 type GoogleCloudDialogflowV2IntentMessageListSelect struct {
14073
14074 Items []*GoogleCloudDialogflowV2IntentMessageListSelectItem `json:"items,omitempty"`
14075
14076 Subtitle string `json:"subtitle,omitempty"`
14077
14078 Title string `json:"title,omitempty"`
14079
14080
14081
14082
14083
14084 ForceSendFields []string `json:"-"`
14085
14086
14087
14088
14089 NullFields []string `json:"-"`
14090 }
14091
14092 func (s *GoogleCloudDialogflowV2IntentMessageListSelect) MarshalJSON() ([]byte, error) {
14093 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelect
14094 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14095 }
14096
14097
14098 type GoogleCloudDialogflowV2IntentMessageListSelectItem struct {
14099
14100 Description string `json:"description,omitempty"`
14101
14102 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
14103
14104 Info *GoogleCloudDialogflowV2IntentMessageSelectItemInfo `json:"info,omitempty"`
14105
14106 Title string `json:"title,omitempty"`
14107
14108
14109
14110
14111
14112 ForceSendFields []string `json:"-"`
14113
14114
14115
14116
14117 NullFields []string `json:"-"`
14118 }
14119
14120 func (s *GoogleCloudDialogflowV2IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
14121 type NoMethod GoogleCloudDialogflowV2IntentMessageListSelectItem
14122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14123 }
14124
14125
14126
14127 type GoogleCloudDialogflowV2IntentMessageMediaContent struct {
14128
14129 MediaObjects []*GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
14130
14131
14132
14133
14134
14135 MediaType string `json:"mediaType,omitempty"`
14136
14137
14138
14139
14140
14141 ForceSendFields []string `json:"-"`
14142
14143
14144
14145
14146 NullFields []string `json:"-"`
14147 }
14148
14149 func (s *GoogleCloudDialogflowV2IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
14150 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContent
14151 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14152 }
14153
14154
14155
14156 type GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject struct {
14157
14158 ContentUrl string `json:"contentUrl,omitempty"`
14159
14160 Description string `json:"description,omitempty"`
14161
14162 Icon *GoogleCloudDialogflowV2IntentMessageImage `json:"icon,omitempty"`
14163
14164 LargeImage *GoogleCloudDialogflowV2IntentMessageImage `json:"largeImage,omitempty"`
14165
14166 Name string `json:"name,omitempty"`
14167
14168
14169
14170
14171
14172 ForceSendFields []string `json:"-"`
14173
14174
14175
14176
14177 NullFields []string `json:"-"`
14178 }
14179
14180 func (s *GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
14181 type NoMethod GoogleCloudDialogflowV2IntentMessageMediaContentResponseMediaObject
14182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14183 }
14184
14185
14186
14187 type GoogleCloudDialogflowV2IntentMessageQuickReplies struct {
14188
14189 QuickReplies []string `json:"quickReplies,omitempty"`
14190
14191 Title string `json:"title,omitempty"`
14192
14193
14194
14195
14196
14197 ForceSendFields []string `json:"-"`
14198
14199
14200
14201
14202 NullFields []string `json:"-"`
14203 }
14204
14205 func (s *GoogleCloudDialogflowV2IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
14206 type NoMethod GoogleCloudDialogflowV2IntentMessageQuickReplies
14207 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14208 }
14209
14210
14211
14212 type GoogleCloudDialogflowV2IntentMessageSelectItemInfo struct {
14213
14214
14215 Key string `json:"key,omitempty"`
14216
14217
14218 Synonyms []string `json:"synonyms,omitempty"`
14219
14220
14221
14222
14223
14224 ForceSendFields []string `json:"-"`
14225
14226
14227
14228
14229 NullFields []string `json:"-"`
14230 }
14231
14232 func (s *GoogleCloudDialogflowV2IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
14233 type NoMethod GoogleCloudDialogflowV2IntentMessageSelectItemInfo
14234 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14235 }
14236
14237
14238
14239 type GoogleCloudDialogflowV2IntentMessageSimpleResponse struct {
14240
14241 DisplayText string `json:"displayText,omitempty"`
14242
14243
14244
14245 Ssml string `json:"ssml,omitempty"`
14246
14247
14248 TextToSpeech string `json:"textToSpeech,omitempty"`
14249
14250
14251
14252
14253
14254 ForceSendFields []string `json:"-"`
14255
14256
14257
14258
14259 NullFields []string `json:"-"`
14260 }
14261
14262 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
14263 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponse
14264 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14265 }
14266
14267
14268
14269
14270
14271
14272 type GoogleCloudDialogflowV2IntentMessageSimpleResponses struct {
14273
14274 SimpleResponses []*GoogleCloudDialogflowV2IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
14275
14276
14277
14278
14279
14280 ForceSendFields []string `json:"-"`
14281
14282
14283
14284
14285 NullFields []string `json:"-"`
14286 }
14287
14288 func (s *GoogleCloudDialogflowV2IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
14289 type NoMethod GoogleCloudDialogflowV2IntentMessageSimpleResponses
14290 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14291 }
14292
14293
14294
14295 type GoogleCloudDialogflowV2IntentMessageSuggestion struct {
14296
14297 Title string `json:"title,omitempty"`
14298
14299
14300
14301
14302
14303 ForceSendFields []string `json:"-"`
14304
14305
14306
14307
14308 NullFields []string `json:"-"`
14309 }
14310
14311 func (s *GoogleCloudDialogflowV2IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
14312 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestion
14313 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14314 }
14315
14316
14317
14318 type GoogleCloudDialogflowV2IntentMessageSuggestions struct {
14319
14320 Suggestions []*GoogleCloudDialogflowV2IntentMessageSuggestion `json:"suggestions,omitempty"`
14321
14322
14323
14324
14325
14326 ForceSendFields []string `json:"-"`
14327
14328
14329
14330
14331 NullFields []string `json:"-"`
14332 }
14333
14334 func (s *GoogleCloudDialogflowV2IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
14335 type NoMethod GoogleCloudDialogflowV2IntentMessageSuggestions
14336 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14337 }
14338
14339
14340
14341 type GoogleCloudDialogflowV2IntentMessageTableCard struct {
14342
14343 Buttons []*GoogleCloudDialogflowV2IntentMessageBasicCardButton `json:"buttons,omitempty"`
14344
14345
14346 ColumnProperties []*GoogleCloudDialogflowV2IntentMessageColumnProperties `json:"columnProperties,omitempty"`
14347
14348 Image *GoogleCloudDialogflowV2IntentMessageImage `json:"image,omitempty"`
14349
14350 Rows []*GoogleCloudDialogflowV2IntentMessageTableCardRow `json:"rows,omitempty"`
14351
14352 Subtitle string `json:"subtitle,omitempty"`
14353
14354 Title string `json:"title,omitempty"`
14355
14356
14357
14358
14359
14360 ForceSendFields []string `json:"-"`
14361
14362
14363
14364
14365 NullFields []string `json:"-"`
14366 }
14367
14368 func (s *GoogleCloudDialogflowV2IntentMessageTableCard) MarshalJSON() ([]byte, error) {
14369 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCard
14370 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14371 }
14372
14373
14374 type GoogleCloudDialogflowV2IntentMessageTableCardCell struct {
14375
14376 Text string `json:"text,omitempty"`
14377
14378
14379
14380
14381
14382 ForceSendFields []string `json:"-"`
14383
14384
14385
14386
14387 NullFields []string `json:"-"`
14388 }
14389
14390 func (s *GoogleCloudDialogflowV2IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
14391 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardCell
14392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14393 }
14394
14395
14396 type GoogleCloudDialogflowV2IntentMessageTableCardRow struct {
14397
14398 Cells []*GoogleCloudDialogflowV2IntentMessageTableCardCell `json:"cells,omitempty"`
14399
14400 DividerAfter bool `json:"dividerAfter,omitempty"`
14401
14402
14403
14404
14405
14406 ForceSendFields []string `json:"-"`
14407
14408
14409
14410
14411 NullFields []string `json:"-"`
14412 }
14413
14414 func (s *GoogleCloudDialogflowV2IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
14415 type NoMethod GoogleCloudDialogflowV2IntentMessageTableCardRow
14416 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14417 }
14418
14419
14420 type GoogleCloudDialogflowV2IntentMessageText struct {
14421
14422 Text []string `json:"text,omitempty"`
14423
14424
14425
14426
14427
14428 ForceSendFields []string `json:"-"`
14429
14430
14431
14432
14433 NullFields []string `json:"-"`
14434 }
14435
14436 func (s *GoogleCloudDialogflowV2IntentMessageText) MarshalJSON() ([]byte, error) {
14437 type NoMethod GoogleCloudDialogflowV2IntentMessageText
14438 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14439 }
14440
14441
14442 type GoogleCloudDialogflowV2IntentParameter struct {
14443
14444
14445
14446 DefaultValue string `json:"defaultValue,omitempty"`
14447
14448 DisplayName string `json:"displayName,omitempty"`
14449
14450
14451
14452 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
14453
14454
14455 IsList bool `json:"isList,omitempty"`
14456
14457
14458
14459 Mandatory bool `json:"mandatory,omitempty"`
14460
14461 Name string `json:"name,omitempty"`
14462
14463
14464 Prompts []string `json:"prompts,omitempty"`
14465
14466
14467
14468
14469 Value string `json:"value,omitempty"`
14470
14471
14472
14473
14474
14475 ForceSendFields []string `json:"-"`
14476
14477
14478
14479
14480 NullFields []string `json:"-"`
14481 }
14482
14483 func (s *GoogleCloudDialogflowV2IntentParameter) MarshalJSON() ([]byte, error) {
14484 type NoMethod GoogleCloudDialogflowV2IntentParameter
14485 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14486 }
14487
14488
14489
14490 type GoogleCloudDialogflowV2IntentTrainingPhrase struct {
14491
14492 Name string `json:"name,omitempty"`
14493
14494
14495
14496
14497
14498
14499
14500
14501
14502
14503
14504
14505 Parts []*GoogleCloudDialogflowV2IntentTrainingPhrasePart `json:"parts,omitempty"`
14506
14507
14508
14509 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
14510
14511
14512
14513
14514
14515
14516
14517
14518
14519
14520
14521 Type string `json:"type,omitempty"`
14522
14523
14524
14525
14526
14527 ForceSendFields []string `json:"-"`
14528
14529
14530
14531
14532 NullFields []string `json:"-"`
14533 }
14534
14535 func (s *GoogleCloudDialogflowV2IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
14536 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrase
14537 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14538 }
14539
14540
14541
14542 type GoogleCloudDialogflowV2IntentTrainingPhrasePart struct {
14543
14544
14545
14546 Alias string `json:"alias,omitempty"`
14547
14548
14549 EntityType string `json:"entityType,omitempty"`
14550
14551 Text string `json:"text,omitempty"`
14552
14553
14554
14555
14556 UserDefined bool `json:"userDefined,omitempty"`
14557
14558
14559
14560
14561
14562 ForceSendFields []string `json:"-"`
14563
14564
14565
14566
14567 NullFields []string `json:"-"`
14568 }
14569
14570 func (s *GoogleCloudDialogflowV2IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
14571 type NoMethod GoogleCloudDialogflowV2IntentTrainingPhrasePart
14572 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14573 }
14574
14575
14576
14577 type GoogleCloudDialogflowV2KnowledgeOperationMetadata struct {
14578
14579
14580 ExportOperationMetadata *GoogleCloudDialogflowV2ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
14581
14582
14583 KnowledgeBase string `json:"knowledgeBase,omitempty"`
14584
14585
14586
14587
14588
14589
14590
14591 State string `json:"state,omitempty"`
14592
14593
14594
14595
14596
14597 ForceSendFields []string `json:"-"`
14598
14599
14600
14601
14602 NullFields []string `json:"-"`
14603 }
14604
14605 func (s *GoogleCloudDialogflowV2KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
14606 type NoMethod GoogleCloudDialogflowV2KnowledgeOperationMetadata
14607 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14608 }
14609
14610
14611
14612 type GoogleCloudDialogflowV2Message struct {
14613
14614 Content string `json:"content,omitempty"`
14615
14616
14617 CreateTime string `json:"createTime,omitempty"`
14618
14619
14620
14621 LanguageCode string `json:"languageCode,omitempty"`
14622
14623 MessageAnnotation *GoogleCloudDialogflowV2MessageAnnotation `json:"messageAnnotation,omitempty"`
14624
14625
14626 Name string `json:"name,omitempty"`
14627
14628 Participant string `json:"participant,omitempty"`
14629
14630
14631
14632
14633
14634
14635
14636
14637
14638 ParticipantRole string `json:"participantRole,omitempty"`
14639
14640 SendTime string `json:"sendTime,omitempty"`
14641
14642
14643 SentimentAnalysis *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
14644
14645
14646
14647
14648
14649 ForceSendFields []string `json:"-"`
14650
14651
14652
14653
14654 NullFields []string `json:"-"`
14655 }
14656
14657 func (s *GoogleCloudDialogflowV2Message) MarshalJSON() ([]byte, error) {
14658 type NoMethod GoogleCloudDialogflowV2Message
14659 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14660 }
14661
14662
14663
14664 type GoogleCloudDialogflowV2MessageAnnotation struct {
14665
14666 ContainEntities bool `json:"containEntities,omitempty"`
14667
14668
14669
14670 Parts []*GoogleCloudDialogflowV2AnnotatedMessagePart `json:"parts,omitempty"`
14671
14672
14673
14674
14675
14676 ForceSendFields []string `json:"-"`
14677
14678
14679
14680
14681 NullFields []string `json:"-"`
14682 }
14683
14684 func (s *GoogleCloudDialogflowV2MessageAnnotation) MarshalJSON() ([]byte, error) {
14685 type NoMethod GoogleCloudDialogflowV2MessageAnnotation
14686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14687 }
14688
14689
14690
14691
14692 type GoogleCloudDialogflowV2OriginalDetectIntentRequest struct {
14693
14694
14695
14696
14697
14698
14699
14700
14701 Payload googleapi.RawMessage `json:"payload,omitempty"`
14702
14703
14704 Source string `json:"source,omitempty"`
14705
14706
14707 Version string `json:"version,omitempty"`
14708
14709
14710
14711
14712
14713 ForceSendFields []string `json:"-"`
14714
14715
14716
14717
14718 NullFields []string `json:"-"`
14719 }
14720
14721 func (s *GoogleCloudDialogflowV2OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
14722 type NoMethod GoogleCloudDialogflowV2OriginalDetectIntentRequest
14723 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14724 }
14725
14726
14727
14728 type GoogleCloudDialogflowV2QueryResult struct {
14729
14730 Action string `json:"action,omitempty"`
14731
14732
14733
14734
14735 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
14736
14737
14738
14739
14740 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
14741
14742
14743
14744
14745 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
14746
14747 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
14748
14749
14750
14751 FulfillmentText string `json:"fulfillmentText,omitempty"`
14752
14753
14754
14755 Intent *GoogleCloudDialogflowV2Intent `json:"intent,omitempty"`
14756
14757
14758
14759
14760
14761
14762
14763
14764 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
14765
14766
14767
14768
14769 LanguageCode string `json:"languageCode,omitempty"`
14770
14771
14772
14773 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
14774
14775
14776
14777
14778
14779
14780
14781
14782
14783 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
14784
14785
14786
14787
14788
14789
14790 QueryText string `json:"queryText,omitempty"`
14791
14792
14793 SentimentAnalysisResult *GoogleCloudDialogflowV2SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
14794
14795
14796
14797
14798
14799
14800
14801 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
14802
14803
14804 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
14805
14806
14807 WebhookSource string `json:"webhookSource,omitempty"`
14808
14809
14810
14811
14812
14813 ForceSendFields []string `json:"-"`
14814
14815
14816
14817
14818 NullFields []string `json:"-"`
14819 }
14820
14821 func (s *GoogleCloudDialogflowV2QueryResult) MarshalJSON() ([]byte, error) {
14822 type NoMethod GoogleCloudDialogflowV2QueryResult
14823 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14824 }
14825
14826 func (s *GoogleCloudDialogflowV2QueryResult) UnmarshalJSON(data []byte) error {
14827 type NoMethod GoogleCloudDialogflowV2QueryResult
14828 var s1 struct {
14829 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
14830 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
14831 *NoMethod
14832 }
14833 s1.NoMethod = (*NoMethod)(s)
14834 if err := json.Unmarshal(data, &s1); err != nil {
14835 return err
14836 }
14837 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
14838 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
14839 return nil
14840 }
14841
14842
14843
14844
14845
14846 type GoogleCloudDialogflowV2Sentiment struct {
14847
14848
14849
14850 Magnitude float64 `json:"magnitude,omitempty"`
14851
14852
14853 Score float64 `json:"score,omitempty"`
14854
14855
14856
14857
14858
14859 ForceSendFields []string `json:"-"`
14860
14861
14862
14863
14864 NullFields []string `json:"-"`
14865 }
14866
14867 func (s *GoogleCloudDialogflowV2Sentiment) MarshalJSON() ([]byte, error) {
14868 type NoMethod GoogleCloudDialogflowV2Sentiment
14869 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14870 }
14871
14872 func (s *GoogleCloudDialogflowV2Sentiment) UnmarshalJSON(data []byte) error {
14873 type NoMethod GoogleCloudDialogflowV2Sentiment
14874 var s1 struct {
14875 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
14876 Score gensupport.JSONFloat64 `json:"score"`
14877 *NoMethod
14878 }
14879 s1.NoMethod = (*NoMethod)(s)
14880 if err := json.Unmarshal(data, &s1); err != nil {
14881 return err
14882 }
14883 s.Magnitude = float64(s1.Magnitude)
14884 s.Score = float64(s1.Score)
14885 return nil
14886 }
14887
14888
14889
14890
14891
14892
14893
14894
14895
14896
14897 type GoogleCloudDialogflowV2SentimentAnalysisResult struct {
14898
14899 QueryTextSentiment *GoogleCloudDialogflowV2Sentiment `json:"queryTextSentiment,omitempty"`
14900
14901
14902
14903
14904
14905 ForceSendFields []string `json:"-"`
14906
14907
14908
14909
14910 NullFields []string `json:"-"`
14911 }
14912
14913 func (s *GoogleCloudDialogflowV2SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
14914 type NoMethod GoogleCloudDialogflowV2SentimentAnalysisResult
14915 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14916 }
14917
14918
14919
14920
14921
14922
14923
14924
14925
14926 type GoogleCloudDialogflowV2SessionEntityType struct {
14927
14928
14929 Entities []*GoogleCloudDialogflowV2EntityTypeEntity `json:"entities,omitempty"`
14930
14931
14932
14933
14934
14935
14936
14937
14938
14939
14940
14941
14942
14943
14944
14945
14946 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
14947
14948
14949
14950
14951
14952
14953
14954 Name string `json:"name,omitempty"`
14955
14956
14957
14958
14959
14960 ForceSendFields []string `json:"-"`
14961
14962
14963
14964
14965 NullFields []string `json:"-"`
14966 }
14967
14968 func (s *GoogleCloudDialogflowV2SessionEntityType) MarshalJSON() ([]byte, error) {
14969 type NoMethod GoogleCloudDialogflowV2SessionEntityType
14970 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
14971 }
14972
14973
14974
14975 type GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata struct {
14976
14977
14978 ConversationProfile string `json:"conversationProfile,omitempty"`
14979
14980
14981 CreateTime string `json:"createTime,omitempty"`
14982
14983
14984
14985
14986
14987
14988
14989
14990
14991
14992 ParticipantRole string `json:"participantRole,omitempty"`
14993
14994
14995
14996
14997
14998
14999
15000
15001
15002
15003 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
15004
15005
15006
15007
15008
15009 ForceSendFields []string `json:"-"`
15010
15011
15012
15013
15014 NullFields []string `json:"-"`
15015 }
15016
15017 func (s *GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
15018 type NoMethod GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
15019 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15020 }
15021
15022
15023 type GoogleCloudDialogflowV2SmartReplyAnswer struct {
15024
15025
15026 AnswerRecord string `json:"answerRecord,omitempty"`
15027
15028
15029
15030 Confidence float64 `json:"confidence,omitempty"`
15031
15032 Reply string `json:"reply,omitempty"`
15033
15034
15035
15036
15037
15038 ForceSendFields []string `json:"-"`
15039
15040
15041
15042
15043 NullFields []string `json:"-"`
15044 }
15045
15046 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) MarshalJSON() ([]byte, error) {
15047 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
15048 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15049 }
15050
15051 func (s *GoogleCloudDialogflowV2SmartReplyAnswer) UnmarshalJSON(data []byte) error {
15052 type NoMethod GoogleCloudDialogflowV2SmartReplyAnswer
15053 var s1 struct {
15054 Confidence gensupport.JSONFloat64 `json:"confidence"`
15055 *NoMethod
15056 }
15057 s1.NoMethod = (*NoMethod)(s)
15058 if err := json.Unmarshal(data, &s1); err != nil {
15059 return err
15060 }
15061 s.Confidence = float64(s1.Confidence)
15062 return nil
15063 }
15064
15065
15066
15067 type GoogleCloudDialogflowV2SmartReplyModelMetadata struct {
15068
15069
15070
15071
15072
15073
15074
15075
15076 TrainingModelType string `json:"trainingModelType,omitempty"`
15077
15078
15079
15080
15081
15082 ForceSendFields []string `json:"-"`
15083
15084
15085
15086
15087 NullFields []string `json:"-"`
15088 }
15089
15090 func (s *GoogleCloudDialogflowV2SmartReplyModelMetadata) MarshalJSON() ([]byte, error) {
15091 type NoMethod GoogleCloudDialogflowV2SmartReplyModelMetadata
15092 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15093 }
15094
15095
15096
15097 type GoogleCloudDialogflowV2SuggestArticlesResponse struct {
15098
15099 ArticleAnswers []*GoogleCloudDialogflowV2ArticleAnswer `json:"articleAnswers,omitempty"`
15100
15101
15102
15103
15104 ContextSize int64 `json:"contextSize,omitempty"`
15105
15106
15107 LatestMessage string `json:"latestMessage,omitempty"`
15108
15109
15110
15111
15112
15113 ForceSendFields []string `json:"-"`
15114
15115
15116
15117
15118 NullFields []string `json:"-"`
15119 }
15120
15121 func (s *GoogleCloudDialogflowV2SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
15122 type NoMethod GoogleCloudDialogflowV2SuggestArticlesResponse
15123 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15124 }
15125
15126
15127
15128 type GoogleCloudDialogflowV2SuggestFaqAnswersResponse struct {
15129
15130
15131
15132
15133 ContextSize int64 `json:"contextSize,omitempty"`
15134
15135 FaqAnswers []*GoogleCloudDialogflowV2FaqAnswer `json:"faqAnswers,omitempty"`
15136
15137
15138 LatestMessage string `json:"latestMessage,omitempty"`
15139
15140
15141
15142
15143
15144 ForceSendFields []string `json:"-"`
15145
15146
15147
15148
15149 NullFields []string `json:"-"`
15150 }
15151
15152 func (s *GoogleCloudDialogflowV2SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
15153 type NoMethod GoogleCloudDialogflowV2SuggestFaqAnswersResponse
15154 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15155 }
15156
15157
15158
15159 type GoogleCloudDialogflowV2SuggestSmartRepliesResponse struct {
15160
15161
15162
15163
15164 ContextSize int64 `json:"contextSize,omitempty"`
15165
15166
15167 LatestMessage string `json:"latestMessage,omitempty"`
15168
15169
15170
15171 SmartReplyAnswers []*GoogleCloudDialogflowV2SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
15172
15173
15174
15175
15176
15177 ForceSendFields []string `json:"-"`
15178
15179
15180
15181
15182 NullFields []string `json:"-"`
15183 }
15184
15185 func (s *GoogleCloudDialogflowV2SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
15186 type NoMethod GoogleCloudDialogflowV2SuggestSmartRepliesResponse
15187 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15188 }
15189
15190
15191
15192
15193
15194 type GoogleCloudDialogflowV2SuggestionResult struct {
15195
15196 Error *GoogleRpcStatus `json:"error,omitempty"`
15197
15198
15199 SuggestArticlesResponse *GoogleCloudDialogflowV2SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
15200
15201
15202 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
15203
15204
15205 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
15206
15207
15208
15209
15210
15211 ForceSendFields []string `json:"-"`
15212
15213
15214
15215
15216 NullFields []string `json:"-"`
15217 }
15218
15219 func (s *GoogleCloudDialogflowV2SuggestionResult) MarshalJSON() ([]byte, error) {
15220 type NoMethod GoogleCloudDialogflowV2SuggestionResult
15221 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15222 }
15223
15224
15225
15226 type GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata struct {
15227
15228
15229 ConversationModel string `json:"conversationModel,omitempty"`
15230
15231
15232 CreateTime string `json:"createTime,omitempty"`
15233
15234
15235
15236
15237
15238 ForceSendFields []string `json:"-"`
15239
15240
15241
15242
15243 NullFields []string `json:"-"`
15244 }
15245
15246 func (s *GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata) MarshalJSON() ([]byte, error) {
15247 type NoMethod GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
15248 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15249 }
15250
15251
15252
15253 type GoogleCloudDialogflowV2WebhookRequest struct {
15254
15255
15256 OriginalDetectIntentRequest *GoogleCloudDialogflowV2OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
15257
15258
15259 QueryResult *GoogleCloudDialogflowV2QueryResult `json:"queryResult,omitempty"`
15260
15261
15262 ResponseId string `json:"responseId,omitempty"`
15263
15264
15265
15266
15267 Session string `json:"session,omitempty"`
15268
15269
15270
15271
15272
15273 ForceSendFields []string `json:"-"`
15274
15275
15276
15277
15278 NullFields []string `json:"-"`
15279 }
15280
15281 func (s *GoogleCloudDialogflowV2WebhookRequest) MarshalJSON() ([]byte, error) {
15282 type NoMethod GoogleCloudDialogflowV2WebhookRequest
15283 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15284 }
15285
15286
15287
15288
15289
15290
15291
15292
15293
15294 type GoogleCloudDialogflowV2WebhookResponse struct {
15295
15296
15297
15298 FollowupEventInput *GoogleCloudDialogflowV2EventInput `json:"followupEventInput,omitempty"`
15299
15300
15301
15302 FulfillmentMessages []*GoogleCloudDialogflowV2IntentMessage `json:"fulfillmentMessages,omitempty"`
15303
15304
15305
15306
15307 FulfillmentText string `json:"fulfillmentText,omitempty"`
15308
15309
15310
15311
15312 OutputContexts []*GoogleCloudDialogflowV2Context `json:"outputContexts,omitempty"`
15313
15314
15315
15316
15317
15318
15319
15320
15321
15322 Payload googleapi.RawMessage `json:"payload,omitempty"`
15323
15324
15325
15326
15327
15328 SessionEntityTypes []*GoogleCloudDialogflowV2SessionEntityType `json:"sessionEntityTypes,omitempty"`
15329
15330
15331
15332
15333 Source string `json:"source,omitempty"`
15334
15335
15336
15337
15338
15339 ForceSendFields []string `json:"-"`
15340
15341
15342
15343
15344 NullFields []string `json:"-"`
15345 }
15346
15347 func (s *GoogleCloudDialogflowV2WebhookResponse) MarshalJSON() ([]byte, error) {
15348 type NoMethod GoogleCloudDialogflowV2WebhookResponse
15349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15350 }
15351
15352
15353
15354
15355 type GoogleCloudDialogflowV2beta1AnnotatedMessagePart struct {
15356
15357
15358
15359
15360 EntityType string `json:"entityType,omitempty"`
15361
15362
15363
15364
15365 FormattedValue interface{} `json:"formattedValue,omitempty"`
15366
15367 Text string `json:"text,omitempty"`
15368
15369
15370
15371
15372
15373 ForceSendFields []string `json:"-"`
15374
15375
15376
15377
15378 NullFields []string `json:"-"`
15379 }
15380
15381 func (s *GoogleCloudDialogflowV2beta1AnnotatedMessagePart) MarshalJSON() ([]byte, error) {
15382 type NoMethod GoogleCloudDialogflowV2beta1AnnotatedMessagePart
15383 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15384 }
15385
15386
15387 type GoogleCloudDialogflowV2beta1ArticleAnswer struct {
15388
15389
15390 AnswerRecord string `json:"answerRecord,omitempty"`
15391
15392
15393 Metadata map[string]string `json:"metadata,omitempty"`
15394
15395 Snippets []string `json:"snippets,omitempty"`
15396
15397 Title string `json:"title,omitempty"`
15398
15399 Uri string `json:"uri,omitempty"`
15400
15401
15402
15403
15404
15405 ForceSendFields []string `json:"-"`
15406
15407
15408
15409
15410 NullFields []string `json:"-"`
15411 }
15412
15413 func (s *GoogleCloudDialogflowV2beta1ArticleAnswer) MarshalJSON() ([]byte, error) {
15414 type NoMethod GoogleCloudDialogflowV2beta1ArticleAnswer
15415 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15416 }
15417
15418
15419
15420 type GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse struct {
15421
15422 EntityTypes []*GoogleCloudDialogflowV2beta1EntityType `json:"entityTypes,omitempty"`
15423
15424
15425
15426
15427
15428 ForceSendFields []string `json:"-"`
15429
15430
15431
15432
15433 NullFields []string `json:"-"`
15434 }
15435
15436 func (s *GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse) MarshalJSON() ([]byte, error) {
15437 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
15438 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15439 }
15440
15441
15442
15443 type GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse struct {
15444
15445 Intents []*GoogleCloudDialogflowV2beta1Intent `json:"intents,omitempty"`
15446
15447
15448
15449
15450
15451 ForceSendFields []string `json:"-"`
15452
15453
15454
15455
15456 NullFields []string `json:"-"`
15457 }
15458
15459 func (s *GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse) MarshalJSON() ([]byte, error) {
15460 type NoMethod GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse
15461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15462 }
15463
15464
15465
15466 type GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata struct {
15467
15468
15469 ConversationProfile string `json:"conversationProfile,omitempty"`
15470
15471
15472 CreateTime string `json:"createTime,omitempty"`
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483 ParticipantRole string `json:"participantRole,omitempty"`
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
15499
15500
15501
15502
15503
15504 ForceSendFields []string `json:"-"`
15505
15506
15507
15508
15509 NullFields []string `json:"-"`
15510 }
15511
15512 func (s *GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
15513 type NoMethod GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
15514 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15515 }
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530 type GoogleCloudDialogflowV2beta1Context struct {
15531
15532
15533
15534
15535 LifespanCount int64 `json:"lifespanCount,omitempty"`
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548 Name string `json:"name,omitempty"`
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15560
15561
15562
15563
15564
15565 ForceSendFields []string `json:"-"`
15566
15567
15568
15569
15570 NullFields []string `json:"-"`
15571 }
15572
15573 func (s *GoogleCloudDialogflowV2beta1Context) MarshalJSON() ([]byte, error) {
15574 type NoMethod GoogleCloudDialogflowV2beta1Context
15575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15576 }
15577
15578
15579
15580 type GoogleCloudDialogflowV2beta1ConversationEvent struct {
15581
15582
15583 Conversation string `json:"conversation,omitempty"`
15584
15585
15586 ErrorStatus *GoogleRpcStatus `json:"errorStatus,omitempty"`
15587
15588 NewMessagePayload *GoogleCloudDialogflowV2beta1Message `json:"newMessagePayload,omitempty"`
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608
15609 Type string `json:"type,omitempty"`
15610
15611
15612
15613
15614
15615 ForceSendFields []string `json:"-"`
15616
15617
15618
15619
15620 NullFields []string `json:"-"`
15621 }
15622
15623 func (s *GoogleCloudDialogflowV2beta1ConversationEvent) MarshalJSON() ([]byte, error) {
15624 type NoMethod GoogleCloudDialogflowV2beta1ConversationEvent
15625 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15626 }
15627
15628
15629
15630 type GoogleCloudDialogflowV2beta1DialogflowAssistAnswer struct {
15631
15632
15633 AnswerRecord string `json:"answerRecord,omitempty"`
15634
15635 IntentSuggestion *GoogleCloudDialogflowV2beta1IntentSuggestion `json:"intentSuggestion,omitempty"`
15636
15637 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
15638
15639
15640
15641
15642
15643 ForceSendFields []string `json:"-"`
15644
15645
15646
15647
15648 NullFields []string `json:"-"`
15649 }
15650
15651 func (s *GoogleCloudDialogflowV2beta1DialogflowAssistAnswer) MarshalJSON() ([]byte, error) {
15652 type NoMethod GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
15653 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15654 }
15655
15656
15657
15658
15659
15660
15661
15662
15663
15664
15665
15666 type GoogleCloudDialogflowV2beta1EntityType struct {
15667
15668
15669
15670
15671
15672
15673
15674
15675 AutoExpansionMode string `json:"autoExpansionMode,omitempty"`
15676
15677 DisplayName string `json:"displayName,omitempty"`
15678
15679
15680 EnableFuzzyExtraction bool `json:"enableFuzzyExtraction,omitempty"`
15681
15682
15683 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
15684
15685
15686
15687
15688
15689
15690
15691
15692
15693
15694
15695 Kind string `json:"kind,omitempty"`
15696
15697
15698
15699
15700 Name string `json:"name,omitempty"`
15701
15702
15703
15704
15705
15706 ForceSendFields []string `json:"-"`
15707
15708
15709
15710
15711 NullFields []string `json:"-"`
15712 }
15713
15714 func (s *GoogleCloudDialogflowV2beta1EntityType) MarshalJSON() ([]byte, error) {
15715 type NoMethod GoogleCloudDialogflowV2beta1EntityType
15716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15717 }
15718
15719
15720
15721 type GoogleCloudDialogflowV2beta1EntityTypeEntity struct {
15722
15723
15724
15725
15726 Synonyms []string `json:"synonyms,omitempty"`
15727
15728
15729
15730
15731
15732 Value string `json:"value,omitempty"`
15733
15734
15735
15736
15737
15738 ForceSendFields []string `json:"-"`
15739
15740
15741
15742
15743 NullFields []string `json:"-"`
15744 }
15745
15746 func (s *GoogleCloudDialogflowV2beta1EntityTypeEntity) MarshalJSON() ([]byte, error) {
15747 type NoMethod GoogleCloudDialogflowV2beta1EntityTypeEntity
15748 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15749 }
15750
15751
15752
15753
15754
15755
15756 type GoogleCloudDialogflowV2beta1EventInput struct {
15757
15758
15759
15760
15761
15762
15763
15764 LanguageCode string `json:"languageCode,omitempty"`
15765
15766 Name string `json:"name,omitempty"`
15767
15768
15769
15770
15771
15772
15773
15774
15775
15776
15777 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
15778
15779
15780
15781
15782
15783 ForceSendFields []string `json:"-"`
15784
15785
15786
15787
15788 NullFields []string `json:"-"`
15789 }
15790
15791 func (s *GoogleCloudDialogflowV2beta1EventInput) MarshalJSON() ([]byte, error) {
15792 type NoMethod GoogleCloudDialogflowV2beta1EventInput
15793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15794 }
15795
15796
15797
15798 type GoogleCloudDialogflowV2beta1ExportAgentResponse struct {
15799
15800 AgentContent string `json:"agentContent,omitempty"`
15801
15802
15803 AgentUri string `json:"agentUri,omitempty"`
15804
15805
15806
15807
15808
15809 ForceSendFields []string `json:"-"`
15810
15811
15812
15813
15814 NullFields []string `json:"-"`
15815 }
15816
15817 func (s *GoogleCloudDialogflowV2beta1ExportAgentResponse) MarshalJSON() ([]byte, error) {
15818 type NoMethod GoogleCloudDialogflowV2beta1ExportAgentResponse
15819 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15820 }
15821
15822
15823
15824 type GoogleCloudDialogflowV2beta1ExportOperationMetadata struct {
15825
15826 ExportedGcsDestination *GoogleCloudDialogflowV2beta1GcsDestination `json:"exportedGcsDestination,omitempty"`
15827
15828
15829
15830
15831
15832 ForceSendFields []string `json:"-"`
15833
15834
15835
15836
15837 NullFields []string `json:"-"`
15838 }
15839
15840 func (s *GoogleCloudDialogflowV2beta1ExportOperationMetadata) MarshalJSON() ([]byte, error) {
15841 type NoMethod GoogleCloudDialogflowV2beta1ExportOperationMetadata
15842 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15843 }
15844
15845
15846
15847 type GoogleCloudDialogflowV2beta1FaqAnswer struct {
15848
15849 Answer string `json:"answer,omitempty"`
15850
15851
15852 AnswerRecord string `json:"answerRecord,omitempty"`
15853
15854
15855
15856 Confidence float64 `json:"confidence,omitempty"`
15857
15858
15859 Metadata map[string]string `json:"metadata,omitempty"`
15860
15861 Question string `json:"question,omitempty"`
15862
15863
15864 Source string `json:"source,omitempty"`
15865
15866
15867
15868
15869
15870 ForceSendFields []string `json:"-"`
15871
15872
15873
15874
15875 NullFields []string `json:"-"`
15876 }
15877
15878 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) MarshalJSON() ([]byte, error) {
15879 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
15880 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15881 }
15882
15883 func (s *GoogleCloudDialogflowV2beta1FaqAnswer) UnmarshalJSON(data []byte) error {
15884 type NoMethod GoogleCloudDialogflowV2beta1FaqAnswer
15885 var s1 struct {
15886 Confidence gensupport.JSONFloat64 `json:"confidence"`
15887 *NoMethod
15888 }
15889 s1.NoMethod = (*NoMethod)(s)
15890 if err := json.Unmarshal(data, &s1); err != nil {
15891 return err
15892 }
15893 s.Confidence = float64(s1.Confidence)
15894 return nil
15895 }
15896
15897
15898
15899 type GoogleCloudDialogflowV2beta1GcsDestination struct {
15900
15901
15902
15903
15904 Uri string `json:"uri,omitempty"`
15905
15906
15907
15908
15909
15910 ForceSendFields []string `json:"-"`
15911
15912
15913
15914
15915 NullFields []string `json:"-"`
15916 }
15917
15918 func (s *GoogleCloudDialogflowV2beta1GcsDestination) MarshalJSON() ([]byte, error) {
15919 type NoMethod GoogleCloudDialogflowV2beta1GcsDestination
15920 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15921 }
15922
15923
15924
15925
15926 type GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent struct {
15927
15928
15929 Conversation string `json:"conversation,omitempty"`
15930
15931
15932
15933
15934 Participant string `json:"participant,omitempty"`
15935
15936
15937
15938
15939 SuggestionResults []*GoogleCloudDialogflowV2beta1SuggestionResult `json:"suggestionResults,omitempty"`
15940
15941
15942
15943
15944
15945 ForceSendFields []string `json:"-"`
15946
15947
15948
15949
15950 NullFields []string `json:"-"`
15951 }
15952
15953 func (s *GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent) MarshalJSON() ([]byte, error) {
15954 type NoMethod GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
15955 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15956 }
15957
15958
15959
15960 type GoogleCloudDialogflowV2beta1ImportDocumentsResponse struct {
15961
15962 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
15963
15964
15965
15966
15967
15968 ForceSendFields []string `json:"-"`
15969
15970
15971
15972
15973 NullFields []string `json:"-"`
15974 }
15975
15976 func (s *GoogleCloudDialogflowV2beta1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
15977 type NoMethod GoogleCloudDialogflowV2beta1ImportDocumentsResponse
15978 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
15979 }
15980
15981
15982
15983
15984
15985
15986
15987
15988
15989 type GoogleCloudDialogflowV2beta1Intent struct {
15990
15991
15992 Action string `json:"action,omitempty"`
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011 DefaultResponsePlatforms []string `json:"defaultResponsePlatforms,omitempty"`
16012
16013 DisplayName string `json:"displayName,omitempty"`
16014
16015
16016
16017 EndInteraction bool `json:"endInteraction,omitempty"`
16018
16019
16020
16021
16022 Events []string `json:"events,omitempty"`
16023
16024
16025
16026 FollowupIntentInfo []*GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo `json:"followupIntentInfo,omitempty"`
16027
16028
16029
16030 InputContextNames []string `json:"inputContextNames,omitempty"`
16031
16032 IsFallback bool `json:"isFallback,omitempty"`
16033
16034
16035
16036
16037 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
16038
16039
16040 Messages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"messages,omitempty"`
16041
16042
16043
16044
16045 MlDisabled bool `json:"mlDisabled,omitempty"`
16046
16047
16048
16049
16050
16051
16052
16053
16054
16055 MlEnabled bool `json:"mlEnabled,omitempty"`
16056
16057
16058
16059
16060 Name string `json:"name,omitempty"`
16061
16062
16063
16064
16065
16066 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
16067
16068
16069 Parameters []*GoogleCloudDialogflowV2beta1IntentParameter `json:"parameters,omitempty"`
16070
16071
16072
16073
16074
16075 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
16076
16077
16078
16079
16080
16081 Priority int64 `json:"priority,omitempty"`
16082
16083
16084 ResetContexts bool `json:"resetContexts,omitempty"`
16085
16086
16087
16088 RootFollowupIntentName string `json:"rootFollowupIntentName,omitempty"`
16089
16090
16091 TrainingPhrases []*GoogleCloudDialogflowV2beta1IntentTrainingPhrase `json:"trainingPhrases,omitempty"`
16092
16093
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103 WebhookState string `json:"webhookState,omitempty"`
16104
16105
16106
16107
16108
16109 ForceSendFields []string `json:"-"`
16110
16111
16112
16113
16114 NullFields []string `json:"-"`
16115 }
16116
16117 func (s *GoogleCloudDialogflowV2beta1Intent) MarshalJSON() ([]byte, error) {
16118 type NoMethod GoogleCloudDialogflowV2beta1Intent
16119 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16120 }
16121
16122
16123
16124 type GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo struct {
16125
16126
16127 FollowupIntentName string `json:"followupIntentName,omitempty"`
16128
16129
16130 ParentFollowupIntentName string `json:"parentFollowupIntentName,omitempty"`
16131
16132
16133
16134
16135
16136 ForceSendFields []string `json:"-"`
16137
16138
16139
16140
16141 NullFields []string `json:"-"`
16142 }
16143
16144 func (s *GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo) MarshalJSON() ([]byte, error) {
16145 type NoMethod GoogleCloudDialogflowV2beta1IntentFollowupIntentInfo
16146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16147 }
16148
16149
16150
16151 type GoogleCloudDialogflowV2beta1IntentMessage struct {
16152
16153 BasicCard *GoogleCloudDialogflowV2beta1IntentMessageBasicCard `json:"basicCard,omitempty"`
16154
16155 BrowseCarouselCard *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard `json:"browseCarouselCard,omitempty"`
16156
16157 Card *GoogleCloudDialogflowV2beta1IntentMessageCard `json:"card,omitempty"`
16158
16159 CarouselSelect *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect `json:"carouselSelect,omitempty"`
16160
16161 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16162
16163
16164 LinkOutSuggestion *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion `json:"linkOutSuggestion,omitempty"`
16165
16166 ListSelect *GoogleCloudDialogflowV2beta1IntentMessageListSelect `json:"listSelect,omitempty"`
16167
16168 MediaContent *GoogleCloudDialogflowV2beta1IntentMessageMediaContent `json:"mediaContent,omitempty"`
16169
16170 Payload googleapi.RawMessage `json:"payload,omitempty"`
16171
16172
16173
16174
16175
16176
16177
16178
16179
16180
16181
16182
16183
16184
16185
16186
16187 Platform string `json:"platform,omitempty"`
16188
16189 QuickReplies *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies `json:"quickReplies,omitempty"`
16190
16191
16192 RbmCarouselRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard `json:"rbmCarouselRichCard,omitempty"`
16193
16194
16195 RbmStandaloneRichCard *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard `json:"rbmStandaloneRichCard,omitempty"`
16196
16197
16198
16199 RbmText *GoogleCloudDialogflowV2beta1IntentMessageRbmText `json:"rbmText,omitempty"`
16200
16201
16202 SimpleResponses *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses `json:"simpleResponses,omitempty"`
16203
16204 Suggestions *GoogleCloudDialogflowV2beta1IntentMessageSuggestions `json:"suggestions,omitempty"`
16205
16206 TableCard *GoogleCloudDialogflowV2beta1IntentMessageTableCard `json:"tableCard,omitempty"`
16207
16208 TelephonyPlayAudio *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio `json:"telephonyPlayAudio,omitempty"`
16209
16210 TelephonySynthesizeSpeech *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech `json:"telephonySynthesizeSpeech,omitempty"`
16211
16212 TelephonyTransferCall *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall `json:"telephonyTransferCall,omitempty"`
16213
16214 Text *GoogleCloudDialogflowV2beta1IntentMessageText `json:"text,omitempty"`
16215
16216
16217
16218
16219
16220 ForceSendFields []string `json:"-"`
16221
16222
16223
16224
16225 NullFields []string `json:"-"`
16226 }
16227
16228 func (s *GoogleCloudDialogflowV2beta1IntentMessage) MarshalJSON() ([]byte, error) {
16229 type NoMethod GoogleCloudDialogflowV2beta1IntentMessage
16230 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16231 }
16232
16233
16234
16235 type GoogleCloudDialogflowV2beta1IntentMessageBasicCard struct {
16236
16237 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
16238
16239 FormattedText string `json:"formattedText,omitempty"`
16240
16241 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16242
16243 Subtitle string `json:"subtitle,omitempty"`
16244
16245 Title string `json:"title,omitempty"`
16246
16247
16248
16249
16250
16251 ForceSendFields []string `json:"-"`
16252
16253
16254
16255
16256 NullFields []string `json:"-"`
16257 }
16258
16259 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCard) MarshalJSON() ([]byte, error) {
16260 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCard
16261 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16262 }
16263
16264
16265
16266 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton struct {
16267
16268 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction `json:"openUriAction,omitempty"`
16269
16270 Title string `json:"title,omitempty"`
16271
16272
16273
16274
16275
16276 ForceSendFields []string `json:"-"`
16277
16278
16279
16280
16281 NullFields []string `json:"-"`
16282 }
16283
16284 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton) MarshalJSON() ([]byte, error) {
16285 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton
16286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16287 }
16288
16289
16290
16291 type GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction struct {
16292
16293 Uri string `json:"uri,omitempty"`
16294
16295
16296
16297
16298
16299 ForceSendFields []string `json:"-"`
16300
16301
16302
16303
16304 NullFields []string `json:"-"`
16305 }
16306
16307 func (s *GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction) MarshalJSON() ([]byte, error) {
16308 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBasicCardButtonOpenUriAction
16309 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16310 }
16311
16312
16313
16314
16315 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard struct {
16316
16317
16318
16319
16320
16321
16322
16323
16324
16325
16326
16327
16328
16329
16330
16331
16332
16333
16334 ImageDisplayOptions string `json:"imageDisplayOptions,omitempty"`
16335
16336
16337 Items []*GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem `json:"items,omitempty"`
16338
16339
16340
16341
16342
16343 ForceSendFields []string `json:"-"`
16344
16345
16346
16347
16348 NullFields []string `json:"-"`
16349 }
16350
16351 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard) MarshalJSON() ([]byte, error) {
16352 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCard
16353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16354 }
16355
16356
16357
16358 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem struct {
16359
16360
16361 Description string `json:"description,omitempty"`
16362
16363
16364 Footer string `json:"footer,omitempty"`
16365
16366 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16367
16368 OpenUriAction *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction `json:"openUriAction,omitempty"`
16369
16370 Title string `json:"title,omitempty"`
16371
16372
16373
16374
16375
16376 ForceSendFields []string `json:"-"`
16377
16378
16379
16380
16381 NullFields []string `json:"-"`
16382 }
16383
16384 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem) MarshalJSON() ([]byte, error) {
16385 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItem
16386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16387 }
16388
16389
16390
16391 type GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction struct {
16392
16393 Url string `json:"url,omitempty"`
16394
16395
16396
16397
16398
16399
16400
16401
16402 UrlTypeHint string `json:"urlTypeHint,omitempty"`
16403
16404
16405
16406
16407
16408 ForceSendFields []string `json:"-"`
16409
16410
16411
16412
16413 NullFields []string `json:"-"`
16414 }
16415
16416 func (s *GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction) MarshalJSON() ([]byte, error) {
16417 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageBrowseCarouselCardBrowseCarouselCardItemOpenUrlAction
16418 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16419 }
16420
16421
16422 type GoogleCloudDialogflowV2beta1IntentMessageCard struct {
16423
16424 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageCardButton `json:"buttons,omitempty"`
16425
16426 ImageUri string `json:"imageUri,omitempty"`
16427
16428 Subtitle string `json:"subtitle,omitempty"`
16429
16430 Title string `json:"title,omitempty"`
16431
16432
16433
16434
16435
16436 ForceSendFields []string `json:"-"`
16437
16438
16439
16440
16441 NullFields []string `json:"-"`
16442 }
16443
16444 func (s *GoogleCloudDialogflowV2beta1IntentMessageCard) MarshalJSON() ([]byte, error) {
16445 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCard
16446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16447 }
16448
16449
16450
16451 type GoogleCloudDialogflowV2beta1IntentMessageCardButton struct {
16452
16453
16454 Postback string `json:"postback,omitempty"`
16455
16456 Text string `json:"text,omitempty"`
16457
16458
16459
16460
16461
16462 ForceSendFields []string `json:"-"`
16463
16464
16465
16466
16467 NullFields []string `json:"-"`
16468 }
16469
16470 func (s *GoogleCloudDialogflowV2beta1IntentMessageCardButton) MarshalJSON() ([]byte, error) {
16471 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCardButton
16472 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16473 }
16474
16475
16476
16477 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect struct {
16478
16479 Items []*GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem `json:"items,omitempty"`
16480
16481
16482
16483
16484
16485 ForceSendFields []string `json:"-"`
16486
16487
16488
16489
16490 NullFields []string `json:"-"`
16491 }
16492
16493 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect) MarshalJSON() ([]byte, error) {
16494 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelect
16495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16496 }
16497
16498
16499
16500 type GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem struct {
16501
16502 Description string `json:"description,omitempty"`
16503
16504 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16505
16506 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
16507
16508 Title string `json:"title,omitempty"`
16509
16510
16511
16512
16513
16514 ForceSendFields []string `json:"-"`
16515
16516
16517
16518
16519 NullFields []string `json:"-"`
16520 }
16521
16522 func (s *GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem) MarshalJSON() ([]byte, error) {
16523 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageCarouselSelectItem
16524 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16525 }
16526
16527
16528
16529 type GoogleCloudDialogflowV2beta1IntentMessageColumnProperties struct {
16530
16531 Header string `json:"header,omitempty"`
16532
16533
16534
16535
16536
16537
16538
16539
16540
16541 HorizontalAlignment string `json:"horizontalAlignment,omitempty"`
16542
16543
16544
16545
16546
16547 ForceSendFields []string `json:"-"`
16548
16549
16550
16551
16552 NullFields []string `json:"-"`
16553 }
16554
16555 func (s *GoogleCloudDialogflowV2beta1IntentMessageColumnProperties) MarshalJSON() ([]byte, error) {
16556 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageColumnProperties
16557 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16558 }
16559
16560
16561 type GoogleCloudDialogflowV2beta1IntentMessageImage struct {
16562
16563
16564
16565 AccessibilityText string `json:"accessibilityText,omitempty"`
16566
16567 ImageUri string `json:"imageUri,omitempty"`
16568
16569
16570
16571
16572
16573 ForceSendFields []string `json:"-"`
16574
16575
16576
16577
16578 NullFields []string `json:"-"`
16579 }
16580
16581 func (s *GoogleCloudDialogflowV2beta1IntentMessageImage) MarshalJSON() ([]byte, error) {
16582 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageImage
16583 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16584 }
16585
16586
16587
16588
16589 type GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion struct {
16590
16591
16592 DestinationName string `json:"destinationName,omitempty"`
16593
16594
16595 Uri string `json:"uri,omitempty"`
16596
16597
16598
16599
16600
16601 ForceSendFields []string `json:"-"`
16602
16603
16604
16605
16606 NullFields []string `json:"-"`
16607 }
16608
16609 func (s *GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion) MarshalJSON() ([]byte, error) {
16610 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageLinkOutSuggestion
16611 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16612 }
16613
16614
16615
16616 type GoogleCloudDialogflowV2beta1IntentMessageListSelect struct {
16617
16618 Items []*GoogleCloudDialogflowV2beta1IntentMessageListSelectItem `json:"items,omitempty"`
16619
16620 Subtitle string `json:"subtitle,omitempty"`
16621
16622 Title string `json:"title,omitempty"`
16623
16624
16625
16626
16627
16628 ForceSendFields []string `json:"-"`
16629
16630
16631
16632
16633 NullFields []string `json:"-"`
16634 }
16635
16636 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelect) MarshalJSON() ([]byte, error) {
16637 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelect
16638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16639 }
16640
16641
16642
16643 type GoogleCloudDialogflowV2beta1IntentMessageListSelectItem struct {
16644
16645 Description string `json:"description,omitempty"`
16646
16647 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
16648
16649 Info *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo `json:"info,omitempty"`
16650
16651 Title string `json:"title,omitempty"`
16652
16653
16654
16655
16656
16657 ForceSendFields []string `json:"-"`
16658
16659
16660
16661
16662 NullFields []string `json:"-"`
16663 }
16664
16665 func (s *GoogleCloudDialogflowV2beta1IntentMessageListSelectItem) MarshalJSON() ([]byte, error) {
16666 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageListSelectItem
16667 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16668 }
16669
16670
16671
16672 type GoogleCloudDialogflowV2beta1IntentMessageMediaContent struct {
16673
16674 MediaObjects []*GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject `json:"mediaObjects,omitempty"`
16675
16676
16677
16678
16679
16680 MediaType string `json:"mediaType,omitempty"`
16681
16682
16683
16684
16685
16686 ForceSendFields []string `json:"-"`
16687
16688
16689
16690
16691 NullFields []string `json:"-"`
16692 }
16693
16694 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContent) MarshalJSON() ([]byte, error) {
16695 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContent
16696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16697 }
16698
16699
16700
16701 type GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject struct {
16702
16703 ContentUrl string `json:"contentUrl,omitempty"`
16704
16705 Description string `json:"description,omitempty"`
16706
16707 Icon *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"icon,omitempty"`
16708
16709 LargeImage *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"largeImage,omitempty"`
16710
16711 Name string `json:"name,omitempty"`
16712
16713
16714
16715
16716
16717 ForceSendFields []string `json:"-"`
16718
16719
16720
16721
16722 NullFields []string `json:"-"`
16723 }
16724
16725 func (s *GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject) MarshalJSON() ([]byte, error) {
16726 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageMediaContentResponseMediaObject
16727 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16728 }
16729
16730
16731
16732 type GoogleCloudDialogflowV2beta1IntentMessageQuickReplies struct {
16733
16734 QuickReplies []string `json:"quickReplies,omitempty"`
16735
16736 Title string `json:"title,omitempty"`
16737
16738
16739
16740
16741
16742 ForceSendFields []string `json:"-"`
16743
16744
16745
16746
16747 NullFields []string `json:"-"`
16748 }
16749
16750 func (s *GoogleCloudDialogflowV2beta1IntentMessageQuickReplies) MarshalJSON() ([]byte, error) {
16751 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageQuickReplies
16752 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16753 }
16754
16755
16756
16757 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent struct {
16758
16759
16760 Description string `json:"description,omitempty"`
16761
16762
16763 Media *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia `json:"media,omitempty"`
16764
16765 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"suggestions,omitempty"`
16766
16767
16768 Title string `json:"title,omitempty"`
16769
16770
16771
16772
16773
16774 ForceSendFields []string `json:"-"`
16775
16776
16777
16778
16779 NullFields []string `json:"-"`
16780 }
16781
16782 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent) MarshalJSON() ([]byte, error) {
16783 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent
16784 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16785 }
16786
16787
16788
16789
16790
16791
16792 type GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia struct {
16793
16794
16795
16796
16797 FileUri string `json:"fileUri,omitempty"`
16798
16799
16800
16801
16802
16803
16804
16805
16806
16807
16808 Height string `json:"height,omitempty"`
16809
16810
16811
16812
16813
16814 ThumbnailUri string `json:"thumbnailUri,omitempty"`
16815
16816
16817
16818
16819
16820 ForceSendFields []string `json:"-"`
16821
16822
16823
16824
16825 NullFields []string `json:"-"`
16826 }
16827
16828 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia) MarshalJSON() ([]byte, error) {
16829 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCardContentRbmMedia
16830 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16831 }
16832
16833
16834
16835
16836
16837
16838 type GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard struct {
16839
16840
16841 CardContents []*GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContents,omitempty"`
16842
16843
16844
16845
16846
16847
16848 CardWidth string `json:"cardWidth,omitempty"`
16849
16850
16851
16852
16853
16854 ForceSendFields []string `json:"-"`
16855
16856
16857
16858
16859 NullFields []string `json:"-"`
16860 }
16861
16862 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard) MarshalJSON() ([]byte, error) {
16863 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmCarouselCard
16864 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16865 }
16866
16867
16868
16869
16870
16871
16872 type GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard struct {
16873
16874 CardContent *GoogleCloudDialogflowV2beta1IntentMessageRbmCardContent `json:"cardContent,omitempty"`
16875
16876
16877
16878
16879
16880
16881 CardOrientation string `json:"cardOrientation,omitempty"`
16882
16883
16884
16885
16886
16887
16888
16889 ThumbnailImageAlignment string `json:"thumbnailImageAlignment,omitempty"`
16890
16891
16892
16893
16894
16895 ForceSendFields []string `json:"-"`
16896
16897
16898
16899
16900 NullFields []string `json:"-"`
16901 }
16902
16903 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard) MarshalJSON() ([]byte, error) {
16904 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmStandaloneCard
16905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16906 }
16907
16908
16909
16910
16911 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction struct {
16912
16913 Dial *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial `json:"dial,omitempty"`
16914
16915 OpenUrl *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri `json:"openUrl,omitempty"`
16916
16917
16918
16919 PostbackData string `json:"postbackData,omitempty"`
16920
16921 ShareLocation *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation `json:"shareLocation,omitempty"`
16922
16923 Text string `json:"text,omitempty"`
16924
16925
16926
16927
16928
16929 ForceSendFields []string `json:"-"`
16930
16931
16932
16933
16934 NullFields []string `json:"-"`
16935 }
16936
16937 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction) MarshalJSON() ([]byte, error) {
16938 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction
16939 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16940 }
16941
16942
16943
16944
16945 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial struct {
16946
16947
16948
16949 PhoneNumber string `json:"phoneNumber,omitempty"`
16950
16951
16952
16953
16954
16955 ForceSendFields []string `json:"-"`
16956
16957
16958
16959
16960 NullFields []string `json:"-"`
16961 }
16962
16963 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial) MarshalJSON() ([]byte, error) {
16964 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionDial
16965 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16966 }
16967
16968
16969
16970
16971
16972
16973 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri struct {
16974
16975 Uri string `json:"uri,omitempty"`
16976
16977
16978
16979
16980
16981 ForceSendFields []string `json:"-"`
16982
16983
16984
16985
16986 NullFields []string `json:"-"`
16987 }
16988
16989 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri) MarshalJSON() ([]byte, error) {
16990 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionOpenUri
16991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
16992 }
16993
16994
16995
16996
16997 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedActionRbmSuggestedActionShareLocation struct {
16998 }
16999
17000
17001
17002
17003 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply struct {
17004
17005
17006
17007 PostbackData string `json:"postbackData,omitempty"`
17008
17009 Text string `json:"text,omitempty"`
17010
17011
17012
17013
17014
17015 ForceSendFields []string `json:"-"`
17016
17017
17018
17019
17020 NullFields []string `json:"-"`
17021 }
17022
17023 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply) MarshalJSON() ([]byte, error) {
17024 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply
17025 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17026 }
17027
17028
17029
17030
17031 type GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion struct {
17032
17033 Action *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedAction `json:"action,omitempty"`
17034
17035 Reply *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestedReply `json:"reply,omitempty"`
17036
17037
17038
17039
17040
17041 ForceSendFields []string `json:"-"`
17042
17043
17044
17045
17046 NullFields []string `json:"-"`
17047 }
17048
17049 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion) MarshalJSON() ([]byte, error) {
17050 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion
17051 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17052 }
17053
17054
17055
17056 type GoogleCloudDialogflowV2beta1IntentMessageRbmText struct {
17057
17058 RbmSuggestion []*GoogleCloudDialogflowV2beta1IntentMessageRbmSuggestion `json:"rbmSuggestion,omitempty"`
17059
17060 Text string `json:"text,omitempty"`
17061
17062
17063
17064
17065
17066 ForceSendFields []string `json:"-"`
17067
17068
17069
17070
17071 NullFields []string `json:"-"`
17072 }
17073
17074 func (s *GoogleCloudDialogflowV2beta1IntentMessageRbmText) MarshalJSON() ([]byte, error) {
17075 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageRbmText
17076 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17077 }
17078
17079
17080
17081 type GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo struct {
17082
17083
17084 Key string `json:"key,omitempty"`
17085
17086
17087 Synonyms []string `json:"synonyms,omitempty"`
17088
17089
17090
17091
17092
17093 ForceSendFields []string `json:"-"`
17094
17095
17096
17097
17098 NullFields []string `json:"-"`
17099 }
17100
17101 func (s *GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo) MarshalJSON() ([]byte, error) {
17102 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSelectItemInfo
17103 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17104 }
17105
17106
17107
17108 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse struct {
17109
17110 DisplayText string `json:"displayText,omitempty"`
17111
17112
17113
17114 Ssml string `json:"ssml,omitempty"`
17115
17116
17117 TextToSpeech string `json:"textToSpeech,omitempty"`
17118
17119
17120
17121
17122
17123 ForceSendFields []string `json:"-"`
17124
17125
17126
17127
17128 NullFields []string `json:"-"`
17129 }
17130
17131 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse) MarshalJSON() ([]byte, error) {
17132 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse
17133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17134 }
17135
17136
17137
17138
17139
17140
17141 type GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses struct {
17142
17143 SimpleResponses []*GoogleCloudDialogflowV2beta1IntentMessageSimpleResponse `json:"simpleResponses,omitempty"`
17144
17145
17146
17147
17148
17149 ForceSendFields []string `json:"-"`
17150
17151
17152
17153
17154 NullFields []string `json:"-"`
17155 }
17156
17157 func (s *GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses) MarshalJSON() ([]byte, error) {
17158 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSimpleResponses
17159 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17160 }
17161
17162
17163
17164 type GoogleCloudDialogflowV2beta1IntentMessageSuggestion struct {
17165
17166 Title string `json:"title,omitempty"`
17167
17168
17169
17170
17171
17172 ForceSendFields []string `json:"-"`
17173
17174
17175
17176
17177 NullFields []string `json:"-"`
17178 }
17179
17180 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestion) MarshalJSON() ([]byte, error) {
17181 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestion
17182 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17183 }
17184
17185
17186
17187 type GoogleCloudDialogflowV2beta1IntentMessageSuggestions struct {
17188
17189 Suggestions []*GoogleCloudDialogflowV2beta1IntentMessageSuggestion `json:"suggestions,omitempty"`
17190
17191
17192
17193
17194
17195 ForceSendFields []string `json:"-"`
17196
17197
17198
17199
17200 NullFields []string `json:"-"`
17201 }
17202
17203 func (s *GoogleCloudDialogflowV2beta1IntentMessageSuggestions) MarshalJSON() ([]byte, error) {
17204 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageSuggestions
17205 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17206 }
17207
17208
17209
17210 type GoogleCloudDialogflowV2beta1IntentMessageTableCard struct {
17211
17212 Buttons []*GoogleCloudDialogflowV2beta1IntentMessageBasicCardButton `json:"buttons,omitempty"`
17213
17214
17215 ColumnProperties []*GoogleCloudDialogflowV2beta1IntentMessageColumnProperties `json:"columnProperties,omitempty"`
17216
17217 Image *GoogleCloudDialogflowV2beta1IntentMessageImage `json:"image,omitempty"`
17218
17219 Rows []*GoogleCloudDialogflowV2beta1IntentMessageTableCardRow `json:"rows,omitempty"`
17220
17221 Subtitle string `json:"subtitle,omitempty"`
17222
17223 Title string `json:"title,omitempty"`
17224
17225
17226
17227
17228
17229 ForceSendFields []string `json:"-"`
17230
17231
17232
17233
17234 NullFields []string `json:"-"`
17235 }
17236
17237 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCard) MarshalJSON() ([]byte, error) {
17238 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCard
17239 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17240 }
17241
17242
17243
17244 type GoogleCloudDialogflowV2beta1IntentMessageTableCardCell struct {
17245
17246 Text string `json:"text,omitempty"`
17247
17248
17249
17250
17251
17252 ForceSendFields []string `json:"-"`
17253
17254
17255
17256
17257 NullFields []string `json:"-"`
17258 }
17259
17260 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardCell) MarshalJSON() ([]byte, error) {
17261 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardCell
17262 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17263 }
17264
17265
17266 type GoogleCloudDialogflowV2beta1IntentMessageTableCardRow struct {
17267
17268 Cells []*GoogleCloudDialogflowV2beta1IntentMessageTableCardCell `json:"cells,omitempty"`
17269
17270 DividerAfter bool `json:"dividerAfter,omitempty"`
17271
17272
17273
17274
17275
17276 ForceSendFields []string `json:"-"`
17277
17278
17279
17280
17281 NullFields []string `json:"-"`
17282 }
17283
17284 func (s *GoogleCloudDialogflowV2beta1IntentMessageTableCardRow) MarshalJSON() ([]byte, error) {
17285 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTableCardRow
17286 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17287 }
17288
17289
17290
17291 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio struct {
17292
17293
17294
17295
17296
17297
17298
17299
17300
17301 AudioUri string `json:"audioUri,omitempty"`
17302
17303
17304
17305
17306
17307 ForceSendFields []string `json:"-"`
17308
17309
17310
17311
17312 NullFields []string `json:"-"`
17313 }
17314
17315 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio) MarshalJSON() ([]byte, error) {
17316 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyPlayAudio
17317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17318 }
17319
17320
17321
17322
17323
17324
17325 type GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech struct {
17326
17327
17328 Ssml string `json:"ssml,omitempty"`
17329
17330 Text string `json:"text,omitempty"`
17331
17332
17333
17334
17335
17336 ForceSendFields []string `json:"-"`
17337
17338
17339
17340
17341 NullFields []string `json:"-"`
17342 }
17343
17344 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech) MarshalJSON() ([]byte, error) {
17345 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonySynthesizeSpeech
17346 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17347 }
17348
17349
17350
17351 type GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall struct {
17352
17353
17354
17355 PhoneNumber string `json:"phoneNumber,omitempty"`
17356
17357
17358
17359
17360
17361 ForceSendFields []string `json:"-"`
17362
17363
17364
17365
17366 NullFields []string `json:"-"`
17367 }
17368
17369 func (s *GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall) MarshalJSON() ([]byte, error) {
17370 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageTelephonyTransferCall
17371 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17372 }
17373
17374
17375 type GoogleCloudDialogflowV2beta1IntentMessageText struct {
17376
17377 Text []string `json:"text,omitempty"`
17378
17379
17380
17381
17382
17383 ForceSendFields []string `json:"-"`
17384
17385
17386
17387
17388 NullFields []string `json:"-"`
17389 }
17390
17391 func (s *GoogleCloudDialogflowV2beta1IntentMessageText) MarshalJSON() ([]byte, error) {
17392 type NoMethod GoogleCloudDialogflowV2beta1IntentMessageText
17393 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17394 }
17395
17396
17397 type GoogleCloudDialogflowV2beta1IntentParameter struct {
17398
17399
17400
17401 DefaultValue string `json:"defaultValue,omitempty"`
17402
17403 DisplayName string `json:"displayName,omitempty"`
17404
17405
17406
17407 EntityTypeDisplayName string `json:"entityTypeDisplayName,omitempty"`
17408
17409
17410 IsList bool `json:"isList,omitempty"`
17411
17412
17413
17414 Mandatory bool `json:"mandatory,omitempty"`
17415
17416 Name string `json:"name,omitempty"`
17417
17418
17419 Prompts []string `json:"prompts,omitempty"`
17420
17421
17422
17423
17424 Value string `json:"value,omitempty"`
17425
17426
17427
17428
17429
17430 ForceSendFields []string `json:"-"`
17431
17432
17433
17434
17435 NullFields []string `json:"-"`
17436 }
17437
17438 func (s *GoogleCloudDialogflowV2beta1IntentParameter) MarshalJSON() ([]byte, error) {
17439 type NoMethod GoogleCloudDialogflowV2beta1IntentParameter
17440 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17441 }
17442
17443
17444
17445 type GoogleCloudDialogflowV2beta1IntentSuggestion struct {
17446
17447
17448
17449 Description string `json:"description,omitempty"`
17450
17451 DisplayName string `json:"displayName,omitempty"`
17452
17453
17454 IntentV2 string `json:"intentV2,omitempty"`
17455
17456
17457
17458
17459
17460 ForceSendFields []string `json:"-"`
17461
17462
17463
17464
17465 NullFields []string `json:"-"`
17466 }
17467
17468 func (s *GoogleCloudDialogflowV2beta1IntentSuggestion) MarshalJSON() ([]byte, error) {
17469 type NoMethod GoogleCloudDialogflowV2beta1IntentSuggestion
17470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17471 }
17472
17473
17474
17475 type GoogleCloudDialogflowV2beta1IntentTrainingPhrase struct {
17476
17477 Name string `json:"name,omitempty"`
17478
17479
17480
17481
17482
17483
17484
17485
17486
17487
17488
17489
17490 Parts []*GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart `json:"parts,omitempty"`
17491
17492
17493
17494 TimesAddedCount int64 `json:"timesAddedCount,omitempty"`
17495
17496
17497
17498
17499
17500
17501
17502
17503
17504
17505
17506
17507 Type string `json:"type,omitempty"`
17508
17509
17510
17511
17512
17513 ForceSendFields []string `json:"-"`
17514
17515
17516
17517
17518 NullFields []string `json:"-"`
17519 }
17520
17521 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrase) MarshalJSON() ([]byte, error) {
17522 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrase
17523 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17524 }
17525
17526
17527
17528 type GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart struct {
17529
17530
17531
17532 Alias string `json:"alias,omitempty"`
17533
17534
17535 EntityType string `json:"entityType,omitempty"`
17536
17537 Text string `json:"text,omitempty"`
17538
17539
17540
17541
17542 UserDefined bool `json:"userDefined,omitempty"`
17543
17544
17545
17546
17547
17548 ForceSendFields []string `json:"-"`
17549
17550
17551
17552
17553 NullFields []string `json:"-"`
17554 }
17555
17556 func (s *GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart) MarshalJSON() ([]byte, error) {
17557 type NoMethod GoogleCloudDialogflowV2beta1IntentTrainingPhrasePart
17558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17559 }
17560
17561
17562
17563 type GoogleCloudDialogflowV2beta1KnowledgeAnswers struct {
17564
17565 Answers []*GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer `json:"answers,omitempty"`
17566
17567
17568
17569
17570
17571 ForceSendFields []string `json:"-"`
17572
17573
17574
17575
17576 NullFields []string `json:"-"`
17577 }
17578
17579 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswers) MarshalJSON() ([]byte, error) {
17580 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswers
17581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17582 }
17583
17584
17585
17586 type GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer struct {
17587
17588
17589 Answer string `json:"answer,omitempty"`
17590
17591
17592 FaqQuestion string `json:"faqQuestion,omitempty"`
17593
17594
17595
17596
17597
17598
17599
17600 MatchConfidence float64 `json:"matchConfidence,omitempty"`
17601
17602
17603
17604
17605
17606
17607
17608
17609
17610
17611
17612
17613 MatchConfidenceLevel string `json:"matchConfidenceLevel,omitempty"`
17614
17615
17616 Source string `json:"source,omitempty"`
17617
17618
17619
17620
17621
17622 ForceSendFields []string `json:"-"`
17623
17624
17625
17626
17627 NullFields []string `json:"-"`
17628 }
17629
17630 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) MarshalJSON() ([]byte, error) {
17631 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
17632 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17633 }
17634
17635 func (s *GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer) UnmarshalJSON(data []byte) error {
17636 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer
17637 var s1 struct {
17638 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
17639 *NoMethod
17640 }
17641 s1.NoMethod = (*NoMethod)(s)
17642 if err := json.Unmarshal(data, &s1); err != nil {
17643 return err
17644 }
17645 s.MatchConfidence = float64(s1.MatchConfidence)
17646 return nil
17647 }
17648
17649
17650
17651 type GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata struct {
17652
17653
17654 ExportOperationMetadata *GoogleCloudDialogflowV2beta1ExportOperationMetadata `json:"exportOperationMetadata,omitempty"`
17655
17656
17657 KnowledgeBase string `json:"knowledgeBase,omitempty"`
17658
17659
17660
17661
17662
17663
17664
17665 State string `json:"state,omitempty"`
17666
17667
17668
17669
17670
17671 ForceSendFields []string `json:"-"`
17672
17673
17674
17675
17676 NullFields []string `json:"-"`
17677 }
17678
17679 func (s *GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
17680 type NoMethod GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
17681 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17682 }
17683
17684
17685
17686 type GoogleCloudDialogflowV2beta1Message struct {
17687
17688 Content string `json:"content,omitempty"`
17689
17690
17691 CreateTime string `json:"createTime,omitempty"`
17692
17693
17694
17695 LanguageCode string `json:"languageCode,omitempty"`
17696
17697 MessageAnnotation *GoogleCloudDialogflowV2beta1MessageAnnotation `json:"messageAnnotation,omitempty"`
17698
17699
17700 Name string `json:"name,omitempty"`
17701
17702 Participant string `json:"participant,omitempty"`
17703
17704
17705
17706
17707
17708
17709
17710
17711
17712 ParticipantRole string `json:"participantRole,omitempty"`
17713
17714 SendTime string `json:"sendTime,omitempty"`
17715
17716
17717 SentimentAnalysis *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysis,omitempty"`
17718
17719
17720
17721
17722
17723 ForceSendFields []string `json:"-"`
17724
17725
17726
17727
17728 NullFields []string `json:"-"`
17729 }
17730
17731 func (s *GoogleCloudDialogflowV2beta1Message) MarshalJSON() ([]byte, error) {
17732 type NoMethod GoogleCloudDialogflowV2beta1Message
17733 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17734 }
17735
17736
17737
17738 type GoogleCloudDialogflowV2beta1MessageAnnotation struct {
17739
17740
17741 ContainEntities bool `json:"containEntities,omitempty"`
17742
17743
17744
17745 Parts []*GoogleCloudDialogflowV2beta1AnnotatedMessagePart `json:"parts,omitempty"`
17746
17747
17748
17749
17750
17751 ForceSendFields []string `json:"-"`
17752
17753
17754
17755
17756 NullFields []string `json:"-"`
17757 }
17758
17759 func (s *GoogleCloudDialogflowV2beta1MessageAnnotation) MarshalJSON() ([]byte, error) {
17760 type NoMethod GoogleCloudDialogflowV2beta1MessageAnnotation
17761 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17762 }
17763
17764
17765
17766
17767 type GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest struct {
17768
17769
17770
17771
17772
17773
17774
17775
17776 Payload googleapi.RawMessage `json:"payload,omitempty"`
17777
17778
17779 Source string `json:"source,omitempty"`
17780
17781
17782 Version string `json:"version,omitempty"`
17783
17784
17785
17786
17787
17788 ForceSendFields []string `json:"-"`
17789
17790
17791
17792
17793 NullFields []string `json:"-"`
17794 }
17795
17796 func (s *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest) MarshalJSON() ([]byte, error) {
17797 type NoMethod GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
17798 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17799 }
17800
17801
17802
17803 type GoogleCloudDialogflowV2beta1QueryResult struct {
17804
17805 Action string `json:"action,omitempty"`
17806
17807
17808
17809
17810 AllRequiredParamsPresent bool `json:"allRequiredParamsPresent,omitempty"`
17811
17812
17813
17814
17815 CancelsSlotFilling bool `json:"cancelsSlotFilling,omitempty"`
17816
17817
17818
17819
17820 DiagnosticInfo googleapi.RawMessage `json:"diagnosticInfo,omitempty"`
17821
17822 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
17823
17824
17825
17826 FulfillmentText string `json:"fulfillmentText,omitempty"`
17827
17828
17829
17830 Intent *GoogleCloudDialogflowV2beta1Intent `json:"intent,omitempty"`
17831
17832
17833
17834
17835
17836
17837
17838
17839 IntentDetectionConfidence float64 `json:"intentDetectionConfidence,omitempty"`
17840
17841
17842 KnowledgeAnswers *GoogleCloudDialogflowV2beta1KnowledgeAnswers `json:"knowledgeAnswers,omitempty"`
17843
17844
17845
17846
17847 LanguageCode string `json:"languageCode,omitempty"`
17848
17849
17850
17851 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
17852
17853
17854
17855
17856
17857
17858
17859
17860
17861 Parameters googleapi.RawMessage `json:"parameters,omitempty"`
17862
17863
17864
17865
17866
17867
17868 QueryText string `json:"queryText,omitempty"`
17869
17870
17871 SentimentAnalysisResult *GoogleCloudDialogflowV2beta1SentimentAnalysisResult `json:"sentimentAnalysisResult,omitempty"`
17872
17873
17874
17875
17876
17877
17878
17879 SpeechRecognitionConfidence float64 `json:"speechRecognitionConfidence,omitempty"`
17880
17881
17882 WebhookPayload googleapi.RawMessage `json:"webhookPayload,omitempty"`
17883
17884
17885 WebhookSource string `json:"webhookSource,omitempty"`
17886
17887
17888
17889
17890
17891 ForceSendFields []string `json:"-"`
17892
17893
17894
17895
17896 NullFields []string `json:"-"`
17897 }
17898
17899 func (s *GoogleCloudDialogflowV2beta1QueryResult) MarshalJSON() ([]byte, error) {
17900 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
17901 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17902 }
17903
17904 func (s *GoogleCloudDialogflowV2beta1QueryResult) UnmarshalJSON(data []byte) error {
17905 type NoMethod GoogleCloudDialogflowV2beta1QueryResult
17906 var s1 struct {
17907 IntentDetectionConfidence gensupport.JSONFloat64 `json:"intentDetectionConfidence"`
17908 SpeechRecognitionConfidence gensupport.JSONFloat64 `json:"speechRecognitionConfidence"`
17909 *NoMethod
17910 }
17911 s1.NoMethod = (*NoMethod)(s)
17912 if err := json.Unmarshal(data, &s1); err != nil {
17913 return err
17914 }
17915 s.IntentDetectionConfidence = float64(s1.IntentDetectionConfidence)
17916 s.SpeechRecognitionConfidence = float64(s1.SpeechRecognitionConfidence)
17917 return nil
17918 }
17919
17920
17921
17922
17923
17924
17925 type GoogleCloudDialogflowV2beta1Sentiment struct {
17926
17927
17928
17929 Magnitude float64 `json:"magnitude,omitempty"`
17930
17931
17932 Score float64 `json:"score,omitempty"`
17933
17934
17935
17936
17937
17938 ForceSendFields []string `json:"-"`
17939
17940
17941
17942
17943 NullFields []string `json:"-"`
17944 }
17945
17946 func (s *GoogleCloudDialogflowV2beta1Sentiment) MarshalJSON() ([]byte, error) {
17947 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17948 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17949 }
17950
17951 func (s *GoogleCloudDialogflowV2beta1Sentiment) UnmarshalJSON(data []byte) error {
17952 type NoMethod GoogleCloudDialogflowV2beta1Sentiment
17953 var s1 struct {
17954 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
17955 Score gensupport.JSONFloat64 `json:"score"`
17956 *NoMethod
17957 }
17958 s1.NoMethod = (*NoMethod)(s)
17959 if err := json.Unmarshal(data, &s1); err != nil {
17960 return err
17961 }
17962 s.Magnitude = float64(s1.Magnitude)
17963 s.Score = float64(s1.Score)
17964 return nil
17965 }
17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
17976 type GoogleCloudDialogflowV2beta1SentimentAnalysisResult struct {
17977
17978 QueryTextSentiment *GoogleCloudDialogflowV2beta1Sentiment `json:"queryTextSentiment,omitempty"`
17979
17980
17981
17982
17983
17984 ForceSendFields []string `json:"-"`
17985
17986
17987
17988
17989 NullFields []string `json:"-"`
17990 }
17991
17992 func (s *GoogleCloudDialogflowV2beta1SentimentAnalysisResult) MarshalJSON() ([]byte, error) {
17993 type NoMethod GoogleCloudDialogflowV2beta1SentimentAnalysisResult
17994 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
17995 }
17996
17997
17998
17999
18000
18001
18002
18003
18004
18005 type GoogleCloudDialogflowV2beta1SessionEntityType struct {
18006
18007
18008 Entities []*GoogleCloudDialogflowV2beta1EntityTypeEntity `json:"entities,omitempty"`
18009
18010
18011
18012
18013
18014
18015
18016
18017
18018
18019
18020
18021
18022
18023
18024
18025 EntityOverrideMode string `json:"entityOverrideMode,omitempty"`
18026
18027
18028
18029
18030
18031
18032
18033
18034
18035
18036 Name string `json:"name,omitempty"`
18037
18038
18039
18040
18041
18042 ForceSendFields []string `json:"-"`
18043
18044
18045
18046
18047 NullFields []string `json:"-"`
18048 }
18049
18050 func (s *GoogleCloudDialogflowV2beta1SessionEntityType) MarshalJSON() ([]byte, error) {
18051 type NoMethod GoogleCloudDialogflowV2beta1SessionEntityType
18052 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18053 }
18054
18055
18056
18057 type GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata struct {
18058
18059
18060 ConversationProfile string `json:"conversationProfile,omitempty"`
18061
18062
18063 CreateTime string `json:"createTime,omitempty"`
18064
18065
18066
18067
18068
18069
18070
18071
18072
18073
18074 ParticipantRole string `json:"participantRole,omitempty"`
18075
18076
18077
18078
18079
18080
18081
18082
18083
18084
18085
18086
18087
18088
18089 SuggestionFeatureType string `json:"suggestionFeatureType,omitempty"`
18090
18091
18092
18093
18094
18095 ForceSendFields []string `json:"-"`
18096
18097
18098
18099
18100 NullFields []string `json:"-"`
18101 }
18102
18103 func (s *GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata) MarshalJSON() ([]byte, error) {
18104 type NoMethod GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
18105 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18106 }
18107
18108
18109
18110 type GoogleCloudDialogflowV2beta1SmartReplyAnswer struct {
18111
18112
18113 AnswerRecord string `json:"answerRecord,omitempty"`
18114
18115
18116
18117 Confidence float64 `json:"confidence,omitempty"`
18118
18119 Reply string `json:"reply,omitempty"`
18120
18121
18122
18123
18124
18125 ForceSendFields []string `json:"-"`
18126
18127
18128
18129
18130 NullFields []string `json:"-"`
18131 }
18132
18133 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) MarshalJSON() ([]byte, error) {
18134 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
18135 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18136 }
18137
18138 func (s *GoogleCloudDialogflowV2beta1SmartReplyAnswer) UnmarshalJSON(data []byte) error {
18139 type NoMethod GoogleCloudDialogflowV2beta1SmartReplyAnswer
18140 var s1 struct {
18141 Confidence gensupport.JSONFloat64 `json:"confidence"`
18142 *NoMethod
18143 }
18144 s1.NoMethod = (*NoMethod)(s)
18145 if err := json.Unmarshal(data, &s1); err != nil {
18146 return err
18147 }
18148 s.Confidence = float64(s1.Confidence)
18149 return nil
18150 }
18151
18152
18153
18154 type GoogleCloudDialogflowV2beta1SuggestArticlesResponse struct {
18155
18156 ArticleAnswers []*GoogleCloudDialogflowV2beta1ArticleAnswer `json:"articleAnswers,omitempty"`
18157
18158
18159
18160
18161 ContextSize int64 `json:"contextSize,omitempty"`
18162
18163
18164 LatestMessage string `json:"latestMessage,omitempty"`
18165
18166
18167
18168
18169
18170 ForceSendFields []string `json:"-"`
18171
18172
18173
18174
18175 NullFields []string `json:"-"`
18176 }
18177
18178 func (s *GoogleCloudDialogflowV2beta1SuggestArticlesResponse) MarshalJSON() ([]byte, error) {
18179 type NoMethod GoogleCloudDialogflowV2beta1SuggestArticlesResponse
18180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18181 }
18182
18183
18184
18185 type GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse struct {
18186
18187
18188
18189
18190 ContextSize int64 `json:"contextSize,omitempty"`
18191
18192
18193
18194 DialogflowAssistAnswers []*GoogleCloudDialogflowV2beta1DialogflowAssistAnswer `json:"dialogflowAssistAnswers,omitempty"`
18195
18196
18197 LatestMessage string `json:"latestMessage,omitempty"`
18198
18199
18200
18201
18202
18203 ForceSendFields []string `json:"-"`
18204
18205
18206
18207
18208 NullFields []string `json:"-"`
18209 }
18210
18211 func (s *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse) MarshalJSON() ([]byte, error) {
18212 type NoMethod GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
18213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18214 }
18215
18216
18217
18218 type GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse struct {
18219
18220
18221
18222
18223 ContextSize int64 `json:"contextSize,omitempty"`
18224
18225 FaqAnswers []*GoogleCloudDialogflowV2beta1FaqAnswer `json:"faqAnswers,omitempty"`
18226
18227
18228 LatestMessage string `json:"latestMessage,omitempty"`
18229
18230
18231
18232
18233
18234 ForceSendFields []string `json:"-"`
18235
18236
18237
18238
18239 NullFields []string `json:"-"`
18240 }
18241
18242 func (s *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse) MarshalJSON() ([]byte, error) {
18243 type NoMethod GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
18244 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18245 }
18246
18247
18248
18249 type GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse struct {
18250
18251
18252
18253
18254 ContextSize int64 `json:"contextSize,omitempty"`
18255
18256
18257 LatestMessage string `json:"latestMessage,omitempty"`
18258
18259
18260
18261 SmartReplyAnswers []*GoogleCloudDialogflowV2beta1SmartReplyAnswer `json:"smartReplyAnswers,omitempty"`
18262
18263
18264
18265
18266
18267 ForceSendFields []string `json:"-"`
18268
18269
18270
18271
18272 NullFields []string `json:"-"`
18273 }
18274
18275 func (s *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse) MarshalJSON() ([]byte, error) {
18276 type NoMethod GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
18277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18278 }
18279
18280
18281
18282
18283
18284 type GoogleCloudDialogflowV2beta1SuggestionResult struct {
18285
18286 Error *GoogleRpcStatus `json:"error,omitempty"`
18287
18288
18289 SuggestArticlesResponse *GoogleCloudDialogflowV2beta1SuggestArticlesResponse `json:"suggestArticlesResponse,omitempty"`
18290
18291
18292 SuggestDialogflowAssistsResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestDialogflowAssistsResponse,omitempty"`
18293
18294
18295 SuggestEntityExtractionResponse *GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse `json:"suggestEntityExtractionResponse,omitempty"`
18296
18297
18298 SuggestFaqAnswersResponse *GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse `json:"suggestFaqAnswersResponse,omitempty"`
18299
18300
18301 SuggestSmartRepliesResponse *GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse `json:"suggestSmartRepliesResponse,omitempty"`
18302
18303
18304
18305
18306
18307 ForceSendFields []string `json:"-"`
18308
18309
18310
18311
18312 NullFields []string `json:"-"`
18313 }
18314
18315 func (s *GoogleCloudDialogflowV2beta1SuggestionResult) MarshalJSON() ([]byte, error) {
18316 type NoMethod GoogleCloudDialogflowV2beta1SuggestionResult
18317 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18318 }
18319
18320
18321
18322 type GoogleCloudDialogflowV2beta1WebhookRequest struct {
18323
18324 AlternativeQueryResults []*GoogleCloudDialogflowV2beta1QueryResult `json:"alternativeQueryResults,omitempty"`
18325
18326
18327 OriginalDetectIntentRequest *GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest `json:"originalDetectIntentRequest,omitempty"`
18328
18329
18330 QueryResult *GoogleCloudDialogflowV2beta1QueryResult `json:"queryResult,omitempty"`
18331
18332
18333 ResponseId string `json:"responseId,omitempty"`
18334
18335
18336
18337
18338
18339 Session string `json:"session,omitempty"`
18340
18341
18342
18343
18344
18345 ForceSendFields []string `json:"-"`
18346
18347
18348
18349
18350 NullFields []string `json:"-"`
18351 }
18352
18353 func (s *GoogleCloudDialogflowV2beta1WebhookRequest) MarshalJSON() ([]byte, error) {
18354 type NoMethod GoogleCloudDialogflowV2beta1WebhookRequest
18355 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18356 }
18357
18358
18359
18360
18361
18362
18363
18364
18365
18366 type GoogleCloudDialogflowV2beta1WebhookResponse struct {
18367
18368
18369
18370 EndInteraction bool `json:"endInteraction,omitempty"`
18371
18372
18373
18374 FollowupEventInput *GoogleCloudDialogflowV2beta1EventInput `json:"followupEventInput,omitempty"`
18375
18376
18377
18378 FulfillmentMessages []*GoogleCloudDialogflowV2beta1IntentMessage `json:"fulfillmentMessages,omitempty"`
18379
18380
18381
18382
18383 FulfillmentText string `json:"fulfillmentText,omitempty"`
18384
18385
18386
18387
18388 LiveAgentHandoff bool `json:"liveAgentHandoff,omitempty"`
18389
18390
18391
18392
18393 OutputContexts []*GoogleCloudDialogflowV2beta1Context `json:"outputContexts,omitempty"`
18394
18395
18396
18397
18398
18399
18400
18401
18402
18403 Payload googleapi.RawMessage `json:"payload,omitempty"`
18404
18405
18406
18407
18408
18409 SessionEntityTypes []*GoogleCloudDialogflowV2beta1SessionEntityType `json:"sessionEntityTypes,omitempty"`
18410
18411
18412
18413
18414 Source string `json:"source,omitempty"`
18415
18416
18417
18418
18419
18420 ForceSendFields []string `json:"-"`
18421
18422
18423
18424
18425 NullFields []string `json:"-"`
18426 }
18427
18428 func (s *GoogleCloudDialogflowV2beta1WebhookResponse) MarshalJSON() ([]byte, error) {
18429 type NoMethod GoogleCloudDialogflowV2beta1WebhookResponse
18430 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18431 }
18432
18433
18434
18435
18436 type GoogleCloudDialogflowV3alpha1ConversationSignals struct {
18437
18438 TurnSignals *GoogleCloudDialogflowV3alpha1TurnSignals `json:"turnSignals,omitempty"`
18439
18440
18441
18442
18443
18444 ForceSendFields []string `json:"-"`
18445
18446
18447
18448
18449 NullFields []string `json:"-"`
18450 }
18451
18452 func (s *GoogleCloudDialogflowV3alpha1ConversationSignals) MarshalJSON() ([]byte, error) {
18453 type NoMethod GoogleCloudDialogflowV3alpha1ConversationSignals
18454 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18455 }
18456
18457
18458
18459 type GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata struct {
18460
18461 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18462
18463
18464
18465
18466
18467 ForceSendFields []string `json:"-"`
18468
18469
18470
18471
18472 NullFields []string `json:"-"`
18473 }
18474
18475 func (s *GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18476 type NoMethod GoogleCloudDialogflowV3alpha1CreateDocumentOperationMetadata
18477 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18478 }
18479
18480
18481
18482 type GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata struct {
18483
18484 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18485
18486
18487
18488
18489
18490 ForceSendFields []string `json:"-"`
18491
18492
18493
18494
18495 NullFields []string `json:"-"`
18496 }
18497
18498 func (s *GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18499 type NoMethod GoogleCloudDialogflowV3alpha1DeleteDocumentOperationMetadata
18500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18501 }
18502
18503
18504
18505 type GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata struct {
18506
18507
18508
18509
18510
18511
18512
18513 State string `json:"state,omitempty"`
18514
18515
18516
18517
18518
18519 ForceSendFields []string `json:"-"`
18520
18521
18522
18523
18524 NullFields []string `json:"-"`
18525 }
18526
18527 func (s *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata) MarshalJSON() ([]byte, error) {
18528 type NoMethod GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata
18529 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18530 }
18531
18532
18533
18534 type GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata struct {
18535
18536 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18537
18538
18539
18540
18541
18542 ForceSendFields []string `json:"-"`
18543
18544
18545
18546
18547 NullFields []string `json:"-"`
18548 }
18549
18550 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata) MarshalJSON() ([]byte, error) {
18551 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsOperationMetadata
18552 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18553 }
18554
18555
18556
18557 type GoogleCloudDialogflowV3alpha1ImportDocumentsResponse struct {
18558
18559 Warnings []*GoogleRpcStatus `json:"warnings,omitempty"`
18560
18561
18562
18563
18564
18565 ForceSendFields []string `json:"-"`
18566
18567
18568
18569
18570 NullFields []string `json:"-"`
18571 }
18572
18573 func (s *GoogleCloudDialogflowV3alpha1ImportDocumentsResponse) MarshalJSON() ([]byte, error) {
18574 type NoMethod GoogleCloudDialogflowV3alpha1ImportDocumentsResponse
18575 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18576 }
18577
18578
18579
18580 type GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata struct {
18581
18582 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18583
18584
18585
18586
18587
18588 ForceSendFields []string `json:"-"`
18589
18590
18591
18592
18593 NullFields []string `json:"-"`
18594 }
18595
18596 func (s *GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18597 type NoMethod GoogleCloudDialogflowV3alpha1ReloadDocumentOperationMetadata
18598 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18599 }
18600
18601
18602
18603 type GoogleCloudDialogflowV3alpha1TurnSignals struct {
18604
18605 AgentEscalated bool `json:"agentEscalated,omitempty"`
18606
18607 DtmfUsed bool `json:"dtmfUsed,omitempty"`
18608
18609
18610
18611
18612
18613
18614 FailureReasons []string `json:"failureReasons,omitempty"`
18615
18616 NoMatch bool `json:"noMatch,omitempty"`
18617
18618 NoUserInput bool `json:"noUserInput,omitempty"`
18619
18620 ReachedEndPage bool `json:"reachedEndPage,omitempty"`
18621
18622
18623 SentimentMagnitude float64 `json:"sentimentMagnitude,omitempty"`
18624
18625
18626 SentimentScore float64 `json:"sentimentScore,omitempty"`
18627
18628
18629 TriggeredAbandonmentEvent bool `json:"triggeredAbandonmentEvent,omitempty"`
18630
18631 UserEscalated bool `json:"userEscalated,omitempty"`
18632
18633
18634 WebhookStatuses []string `json:"webhookStatuses,omitempty"`
18635
18636
18637
18638
18639
18640 ForceSendFields []string `json:"-"`
18641
18642
18643
18644
18645 NullFields []string `json:"-"`
18646 }
18647
18648 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) MarshalJSON() ([]byte, error) {
18649 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18650 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18651 }
18652
18653 func (s *GoogleCloudDialogflowV3alpha1TurnSignals) UnmarshalJSON(data []byte) error {
18654 type NoMethod GoogleCloudDialogflowV3alpha1TurnSignals
18655 var s1 struct {
18656 SentimentMagnitude gensupport.JSONFloat64 `json:"sentimentMagnitude"`
18657 SentimentScore gensupport.JSONFloat64 `json:"sentimentScore"`
18658 *NoMethod
18659 }
18660 s1.NoMethod = (*NoMethod)(s)
18661 if err := json.Unmarshal(data, &s1); err != nil {
18662 return err
18663 }
18664 s.SentimentMagnitude = float64(s1.SentimentMagnitude)
18665 s.SentimentScore = float64(s1.SentimentScore)
18666 return nil
18667 }
18668
18669
18670
18671 type GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata struct {
18672
18673 GenericMetadata *GoogleCloudDialogflowV3alpha1GenericKnowledgeOperationMetadata `json:"genericMetadata,omitempty"`
18674
18675
18676
18677
18678
18679 ForceSendFields []string `json:"-"`
18680
18681
18682
18683
18684 NullFields []string `json:"-"`
18685 }
18686
18687 func (s *GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata) MarshalJSON() ([]byte, error) {
18688 type NoMethod GoogleCloudDialogflowV3alpha1UpdateDocumentOperationMetadata
18689 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18690 }
18691
18692
18693
18694 type GoogleCloudLocationListLocationsResponse struct {
18695
18696
18697 Locations []*GoogleCloudLocationLocation `json:"locations,omitempty"`
18698
18699 NextPageToken string `json:"nextPageToken,omitempty"`
18700
18701
18702 googleapi.ServerResponse `json:"-"`
18703
18704
18705
18706
18707
18708 ForceSendFields []string `json:"-"`
18709
18710
18711
18712
18713 NullFields []string `json:"-"`
18714 }
18715
18716 func (s *GoogleCloudLocationListLocationsResponse) MarshalJSON() ([]byte, error) {
18717 type NoMethod GoogleCloudLocationListLocationsResponse
18718 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18719 }
18720
18721
18722
18723 type GoogleCloudLocationLocation struct {
18724
18725
18726 DisplayName string `json:"displayName,omitempty"`
18727
18728
18729 Labels map[string]string `json:"labels,omitempty"`
18730
18731 LocationId string `json:"locationId,omitempty"`
18732
18733
18734 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18735
18736
18737
18738 Name string `json:"name,omitempty"`
18739
18740
18741 googleapi.ServerResponse `json:"-"`
18742
18743
18744
18745
18746
18747 ForceSendFields []string `json:"-"`
18748
18749
18750
18751
18752 NullFields []string `json:"-"`
18753 }
18754
18755 func (s *GoogleCloudLocationLocation) MarshalJSON() ([]byte, error) {
18756 type NoMethod GoogleCloudLocationLocation
18757 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18758 }
18759
18760
18761
18762 type GoogleLongrunningListOperationsResponse struct {
18763
18764 NextPageToken string `json:"nextPageToken,omitempty"`
18765
18766
18767 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
18768
18769
18770 googleapi.ServerResponse `json:"-"`
18771
18772
18773
18774
18775
18776 ForceSendFields []string `json:"-"`
18777
18778
18779
18780
18781 NullFields []string `json:"-"`
18782 }
18783
18784 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
18785 type NoMethod GoogleLongrunningListOperationsResponse
18786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18787 }
18788
18789
18790
18791 type GoogleLongrunningOperation struct {
18792
18793
18794
18795 Done bool `json:"done,omitempty"`
18796
18797 Error *GoogleRpcStatus `json:"error,omitempty"`
18798
18799
18800
18801
18802 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
18803
18804
18805
18806 Name string `json:"name,omitempty"`
18807
18808
18809
18810
18811
18812
18813
18814 Response googleapi.RawMessage `json:"response,omitempty"`
18815
18816
18817 googleapi.ServerResponse `json:"-"`
18818
18819
18820
18821
18822
18823 ForceSendFields []string `json:"-"`
18824
18825
18826
18827
18828 NullFields []string `json:"-"`
18829 }
18830
18831 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
18832 type NoMethod GoogleLongrunningOperation
18833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18834 }
18835
18836
18837
18838
18839
18840
18841 type GoogleProtobufEmpty struct {
18842
18843 googleapi.ServerResponse `json:"-"`
18844 }
18845
18846
18847
18848
18849
18850
18851
18852 type GoogleRpcStatus struct {
18853
18854 Code int64 `json:"code,omitempty"`
18855
18856
18857 Details []googleapi.RawMessage `json:"details,omitempty"`
18858
18859
18860
18861 Message string `json:"message,omitempty"`
18862
18863
18864
18865
18866
18867 ForceSendFields []string `json:"-"`
18868
18869
18870
18871
18872 NullFields []string `json:"-"`
18873 }
18874
18875 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
18876 type NoMethod GoogleRpcStatus
18877 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18878 }
18879
18880
18881
18882
18883
18884 type GoogleTypeLatLng struct {
18885
18886 Latitude float64 `json:"latitude,omitempty"`
18887
18888
18889 Longitude float64 `json:"longitude,omitempty"`
18890
18891
18892
18893
18894
18895 ForceSendFields []string `json:"-"`
18896
18897
18898
18899
18900 NullFields []string `json:"-"`
18901 }
18902
18903 func (s *GoogleTypeLatLng) MarshalJSON() ([]byte, error) {
18904 type NoMethod GoogleTypeLatLng
18905 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
18906 }
18907
18908 func (s *GoogleTypeLatLng) UnmarshalJSON(data []byte) error {
18909 type NoMethod GoogleTypeLatLng
18910 var s1 struct {
18911 Latitude gensupport.JSONFloat64 `json:"latitude"`
18912 Longitude gensupport.JSONFloat64 `json:"longitude"`
18913 *NoMethod
18914 }
18915 s1.NoMethod = (*NoMethod)(s)
18916 if err := json.Unmarshal(data, &s1); err != nil {
18917 return err
18918 }
18919 s.Latitude = float64(s1.Latitude)
18920 s.Longitude = float64(s1.Longitude)
18921 return nil
18922 }
18923
18924 type ProjectsLocationsGetCall struct {
18925 s *Service
18926 name string
18927 urlParams_ gensupport.URLParams
18928 ifNoneMatch_ string
18929 ctx_ context.Context
18930 header_ http.Header
18931 }
18932
18933
18934
18935
18936 func (r *ProjectsLocationsService) Get(name string) *ProjectsLocationsGetCall {
18937 c := &ProjectsLocationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
18938 c.name = name
18939 return c
18940 }
18941
18942
18943
18944
18945 func (c *ProjectsLocationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetCall {
18946 c.urlParams_.Set("fields", googleapi.CombineFields(s))
18947 return c
18948 }
18949
18950
18951
18952
18953 func (c *ProjectsLocationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetCall {
18954 c.ifNoneMatch_ = entityTag
18955 return c
18956 }
18957
18958
18959 func (c *ProjectsLocationsGetCall) Context(ctx context.Context) *ProjectsLocationsGetCall {
18960 c.ctx_ = ctx
18961 return c
18962 }
18963
18964
18965
18966 func (c *ProjectsLocationsGetCall) Header() http.Header {
18967 if c.header_ == nil {
18968 c.header_ = make(http.Header)
18969 }
18970 return c.header_
18971 }
18972
18973 func (c *ProjectsLocationsGetCall) doRequest(alt string) (*http.Response, error) {
18974 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
18975 if c.ifNoneMatch_ != "" {
18976 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
18977 }
18978 var body io.Reader = nil
18979 c.urlParams_.Set("alt", alt)
18980 c.urlParams_.Set("prettyPrint", "false")
18981 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
18982 urls += "?" + c.urlParams_.Encode()
18983 req, err := http.NewRequest("GET", urls, body)
18984 if err != nil {
18985 return nil, err
18986 }
18987 req.Header = reqHeaders
18988 googleapi.Expand(req.URL, map[string]string{
18989 "name": c.name,
18990 })
18991 return gensupport.SendRequest(c.ctx_, c.s.client, req)
18992 }
18993
18994
18995
18996
18997
18998
18999
19000 func (c *ProjectsLocationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationLocation, error) {
19001 gensupport.SetOptions(c.urlParams_, opts...)
19002 res, err := c.doRequest("json")
19003 if res != nil && res.StatusCode == http.StatusNotModified {
19004 if res.Body != nil {
19005 res.Body.Close()
19006 }
19007 return nil, gensupport.WrapError(&googleapi.Error{
19008 Code: res.StatusCode,
19009 Header: res.Header,
19010 })
19011 }
19012 if err != nil {
19013 return nil, err
19014 }
19015 defer googleapi.CloseBody(res)
19016 if err := googleapi.CheckResponse(res); err != nil {
19017 return nil, gensupport.WrapError(err)
19018 }
19019 ret := &GoogleCloudLocationLocation{
19020 ServerResponse: googleapi.ServerResponse{
19021 Header: res.Header,
19022 HTTPStatusCode: res.StatusCode,
19023 },
19024 }
19025 target := &ret
19026 if err := gensupport.DecodeResponse(target, res); err != nil {
19027 return nil, err
19028 }
19029 return ret, nil
19030 }
19031
19032 type ProjectsLocationsListCall struct {
19033 s *Service
19034 name string
19035 urlParams_ gensupport.URLParams
19036 ifNoneMatch_ string
19037 ctx_ context.Context
19038 header_ http.Header
19039 }
19040
19041
19042
19043
19044 func (r *ProjectsLocationsService) List(name string) *ProjectsLocationsListCall {
19045 c := &ProjectsLocationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19046 c.name = name
19047 return c
19048 }
19049
19050
19051
19052
19053
19054 func (c *ProjectsLocationsListCall) Filter(filter string) *ProjectsLocationsListCall {
19055 c.urlParams_.Set("filter", filter)
19056 return c
19057 }
19058
19059
19060
19061 func (c *ProjectsLocationsListCall) PageSize(pageSize int64) *ProjectsLocationsListCall {
19062 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19063 return c
19064 }
19065
19066
19067
19068
19069 func (c *ProjectsLocationsListCall) PageToken(pageToken string) *ProjectsLocationsListCall {
19070 c.urlParams_.Set("pageToken", pageToken)
19071 return c
19072 }
19073
19074
19075
19076
19077 func (c *ProjectsLocationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsListCall {
19078 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19079 return c
19080 }
19081
19082
19083
19084
19085 func (c *ProjectsLocationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsListCall {
19086 c.ifNoneMatch_ = entityTag
19087 return c
19088 }
19089
19090
19091 func (c *ProjectsLocationsListCall) Context(ctx context.Context) *ProjectsLocationsListCall {
19092 c.ctx_ = ctx
19093 return c
19094 }
19095
19096
19097
19098 func (c *ProjectsLocationsListCall) Header() http.Header {
19099 if c.header_ == nil {
19100 c.header_ = make(http.Header)
19101 }
19102 return c.header_
19103 }
19104
19105 func (c *ProjectsLocationsListCall) doRequest(alt string) (*http.Response, error) {
19106 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19107 if c.ifNoneMatch_ != "" {
19108 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19109 }
19110 var body io.Reader = nil
19111 c.urlParams_.Set("alt", alt)
19112 c.urlParams_.Set("prettyPrint", "false")
19113 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/locations")
19114 urls += "?" + c.urlParams_.Encode()
19115 req, err := http.NewRequest("GET", urls, body)
19116 if err != nil {
19117 return nil, err
19118 }
19119 req.Header = reqHeaders
19120 googleapi.Expand(req.URL, map[string]string{
19121 "name": c.name,
19122 })
19123 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19124 }
19125
19126
19127
19128
19129
19130
19131
19132 func (c *ProjectsLocationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudLocationListLocationsResponse, error) {
19133 gensupport.SetOptions(c.urlParams_, opts...)
19134 res, err := c.doRequest("json")
19135 if res != nil && res.StatusCode == http.StatusNotModified {
19136 if res.Body != nil {
19137 res.Body.Close()
19138 }
19139 return nil, gensupport.WrapError(&googleapi.Error{
19140 Code: res.StatusCode,
19141 Header: res.Header,
19142 })
19143 }
19144 if err != nil {
19145 return nil, err
19146 }
19147 defer googleapi.CloseBody(res)
19148 if err := googleapi.CheckResponse(res); err != nil {
19149 return nil, gensupport.WrapError(err)
19150 }
19151 ret := &GoogleCloudLocationListLocationsResponse{
19152 ServerResponse: googleapi.ServerResponse{
19153 Header: res.Header,
19154 HTTPStatusCode: res.StatusCode,
19155 },
19156 }
19157 target := &ret
19158 if err := gensupport.DecodeResponse(target, res); err != nil {
19159 return nil, err
19160 }
19161 return ret, nil
19162 }
19163
19164
19165
19166
19167 func (c *ProjectsLocationsListCall) Pages(ctx context.Context, f func(*GoogleCloudLocationListLocationsResponse) error) error {
19168 c.ctx_ = ctx
19169 defer c.PageToken(c.urlParams_.Get("pageToken"))
19170 for {
19171 x, err := c.Do()
19172 if err != nil {
19173 return err
19174 }
19175 if err := f(x); err != nil {
19176 return err
19177 }
19178 if x.NextPageToken == "" {
19179 return nil
19180 }
19181 c.PageToken(x.NextPageToken)
19182 }
19183 }
19184
19185 type ProjectsLocationsAgentsCreateCall struct {
19186 s *Service
19187 parent string
19188 googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent
19189 urlParams_ gensupport.URLParams
19190 ctx_ context.Context
19191 header_ http.Header
19192 }
19193
19194
19195
19196
19197
19198
19199
19200 func (r *ProjectsLocationsAgentsService) Create(parent string, googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent) *ProjectsLocationsAgentsCreateCall {
19201 c := &ProjectsLocationsAgentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19202 c.parent = parent
19203 c.googleclouddialogflowcxv3beta1agent = googleclouddialogflowcxv3beta1agent
19204 return c
19205 }
19206
19207
19208
19209
19210 func (c *ProjectsLocationsAgentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsCreateCall {
19211 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19212 return c
19213 }
19214
19215
19216 func (c *ProjectsLocationsAgentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsCreateCall {
19217 c.ctx_ = ctx
19218 return c
19219 }
19220
19221
19222
19223 func (c *ProjectsLocationsAgentsCreateCall) Header() http.Header {
19224 if c.header_ == nil {
19225 c.header_ = make(http.Header)
19226 }
19227 return c.header_
19228 }
19229
19230 func (c *ProjectsLocationsAgentsCreateCall) doRequest(alt string) (*http.Response, error) {
19231 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19232 var body io.Reader = nil
19233 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1agent)
19234 if err != nil {
19235 return nil, err
19236 }
19237 c.urlParams_.Set("alt", alt)
19238 c.urlParams_.Set("prettyPrint", "false")
19239 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/agents")
19240 urls += "?" + c.urlParams_.Encode()
19241 req, err := http.NewRequest("POST", urls, body)
19242 if err != nil {
19243 return nil, err
19244 }
19245 req.Header = reqHeaders
19246 googleapi.Expand(req.URL, map[string]string{
19247 "parent": c.parent,
19248 })
19249 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19250 }
19251
19252
19253
19254
19255
19256
19257
19258 func (c *ProjectsLocationsAgentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
19259 gensupport.SetOptions(c.urlParams_, opts...)
19260 res, err := c.doRequest("json")
19261 if res != nil && res.StatusCode == http.StatusNotModified {
19262 if res.Body != nil {
19263 res.Body.Close()
19264 }
19265 return nil, gensupport.WrapError(&googleapi.Error{
19266 Code: res.StatusCode,
19267 Header: res.Header,
19268 })
19269 }
19270 if err != nil {
19271 return nil, err
19272 }
19273 defer googleapi.CloseBody(res)
19274 if err := googleapi.CheckResponse(res); err != nil {
19275 return nil, gensupport.WrapError(err)
19276 }
19277 ret := &GoogleCloudDialogflowCxV3beta1Agent{
19278 ServerResponse: googleapi.ServerResponse{
19279 Header: res.Header,
19280 HTTPStatusCode: res.StatusCode,
19281 },
19282 }
19283 target := &ret
19284 if err := gensupport.DecodeResponse(target, res); err != nil {
19285 return nil, err
19286 }
19287 return ret, nil
19288 }
19289
19290 type ProjectsLocationsAgentsDeleteCall struct {
19291 s *Service
19292 name string
19293 urlParams_ gensupport.URLParams
19294 ctx_ context.Context
19295 header_ http.Header
19296 }
19297
19298
19299
19300
19301
19302 func (r *ProjectsLocationsAgentsService) Delete(name string) *ProjectsLocationsAgentsDeleteCall {
19303 c := &ProjectsLocationsAgentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19304 c.name = name
19305 return c
19306 }
19307
19308
19309
19310
19311 func (c *ProjectsLocationsAgentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsDeleteCall {
19312 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19313 return c
19314 }
19315
19316
19317 func (c *ProjectsLocationsAgentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsDeleteCall {
19318 c.ctx_ = ctx
19319 return c
19320 }
19321
19322
19323
19324 func (c *ProjectsLocationsAgentsDeleteCall) Header() http.Header {
19325 if c.header_ == nil {
19326 c.header_ = make(http.Header)
19327 }
19328 return c.header_
19329 }
19330
19331 func (c *ProjectsLocationsAgentsDeleteCall) doRequest(alt string) (*http.Response, error) {
19332 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19333 var body io.Reader = nil
19334 c.urlParams_.Set("alt", alt)
19335 c.urlParams_.Set("prettyPrint", "false")
19336 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19337 urls += "?" + c.urlParams_.Encode()
19338 req, err := http.NewRequest("DELETE", urls, body)
19339 if err != nil {
19340 return nil, err
19341 }
19342 req.Header = reqHeaders
19343 googleapi.Expand(req.URL, map[string]string{
19344 "name": c.name,
19345 })
19346 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19347 }
19348
19349
19350
19351
19352
19353
19354
19355 func (c *ProjectsLocationsAgentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
19356 gensupport.SetOptions(c.urlParams_, opts...)
19357 res, err := c.doRequest("json")
19358 if res != nil && res.StatusCode == http.StatusNotModified {
19359 if res.Body != nil {
19360 res.Body.Close()
19361 }
19362 return nil, gensupport.WrapError(&googleapi.Error{
19363 Code: res.StatusCode,
19364 Header: res.Header,
19365 })
19366 }
19367 if err != nil {
19368 return nil, err
19369 }
19370 defer googleapi.CloseBody(res)
19371 if err := googleapi.CheckResponse(res); err != nil {
19372 return nil, gensupport.WrapError(err)
19373 }
19374 ret := &GoogleProtobufEmpty{
19375 ServerResponse: googleapi.ServerResponse{
19376 Header: res.Header,
19377 HTTPStatusCode: res.StatusCode,
19378 },
19379 }
19380 target := &ret
19381 if err := gensupport.DecodeResponse(target, res); err != nil {
19382 return nil, err
19383 }
19384 return ret, nil
19385 }
19386
19387 type ProjectsLocationsAgentsExportCall struct {
19388 s *Service
19389 name string
19390 googleclouddialogflowcxv3beta1exportagentrequest *GoogleCloudDialogflowCxV3beta1ExportAgentRequest
19391 urlParams_ gensupport.URLParams
19392 ctx_ context.Context
19393 header_ http.Header
19394 }
19395
19396
19397
19398
19399
19400
19401
19402
19403
19404
19405
19406 func (r *ProjectsLocationsAgentsService) Export(name string, googleclouddialogflowcxv3beta1exportagentrequest *GoogleCloudDialogflowCxV3beta1ExportAgentRequest) *ProjectsLocationsAgentsExportCall {
19407 c := &ProjectsLocationsAgentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19408 c.name = name
19409 c.googleclouddialogflowcxv3beta1exportagentrequest = googleclouddialogflowcxv3beta1exportagentrequest
19410 return c
19411 }
19412
19413
19414
19415
19416 func (c *ProjectsLocationsAgentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsExportCall {
19417 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19418 return c
19419 }
19420
19421
19422 func (c *ProjectsLocationsAgentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsExportCall {
19423 c.ctx_ = ctx
19424 return c
19425 }
19426
19427
19428
19429 func (c *ProjectsLocationsAgentsExportCall) Header() http.Header {
19430 if c.header_ == nil {
19431 c.header_ = make(http.Header)
19432 }
19433 return c.header_
19434 }
19435
19436 func (c *ProjectsLocationsAgentsExportCall) doRequest(alt string) (*http.Response, error) {
19437 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
19438 var body io.Reader = nil
19439 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportagentrequest)
19440 if err != nil {
19441 return nil, err
19442 }
19443 c.urlParams_.Set("alt", alt)
19444 c.urlParams_.Set("prettyPrint", "false")
19445 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:export")
19446 urls += "?" + c.urlParams_.Encode()
19447 req, err := http.NewRequest("POST", urls, body)
19448 if err != nil {
19449 return nil, err
19450 }
19451 req.Header = reqHeaders
19452 googleapi.Expand(req.URL, map[string]string{
19453 "name": c.name,
19454 })
19455 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19456 }
19457
19458
19459
19460
19461
19462
19463
19464 func (c *ProjectsLocationsAgentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
19465 gensupport.SetOptions(c.urlParams_, opts...)
19466 res, err := c.doRequest("json")
19467 if res != nil && res.StatusCode == http.StatusNotModified {
19468 if res.Body != nil {
19469 res.Body.Close()
19470 }
19471 return nil, gensupport.WrapError(&googleapi.Error{
19472 Code: res.StatusCode,
19473 Header: res.Header,
19474 })
19475 }
19476 if err != nil {
19477 return nil, err
19478 }
19479 defer googleapi.CloseBody(res)
19480 if err := googleapi.CheckResponse(res); err != nil {
19481 return nil, gensupport.WrapError(err)
19482 }
19483 ret := &GoogleLongrunningOperation{
19484 ServerResponse: googleapi.ServerResponse{
19485 Header: res.Header,
19486 HTTPStatusCode: res.StatusCode,
19487 },
19488 }
19489 target := &ret
19490 if err := gensupport.DecodeResponse(target, res); err != nil {
19491 return nil, err
19492 }
19493 return ret, nil
19494 }
19495
19496 type ProjectsLocationsAgentsGetCall struct {
19497 s *Service
19498 name string
19499 urlParams_ gensupport.URLParams
19500 ifNoneMatch_ string
19501 ctx_ context.Context
19502 header_ http.Header
19503 }
19504
19505
19506
19507
19508 func (r *ProjectsLocationsAgentsService) Get(name string) *ProjectsLocationsAgentsGetCall {
19509 c := &ProjectsLocationsAgentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19510 c.name = name
19511 return c
19512 }
19513
19514
19515
19516
19517 func (c *ProjectsLocationsAgentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetCall {
19518 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19519 return c
19520 }
19521
19522
19523
19524
19525 func (c *ProjectsLocationsAgentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetCall {
19526 c.ifNoneMatch_ = entityTag
19527 return c
19528 }
19529
19530
19531 func (c *ProjectsLocationsAgentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetCall {
19532 c.ctx_ = ctx
19533 return c
19534 }
19535
19536
19537
19538 func (c *ProjectsLocationsAgentsGetCall) Header() http.Header {
19539 if c.header_ == nil {
19540 c.header_ = make(http.Header)
19541 }
19542 return c.header_
19543 }
19544
19545 func (c *ProjectsLocationsAgentsGetCall) doRequest(alt string) (*http.Response, error) {
19546 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19547 if c.ifNoneMatch_ != "" {
19548 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19549 }
19550 var body io.Reader = nil
19551 c.urlParams_.Set("alt", alt)
19552 c.urlParams_.Set("prettyPrint", "false")
19553 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19554 urls += "?" + c.urlParams_.Encode()
19555 req, err := http.NewRequest("GET", urls, body)
19556 if err != nil {
19557 return nil, err
19558 }
19559 req.Header = reqHeaders
19560 googleapi.Expand(req.URL, map[string]string{
19561 "name": c.name,
19562 })
19563 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19564 }
19565
19566
19567
19568
19569
19570
19571
19572 func (c *ProjectsLocationsAgentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
19573 gensupport.SetOptions(c.urlParams_, opts...)
19574 res, err := c.doRequest("json")
19575 if res != nil && res.StatusCode == http.StatusNotModified {
19576 if res.Body != nil {
19577 res.Body.Close()
19578 }
19579 return nil, gensupport.WrapError(&googleapi.Error{
19580 Code: res.StatusCode,
19581 Header: res.Header,
19582 })
19583 }
19584 if err != nil {
19585 return nil, err
19586 }
19587 defer googleapi.CloseBody(res)
19588 if err := googleapi.CheckResponse(res); err != nil {
19589 return nil, gensupport.WrapError(err)
19590 }
19591 ret := &GoogleCloudDialogflowCxV3beta1Agent{
19592 ServerResponse: googleapi.ServerResponse{
19593 Header: res.Header,
19594 HTTPStatusCode: res.StatusCode,
19595 },
19596 }
19597 target := &ret
19598 if err := gensupport.DecodeResponse(target, res); err != nil {
19599 return nil, err
19600 }
19601 return ret, nil
19602 }
19603
19604 type ProjectsLocationsAgentsGetGenerativeSettingsCall struct {
19605 s *Service
19606 name string
19607 urlParams_ gensupport.URLParams
19608 ifNoneMatch_ string
19609 ctx_ context.Context
19610 header_ http.Header
19611 }
19612
19613
19614
19615
19616 func (r *ProjectsLocationsAgentsService) GetGenerativeSettings(name string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19617 c := &ProjectsLocationsAgentsGetGenerativeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19618 c.name = name
19619 return c
19620 }
19621
19622
19623
19624 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19625 c.urlParams_.Set("languageCode", languageCode)
19626 return c
19627 }
19628
19629
19630
19631
19632 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19633 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19634 return c
19635 }
19636
19637
19638
19639
19640 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19641 c.ifNoneMatch_ = entityTag
19642 return c
19643 }
19644
19645
19646 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetGenerativeSettingsCall {
19647 c.ctx_ = ctx
19648 return c
19649 }
19650
19651
19652
19653 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Header() http.Header {
19654 if c.header_ == nil {
19655 c.header_ = make(http.Header)
19656 }
19657 return c.header_
19658 }
19659
19660 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) doRequest(alt string) (*http.Response, error) {
19661 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19662 if c.ifNoneMatch_ != "" {
19663 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19664 }
19665 var body io.Reader = nil
19666 c.urlParams_.Set("alt", alt)
19667 c.urlParams_.Set("prettyPrint", "false")
19668 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19669 urls += "?" + c.urlParams_.Encode()
19670 req, err := http.NewRequest("GET", urls, body)
19671 if err != nil {
19672 return nil, err
19673 }
19674 req.Header = reqHeaders
19675 googleapi.Expand(req.URL, map[string]string{
19676 "name": c.name,
19677 })
19678 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19679 }
19680
19681
19682
19683
19684
19685
19686
19687 func (c *ProjectsLocationsAgentsGetGenerativeSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1GenerativeSettings, error) {
19688 gensupport.SetOptions(c.urlParams_, opts...)
19689 res, err := c.doRequest("json")
19690 if res != nil && res.StatusCode == http.StatusNotModified {
19691 if res.Body != nil {
19692 res.Body.Close()
19693 }
19694 return nil, gensupport.WrapError(&googleapi.Error{
19695 Code: res.StatusCode,
19696 Header: res.Header,
19697 })
19698 }
19699 if err != nil {
19700 return nil, err
19701 }
19702 defer googleapi.CloseBody(res)
19703 if err := googleapi.CheckResponse(res); err != nil {
19704 return nil, gensupport.WrapError(err)
19705 }
19706 ret := &GoogleCloudDialogflowCxV3beta1GenerativeSettings{
19707 ServerResponse: googleapi.ServerResponse{
19708 Header: res.Header,
19709 HTTPStatusCode: res.StatusCode,
19710 },
19711 }
19712 target := &ret
19713 if err := gensupport.DecodeResponse(target, res); err != nil {
19714 return nil, err
19715 }
19716 return ret, nil
19717 }
19718
19719 type ProjectsLocationsAgentsGetValidationResultCall struct {
19720 s *Service
19721 name string
19722 urlParams_ gensupport.URLParams
19723 ifNoneMatch_ string
19724 ctx_ context.Context
19725 header_ http.Header
19726 }
19727
19728
19729
19730
19731
19732
19733 func (r *ProjectsLocationsAgentsService) GetValidationResult(name string) *ProjectsLocationsAgentsGetValidationResultCall {
19734 c := &ProjectsLocationsAgentsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19735 c.name = name
19736 return c
19737 }
19738
19739
19740
19741 func (c *ProjectsLocationsAgentsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGetValidationResultCall {
19742 c.urlParams_.Set("languageCode", languageCode)
19743 return c
19744 }
19745
19746
19747
19748
19749 func (c *ProjectsLocationsAgentsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGetValidationResultCall {
19750 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19751 return c
19752 }
19753
19754
19755
19756
19757 func (c *ProjectsLocationsAgentsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGetValidationResultCall {
19758 c.ifNoneMatch_ = entityTag
19759 return c
19760 }
19761
19762
19763 func (c *ProjectsLocationsAgentsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsGetValidationResultCall {
19764 c.ctx_ = ctx
19765 return c
19766 }
19767
19768
19769
19770 func (c *ProjectsLocationsAgentsGetValidationResultCall) Header() http.Header {
19771 if c.header_ == nil {
19772 c.header_ = make(http.Header)
19773 }
19774 return c.header_
19775 }
19776
19777 func (c *ProjectsLocationsAgentsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
19778 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19779 if c.ifNoneMatch_ != "" {
19780 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19781 }
19782 var body io.Reader = nil
19783 c.urlParams_.Set("alt", alt)
19784 c.urlParams_.Set("prettyPrint", "false")
19785 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
19786 urls += "?" + c.urlParams_.Encode()
19787 req, err := http.NewRequest("GET", urls, body)
19788 if err != nil {
19789 return nil, err
19790 }
19791 req.Header = reqHeaders
19792 googleapi.Expand(req.URL, map[string]string{
19793 "name": c.name,
19794 })
19795 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19796 }
19797
19798
19799
19800
19801
19802
19803
19804 func (c *ProjectsLocationsAgentsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AgentValidationResult, error) {
19805 gensupport.SetOptions(c.urlParams_, opts...)
19806 res, err := c.doRequest("json")
19807 if res != nil && res.StatusCode == http.StatusNotModified {
19808 if res.Body != nil {
19809 res.Body.Close()
19810 }
19811 return nil, gensupport.WrapError(&googleapi.Error{
19812 Code: res.StatusCode,
19813 Header: res.Header,
19814 })
19815 }
19816 if err != nil {
19817 return nil, err
19818 }
19819 defer googleapi.CloseBody(res)
19820 if err := googleapi.CheckResponse(res); err != nil {
19821 return nil, gensupport.WrapError(err)
19822 }
19823 ret := &GoogleCloudDialogflowCxV3beta1AgentValidationResult{
19824 ServerResponse: googleapi.ServerResponse{
19825 Header: res.Header,
19826 HTTPStatusCode: res.StatusCode,
19827 },
19828 }
19829 target := &ret
19830 if err := gensupport.DecodeResponse(target, res); err != nil {
19831 return nil, err
19832 }
19833 return ret, nil
19834 }
19835
19836 type ProjectsLocationsAgentsListCall struct {
19837 s *Service
19838 parent string
19839 urlParams_ gensupport.URLParams
19840 ifNoneMatch_ string
19841 ctx_ context.Context
19842 header_ http.Header
19843 }
19844
19845
19846
19847
19848
19849 func (r *ProjectsLocationsAgentsService) List(parent string) *ProjectsLocationsAgentsListCall {
19850 c := &ProjectsLocationsAgentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19851 c.parent = parent
19852 return c
19853 }
19854
19855
19856
19857 func (c *ProjectsLocationsAgentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsListCall {
19858 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
19859 return c
19860 }
19861
19862
19863
19864 func (c *ProjectsLocationsAgentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsListCall {
19865 c.urlParams_.Set("pageToken", pageToken)
19866 return c
19867 }
19868
19869
19870
19871
19872 func (c *ProjectsLocationsAgentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsListCall {
19873 c.urlParams_.Set("fields", googleapi.CombineFields(s))
19874 return c
19875 }
19876
19877
19878
19879
19880 func (c *ProjectsLocationsAgentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsListCall {
19881 c.ifNoneMatch_ = entityTag
19882 return c
19883 }
19884
19885
19886 func (c *ProjectsLocationsAgentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsListCall {
19887 c.ctx_ = ctx
19888 return c
19889 }
19890
19891
19892
19893 func (c *ProjectsLocationsAgentsListCall) Header() http.Header {
19894 if c.header_ == nil {
19895 c.header_ = make(http.Header)
19896 }
19897 return c.header_
19898 }
19899
19900 func (c *ProjectsLocationsAgentsListCall) doRequest(alt string) (*http.Response, error) {
19901 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
19902 if c.ifNoneMatch_ != "" {
19903 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
19904 }
19905 var body io.Reader = nil
19906 c.urlParams_.Set("alt", alt)
19907 c.urlParams_.Set("prettyPrint", "false")
19908 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/agents")
19909 urls += "?" + c.urlParams_.Encode()
19910 req, err := http.NewRequest("GET", urls, body)
19911 if err != nil {
19912 return nil, err
19913 }
19914 req.Header = reqHeaders
19915 googleapi.Expand(req.URL, map[string]string{
19916 "parent": c.parent,
19917 })
19918 return gensupport.SendRequest(c.ctx_, c.s.client, req)
19919 }
19920
19921
19922
19923
19924
19925
19926
19927 func (c *ProjectsLocationsAgentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListAgentsResponse, error) {
19928 gensupport.SetOptions(c.urlParams_, opts...)
19929 res, err := c.doRequest("json")
19930 if res != nil && res.StatusCode == http.StatusNotModified {
19931 if res.Body != nil {
19932 res.Body.Close()
19933 }
19934 return nil, gensupport.WrapError(&googleapi.Error{
19935 Code: res.StatusCode,
19936 Header: res.Header,
19937 })
19938 }
19939 if err != nil {
19940 return nil, err
19941 }
19942 defer googleapi.CloseBody(res)
19943 if err := googleapi.CheckResponse(res); err != nil {
19944 return nil, gensupport.WrapError(err)
19945 }
19946 ret := &GoogleCloudDialogflowCxV3beta1ListAgentsResponse{
19947 ServerResponse: googleapi.ServerResponse{
19948 Header: res.Header,
19949 HTTPStatusCode: res.StatusCode,
19950 },
19951 }
19952 target := &ret
19953 if err := gensupport.DecodeResponse(target, res); err != nil {
19954 return nil, err
19955 }
19956 return ret, nil
19957 }
19958
19959
19960
19961
19962 func (c *ProjectsLocationsAgentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListAgentsResponse) error) error {
19963 c.ctx_ = ctx
19964 defer c.PageToken(c.urlParams_.Get("pageToken"))
19965 for {
19966 x, err := c.Do()
19967 if err != nil {
19968 return err
19969 }
19970 if err := f(x); err != nil {
19971 return err
19972 }
19973 if x.NextPageToken == "" {
19974 return nil
19975 }
19976 c.PageToken(x.NextPageToken)
19977 }
19978 }
19979
19980 type ProjectsLocationsAgentsPatchCall struct {
19981 s *Service
19982 nameid string
19983 googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent
19984 urlParams_ gensupport.URLParams
19985 ctx_ context.Context
19986 header_ http.Header
19987 }
19988
19989
19990
19991
19992
19993
19994
19995
19996 func (r *ProjectsLocationsAgentsService) Patch(nameid string, googleclouddialogflowcxv3beta1agent *GoogleCloudDialogflowCxV3beta1Agent) *ProjectsLocationsAgentsPatchCall {
19997 c := &ProjectsLocationsAgentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
19998 c.nameid = nameid
19999 c.googleclouddialogflowcxv3beta1agent = googleclouddialogflowcxv3beta1agent
20000 return c
20001 }
20002
20003
20004
20005
20006 func (c *ProjectsLocationsAgentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsPatchCall {
20007 c.urlParams_.Set("updateMask", updateMask)
20008 return c
20009 }
20010
20011
20012
20013
20014 func (c *ProjectsLocationsAgentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsPatchCall {
20015 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20016 return c
20017 }
20018
20019
20020 func (c *ProjectsLocationsAgentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsPatchCall {
20021 c.ctx_ = ctx
20022 return c
20023 }
20024
20025
20026
20027 func (c *ProjectsLocationsAgentsPatchCall) Header() http.Header {
20028 if c.header_ == nil {
20029 c.header_ = make(http.Header)
20030 }
20031 return c.header_
20032 }
20033
20034 func (c *ProjectsLocationsAgentsPatchCall) doRequest(alt string) (*http.Response, error) {
20035 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20036 var body io.Reader = nil
20037 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1agent)
20038 if err != nil {
20039 return nil, err
20040 }
20041 c.urlParams_.Set("alt", alt)
20042 c.urlParams_.Set("prettyPrint", "false")
20043 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
20044 urls += "?" + c.urlParams_.Encode()
20045 req, err := http.NewRequest("PATCH", urls, body)
20046 if err != nil {
20047 return nil, err
20048 }
20049 req.Header = reqHeaders
20050 googleapi.Expand(req.URL, map[string]string{
20051 "name": c.nameid,
20052 })
20053 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20054 }
20055
20056
20057
20058
20059
20060
20061
20062 func (c *ProjectsLocationsAgentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Agent, error) {
20063 gensupport.SetOptions(c.urlParams_, opts...)
20064 res, err := c.doRequest("json")
20065 if res != nil && res.StatusCode == http.StatusNotModified {
20066 if res.Body != nil {
20067 res.Body.Close()
20068 }
20069 return nil, gensupport.WrapError(&googleapi.Error{
20070 Code: res.StatusCode,
20071 Header: res.Header,
20072 })
20073 }
20074 if err != nil {
20075 return nil, err
20076 }
20077 defer googleapi.CloseBody(res)
20078 if err := googleapi.CheckResponse(res); err != nil {
20079 return nil, gensupport.WrapError(err)
20080 }
20081 ret := &GoogleCloudDialogflowCxV3beta1Agent{
20082 ServerResponse: googleapi.ServerResponse{
20083 Header: res.Header,
20084 HTTPStatusCode: res.StatusCode,
20085 },
20086 }
20087 target := &ret
20088 if err := gensupport.DecodeResponse(target, res); err != nil {
20089 return nil, err
20090 }
20091 return ret, nil
20092 }
20093
20094 type ProjectsLocationsAgentsRestoreCall struct {
20095 s *Service
20096 name string
20097 googleclouddialogflowcxv3beta1restoreagentrequest *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest
20098 urlParams_ gensupport.URLParams
20099 ctx_ context.Context
20100 header_ http.Header
20101 }
20102
20103
20104
20105
20106
20107
20108
20109
20110
20111
20112
20113
20114
20115
20116
20117
20118
20119 func (r *ProjectsLocationsAgentsService) Restore(name string, googleclouddialogflowcxv3beta1restoreagentrequest *GoogleCloudDialogflowCxV3beta1RestoreAgentRequest) *ProjectsLocationsAgentsRestoreCall {
20120 c := &ProjectsLocationsAgentsRestoreCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20121 c.name = name
20122 c.googleclouddialogflowcxv3beta1restoreagentrequest = googleclouddialogflowcxv3beta1restoreagentrequest
20123 return c
20124 }
20125
20126
20127
20128
20129 func (c *ProjectsLocationsAgentsRestoreCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsRestoreCall {
20130 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20131 return c
20132 }
20133
20134
20135 func (c *ProjectsLocationsAgentsRestoreCall) Context(ctx context.Context) *ProjectsLocationsAgentsRestoreCall {
20136 c.ctx_ = ctx
20137 return c
20138 }
20139
20140
20141
20142 func (c *ProjectsLocationsAgentsRestoreCall) Header() http.Header {
20143 if c.header_ == nil {
20144 c.header_ = make(http.Header)
20145 }
20146 return c.header_
20147 }
20148
20149 func (c *ProjectsLocationsAgentsRestoreCall) doRequest(alt string) (*http.Response, error) {
20150 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20151 var body io.Reader = nil
20152 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1restoreagentrequest)
20153 if err != nil {
20154 return nil, err
20155 }
20156 c.urlParams_.Set("alt", alt)
20157 c.urlParams_.Set("prettyPrint", "false")
20158 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:restore")
20159 urls += "?" + c.urlParams_.Encode()
20160 req, err := http.NewRequest("POST", urls, body)
20161 if err != nil {
20162 return nil, err
20163 }
20164 req.Header = reqHeaders
20165 googleapi.Expand(req.URL, map[string]string{
20166 "name": c.name,
20167 })
20168 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20169 }
20170
20171
20172
20173
20174
20175
20176
20177 func (c *ProjectsLocationsAgentsRestoreCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
20178 gensupport.SetOptions(c.urlParams_, opts...)
20179 res, err := c.doRequest("json")
20180 if res != nil && res.StatusCode == http.StatusNotModified {
20181 if res.Body != nil {
20182 res.Body.Close()
20183 }
20184 return nil, gensupport.WrapError(&googleapi.Error{
20185 Code: res.StatusCode,
20186 Header: res.Header,
20187 })
20188 }
20189 if err != nil {
20190 return nil, err
20191 }
20192 defer googleapi.CloseBody(res)
20193 if err := googleapi.CheckResponse(res); err != nil {
20194 return nil, gensupport.WrapError(err)
20195 }
20196 ret := &GoogleLongrunningOperation{
20197 ServerResponse: googleapi.ServerResponse{
20198 Header: res.Header,
20199 HTTPStatusCode: res.StatusCode,
20200 },
20201 }
20202 target := &ret
20203 if err := gensupport.DecodeResponse(target, res); err != nil {
20204 return nil, err
20205 }
20206 return ret, nil
20207 }
20208
20209 type ProjectsLocationsAgentsUpdateGenerativeSettingsCall struct {
20210 s *Service
20211 name string
20212 googleclouddialogflowcxv3beta1generativesettings *GoogleCloudDialogflowCxV3beta1GenerativeSettings
20213 urlParams_ gensupport.URLParams
20214 ctx_ context.Context
20215 header_ http.Header
20216 }
20217
20218
20219
20220
20221 func (r *ProjectsLocationsAgentsService) UpdateGenerativeSettings(name string, googleclouddialogflowcxv3beta1generativesettings *GoogleCloudDialogflowCxV3beta1GenerativeSettings) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
20222 c := &ProjectsLocationsAgentsUpdateGenerativeSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20223 c.name = name
20224 c.googleclouddialogflowcxv3beta1generativesettings = googleclouddialogflowcxv3beta1generativesettings
20225 return c
20226 }
20227
20228
20229
20230
20231 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
20232 c.urlParams_.Set("updateMask", updateMask)
20233 return c
20234 }
20235
20236
20237
20238
20239 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
20240 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20241 return c
20242 }
20243
20244
20245 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Context(ctx context.Context) *ProjectsLocationsAgentsUpdateGenerativeSettingsCall {
20246 c.ctx_ = ctx
20247 return c
20248 }
20249
20250
20251
20252 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Header() http.Header {
20253 if c.header_ == nil {
20254 c.header_ = make(http.Header)
20255 }
20256 return c.header_
20257 }
20258
20259 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) doRequest(alt string) (*http.Response, error) {
20260 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20261 var body io.Reader = nil
20262 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1generativesettings)
20263 if err != nil {
20264 return nil, err
20265 }
20266 c.urlParams_.Set("alt", alt)
20267 c.urlParams_.Set("prettyPrint", "false")
20268 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
20269 urls += "?" + c.urlParams_.Encode()
20270 req, err := http.NewRequest("PATCH", urls, body)
20271 if err != nil {
20272 return nil, err
20273 }
20274 req.Header = reqHeaders
20275 googleapi.Expand(req.URL, map[string]string{
20276 "name": c.name,
20277 })
20278 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20279 }
20280
20281
20282
20283
20284
20285
20286
20287 func (c *ProjectsLocationsAgentsUpdateGenerativeSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1GenerativeSettings, error) {
20288 gensupport.SetOptions(c.urlParams_, opts...)
20289 res, err := c.doRequest("json")
20290 if res != nil && res.StatusCode == http.StatusNotModified {
20291 if res.Body != nil {
20292 res.Body.Close()
20293 }
20294 return nil, gensupport.WrapError(&googleapi.Error{
20295 Code: res.StatusCode,
20296 Header: res.Header,
20297 })
20298 }
20299 if err != nil {
20300 return nil, err
20301 }
20302 defer googleapi.CloseBody(res)
20303 if err := googleapi.CheckResponse(res); err != nil {
20304 return nil, gensupport.WrapError(err)
20305 }
20306 ret := &GoogleCloudDialogflowCxV3beta1GenerativeSettings{
20307 ServerResponse: googleapi.ServerResponse{
20308 Header: res.Header,
20309 HTTPStatusCode: res.StatusCode,
20310 },
20311 }
20312 target := &ret
20313 if err := gensupport.DecodeResponse(target, res); err != nil {
20314 return nil, err
20315 }
20316 return ret, nil
20317 }
20318
20319 type ProjectsLocationsAgentsValidateCall struct {
20320 s *Service
20321 name string
20322 googleclouddialogflowcxv3beta1validateagentrequest *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest
20323 urlParams_ gensupport.URLParams
20324 ctx_ context.Context
20325 header_ http.Header
20326 }
20327
20328
20329
20330
20331
20332
20333 func (r *ProjectsLocationsAgentsService) Validate(name string, googleclouddialogflowcxv3beta1validateagentrequest *GoogleCloudDialogflowCxV3beta1ValidateAgentRequest) *ProjectsLocationsAgentsValidateCall {
20334 c := &ProjectsLocationsAgentsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20335 c.name = name
20336 c.googleclouddialogflowcxv3beta1validateagentrequest = googleclouddialogflowcxv3beta1validateagentrequest
20337 return c
20338 }
20339
20340
20341
20342
20343 func (c *ProjectsLocationsAgentsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsValidateCall {
20344 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20345 return c
20346 }
20347
20348
20349 func (c *ProjectsLocationsAgentsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsValidateCall {
20350 c.ctx_ = ctx
20351 return c
20352 }
20353
20354
20355
20356 func (c *ProjectsLocationsAgentsValidateCall) Header() http.Header {
20357 if c.header_ == nil {
20358 c.header_ = make(http.Header)
20359 }
20360 return c.header_
20361 }
20362
20363 func (c *ProjectsLocationsAgentsValidateCall) doRequest(alt string) (*http.Response, error) {
20364 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
20365 var body io.Reader = nil
20366 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1validateagentrequest)
20367 if err != nil {
20368 return nil, err
20369 }
20370 c.urlParams_.Set("alt", alt)
20371 c.urlParams_.Set("prettyPrint", "false")
20372 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:validate")
20373 urls += "?" + c.urlParams_.Encode()
20374 req, err := http.NewRequest("POST", urls, body)
20375 if err != nil {
20376 return nil, err
20377 }
20378 req.Header = reqHeaders
20379 googleapi.Expand(req.URL, map[string]string{
20380 "name": c.name,
20381 })
20382 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20383 }
20384
20385
20386
20387
20388
20389
20390
20391 func (c *ProjectsLocationsAgentsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AgentValidationResult, error) {
20392 gensupport.SetOptions(c.urlParams_, opts...)
20393 res, err := c.doRequest("json")
20394 if res != nil && res.StatusCode == http.StatusNotModified {
20395 if res.Body != nil {
20396 res.Body.Close()
20397 }
20398 return nil, gensupport.WrapError(&googleapi.Error{
20399 Code: res.StatusCode,
20400 Header: res.Header,
20401 })
20402 }
20403 if err != nil {
20404 return nil, err
20405 }
20406 defer googleapi.CloseBody(res)
20407 if err := googleapi.CheckResponse(res); err != nil {
20408 return nil, gensupport.WrapError(err)
20409 }
20410 ret := &GoogleCloudDialogflowCxV3beta1AgentValidationResult{
20411 ServerResponse: googleapi.ServerResponse{
20412 Header: res.Header,
20413 HTTPStatusCode: res.StatusCode,
20414 },
20415 }
20416 target := &ret
20417 if err := gensupport.DecodeResponse(target, res); err != nil {
20418 return nil, err
20419 }
20420 return ret, nil
20421 }
20422
20423 type ProjectsLocationsAgentsChangelogsGetCall struct {
20424 s *Service
20425 name string
20426 urlParams_ gensupport.URLParams
20427 ifNoneMatch_ string
20428 ctx_ context.Context
20429 header_ http.Header
20430 }
20431
20432
20433
20434
20435
20436 func (r *ProjectsLocationsAgentsChangelogsService) Get(name string) *ProjectsLocationsAgentsChangelogsGetCall {
20437 c := &ProjectsLocationsAgentsChangelogsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20438 c.name = name
20439 return c
20440 }
20441
20442
20443
20444
20445 func (c *ProjectsLocationsAgentsChangelogsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsChangelogsGetCall {
20446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20447 return c
20448 }
20449
20450
20451
20452
20453 func (c *ProjectsLocationsAgentsChangelogsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsChangelogsGetCall {
20454 c.ifNoneMatch_ = entityTag
20455 return c
20456 }
20457
20458
20459 func (c *ProjectsLocationsAgentsChangelogsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsChangelogsGetCall {
20460 c.ctx_ = ctx
20461 return c
20462 }
20463
20464
20465
20466 func (c *ProjectsLocationsAgentsChangelogsGetCall) Header() http.Header {
20467 if c.header_ == nil {
20468 c.header_ = make(http.Header)
20469 }
20470 return c.header_
20471 }
20472
20473 func (c *ProjectsLocationsAgentsChangelogsGetCall) doRequest(alt string) (*http.Response, error) {
20474 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20475 if c.ifNoneMatch_ != "" {
20476 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20477 }
20478 var body io.Reader = nil
20479 c.urlParams_.Set("alt", alt)
20480 c.urlParams_.Set("prettyPrint", "false")
20481 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
20482 urls += "?" + c.urlParams_.Encode()
20483 req, err := http.NewRequest("GET", urls, body)
20484 if err != nil {
20485 return nil, err
20486 }
20487 req.Header = reqHeaders
20488 googleapi.Expand(req.URL, map[string]string{
20489 "name": c.name,
20490 })
20491 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20492 }
20493
20494
20495
20496
20497
20498
20499
20500 func (c *ProjectsLocationsAgentsChangelogsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Changelog, error) {
20501 gensupport.SetOptions(c.urlParams_, opts...)
20502 res, err := c.doRequest("json")
20503 if res != nil && res.StatusCode == http.StatusNotModified {
20504 if res.Body != nil {
20505 res.Body.Close()
20506 }
20507 return nil, gensupport.WrapError(&googleapi.Error{
20508 Code: res.StatusCode,
20509 Header: res.Header,
20510 })
20511 }
20512 if err != nil {
20513 return nil, err
20514 }
20515 defer googleapi.CloseBody(res)
20516 if err := googleapi.CheckResponse(res); err != nil {
20517 return nil, gensupport.WrapError(err)
20518 }
20519 ret := &GoogleCloudDialogflowCxV3beta1Changelog{
20520 ServerResponse: googleapi.ServerResponse{
20521 Header: res.Header,
20522 HTTPStatusCode: res.StatusCode,
20523 },
20524 }
20525 target := &ret
20526 if err := gensupport.DecodeResponse(target, res); err != nil {
20527 return nil, err
20528 }
20529 return ret, nil
20530 }
20531
20532 type ProjectsLocationsAgentsChangelogsListCall struct {
20533 s *Service
20534 parent string
20535 urlParams_ gensupport.URLParams
20536 ifNoneMatch_ string
20537 ctx_ context.Context
20538 header_ http.Header
20539 }
20540
20541
20542
20543
20544
20545 func (r *ProjectsLocationsAgentsChangelogsService) List(parent string) *ProjectsLocationsAgentsChangelogsListCall {
20546 c := &ProjectsLocationsAgentsChangelogsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20547 c.parent = parent
20548 return c
20549 }
20550
20551
20552
20553
20554
20555
20556
20557
20558
20559
20560
20561
20562 func (c *ProjectsLocationsAgentsChangelogsListCall) Filter(filter string) *ProjectsLocationsAgentsChangelogsListCall {
20563 c.urlParams_.Set("filter", filter)
20564 return c
20565 }
20566
20567
20568
20569 func (c *ProjectsLocationsAgentsChangelogsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsChangelogsListCall {
20570 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20571 return c
20572 }
20573
20574
20575
20576 func (c *ProjectsLocationsAgentsChangelogsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsChangelogsListCall {
20577 c.urlParams_.Set("pageToken", pageToken)
20578 return c
20579 }
20580
20581
20582
20583
20584 func (c *ProjectsLocationsAgentsChangelogsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsChangelogsListCall {
20585 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20586 return c
20587 }
20588
20589
20590
20591
20592 func (c *ProjectsLocationsAgentsChangelogsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsChangelogsListCall {
20593 c.ifNoneMatch_ = entityTag
20594 return c
20595 }
20596
20597
20598 func (c *ProjectsLocationsAgentsChangelogsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsChangelogsListCall {
20599 c.ctx_ = ctx
20600 return c
20601 }
20602
20603
20604
20605 func (c *ProjectsLocationsAgentsChangelogsListCall) Header() http.Header {
20606 if c.header_ == nil {
20607 c.header_ = make(http.Header)
20608 }
20609 return c.header_
20610 }
20611
20612 func (c *ProjectsLocationsAgentsChangelogsListCall) doRequest(alt string) (*http.Response, error) {
20613 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20614 if c.ifNoneMatch_ != "" {
20615 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20616 }
20617 var body io.Reader = nil
20618 c.urlParams_.Set("alt", alt)
20619 c.urlParams_.Set("prettyPrint", "false")
20620 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/changelogs")
20621 urls += "?" + c.urlParams_.Encode()
20622 req, err := http.NewRequest("GET", urls, body)
20623 if err != nil {
20624 return nil, err
20625 }
20626 req.Header = reqHeaders
20627 googleapi.Expand(req.URL, map[string]string{
20628 "parent": c.parent,
20629 })
20630 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20631 }
20632
20633
20634
20635
20636
20637
20638
20639 func (c *ProjectsLocationsAgentsChangelogsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListChangelogsResponse, error) {
20640 gensupport.SetOptions(c.urlParams_, opts...)
20641 res, err := c.doRequest("json")
20642 if res != nil && res.StatusCode == http.StatusNotModified {
20643 if res.Body != nil {
20644 res.Body.Close()
20645 }
20646 return nil, gensupport.WrapError(&googleapi.Error{
20647 Code: res.StatusCode,
20648 Header: res.Header,
20649 })
20650 }
20651 if err != nil {
20652 return nil, err
20653 }
20654 defer googleapi.CloseBody(res)
20655 if err := googleapi.CheckResponse(res); err != nil {
20656 return nil, gensupport.WrapError(err)
20657 }
20658 ret := &GoogleCloudDialogflowCxV3beta1ListChangelogsResponse{
20659 ServerResponse: googleapi.ServerResponse{
20660 Header: res.Header,
20661 HTTPStatusCode: res.StatusCode,
20662 },
20663 }
20664 target := &ret
20665 if err := gensupport.DecodeResponse(target, res); err != nil {
20666 return nil, err
20667 }
20668 return ret, nil
20669 }
20670
20671
20672
20673
20674 func (c *ProjectsLocationsAgentsChangelogsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListChangelogsResponse) error) error {
20675 c.ctx_ = ctx
20676 defer c.PageToken(c.urlParams_.Get("pageToken"))
20677 for {
20678 x, err := c.Do()
20679 if err != nil {
20680 return err
20681 }
20682 if err := f(x); err != nil {
20683 return err
20684 }
20685 if x.NextPageToken == "" {
20686 return nil
20687 }
20688 c.PageToken(x.NextPageToken)
20689 }
20690 }
20691
20692 type ProjectsLocationsAgentsConversationsDeleteCall struct {
20693 s *Service
20694 name string
20695 urlParams_ gensupport.URLParams
20696 ctx_ context.Context
20697 header_ http.Header
20698 }
20699
20700
20701
20702
20703
20704 func (r *ProjectsLocationsAgentsConversationsService) Delete(name string) *ProjectsLocationsAgentsConversationsDeleteCall {
20705 c := &ProjectsLocationsAgentsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20706 c.name = name
20707 return c
20708 }
20709
20710
20711
20712
20713 func (c *ProjectsLocationsAgentsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsDeleteCall {
20714 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20715 return c
20716 }
20717
20718
20719 func (c *ProjectsLocationsAgentsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsDeleteCall {
20720 c.ctx_ = ctx
20721 return c
20722 }
20723
20724
20725
20726 func (c *ProjectsLocationsAgentsConversationsDeleteCall) Header() http.Header {
20727 if c.header_ == nil {
20728 c.header_ = make(http.Header)
20729 }
20730 return c.header_
20731 }
20732
20733 func (c *ProjectsLocationsAgentsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
20734 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20735 var body io.Reader = nil
20736 c.urlParams_.Set("alt", alt)
20737 c.urlParams_.Set("prettyPrint", "false")
20738 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
20739 urls += "?" + c.urlParams_.Encode()
20740 req, err := http.NewRequest("DELETE", urls, body)
20741 if err != nil {
20742 return nil, err
20743 }
20744 req.Header = reqHeaders
20745 googleapi.Expand(req.URL, map[string]string{
20746 "name": c.name,
20747 })
20748 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20749 }
20750
20751
20752
20753
20754
20755
20756
20757 func (c *ProjectsLocationsAgentsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
20758 gensupport.SetOptions(c.urlParams_, opts...)
20759 res, err := c.doRequest("json")
20760 if res != nil && res.StatusCode == http.StatusNotModified {
20761 if res.Body != nil {
20762 res.Body.Close()
20763 }
20764 return nil, gensupport.WrapError(&googleapi.Error{
20765 Code: res.StatusCode,
20766 Header: res.Header,
20767 })
20768 }
20769 if err != nil {
20770 return nil, err
20771 }
20772 defer googleapi.CloseBody(res)
20773 if err := googleapi.CheckResponse(res); err != nil {
20774 return nil, gensupport.WrapError(err)
20775 }
20776 ret := &GoogleProtobufEmpty{
20777 ServerResponse: googleapi.ServerResponse{
20778 Header: res.Header,
20779 HTTPStatusCode: res.StatusCode,
20780 },
20781 }
20782 target := &ret
20783 if err := gensupport.DecodeResponse(target, res); err != nil {
20784 return nil, err
20785 }
20786 return ret, nil
20787 }
20788
20789 type ProjectsLocationsAgentsConversationsGetCall struct {
20790 s *Service
20791 name string
20792 urlParams_ gensupport.URLParams
20793 ifNoneMatch_ string
20794 ctx_ context.Context
20795 header_ http.Header
20796 }
20797
20798
20799
20800
20801
20802 func (r *ProjectsLocationsAgentsConversationsService) Get(name string) *ProjectsLocationsAgentsConversationsGetCall {
20803 c := &ProjectsLocationsAgentsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20804 c.name = name
20805 return c
20806 }
20807
20808
20809
20810
20811 func (c *ProjectsLocationsAgentsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsGetCall {
20812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20813 return c
20814 }
20815
20816
20817
20818
20819 func (c *ProjectsLocationsAgentsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsConversationsGetCall {
20820 c.ifNoneMatch_ = entityTag
20821 return c
20822 }
20823
20824
20825 func (c *ProjectsLocationsAgentsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsGetCall {
20826 c.ctx_ = ctx
20827 return c
20828 }
20829
20830
20831
20832 func (c *ProjectsLocationsAgentsConversationsGetCall) Header() http.Header {
20833 if c.header_ == nil {
20834 c.header_ = make(http.Header)
20835 }
20836 return c.header_
20837 }
20838
20839 func (c *ProjectsLocationsAgentsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
20840 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20841 if c.ifNoneMatch_ != "" {
20842 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20843 }
20844 var body io.Reader = nil
20845 c.urlParams_.Set("alt", alt)
20846 c.urlParams_.Set("prettyPrint", "false")
20847 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
20848 urls += "?" + c.urlParams_.Encode()
20849 req, err := http.NewRequest("GET", urls, body)
20850 if err != nil {
20851 return nil, err
20852 }
20853 req.Header = reqHeaders
20854 googleapi.Expand(req.URL, map[string]string{
20855 "name": c.name,
20856 })
20857 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20858 }
20859
20860
20861
20862
20863
20864
20865
20866 func (c *ProjectsLocationsAgentsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Conversation, error) {
20867 gensupport.SetOptions(c.urlParams_, opts...)
20868 res, err := c.doRequest("json")
20869 if res != nil && res.StatusCode == http.StatusNotModified {
20870 if res.Body != nil {
20871 res.Body.Close()
20872 }
20873 return nil, gensupport.WrapError(&googleapi.Error{
20874 Code: res.StatusCode,
20875 Header: res.Header,
20876 })
20877 }
20878 if err != nil {
20879 return nil, err
20880 }
20881 defer googleapi.CloseBody(res)
20882 if err := googleapi.CheckResponse(res); err != nil {
20883 return nil, gensupport.WrapError(err)
20884 }
20885 ret := &GoogleCloudDialogflowCxV3beta1Conversation{
20886 ServerResponse: googleapi.ServerResponse{
20887 Header: res.Header,
20888 HTTPStatusCode: res.StatusCode,
20889 },
20890 }
20891 target := &ret
20892 if err := gensupport.DecodeResponse(target, res); err != nil {
20893 return nil, err
20894 }
20895 return ret, nil
20896 }
20897
20898 type ProjectsLocationsAgentsConversationsListCall struct {
20899 s *Service
20900 parent string
20901 urlParams_ gensupport.URLParams
20902 ifNoneMatch_ string
20903 ctx_ context.Context
20904 header_ http.Header
20905 }
20906
20907
20908
20909
20910
20911 func (r *ProjectsLocationsAgentsConversationsService) List(parent string) *ProjectsLocationsAgentsConversationsListCall {
20912 c := &ProjectsLocationsAgentsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
20913 c.parent = parent
20914 return c
20915 }
20916
20917
20918
20919
20920
20921
20922
20923
20924
20925 func (c *ProjectsLocationsAgentsConversationsListCall) Filter(filter string) *ProjectsLocationsAgentsConversationsListCall {
20926 c.urlParams_.Set("filter", filter)
20927 return c
20928 }
20929
20930
20931
20932 func (c *ProjectsLocationsAgentsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsConversationsListCall {
20933 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
20934 return c
20935 }
20936
20937
20938
20939 func (c *ProjectsLocationsAgentsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsConversationsListCall {
20940 c.urlParams_.Set("pageToken", pageToken)
20941 return c
20942 }
20943
20944
20945
20946
20947 func (c *ProjectsLocationsAgentsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsConversationsListCall {
20948 c.urlParams_.Set("fields", googleapi.CombineFields(s))
20949 return c
20950 }
20951
20952
20953
20954
20955 func (c *ProjectsLocationsAgentsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsConversationsListCall {
20956 c.ifNoneMatch_ = entityTag
20957 return c
20958 }
20959
20960
20961 func (c *ProjectsLocationsAgentsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsConversationsListCall {
20962 c.ctx_ = ctx
20963 return c
20964 }
20965
20966
20967
20968 func (c *ProjectsLocationsAgentsConversationsListCall) Header() http.Header {
20969 if c.header_ == nil {
20970 c.header_ = make(http.Header)
20971 }
20972 return c.header_
20973 }
20974
20975 func (c *ProjectsLocationsAgentsConversationsListCall) doRequest(alt string) (*http.Response, error) {
20976 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
20977 if c.ifNoneMatch_ != "" {
20978 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
20979 }
20980 var body io.Reader = nil
20981 c.urlParams_.Set("alt", alt)
20982 c.urlParams_.Set("prettyPrint", "false")
20983 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/conversations")
20984 urls += "?" + c.urlParams_.Encode()
20985 req, err := http.NewRequest("GET", urls, body)
20986 if err != nil {
20987 return nil, err
20988 }
20989 req.Header = reqHeaders
20990 googleapi.Expand(req.URL, map[string]string{
20991 "parent": c.parent,
20992 })
20993 return gensupport.SendRequest(c.ctx_, c.s.client, req)
20994 }
20995
20996
20997
20998
20999
21000
21001
21002 func (c *ProjectsLocationsAgentsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListConversationsResponse, error) {
21003 gensupport.SetOptions(c.urlParams_, opts...)
21004 res, err := c.doRequest("json")
21005 if res != nil && res.StatusCode == http.StatusNotModified {
21006 if res.Body != nil {
21007 res.Body.Close()
21008 }
21009 return nil, gensupport.WrapError(&googleapi.Error{
21010 Code: res.StatusCode,
21011 Header: res.Header,
21012 })
21013 }
21014 if err != nil {
21015 return nil, err
21016 }
21017 defer googleapi.CloseBody(res)
21018 if err := googleapi.CheckResponse(res); err != nil {
21019 return nil, gensupport.WrapError(err)
21020 }
21021 ret := &GoogleCloudDialogflowCxV3beta1ListConversationsResponse{
21022 ServerResponse: googleapi.ServerResponse{
21023 Header: res.Header,
21024 HTTPStatusCode: res.StatusCode,
21025 },
21026 }
21027 target := &ret
21028 if err := gensupport.DecodeResponse(target, res); err != nil {
21029 return nil, err
21030 }
21031 return ret, nil
21032 }
21033
21034
21035
21036
21037 func (c *ProjectsLocationsAgentsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListConversationsResponse) error) error {
21038 c.ctx_ = ctx
21039 defer c.PageToken(c.urlParams_.Get("pageToken"))
21040 for {
21041 x, err := c.Do()
21042 if err != nil {
21043 return err
21044 }
21045 if err := f(x); err != nil {
21046 return err
21047 }
21048 if x.NextPageToken == "" {
21049 return nil
21050 }
21051 c.PageToken(x.NextPageToken)
21052 }
21053 }
21054
21055 type ProjectsLocationsAgentsEntityTypesCreateCall struct {
21056 s *Service
21057 parent string
21058 googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType
21059 urlParams_ gensupport.URLParams
21060 ctx_ context.Context
21061 header_ http.Header
21062 }
21063
21064
21065
21066
21067
21068 func (r *ProjectsLocationsAgentsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType) *ProjectsLocationsAgentsEntityTypesCreateCall {
21069 c := &ProjectsLocationsAgentsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21070 c.parent = parent
21071 c.googleclouddialogflowcxv3beta1entitytype = googleclouddialogflowcxv3beta1entitytype
21072 return c
21073 }
21074
21075
21076
21077
21078
21079
21080
21081
21082 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesCreateCall {
21083 c.urlParams_.Set("languageCode", languageCode)
21084 return c
21085 }
21086
21087
21088
21089
21090 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesCreateCall {
21091 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21092 return c
21093 }
21094
21095
21096 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesCreateCall {
21097 c.ctx_ = ctx
21098 return c
21099 }
21100
21101
21102
21103 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Header() http.Header {
21104 if c.header_ == nil {
21105 c.header_ = make(http.Header)
21106 }
21107 return c.header_
21108 }
21109
21110 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
21111 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21112 var body io.Reader = nil
21113 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1entitytype)
21114 if err != nil {
21115 return nil, err
21116 }
21117 c.urlParams_.Set("alt", alt)
21118 c.urlParams_.Set("prettyPrint", "false")
21119 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
21120 urls += "?" + c.urlParams_.Encode()
21121 req, err := http.NewRequest("POST", urls, body)
21122 if err != nil {
21123 return nil, err
21124 }
21125 req.Header = reqHeaders
21126 googleapi.Expand(req.URL, map[string]string{
21127 "parent": c.parent,
21128 })
21129 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21130 }
21131
21132
21133
21134
21135
21136
21137
21138 func (c *ProjectsLocationsAgentsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
21139 gensupport.SetOptions(c.urlParams_, opts...)
21140 res, err := c.doRequest("json")
21141 if res != nil && res.StatusCode == http.StatusNotModified {
21142 if res.Body != nil {
21143 res.Body.Close()
21144 }
21145 return nil, gensupport.WrapError(&googleapi.Error{
21146 Code: res.StatusCode,
21147 Header: res.Header,
21148 })
21149 }
21150 if err != nil {
21151 return nil, err
21152 }
21153 defer googleapi.CloseBody(res)
21154 if err := googleapi.CheckResponse(res); err != nil {
21155 return nil, gensupport.WrapError(err)
21156 }
21157 ret := &GoogleCloudDialogflowCxV3beta1EntityType{
21158 ServerResponse: googleapi.ServerResponse{
21159 Header: res.Header,
21160 HTTPStatusCode: res.StatusCode,
21161 },
21162 }
21163 target := &ret
21164 if err := gensupport.DecodeResponse(target, res); err != nil {
21165 return nil, err
21166 }
21167 return ret, nil
21168 }
21169
21170 type ProjectsLocationsAgentsEntityTypesDeleteCall struct {
21171 s *Service
21172 name string
21173 urlParams_ gensupport.URLParams
21174 ctx_ context.Context
21175 header_ http.Header
21176 }
21177
21178
21179
21180
21181
21182
21183
21184 func (r *ProjectsLocationsAgentsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEntityTypesDeleteCall {
21185 c := &ProjectsLocationsAgentsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21186 c.name = name
21187 return c
21188 }
21189
21190
21191
21192
21193
21194
21195
21196
21197 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Force(force bool) *ProjectsLocationsAgentsEntityTypesDeleteCall {
21198 c.urlParams_.Set("force", fmt.Sprint(force))
21199 return c
21200 }
21201
21202
21203
21204
21205 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesDeleteCall {
21206 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21207 return c
21208 }
21209
21210
21211 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesDeleteCall {
21212 c.ctx_ = ctx
21213 return c
21214 }
21215
21216
21217
21218 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Header() http.Header {
21219 if c.header_ == nil {
21220 c.header_ = make(http.Header)
21221 }
21222 return c.header_
21223 }
21224
21225 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
21226 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21227 var body io.Reader = nil
21228 c.urlParams_.Set("alt", alt)
21229 c.urlParams_.Set("prettyPrint", "false")
21230 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21231 urls += "?" + c.urlParams_.Encode()
21232 req, err := http.NewRequest("DELETE", urls, body)
21233 if err != nil {
21234 return nil, err
21235 }
21236 req.Header = reqHeaders
21237 googleapi.Expand(req.URL, map[string]string{
21238 "name": c.name,
21239 })
21240 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21241 }
21242
21243
21244
21245
21246
21247
21248
21249 func (c *ProjectsLocationsAgentsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
21250 gensupport.SetOptions(c.urlParams_, opts...)
21251 res, err := c.doRequest("json")
21252 if res != nil && res.StatusCode == http.StatusNotModified {
21253 if res.Body != nil {
21254 res.Body.Close()
21255 }
21256 return nil, gensupport.WrapError(&googleapi.Error{
21257 Code: res.StatusCode,
21258 Header: res.Header,
21259 })
21260 }
21261 if err != nil {
21262 return nil, err
21263 }
21264 defer googleapi.CloseBody(res)
21265 if err := googleapi.CheckResponse(res); err != nil {
21266 return nil, gensupport.WrapError(err)
21267 }
21268 ret := &GoogleProtobufEmpty{
21269 ServerResponse: googleapi.ServerResponse{
21270 Header: res.Header,
21271 HTTPStatusCode: res.StatusCode,
21272 },
21273 }
21274 target := &ret
21275 if err := gensupport.DecodeResponse(target, res); err != nil {
21276 return nil, err
21277 }
21278 return ret, nil
21279 }
21280
21281 type ProjectsLocationsAgentsEntityTypesExportCall struct {
21282 s *Service
21283 parent string
21284 googleclouddialogflowcxv3beta1exportentitytypesrequest *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest
21285 urlParams_ gensupport.URLParams
21286 ctx_ context.Context
21287 header_ http.Header
21288 }
21289
21290
21291
21292
21293
21294 func (r *ProjectsLocationsAgentsEntityTypesService) Export(parent string, googleclouddialogflowcxv3beta1exportentitytypesrequest *GoogleCloudDialogflowCxV3beta1ExportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesExportCall {
21295 c := &ProjectsLocationsAgentsEntityTypesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21296 c.parent = parent
21297 c.googleclouddialogflowcxv3beta1exportentitytypesrequest = googleclouddialogflowcxv3beta1exportentitytypesrequest
21298 return c
21299 }
21300
21301
21302
21303
21304 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesExportCall {
21305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21306 return c
21307 }
21308
21309
21310 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesExportCall {
21311 c.ctx_ = ctx
21312 return c
21313 }
21314
21315
21316
21317 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Header() http.Header {
21318 if c.header_ == nil {
21319 c.header_ = make(http.Header)
21320 }
21321 return c.header_
21322 }
21323
21324 func (c *ProjectsLocationsAgentsEntityTypesExportCall) doRequest(alt string) (*http.Response, error) {
21325 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21326 var body io.Reader = nil
21327 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportentitytypesrequest)
21328 if err != nil {
21329 return nil, err
21330 }
21331 c.urlParams_.Set("alt", alt)
21332 c.urlParams_.Set("prettyPrint", "false")
21333 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes:export")
21334 urls += "?" + c.urlParams_.Encode()
21335 req, err := http.NewRequest("POST", urls, body)
21336 if err != nil {
21337 return nil, err
21338 }
21339 req.Header = reqHeaders
21340 googleapi.Expand(req.URL, map[string]string{
21341 "parent": c.parent,
21342 })
21343 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21344 }
21345
21346
21347
21348
21349
21350
21351
21352 func (c *ProjectsLocationsAgentsEntityTypesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21353 gensupport.SetOptions(c.urlParams_, opts...)
21354 res, err := c.doRequest("json")
21355 if res != nil && res.StatusCode == http.StatusNotModified {
21356 if res.Body != nil {
21357 res.Body.Close()
21358 }
21359 return nil, gensupport.WrapError(&googleapi.Error{
21360 Code: res.StatusCode,
21361 Header: res.Header,
21362 })
21363 }
21364 if err != nil {
21365 return nil, err
21366 }
21367 defer googleapi.CloseBody(res)
21368 if err := googleapi.CheckResponse(res); err != nil {
21369 return nil, gensupport.WrapError(err)
21370 }
21371 ret := &GoogleLongrunningOperation{
21372 ServerResponse: googleapi.ServerResponse{
21373 Header: res.Header,
21374 HTTPStatusCode: res.StatusCode,
21375 },
21376 }
21377 target := &ret
21378 if err := gensupport.DecodeResponse(target, res); err != nil {
21379 return nil, err
21380 }
21381 return ret, nil
21382 }
21383
21384 type ProjectsLocationsAgentsEntityTypesGetCall struct {
21385 s *Service
21386 name string
21387 urlParams_ gensupport.URLParams
21388 ifNoneMatch_ string
21389 ctx_ context.Context
21390 header_ http.Header
21391 }
21392
21393
21394
21395
21396
21397 func (r *ProjectsLocationsAgentsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEntityTypesGetCall {
21398 c := &ProjectsLocationsAgentsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21399 c.name = name
21400 return c
21401 }
21402
21403
21404
21405
21406
21407
21408
21409
21410
21411 func (c *ProjectsLocationsAgentsEntityTypesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesGetCall {
21412 c.urlParams_.Set("languageCode", languageCode)
21413 return c
21414 }
21415
21416
21417
21418
21419 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesGetCall {
21420 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21421 return c
21422 }
21423
21424
21425
21426
21427 func (c *ProjectsLocationsAgentsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesGetCall {
21428 c.ifNoneMatch_ = entityTag
21429 return c
21430 }
21431
21432
21433 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesGetCall {
21434 c.ctx_ = ctx
21435 return c
21436 }
21437
21438
21439
21440 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Header() http.Header {
21441 if c.header_ == nil {
21442 c.header_ = make(http.Header)
21443 }
21444 return c.header_
21445 }
21446
21447 func (c *ProjectsLocationsAgentsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
21448 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21449 if c.ifNoneMatch_ != "" {
21450 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21451 }
21452 var body io.Reader = nil
21453 c.urlParams_.Set("alt", alt)
21454 c.urlParams_.Set("prettyPrint", "false")
21455 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21456 urls += "?" + c.urlParams_.Encode()
21457 req, err := http.NewRequest("GET", urls, body)
21458 if err != nil {
21459 return nil, err
21460 }
21461 req.Header = reqHeaders
21462 googleapi.Expand(req.URL, map[string]string{
21463 "name": c.name,
21464 })
21465 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21466 }
21467
21468
21469
21470
21471
21472
21473
21474 func (c *ProjectsLocationsAgentsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
21475 gensupport.SetOptions(c.urlParams_, opts...)
21476 res, err := c.doRequest("json")
21477 if res != nil && res.StatusCode == http.StatusNotModified {
21478 if res.Body != nil {
21479 res.Body.Close()
21480 }
21481 return nil, gensupport.WrapError(&googleapi.Error{
21482 Code: res.StatusCode,
21483 Header: res.Header,
21484 })
21485 }
21486 if err != nil {
21487 return nil, err
21488 }
21489 defer googleapi.CloseBody(res)
21490 if err := googleapi.CheckResponse(res); err != nil {
21491 return nil, gensupport.WrapError(err)
21492 }
21493 ret := &GoogleCloudDialogflowCxV3beta1EntityType{
21494 ServerResponse: googleapi.ServerResponse{
21495 Header: res.Header,
21496 HTTPStatusCode: res.StatusCode,
21497 },
21498 }
21499 target := &ret
21500 if err := gensupport.DecodeResponse(target, res); err != nil {
21501 return nil, err
21502 }
21503 return ret, nil
21504 }
21505
21506 type ProjectsLocationsAgentsEntityTypesImportCall struct {
21507 s *Service
21508 parent string
21509 googleclouddialogflowcxv3beta1importentitytypesrequest *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest
21510 urlParams_ gensupport.URLParams
21511 ctx_ context.Context
21512 header_ http.Header
21513 }
21514
21515
21516
21517
21518
21519 func (r *ProjectsLocationsAgentsEntityTypesService) Import(parent string, googleclouddialogflowcxv3beta1importentitytypesrequest *GoogleCloudDialogflowCxV3beta1ImportEntityTypesRequest) *ProjectsLocationsAgentsEntityTypesImportCall {
21520 c := &ProjectsLocationsAgentsEntityTypesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21521 c.parent = parent
21522 c.googleclouddialogflowcxv3beta1importentitytypesrequest = googleclouddialogflowcxv3beta1importentitytypesrequest
21523 return c
21524 }
21525
21526
21527
21528
21529 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesImportCall {
21530 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21531 return c
21532 }
21533
21534
21535 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesImportCall {
21536 c.ctx_ = ctx
21537 return c
21538 }
21539
21540
21541
21542 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Header() http.Header {
21543 if c.header_ == nil {
21544 c.header_ = make(http.Header)
21545 }
21546 return c.header_
21547 }
21548
21549 func (c *ProjectsLocationsAgentsEntityTypesImportCall) doRequest(alt string) (*http.Response, error) {
21550 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21551 var body io.Reader = nil
21552 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importentitytypesrequest)
21553 if err != nil {
21554 return nil, err
21555 }
21556 c.urlParams_.Set("alt", alt)
21557 c.urlParams_.Set("prettyPrint", "false")
21558 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes:import")
21559 urls += "?" + c.urlParams_.Encode()
21560 req, err := http.NewRequest("POST", urls, body)
21561 if err != nil {
21562 return nil, err
21563 }
21564 req.Header = reqHeaders
21565 googleapi.Expand(req.URL, map[string]string{
21566 "parent": c.parent,
21567 })
21568 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21569 }
21570
21571
21572
21573
21574
21575
21576
21577 func (c *ProjectsLocationsAgentsEntityTypesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21578 gensupport.SetOptions(c.urlParams_, opts...)
21579 res, err := c.doRequest("json")
21580 if res != nil && res.StatusCode == http.StatusNotModified {
21581 if res.Body != nil {
21582 res.Body.Close()
21583 }
21584 return nil, gensupport.WrapError(&googleapi.Error{
21585 Code: res.StatusCode,
21586 Header: res.Header,
21587 })
21588 }
21589 if err != nil {
21590 return nil, err
21591 }
21592 defer googleapi.CloseBody(res)
21593 if err := googleapi.CheckResponse(res); err != nil {
21594 return nil, gensupport.WrapError(err)
21595 }
21596 ret := &GoogleLongrunningOperation{
21597 ServerResponse: googleapi.ServerResponse{
21598 Header: res.Header,
21599 HTTPStatusCode: res.StatusCode,
21600 },
21601 }
21602 target := &ret
21603 if err := gensupport.DecodeResponse(target, res); err != nil {
21604 return nil, err
21605 }
21606 return ret, nil
21607 }
21608
21609 type ProjectsLocationsAgentsEntityTypesListCall struct {
21610 s *Service
21611 parent string
21612 urlParams_ gensupport.URLParams
21613 ifNoneMatch_ string
21614 ctx_ context.Context
21615 header_ http.Header
21616 }
21617
21618
21619
21620
21621
21622 func (r *ProjectsLocationsAgentsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEntityTypesListCall {
21623 c := &ProjectsLocationsAgentsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21624 c.parent = parent
21625 return c
21626 }
21627
21628
21629
21630
21631
21632
21633
21634
21635
21636 func (c *ProjectsLocationsAgentsEntityTypesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesListCall {
21637 c.urlParams_.Set("languageCode", languageCode)
21638 return c
21639 }
21640
21641
21642
21643 func (c *ProjectsLocationsAgentsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEntityTypesListCall {
21644 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
21645 return c
21646 }
21647
21648
21649
21650 func (c *ProjectsLocationsAgentsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEntityTypesListCall {
21651 c.urlParams_.Set("pageToken", pageToken)
21652 return c
21653 }
21654
21655
21656
21657
21658 func (c *ProjectsLocationsAgentsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesListCall {
21659 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21660 return c
21661 }
21662
21663
21664
21665
21666 func (c *ProjectsLocationsAgentsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEntityTypesListCall {
21667 c.ifNoneMatch_ = entityTag
21668 return c
21669 }
21670
21671
21672 func (c *ProjectsLocationsAgentsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesListCall {
21673 c.ctx_ = ctx
21674 return c
21675 }
21676
21677
21678
21679 func (c *ProjectsLocationsAgentsEntityTypesListCall) Header() http.Header {
21680 if c.header_ == nil {
21681 c.header_ = make(http.Header)
21682 }
21683 return c.header_
21684 }
21685
21686 func (c *ProjectsLocationsAgentsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
21687 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
21688 if c.ifNoneMatch_ != "" {
21689 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
21690 }
21691 var body io.Reader = nil
21692 c.urlParams_.Set("alt", alt)
21693 c.urlParams_.Set("prettyPrint", "false")
21694 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
21695 urls += "?" + c.urlParams_.Encode()
21696 req, err := http.NewRequest("GET", urls, body)
21697 if err != nil {
21698 return nil, err
21699 }
21700 req.Header = reqHeaders
21701 googleapi.Expand(req.URL, map[string]string{
21702 "parent": c.parent,
21703 })
21704 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21705 }
21706
21707
21708
21709
21710
21711
21712
21713 func (c *ProjectsLocationsAgentsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse, error) {
21714 gensupport.SetOptions(c.urlParams_, opts...)
21715 res, err := c.doRequest("json")
21716 if res != nil && res.StatusCode == http.StatusNotModified {
21717 if res.Body != nil {
21718 res.Body.Close()
21719 }
21720 return nil, gensupport.WrapError(&googleapi.Error{
21721 Code: res.StatusCode,
21722 Header: res.Header,
21723 })
21724 }
21725 if err != nil {
21726 return nil, err
21727 }
21728 defer googleapi.CloseBody(res)
21729 if err := googleapi.CheckResponse(res); err != nil {
21730 return nil, gensupport.WrapError(err)
21731 }
21732 ret := &GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse{
21733 ServerResponse: googleapi.ServerResponse{
21734 Header: res.Header,
21735 HTTPStatusCode: res.StatusCode,
21736 },
21737 }
21738 target := &ret
21739 if err := gensupport.DecodeResponse(target, res); err != nil {
21740 return nil, err
21741 }
21742 return ret, nil
21743 }
21744
21745
21746
21747
21748 func (c *ProjectsLocationsAgentsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListEntityTypesResponse) error) error {
21749 c.ctx_ = ctx
21750 defer c.PageToken(c.urlParams_.Get("pageToken"))
21751 for {
21752 x, err := c.Do()
21753 if err != nil {
21754 return err
21755 }
21756 if err := f(x); err != nil {
21757 return err
21758 }
21759 if x.NextPageToken == "" {
21760 return nil
21761 }
21762 c.PageToken(x.NextPageToken)
21763 }
21764 }
21765
21766 type ProjectsLocationsAgentsEntityTypesPatchCall struct {
21767 s *Service
21768 nameid string
21769 googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType
21770 urlParams_ gensupport.URLParams
21771 ctx_ context.Context
21772 header_ http.Header
21773 }
21774
21775
21776
21777
21778
21779
21780
21781
21782 func (r *ProjectsLocationsAgentsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1entitytype *GoogleCloudDialogflowCxV3beta1EntityType) *ProjectsLocationsAgentsEntityTypesPatchCall {
21783 c := &ProjectsLocationsAgentsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21784 c.nameid = nameid
21785 c.googleclouddialogflowcxv3beta1entitytype = googleclouddialogflowcxv3beta1entitytype
21786 return c
21787 }
21788
21789
21790
21791
21792
21793
21794
21795
21796 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsEntityTypesPatchCall {
21797 c.urlParams_.Set("languageCode", languageCode)
21798 return c
21799 }
21800
21801
21802
21803 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEntityTypesPatchCall {
21804 c.urlParams_.Set("updateMask", updateMask)
21805 return c
21806 }
21807
21808
21809
21810
21811 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEntityTypesPatchCall {
21812 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21813 return c
21814 }
21815
21816
21817 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEntityTypesPatchCall {
21818 c.ctx_ = ctx
21819 return c
21820 }
21821
21822
21823
21824 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Header() http.Header {
21825 if c.header_ == nil {
21826 c.header_ = make(http.Header)
21827 }
21828 return c.header_
21829 }
21830
21831 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
21832 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21833 var body io.Reader = nil
21834 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1entitytype)
21835 if err != nil {
21836 return nil, err
21837 }
21838 c.urlParams_.Set("alt", alt)
21839 c.urlParams_.Set("prettyPrint", "false")
21840 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
21841 urls += "?" + c.urlParams_.Encode()
21842 req, err := http.NewRequest("PATCH", urls, body)
21843 if err != nil {
21844 return nil, err
21845 }
21846 req.Header = reqHeaders
21847 googleapi.Expand(req.URL, map[string]string{
21848 "name": c.nameid,
21849 })
21850 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21851 }
21852
21853
21854
21855
21856
21857
21858
21859 func (c *ProjectsLocationsAgentsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1EntityType, error) {
21860 gensupport.SetOptions(c.urlParams_, opts...)
21861 res, err := c.doRequest("json")
21862 if res != nil && res.StatusCode == http.StatusNotModified {
21863 if res.Body != nil {
21864 res.Body.Close()
21865 }
21866 return nil, gensupport.WrapError(&googleapi.Error{
21867 Code: res.StatusCode,
21868 Header: res.Header,
21869 })
21870 }
21871 if err != nil {
21872 return nil, err
21873 }
21874 defer googleapi.CloseBody(res)
21875 if err := googleapi.CheckResponse(res); err != nil {
21876 return nil, gensupport.WrapError(err)
21877 }
21878 ret := &GoogleCloudDialogflowCxV3beta1EntityType{
21879 ServerResponse: googleapi.ServerResponse{
21880 Header: res.Header,
21881 HTTPStatusCode: res.StatusCode,
21882 },
21883 }
21884 target := &ret
21885 if err := gensupport.DecodeResponse(target, res); err != nil {
21886 return nil, err
21887 }
21888 return ret, nil
21889 }
21890
21891 type ProjectsLocationsAgentsEnvironmentsCreateCall struct {
21892 s *Service
21893 parent string
21894 googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment
21895 urlParams_ gensupport.URLParams
21896 ctx_ context.Context
21897 header_ http.Header
21898 }
21899
21900
21901
21902
21903
21904
21905
21906
21907
21908
21909
21910 func (r *ProjectsLocationsAgentsEnvironmentsService) Create(parent string, googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment) *ProjectsLocationsAgentsEnvironmentsCreateCall {
21911 c := &ProjectsLocationsAgentsEnvironmentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
21912 c.parent = parent
21913 c.googleclouddialogflowcxv3beta1environment = googleclouddialogflowcxv3beta1environment
21914 return c
21915 }
21916
21917
21918
21919
21920 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsCreateCall {
21921 c.urlParams_.Set("fields", googleapi.CombineFields(s))
21922 return c
21923 }
21924
21925
21926 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsCreateCall {
21927 c.ctx_ = ctx
21928 return c
21929 }
21930
21931
21932
21933 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Header() http.Header {
21934 if c.header_ == nil {
21935 c.header_ = make(http.Header)
21936 }
21937 return c.header_
21938 }
21939
21940 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) doRequest(alt string) (*http.Response, error) {
21941 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
21942 var body io.Reader = nil
21943 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1environment)
21944 if err != nil {
21945 return nil, err
21946 }
21947 c.urlParams_.Set("alt", alt)
21948 c.urlParams_.Set("prettyPrint", "false")
21949 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/environments")
21950 urls += "?" + c.urlParams_.Encode()
21951 req, err := http.NewRequest("POST", urls, body)
21952 if err != nil {
21953 return nil, err
21954 }
21955 req.Header = reqHeaders
21956 googleapi.Expand(req.URL, map[string]string{
21957 "parent": c.parent,
21958 })
21959 return gensupport.SendRequest(c.ctx_, c.s.client, req)
21960 }
21961
21962
21963
21964
21965
21966
21967
21968 func (c *ProjectsLocationsAgentsEnvironmentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
21969 gensupport.SetOptions(c.urlParams_, opts...)
21970 res, err := c.doRequest("json")
21971 if res != nil && res.StatusCode == http.StatusNotModified {
21972 if res.Body != nil {
21973 res.Body.Close()
21974 }
21975 return nil, gensupport.WrapError(&googleapi.Error{
21976 Code: res.StatusCode,
21977 Header: res.Header,
21978 })
21979 }
21980 if err != nil {
21981 return nil, err
21982 }
21983 defer googleapi.CloseBody(res)
21984 if err := googleapi.CheckResponse(res); err != nil {
21985 return nil, gensupport.WrapError(err)
21986 }
21987 ret := &GoogleLongrunningOperation{
21988 ServerResponse: googleapi.ServerResponse{
21989 Header: res.Header,
21990 HTTPStatusCode: res.StatusCode,
21991 },
21992 }
21993 target := &ret
21994 if err := gensupport.DecodeResponse(target, res); err != nil {
21995 return nil, err
21996 }
21997 return ret, nil
21998 }
21999
22000 type ProjectsLocationsAgentsEnvironmentsDeleteCall struct {
22001 s *Service
22002 name string
22003 urlParams_ gensupport.URLParams
22004 ctx_ context.Context
22005 header_ http.Header
22006 }
22007
22008
22009
22010
22011
22012 func (r *ProjectsLocationsAgentsEnvironmentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
22013 c := &ProjectsLocationsAgentsEnvironmentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22014 c.name = name
22015 return c
22016 }
22017
22018
22019
22020
22021 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
22022 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22023 return c
22024 }
22025
22026
22027 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeleteCall {
22028 c.ctx_ = ctx
22029 return c
22030 }
22031
22032
22033
22034 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Header() http.Header {
22035 if c.header_ == nil {
22036 c.header_ = make(http.Header)
22037 }
22038 return c.header_
22039 }
22040
22041 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) doRequest(alt string) (*http.Response, error) {
22042 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22043 var body io.Reader = nil
22044 c.urlParams_.Set("alt", alt)
22045 c.urlParams_.Set("prettyPrint", "false")
22046 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
22047 urls += "?" + c.urlParams_.Encode()
22048 req, err := http.NewRequest("DELETE", urls, body)
22049 if err != nil {
22050 return nil, err
22051 }
22052 req.Header = reqHeaders
22053 googleapi.Expand(req.URL, map[string]string{
22054 "name": c.name,
22055 })
22056 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22057 }
22058
22059
22060
22061
22062
22063
22064
22065 func (c *ProjectsLocationsAgentsEnvironmentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
22066 gensupport.SetOptions(c.urlParams_, opts...)
22067 res, err := c.doRequest("json")
22068 if res != nil && res.StatusCode == http.StatusNotModified {
22069 if res.Body != nil {
22070 res.Body.Close()
22071 }
22072 return nil, gensupport.WrapError(&googleapi.Error{
22073 Code: res.StatusCode,
22074 Header: res.Header,
22075 })
22076 }
22077 if err != nil {
22078 return nil, err
22079 }
22080 defer googleapi.CloseBody(res)
22081 if err := googleapi.CheckResponse(res); err != nil {
22082 return nil, gensupport.WrapError(err)
22083 }
22084 ret := &GoogleProtobufEmpty{
22085 ServerResponse: googleapi.ServerResponse{
22086 Header: res.Header,
22087 HTTPStatusCode: res.StatusCode,
22088 },
22089 }
22090 target := &ret
22091 if err := gensupport.DecodeResponse(target, res); err != nil {
22092 return nil, err
22093 }
22094 return ret, nil
22095 }
22096
22097 type ProjectsLocationsAgentsEnvironmentsDeployFlowCall struct {
22098 s *Service
22099 environment string
22100 googleclouddialogflowcxv3beta1deployflowrequest *GoogleCloudDialogflowCxV3beta1DeployFlowRequest
22101 urlParams_ gensupport.URLParams
22102 ctx_ context.Context
22103 header_ http.Header
22104 }
22105
22106
22107
22108
22109
22110
22111
22112
22113
22114 func (r *ProjectsLocationsAgentsEnvironmentsService) DeployFlow(environment string, googleclouddialogflowcxv3beta1deployflowrequest *GoogleCloudDialogflowCxV3beta1DeployFlowRequest) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
22115 c := &ProjectsLocationsAgentsEnvironmentsDeployFlowCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22116 c.environment = environment
22117 c.googleclouddialogflowcxv3beta1deployflowrequest = googleclouddialogflowcxv3beta1deployflowrequest
22118 return c
22119 }
22120
22121
22122
22123
22124 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
22125 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22126 return c
22127 }
22128
22129
22130 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeployFlowCall {
22131 c.ctx_ = ctx
22132 return c
22133 }
22134
22135
22136
22137 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Header() http.Header {
22138 if c.header_ == nil {
22139 c.header_ = make(http.Header)
22140 }
22141 return c.header_
22142 }
22143
22144 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) doRequest(alt string) (*http.Response, error) {
22145 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22146 var body io.Reader = nil
22147 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1deployflowrequest)
22148 if err != nil {
22149 return nil, err
22150 }
22151 c.urlParams_.Set("alt", alt)
22152 c.urlParams_.Set("prettyPrint", "false")
22153 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+environment}:deployFlow")
22154 urls += "?" + c.urlParams_.Encode()
22155 req, err := http.NewRequest("POST", urls, body)
22156 if err != nil {
22157 return nil, err
22158 }
22159 req.Header = reqHeaders
22160 googleapi.Expand(req.URL, map[string]string{
22161 "environment": c.environment,
22162 })
22163 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22164 }
22165
22166
22167
22168
22169
22170
22171
22172 func (c *ProjectsLocationsAgentsEnvironmentsDeployFlowCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22173 gensupport.SetOptions(c.urlParams_, opts...)
22174 res, err := c.doRequest("json")
22175 if res != nil && res.StatusCode == http.StatusNotModified {
22176 if res.Body != nil {
22177 res.Body.Close()
22178 }
22179 return nil, gensupport.WrapError(&googleapi.Error{
22180 Code: res.StatusCode,
22181 Header: res.Header,
22182 })
22183 }
22184 if err != nil {
22185 return nil, err
22186 }
22187 defer googleapi.CloseBody(res)
22188 if err := googleapi.CheckResponse(res); err != nil {
22189 return nil, gensupport.WrapError(err)
22190 }
22191 ret := &GoogleLongrunningOperation{
22192 ServerResponse: googleapi.ServerResponse{
22193 Header: res.Header,
22194 HTTPStatusCode: res.StatusCode,
22195 },
22196 }
22197 target := &ret
22198 if err := gensupport.DecodeResponse(target, res); err != nil {
22199 return nil, err
22200 }
22201 return ret, nil
22202 }
22203
22204 type ProjectsLocationsAgentsEnvironmentsGetCall struct {
22205 s *Service
22206 name string
22207 urlParams_ gensupport.URLParams
22208 ifNoneMatch_ string
22209 ctx_ context.Context
22210 header_ http.Header
22211 }
22212
22213
22214
22215
22216
22217 func (r *ProjectsLocationsAgentsEnvironmentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsGetCall {
22218 c := &ProjectsLocationsAgentsEnvironmentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22219 c.name = name
22220 return c
22221 }
22222
22223
22224
22225
22226 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsGetCall {
22227 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22228 return c
22229 }
22230
22231
22232
22233
22234 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsGetCall {
22235 c.ifNoneMatch_ = entityTag
22236 return c
22237 }
22238
22239
22240 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsGetCall {
22241 c.ctx_ = ctx
22242 return c
22243 }
22244
22245
22246
22247 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Header() http.Header {
22248 if c.header_ == nil {
22249 c.header_ = make(http.Header)
22250 }
22251 return c.header_
22252 }
22253
22254 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) doRequest(alt string) (*http.Response, error) {
22255 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22256 if c.ifNoneMatch_ != "" {
22257 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22258 }
22259 var body io.Reader = nil
22260 c.urlParams_.Set("alt", alt)
22261 c.urlParams_.Set("prettyPrint", "false")
22262 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
22263 urls += "?" + c.urlParams_.Encode()
22264 req, err := http.NewRequest("GET", urls, body)
22265 if err != nil {
22266 return nil, err
22267 }
22268 req.Header = reqHeaders
22269 googleapi.Expand(req.URL, map[string]string{
22270 "name": c.name,
22271 })
22272 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22273 }
22274
22275
22276
22277
22278
22279
22280
22281 func (c *ProjectsLocationsAgentsEnvironmentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Environment, error) {
22282 gensupport.SetOptions(c.urlParams_, opts...)
22283 res, err := c.doRequest("json")
22284 if res != nil && res.StatusCode == http.StatusNotModified {
22285 if res.Body != nil {
22286 res.Body.Close()
22287 }
22288 return nil, gensupport.WrapError(&googleapi.Error{
22289 Code: res.StatusCode,
22290 Header: res.Header,
22291 })
22292 }
22293 if err != nil {
22294 return nil, err
22295 }
22296 defer googleapi.CloseBody(res)
22297 if err := googleapi.CheckResponse(res); err != nil {
22298 return nil, gensupport.WrapError(err)
22299 }
22300 ret := &GoogleCloudDialogflowCxV3beta1Environment{
22301 ServerResponse: googleapi.ServerResponse{
22302 Header: res.Header,
22303 HTTPStatusCode: res.StatusCode,
22304 },
22305 }
22306 target := &ret
22307 if err := gensupport.DecodeResponse(target, res); err != nil {
22308 return nil, err
22309 }
22310 return ret, nil
22311 }
22312
22313 type ProjectsLocationsAgentsEnvironmentsListCall struct {
22314 s *Service
22315 parent string
22316 urlParams_ gensupport.URLParams
22317 ifNoneMatch_ string
22318 ctx_ context.Context
22319 header_ http.Header
22320 }
22321
22322
22323
22324
22325
22326 func (r *ProjectsLocationsAgentsEnvironmentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsListCall {
22327 c := &ProjectsLocationsAgentsEnvironmentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22328 c.parent = parent
22329 return c
22330 }
22331
22332
22333
22334 func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsListCall {
22335 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22336 return c
22337 }
22338
22339
22340
22341 func (c *ProjectsLocationsAgentsEnvironmentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsListCall {
22342 c.urlParams_.Set("pageToken", pageToken)
22343 return c
22344 }
22345
22346
22347
22348
22349 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsListCall {
22350 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22351 return c
22352 }
22353
22354
22355
22356
22357 func (c *ProjectsLocationsAgentsEnvironmentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsListCall {
22358 c.ifNoneMatch_ = entityTag
22359 return c
22360 }
22361
22362
22363 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsListCall {
22364 c.ctx_ = ctx
22365 return c
22366 }
22367
22368
22369
22370 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Header() http.Header {
22371 if c.header_ == nil {
22372 c.header_ = make(http.Header)
22373 }
22374 return c.header_
22375 }
22376
22377 func (c *ProjectsLocationsAgentsEnvironmentsListCall) doRequest(alt string) (*http.Response, error) {
22378 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22379 if c.ifNoneMatch_ != "" {
22380 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22381 }
22382 var body io.Reader = nil
22383 c.urlParams_.Set("alt", alt)
22384 c.urlParams_.Set("prettyPrint", "false")
22385 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/environments")
22386 urls += "?" + c.urlParams_.Encode()
22387 req, err := http.NewRequest("GET", urls, body)
22388 if err != nil {
22389 return nil, err
22390 }
22391 req.Header = reqHeaders
22392 googleapi.Expand(req.URL, map[string]string{
22393 "parent": c.parent,
22394 })
22395 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22396 }
22397
22398
22399
22400
22401
22402
22403
22404
22405
22406 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse, error) {
22407 gensupport.SetOptions(c.urlParams_, opts...)
22408 res, err := c.doRequest("json")
22409 if res != nil && res.StatusCode == http.StatusNotModified {
22410 if res.Body != nil {
22411 res.Body.Close()
22412 }
22413 return nil, gensupport.WrapError(&googleapi.Error{
22414 Code: res.StatusCode,
22415 Header: res.Header,
22416 })
22417 }
22418 if err != nil {
22419 return nil, err
22420 }
22421 defer googleapi.CloseBody(res)
22422 if err := googleapi.CheckResponse(res); err != nil {
22423 return nil, gensupport.WrapError(err)
22424 }
22425 ret := &GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse{
22426 ServerResponse: googleapi.ServerResponse{
22427 Header: res.Header,
22428 HTTPStatusCode: res.StatusCode,
22429 },
22430 }
22431 target := &ret
22432 if err := gensupport.DecodeResponse(target, res); err != nil {
22433 return nil, err
22434 }
22435 return ret, nil
22436 }
22437
22438
22439
22440
22441 func (c *ProjectsLocationsAgentsEnvironmentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListEnvironmentsResponse) error) error {
22442 c.ctx_ = ctx
22443 defer c.PageToken(c.urlParams_.Get("pageToken"))
22444 for {
22445 x, err := c.Do()
22446 if err != nil {
22447 return err
22448 }
22449 if err := f(x); err != nil {
22450 return err
22451 }
22452 if x.NextPageToken == "" {
22453 return nil
22454 }
22455 c.PageToken(x.NextPageToken)
22456 }
22457 }
22458
22459 type ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall struct {
22460 s *Service
22461 name string
22462 urlParams_ gensupport.URLParams
22463 ifNoneMatch_ string
22464 ctx_ context.Context
22465 header_ http.Header
22466 }
22467
22468
22469
22470
22471
22472 func (r *ProjectsLocationsAgentsEnvironmentsService) LookupEnvironmentHistory(name string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
22473 c := &ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22474 c.name = name
22475 return c
22476 }
22477
22478
22479
22480 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
22481 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22482 return c
22483 }
22484
22485
22486
22487 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
22488 c.urlParams_.Set("pageToken", pageToken)
22489 return c
22490 }
22491
22492
22493
22494
22495 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
22496 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22497 return c
22498 }
22499
22500
22501
22502
22503 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
22504 c.ifNoneMatch_ = entityTag
22505 return c
22506 }
22507
22508
22509 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall {
22510 c.ctx_ = ctx
22511 return c
22512 }
22513
22514
22515
22516 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Header() http.Header {
22517 if c.header_ == nil {
22518 c.header_ = make(http.Header)
22519 }
22520 return c.header_
22521 }
22522
22523 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) doRequest(alt string) (*http.Response, error) {
22524 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22525 if c.ifNoneMatch_ != "" {
22526 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22527 }
22528 var body io.Reader = nil
22529 c.urlParams_.Set("alt", alt)
22530 c.urlParams_.Set("prettyPrint", "false")
22531 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:lookupEnvironmentHistory")
22532 urls += "?" + c.urlParams_.Encode()
22533 req, err := http.NewRequest("GET", urls, body)
22534 if err != nil {
22535 return nil, err
22536 }
22537 req.Header = reqHeaders
22538 googleapi.Expand(req.URL, map[string]string{
22539 "name": c.name,
22540 })
22541 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22542 }
22543
22544
22545
22546
22547
22548
22549
22550 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse, error) {
22551 gensupport.SetOptions(c.urlParams_, opts...)
22552 res, err := c.doRequest("json")
22553 if res != nil && res.StatusCode == http.StatusNotModified {
22554 if res.Body != nil {
22555 res.Body.Close()
22556 }
22557 return nil, gensupport.WrapError(&googleapi.Error{
22558 Code: res.StatusCode,
22559 Header: res.Header,
22560 })
22561 }
22562 if err != nil {
22563 return nil, err
22564 }
22565 defer googleapi.CloseBody(res)
22566 if err := googleapi.CheckResponse(res); err != nil {
22567 return nil, gensupport.WrapError(err)
22568 }
22569 ret := &GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse{
22570 ServerResponse: googleapi.ServerResponse{
22571 Header: res.Header,
22572 HTTPStatusCode: res.StatusCode,
22573 },
22574 }
22575 target := &ret
22576 if err := gensupport.DecodeResponse(target, res); err != nil {
22577 return nil, err
22578 }
22579 return ret, nil
22580 }
22581
22582
22583
22584
22585 func (c *ProjectsLocationsAgentsEnvironmentsLookupEnvironmentHistoryCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1LookupEnvironmentHistoryResponse) error) error {
22586 c.ctx_ = ctx
22587 defer c.PageToken(c.urlParams_.Get("pageToken"))
22588 for {
22589 x, err := c.Do()
22590 if err != nil {
22591 return err
22592 }
22593 if err := f(x); err != nil {
22594 return err
22595 }
22596 if x.NextPageToken == "" {
22597 return nil
22598 }
22599 c.PageToken(x.NextPageToken)
22600 }
22601 }
22602
22603 type ProjectsLocationsAgentsEnvironmentsPatchCall struct {
22604 s *Service
22605 name string
22606 googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment
22607 urlParams_ gensupport.URLParams
22608 ctx_ context.Context
22609 header_ http.Header
22610 }
22611
22612
22613
22614
22615
22616
22617
22618
22619
22620
22621
22622 func (r *ProjectsLocationsAgentsEnvironmentsService) Patch(name string, googleclouddialogflowcxv3beta1environment *GoogleCloudDialogflowCxV3beta1Environment) *ProjectsLocationsAgentsEnvironmentsPatchCall {
22623 c := &ProjectsLocationsAgentsEnvironmentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22624 c.name = name
22625 c.googleclouddialogflowcxv3beta1environment = googleclouddialogflowcxv3beta1environment
22626 return c
22627 }
22628
22629
22630
22631 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsPatchCall {
22632 c.urlParams_.Set("updateMask", updateMask)
22633 return c
22634 }
22635
22636
22637
22638
22639 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsPatchCall {
22640 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22641 return c
22642 }
22643
22644
22645 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsPatchCall {
22646 c.ctx_ = ctx
22647 return c
22648 }
22649
22650
22651
22652 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Header() http.Header {
22653 if c.header_ == nil {
22654 c.header_ = make(http.Header)
22655 }
22656 return c.header_
22657 }
22658
22659 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) doRequest(alt string) (*http.Response, error) {
22660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22661 var body io.Reader = nil
22662 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1environment)
22663 if err != nil {
22664 return nil, err
22665 }
22666 c.urlParams_.Set("alt", alt)
22667 c.urlParams_.Set("prettyPrint", "false")
22668 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
22669 urls += "?" + c.urlParams_.Encode()
22670 req, err := http.NewRequest("PATCH", urls, body)
22671 if err != nil {
22672 return nil, err
22673 }
22674 req.Header = reqHeaders
22675 googleapi.Expand(req.URL, map[string]string{
22676 "name": c.name,
22677 })
22678 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22679 }
22680
22681
22682
22683
22684
22685
22686
22687 func (c *ProjectsLocationsAgentsEnvironmentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22688 gensupport.SetOptions(c.urlParams_, opts...)
22689 res, err := c.doRequest("json")
22690 if res != nil && res.StatusCode == http.StatusNotModified {
22691 if res.Body != nil {
22692 res.Body.Close()
22693 }
22694 return nil, gensupport.WrapError(&googleapi.Error{
22695 Code: res.StatusCode,
22696 Header: res.Header,
22697 })
22698 }
22699 if err != nil {
22700 return nil, err
22701 }
22702 defer googleapi.CloseBody(res)
22703 if err := googleapi.CheckResponse(res); err != nil {
22704 return nil, gensupport.WrapError(err)
22705 }
22706 ret := &GoogleLongrunningOperation{
22707 ServerResponse: googleapi.ServerResponse{
22708 Header: res.Header,
22709 HTTPStatusCode: res.StatusCode,
22710 },
22711 }
22712 target := &ret
22713 if err := gensupport.DecodeResponse(target, res); err != nil {
22714 return nil, err
22715 }
22716 return ret, nil
22717 }
22718
22719 type ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall struct {
22720 s *Service
22721 environment string
22722 googleclouddialogflowcxv3beta1runcontinuoustestrequest *GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest
22723 urlParams_ gensupport.URLParams
22724 ctx_ context.Context
22725 header_ http.Header
22726 }
22727
22728
22729
22730
22731
22732
22733
22734
22735
22736 func (r *ProjectsLocationsAgentsEnvironmentsService) RunContinuousTest(environment string, googleclouddialogflowcxv3beta1runcontinuoustestrequest *GoogleCloudDialogflowCxV3beta1RunContinuousTestRequest) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
22737 c := &ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22738 c.environment = environment
22739 c.googleclouddialogflowcxv3beta1runcontinuoustestrequest = googleclouddialogflowcxv3beta1runcontinuoustestrequest
22740 return c
22741 }
22742
22743
22744
22745
22746 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
22747 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22748 return c
22749 }
22750
22751
22752 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall {
22753 c.ctx_ = ctx
22754 return c
22755 }
22756
22757
22758
22759 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Header() http.Header {
22760 if c.header_ == nil {
22761 c.header_ = make(http.Header)
22762 }
22763 return c.header_
22764 }
22765
22766 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) doRequest(alt string) (*http.Response, error) {
22767 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
22768 var body io.Reader = nil
22769 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1runcontinuoustestrequest)
22770 if err != nil {
22771 return nil, err
22772 }
22773 c.urlParams_.Set("alt", alt)
22774 c.urlParams_.Set("prettyPrint", "false")
22775 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+environment}:runContinuousTest")
22776 urls += "?" + c.urlParams_.Encode()
22777 req, err := http.NewRequest("POST", urls, body)
22778 if err != nil {
22779 return nil, err
22780 }
22781 req.Header = reqHeaders
22782 googleapi.Expand(req.URL, map[string]string{
22783 "environment": c.environment,
22784 })
22785 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22786 }
22787
22788
22789
22790
22791
22792
22793
22794 func (c *ProjectsLocationsAgentsEnvironmentsRunContinuousTestCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
22795 gensupport.SetOptions(c.urlParams_, opts...)
22796 res, err := c.doRequest("json")
22797 if res != nil && res.StatusCode == http.StatusNotModified {
22798 if res.Body != nil {
22799 res.Body.Close()
22800 }
22801 return nil, gensupport.WrapError(&googleapi.Error{
22802 Code: res.StatusCode,
22803 Header: res.Header,
22804 })
22805 }
22806 if err != nil {
22807 return nil, err
22808 }
22809 defer googleapi.CloseBody(res)
22810 if err := googleapi.CheckResponse(res); err != nil {
22811 return nil, gensupport.WrapError(err)
22812 }
22813 ret := &GoogleLongrunningOperation{
22814 ServerResponse: googleapi.ServerResponse{
22815 Header: res.Header,
22816 HTTPStatusCode: res.StatusCode,
22817 },
22818 }
22819 target := &ret
22820 if err := gensupport.DecodeResponse(target, res); err != nil {
22821 return nil, err
22822 }
22823 return ret, nil
22824 }
22825
22826 type ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall struct {
22827 s *Service
22828 parent string
22829 urlParams_ gensupport.URLParams
22830 ifNoneMatch_ string
22831 ctx_ context.Context
22832 header_ http.Header
22833 }
22834
22835
22836
22837
22838
22839 func (r *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22840 c := &ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22841 c.parent = parent
22842 return c
22843 }
22844
22845
22846
22847 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22848 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
22849 return c
22850 }
22851
22852
22853
22854 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22855 c.urlParams_.Set("pageToken", pageToken)
22856 return c
22857 }
22858
22859
22860
22861
22862 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22863 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22864 return c
22865 }
22866
22867
22868
22869
22870 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22871 c.ifNoneMatch_ = entityTag
22872 return c
22873 }
22874
22875
22876 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall {
22877 c.ctx_ = ctx
22878 return c
22879 }
22880
22881
22882
22883 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Header() http.Header {
22884 if c.header_ == nil {
22885 c.header_ = make(http.Header)
22886 }
22887 return c.header_
22888 }
22889
22890 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) doRequest(alt string) (*http.Response, error) {
22891 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
22892 if c.ifNoneMatch_ != "" {
22893 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
22894 }
22895 var body io.Reader = nil
22896 c.urlParams_.Set("alt", alt)
22897 c.urlParams_.Set("prettyPrint", "false")
22898 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/continuousTestResults")
22899 urls += "?" + c.urlParams_.Encode()
22900 req, err := http.NewRequest("GET", urls, body)
22901 if err != nil {
22902 return nil, err
22903 }
22904 req.Header = reqHeaders
22905 googleapi.Expand(req.URL, map[string]string{
22906 "parent": c.parent,
22907 })
22908 return gensupport.SendRequest(c.ctx_, c.s.client, req)
22909 }
22910
22911
22912
22913
22914
22915
22916
22917 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse, error) {
22918 gensupport.SetOptions(c.urlParams_, opts...)
22919 res, err := c.doRequest("json")
22920 if res != nil && res.StatusCode == http.StatusNotModified {
22921 if res.Body != nil {
22922 res.Body.Close()
22923 }
22924 return nil, gensupport.WrapError(&googleapi.Error{
22925 Code: res.StatusCode,
22926 Header: res.Header,
22927 })
22928 }
22929 if err != nil {
22930 return nil, err
22931 }
22932 defer googleapi.CloseBody(res)
22933 if err := googleapi.CheckResponse(res); err != nil {
22934 return nil, gensupport.WrapError(err)
22935 }
22936 ret := &GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse{
22937 ServerResponse: googleapi.ServerResponse{
22938 Header: res.Header,
22939 HTTPStatusCode: res.StatusCode,
22940 },
22941 }
22942 target := &ret
22943 if err := gensupport.DecodeResponse(target, res); err != nil {
22944 return nil, err
22945 }
22946 return ret, nil
22947 }
22948
22949
22950
22951
22952 func (c *ProjectsLocationsAgentsEnvironmentsContinuousTestResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListContinuousTestResultsResponse) error) error {
22953 c.ctx_ = ctx
22954 defer c.PageToken(c.urlParams_.Get("pageToken"))
22955 for {
22956 x, err := c.Do()
22957 if err != nil {
22958 return err
22959 }
22960 if err := f(x); err != nil {
22961 return err
22962 }
22963 if x.NextPageToken == "" {
22964 return nil
22965 }
22966 c.PageToken(x.NextPageToken)
22967 }
22968 }
22969
22970 type ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall struct {
22971 s *Service
22972 name string
22973 urlParams_ gensupport.URLParams
22974 ifNoneMatch_ string
22975 ctx_ context.Context
22976 header_ http.Header
22977 }
22978
22979
22980
22981
22982
22983 func (r *ProjectsLocationsAgentsEnvironmentsDeploymentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
22984 c := &ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
22985 c.name = name
22986 return c
22987 }
22988
22989
22990
22991
22992 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
22993 c.urlParams_.Set("fields", googleapi.CombineFields(s))
22994 return c
22995 }
22996
22997
22998
22999
23000 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
23001 c.ifNoneMatch_ = entityTag
23002 return c
23003 }
23004
23005
23006 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall {
23007 c.ctx_ = ctx
23008 return c
23009 }
23010
23011
23012
23013 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Header() http.Header {
23014 if c.header_ == nil {
23015 c.header_ = make(http.Header)
23016 }
23017 return c.header_
23018 }
23019
23020 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) doRequest(alt string) (*http.Response, error) {
23021 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23022 if c.ifNoneMatch_ != "" {
23023 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23024 }
23025 var body io.Reader = nil
23026 c.urlParams_.Set("alt", alt)
23027 c.urlParams_.Set("prettyPrint", "false")
23028 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23029 urls += "?" + c.urlParams_.Encode()
23030 req, err := http.NewRequest("GET", urls, body)
23031 if err != nil {
23032 return nil, err
23033 }
23034 req.Header = reqHeaders
23035 googleapi.Expand(req.URL, map[string]string{
23036 "name": c.name,
23037 })
23038 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23039 }
23040
23041
23042
23043
23044
23045
23046
23047 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Deployment, error) {
23048 gensupport.SetOptions(c.urlParams_, opts...)
23049 res, err := c.doRequest("json")
23050 if res != nil && res.StatusCode == http.StatusNotModified {
23051 if res.Body != nil {
23052 res.Body.Close()
23053 }
23054 return nil, gensupport.WrapError(&googleapi.Error{
23055 Code: res.StatusCode,
23056 Header: res.Header,
23057 })
23058 }
23059 if err != nil {
23060 return nil, err
23061 }
23062 defer googleapi.CloseBody(res)
23063 if err := googleapi.CheckResponse(res); err != nil {
23064 return nil, gensupport.WrapError(err)
23065 }
23066 ret := &GoogleCloudDialogflowCxV3beta1Deployment{
23067 ServerResponse: googleapi.ServerResponse{
23068 Header: res.Header,
23069 HTTPStatusCode: res.StatusCode,
23070 },
23071 }
23072 target := &ret
23073 if err := gensupport.DecodeResponse(target, res); err != nil {
23074 return nil, err
23075 }
23076 return ret, nil
23077 }
23078
23079 type ProjectsLocationsAgentsEnvironmentsDeploymentsListCall struct {
23080 s *Service
23081 parent string
23082 urlParams_ gensupport.URLParams
23083 ifNoneMatch_ string
23084 ctx_ context.Context
23085 header_ http.Header
23086 }
23087
23088
23089
23090
23091
23092 func (r *ProjectsLocationsAgentsEnvironmentsDeploymentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
23093 c := &ProjectsLocationsAgentsEnvironmentsDeploymentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23094 c.parent = parent
23095 return c
23096 }
23097
23098
23099
23100 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
23101 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23102 return c
23103 }
23104
23105
23106
23107 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
23108 c.urlParams_.Set("pageToken", pageToken)
23109 return c
23110 }
23111
23112
23113
23114
23115 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
23116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23117 return c
23118 }
23119
23120
23121
23122
23123 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
23124 c.ifNoneMatch_ = entityTag
23125 return c
23126 }
23127
23128
23129 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall {
23130 c.ctx_ = ctx
23131 return c
23132 }
23133
23134
23135
23136 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Header() http.Header {
23137 if c.header_ == nil {
23138 c.header_ = make(http.Header)
23139 }
23140 return c.header_
23141 }
23142
23143 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) doRequest(alt string) (*http.Response, error) {
23144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23145 if c.ifNoneMatch_ != "" {
23146 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23147 }
23148 var body io.Reader = nil
23149 c.urlParams_.Set("alt", alt)
23150 c.urlParams_.Set("prettyPrint", "false")
23151 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/deployments")
23152 urls += "?" + c.urlParams_.Encode()
23153 req, err := http.NewRequest("GET", urls, body)
23154 if err != nil {
23155 return nil, err
23156 }
23157 req.Header = reqHeaders
23158 googleapi.Expand(req.URL, map[string]string{
23159 "parent": c.parent,
23160 })
23161 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23162 }
23163
23164
23165
23166
23167
23168
23169
23170 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse, error) {
23171 gensupport.SetOptions(c.urlParams_, opts...)
23172 res, err := c.doRequest("json")
23173 if res != nil && res.StatusCode == http.StatusNotModified {
23174 if res.Body != nil {
23175 res.Body.Close()
23176 }
23177 return nil, gensupport.WrapError(&googleapi.Error{
23178 Code: res.StatusCode,
23179 Header: res.Header,
23180 })
23181 }
23182 if err != nil {
23183 return nil, err
23184 }
23185 defer googleapi.CloseBody(res)
23186 if err := googleapi.CheckResponse(res); err != nil {
23187 return nil, gensupport.WrapError(err)
23188 }
23189 ret := &GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse{
23190 ServerResponse: googleapi.ServerResponse{
23191 Header: res.Header,
23192 HTTPStatusCode: res.StatusCode,
23193 },
23194 }
23195 target := &ret
23196 if err := gensupport.DecodeResponse(target, res); err != nil {
23197 return nil, err
23198 }
23199 return ret, nil
23200 }
23201
23202
23203
23204
23205 func (c *ProjectsLocationsAgentsEnvironmentsDeploymentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListDeploymentsResponse) error) error {
23206 c.ctx_ = ctx
23207 defer c.PageToken(c.urlParams_.Get("pageToken"))
23208 for {
23209 x, err := c.Do()
23210 if err != nil {
23211 return err
23212 }
23213 if err := f(x); err != nil {
23214 return err
23215 }
23216 if x.NextPageToken == "" {
23217 return nil
23218 }
23219 c.PageToken(x.NextPageToken)
23220 }
23221 }
23222
23223 type ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall struct {
23224 s *Service
23225 parent string
23226 googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment
23227 urlParams_ gensupport.URLParams
23228 ctx_ context.Context
23229 header_ http.Header
23230 }
23231
23232
23233
23234
23235
23236 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Create(parent string, googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
23237 c := &ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23238 c.parent = parent
23239 c.googleclouddialogflowcxv3beta1experiment = googleclouddialogflowcxv3beta1experiment
23240 return c
23241 }
23242
23243
23244
23245
23246 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
23247 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23248 return c
23249 }
23250
23251
23252 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall {
23253 c.ctx_ = ctx
23254 return c
23255 }
23256
23257
23258
23259 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Header() http.Header {
23260 if c.header_ == nil {
23261 c.header_ = make(http.Header)
23262 }
23263 return c.header_
23264 }
23265
23266 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) doRequest(alt string) (*http.Response, error) {
23267 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23268 var body io.Reader = nil
23269 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1experiment)
23270 if err != nil {
23271 return nil, err
23272 }
23273 c.urlParams_.Set("alt", alt)
23274 c.urlParams_.Set("prettyPrint", "false")
23275 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/experiments")
23276 urls += "?" + c.urlParams_.Encode()
23277 req, err := http.NewRequest("POST", urls, body)
23278 if err != nil {
23279 return nil, err
23280 }
23281 req.Header = reqHeaders
23282 googleapi.Expand(req.URL, map[string]string{
23283 "parent": c.parent,
23284 })
23285 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23286 }
23287
23288
23289
23290
23291
23292
23293
23294 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
23295 gensupport.SetOptions(c.urlParams_, opts...)
23296 res, err := c.doRequest("json")
23297 if res != nil && res.StatusCode == http.StatusNotModified {
23298 if res.Body != nil {
23299 res.Body.Close()
23300 }
23301 return nil, gensupport.WrapError(&googleapi.Error{
23302 Code: res.StatusCode,
23303 Header: res.Header,
23304 })
23305 }
23306 if err != nil {
23307 return nil, err
23308 }
23309 defer googleapi.CloseBody(res)
23310 if err := googleapi.CheckResponse(res); err != nil {
23311 return nil, gensupport.WrapError(err)
23312 }
23313 ret := &GoogleCloudDialogflowCxV3beta1Experiment{
23314 ServerResponse: googleapi.ServerResponse{
23315 Header: res.Header,
23316 HTTPStatusCode: res.StatusCode,
23317 },
23318 }
23319 target := &ret
23320 if err := gensupport.DecodeResponse(target, res); err != nil {
23321 return nil, err
23322 }
23323 return ret, nil
23324 }
23325
23326 type ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall struct {
23327 s *Service
23328 name string
23329 urlParams_ gensupport.URLParams
23330 ctx_ context.Context
23331 header_ http.Header
23332 }
23333
23334
23335
23336
23337
23338 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
23339 c := &ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23340 c.name = name
23341 return c
23342 }
23343
23344
23345
23346
23347 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
23348 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23349 return c
23350 }
23351
23352
23353 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall {
23354 c.ctx_ = ctx
23355 return c
23356 }
23357
23358
23359
23360 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Header() http.Header {
23361 if c.header_ == nil {
23362 c.header_ = make(http.Header)
23363 }
23364 return c.header_
23365 }
23366
23367 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) doRequest(alt string) (*http.Response, error) {
23368 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23369 var body io.Reader = nil
23370 c.urlParams_.Set("alt", alt)
23371 c.urlParams_.Set("prettyPrint", "false")
23372 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23373 urls += "?" + c.urlParams_.Encode()
23374 req, err := http.NewRequest("DELETE", urls, body)
23375 if err != nil {
23376 return nil, err
23377 }
23378 req.Header = reqHeaders
23379 googleapi.Expand(req.URL, map[string]string{
23380 "name": c.name,
23381 })
23382 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23383 }
23384
23385
23386
23387
23388
23389
23390
23391 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
23392 gensupport.SetOptions(c.urlParams_, opts...)
23393 res, err := c.doRequest("json")
23394 if res != nil && res.StatusCode == http.StatusNotModified {
23395 if res.Body != nil {
23396 res.Body.Close()
23397 }
23398 return nil, gensupport.WrapError(&googleapi.Error{
23399 Code: res.StatusCode,
23400 Header: res.Header,
23401 })
23402 }
23403 if err != nil {
23404 return nil, err
23405 }
23406 defer googleapi.CloseBody(res)
23407 if err := googleapi.CheckResponse(res); err != nil {
23408 return nil, gensupport.WrapError(err)
23409 }
23410 ret := &GoogleProtobufEmpty{
23411 ServerResponse: googleapi.ServerResponse{
23412 Header: res.Header,
23413 HTTPStatusCode: res.StatusCode,
23414 },
23415 }
23416 target := &ret
23417 if err := gensupport.DecodeResponse(target, res); err != nil {
23418 return nil, err
23419 }
23420 return ret, nil
23421 }
23422
23423 type ProjectsLocationsAgentsEnvironmentsExperimentsGetCall struct {
23424 s *Service
23425 name string
23426 urlParams_ gensupport.URLParams
23427 ifNoneMatch_ string
23428 ctx_ context.Context
23429 header_ http.Header
23430 }
23431
23432
23433
23434
23435
23436 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Get(name string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
23437 c := &ProjectsLocationsAgentsEnvironmentsExperimentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23438 c.name = name
23439 return c
23440 }
23441
23442
23443
23444
23445 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
23446 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23447 return c
23448 }
23449
23450
23451
23452
23453 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
23454 c.ifNoneMatch_ = entityTag
23455 return c
23456 }
23457
23458
23459 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall {
23460 c.ctx_ = ctx
23461 return c
23462 }
23463
23464
23465
23466 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Header() http.Header {
23467 if c.header_ == nil {
23468 c.header_ = make(http.Header)
23469 }
23470 return c.header_
23471 }
23472
23473 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) doRequest(alt string) (*http.Response, error) {
23474 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23475 if c.ifNoneMatch_ != "" {
23476 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23477 }
23478 var body io.Reader = nil
23479 c.urlParams_.Set("alt", alt)
23480 c.urlParams_.Set("prettyPrint", "false")
23481 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23482 urls += "?" + c.urlParams_.Encode()
23483 req, err := http.NewRequest("GET", urls, body)
23484 if err != nil {
23485 return nil, err
23486 }
23487 req.Header = reqHeaders
23488 googleapi.Expand(req.URL, map[string]string{
23489 "name": c.name,
23490 })
23491 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23492 }
23493
23494
23495
23496
23497
23498
23499
23500 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
23501 gensupport.SetOptions(c.urlParams_, opts...)
23502 res, err := c.doRequest("json")
23503 if res != nil && res.StatusCode == http.StatusNotModified {
23504 if res.Body != nil {
23505 res.Body.Close()
23506 }
23507 return nil, gensupport.WrapError(&googleapi.Error{
23508 Code: res.StatusCode,
23509 Header: res.Header,
23510 })
23511 }
23512 if err != nil {
23513 return nil, err
23514 }
23515 defer googleapi.CloseBody(res)
23516 if err := googleapi.CheckResponse(res); err != nil {
23517 return nil, gensupport.WrapError(err)
23518 }
23519 ret := &GoogleCloudDialogflowCxV3beta1Experiment{
23520 ServerResponse: googleapi.ServerResponse{
23521 Header: res.Header,
23522 HTTPStatusCode: res.StatusCode,
23523 },
23524 }
23525 target := &ret
23526 if err := gensupport.DecodeResponse(target, res); err != nil {
23527 return nil, err
23528 }
23529 return ret, nil
23530 }
23531
23532 type ProjectsLocationsAgentsEnvironmentsExperimentsListCall struct {
23533 s *Service
23534 parent string
23535 urlParams_ gensupport.URLParams
23536 ifNoneMatch_ string
23537 ctx_ context.Context
23538 header_ http.Header
23539 }
23540
23541
23542
23543
23544
23545 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) List(parent string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
23546 c := &ProjectsLocationsAgentsEnvironmentsExperimentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23547 c.parent = parent
23548 return c
23549 }
23550
23551
23552
23553 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
23554 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
23555 return c
23556 }
23557
23558
23559
23560 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
23561 c.urlParams_.Set("pageToken", pageToken)
23562 return c
23563 }
23564
23565
23566
23567
23568 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
23569 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23570 return c
23571 }
23572
23573
23574
23575
23576 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
23577 c.ifNoneMatch_ = entityTag
23578 return c
23579 }
23580
23581
23582 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsListCall {
23583 c.ctx_ = ctx
23584 return c
23585 }
23586
23587
23588
23589 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Header() http.Header {
23590 if c.header_ == nil {
23591 c.header_ = make(http.Header)
23592 }
23593 return c.header_
23594 }
23595
23596 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) doRequest(alt string) (*http.Response, error) {
23597 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
23598 if c.ifNoneMatch_ != "" {
23599 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
23600 }
23601 var body io.Reader = nil
23602 c.urlParams_.Set("alt", alt)
23603 c.urlParams_.Set("prettyPrint", "false")
23604 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/experiments")
23605 urls += "?" + c.urlParams_.Encode()
23606 req, err := http.NewRequest("GET", urls, body)
23607 if err != nil {
23608 return nil, err
23609 }
23610 req.Header = reqHeaders
23611 googleapi.Expand(req.URL, map[string]string{
23612 "parent": c.parent,
23613 })
23614 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23615 }
23616
23617
23618
23619
23620
23621
23622
23623 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListExperimentsResponse, error) {
23624 gensupport.SetOptions(c.urlParams_, opts...)
23625 res, err := c.doRequest("json")
23626 if res != nil && res.StatusCode == http.StatusNotModified {
23627 if res.Body != nil {
23628 res.Body.Close()
23629 }
23630 return nil, gensupport.WrapError(&googleapi.Error{
23631 Code: res.StatusCode,
23632 Header: res.Header,
23633 })
23634 }
23635 if err != nil {
23636 return nil, err
23637 }
23638 defer googleapi.CloseBody(res)
23639 if err := googleapi.CheckResponse(res); err != nil {
23640 return nil, gensupport.WrapError(err)
23641 }
23642 ret := &GoogleCloudDialogflowCxV3beta1ListExperimentsResponse{
23643 ServerResponse: googleapi.ServerResponse{
23644 Header: res.Header,
23645 HTTPStatusCode: res.StatusCode,
23646 },
23647 }
23648 target := &ret
23649 if err := gensupport.DecodeResponse(target, res); err != nil {
23650 return nil, err
23651 }
23652 return ret, nil
23653 }
23654
23655
23656
23657
23658 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListExperimentsResponse) error) error {
23659 c.ctx_ = ctx
23660 defer c.PageToken(c.urlParams_.Get("pageToken"))
23661 for {
23662 x, err := c.Do()
23663 if err != nil {
23664 return err
23665 }
23666 if err := f(x); err != nil {
23667 return err
23668 }
23669 if x.NextPageToken == "" {
23670 return nil
23671 }
23672 c.PageToken(x.NextPageToken)
23673 }
23674 }
23675
23676 type ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall struct {
23677 s *Service
23678 name string
23679 googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment
23680 urlParams_ gensupport.URLParams
23681 ctx_ context.Context
23682 header_ http.Header
23683 }
23684
23685
23686
23687
23688
23689 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Patch(name string, googleclouddialogflowcxv3beta1experiment *GoogleCloudDialogflowCxV3beta1Experiment) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
23690 c := &ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23691 c.name = name
23692 c.googleclouddialogflowcxv3beta1experiment = googleclouddialogflowcxv3beta1experiment
23693 return c
23694 }
23695
23696
23697
23698 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
23699 c.urlParams_.Set("updateMask", updateMask)
23700 return c
23701 }
23702
23703
23704
23705
23706 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
23707 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23708 return c
23709 }
23710
23711
23712 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall {
23713 c.ctx_ = ctx
23714 return c
23715 }
23716
23717
23718
23719 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Header() http.Header {
23720 if c.header_ == nil {
23721 c.header_ = make(http.Header)
23722 }
23723 return c.header_
23724 }
23725
23726 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) doRequest(alt string) (*http.Response, error) {
23727 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23728 var body io.Reader = nil
23729 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1experiment)
23730 if err != nil {
23731 return nil, err
23732 }
23733 c.urlParams_.Set("alt", alt)
23734 c.urlParams_.Set("prettyPrint", "false")
23735 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
23736 urls += "?" + c.urlParams_.Encode()
23737 req, err := http.NewRequest("PATCH", urls, body)
23738 if err != nil {
23739 return nil, err
23740 }
23741 req.Header = reqHeaders
23742 googleapi.Expand(req.URL, map[string]string{
23743 "name": c.name,
23744 })
23745 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23746 }
23747
23748
23749
23750
23751
23752
23753
23754 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
23755 gensupport.SetOptions(c.urlParams_, opts...)
23756 res, err := c.doRequest("json")
23757 if res != nil && res.StatusCode == http.StatusNotModified {
23758 if res.Body != nil {
23759 res.Body.Close()
23760 }
23761 return nil, gensupport.WrapError(&googleapi.Error{
23762 Code: res.StatusCode,
23763 Header: res.Header,
23764 })
23765 }
23766 if err != nil {
23767 return nil, err
23768 }
23769 defer googleapi.CloseBody(res)
23770 if err := googleapi.CheckResponse(res); err != nil {
23771 return nil, gensupport.WrapError(err)
23772 }
23773 ret := &GoogleCloudDialogflowCxV3beta1Experiment{
23774 ServerResponse: googleapi.ServerResponse{
23775 Header: res.Header,
23776 HTTPStatusCode: res.StatusCode,
23777 },
23778 }
23779 target := &ret
23780 if err := gensupport.DecodeResponse(target, res); err != nil {
23781 return nil, err
23782 }
23783 return ret, nil
23784 }
23785
23786 type ProjectsLocationsAgentsEnvironmentsExperimentsStartCall struct {
23787 s *Service
23788 name string
23789 googleclouddialogflowcxv3beta1startexperimentrequest *GoogleCloudDialogflowCxV3beta1StartExperimentRequest
23790 urlParams_ gensupport.URLParams
23791 ctx_ context.Context
23792 header_ http.Header
23793 }
23794
23795
23796
23797
23798
23799
23800 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Start(name string, googleclouddialogflowcxv3beta1startexperimentrequest *GoogleCloudDialogflowCxV3beta1StartExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
23801 c := &ProjectsLocationsAgentsEnvironmentsExperimentsStartCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23802 c.name = name
23803 c.googleclouddialogflowcxv3beta1startexperimentrequest = googleclouddialogflowcxv3beta1startexperimentrequest
23804 return c
23805 }
23806
23807
23808
23809
23810 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
23811 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23812 return c
23813 }
23814
23815
23816 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall {
23817 c.ctx_ = ctx
23818 return c
23819 }
23820
23821
23822
23823 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Header() http.Header {
23824 if c.header_ == nil {
23825 c.header_ = make(http.Header)
23826 }
23827 return c.header_
23828 }
23829
23830 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) doRequest(alt string) (*http.Response, error) {
23831 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23832 var body io.Reader = nil
23833 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1startexperimentrequest)
23834 if err != nil {
23835 return nil, err
23836 }
23837 c.urlParams_.Set("alt", alt)
23838 c.urlParams_.Set("prettyPrint", "false")
23839 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:start")
23840 urls += "?" + c.urlParams_.Encode()
23841 req, err := http.NewRequest("POST", urls, body)
23842 if err != nil {
23843 return nil, err
23844 }
23845 req.Header = reqHeaders
23846 googleapi.Expand(req.URL, map[string]string{
23847 "name": c.name,
23848 })
23849 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23850 }
23851
23852
23853
23854
23855
23856
23857
23858 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStartCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
23859 gensupport.SetOptions(c.urlParams_, opts...)
23860 res, err := c.doRequest("json")
23861 if res != nil && res.StatusCode == http.StatusNotModified {
23862 if res.Body != nil {
23863 res.Body.Close()
23864 }
23865 return nil, gensupport.WrapError(&googleapi.Error{
23866 Code: res.StatusCode,
23867 Header: res.Header,
23868 })
23869 }
23870 if err != nil {
23871 return nil, err
23872 }
23873 defer googleapi.CloseBody(res)
23874 if err := googleapi.CheckResponse(res); err != nil {
23875 return nil, gensupport.WrapError(err)
23876 }
23877 ret := &GoogleCloudDialogflowCxV3beta1Experiment{
23878 ServerResponse: googleapi.ServerResponse{
23879 Header: res.Header,
23880 HTTPStatusCode: res.StatusCode,
23881 },
23882 }
23883 target := &ret
23884 if err := gensupport.DecodeResponse(target, res); err != nil {
23885 return nil, err
23886 }
23887 return ret, nil
23888 }
23889
23890 type ProjectsLocationsAgentsEnvironmentsExperimentsStopCall struct {
23891 s *Service
23892 name string
23893 googleclouddialogflowcxv3beta1stopexperimentrequest *GoogleCloudDialogflowCxV3beta1StopExperimentRequest
23894 urlParams_ gensupport.URLParams
23895 ctx_ context.Context
23896 header_ http.Header
23897 }
23898
23899
23900
23901
23902
23903
23904 func (r *ProjectsLocationsAgentsEnvironmentsExperimentsService) Stop(name string, googleclouddialogflowcxv3beta1stopexperimentrequest *GoogleCloudDialogflowCxV3beta1StopExperimentRequest) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
23905 c := &ProjectsLocationsAgentsEnvironmentsExperimentsStopCall{s: r.s, urlParams_: make(gensupport.URLParams)}
23906 c.name = name
23907 c.googleclouddialogflowcxv3beta1stopexperimentrequest = googleclouddialogflowcxv3beta1stopexperimentrequest
23908 return c
23909 }
23910
23911
23912
23913
23914 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
23915 c.urlParams_.Set("fields", googleapi.CombineFields(s))
23916 return c
23917 }
23918
23919
23920 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall {
23921 c.ctx_ = ctx
23922 return c
23923 }
23924
23925
23926
23927 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Header() http.Header {
23928 if c.header_ == nil {
23929 c.header_ = make(http.Header)
23930 }
23931 return c.header_
23932 }
23933
23934 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) doRequest(alt string) (*http.Response, error) {
23935 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
23936 var body io.Reader = nil
23937 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1stopexperimentrequest)
23938 if err != nil {
23939 return nil, err
23940 }
23941 c.urlParams_.Set("alt", alt)
23942 c.urlParams_.Set("prettyPrint", "false")
23943 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:stop")
23944 urls += "?" + c.urlParams_.Encode()
23945 req, err := http.NewRequest("POST", urls, body)
23946 if err != nil {
23947 return nil, err
23948 }
23949 req.Header = reqHeaders
23950 googleapi.Expand(req.URL, map[string]string{
23951 "name": c.name,
23952 })
23953 return gensupport.SendRequest(c.ctx_, c.s.client, req)
23954 }
23955
23956
23957
23958
23959
23960
23961
23962 func (c *ProjectsLocationsAgentsEnvironmentsExperimentsStopCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Experiment, error) {
23963 gensupport.SetOptions(c.urlParams_, opts...)
23964 res, err := c.doRequest("json")
23965 if res != nil && res.StatusCode == http.StatusNotModified {
23966 if res.Body != nil {
23967 res.Body.Close()
23968 }
23969 return nil, gensupport.WrapError(&googleapi.Error{
23970 Code: res.StatusCode,
23971 Header: res.Header,
23972 })
23973 }
23974 if err != nil {
23975 return nil, err
23976 }
23977 defer googleapi.CloseBody(res)
23978 if err := googleapi.CheckResponse(res); err != nil {
23979 return nil, gensupport.WrapError(err)
23980 }
23981 ret := &GoogleCloudDialogflowCxV3beta1Experiment{
23982 ServerResponse: googleapi.ServerResponse{
23983 Header: res.Header,
23984 HTTPStatusCode: res.StatusCode,
23985 },
23986 }
23987 target := &ret
23988 if err := gensupport.DecodeResponse(target, res); err != nil {
23989 return nil, err
23990 }
23991 return ret, nil
23992 }
23993
23994 type ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall struct {
23995 s *Service
23996 sessionid string
23997 googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
23998 urlParams_ gensupport.URLParams
23999 ctx_ context.Context
24000 header_ http.Header
24001 }
24002
24003
24004
24005
24006
24007
24008
24009
24010
24011
24012
24013
24014
24015
24016
24017
24018
24019
24020
24021
24022 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
24023 c := &ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24024 c.sessionid = sessionid
24025 c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
24026 return c
24027 }
24028
24029
24030
24031
24032 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
24033 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24034 return c
24035 }
24036
24037
24038 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall {
24039 c.ctx_ = ctx
24040 return c
24041 }
24042
24043
24044
24045 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Header() http.Header {
24046 if c.header_ == nil {
24047 c.header_ = make(http.Header)
24048 }
24049 return c.header_
24050 }
24051
24052 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
24053 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24054 var body io.Reader = nil
24055 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
24056 if err != nil {
24057 return nil, err
24058 }
24059 c.urlParams_.Set("alt", alt)
24060 c.urlParams_.Set("prettyPrint", "false")
24061 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:detectIntent")
24062 urls += "?" + c.urlParams_.Encode()
24063 req, err := http.NewRequest("POST", urls, body)
24064 if err != nil {
24065 return nil, err
24066 }
24067 req.Header = reqHeaders
24068 googleapi.Expand(req.URL, map[string]string{
24069 "session": c.sessionid,
24070 })
24071 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24072 }
24073
24074
24075
24076
24077
24078
24079
24080 func (c *ProjectsLocationsAgentsEnvironmentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
24081 gensupport.SetOptions(c.urlParams_, opts...)
24082 res, err := c.doRequest("json")
24083 if res != nil && res.StatusCode == http.StatusNotModified {
24084 if res.Body != nil {
24085 res.Body.Close()
24086 }
24087 return nil, gensupport.WrapError(&googleapi.Error{
24088 Code: res.StatusCode,
24089 Header: res.Header,
24090 })
24091 }
24092 if err != nil {
24093 return nil, err
24094 }
24095 defer googleapi.CloseBody(res)
24096 if err := googleapi.CheckResponse(res); err != nil {
24097 return nil, gensupport.WrapError(err)
24098 }
24099 ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
24100 ServerResponse: googleapi.ServerResponse{
24101 Header: res.Header,
24102 HTTPStatusCode: res.StatusCode,
24103 },
24104 }
24105 target := &ret
24106 if err := gensupport.DecodeResponse(target, res); err != nil {
24107 return nil, err
24108 }
24109 return ret, nil
24110 }
24111
24112 type ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall struct {
24113 s *Service
24114 sessionid string
24115 googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
24116 urlParams_ gensupport.URLParams
24117 ctx_ context.Context
24118 header_ http.Header
24119 }
24120
24121
24122
24123
24124
24125
24126
24127
24128
24129
24130
24131
24132
24133
24134 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
24135 c := &ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24136 c.sessionid = sessionid
24137 c.googleclouddialogflowcxv3beta1fulfillintentrequest = googleclouddialogflowcxv3beta1fulfillintentrequest
24138 return c
24139 }
24140
24141
24142
24143
24144 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
24145 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24146 return c
24147 }
24148
24149
24150 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall {
24151 c.ctx_ = ctx
24152 return c
24153 }
24154
24155
24156
24157 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Header() http.Header {
24158 if c.header_ == nil {
24159 c.header_ = make(http.Header)
24160 }
24161 return c.header_
24162 }
24163
24164 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
24165 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24166 var body io.Reader = nil
24167 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1fulfillintentrequest)
24168 if err != nil {
24169 return nil, err
24170 }
24171 c.urlParams_.Set("alt", alt)
24172 c.urlParams_.Set("prettyPrint", "false")
24173 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:fulfillIntent")
24174 urls += "?" + c.urlParams_.Encode()
24175 req, err := http.NewRequest("POST", urls, body)
24176 if err != nil {
24177 return nil, err
24178 }
24179 req.Header = reqHeaders
24180 googleapi.Expand(req.URL, map[string]string{
24181 "session": c.sessionid,
24182 })
24183 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24184 }
24185
24186
24187
24188
24189
24190
24191
24192 func (c *ProjectsLocationsAgentsEnvironmentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FulfillIntentResponse, error) {
24193 gensupport.SetOptions(c.urlParams_, opts...)
24194 res, err := c.doRequest("json")
24195 if res != nil && res.StatusCode == http.StatusNotModified {
24196 if res.Body != nil {
24197 res.Body.Close()
24198 }
24199 return nil, gensupport.WrapError(&googleapi.Error{
24200 Code: res.StatusCode,
24201 Header: res.Header,
24202 })
24203 }
24204 if err != nil {
24205 return nil, err
24206 }
24207 defer googleapi.CloseBody(res)
24208 if err := googleapi.CheckResponse(res); err != nil {
24209 return nil, gensupport.WrapError(err)
24210 }
24211 ret := &GoogleCloudDialogflowCxV3beta1FulfillIntentResponse{
24212 ServerResponse: googleapi.ServerResponse{
24213 Header: res.Header,
24214 HTTPStatusCode: res.StatusCode,
24215 },
24216 }
24217 target := &ret
24218 if err := gensupport.DecodeResponse(target, res); err != nil {
24219 return nil, err
24220 }
24221 return ret, nil
24222 }
24223
24224 type ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall struct {
24225 s *Service
24226 sessionid string
24227 googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest
24228 urlParams_ gensupport.URLParams
24229 ctx_ context.Context
24230 header_ http.Header
24231 }
24232
24233
24234
24235
24236
24237
24238
24239
24240
24241
24242
24243
24244
24245 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
24246 c := &ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24247 c.sessionid = sessionid
24248 c.googleclouddialogflowcxv3beta1matchintentrequest = googleclouddialogflowcxv3beta1matchintentrequest
24249 return c
24250 }
24251
24252
24253
24254
24255 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
24256 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24257 return c
24258 }
24259
24260
24261 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall {
24262 c.ctx_ = ctx
24263 return c
24264 }
24265
24266
24267
24268 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Header() http.Header {
24269 if c.header_ == nil {
24270 c.header_ = make(http.Header)
24271 }
24272 return c.header_
24273 }
24274
24275 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
24276 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24277 var body io.Reader = nil
24278 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1matchintentrequest)
24279 if err != nil {
24280 return nil, err
24281 }
24282 c.urlParams_.Set("alt", alt)
24283 c.urlParams_.Set("prettyPrint", "false")
24284 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:matchIntent")
24285 urls += "?" + c.urlParams_.Encode()
24286 req, err := http.NewRequest("POST", urls, body)
24287 if err != nil {
24288 return nil, err
24289 }
24290 req.Header = reqHeaders
24291 googleapi.Expand(req.URL, map[string]string{
24292 "session": c.sessionid,
24293 })
24294 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24295 }
24296
24297
24298
24299
24300
24301
24302
24303 func (c *ProjectsLocationsAgentsEnvironmentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1MatchIntentResponse, error) {
24304 gensupport.SetOptions(c.urlParams_, opts...)
24305 res, err := c.doRequest("json")
24306 if res != nil && res.StatusCode == http.StatusNotModified {
24307 if res.Body != nil {
24308 res.Body.Close()
24309 }
24310 return nil, gensupport.WrapError(&googleapi.Error{
24311 Code: res.StatusCode,
24312 Header: res.Header,
24313 })
24314 }
24315 if err != nil {
24316 return nil, err
24317 }
24318 defer googleapi.CloseBody(res)
24319 if err := googleapi.CheckResponse(res); err != nil {
24320 return nil, gensupport.WrapError(err)
24321 }
24322 ret := &GoogleCloudDialogflowCxV3beta1MatchIntentResponse{
24323 ServerResponse: googleapi.ServerResponse{
24324 Header: res.Header,
24325 HTTPStatusCode: res.StatusCode,
24326 },
24327 }
24328 target := &ret
24329 if err := gensupport.DecodeResponse(target, res); err != nil {
24330 return nil, err
24331 }
24332 return ret, nil
24333 }
24334
24335 type ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall struct {
24336 s *Service
24337 sessionid string
24338 googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
24339 urlParams_ gensupport.URLParams
24340 ctx_ context.Context
24341 header_ http.Header
24342 }
24343
24344
24345
24346
24347
24348
24349
24350
24351
24352
24353
24354
24355
24356
24357
24358
24359
24360
24361
24362 func (r *ProjectsLocationsAgentsEnvironmentsSessionsService) ServerStreamingDetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
24363 c := &ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24364 c.sessionid = sessionid
24365 c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
24366 return c
24367 }
24368
24369
24370
24371
24372 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
24373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24374 return c
24375 }
24376
24377
24378 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall {
24379 c.ctx_ = ctx
24380 return c
24381 }
24382
24383
24384
24385 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Header() http.Header {
24386 if c.header_ == nil {
24387 c.header_ = make(http.Header)
24388 }
24389 return c.header_
24390 }
24391
24392 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) doRequest(alt string) (*http.Response, error) {
24393 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24394 var body io.Reader = nil
24395 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
24396 if err != nil {
24397 return nil, err
24398 }
24399 c.urlParams_.Set("alt", alt)
24400 c.urlParams_.Set("prettyPrint", "false")
24401 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:serverStreamingDetectIntent")
24402 urls += "?" + c.urlParams_.Encode()
24403 req, err := http.NewRequest("POST", urls, body)
24404 if err != nil {
24405 return nil, err
24406 }
24407 req.Header = reqHeaders
24408 googleapi.Expand(req.URL, map[string]string{
24409 "session": c.sessionid,
24410 })
24411 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24412 }
24413
24414
24415
24416
24417
24418
24419
24420 func (c *ProjectsLocationsAgentsEnvironmentsSessionsServerStreamingDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
24421 gensupport.SetOptions(c.urlParams_, opts...)
24422 res, err := c.doRequest("json")
24423 if res != nil && res.StatusCode == http.StatusNotModified {
24424 if res.Body != nil {
24425 res.Body.Close()
24426 }
24427 return nil, gensupport.WrapError(&googleapi.Error{
24428 Code: res.StatusCode,
24429 Header: res.Header,
24430 })
24431 }
24432 if err != nil {
24433 return nil, err
24434 }
24435 defer googleapi.CloseBody(res)
24436 if err := googleapi.CheckResponse(res); err != nil {
24437 return nil, gensupport.WrapError(err)
24438 }
24439 ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
24440 ServerResponse: googleapi.ServerResponse{
24441 Header: res.Header,
24442 HTTPStatusCode: res.StatusCode,
24443 },
24444 }
24445 target := &ret
24446 if err := gensupport.DecodeResponse(target, res); err != nil {
24447 return nil, err
24448 }
24449 return ret, nil
24450 }
24451
24452 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall struct {
24453 s *Service
24454 parent string
24455 googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
24456 urlParams_ gensupport.URLParams
24457 ctx_ context.Context
24458 header_ http.Header
24459 }
24460
24461
24462
24463
24464
24465
24466
24467 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
24468 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24469 c.parent = parent
24470 c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
24471 return c
24472 }
24473
24474
24475
24476
24477 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
24478 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24479 return c
24480 }
24481
24482
24483 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall {
24484 c.ctx_ = ctx
24485 return c
24486 }
24487
24488
24489
24490 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Header() http.Header {
24491 if c.header_ == nil {
24492 c.header_ = make(http.Header)
24493 }
24494 return c.header_
24495 }
24496
24497 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
24498 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24499 var body io.Reader = nil
24500 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
24501 if err != nil {
24502 return nil, err
24503 }
24504 c.urlParams_.Set("alt", alt)
24505 c.urlParams_.Set("prettyPrint", "false")
24506 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
24507 urls += "?" + c.urlParams_.Encode()
24508 req, err := http.NewRequest("POST", urls, body)
24509 if err != nil {
24510 return nil, err
24511 }
24512 req.Header = reqHeaders
24513 googleapi.Expand(req.URL, map[string]string{
24514 "parent": c.parent,
24515 })
24516 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24517 }
24518
24519
24520
24521
24522
24523
24524
24525 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
24526 gensupport.SetOptions(c.urlParams_, opts...)
24527 res, err := c.doRequest("json")
24528 if res != nil && res.StatusCode == http.StatusNotModified {
24529 if res.Body != nil {
24530 res.Body.Close()
24531 }
24532 return nil, gensupport.WrapError(&googleapi.Error{
24533 Code: res.StatusCode,
24534 Header: res.Header,
24535 })
24536 }
24537 if err != nil {
24538 return nil, err
24539 }
24540 defer googleapi.CloseBody(res)
24541 if err := googleapi.CheckResponse(res); err != nil {
24542 return nil, gensupport.WrapError(err)
24543 }
24544 ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
24545 ServerResponse: googleapi.ServerResponse{
24546 Header: res.Header,
24547 HTTPStatusCode: res.StatusCode,
24548 },
24549 }
24550 target := &ret
24551 if err := gensupport.DecodeResponse(target, res); err != nil {
24552 return nil, err
24553 }
24554 return ret, nil
24555 }
24556
24557 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall struct {
24558 s *Service
24559 name string
24560 urlParams_ gensupport.URLParams
24561 ctx_ context.Context
24562 header_ http.Header
24563 }
24564
24565
24566
24567
24568
24569
24570
24571 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
24572 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24573 c.name = name
24574 return c
24575 }
24576
24577
24578
24579
24580 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
24581 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24582 return c
24583 }
24584
24585
24586 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall {
24587 c.ctx_ = ctx
24588 return c
24589 }
24590
24591
24592
24593 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Header() http.Header {
24594 if c.header_ == nil {
24595 c.header_ = make(http.Header)
24596 }
24597 return c.header_
24598 }
24599
24600 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
24601 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24602 var body io.Reader = nil
24603 c.urlParams_.Set("alt", alt)
24604 c.urlParams_.Set("prettyPrint", "false")
24605 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24606 urls += "?" + c.urlParams_.Encode()
24607 req, err := http.NewRequest("DELETE", urls, body)
24608 if err != nil {
24609 return nil, err
24610 }
24611 req.Header = reqHeaders
24612 googleapi.Expand(req.URL, map[string]string{
24613 "name": c.name,
24614 })
24615 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24616 }
24617
24618
24619
24620
24621
24622
24623
24624 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
24625 gensupport.SetOptions(c.urlParams_, opts...)
24626 res, err := c.doRequest("json")
24627 if res != nil && res.StatusCode == http.StatusNotModified {
24628 if res.Body != nil {
24629 res.Body.Close()
24630 }
24631 return nil, gensupport.WrapError(&googleapi.Error{
24632 Code: res.StatusCode,
24633 Header: res.Header,
24634 })
24635 }
24636 if err != nil {
24637 return nil, err
24638 }
24639 defer googleapi.CloseBody(res)
24640 if err := googleapi.CheckResponse(res); err != nil {
24641 return nil, gensupport.WrapError(err)
24642 }
24643 ret := &GoogleProtobufEmpty{
24644 ServerResponse: googleapi.ServerResponse{
24645 Header: res.Header,
24646 HTTPStatusCode: res.StatusCode,
24647 },
24648 }
24649 target := &ret
24650 if err := gensupport.DecodeResponse(target, res); err != nil {
24651 return nil, err
24652 }
24653 return ret, nil
24654 }
24655
24656 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall struct {
24657 s *Service
24658 name string
24659 urlParams_ gensupport.URLParams
24660 ifNoneMatch_ string
24661 ctx_ context.Context
24662 header_ http.Header
24663 }
24664
24665
24666
24667
24668
24669
24670
24671 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
24672 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24673 c.name = name
24674 return c
24675 }
24676
24677
24678
24679
24680 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
24681 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24682 return c
24683 }
24684
24685
24686
24687
24688 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
24689 c.ifNoneMatch_ = entityTag
24690 return c
24691 }
24692
24693
24694 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall {
24695 c.ctx_ = ctx
24696 return c
24697 }
24698
24699
24700
24701 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Header() http.Header {
24702 if c.header_ == nil {
24703 c.header_ = make(http.Header)
24704 }
24705 return c.header_
24706 }
24707
24708 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
24709 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24710 if c.ifNoneMatch_ != "" {
24711 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24712 }
24713 var body io.Reader = nil
24714 c.urlParams_.Set("alt", alt)
24715 c.urlParams_.Set("prettyPrint", "false")
24716 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24717 urls += "?" + c.urlParams_.Encode()
24718 req, err := http.NewRequest("GET", urls, body)
24719 if err != nil {
24720 return nil, err
24721 }
24722 req.Header = reqHeaders
24723 googleapi.Expand(req.URL, map[string]string{
24724 "name": c.name,
24725 })
24726 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24727 }
24728
24729
24730
24731
24732
24733
24734
24735 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
24736 gensupport.SetOptions(c.urlParams_, opts...)
24737 res, err := c.doRequest("json")
24738 if res != nil && res.StatusCode == http.StatusNotModified {
24739 if res.Body != nil {
24740 res.Body.Close()
24741 }
24742 return nil, gensupport.WrapError(&googleapi.Error{
24743 Code: res.StatusCode,
24744 Header: res.Header,
24745 })
24746 }
24747 if err != nil {
24748 return nil, err
24749 }
24750 defer googleapi.CloseBody(res)
24751 if err := googleapi.CheckResponse(res); err != nil {
24752 return nil, gensupport.WrapError(err)
24753 }
24754 ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
24755 ServerResponse: googleapi.ServerResponse{
24756 Header: res.Header,
24757 HTTPStatusCode: res.StatusCode,
24758 },
24759 }
24760 target := &ret
24761 if err := gensupport.DecodeResponse(target, res); err != nil {
24762 return nil, err
24763 }
24764 return ret, nil
24765 }
24766
24767 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall struct {
24768 s *Service
24769 parent string
24770 urlParams_ gensupport.URLParams
24771 ifNoneMatch_ string
24772 ctx_ context.Context
24773 header_ http.Header
24774 }
24775
24776
24777
24778
24779
24780
24781
24782 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24783 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24784 c.parent = parent
24785 return c
24786 }
24787
24788
24789
24790 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24791 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
24792 return c
24793 }
24794
24795
24796
24797 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24798 c.urlParams_.Set("pageToken", pageToken)
24799 return c
24800 }
24801
24802
24803
24804
24805 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24806 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24807 return c
24808 }
24809
24810
24811
24812
24813 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24814 c.ifNoneMatch_ = entityTag
24815 return c
24816 }
24817
24818
24819 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall {
24820 c.ctx_ = ctx
24821 return c
24822 }
24823
24824
24825
24826 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Header() http.Header {
24827 if c.header_ == nil {
24828 c.header_ = make(http.Header)
24829 }
24830 return c.header_
24831 }
24832
24833 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
24834 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
24835 if c.ifNoneMatch_ != "" {
24836 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
24837 }
24838 var body io.Reader = nil
24839 c.urlParams_.Set("alt", alt)
24840 c.urlParams_.Set("prettyPrint", "false")
24841 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
24842 urls += "?" + c.urlParams_.Encode()
24843 req, err := http.NewRequest("GET", urls, body)
24844 if err != nil {
24845 return nil, err
24846 }
24847 req.Header = reqHeaders
24848 googleapi.Expand(req.URL, map[string]string{
24849 "parent": c.parent,
24850 })
24851 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24852 }
24853
24854
24855
24856
24857
24858
24859
24860 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse, error) {
24861 gensupport.SetOptions(c.urlParams_, opts...)
24862 res, err := c.doRequest("json")
24863 if res != nil && res.StatusCode == http.StatusNotModified {
24864 if res.Body != nil {
24865 res.Body.Close()
24866 }
24867 return nil, gensupport.WrapError(&googleapi.Error{
24868 Code: res.StatusCode,
24869 Header: res.Header,
24870 })
24871 }
24872 if err != nil {
24873 return nil, err
24874 }
24875 defer googleapi.CloseBody(res)
24876 if err := googleapi.CheckResponse(res); err != nil {
24877 return nil, gensupport.WrapError(err)
24878 }
24879 ret := &GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse{
24880 ServerResponse: googleapi.ServerResponse{
24881 Header: res.Header,
24882 HTTPStatusCode: res.StatusCode,
24883 },
24884 }
24885 target := &ret
24886 if err := gensupport.DecodeResponse(target, res); err != nil {
24887 return nil, err
24888 }
24889 return ret, nil
24890 }
24891
24892
24893
24894
24895 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) error) error {
24896 c.ctx_ = ctx
24897 defer c.PageToken(c.urlParams_.Get("pageToken"))
24898 for {
24899 x, err := c.Do()
24900 if err != nil {
24901 return err
24902 }
24903 if err := f(x); err != nil {
24904 return err
24905 }
24906 if x.NextPageToken == "" {
24907 return nil
24908 }
24909 c.PageToken(x.NextPageToken)
24910 }
24911 }
24912
24913 type ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall struct {
24914 s *Service
24915 nameid string
24916 googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
24917 urlParams_ gensupport.URLParams
24918 ctx_ context.Context
24919 header_ http.Header
24920 }
24921
24922
24923
24924
24925
24926
24927
24928 func (r *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24929 c := &ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
24930 c.nameid = nameid
24931 c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
24932 return c
24933 }
24934
24935
24936
24937 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24938 c.urlParams_.Set("updateMask", updateMask)
24939 return c
24940 }
24941
24942
24943
24944
24945 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24946 c.urlParams_.Set("fields", googleapi.CombineFields(s))
24947 return c
24948 }
24949
24950
24951 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall {
24952 c.ctx_ = ctx
24953 return c
24954 }
24955
24956
24957
24958 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Header() http.Header {
24959 if c.header_ == nil {
24960 c.header_ = make(http.Header)
24961 }
24962 return c.header_
24963 }
24964
24965 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
24966 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
24967 var body io.Reader = nil
24968 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
24969 if err != nil {
24970 return nil, err
24971 }
24972 c.urlParams_.Set("alt", alt)
24973 c.urlParams_.Set("prettyPrint", "false")
24974 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
24975 urls += "?" + c.urlParams_.Encode()
24976 req, err := http.NewRequest("PATCH", urls, body)
24977 if err != nil {
24978 return nil, err
24979 }
24980 req.Header = reqHeaders
24981 googleapi.Expand(req.URL, map[string]string{
24982 "name": c.nameid,
24983 })
24984 return gensupport.SendRequest(c.ctx_, c.s.client, req)
24985 }
24986
24987
24988
24989
24990
24991
24992
24993 func (c *ProjectsLocationsAgentsEnvironmentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
24994 gensupport.SetOptions(c.urlParams_, opts...)
24995 res, err := c.doRequest("json")
24996 if res != nil && res.StatusCode == http.StatusNotModified {
24997 if res.Body != nil {
24998 res.Body.Close()
24999 }
25000 return nil, gensupport.WrapError(&googleapi.Error{
25001 Code: res.StatusCode,
25002 Header: res.Header,
25003 })
25004 }
25005 if err != nil {
25006 return nil, err
25007 }
25008 defer googleapi.CloseBody(res)
25009 if err := googleapi.CheckResponse(res); err != nil {
25010 return nil, gensupport.WrapError(err)
25011 }
25012 ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
25013 ServerResponse: googleapi.ServerResponse{
25014 Header: res.Header,
25015 HTTPStatusCode: res.StatusCode,
25016 },
25017 }
25018 target := &ret
25019 if err := gensupport.DecodeResponse(target, res); err != nil {
25020 return nil, err
25021 }
25022 return ret, nil
25023 }
25024
25025 type ProjectsLocationsAgentsFlowsCreateCall struct {
25026 s *Service
25027 parent string
25028 googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow
25029 urlParams_ gensupport.URLParams
25030 ctx_ context.Context
25031 header_ http.Header
25032 }
25033
25034
25035
25036
25037
25038
25039
25040 func (r *ProjectsLocationsAgentsFlowsService) Create(parent string, googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow) *ProjectsLocationsAgentsFlowsCreateCall {
25041 c := &ProjectsLocationsAgentsFlowsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25042 c.parent = parent
25043 c.googleclouddialogflowcxv3beta1flow = googleclouddialogflowcxv3beta1flow
25044 return c
25045 }
25046
25047
25048
25049
25050
25051
25052
25053
25054
25055
25056
25057 func (c *ProjectsLocationsAgentsFlowsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsCreateCall {
25058 c.urlParams_.Set("languageCode", languageCode)
25059 return c
25060 }
25061
25062
25063
25064
25065 func (c *ProjectsLocationsAgentsFlowsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsCreateCall {
25066 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25067 return c
25068 }
25069
25070
25071 func (c *ProjectsLocationsAgentsFlowsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsCreateCall {
25072 c.ctx_ = ctx
25073 return c
25074 }
25075
25076
25077
25078 func (c *ProjectsLocationsAgentsFlowsCreateCall) Header() http.Header {
25079 if c.header_ == nil {
25080 c.header_ = make(http.Header)
25081 }
25082 return c.header_
25083 }
25084
25085 func (c *ProjectsLocationsAgentsFlowsCreateCall) doRequest(alt string) (*http.Response, error) {
25086 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25087 var body io.Reader = nil
25088 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1flow)
25089 if err != nil {
25090 return nil, err
25091 }
25092 c.urlParams_.Set("alt", alt)
25093 c.urlParams_.Set("prettyPrint", "false")
25094 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows")
25095 urls += "?" + c.urlParams_.Encode()
25096 req, err := http.NewRequest("POST", urls, body)
25097 if err != nil {
25098 return nil, err
25099 }
25100 req.Header = reqHeaders
25101 googleapi.Expand(req.URL, map[string]string{
25102 "parent": c.parent,
25103 })
25104 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25105 }
25106
25107
25108
25109
25110
25111
25112
25113 func (c *ProjectsLocationsAgentsFlowsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
25114 gensupport.SetOptions(c.urlParams_, opts...)
25115 res, err := c.doRequest("json")
25116 if res != nil && res.StatusCode == http.StatusNotModified {
25117 if res.Body != nil {
25118 res.Body.Close()
25119 }
25120 return nil, gensupport.WrapError(&googleapi.Error{
25121 Code: res.StatusCode,
25122 Header: res.Header,
25123 })
25124 }
25125 if err != nil {
25126 return nil, err
25127 }
25128 defer googleapi.CloseBody(res)
25129 if err := googleapi.CheckResponse(res); err != nil {
25130 return nil, gensupport.WrapError(err)
25131 }
25132 ret := &GoogleCloudDialogflowCxV3beta1Flow{
25133 ServerResponse: googleapi.ServerResponse{
25134 Header: res.Header,
25135 HTTPStatusCode: res.StatusCode,
25136 },
25137 }
25138 target := &ret
25139 if err := gensupport.DecodeResponse(target, res); err != nil {
25140 return nil, err
25141 }
25142 return ret, nil
25143 }
25144
25145 type ProjectsLocationsAgentsFlowsDeleteCall struct {
25146 s *Service
25147 name string
25148 urlParams_ gensupport.URLParams
25149 ctx_ context.Context
25150 header_ http.Header
25151 }
25152
25153
25154
25155
25156
25157 func (r *ProjectsLocationsAgentsFlowsService) Delete(name string) *ProjectsLocationsAgentsFlowsDeleteCall {
25158 c := &ProjectsLocationsAgentsFlowsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25159 c.name = name
25160 return c
25161 }
25162
25163
25164
25165
25166
25167
25168
25169
25170 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsDeleteCall {
25171 c.urlParams_.Set("force", fmt.Sprint(force))
25172 return c
25173 }
25174
25175
25176
25177
25178 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsDeleteCall {
25179 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25180 return c
25181 }
25182
25183
25184 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsDeleteCall {
25185 c.ctx_ = ctx
25186 return c
25187 }
25188
25189
25190
25191 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Header() http.Header {
25192 if c.header_ == nil {
25193 c.header_ = make(http.Header)
25194 }
25195 return c.header_
25196 }
25197
25198 func (c *ProjectsLocationsAgentsFlowsDeleteCall) doRequest(alt string) (*http.Response, error) {
25199 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25200 var body io.Reader = nil
25201 c.urlParams_.Set("alt", alt)
25202 c.urlParams_.Set("prettyPrint", "false")
25203 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25204 urls += "?" + c.urlParams_.Encode()
25205 req, err := http.NewRequest("DELETE", urls, body)
25206 if err != nil {
25207 return nil, err
25208 }
25209 req.Header = reqHeaders
25210 googleapi.Expand(req.URL, map[string]string{
25211 "name": c.name,
25212 })
25213 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25214 }
25215
25216
25217
25218
25219
25220
25221
25222 func (c *ProjectsLocationsAgentsFlowsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
25223 gensupport.SetOptions(c.urlParams_, opts...)
25224 res, err := c.doRequest("json")
25225 if res != nil && res.StatusCode == http.StatusNotModified {
25226 if res.Body != nil {
25227 res.Body.Close()
25228 }
25229 return nil, gensupport.WrapError(&googleapi.Error{
25230 Code: res.StatusCode,
25231 Header: res.Header,
25232 })
25233 }
25234 if err != nil {
25235 return nil, err
25236 }
25237 defer googleapi.CloseBody(res)
25238 if err := googleapi.CheckResponse(res); err != nil {
25239 return nil, gensupport.WrapError(err)
25240 }
25241 ret := &GoogleProtobufEmpty{
25242 ServerResponse: googleapi.ServerResponse{
25243 Header: res.Header,
25244 HTTPStatusCode: res.StatusCode,
25245 },
25246 }
25247 target := &ret
25248 if err := gensupport.DecodeResponse(target, res); err != nil {
25249 return nil, err
25250 }
25251 return ret, nil
25252 }
25253
25254 type ProjectsLocationsAgentsFlowsExportCall struct {
25255 s *Service
25256 name string
25257 googleclouddialogflowcxv3beta1exportflowrequest *GoogleCloudDialogflowCxV3beta1ExportFlowRequest
25258 urlParams_ gensupport.URLParams
25259 ctx_ context.Context
25260 header_ http.Header
25261 }
25262
25263
25264
25265
25266
25267
25268
25269
25270
25271
25272
25273
25274 func (r *ProjectsLocationsAgentsFlowsService) Export(name string, googleclouddialogflowcxv3beta1exportflowrequest *GoogleCloudDialogflowCxV3beta1ExportFlowRequest) *ProjectsLocationsAgentsFlowsExportCall {
25275 c := &ProjectsLocationsAgentsFlowsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25276 c.name = name
25277 c.googleclouddialogflowcxv3beta1exportflowrequest = googleclouddialogflowcxv3beta1exportflowrequest
25278 return c
25279 }
25280
25281
25282
25283
25284 func (c *ProjectsLocationsAgentsFlowsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsExportCall {
25285 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25286 return c
25287 }
25288
25289
25290 func (c *ProjectsLocationsAgentsFlowsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsExportCall {
25291 c.ctx_ = ctx
25292 return c
25293 }
25294
25295
25296
25297 func (c *ProjectsLocationsAgentsFlowsExportCall) Header() http.Header {
25298 if c.header_ == nil {
25299 c.header_ = make(http.Header)
25300 }
25301 return c.header_
25302 }
25303
25304 func (c *ProjectsLocationsAgentsFlowsExportCall) doRequest(alt string) (*http.Response, error) {
25305 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25306 var body io.Reader = nil
25307 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportflowrequest)
25308 if err != nil {
25309 return nil, err
25310 }
25311 c.urlParams_.Set("alt", alt)
25312 c.urlParams_.Set("prettyPrint", "false")
25313 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:export")
25314 urls += "?" + c.urlParams_.Encode()
25315 req, err := http.NewRequest("POST", urls, body)
25316 if err != nil {
25317 return nil, err
25318 }
25319 req.Header = reqHeaders
25320 googleapi.Expand(req.URL, map[string]string{
25321 "name": c.name,
25322 })
25323 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25324 }
25325
25326
25327
25328
25329
25330
25331
25332 func (c *ProjectsLocationsAgentsFlowsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25333 gensupport.SetOptions(c.urlParams_, opts...)
25334 res, err := c.doRequest("json")
25335 if res != nil && res.StatusCode == http.StatusNotModified {
25336 if res.Body != nil {
25337 res.Body.Close()
25338 }
25339 return nil, gensupport.WrapError(&googleapi.Error{
25340 Code: res.StatusCode,
25341 Header: res.Header,
25342 })
25343 }
25344 if err != nil {
25345 return nil, err
25346 }
25347 defer googleapi.CloseBody(res)
25348 if err := googleapi.CheckResponse(res); err != nil {
25349 return nil, gensupport.WrapError(err)
25350 }
25351 ret := &GoogleLongrunningOperation{
25352 ServerResponse: googleapi.ServerResponse{
25353 Header: res.Header,
25354 HTTPStatusCode: res.StatusCode,
25355 },
25356 }
25357 target := &ret
25358 if err := gensupport.DecodeResponse(target, res); err != nil {
25359 return nil, err
25360 }
25361 return ret, nil
25362 }
25363
25364 type ProjectsLocationsAgentsFlowsGetCall struct {
25365 s *Service
25366 name string
25367 urlParams_ gensupport.URLParams
25368 ifNoneMatch_ string
25369 ctx_ context.Context
25370 header_ http.Header
25371 }
25372
25373
25374
25375
25376
25377 func (r *ProjectsLocationsAgentsFlowsService) Get(name string) *ProjectsLocationsAgentsFlowsGetCall {
25378 c := &ProjectsLocationsAgentsFlowsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25379 c.name = name
25380 return c
25381 }
25382
25383
25384
25385
25386
25387
25388
25389
25390
25391
25392
25393 func (c *ProjectsLocationsAgentsFlowsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetCall {
25394 c.urlParams_.Set("languageCode", languageCode)
25395 return c
25396 }
25397
25398
25399
25400
25401 func (c *ProjectsLocationsAgentsFlowsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetCall {
25402 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25403 return c
25404 }
25405
25406
25407
25408
25409 func (c *ProjectsLocationsAgentsFlowsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetCall {
25410 c.ifNoneMatch_ = entityTag
25411 return c
25412 }
25413
25414
25415 func (c *ProjectsLocationsAgentsFlowsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetCall {
25416 c.ctx_ = ctx
25417 return c
25418 }
25419
25420
25421
25422 func (c *ProjectsLocationsAgentsFlowsGetCall) Header() http.Header {
25423 if c.header_ == nil {
25424 c.header_ = make(http.Header)
25425 }
25426 return c.header_
25427 }
25428
25429 func (c *ProjectsLocationsAgentsFlowsGetCall) doRequest(alt string) (*http.Response, error) {
25430 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25431 if c.ifNoneMatch_ != "" {
25432 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25433 }
25434 var body io.Reader = nil
25435 c.urlParams_.Set("alt", alt)
25436 c.urlParams_.Set("prettyPrint", "false")
25437 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25438 urls += "?" + c.urlParams_.Encode()
25439 req, err := http.NewRequest("GET", urls, body)
25440 if err != nil {
25441 return nil, err
25442 }
25443 req.Header = reqHeaders
25444 googleapi.Expand(req.URL, map[string]string{
25445 "name": c.name,
25446 })
25447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25448 }
25449
25450
25451
25452
25453
25454
25455
25456 func (c *ProjectsLocationsAgentsFlowsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
25457 gensupport.SetOptions(c.urlParams_, opts...)
25458 res, err := c.doRequest("json")
25459 if res != nil && res.StatusCode == http.StatusNotModified {
25460 if res.Body != nil {
25461 res.Body.Close()
25462 }
25463 return nil, gensupport.WrapError(&googleapi.Error{
25464 Code: res.StatusCode,
25465 Header: res.Header,
25466 })
25467 }
25468 if err != nil {
25469 return nil, err
25470 }
25471 defer googleapi.CloseBody(res)
25472 if err := googleapi.CheckResponse(res); err != nil {
25473 return nil, gensupport.WrapError(err)
25474 }
25475 ret := &GoogleCloudDialogflowCxV3beta1Flow{
25476 ServerResponse: googleapi.ServerResponse{
25477 Header: res.Header,
25478 HTTPStatusCode: res.StatusCode,
25479 },
25480 }
25481 target := &ret
25482 if err := gensupport.DecodeResponse(target, res); err != nil {
25483 return nil, err
25484 }
25485 return ret, nil
25486 }
25487
25488 type ProjectsLocationsAgentsFlowsGetValidationResultCall struct {
25489 s *Service
25490 name string
25491 urlParams_ gensupport.URLParams
25492 ifNoneMatch_ string
25493 ctx_ context.Context
25494 header_ http.Header
25495 }
25496
25497
25498
25499
25500
25501
25502 func (r *ProjectsLocationsAgentsFlowsService) GetValidationResult(name string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
25503 c := &ProjectsLocationsAgentsFlowsGetValidationResultCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25504 c.name = name
25505 return c
25506 }
25507
25508
25509
25510 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
25511 c.urlParams_.Set("languageCode", languageCode)
25512 return c
25513 }
25514
25515
25516
25517
25518 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
25519 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25520 return c
25521 }
25522
25523
25524
25525
25526 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
25527 c.ifNoneMatch_ = entityTag
25528 return c
25529 }
25530
25531
25532 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsGetValidationResultCall {
25533 c.ctx_ = ctx
25534 return c
25535 }
25536
25537
25538
25539 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Header() http.Header {
25540 if c.header_ == nil {
25541 c.header_ = make(http.Header)
25542 }
25543 return c.header_
25544 }
25545
25546 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) doRequest(alt string) (*http.Response, error) {
25547 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25548 if c.ifNoneMatch_ != "" {
25549 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25550 }
25551 var body io.Reader = nil
25552 c.urlParams_.Set("alt", alt)
25553 c.urlParams_.Set("prettyPrint", "false")
25554 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25555 urls += "?" + c.urlParams_.Encode()
25556 req, err := http.NewRequest("GET", urls, body)
25557 if err != nil {
25558 return nil, err
25559 }
25560 req.Header = reqHeaders
25561 googleapi.Expand(req.URL, map[string]string{
25562 "name": c.name,
25563 })
25564 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25565 }
25566
25567
25568
25569
25570
25571
25572
25573 func (c *ProjectsLocationsAgentsFlowsGetValidationResultCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FlowValidationResult, error) {
25574 gensupport.SetOptions(c.urlParams_, opts...)
25575 res, err := c.doRequest("json")
25576 if res != nil && res.StatusCode == http.StatusNotModified {
25577 if res.Body != nil {
25578 res.Body.Close()
25579 }
25580 return nil, gensupport.WrapError(&googleapi.Error{
25581 Code: res.StatusCode,
25582 Header: res.Header,
25583 })
25584 }
25585 if err != nil {
25586 return nil, err
25587 }
25588 defer googleapi.CloseBody(res)
25589 if err := googleapi.CheckResponse(res); err != nil {
25590 return nil, gensupport.WrapError(err)
25591 }
25592 ret := &GoogleCloudDialogflowCxV3beta1FlowValidationResult{
25593 ServerResponse: googleapi.ServerResponse{
25594 Header: res.Header,
25595 HTTPStatusCode: res.StatusCode,
25596 },
25597 }
25598 target := &ret
25599 if err := gensupport.DecodeResponse(target, res); err != nil {
25600 return nil, err
25601 }
25602 return ret, nil
25603 }
25604
25605 type ProjectsLocationsAgentsFlowsImportCall struct {
25606 s *Service
25607 parent string
25608 googleclouddialogflowcxv3beta1importflowrequest *GoogleCloudDialogflowCxV3beta1ImportFlowRequest
25609 urlParams_ gensupport.URLParams
25610 ctx_ context.Context
25611 header_ http.Header
25612 }
25613
25614
25615
25616
25617
25618
25619
25620
25621
25622
25623
25624
25625
25626 func (r *ProjectsLocationsAgentsFlowsService) Import(parent string, googleclouddialogflowcxv3beta1importflowrequest *GoogleCloudDialogflowCxV3beta1ImportFlowRequest) *ProjectsLocationsAgentsFlowsImportCall {
25627 c := &ProjectsLocationsAgentsFlowsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25628 c.parent = parent
25629 c.googleclouddialogflowcxv3beta1importflowrequest = googleclouddialogflowcxv3beta1importflowrequest
25630 return c
25631 }
25632
25633
25634
25635
25636 func (c *ProjectsLocationsAgentsFlowsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsImportCall {
25637 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25638 return c
25639 }
25640
25641
25642 func (c *ProjectsLocationsAgentsFlowsImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsImportCall {
25643 c.ctx_ = ctx
25644 return c
25645 }
25646
25647
25648
25649 func (c *ProjectsLocationsAgentsFlowsImportCall) Header() http.Header {
25650 if c.header_ == nil {
25651 c.header_ = make(http.Header)
25652 }
25653 return c.header_
25654 }
25655
25656 func (c *ProjectsLocationsAgentsFlowsImportCall) doRequest(alt string) (*http.Response, error) {
25657 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25658 var body io.Reader = nil
25659 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importflowrequest)
25660 if err != nil {
25661 return nil, err
25662 }
25663 c.urlParams_.Set("alt", alt)
25664 c.urlParams_.Set("prettyPrint", "false")
25665 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows:import")
25666 urls += "?" + c.urlParams_.Encode()
25667 req, err := http.NewRequest("POST", urls, body)
25668 if err != nil {
25669 return nil, err
25670 }
25671 req.Header = reqHeaders
25672 googleapi.Expand(req.URL, map[string]string{
25673 "parent": c.parent,
25674 })
25675 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25676 }
25677
25678
25679
25680
25681
25682
25683
25684 func (c *ProjectsLocationsAgentsFlowsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
25685 gensupport.SetOptions(c.urlParams_, opts...)
25686 res, err := c.doRequest("json")
25687 if res != nil && res.StatusCode == http.StatusNotModified {
25688 if res.Body != nil {
25689 res.Body.Close()
25690 }
25691 return nil, gensupport.WrapError(&googleapi.Error{
25692 Code: res.StatusCode,
25693 Header: res.Header,
25694 })
25695 }
25696 if err != nil {
25697 return nil, err
25698 }
25699 defer googleapi.CloseBody(res)
25700 if err := googleapi.CheckResponse(res); err != nil {
25701 return nil, gensupport.WrapError(err)
25702 }
25703 ret := &GoogleLongrunningOperation{
25704 ServerResponse: googleapi.ServerResponse{
25705 Header: res.Header,
25706 HTTPStatusCode: res.StatusCode,
25707 },
25708 }
25709 target := &ret
25710 if err := gensupport.DecodeResponse(target, res); err != nil {
25711 return nil, err
25712 }
25713 return ret, nil
25714 }
25715
25716 type ProjectsLocationsAgentsFlowsListCall struct {
25717 s *Service
25718 parent string
25719 urlParams_ gensupport.URLParams
25720 ifNoneMatch_ string
25721 ctx_ context.Context
25722 header_ http.Header
25723 }
25724
25725
25726
25727
25728
25729 func (r *ProjectsLocationsAgentsFlowsService) List(parent string) *ProjectsLocationsAgentsFlowsListCall {
25730 c := &ProjectsLocationsAgentsFlowsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25731 c.parent = parent
25732 return c
25733 }
25734
25735
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745 func (c *ProjectsLocationsAgentsFlowsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsListCall {
25746 c.urlParams_.Set("languageCode", languageCode)
25747 return c
25748 }
25749
25750
25751
25752 func (c *ProjectsLocationsAgentsFlowsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsListCall {
25753 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
25754 return c
25755 }
25756
25757
25758
25759 func (c *ProjectsLocationsAgentsFlowsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsListCall {
25760 c.urlParams_.Set("pageToken", pageToken)
25761 return c
25762 }
25763
25764
25765
25766
25767 func (c *ProjectsLocationsAgentsFlowsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsListCall {
25768 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25769 return c
25770 }
25771
25772
25773
25774
25775 func (c *ProjectsLocationsAgentsFlowsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsListCall {
25776 c.ifNoneMatch_ = entityTag
25777 return c
25778 }
25779
25780
25781 func (c *ProjectsLocationsAgentsFlowsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsListCall {
25782 c.ctx_ = ctx
25783 return c
25784 }
25785
25786
25787
25788 func (c *ProjectsLocationsAgentsFlowsListCall) Header() http.Header {
25789 if c.header_ == nil {
25790 c.header_ = make(http.Header)
25791 }
25792 return c.header_
25793 }
25794
25795 func (c *ProjectsLocationsAgentsFlowsListCall) doRequest(alt string) (*http.Response, error) {
25796 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
25797 if c.ifNoneMatch_ != "" {
25798 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
25799 }
25800 var body io.Reader = nil
25801 c.urlParams_.Set("alt", alt)
25802 c.urlParams_.Set("prettyPrint", "false")
25803 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/flows")
25804 urls += "?" + c.urlParams_.Encode()
25805 req, err := http.NewRequest("GET", urls, body)
25806 if err != nil {
25807 return nil, err
25808 }
25809 req.Header = reqHeaders
25810 googleapi.Expand(req.URL, map[string]string{
25811 "parent": c.parent,
25812 })
25813 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25814 }
25815
25816
25817
25818
25819
25820
25821
25822 func (c *ProjectsLocationsAgentsFlowsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListFlowsResponse, error) {
25823 gensupport.SetOptions(c.urlParams_, opts...)
25824 res, err := c.doRequest("json")
25825 if res != nil && res.StatusCode == http.StatusNotModified {
25826 if res.Body != nil {
25827 res.Body.Close()
25828 }
25829 return nil, gensupport.WrapError(&googleapi.Error{
25830 Code: res.StatusCode,
25831 Header: res.Header,
25832 })
25833 }
25834 if err != nil {
25835 return nil, err
25836 }
25837 defer googleapi.CloseBody(res)
25838 if err := googleapi.CheckResponse(res); err != nil {
25839 return nil, gensupport.WrapError(err)
25840 }
25841 ret := &GoogleCloudDialogflowCxV3beta1ListFlowsResponse{
25842 ServerResponse: googleapi.ServerResponse{
25843 Header: res.Header,
25844 HTTPStatusCode: res.StatusCode,
25845 },
25846 }
25847 target := &ret
25848 if err := gensupport.DecodeResponse(target, res); err != nil {
25849 return nil, err
25850 }
25851 return ret, nil
25852 }
25853
25854
25855
25856
25857 func (c *ProjectsLocationsAgentsFlowsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListFlowsResponse) error) error {
25858 c.ctx_ = ctx
25859 defer c.PageToken(c.urlParams_.Get("pageToken"))
25860 for {
25861 x, err := c.Do()
25862 if err != nil {
25863 return err
25864 }
25865 if err := f(x); err != nil {
25866 return err
25867 }
25868 if x.NextPageToken == "" {
25869 return nil
25870 }
25871 c.PageToken(x.NextPageToken)
25872 }
25873 }
25874
25875 type ProjectsLocationsAgentsFlowsPatchCall struct {
25876 s *Service
25877 nameid string
25878 googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow
25879 urlParams_ gensupport.URLParams
25880 ctx_ context.Context
25881 header_ http.Header
25882 }
25883
25884
25885
25886
25887
25888
25889
25890 func (r *ProjectsLocationsAgentsFlowsService) Patch(nameid string, googleclouddialogflowcxv3beta1flow *GoogleCloudDialogflowCxV3beta1Flow) *ProjectsLocationsAgentsFlowsPatchCall {
25891 c := &ProjectsLocationsAgentsFlowsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
25892 c.nameid = nameid
25893 c.googleclouddialogflowcxv3beta1flow = googleclouddialogflowcxv3beta1flow
25894 return c
25895 }
25896
25897
25898
25899
25900
25901
25902
25903
25904
25905
25906
25907 func (c *ProjectsLocationsAgentsFlowsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPatchCall {
25908 c.urlParams_.Set("languageCode", languageCode)
25909 return c
25910 }
25911
25912
25913
25914
25915 func (c *ProjectsLocationsAgentsFlowsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPatchCall {
25916 c.urlParams_.Set("updateMask", updateMask)
25917 return c
25918 }
25919
25920
25921
25922
25923 func (c *ProjectsLocationsAgentsFlowsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPatchCall {
25924 c.urlParams_.Set("fields", googleapi.CombineFields(s))
25925 return c
25926 }
25927
25928
25929 func (c *ProjectsLocationsAgentsFlowsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPatchCall {
25930 c.ctx_ = ctx
25931 return c
25932 }
25933
25934
25935
25936 func (c *ProjectsLocationsAgentsFlowsPatchCall) Header() http.Header {
25937 if c.header_ == nil {
25938 c.header_ = make(http.Header)
25939 }
25940 return c.header_
25941 }
25942
25943 func (c *ProjectsLocationsAgentsFlowsPatchCall) doRequest(alt string) (*http.Response, error) {
25944 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
25945 var body io.Reader = nil
25946 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1flow)
25947 if err != nil {
25948 return nil, err
25949 }
25950 c.urlParams_.Set("alt", alt)
25951 c.urlParams_.Set("prettyPrint", "false")
25952 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
25953 urls += "?" + c.urlParams_.Encode()
25954 req, err := http.NewRequest("PATCH", urls, body)
25955 if err != nil {
25956 return nil, err
25957 }
25958 req.Header = reqHeaders
25959 googleapi.Expand(req.URL, map[string]string{
25960 "name": c.nameid,
25961 })
25962 return gensupport.SendRequest(c.ctx_, c.s.client, req)
25963 }
25964
25965
25966
25967
25968
25969
25970
25971 func (c *ProjectsLocationsAgentsFlowsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Flow, error) {
25972 gensupport.SetOptions(c.urlParams_, opts...)
25973 res, err := c.doRequest("json")
25974 if res != nil && res.StatusCode == http.StatusNotModified {
25975 if res.Body != nil {
25976 res.Body.Close()
25977 }
25978 return nil, gensupport.WrapError(&googleapi.Error{
25979 Code: res.StatusCode,
25980 Header: res.Header,
25981 })
25982 }
25983 if err != nil {
25984 return nil, err
25985 }
25986 defer googleapi.CloseBody(res)
25987 if err := googleapi.CheckResponse(res); err != nil {
25988 return nil, gensupport.WrapError(err)
25989 }
25990 ret := &GoogleCloudDialogflowCxV3beta1Flow{
25991 ServerResponse: googleapi.ServerResponse{
25992 Header: res.Header,
25993 HTTPStatusCode: res.StatusCode,
25994 },
25995 }
25996 target := &ret
25997 if err := gensupport.DecodeResponse(target, res); err != nil {
25998 return nil, err
25999 }
26000 return ret, nil
26001 }
26002
26003 type ProjectsLocationsAgentsFlowsTrainCall struct {
26004 s *Service
26005 name string
26006 googleclouddialogflowcxv3beta1trainflowrequest *GoogleCloudDialogflowCxV3beta1TrainFlowRequest
26007 urlParams_ gensupport.URLParams
26008 ctx_ context.Context
26009 header_ http.Header
26010 }
26011
26012
26013
26014
26015
26016
26017
26018
26019
26020
26021
26022
26023
26024
26025 func (r *ProjectsLocationsAgentsFlowsService) Train(name string, googleclouddialogflowcxv3beta1trainflowrequest *GoogleCloudDialogflowCxV3beta1TrainFlowRequest) *ProjectsLocationsAgentsFlowsTrainCall {
26026 c := &ProjectsLocationsAgentsFlowsTrainCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26027 c.name = name
26028 c.googleclouddialogflowcxv3beta1trainflowrequest = googleclouddialogflowcxv3beta1trainflowrequest
26029 return c
26030 }
26031
26032
26033
26034
26035 func (c *ProjectsLocationsAgentsFlowsTrainCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTrainCall {
26036 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26037 return c
26038 }
26039
26040
26041 func (c *ProjectsLocationsAgentsFlowsTrainCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTrainCall {
26042 c.ctx_ = ctx
26043 return c
26044 }
26045
26046
26047
26048 func (c *ProjectsLocationsAgentsFlowsTrainCall) Header() http.Header {
26049 if c.header_ == nil {
26050 c.header_ = make(http.Header)
26051 }
26052 return c.header_
26053 }
26054
26055 func (c *ProjectsLocationsAgentsFlowsTrainCall) doRequest(alt string) (*http.Response, error) {
26056 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26057 var body io.Reader = nil
26058 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1trainflowrequest)
26059 if err != nil {
26060 return nil, err
26061 }
26062 c.urlParams_.Set("alt", alt)
26063 c.urlParams_.Set("prettyPrint", "false")
26064 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:train")
26065 urls += "?" + c.urlParams_.Encode()
26066 req, err := http.NewRequest("POST", urls, body)
26067 if err != nil {
26068 return nil, err
26069 }
26070 req.Header = reqHeaders
26071 googleapi.Expand(req.URL, map[string]string{
26072 "name": c.name,
26073 })
26074 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26075 }
26076
26077
26078
26079
26080
26081
26082
26083 func (c *ProjectsLocationsAgentsFlowsTrainCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
26084 gensupport.SetOptions(c.urlParams_, opts...)
26085 res, err := c.doRequest("json")
26086 if res != nil && res.StatusCode == http.StatusNotModified {
26087 if res.Body != nil {
26088 res.Body.Close()
26089 }
26090 return nil, gensupport.WrapError(&googleapi.Error{
26091 Code: res.StatusCode,
26092 Header: res.Header,
26093 })
26094 }
26095 if err != nil {
26096 return nil, err
26097 }
26098 defer googleapi.CloseBody(res)
26099 if err := googleapi.CheckResponse(res); err != nil {
26100 return nil, gensupport.WrapError(err)
26101 }
26102 ret := &GoogleLongrunningOperation{
26103 ServerResponse: googleapi.ServerResponse{
26104 Header: res.Header,
26105 HTTPStatusCode: res.StatusCode,
26106 },
26107 }
26108 target := &ret
26109 if err := gensupport.DecodeResponse(target, res); err != nil {
26110 return nil, err
26111 }
26112 return ret, nil
26113 }
26114
26115 type ProjectsLocationsAgentsFlowsValidateCall struct {
26116 s *Service
26117 name string
26118 googleclouddialogflowcxv3beta1validateflowrequest *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest
26119 urlParams_ gensupport.URLParams
26120 ctx_ context.Context
26121 header_ http.Header
26122 }
26123
26124
26125
26126
26127
26128
26129 func (r *ProjectsLocationsAgentsFlowsService) Validate(name string, googleclouddialogflowcxv3beta1validateflowrequest *GoogleCloudDialogflowCxV3beta1ValidateFlowRequest) *ProjectsLocationsAgentsFlowsValidateCall {
26130 c := &ProjectsLocationsAgentsFlowsValidateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26131 c.name = name
26132 c.googleclouddialogflowcxv3beta1validateflowrequest = googleclouddialogflowcxv3beta1validateflowrequest
26133 return c
26134 }
26135
26136
26137
26138
26139 func (c *ProjectsLocationsAgentsFlowsValidateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsValidateCall {
26140 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26141 return c
26142 }
26143
26144
26145 func (c *ProjectsLocationsAgentsFlowsValidateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsValidateCall {
26146 c.ctx_ = ctx
26147 return c
26148 }
26149
26150
26151
26152 func (c *ProjectsLocationsAgentsFlowsValidateCall) Header() http.Header {
26153 if c.header_ == nil {
26154 c.header_ = make(http.Header)
26155 }
26156 return c.header_
26157 }
26158
26159 func (c *ProjectsLocationsAgentsFlowsValidateCall) doRequest(alt string) (*http.Response, error) {
26160 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26161 var body io.Reader = nil
26162 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1validateflowrequest)
26163 if err != nil {
26164 return nil, err
26165 }
26166 c.urlParams_.Set("alt", alt)
26167 c.urlParams_.Set("prettyPrint", "false")
26168 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:validate")
26169 urls += "?" + c.urlParams_.Encode()
26170 req, err := http.NewRequest("POST", urls, body)
26171 if err != nil {
26172 return nil, err
26173 }
26174 req.Header = reqHeaders
26175 googleapi.Expand(req.URL, map[string]string{
26176 "name": c.name,
26177 })
26178 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26179 }
26180
26181
26182
26183
26184
26185
26186
26187 func (c *ProjectsLocationsAgentsFlowsValidateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FlowValidationResult, error) {
26188 gensupport.SetOptions(c.urlParams_, opts...)
26189 res, err := c.doRequest("json")
26190 if res != nil && res.StatusCode == http.StatusNotModified {
26191 if res.Body != nil {
26192 res.Body.Close()
26193 }
26194 return nil, gensupport.WrapError(&googleapi.Error{
26195 Code: res.StatusCode,
26196 Header: res.Header,
26197 })
26198 }
26199 if err != nil {
26200 return nil, err
26201 }
26202 defer googleapi.CloseBody(res)
26203 if err := googleapi.CheckResponse(res); err != nil {
26204 return nil, gensupport.WrapError(err)
26205 }
26206 ret := &GoogleCloudDialogflowCxV3beta1FlowValidationResult{
26207 ServerResponse: googleapi.ServerResponse{
26208 Header: res.Header,
26209 HTTPStatusCode: res.StatusCode,
26210 },
26211 }
26212 target := &ret
26213 if err := gensupport.DecodeResponse(target, res); err != nil {
26214 return nil, err
26215 }
26216 return ret, nil
26217 }
26218
26219 type ProjectsLocationsAgentsFlowsPagesCreateCall struct {
26220 s *Service
26221 parent string
26222 googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page
26223 urlParams_ gensupport.URLParams
26224 ctx_ context.Context
26225 header_ http.Header
26226 }
26227
26228
26229
26230
26231
26232 func (r *ProjectsLocationsAgentsFlowsPagesService) Create(parent string, googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page) *ProjectsLocationsAgentsFlowsPagesCreateCall {
26233 c := &ProjectsLocationsAgentsFlowsPagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26234 c.parent = parent
26235 c.googleclouddialogflowcxv3beta1page = googleclouddialogflowcxv3beta1page
26236 return c
26237 }
26238
26239
26240
26241
26242
26243
26244
26245
26246
26247
26248
26249
26250
26251
26252
26253
26254
26255 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesCreateCall {
26256 c.urlParams_.Set("languageCode", languageCode)
26257 return c
26258 }
26259
26260
26261
26262
26263 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesCreateCall {
26264 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26265 return c
26266 }
26267
26268
26269 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesCreateCall {
26270 c.ctx_ = ctx
26271 return c
26272 }
26273
26274
26275
26276 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Header() http.Header {
26277 if c.header_ == nil {
26278 c.header_ = make(http.Header)
26279 }
26280 return c.header_
26281 }
26282
26283 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) doRequest(alt string) (*http.Response, error) {
26284 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26285 var body io.Reader = nil
26286 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1page)
26287 if err != nil {
26288 return nil, err
26289 }
26290 c.urlParams_.Set("alt", alt)
26291 c.urlParams_.Set("prettyPrint", "false")
26292 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/pages")
26293 urls += "?" + c.urlParams_.Encode()
26294 req, err := http.NewRequest("POST", urls, body)
26295 if err != nil {
26296 return nil, err
26297 }
26298 req.Header = reqHeaders
26299 googleapi.Expand(req.URL, map[string]string{
26300 "parent": c.parent,
26301 })
26302 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26303 }
26304
26305
26306
26307
26308
26309
26310
26311 func (c *ProjectsLocationsAgentsFlowsPagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
26312 gensupport.SetOptions(c.urlParams_, opts...)
26313 res, err := c.doRequest("json")
26314 if res != nil && res.StatusCode == http.StatusNotModified {
26315 if res.Body != nil {
26316 res.Body.Close()
26317 }
26318 return nil, gensupport.WrapError(&googleapi.Error{
26319 Code: res.StatusCode,
26320 Header: res.Header,
26321 })
26322 }
26323 if err != nil {
26324 return nil, err
26325 }
26326 defer googleapi.CloseBody(res)
26327 if err := googleapi.CheckResponse(res); err != nil {
26328 return nil, gensupport.WrapError(err)
26329 }
26330 ret := &GoogleCloudDialogflowCxV3beta1Page{
26331 ServerResponse: googleapi.ServerResponse{
26332 Header: res.Header,
26333 HTTPStatusCode: res.StatusCode,
26334 },
26335 }
26336 target := &ret
26337 if err := gensupport.DecodeResponse(target, res); err != nil {
26338 return nil, err
26339 }
26340 return ret, nil
26341 }
26342
26343 type ProjectsLocationsAgentsFlowsPagesDeleteCall struct {
26344 s *Service
26345 name string
26346 urlParams_ gensupport.URLParams
26347 ctx_ context.Context
26348 header_ http.Header
26349 }
26350
26351
26352
26353
26354
26355 func (r *ProjectsLocationsAgentsFlowsPagesService) Delete(name string) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
26356 c := &ProjectsLocationsAgentsFlowsPagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26357 c.name = name
26358 return c
26359 }
26360
26361
26362
26363
26364
26365
26366
26367
26368 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
26369 c.urlParams_.Set("force", fmt.Sprint(force))
26370 return c
26371 }
26372
26373
26374
26375
26376 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
26377 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26378 return c
26379 }
26380
26381
26382 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesDeleteCall {
26383 c.ctx_ = ctx
26384 return c
26385 }
26386
26387
26388
26389 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Header() http.Header {
26390 if c.header_ == nil {
26391 c.header_ = make(http.Header)
26392 }
26393 return c.header_
26394 }
26395
26396 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) doRequest(alt string) (*http.Response, error) {
26397 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26398 var body io.Reader = nil
26399 c.urlParams_.Set("alt", alt)
26400 c.urlParams_.Set("prettyPrint", "false")
26401 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
26402 urls += "?" + c.urlParams_.Encode()
26403 req, err := http.NewRequest("DELETE", urls, body)
26404 if err != nil {
26405 return nil, err
26406 }
26407 req.Header = reqHeaders
26408 googleapi.Expand(req.URL, map[string]string{
26409 "name": c.name,
26410 })
26411 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26412 }
26413
26414
26415
26416
26417
26418
26419
26420 func (c *ProjectsLocationsAgentsFlowsPagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
26421 gensupport.SetOptions(c.urlParams_, opts...)
26422 res, err := c.doRequest("json")
26423 if res != nil && res.StatusCode == http.StatusNotModified {
26424 if res.Body != nil {
26425 res.Body.Close()
26426 }
26427 return nil, gensupport.WrapError(&googleapi.Error{
26428 Code: res.StatusCode,
26429 Header: res.Header,
26430 })
26431 }
26432 if err != nil {
26433 return nil, err
26434 }
26435 defer googleapi.CloseBody(res)
26436 if err := googleapi.CheckResponse(res); err != nil {
26437 return nil, gensupport.WrapError(err)
26438 }
26439 ret := &GoogleProtobufEmpty{
26440 ServerResponse: googleapi.ServerResponse{
26441 Header: res.Header,
26442 HTTPStatusCode: res.StatusCode,
26443 },
26444 }
26445 target := &ret
26446 if err := gensupport.DecodeResponse(target, res); err != nil {
26447 return nil, err
26448 }
26449 return ret, nil
26450 }
26451
26452 type ProjectsLocationsAgentsFlowsPagesGetCall struct {
26453 s *Service
26454 name string
26455 urlParams_ gensupport.URLParams
26456 ifNoneMatch_ string
26457 ctx_ context.Context
26458 header_ http.Header
26459 }
26460
26461
26462
26463
26464
26465 func (r *ProjectsLocationsAgentsFlowsPagesService) Get(name string) *ProjectsLocationsAgentsFlowsPagesGetCall {
26466 c := &ProjectsLocationsAgentsFlowsPagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26467 c.name = name
26468 return c
26469 }
26470
26471
26472
26473
26474
26475
26476
26477
26478
26479
26480
26481
26482
26483
26484
26485
26486
26487
26488 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesGetCall {
26489 c.urlParams_.Set("languageCode", languageCode)
26490 return c
26491 }
26492
26493
26494
26495
26496 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesGetCall {
26497 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26498 return c
26499 }
26500
26501
26502
26503
26504 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesGetCall {
26505 c.ifNoneMatch_ = entityTag
26506 return c
26507 }
26508
26509
26510 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesGetCall {
26511 c.ctx_ = ctx
26512 return c
26513 }
26514
26515
26516
26517 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Header() http.Header {
26518 if c.header_ == nil {
26519 c.header_ = make(http.Header)
26520 }
26521 return c.header_
26522 }
26523
26524 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) doRequest(alt string) (*http.Response, error) {
26525 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26526 if c.ifNoneMatch_ != "" {
26527 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26528 }
26529 var body io.Reader = nil
26530 c.urlParams_.Set("alt", alt)
26531 c.urlParams_.Set("prettyPrint", "false")
26532 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
26533 urls += "?" + c.urlParams_.Encode()
26534 req, err := http.NewRequest("GET", urls, body)
26535 if err != nil {
26536 return nil, err
26537 }
26538 req.Header = reqHeaders
26539 googleapi.Expand(req.URL, map[string]string{
26540 "name": c.name,
26541 })
26542 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26543 }
26544
26545
26546
26547
26548
26549
26550
26551 func (c *ProjectsLocationsAgentsFlowsPagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
26552 gensupport.SetOptions(c.urlParams_, opts...)
26553 res, err := c.doRequest("json")
26554 if res != nil && res.StatusCode == http.StatusNotModified {
26555 if res.Body != nil {
26556 res.Body.Close()
26557 }
26558 return nil, gensupport.WrapError(&googleapi.Error{
26559 Code: res.StatusCode,
26560 Header: res.Header,
26561 })
26562 }
26563 if err != nil {
26564 return nil, err
26565 }
26566 defer googleapi.CloseBody(res)
26567 if err := googleapi.CheckResponse(res); err != nil {
26568 return nil, gensupport.WrapError(err)
26569 }
26570 ret := &GoogleCloudDialogflowCxV3beta1Page{
26571 ServerResponse: googleapi.ServerResponse{
26572 Header: res.Header,
26573 HTTPStatusCode: res.StatusCode,
26574 },
26575 }
26576 target := &ret
26577 if err := gensupport.DecodeResponse(target, res); err != nil {
26578 return nil, err
26579 }
26580 return ret, nil
26581 }
26582
26583 type ProjectsLocationsAgentsFlowsPagesListCall struct {
26584 s *Service
26585 parent string
26586 urlParams_ gensupport.URLParams
26587 ifNoneMatch_ string
26588 ctx_ context.Context
26589 header_ http.Header
26590 }
26591
26592
26593
26594
26595
26596 func (r *ProjectsLocationsAgentsFlowsPagesService) List(parent string) *ProjectsLocationsAgentsFlowsPagesListCall {
26597 c := &ProjectsLocationsAgentsFlowsPagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26598 c.parent = parent
26599 return c
26600 }
26601
26602
26603
26604
26605
26606
26607
26608
26609
26610
26611
26612
26613
26614
26615
26616
26617
26618
26619 func (c *ProjectsLocationsAgentsFlowsPagesListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesListCall {
26620 c.urlParams_.Set("languageCode", languageCode)
26621 return c
26622 }
26623
26624
26625
26626 func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsPagesListCall {
26627 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
26628 return c
26629 }
26630
26631
26632
26633 func (c *ProjectsLocationsAgentsFlowsPagesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsPagesListCall {
26634 c.urlParams_.Set("pageToken", pageToken)
26635 return c
26636 }
26637
26638
26639
26640
26641 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesListCall {
26642 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26643 return c
26644 }
26645
26646
26647
26648
26649 func (c *ProjectsLocationsAgentsFlowsPagesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsPagesListCall {
26650 c.ifNoneMatch_ = entityTag
26651 return c
26652 }
26653
26654
26655 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesListCall {
26656 c.ctx_ = ctx
26657 return c
26658 }
26659
26660
26661
26662 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Header() http.Header {
26663 if c.header_ == nil {
26664 c.header_ = make(http.Header)
26665 }
26666 return c.header_
26667 }
26668
26669 func (c *ProjectsLocationsAgentsFlowsPagesListCall) doRequest(alt string) (*http.Response, error) {
26670 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
26671 if c.ifNoneMatch_ != "" {
26672 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
26673 }
26674 var body io.Reader = nil
26675 c.urlParams_.Set("alt", alt)
26676 c.urlParams_.Set("prettyPrint", "false")
26677 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/pages")
26678 urls += "?" + c.urlParams_.Encode()
26679 req, err := http.NewRequest("GET", urls, body)
26680 if err != nil {
26681 return nil, err
26682 }
26683 req.Header = reqHeaders
26684 googleapi.Expand(req.URL, map[string]string{
26685 "parent": c.parent,
26686 })
26687 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26688 }
26689
26690
26691
26692
26693
26694
26695
26696 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListPagesResponse, error) {
26697 gensupport.SetOptions(c.urlParams_, opts...)
26698 res, err := c.doRequest("json")
26699 if res != nil && res.StatusCode == http.StatusNotModified {
26700 if res.Body != nil {
26701 res.Body.Close()
26702 }
26703 return nil, gensupport.WrapError(&googleapi.Error{
26704 Code: res.StatusCode,
26705 Header: res.Header,
26706 })
26707 }
26708 if err != nil {
26709 return nil, err
26710 }
26711 defer googleapi.CloseBody(res)
26712 if err := googleapi.CheckResponse(res); err != nil {
26713 return nil, gensupport.WrapError(err)
26714 }
26715 ret := &GoogleCloudDialogflowCxV3beta1ListPagesResponse{
26716 ServerResponse: googleapi.ServerResponse{
26717 Header: res.Header,
26718 HTTPStatusCode: res.StatusCode,
26719 },
26720 }
26721 target := &ret
26722 if err := gensupport.DecodeResponse(target, res); err != nil {
26723 return nil, err
26724 }
26725 return ret, nil
26726 }
26727
26728
26729
26730
26731 func (c *ProjectsLocationsAgentsFlowsPagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListPagesResponse) error) error {
26732 c.ctx_ = ctx
26733 defer c.PageToken(c.urlParams_.Get("pageToken"))
26734 for {
26735 x, err := c.Do()
26736 if err != nil {
26737 return err
26738 }
26739 if err := f(x); err != nil {
26740 return err
26741 }
26742 if x.NextPageToken == "" {
26743 return nil
26744 }
26745 c.PageToken(x.NextPageToken)
26746 }
26747 }
26748
26749 type ProjectsLocationsAgentsFlowsPagesPatchCall struct {
26750 s *Service
26751 nameid string
26752 googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page
26753 urlParams_ gensupport.URLParams
26754 ctx_ context.Context
26755 header_ http.Header
26756 }
26757
26758
26759
26760
26761
26762
26763 func (r *ProjectsLocationsAgentsFlowsPagesService) Patch(nameid string, googleclouddialogflowcxv3beta1page *GoogleCloudDialogflowCxV3beta1Page) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26764 c := &ProjectsLocationsAgentsFlowsPagesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26765 c.nameid = nameid
26766 c.googleclouddialogflowcxv3beta1page = googleclouddialogflowcxv3beta1page
26767 return c
26768 }
26769
26770
26771
26772
26773
26774
26775
26776
26777
26778
26779
26780
26781
26782
26783
26784
26785
26786 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26787 c.urlParams_.Set("languageCode", languageCode)
26788 return c
26789 }
26790
26791
26792
26793
26794 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26795 c.urlParams_.Set("updateMask", updateMask)
26796 return c
26797 }
26798
26799
26800
26801
26802 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26803 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26804 return c
26805 }
26806
26807
26808 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsPagesPatchCall {
26809 c.ctx_ = ctx
26810 return c
26811 }
26812
26813
26814
26815 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Header() http.Header {
26816 if c.header_ == nil {
26817 c.header_ = make(http.Header)
26818 }
26819 return c.header_
26820 }
26821
26822 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) doRequest(alt string) (*http.Response, error) {
26823 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26824 var body io.Reader = nil
26825 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1page)
26826 if err != nil {
26827 return nil, err
26828 }
26829 c.urlParams_.Set("alt", alt)
26830 c.urlParams_.Set("prettyPrint", "false")
26831 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
26832 urls += "?" + c.urlParams_.Encode()
26833 req, err := http.NewRequest("PATCH", urls, body)
26834 if err != nil {
26835 return nil, err
26836 }
26837 req.Header = reqHeaders
26838 googleapi.Expand(req.URL, map[string]string{
26839 "name": c.nameid,
26840 })
26841 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26842 }
26843
26844
26845
26846
26847
26848
26849
26850 func (c *ProjectsLocationsAgentsFlowsPagesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Page, error) {
26851 gensupport.SetOptions(c.urlParams_, opts...)
26852 res, err := c.doRequest("json")
26853 if res != nil && res.StatusCode == http.StatusNotModified {
26854 if res.Body != nil {
26855 res.Body.Close()
26856 }
26857 return nil, gensupport.WrapError(&googleapi.Error{
26858 Code: res.StatusCode,
26859 Header: res.Header,
26860 })
26861 }
26862 if err != nil {
26863 return nil, err
26864 }
26865 defer googleapi.CloseBody(res)
26866 if err := googleapi.CheckResponse(res); err != nil {
26867 return nil, gensupport.WrapError(err)
26868 }
26869 ret := &GoogleCloudDialogflowCxV3beta1Page{
26870 ServerResponse: googleapi.ServerResponse{
26871 Header: res.Header,
26872 HTTPStatusCode: res.StatusCode,
26873 },
26874 }
26875 target := &ret
26876 if err := gensupport.DecodeResponse(target, res); err != nil {
26877 return nil, err
26878 }
26879 return ret, nil
26880 }
26881
26882 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall struct {
26883 s *Service
26884 parent string
26885 googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
26886 urlParams_ gensupport.URLParams
26887 ctx_ context.Context
26888 header_ http.Header
26889 }
26890
26891
26892
26893
26894
26895
26896
26897
26898
26899 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26900 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
26901 c.parent = parent
26902 c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
26903 return c
26904 }
26905
26906
26907
26908
26909
26910
26911
26912
26913
26914 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26915 c.urlParams_.Set("languageCode", languageCode)
26916 return c
26917 }
26918
26919
26920
26921
26922 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26923 c.urlParams_.Set("fields", googleapi.CombineFields(s))
26924 return c
26925 }
26926
26927
26928 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall {
26929 c.ctx_ = ctx
26930 return c
26931 }
26932
26933
26934
26935 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Header() http.Header {
26936 if c.header_ == nil {
26937 c.header_ = make(http.Header)
26938 }
26939 return c.header_
26940 }
26941
26942 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
26943 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
26944 var body io.Reader = nil
26945 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
26946 if err != nil {
26947 return nil, err
26948 }
26949 c.urlParams_.Set("alt", alt)
26950 c.urlParams_.Set("prettyPrint", "false")
26951 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
26952 urls += "?" + c.urlParams_.Encode()
26953 req, err := http.NewRequest("POST", urls, body)
26954 if err != nil {
26955 return nil, err
26956 }
26957 req.Header = reqHeaders
26958 googleapi.Expand(req.URL, map[string]string{
26959 "parent": c.parent,
26960 })
26961 return gensupport.SendRequest(c.ctx_, c.s.client, req)
26962 }
26963
26964
26965
26966
26967
26968
26969
26970 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
26971 gensupport.SetOptions(c.urlParams_, opts...)
26972 res, err := c.doRequest("json")
26973 if res != nil && res.StatusCode == http.StatusNotModified {
26974 if res.Body != nil {
26975 res.Body.Close()
26976 }
26977 return nil, gensupport.WrapError(&googleapi.Error{
26978 Code: res.StatusCode,
26979 Header: res.Header,
26980 })
26981 }
26982 if err != nil {
26983 return nil, err
26984 }
26985 defer googleapi.CloseBody(res)
26986 if err := googleapi.CheckResponse(res); err != nil {
26987 return nil, gensupport.WrapError(err)
26988 }
26989 ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
26990 ServerResponse: googleapi.ServerResponse{
26991 Header: res.Header,
26992 HTTPStatusCode: res.StatusCode,
26993 },
26994 }
26995 target := &ret
26996 if err := gensupport.DecodeResponse(target, res); err != nil {
26997 return nil, err
26998 }
26999 return ret, nil
27000 }
27001
27002 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall struct {
27003 s *Service
27004 name string
27005 urlParams_ gensupport.URLParams
27006 ctx_ context.Context
27007 header_ http.Header
27008 }
27009
27010
27011
27012
27013
27014
27015
27016
27017 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
27018 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27019 c.name = name
27020 return c
27021 }
27022
27023
27024
27025
27026
27027
27028
27029 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
27030 c.urlParams_.Set("force", fmt.Sprint(force))
27031 return c
27032 }
27033
27034
27035
27036
27037 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
27038 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27039 return c
27040 }
27041
27042
27043 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall {
27044 c.ctx_ = ctx
27045 return c
27046 }
27047
27048
27049
27050 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Header() http.Header {
27051 if c.header_ == nil {
27052 c.header_ = make(http.Header)
27053 }
27054 return c.header_
27055 }
27056
27057 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
27058 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27059 var body io.Reader = nil
27060 c.urlParams_.Set("alt", alt)
27061 c.urlParams_.Set("prettyPrint", "false")
27062 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27063 urls += "?" + c.urlParams_.Encode()
27064 req, err := http.NewRequest("DELETE", urls, body)
27065 if err != nil {
27066 return nil, err
27067 }
27068 req.Header = reqHeaders
27069 googleapi.Expand(req.URL, map[string]string{
27070 "name": c.name,
27071 })
27072 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27073 }
27074
27075
27076
27077
27078
27079
27080
27081 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27082 gensupport.SetOptions(c.urlParams_, opts...)
27083 res, err := c.doRequest("json")
27084 if res != nil && res.StatusCode == http.StatusNotModified {
27085 if res.Body != nil {
27086 res.Body.Close()
27087 }
27088 return nil, gensupport.WrapError(&googleapi.Error{
27089 Code: res.StatusCode,
27090 Header: res.Header,
27091 })
27092 }
27093 if err != nil {
27094 return nil, err
27095 }
27096 defer googleapi.CloseBody(res)
27097 if err := googleapi.CheckResponse(res); err != nil {
27098 return nil, gensupport.WrapError(err)
27099 }
27100 ret := &GoogleProtobufEmpty{
27101 ServerResponse: googleapi.ServerResponse{
27102 Header: res.Header,
27103 HTTPStatusCode: res.StatusCode,
27104 },
27105 }
27106 target := &ret
27107 if err := gensupport.DecodeResponse(target, res); err != nil {
27108 return nil, err
27109 }
27110 return ret, nil
27111 }
27112
27113 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall struct {
27114 s *Service
27115 name string
27116 urlParams_ gensupport.URLParams
27117 ifNoneMatch_ string
27118 ctx_ context.Context
27119 header_ http.Header
27120 }
27121
27122
27123
27124
27125
27126
27127 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
27128 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27129 c.name = name
27130 return c
27131 }
27132
27133
27134
27135
27136
27137
27138
27139
27140
27141
27142 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
27143 c.urlParams_.Set("languageCode", languageCode)
27144 return c
27145 }
27146
27147
27148
27149
27150 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
27151 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27152 return c
27153 }
27154
27155
27156
27157
27158 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
27159 c.ifNoneMatch_ = entityTag
27160 return c
27161 }
27162
27163
27164 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall {
27165 c.ctx_ = ctx
27166 return c
27167 }
27168
27169
27170
27171 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Header() http.Header {
27172 if c.header_ == nil {
27173 c.header_ = make(http.Header)
27174 }
27175 return c.header_
27176 }
27177
27178 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
27179 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27180 if c.ifNoneMatch_ != "" {
27181 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27182 }
27183 var body io.Reader = nil
27184 c.urlParams_.Set("alt", alt)
27185 c.urlParams_.Set("prettyPrint", "false")
27186 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27187 urls += "?" + c.urlParams_.Encode()
27188 req, err := http.NewRequest("GET", urls, body)
27189 if err != nil {
27190 return nil, err
27191 }
27192 req.Header = reqHeaders
27193 googleapi.Expand(req.URL, map[string]string{
27194 "name": c.name,
27195 })
27196 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27197 }
27198
27199
27200
27201
27202
27203
27204
27205 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
27206 gensupport.SetOptions(c.urlParams_, opts...)
27207 res, err := c.doRequest("json")
27208 if res != nil && res.StatusCode == http.StatusNotModified {
27209 if res.Body != nil {
27210 res.Body.Close()
27211 }
27212 return nil, gensupport.WrapError(&googleapi.Error{
27213 Code: res.StatusCode,
27214 Header: res.Header,
27215 })
27216 }
27217 if err != nil {
27218 return nil, err
27219 }
27220 defer googleapi.CloseBody(res)
27221 if err := googleapi.CheckResponse(res); err != nil {
27222 return nil, gensupport.WrapError(err)
27223 }
27224 ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
27225 ServerResponse: googleapi.ServerResponse{
27226 Header: res.Header,
27227 HTTPStatusCode: res.StatusCode,
27228 },
27229 }
27230 target := &ret
27231 if err := gensupport.DecodeResponse(target, res); err != nil {
27232 return nil, err
27233 }
27234 return ret, nil
27235 }
27236
27237 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall struct {
27238 s *Service
27239 parent string
27240 urlParams_ gensupport.URLParams
27241 ifNoneMatch_ string
27242 ctx_ context.Context
27243 header_ http.Header
27244 }
27245
27246
27247
27248
27249
27250 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27251 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27252 c.parent = parent
27253 return c
27254 }
27255
27256
27257
27258
27259
27260
27261
27262
27263
27264
27265 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27266 c.urlParams_.Set("languageCode", languageCode)
27267 return c
27268 }
27269
27270
27271
27272 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27273 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27274 return c
27275 }
27276
27277
27278
27279 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27280 c.urlParams_.Set("pageToken", pageToken)
27281 return c
27282 }
27283
27284
27285
27286
27287 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27288 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27289 return c
27290 }
27291
27292
27293
27294
27295 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27296 c.ifNoneMatch_ = entityTag
27297 return c
27298 }
27299
27300
27301 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall {
27302 c.ctx_ = ctx
27303 return c
27304 }
27305
27306
27307
27308 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Header() http.Header {
27309 if c.header_ == nil {
27310 c.header_ = make(http.Header)
27311 }
27312 return c.header_
27313 }
27314
27315 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
27316 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27317 if c.ifNoneMatch_ != "" {
27318 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27319 }
27320 var body io.Reader = nil
27321 c.urlParams_.Set("alt", alt)
27322 c.urlParams_.Set("prettyPrint", "false")
27323 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
27324 urls += "?" + c.urlParams_.Encode()
27325 req, err := http.NewRequest("GET", urls, body)
27326 if err != nil {
27327 return nil, err
27328 }
27329 req.Header = reqHeaders
27330 googleapi.Expand(req.URL, map[string]string{
27331 "parent": c.parent,
27332 })
27333 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27334 }
27335
27336
27337
27338
27339
27340
27341
27342 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse, error) {
27343 gensupport.SetOptions(c.urlParams_, opts...)
27344 res, err := c.doRequest("json")
27345 if res != nil && res.StatusCode == http.StatusNotModified {
27346 if res.Body != nil {
27347 res.Body.Close()
27348 }
27349 return nil, gensupport.WrapError(&googleapi.Error{
27350 Code: res.StatusCode,
27351 Header: res.Header,
27352 })
27353 }
27354 if err != nil {
27355 return nil, err
27356 }
27357 defer googleapi.CloseBody(res)
27358 if err := googleapi.CheckResponse(res); err != nil {
27359 return nil, gensupport.WrapError(err)
27360 }
27361 ret := &GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse{
27362 ServerResponse: googleapi.ServerResponse{
27363 Header: res.Header,
27364 HTTPStatusCode: res.StatusCode,
27365 },
27366 }
27367 target := &ret
27368 if err := gensupport.DecodeResponse(target, res); err != nil {
27369 return nil, err
27370 }
27371 return ret, nil
27372 }
27373
27374
27375
27376
27377 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) error) error {
27378 c.ctx_ = ctx
27379 defer c.PageToken(c.urlParams_.Get("pageToken"))
27380 for {
27381 x, err := c.Do()
27382 if err != nil {
27383 return err
27384 }
27385 if err := f(x); err != nil {
27386 return err
27387 }
27388 if x.NextPageToken == "" {
27389 return nil
27390 }
27391 c.PageToken(x.NextPageToken)
27392 }
27393 }
27394
27395 type ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall struct {
27396 s *Service
27397 nameid string
27398 googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
27399 urlParams_ gensupport.URLParams
27400 ctx_ context.Context
27401 header_ http.Header
27402 }
27403
27404
27405
27406
27407
27408
27409
27410
27411
27412
27413
27414 func (r *ProjectsLocationsAgentsFlowsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
27415 c := &ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27416 c.nameid = nameid
27417 c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
27418 return c
27419 }
27420
27421
27422
27423
27424
27425
27426
27427
27428
27429 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
27430 c.urlParams_.Set("languageCode", languageCode)
27431 return c
27432 }
27433
27434
27435
27436 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
27437 c.urlParams_.Set("updateMask", updateMask)
27438 return c
27439 }
27440
27441
27442
27443
27444 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
27445 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27446 return c
27447 }
27448
27449
27450 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall {
27451 c.ctx_ = ctx
27452 return c
27453 }
27454
27455
27456
27457 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Header() http.Header {
27458 if c.header_ == nil {
27459 c.header_ = make(http.Header)
27460 }
27461 return c.header_
27462 }
27463
27464 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
27465 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27466 var body io.Reader = nil
27467 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
27468 if err != nil {
27469 return nil, err
27470 }
27471 c.urlParams_.Set("alt", alt)
27472 c.urlParams_.Set("prettyPrint", "false")
27473 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27474 urls += "?" + c.urlParams_.Encode()
27475 req, err := http.NewRequest("PATCH", urls, body)
27476 if err != nil {
27477 return nil, err
27478 }
27479 req.Header = reqHeaders
27480 googleapi.Expand(req.URL, map[string]string{
27481 "name": c.nameid,
27482 })
27483 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27484 }
27485
27486
27487
27488
27489
27490
27491
27492 func (c *ProjectsLocationsAgentsFlowsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
27493 gensupport.SetOptions(c.urlParams_, opts...)
27494 res, err := c.doRequest("json")
27495 if res != nil && res.StatusCode == http.StatusNotModified {
27496 if res.Body != nil {
27497 res.Body.Close()
27498 }
27499 return nil, gensupport.WrapError(&googleapi.Error{
27500 Code: res.StatusCode,
27501 Header: res.Header,
27502 })
27503 }
27504 if err != nil {
27505 return nil, err
27506 }
27507 defer googleapi.CloseBody(res)
27508 if err := googleapi.CheckResponse(res); err != nil {
27509 return nil, gensupport.WrapError(err)
27510 }
27511 ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
27512 ServerResponse: googleapi.ServerResponse{
27513 Header: res.Header,
27514 HTTPStatusCode: res.StatusCode,
27515 },
27516 }
27517 target := &ret
27518 if err := gensupport.DecodeResponse(target, res); err != nil {
27519 return nil, err
27520 }
27521 return ret, nil
27522 }
27523
27524 type ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall struct {
27525 s *Service
27526 baseVersion string
27527 googleclouddialogflowcxv3beta1compareversionsrequest *GoogleCloudDialogflowCxV3beta1CompareVersionsRequest
27528 urlParams_ gensupport.URLParams
27529 ctx_ context.Context
27530 header_ http.Header
27531 }
27532
27533
27534
27535
27536
27537
27538 func (r *ProjectsLocationsAgentsFlowsVersionsService) CompareVersions(baseVersion string, googleclouddialogflowcxv3beta1compareversionsrequest *GoogleCloudDialogflowCxV3beta1CompareVersionsRequest) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
27539 c := &ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27540 c.baseVersion = baseVersion
27541 c.googleclouddialogflowcxv3beta1compareversionsrequest = googleclouddialogflowcxv3beta1compareversionsrequest
27542 return c
27543 }
27544
27545
27546
27547
27548 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
27549 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27550 return c
27551 }
27552
27553
27554 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall {
27555 c.ctx_ = ctx
27556 return c
27557 }
27558
27559
27560
27561 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Header() http.Header {
27562 if c.header_ == nil {
27563 c.header_ = make(http.Header)
27564 }
27565 return c.header_
27566 }
27567
27568 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) doRequest(alt string) (*http.Response, error) {
27569 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27570 var body io.Reader = nil
27571 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1compareversionsrequest)
27572 if err != nil {
27573 return nil, err
27574 }
27575 c.urlParams_.Set("alt", alt)
27576 c.urlParams_.Set("prettyPrint", "false")
27577 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+baseVersion}:compareVersions")
27578 urls += "?" + c.urlParams_.Encode()
27579 req, err := http.NewRequest("POST", urls, body)
27580 if err != nil {
27581 return nil, err
27582 }
27583 req.Header = reqHeaders
27584 googleapi.Expand(req.URL, map[string]string{
27585 "baseVersion": c.baseVersion,
27586 })
27587 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27588 }
27589
27590
27591
27592
27593
27594
27595
27596 func (c *ProjectsLocationsAgentsFlowsVersionsCompareVersionsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1CompareVersionsResponse, error) {
27597 gensupport.SetOptions(c.urlParams_, opts...)
27598 res, err := c.doRequest("json")
27599 if res != nil && res.StatusCode == http.StatusNotModified {
27600 if res.Body != nil {
27601 res.Body.Close()
27602 }
27603 return nil, gensupport.WrapError(&googleapi.Error{
27604 Code: res.StatusCode,
27605 Header: res.Header,
27606 })
27607 }
27608 if err != nil {
27609 return nil, err
27610 }
27611 defer googleapi.CloseBody(res)
27612 if err := googleapi.CheckResponse(res); err != nil {
27613 return nil, gensupport.WrapError(err)
27614 }
27615 ret := &GoogleCloudDialogflowCxV3beta1CompareVersionsResponse{
27616 ServerResponse: googleapi.ServerResponse{
27617 Header: res.Header,
27618 HTTPStatusCode: res.StatusCode,
27619 },
27620 }
27621 target := &ret
27622 if err := gensupport.DecodeResponse(target, res); err != nil {
27623 return nil, err
27624 }
27625 return ret, nil
27626 }
27627
27628 type ProjectsLocationsAgentsFlowsVersionsCreateCall struct {
27629 s *Service
27630 parent string
27631 googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version
27632 urlParams_ gensupport.URLParams
27633 ctx_ context.Context
27634 header_ http.Header
27635 }
27636
27637
27638
27639
27640
27641
27642
27643
27644
27645 func (r *ProjectsLocationsAgentsFlowsVersionsService) Create(parent string, googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
27646 c := &ProjectsLocationsAgentsFlowsVersionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27647 c.parent = parent
27648 c.googleclouddialogflowcxv3beta1version = googleclouddialogflowcxv3beta1version
27649 return c
27650 }
27651
27652
27653
27654
27655 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
27656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27657 return c
27658 }
27659
27660
27661 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsCreateCall {
27662 c.ctx_ = ctx
27663 return c
27664 }
27665
27666
27667
27668 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Header() http.Header {
27669 if c.header_ == nil {
27670 c.header_ = make(http.Header)
27671 }
27672 return c.header_
27673 }
27674
27675 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) doRequest(alt string) (*http.Response, error) {
27676 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
27677 var body io.Reader = nil
27678 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1version)
27679 if err != nil {
27680 return nil, err
27681 }
27682 c.urlParams_.Set("alt", alt)
27683 c.urlParams_.Set("prettyPrint", "false")
27684 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/versions")
27685 urls += "?" + c.urlParams_.Encode()
27686 req, err := http.NewRequest("POST", urls, body)
27687 if err != nil {
27688 return nil, err
27689 }
27690 req.Header = reqHeaders
27691 googleapi.Expand(req.URL, map[string]string{
27692 "parent": c.parent,
27693 })
27694 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27695 }
27696
27697
27698
27699
27700
27701
27702
27703 func (c *ProjectsLocationsAgentsFlowsVersionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
27704 gensupport.SetOptions(c.urlParams_, opts...)
27705 res, err := c.doRequest("json")
27706 if res != nil && res.StatusCode == http.StatusNotModified {
27707 if res.Body != nil {
27708 res.Body.Close()
27709 }
27710 return nil, gensupport.WrapError(&googleapi.Error{
27711 Code: res.StatusCode,
27712 Header: res.Header,
27713 })
27714 }
27715 if err != nil {
27716 return nil, err
27717 }
27718 defer googleapi.CloseBody(res)
27719 if err := googleapi.CheckResponse(res); err != nil {
27720 return nil, gensupport.WrapError(err)
27721 }
27722 ret := &GoogleLongrunningOperation{
27723 ServerResponse: googleapi.ServerResponse{
27724 Header: res.Header,
27725 HTTPStatusCode: res.StatusCode,
27726 },
27727 }
27728 target := &ret
27729 if err := gensupport.DecodeResponse(target, res); err != nil {
27730 return nil, err
27731 }
27732 return ret, nil
27733 }
27734
27735 type ProjectsLocationsAgentsFlowsVersionsDeleteCall struct {
27736 s *Service
27737 name string
27738 urlParams_ gensupport.URLParams
27739 ctx_ context.Context
27740 header_ http.Header
27741 }
27742
27743
27744
27745
27746
27747 func (r *ProjectsLocationsAgentsFlowsVersionsService) Delete(name string) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
27748 c := &ProjectsLocationsAgentsFlowsVersionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27749 c.name = name
27750 return c
27751 }
27752
27753
27754
27755
27756 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
27757 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27758 return c
27759 }
27760
27761
27762 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsDeleteCall {
27763 c.ctx_ = ctx
27764 return c
27765 }
27766
27767
27768
27769 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Header() http.Header {
27770 if c.header_ == nil {
27771 c.header_ = make(http.Header)
27772 }
27773 return c.header_
27774 }
27775
27776 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) doRequest(alt string) (*http.Response, error) {
27777 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27778 var body io.Reader = nil
27779 c.urlParams_.Set("alt", alt)
27780 c.urlParams_.Set("prettyPrint", "false")
27781 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27782 urls += "?" + c.urlParams_.Encode()
27783 req, err := http.NewRequest("DELETE", urls, body)
27784 if err != nil {
27785 return nil, err
27786 }
27787 req.Header = reqHeaders
27788 googleapi.Expand(req.URL, map[string]string{
27789 "name": c.name,
27790 })
27791 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27792 }
27793
27794
27795
27796
27797
27798
27799
27800 func (c *ProjectsLocationsAgentsFlowsVersionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
27801 gensupport.SetOptions(c.urlParams_, opts...)
27802 res, err := c.doRequest("json")
27803 if res != nil && res.StatusCode == http.StatusNotModified {
27804 if res.Body != nil {
27805 res.Body.Close()
27806 }
27807 return nil, gensupport.WrapError(&googleapi.Error{
27808 Code: res.StatusCode,
27809 Header: res.Header,
27810 })
27811 }
27812 if err != nil {
27813 return nil, err
27814 }
27815 defer googleapi.CloseBody(res)
27816 if err := googleapi.CheckResponse(res); err != nil {
27817 return nil, gensupport.WrapError(err)
27818 }
27819 ret := &GoogleProtobufEmpty{
27820 ServerResponse: googleapi.ServerResponse{
27821 Header: res.Header,
27822 HTTPStatusCode: res.StatusCode,
27823 },
27824 }
27825 target := &ret
27826 if err := gensupport.DecodeResponse(target, res); err != nil {
27827 return nil, err
27828 }
27829 return ret, nil
27830 }
27831
27832 type ProjectsLocationsAgentsFlowsVersionsGetCall struct {
27833 s *Service
27834 name string
27835 urlParams_ gensupport.URLParams
27836 ifNoneMatch_ string
27837 ctx_ context.Context
27838 header_ http.Header
27839 }
27840
27841
27842
27843
27844
27845 func (r *ProjectsLocationsAgentsFlowsVersionsService) Get(name string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27846 c := &ProjectsLocationsAgentsFlowsVersionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27847 c.name = name
27848 return c
27849 }
27850
27851
27852
27853
27854 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27855 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27856 return c
27857 }
27858
27859
27860
27861
27862 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27863 c.ifNoneMatch_ = entityTag
27864 return c
27865 }
27866
27867
27868 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsGetCall {
27869 c.ctx_ = ctx
27870 return c
27871 }
27872
27873
27874
27875 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Header() http.Header {
27876 if c.header_ == nil {
27877 c.header_ = make(http.Header)
27878 }
27879 return c.header_
27880 }
27881
27882 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) doRequest(alt string) (*http.Response, error) {
27883 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
27884 if c.ifNoneMatch_ != "" {
27885 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
27886 }
27887 var body io.Reader = nil
27888 c.urlParams_.Set("alt", alt)
27889 c.urlParams_.Set("prettyPrint", "false")
27890 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
27891 urls += "?" + c.urlParams_.Encode()
27892 req, err := http.NewRequest("GET", urls, body)
27893 if err != nil {
27894 return nil, err
27895 }
27896 req.Header = reqHeaders
27897 googleapi.Expand(req.URL, map[string]string{
27898 "name": c.name,
27899 })
27900 return gensupport.SendRequest(c.ctx_, c.s.client, req)
27901 }
27902
27903
27904
27905
27906
27907
27908
27909 func (c *ProjectsLocationsAgentsFlowsVersionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Version, error) {
27910 gensupport.SetOptions(c.urlParams_, opts...)
27911 res, err := c.doRequest("json")
27912 if res != nil && res.StatusCode == http.StatusNotModified {
27913 if res.Body != nil {
27914 res.Body.Close()
27915 }
27916 return nil, gensupport.WrapError(&googleapi.Error{
27917 Code: res.StatusCode,
27918 Header: res.Header,
27919 })
27920 }
27921 if err != nil {
27922 return nil, err
27923 }
27924 defer googleapi.CloseBody(res)
27925 if err := googleapi.CheckResponse(res); err != nil {
27926 return nil, gensupport.WrapError(err)
27927 }
27928 ret := &GoogleCloudDialogflowCxV3beta1Version{
27929 ServerResponse: googleapi.ServerResponse{
27930 Header: res.Header,
27931 HTTPStatusCode: res.StatusCode,
27932 },
27933 }
27934 target := &ret
27935 if err := gensupport.DecodeResponse(target, res); err != nil {
27936 return nil, err
27937 }
27938 return ret, nil
27939 }
27940
27941 type ProjectsLocationsAgentsFlowsVersionsListCall struct {
27942 s *Service
27943 parent string
27944 urlParams_ gensupport.URLParams
27945 ifNoneMatch_ string
27946 ctx_ context.Context
27947 header_ http.Header
27948 }
27949
27950
27951
27952
27953
27954 func (r *ProjectsLocationsAgentsFlowsVersionsService) List(parent string) *ProjectsLocationsAgentsFlowsVersionsListCall {
27955 c := &ProjectsLocationsAgentsFlowsVersionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
27956 c.parent = parent
27957 return c
27958 }
27959
27960
27961
27962 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsFlowsVersionsListCall {
27963 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
27964 return c
27965 }
27966
27967
27968
27969 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsFlowsVersionsListCall {
27970 c.urlParams_.Set("pageToken", pageToken)
27971 return c
27972 }
27973
27974
27975
27976
27977 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsListCall {
27978 c.urlParams_.Set("fields", googleapi.CombineFields(s))
27979 return c
27980 }
27981
27982
27983
27984
27985 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsFlowsVersionsListCall {
27986 c.ifNoneMatch_ = entityTag
27987 return c
27988 }
27989
27990
27991 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsListCall {
27992 c.ctx_ = ctx
27993 return c
27994 }
27995
27996
27997
27998 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Header() http.Header {
27999 if c.header_ == nil {
28000 c.header_ = make(http.Header)
28001 }
28002 return c.header_
28003 }
28004
28005 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) doRequest(alt string) (*http.Response, error) {
28006 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28007 if c.ifNoneMatch_ != "" {
28008 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28009 }
28010 var body io.Reader = nil
28011 c.urlParams_.Set("alt", alt)
28012 c.urlParams_.Set("prettyPrint", "false")
28013 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/versions")
28014 urls += "?" + c.urlParams_.Encode()
28015 req, err := http.NewRequest("GET", urls, body)
28016 if err != nil {
28017 return nil, err
28018 }
28019 req.Header = reqHeaders
28020 googleapi.Expand(req.URL, map[string]string{
28021 "parent": c.parent,
28022 })
28023 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28024 }
28025
28026
28027
28028
28029
28030
28031
28032 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListVersionsResponse, error) {
28033 gensupport.SetOptions(c.urlParams_, opts...)
28034 res, err := c.doRequest("json")
28035 if res != nil && res.StatusCode == http.StatusNotModified {
28036 if res.Body != nil {
28037 res.Body.Close()
28038 }
28039 return nil, gensupport.WrapError(&googleapi.Error{
28040 Code: res.StatusCode,
28041 Header: res.Header,
28042 })
28043 }
28044 if err != nil {
28045 return nil, err
28046 }
28047 defer googleapi.CloseBody(res)
28048 if err := googleapi.CheckResponse(res); err != nil {
28049 return nil, gensupport.WrapError(err)
28050 }
28051 ret := &GoogleCloudDialogflowCxV3beta1ListVersionsResponse{
28052 ServerResponse: googleapi.ServerResponse{
28053 Header: res.Header,
28054 HTTPStatusCode: res.StatusCode,
28055 },
28056 }
28057 target := &ret
28058 if err := gensupport.DecodeResponse(target, res); err != nil {
28059 return nil, err
28060 }
28061 return ret, nil
28062 }
28063
28064
28065
28066
28067 func (c *ProjectsLocationsAgentsFlowsVersionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListVersionsResponse) error) error {
28068 c.ctx_ = ctx
28069 defer c.PageToken(c.urlParams_.Get("pageToken"))
28070 for {
28071 x, err := c.Do()
28072 if err != nil {
28073 return err
28074 }
28075 if err := f(x); err != nil {
28076 return err
28077 }
28078 if x.NextPageToken == "" {
28079 return nil
28080 }
28081 c.PageToken(x.NextPageToken)
28082 }
28083 }
28084
28085 type ProjectsLocationsAgentsFlowsVersionsLoadCall struct {
28086 s *Service
28087 name string
28088 googleclouddialogflowcxv3beta1loadversionrequest *GoogleCloudDialogflowCxV3beta1LoadVersionRequest
28089 urlParams_ gensupport.URLParams
28090 ctx_ context.Context
28091 header_ http.Header
28092 }
28093
28094
28095
28096
28097
28098
28099
28100
28101
28102
28103
28104
28105 func (r *ProjectsLocationsAgentsFlowsVersionsService) Load(name string, googleclouddialogflowcxv3beta1loadversionrequest *GoogleCloudDialogflowCxV3beta1LoadVersionRequest) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
28106 c := &ProjectsLocationsAgentsFlowsVersionsLoadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28107 c.name = name
28108 c.googleclouddialogflowcxv3beta1loadversionrequest = googleclouddialogflowcxv3beta1loadversionrequest
28109 return c
28110 }
28111
28112
28113
28114
28115 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
28116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28117 return c
28118 }
28119
28120
28121 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsLoadCall {
28122 c.ctx_ = ctx
28123 return c
28124 }
28125
28126
28127
28128 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Header() http.Header {
28129 if c.header_ == nil {
28130 c.header_ = make(http.Header)
28131 }
28132 return c.header_
28133 }
28134
28135 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) doRequest(alt string) (*http.Response, error) {
28136 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28137 var body io.Reader = nil
28138 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1loadversionrequest)
28139 if err != nil {
28140 return nil, err
28141 }
28142 c.urlParams_.Set("alt", alt)
28143 c.urlParams_.Set("prettyPrint", "false")
28144 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:load")
28145 urls += "?" + c.urlParams_.Encode()
28146 req, err := http.NewRequest("POST", urls, body)
28147 if err != nil {
28148 return nil, err
28149 }
28150 req.Header = reqHeaders
28151 googleapi.Expand(req.URL, map[string]string{
28152 "name": c.name,
28153 })
28154 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28155 }
28156
28157
28158
28159
28160
28161
28162
28163 func (c *ProjectsLocationsAgentsFlowsVersionsLoadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
28164 gensupport.SetOptions(c.urlParams_, opts...)
28165 res, err := c.doRequest("json")
28166 if res != nil && res.StatusCode == http.StatusNotModified {
28167 if res.Body != nil {
28168 res.Body.Close()
28169 }
28170 return nil, gensupport.WrapError(&googleapi.Error{
28171 Code: res.StatusCode,
28172 Header: res.Header,
28173 })
28174 }
28175 if err != nil {
28176 return nil, err
28177 }
28178 defer googleapi.CloseBody(res)
28179 if err := googleapi.CheckResponse(res); err != nil {
28180 return nil, gensupport.WrapError(err)
28181 }
28182 ret := &GoogleLongrunningOperation{
28183 ServerResponse: googleapi.ServerResponse{
28184 Header: res.Header,
28185 HTTPStatusCode: res.StatusCode,
28186 },
28187 }
28188 target := &ret
28189 if err := gensupport.DecodeResponse(target, res); err != nil {
28190 return nil, err
28191 }
28192 return ret, nil
28193 }
28194
28195 type ProjectsLocationsAgentsFlowsVersionsPatchCall struct {
28196 s *Service
28197 name string
28198 googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version
28199 urlParams_ gensupport.URLParams
28200 ctx_ context.Context
28201 header_ http.Header
28202 }
28203
28204
28205
28206
28207
28208 func (r *ProjectsLocationsAgentsFlowsVersionsService) Patch(name string, googleclouddialogflowcxv3beta1version *GoogleCloudDialogflowCxV3beta1Version) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
28209 c := &ProjectsLocationsAgentsFlowsVersionsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28210 c.name = name
28211 c.googleclouddialogflowcxv3beta1version = googleclouddialogflowcxv3beta1version
28212 return c
28213 }
28214
28215
28216
28217
28218 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
28219 c.urlParams_.Set("updateMask", updateMask)
28220 return c
28221 }
28222
28223
28224
28225
28226 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
28227 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28228 return c
28229 }
28230
28231
28232 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsFlowsVersionsPatchCall {
28233 c.ctx_ = ctx
28234 return c
28235 }
28236
28237
28238
28239 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Header() http.Header {
28240 if c.header_ == nil {
28241 c.header_ = make(http.Header)
28242 }
28243 return c.header_
28244 }
28245
28246 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) doRequest(alt string) (*http.Response, error) {
28247 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28248 var body io.Reader = nil
28249 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1version)
28250 if err != nil {
28251 return nil, err
28252 }
28253 c.urlParams_.Set("alt", alt)
28254 c.urlParams_.Set("prettyPrint", "false")
28255 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
28256 urls += "?" + c.urlParams_.Encode()
28257 req, err := http.NewRequest("PATCH", urls, body)
28258 if err != nil {
28259 return nil, err
28260 }
28261 req.Header = reqHeaders
28262 googleapi.Expand(req.URL, map[string]string{
28263 "name": c.name,
28264 })
28265 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28266 }
28267
28268
28269
28270
28271
28272
28273
28274 func (c *ProjectsLocationsAgentsFlowsVersionsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Version, error) {
28275 gensupport.SetOptions(c.urlParams_, opts...)
28276 res, err := c.doRequest("json")
28277 if res != nil && res.StatusCode == http.StatusNotModified {
28278 if res.Body != nil {
28279 res.Body.Close()
28280 }
28281 return nil, gensupport.WrapError(&googleapi.Error{
28282 Code: res.StatusCode,
28283 Header: res.Header,
28284 })
28285 }
28286 if err != nil {
28287 return nil, err
28288 }
28289 defer googleapi.CloseBody(res)
28290 if err := googleapi.CheckResponse(res); err != nil {
28291 return nil, gensupport.WrapError(err)
28292 }
28293 ret := &GoogleCloudDialogflowCxV3beta1Version{
28294 ServerResponse: googleapi.ServerResponse{
28295 Header: res.Header,
28296 HTTPStatusCode: res.StatusCode,
28297 },
28298 }
28299 target := &ret
28300 if err := gensupport.DecodeResponse(target, res); err != nil {
28301 return nil, err
28302 }
28303 return ret, nil
28304 }
28305
28306 type ProjectsLocationsAgentsGeneratorsCreateCall struct {
28307 s *Service
28308 parent string
28309 googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator
28310 urlParams_ gensupport.URLParams
28311 ctx_ context.Context
28312 header_ http.Header
28313 }
28314
28315
28316
28317
28318
28319 func (r *ProjectsLocationsAgentsGeneratorsService) Create(parent string, googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator) *ProjectsLocationsAgentsGeneratorsCreateCall {
28320 c := &ProjectsLocationsAgentsGeneratorsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28321 c.parent = parent
28322 c.googleclouddialogflowcxv3beta1generator = googleclouddialogflowcxv3beta1generator
28323 return c
28324 }
28325
28326
28327
28328
28329 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsCreateCall {
28330 c.urlParams_.Set("languageCode", languageCode)
28331 return c
28332 }
28333
28334
28335
28336
28337 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsCreateCall {
28338 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28339 return c
28340 }
28341
28342
28343 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsCreateCall {
28344 c.ctx_ = ctx
28345 return c
28346 }
28347
28348
28349
28350 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Header() http.Header {
28351 if c.header_ == nil {
28352 c.header_ = make(http.Header)
28353 }
28354 return c.header_
28355 }
28356
28357 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) doRequest(alt string) (*http.Response, error) {
28358 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28359 var body io.Reader = nil
28360 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1generator)
28361 if err != nil {
28362 return nil, err
28363 }
28364 c.urlParams_.Set("alt", alt)
28365 c.urlParams_.Set("prettyPrint", "false")
28366 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/generators")
28367 urls += "?" + c.urlParams_.Encode()
28368 req, err := http.NewRequest("POST", urls, body)
28369 if err != nil {
28370 return nil, err
28371 }
28372 req.Header = reqHeaders
28373 googleapi.Expand(req.URL, map[string]string{
28374 "parent": c.parent,
28375 })
28376 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28377 }
28378
28379
28380
28381
28382
28383
28384
28385 func (c *ProjectsLocationsAgentsGeneratorsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Generator, error) {
28386 gensupport.SetOptions(c.urlParams_, opts...)
28387 res, err := c.doRequest("json")
28388 if res != nil && res.StatusCode == http.StatusNotModified {
28389 if res.Body != nil {
28390 res.Body.Close()
28391 }
28392 return nil, gensupport.WrapError(&googleapi.Error{
28393 Code: res.StatusCode,
28394 Header: res.Header,
28395 })
28396 }
28397 if err != nil {
28398 return nil, err
28399 }
28400 defer googleapi.CloseBody(res)
28401 if err := googleapi.CheckResponse(res); err != nil {
28402 return nil, gensupport.WrapError(err)
28403 }
28404 ret := &GoogleCloudDialogflowCxV3beta1Generator{
28405 ServerResponse: googleapi.ServerResponse{
28406 Header: res.Header,
28407 HTTPStatusCode: res.StatusCode,
28408 },
28409 }
28410 target := &ret
28411 if err := gensupport.DecodeResponse(target, res); err != nil {
28412 return nil, err
28413 }
28414 return ret, nil
28415 }
28416
28417 type ProjectsLocationsAgentsGeneratorsDeleteCall struct {
28418 s *Service
28419 name string
28420 urlParams_ gensupport.URLParams
28421 ctx_ context.Context
28422 header_ http.Header
28423 }
28424
28425
28426
28427
28428
28429 func (r *ProjectsLocationsAgentsGeneratorsService) Delete(name string) *ProjectsLocationsAgentsGeneratorsDeleteCall {
28430 c := &ProjectsLocationsAgentsGeneratorsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28431 c.name = name
28432 return c
28433 }
28434
28435
28436
28437
28438
28439
28440
28441 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Force(force bool) *ProjectsLocationsAgentsGeneratorsDeleteCall {
28442 c.urlParams_.Set("force", fmt.Sprint(force))
28443 return c
28444 }
28445
28446
28447
28448
28449 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsDeleteCall {
28450 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28451 return c
28452 }
28453
28454
28455 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsDeleteCall {
28456 c.ctx_ = ctx
28457 return c
28458 }
28459
28460
28461
28462 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Header() http.Header {
28463 if c.header_ == nil {
28464 c.header_ = make(http.Header)
28465 }
28466 return c.header_
28467 }
28468
28469 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) doRequest(alt string) (*http.Response, error) {
28470 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28471 var body io.Reader = nil
28472 c.urlParams_.Set("alt", alt)
28473 c.urlParams_.Set("prettyPrint", "false")
28474 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
28475 urls += "?" + c.urlParams_.Encode()
28476 req, err := http.NewRequest("DELETE", urls, body)
28477 if err != nil {
28478 return nil, err
28479 }
28480 req.Header = reqHeaders
28481 googleapi.Expand(req.URL, map[string]string{
28482 "name": c.name,
28483 })
28484 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28485 }
28486
28487
28488
28489
28490
28491
28492
28493 func (c *ProjectsLocationsAgentsGeneratorsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
28494 gensupport.SetOptions(c.urlParams_, opts...)
28495 res, err := c.doRequest("json")
28496 if res != nil && res.StatusCode == http.StatusNotModified {
28497 if res.Body != nil {
28498 res.Body.Close()
28499 }
28500 return nil, gensupport.WrapError(&googleapi.Error{
28501 Code: res.StatusCode,
28502 Header: res.Header,
28503 })
28504 }
28505 if err != nil {
28506 return nil, err
28507 }
28508 defer googleapi.CloseBody(res)
28509 if err := googleapi.CheckResponse(res); err != nil {
28510 return nil, gensupport.WrapError(err)
28511 }
28512 ret := &GoogleProtobufEmpty{
28513 ServerResponse: googleapi.ServerResponse{
28514 Header: res.Header,
28515 HTTPStatusCode: res.StatusCode,
28516 },
28517 }
28518 target := &ret
28519 if err := gensupport.DecodeResponse(target, res); err != nil {
28520 return nil, err
28521 }
28522 return ret, nil
28523 }
28524
28525 type ProjectsLocationsAgentsGeneratorsGetCall struct {
28526 s *Service
28527 name string
28528 urlParams_ gensupport.URLParams
28529 ifNoneMatch_ string
28530 ctx_ context.Context
28531 header_ http.Header
28532 }
28533
28534
28535
28536
28537
28538 func (r *ProjectsLocationsAgentsGeneratorsService) Get(name string) *ProjectsLocationsAgentsGeneratorsGetCall {
28539 c := &ProjectsLocationsAgentsGeneratorsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28540 c.name = name
28541 return c
28542 }
28543
28544
28545
28546 func (c *ProjectsLocationsAgentsGeneratorsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsGetCall {
28547 c.urlParams_.Set("languageCode", languageCode)
28548 return c
28549 }
28550
28551
28552
28553
28554 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsGetCall {
28555 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28556 return c
28557 }
28558
28559
28560
28561
28562 func (c *ProjectsLocationsAgentsGeneratorsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGeneratorsGetCall {
28563 c.ifNoneMatch_ = entityTag
28564 return c
28565 }
28566
28567
28568 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsGetCall {
28569 c.ctx_ = ctx
28570 return c
28571 }
28572
28573
28574
28575 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Header() http.Header {
28576 if c.header_ == nil {
28577 c.header_ = make(http.Header)
28578 }
28579 return c.header_
28580 }
28581
28582 func (c *ProjectsLocationsAgentsGeneratorsGetCall) doRequest(alt string) (*http.Response, error) {
28583 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28584 if c.ifNoneMatch_ != "" {
28585 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28586 }
28587 var body io.Reader = nil
28588 c.urlParams_.Set("alt", alt)
28589 c.urlParams_.Set("prettyPrint", "false")
28590 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
28591 urls += "?" + c.urlParams_.Encode()
28592 req, err := http.NewRequest("GET", urls, body)
28593 if err != nil {
28594 return nil, err
28595 }
28596 req.Header = reqHeaders
28597 googleapi.Expand(req.URL, map[string]string{
28598 "name": c.name,
28599 })
28600 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28601 }
28602
28603
28604
28605
28606
28607
28608
28609 func (c *ProjectsLocationsAgentsGeneratorsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Generator, error) {
28610 gensupport.SetOptions(c.urlParams_, opts...)
28611 res, err := c.doRequest("json")
28612 if res != nil && res.StatusCode == http.StatusNotModified {
28613 if res.Body != nil {
28614 res.Body.Close()
28615 }
28616 return nil, gensupport.WrapError(&googleapi.Error{
28617 Code: res.StatusCode,
28618 Header: res.Header,
28619 })
28620 }
28621 if err != nil {
28622 return nil, err
28623 }
28624 defer googleapi.CloseBody(res)
28625 if err := googleapi.CheckResponse(res); err != nil {
28626 return nil, gensupport.WrapError(err)
28627 }
28628 ret := &GoogleCloudDialogflowCxV3beta1Generator{
28629 ServerResponse: googleapi.ServerResponse{
28630 Header: res.Header,
28631 HTTPStatusCode: res.StatusCode,
28632 },
28633 }
28634 target := &ret
28635 if err := gensupport.DecodeResponse(target, res); err != nil {
28636 return nil, err
28637 }
28638 return ret, nil
28639 }
28640
28641 type ProjectsLocationsAgentsGeneratorsListCall struct {
28642 s *Service
28643 parent string
28644 urlParams_ gensupport.URLParams
28645 ifNoneMatch_ string
28646 ctx_ context.Context
28647 header_ http.Header
28648 }
28649
28650
28651
28652
28653
28654 func (r *ProjectsLocationsAgentsGeneratorsService) List(parent string) *ProjectsLocationsAgentsGeneratorsListCall {
28655 c := &ProjectsLocationsAgentsGeneratorsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28656 c.parent = parent
28657 return c
28658 }
28659
28660
28661
28662 func (c *ProjectsLocationsAgentsGeneratorsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsListCall {
28663 c.urlParams_.Set("languageCode", languageCode)
28664 return c
28665 }
28666
28667
28668
28669 func (c *ProjectsLocationsAgentsGeneratorsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsGeneratorsListCall {
28670 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
28671 return c
28672 }
28673
28674
28675
28676 func (c *ProjectsLocationsAgentsGeneratorsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsGeneratorsListCall {
28677 c.urlParams_.Set("pageToken", pageToken)
28678 return c
28679 }
28680
28681
28682
28683
28684 func (c *ProjectsLocationsAgentsGeneratorsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsListCall {
28685 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28686 return c
28687 }
28688
28689
28690
28691
28692 func (c *ProjectsLocationsAgentsGeneratorsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsGeneratorsListCall {
28693 c.ifNoneMatch_ = entityTag
28694 return c
28695 }
28696
28697
28698 func (c *ProjectsLocationsAgentsGeneratorsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsListCall {
28699 c.ctx_ = ctx
28700 return c
28701 }
28702
28703
28704
28705 func (c *ProjectsLocationsAgentsGeneratorsListCall) Header() http.Header {
28706 if c.header_ == nil {
28707 c.header_ = make(http.Header)
28708 }
28709 return c.header_
28710 }
28711
28712 func (c *ProjectsLocationsAgentsGeneratorsListCall) doRequest(alt string) (*http.Response, error) {
28713 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
28714 if c.ifNoneMatch_ != "" {
28715 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
28716 }
28717 var body io.Reader = nil
28718 c.urlParams_.Set("alt", alt)
28719 c.urlParams_.Set("prettyPrint", "false")
28720 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/generators")
28721 urls += "?" + c.urlParams_.Encode()
28722 req, err := http.NewRequest("GET", urls, body)
28723 if err != nil {
28724 return nil, err
28725 }
28726 req.Header = reqHeaders
28727 googleapi.Expand(req.URL, map[string]string{
28728 "parent": c.parent,
28729 })
28730 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28731 }
28732
28733
28734
28735
28736
28737
28738
28739 func (c *ProjectsLocationsAgentsGeneratorsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse, error) {
28740 gensupport.SetOptions(c.urlParams_, opts...)
28741 res, err := c.doRequest("json")
28742 if res != nil && res.StatusCode == http.StatusNotModified {
28743 if res.Body != nil {
28744 res.Body.Close()
28745 }
28746 return nil, gensupport.WrapError(&googleapi.Error{
28747 Code: res.StatusCode,
28748 Header: res.Header,
28749 })
28750 }
28751 if err != nil {
28752 return nil, err
28753 }
28754 defer googleapi.CloseBody(res)
28755 if err := googleapi.CheckResponse(res); err != nil {
28756 return nil, gensupport.WrapError(err)
28757 }
28758 ret := &GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse{
28759 ServerResponse: googleapi.ServerResponse{
28760 Header: res.Header,
28761 HTTPStatusCode: res.StatusCode,
28762 },
28763 }
28764 target := &ret
28765 if err := gensupport.DecodeResponse(target, res); err != nil {
28766 return nil, err
28767 }
28768 return ret, nil
28769 }
28770
28771
28772
28773
28774 func (c *ProjectsLocationsAgentsGeneratorsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListGeneratorsResponse) error) error {
28775 c.ctx_ = ctx
28776 defer c.PageToken(c.urlParams_.Get("pageToken"))
28777 for {
28778 x, err := c.Do()
28779 if err != nil {
28780 return err
28781 }
28782 if err := f(x); err != nil {
28783 return err
28784 }
28785 if x.NextPageToken == "" {
28786 return nil
28787 }
28788 c.PageToken(x.NextPageToken)
28789 }
28790 }
28791
28792 type ProjectsLocationsAgentsGeneratorsPatchCall struct {
28793 s *Service
28794 nameid string
28795 googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator
28796 urlParams_ gensupport.URLParams
28797 ctx_ context.Context
28798 header_ http.Header
28799 }
28800
28801
28802
28803
28804
28805
28806 func (r *ProjectsLocationsAgentsGeneratorsService) Patch(nameid string, googleclouddialogflowcxv3beta1generator *GoogleCloudDialogflowCxV3beta1Generator) *ProjectsLocationsAgentsGeneratorsPatchCall {
28807 c := &ProjectsLocationsAgentsGeneratorsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28808 c.nameid = nameid
28809 c.googleclouddialogflowcxv3beta1generator = googleclouddialogflowcxv3beta1generator
28810 return c
28811 }
28812
28813
28814
28815 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsGeneratorsPatchCall {
28816 c.urlParams_.Set("languageCode", languageCode)
28817 return c
28818 }
28819
28820
28821
28822
28823 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsGeneratorsPatchCall {
28824 c.urlParams_.Set("updateMask", updateMask)
28825 return c
28826 }
28827
28828
28829
28830
28831 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsGeneratorsPatchCall {
28832 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28833 return c
28834 }
28835
28836
28837 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsGeneratorsPatchCall {
28838 c.ctx_ = ctx
28839 return c
28840 }
28841
28842
28843
28844 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Header() http.Header {
28845 if c.header_ == nil {
28846 c.header_ = make(http.Header)
28847 }
28848 return c.header_
28849 }
28850
28851 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) doRequest(alt string) (*http.Response, error) {
28852 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28853 var body io.Reader = nil
28854 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1generator)
28855 if err != nil {
28856 return nil, err
28857 }
28858 c.urlParams_.Set("alt", alt)
28859 c.urlParams_.Set("prettyPrint", "false")
28860 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
28861 urls += "?" + c.urlParams_.Encode()
28862 req, err := http.NewRequest("PATCH", urls, body)
28863 if err != nil {
28864 return nil, err
28865 }
28866 req.Header = reqHeaders
28867 googleapi.Expand(req.URL, map[string]string{
28868 "name": c.nameid,
28869 })
28870 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28871 }
28872
28873
28874
28875
28876
28877
28878
28879 func (c *ProjectsLocationsAgentsGeneratorsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Generator, error) {
28880 gensupport.SetOptions(c.urlParams_, opts...)
28881 res, err := c.doRequest("json")
28882 if res != nil && res.StatusCode == http.StatusNotModified {
28883 if res.Body != nil {
28884 res.Body.Close()
28885 }
28886 return nil, gensupport.WrapError(&googleapi.Error{
28887 Code: res.StatusCode,
28888 Header: res.Header,
28889 })
28890 }
28891 if err != nil {
28892 return nil, err
28893 }
28894 defer googleapi.CloseBody(res)
28895 if err := googleapi.CheckResponse(res); err != nil {
28896 return nil, gensupport.WrapError(err)
28897 }
28898 ret := &GoogleCloudDialogflowCxV3beta1Generator{
28899 ServerResponse: googleapi.ServerResponse{
28900 Header: res.Header,
28901 HTTPStatusCode: res.StatusCode,
28902 },
28903 }
28904 target := &ret
28905 if err := gensupport.DecodeResponse(target, res); err != nil {
28906 return nil, err
28907 }
28908 return ret, nil
28909 }
28910
28911 type ProjectsLocationsAgentsIntentsCreateCall struct {
28912 s *Service
28913 parent string
28914 googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent
28915 urlParams_ gensupport.URLParams
28916 ctx_ context.Context
28917 header_ http.Header
28918 }
28919
28920
28921
28922
28923
28924
28925
28926 func (r *ProjectsLocationsAgentsIntentsService) Create(parent string, googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent) *ProjectsLocationsAgentsIntentsCreateCall {
28927 c := &ProjectsLocationsAgentsIntentsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
28928 c.parent = parent
28929 c.googleclouddialogflowcxv3beta1intent = googleclouddialogflowcxv3beta1intent
28930 return c
28931 }
28932
28933
28934
28935
28936
28937
28938
28939 func (c *ProjectsLocationsAgentsIntentsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsCreateCall {
28940 c.urlParams_.Set("languageCode", languageCode)
28941 return c
28942 }
28943
28944
28945
28946
28947 func (c *ProjectsLocationsAgentsIntentsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsCreateCall {
28948 c.urlParams_.Set("fields", googleapi.CombineFields(s))
28949 return c
28950 }
28951
28952
28953 func (c *ProjectsLocationsAgentsIntentsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsCreateCall {
28954 c.ctx_ = ctx
28955 return c
28956 }
28957
28958
28959
28960 func (c *ProjectsLocationsAgentsIntentsCreateCall) Header() http.Header {
28961 if c.header_ == nil {
28962 c.header_ = make(http.Header)
28963 }
28964 return c.header_
28965 }
28966
28967 func (c *ProjectsLocationsAgentsIntentsCreateCall) doRequest(alt string) (*http.Response, error) {
28968 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
28969 var body io.Reader = nil
28970 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1intent)
28971 if err != nil {
28972 return nil, err
28973 }
28974 c.urlParams_.Set("alt", alt)
28975 c.urlParams_.Set("prettyPrint", "false")
28976 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents")
28977 urls += "?" + c.urlParams_.Encode()
28978 req, err := http.NewRequest("POST", urls, body)
28979 if err != nil {
28980 return nil, err
28981 }
28982 req.Header = reqHeaders
28983 googleapi.Expand(req.URL, map[string]string{
28984 "parent": c.parent,
28985 })
28986 return gensupport.SendRequest(c.ctx_, c.s.client, req)
28987 }
28988
28989
28990
28991
28992
28993
28994
28995 func (c *ProjectsLocationsAgentsIntentsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
28996 gensupport.SetOptions(c.urlParams_, opts...)
28997 res, err := c.doRequest("json")
28998 if res != nil && res.StatusCode == http.StatusNotModified {
28999 if res.Body != nil {
29000 res.Body.Close()
29001 }
29002 return nil, gensupport.WrapError(&googleapi.Error{
29003 Code: res.StatusCode,
29004 Header: res.Header,
29005 })
29006 }
29007 if err != nil {
29008 return nil, err
29009 }
29010 defer googleapi.CloseBody(res)
29011 if err := googleapi.CheckResponse(res); err != nil {
29012 return nil, gensupport.WrapError(err)
29013 }
29014 ret := &GoogleCloudDialogflowCxV3beta1Intent{
29015 ServerResponse: googleapi.ServerResponse{
29016 Header: res.Header,
29017 HTTPStatusCode: res.StatusCode,
29018 },
29019 }
29020 target := &ret
29021 if err := gensupport.DecodeResponse(target, res); err != nil {
29022 return nil, err
29023 }
29024 return ret, nil
29025 }
29026
29027 type ProjectsLocationsAgentsIntentsDeleteCall struct {
29028 s *Service
29029 name string
29030 urlParams_ gensupport.URLParams
29031 ctx_ context.Context
29032 header_ http.Header
29033 }
29034
29035
29036
29037
29038
29039
29040
29041 func (r *ProjectsLocationsAgentsIntentsService) Delete(name string) *ProjectsLocationsAgentsIntentsDeleteCall {
29042 c := &ProjectsLocationsAgentsIntentsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29043 c.name = name
29044 return c
29045 }
29046
29047
29048
29049
29050 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsDeleteCall {
29051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29052 return c
29053 }
29054
29055
29056 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsDeleteCall {
29057 c.ctx_ = ctx
29058 return c
29059 }
29060
29061
29062
29063 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Header() http.Header {
29064 if c.header_ == nil {
29065 c.header_ = make(http.Header)
29066 }
29067 return c.header_
29068 }
29069
29070 func (c *ProjectsLocationsAgentsIntentsDeleteCall) doRequest(alt string) (*http.Response, error) {
29071 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29072 var body io.Reader = nil
29073 c.urlParams_.Set("alt", alt)
29074 c.urlParams_.Set("prettyPrint", "false")
29075 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
29076 urls += "?" + c.urlParams_.Encode()
29077 req, err := http.NewRequest("DELETE", urls, body)
29078 if err != nil {
29079 return nil, err
29080 }
29081 req.Header = reqHeaders
29082 googleapi.Expand(req.URL, map[string]string{
29083 "name": c.name,
29084 })
29085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29086 }
29087
29088
29089
29090
29091
29092
29093
29094 func (c *ProjectsLocationsAgentsIntentsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
29095 gensupport.SetOptions(c.urlParams_, opts...)
29096 res, err := c.doRequest("json")
29097 if res != nil && res.StatusCode == http.StatusNotModified {
29098 if res.Body != nil {
29099 res.Body.Close()
29100 }
29101 return nil, gensupport.WrapError(&googleapi.Error{
29102 Code: res.StatusCode,
29103 Header: res.Header,
29104 })
29105 }
29106 if err != nil {
29107 return nil, err
29108 }
29109 defer googleapi.CloseBody(res)
29110 if err := googleapi.CheckResponse(res); err != nil {
29111 return nil, gensupport.WrapError(err)
29112 }
29113 ret := &GoogleProtobufEmpty{
29114 ServerResponse: googleapi.ServerResponse{
29115 Header: res.Header,
29116 HTTPStatusCode: res.StatusCode,
29117 },
29118 }
29119 target := &ret
29120 if err := gensupport.DecodeResponse(target, res); err != nil {
29121 return nil, err
29122 }
29123 return ret, nil
29124 }
29125
29126 type ProjectsLocationsAgentsIntentsExportCall struct {
29127 s *Service
29128 parent string
29129 googleclouddialogflowcxv3beta1exportintentsrequest *GoogleCloudDialogflowCxV3beta1ExportIntentsRequest
29130 urlParams_ gensupport.URLParams
29131 ctx_ context.Context
29132 header_ http.Header
29133 }
29134
29135
29136
29137
29138
29139
29140
29141
29142
29143 func (r *ProjectsLocationsAgentsIntentsService) Export(parent string, googleclouddialogflowcxv3beta1exportintentsrequest *GoogleCloudDialogflowCxV3beta1ExportIntentsRequest) *ProjectsLocationsAgentsIntentsExportCall {
29144 c := &ProjectsLocationsAgentsIntentsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29145 c.parent = parent
29146 c.googleclouddialogflowcxv3beta1exportintentsrequest = googleclouddialogflowcxv3beta1exportintentsrequest
29147 return c
29148 }
29149
29150
29151
29152
29153 func (c *ProjectsLocationsAgentsIntentsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsExportCall {
29154 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29155 return c
29156 }
29157
29158
29159 func (c *ProjectsLocationsAgentsIntentsExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsExportCall {
29160 c.ctx_ = ctx
29161 return c
29162 }
29163
29164
29165
29166 func (c *ProjectsLocationsAgentsIntentsExportCall) Header() http.Header {
29167 if c.header_ == nil {
29168 c.header_ = make(http.Header)
29169 }
29170 return c.header_
29171 }
29172
29173 func (c *ProjectsLocationsAgentsIntentsExportCall) doRequest(alt string) (*http.Response, error) {
29174 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29175 var body io.Reader = nil
29176 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exportintentsrequest)
29177 if err != nil {
29178 return nil, err
29179 }
29180 c.urlParams_.Set("alt", alt)
29181 c.urlParams_.Set("prettyPrint", "false")
29182 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents:export")
29183 urls += "?" + c.urlParams_.Encode()
29184 req, err := http.NewRequest("POST", urls, body)
29185 if err != nil {
29186 return nil, err
29187 }
29188 req.Header = reqHeaders
29189 googleapi.Expand(req.URL, map[string]string{
29190 "parent": c.parent,
29191 })
29192 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29193 }
29194
29195
29196
29197
29198
29199
29200
29201 func (c *ProjectsLocationsAgentsIntentsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29202 gensupport.SetOptions(c.urlParams_, opts...)
29203 res, err := c.doRequest("json")
29204 if res != nil && res.StatusCode == http.StatusNotModified {
29205 if res.Body != nil {
29206 res.Body.Close()
29207 }
29208 return nil, gensupport.WrapError(&googleapi.Error{
29209 Code: res.StatusCode,
29210 Header: res.Header,
29211 })
29212 }
29213 if err != nil {
29214 return nil, err
29215 }
29216 defer googleapi.CloseBody(res)
29217 if err := googleapi.CheckResponse(res); err != nil {
29218 return nil, gensupport.WrapError(err)
29219 }
29220 ret := &GoogleLongrunningOperation{
29221 ServerResponse: googleapi.ServerResponse{
29222 Header: res.Header,
29223 HTTPStatusCode: res.StatusCode,
29224 },
29225 }
29226 target := &ret
29227 if err := gensupport.DecodeResponse(target, res); err != nil {
29228 return nil, err
29229 }
29230 return ret, nil
29231 }
29232
29233 type ProjectsLocationsAgentsIntentsGetCall struct {
29234 s *Service
29235 name string
29236 urlParams_ gensupport.URLParams
29237 ifNoneMatch_ string
29238 ctx_ context.Context
29239 header_ http.Header
29240 }
29241
29242
29243
29244
29245
29246 func (r *ProjectsLocationsAgentsIntentsService) Get(name string) *ProjectsLocationsAgentsIntentsGetCall {
29247 c := &ProjectsLocationsAgentsIntentsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29248 c.name = name
29249 return c
29250 }
29251
29252
29253
29254
29255
29256
29257
29258
29259 func (c *ProjectsLocationsAgentsIntentsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsGetCall {
29260 c.urlParams_.Set("languageCode", languageCode)
29261 return c
29262 }
29263
29264
29265
29266
29267 func (c *ProjectsLocationsAgentsIntentsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsGetCall {
29268 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29269 return c
29270 }
29271
29272
29273
29274
29275 func (c *ProjectsLocationsAgentsIntentsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsGetCall {
29276 c.ifNoneMatch_ = entityTag
29277 return c
29278 }
29279
29280
29281 func (c *ProjectsLocationsAgentsIntentsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsGetCall {
29282 c.ctx_ = ctx
29283 return c
29284 }
29285
29286
29287
29288 func (c *ProjectsLocationsAgentsIntentsGetCall) Header() http.Header {
29289 if c.header_ == nil {
29290 c.header_ = make(http.Header)
29291 }
29292 return c.header_
29293 }
29294
29295 func (c *ProjectsLocationsAgentsIntentsGetCall) doRequest(alt string) (*http.Response, error) {
29296 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29297 if c.ifNoneMatch_ != "" {
29298 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29299 }
29300 var body io.Reader = nil
29301 c.urlParams_.Set("alt", alt)
29302 c.urlParams_.Set("prettyPrint", "false")
29303 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
29304 urls += "?" + c.urlParams_.Encode()
29305 req, err := http.NewRequest("GET", urls, body)
29306 if err != nil {
29307 return nil, err
29308 }
29309 req.Header = reqHeaders
29310 googleapi.Expand(req.URL, map[string]string{
29311 "name": c.name,
29312 })
29313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29314 }
29315
29316
29317
29318
29319
29320
29321
29322 func (c *ProjectsLocationsAgentsIntentsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
29323 gensupport.SetOptions(c.urlParams_, opts...)
29324 res, err := c.doRequest("json")
29325 if res != nil && res.StatusCode == http.StatusNotModified {
29326 if res.Body != nil {
29327 res.Body.Close()
29328 }
29329 return nil, gensupport.WrapError(&googleapi.Error{
29330 Code: res.StatusCode,
29331 Header: res.Header,
29332 })
29333 }
29334 if err != nil {
29335 return nil, err
29336 }
29337 defer googleapi.CloseBody(res)
29338 if err := googleapi.CheckResponse(res); err != nil {
29339 return nil, gensupport.WrapError(err)
29340 }
29341 ret := &GoogleCloudDialogflowCxV3beta1Intent{
29342 ServerResponse: googleapi.ServerResponse{
29343 Header: res.Header,
29344 HTTPStatusCode: res.StatusCode,
29345 },
29346 }
29347 target := &ret
29348 if err := gensupport.DecodeResponse(target, res); err != nil {
29349 return nil, err
29350 }
29351 return ret, nil
29352 }
29353
29354 type ProjectsLocationsAgentsIntentsImportCall struct {
29355 s *Service
29356 parent string
29357 googleclouddialogflowcxv3beta1importintentsrequest *GoogleCloudDialogflowCxV3beta1ImportIntentsRequest
29358 urlParams_ gensupport.URLParams
29359 ctx_ context.Context
29360 header_ http.Header
29361 }
29362
29363
29364
29365
29366
29367
29368
29369
29370
29371 func (r *ProjectsLocationsAgentsIntentsService) Import(parent string, googleclouddialogflowcxv3beta1importintentsrequest *GoogleCloudDialogflowCxV3beta1ImportIntentsRequest) *ProjectsLocationsAgentsIntentsImportCall {
29372 c := &ProjectsLocationsAgentsIntentsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29373 c.parent = parent
29374 c.googleclouddialogflowcxv3beta1importintentsrequest = googleclouddialogflowcxv3beta1importintentsrequest
29375 return c
29376 }
29377
29378
29379
29380
29381 func (c *ProjectsLocationsAgentsIntentsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsImportCall {
29382 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29383 return c
29384 }
29385
29386
29387 func (c *ProjectsLocationsAgentsIntentsImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsImportCall {
29388 c.ctx_ = ctx
29389 return c
29390 }
29391
29392
29393
29394 func (c *ProjectsLocationsAgentsIntentsImportCall) Header() http.Header {
29395 if c.header_ == nil {
29396 c.header_ = make(http.Header)
29397 }
29398 return c.header_
29399 }
29400
29401 func (c *ProjectsLocationsAgentsIntentsImportCall) doRequest(alt string) (*http.Response, error) {
29402 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29403 var body io.Reader = nil
29404 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importintentsrequest)
29405 if err != nil {
29406 return nil, err
29407 }
29408 c.urlParams_.Set("alt", alt)
29409 c.urlParams_.Set("prettyPrint", "false")
29410 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents:import")
29411 urls += "?" + c.urlParams_.Encode()
29412 req, err := http.NewRequest("POST", urls, body)
29413 if err != nil {
29414 return nil, err
29415 }
29416 req.Header = reqHeaders
29417 googleapi.Expand(req.URL, map[string]string{
29418 "parent": c.parent,
29419 })
29420 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29421 }
29422
29423
29424
29425
29426
29427
29428
29429 func (c *ProjectsLocationsAgentsIntentsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
29430 gensupport.SetOptions(c.urlParams_, opts...)
29431 res, err := c.doRequest("json")
29432 if res != nil && res.StatusCode == http.StatusNotModified {
29433 if res.Body != nil {
29434 res.Body.Close()
29435 }
29436 return nil, gensupport.WrapError(&googleapi.Error{
29437 Code: res.StatusCode,
29438 Header: res.Header,
29439 })
29440 }
29441 if err != nil {
29442 return nil, err
29443 }
29444 defer googleapi.CloseBody(res)
29445 if err := googleapi.CheckResponse(res); err != nil {
29446 return nil, gensupport.WrapError(err)
29447 }
29448 ret := &GoogleLongrunningOperation{
29449 ServerResponse: googleapi.ServerResponse{
29450 Header: res.Header,
29451 HTTPStatusCode: res.StatusCode,
29452 },
29453 }
29454 target := &ret
29455 if err := gensupport.DecodeResponse(target, res); err != nil {
29456 return nil, err
29457 }
29458 return ret, nil
29459 }
29460
29461 type ProjectsLocationsAgentsIntentsListCall struct {
29462 s *Service
29463 parent string
29464 urlParams_ gensupport.URLParams
29465 ifNoneMatch_ string
29466 ctx_ context.Context
29467 header_ http.Header
29468 }
29469
29470
29471
29472
29473
29474 func (r *ProjectsLocationsAgentsIntentsService) List(parent string) *ProjectsLocationsAgentsIntentsListCall {
29475 c := &ProjectsLocationsAgentsIntentsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29476 c.parent = parent
29477 return c
29478 }
29479
29480
29481
29482
29483
29484
29485
29486
29487
29488
29489
29490
29491 func (c *ProjectsLocationsAgentsIntentsListCall) IntentView(intentView string) *ProjectsLocationsAgentsIntentsListCall {
29492 c.urlParams_.Set("intentView", intentView)
29493 return c
29494 }
29495
29496
29497
29498
29499
29500
29501
29502
29503 func (c *ProjectsLocationsAgentsIntentsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsListCall {
29504 c.urlParams_.Set("languageCode", languageCode)
29505 return c
29506 }
29507
29508
29509
29510 func (c *ProjectsLocationsAgentsIntentsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsIntentsListCall {
29511 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
29512 return c
29513 }
29514
29515
29516
29517 func (c *ProjectsLocationsAgentsIntentsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsIntentsListCall {
29518 c.urlParams_.Set("pageToken", pageToken)
29519 return c
29520 }
29521
29522
29523
29524
29525 func (c *ProjectsLocationsAgentsIntentsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsListCall {
29526 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29527 return c
29528 }
29529
29530
29531
29532
29533 func (c *ProjectsLocationsAgentsIntentsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsIntentsListCall {
29534 c.ifNoneMatch_ = entityTag
29535 return c
29536 }
29537
29538
29539 func (c *ProjectsLocationsAgentsIntentsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsListCall {
29540 c.ctx_ = ctx
29541 return c
29542 }
29543
29544
29545
29546 func (c *ProjectsLocationsAgentsIntentsListCall) Header() http.Header {
29547 if c.header_ == nil {
29548 c.header_ = make(http.Header)
29549 }
29550 return c.header_
29551 }
29552
29553 func (c *ProjectsLocationsAgentsIntentsListCall) doRequest(alt string) (*http.Response, error) {
29554 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
29555 if c.ifNoneMatch_ != "" {
29556 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
29557 }
29558 var body io.Reader = nil
29559 c.urlParams_.Set("alt", alt)
29560 c.urlParams_.Set("prettyPrint", "false")
29561 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/intents")
29562 urls += "?" + c.urlParams_.Encode()
29563 req, err := http.NewRequest("GET", urls, body)
29564 if err != nil {
29565 return nil, err
29566 }
29567 req.Header = reqHeaders
29568 googleapi.Expand(req.URL, map[string]string{
29569 "parent": c.parent,
29570 })
29571 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29572 }
29573
29574
29575
29576
29577
29578
29579
29580 func (c *ProjectsLocationsAgentsIntentsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListIntentsResponse, error) {
29581 gensupport.SetOptions(c.urlParams_, opts...)
29582 res, err := c.doRequest("json")
29583 if res != nil && res.StatusCode == http.StatusNotModified {
29584 if res.Body != nil {
29585 res.Body.Close()
29586 }
29587 return nil, gensupport.WrapError(&googleapi.Error{
29588 Code: res.StatusCode,
29589 Header: res.Header,
29590 })
29591 }
29592 if err != nil {
29593 return nil, err
29594 }
29595 defer googleapi.CloseBody(res)
29596 if err := googleapi.CheckResponse(res); err != nil {
29597 return nil, gensupport.WrapError(err)
29598 }
29599 ret := &GoogleCloudDialogflowCxV3beta1ListIntentsResponse{
29600 ServerResponse: googleapi.ServerResponse{
29601 Header: res.Header,
29602 HTTPStatusCode: res.StatusCode,
29603 },
29604 }
29605 target := &ret
29606 if err := gensupport.DecodeResponse(target, res); err != nil {
29607 return nil, err
29608 }
29609 return ret, nil
29610 }
29611
29612
29613
29614
29615 func (c *ProjectsLocationsAgentsIntentsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListIntentsResponse) error) error {
29616 c.ctx_ = ctx
29617 defer c.PageToken(c.urlParams_.Get("pageToken"))
29618 for {
29619 x, err := c.Do()
29620 if err != nil {
29621 return err
29622 }
29623 if err := f(x); err != nil {
29624 return err
29625 }
29626 if x.NextPageToken == "" {
29627 return nil
29628 }
29629 c.PageToken(x.NextPageToken)
29630 }
29631 }
29632
29633 type ProjectsLocationsAgentsIntentsPatchCall struct {
29634 s *Service
29635 nameid string
29636 googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent
29637 urlParams_ gensupport.URLParams
29638 ctx_ context.Context
29639 header_ http.Header
29640 }
29641
29642
29643
29644
29645
29646
29647
29648
29649 func (r *ProjectsLocationsAgentsIntentsService) Patch(nameid string, googleclouddialogflowcxv3beta1intent *GoogleCloudDialogflowCxV3beta1Intent) *ProjectsLocationsAgentsIntentsPatchCall {
29650 c := &ProjectsLocationsAgentsIntentsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29651 c.nameid = nameid
29652 c.googleclouddialogflowcxv3beta1intent = googleclouddialogflowcxv3beta1intent
29653 return c
29654 }
29655
29656
29657
29658
29659
29660
29661
29662 func (c *ProjectsLocationsAgentsIntentsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsIntentsPatchCall {
29663 c.urlParams_.Set("languageCode", languageCode)
29664 return c
29665 }
29666
29667
29668
29669
29670 func (c *ProjectsLocationsAgentsIntentsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsIntentsPatchCall {
29671 c.urlParams_.Set("updateMask", updateMask)
29672 return c
29673 }
29674
29675
29676
29677
29678 func (c *ProjectsLocationsAgentsIntentsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsIntentsPatchCall {
29679 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29680 return c
29681 }
29682
29683
29684 func (c *ProjectsLocationsAgentsIntentsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsIntentsPatchCall {
29685 c.ctx_ = ctx
29686 return c
29687 }
29688
29689
29690
29691 func (c *ProjectsLocationsAgentsIntentsPatchCall) Header() http.Header {
29692 if c.header_ == nil {
29693 c.header_ = make(http.Header)
29694 }
29695 return c.header_
29696 }
29697
29698 func (c *ProjectsLocationsAgentsIntentsPatchCall) doRequest(alt string) (*http.Response, error) {
29699 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29700 var body io.Reader = nil
29701 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1intent)
29702 if err != nil {
29703 return nil, err
29704 }
29705 c.urlParams_.Set("alt", alt)
29706 c.urlParams_.Set("prettyPrint", "false")
29707 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
29708 urls += "?" + c.urlParams_.Encode()
29709 req, err := http.NewRequest("PATCH", urls, body)
29710 if err != nil {
29711 return nil, err
29712 }
29713 req.Header = reqHeaders
29714 googleapi.Expand(req.URL, map[string]string{
29715 "name": c.nameid,
29716 })
29717 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29718 }
29719
29720
29721
29722
29723
29724
29725
29726 func (c *ProjectsLocationsAgentsIntentsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Intent, error) {
29727 gensupport.SetOptions(c.urlParams_, opts...)
29728 res, err := c.doRequest("json")
29729 if res != nil && res.StatusCode == http.StatusNotModified {
29730 if res.Body != nil {
29731 res.Body.Close()
29732 }
29733 return nil, gensupport.WrapError(&googleapi.Error{
29734 Code: res.StatusCode,
29735 Header: res.Header,
29736 })
29737 }
29738 if err != nil {
29739 return nil, err
29740 }
29741 defer googleapi.CloseBody(res)
29742 if err := googleapi.CheckResponse(res); err != nil {
29743 return nil, gensupport.WrapError(err)
29744 }
29745 ret := &GoogleCloudDialogflowCxV3beta1Intent{
29746 ServerResponse: googleapi.ServerResponse{
29747 Header: res.Header,
29748 HTTPStatusCode: res.StatusCode,
29749 },
29750 }
29751 target := &ret
29752 if err := gensupport.DecodeResponse(target, res); err != nil {
29753 return nil, err
29754 }
29755 return ret, nil
29756 }
29757
29758 type ProjectsLocationsAgentsSessionsDetectIntentCall struct {
29759 s *Service
29760 sessionid string
29761 googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
29762 urlParams_ gensupport.URLParams
29763 ctx_ context.Context
29764 header_ http.Header
29765 }
29766
29767
29768
29769
29770
29771
29772
29773
29774
29775
29776
29777
29778
29779
29780
29781
29782
29783
29784
29785
29786 func (r *ProjectsLocationsAgentsSessionsService) DetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsSessionsDetectIntentCall {
29787 c := &ProjectsLocationsAgentsSessionsDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29788 c.sessionid = sessionid
29789 c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
29790 return c
29791 }
29792
29793
29794
29795
29796 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsDetectIntentCall {
29797 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29798 return c
29799 }
29800
29801
29802 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsDetectIntentCall {
29803 c.ctx_ = ctx
29804 return c
29805 }
29806
29807
29808
29809 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Header() http.Header {
29810 if c.header_ == nil {
29811 c.header_ = make(http.Header)
29812 }
29813 return c.header_
29814 }
29815
29816 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) doRequest(alt string) (*http.Response, error) {
29817 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29818 var body io.Reader = nil
29819 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
29820 if err != nil {
29821 return nil, err
29822 }
29823 c.urlParams_.Set("alt", alt)
29824 c.urlParams_.Set("prettyPrint", "false")
29825 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:detectIntent")
29826 urls += "?" + c.urlParams_.Encode()
29827 req, err := http.NewRequest("POST", urls, body)
29828 if err != nil {
29829 return nil, err
29830 }
29831 req.Header = reqHeaders
29832 googleapi.Expand(req.URL, map[string]string{
29833 "session": c.sessionid,
29834 })
29835 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29836 }
29837
29838
29839
29840
29841
29842
29843
29844 func (c *ProjectsLocationsAgentsSessionsDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
29845 gensupport.SetOptions(c.urlParams_, opts...)
29846 res, err := c.doRequest("json")
29847 if res != nil && res.StatusCode == http.StatusNotModified {
29848 if res.Body != nil {
29849 res.Body.Close()
29850 }
29851 return nil, gensupport.WrapError(&googleapi.Error{
29852 Code: res.StatusCode,
29853 Header: res.Header,
29854 })
29855 }
29856 if err != nil {
29857 return nil, err
29858 }
29859 defer googleapi.CloseBody(res)
29860 if err := googleapi.CheckResponse(res); err != nil {
29861 return nil, gensupport.WrapError(err)
29862 }
29863 ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
29864 ServerResponse: googleapi.ServerResponse{
29865 Header: res.Header,
29866 HTTPStatusCode: res.StatusCode,
29867 },
29868 }
29869 target := &ret
29870 if err := gensupport.DecodeResponse(target, res); err != nil {
29871 return nil, err
29872 }
29873 return ret, nil
29874 }
29875
29876 type ProjectsLocationsAgentsSessionsFulfillIntentCall struct {
29877 s *Service
29878 sessionid string
29879 googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest
29880 urlParams_ gensupport.URLParams
29881 ctx_ context.Context
29882 header_ http.Header
29883 }
29884
29885
29886
29887
29888
29889
29890
29891
29892
29893
29894
29895
29896
29897
29898 func (r *ProjectsLocationsAgentsSessionsService) FulfillIntent(sessionid string, googleclouddialogflowcxv3beta1fulfillintentrequest *GoogleCloudDialogflowCxV3beta1FulfillIntentRequest) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
29899 c := &ProjectsLocationsAgentsSessionsFulfillIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
29900 c.sessionid = sessionid
29901 c.googleclouddialogflowcxv3beta1fulfillintentrequest = googleclouddialogflowcxv3beta1fulfillintentrequest
29902 return c
29903 }
29904
29905
29906
29907
29908 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
29909 c.urlParams_.Set("fields", googleapi.CombineFields(s))
29910 return c
29911 }
29912
29913
29914 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsFulfillIntentCall {
29915 c.ctx_ = ctx
29916 return c
29917 }
29918
29919
29920
29921 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Header() http.Header {
29922 if c.header_ == nil {
29923 c.header_ = make(http.Header)
29924 }
29925 return c.header_
29926 }
29927
29928 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) doRequest(alt string) (*http.Response, error) {
29929 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
29930 var body io.Reader = nil
29931 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1fulfillintentrequest)
29932 if err != nil {
29933 return nil, err
29934 }
29935 c.urlParams_.Set("alt", alt)
29936 c.urlParams_.Set("prettyPrint", "false")
29937 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:fulfillIntent")
29938 urls += "?" + c.urlParams_.Encode()
29939 req, err := http.NewRequest("POST", urls, body)
29940 if err != nil {
29941 return nil, err
29942 }
29943 req.Header = reqHeaders
29944 googleapi.Expand(req.URL, map[string]string{
29945 "session": c.sessionid,
29946 })
29947 return gensupport.SendRequest(c.ctx_, c.s.client, req)
29948 }
29949
29950
29951
29952
29953
29954
29955
29956 func (c *ProjectsLocationsAgentsSessionsFulfillIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1FulfillIntentResponse, error) {
29957 gensupport.SetOptions(c.urlParams_, opts...)
29958 res, err := c.doRequest("json")
29959 if res != nil && res.StatusCode == http.StatusNotModified {
29960 if res.Body != nil {
29961 res.Body.Close()
29962 }
29963 return nil, gensupport.WrapError(&googleapi.Error{
29964 Code: res.StatusCode,
29965 Header: res.Header,
29966 })
29967 }
29968 if err != nil {
29969 return nil, err
29970 }
29971 defer googleapi.CloseBody(res)
29972 if err := googleapi.CheckResponse(res); err != nil {
29973 return nil, gensupport.WrapError(err)
29974 }
29975 ret := &GoogleCloudDialogflowCxV3beta1FulfillIntentResponse{
29976 ServerResponse: googleapi.ServerResponse{
29977 Header: res.Header,
29978 HTTPStatusCode: res.StatusCode,
29979 },
29980 }
29981 target := &ret
29982 if err := gensupport.DecodeResponse(target, res); err != nil {
29983 return nil, err
29984 }
29985 return ret, nil
29986 }
29987
29988 type ProjectsLocationsAgentsSessionsMatchIntentCall struct {
29989 s *Service
29990 sessionid string
29991 googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest
29992 urlParams_ gensupport.URLParams
29993 ctx_ context.Context
29994 header_ http.Header
29995 }
29996
29997
29998
29999
30000
30001
30002
30003
30004
30005
30006
30007
30008
30009 func (r *ProjectsLocationsAgentsSessionsService) MatchIntent(sessionid string, googleclouddialogflowcxv3beta1matchintentrequest *GoogleCloudDialogflowCxV3beta1MatchIntentRequest) *ProjectsLocationsAgentsSessionsMatchIntentCall {
30010 c := &ProjectsLocationsAgentsSessionsMatchIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30011 c.sessionid = sessionid
30012 c.googleclouddialogflowcxv3beta1matchintentrequest = googleclouddialogflowcxv3beta1matchintentrequest
30013 return c
30014 }
30015
30016
30017
30018
30019 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsMatchIntentCall {
30020 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30021 return c
30022 }
30023
30024
30025 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsMatchIntentCall {
30026 c.ctx_ = ctx
30027 return c
30028 }
30029
30030
30031
30032 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Header() http.Header {
30033 if c.header_ == nil {
30034 c.header_ = make(http.Header)
30035 }
30036 return c.header_
30037 }
30038
30039 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) doRequest(alt string) (*http.Response, error) {
30040 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30041 var body io.Reader = nil
30042 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1matchintentrequest)
30043 if err != nil {
30044 return nil, err
30045 }
30046 c.urlParams_.Set("alt", alt)
30047 c.urlParams_.Set("prettyPrint", "false")
30048 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:matchIntent")
30049 urls += "?" + c.urlParams_.Encode()
30050 req, err := http.NewRequest("POST", urls, body)
30051 if err != nil {
30052 return nil, err
30053 }
30054 req.Header = reqHeaders
30055 googleapi.Expand(req.URL, map[string]string{
30056 "session": c.sessionid,
30057 })
30058 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30059 }
30060
30061
30062
30063
30064
30065
30066
30067 func (c *ProjectsLocationsAgentsSessionsMatchIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1MatchIntentResponse, error) {
30068 gensupport.SetOptions(c.urlParams_, opts...)
30069 res, err := c.doRequest("json")
30070 if res != nil && res.StatusCode == http.StatusNotModified {
30071 if res.Body != nil {
30072 res.Body.Close()
30073 }
30074 return nil, gensupport.WrapError(&googleapi.Error{
30075 Code: res.StatusCode,
30076 Header: res.Header,
30077 })
30078 }
30079 if err != nil {
30080 return nil, err
30081 }
30082 defer googleapi.CloseBody(res)
30083 if err := googleapi.CheckResponse(res); err != nil {
30084 return nil, gensupport.WrapError(err)
30085 }
30086 ret := &GoogleCloudDialogflowCxV3beta1MatchIntentResponse{
30087 ServerResponse: googleapi.ServerResponse{
30088 Header: res.Header,
30089 HTTPStatusCode: res.StatusCode,
30090 },
30091 }
30092 target := &ret
30093 if err := gensupport.DecodeResponse(target, res); err != nil {
30094 return nil, err
30095 }
30096 return ret, nil
30097 }
30098
30099 type ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall struct {
30100 s *Service
30101 sessionid string
30102 googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest
30103 urlParams_ gensupport.URLParams
30104 ctx_ context.Context
30105 header_ http.Header
30106 }
30107
30108
30109
30110
30111
30112
30113
30114
30115
30116
30117
30118
30119
30120
30121
30122
30123
30124
30125
30126 func (r *ProjectsLocationsAgentsSessionsService) ServerStreamingDetectIntent(sessionid string, googleclouddialogflowcxv3beta1detectintentrequest *GoogleCloudDialogflowCxV3beta1DetectIntentRequest) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
30127 c := &ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30128 c.sessionid = sessionid
30129 c.googleclouddialogflowcxv3beta1detectintentrequest = googleclouddialogflowcxv3beta1detectintentrequest
30130 return c
30131 }
30132
30133
30134
30135
30136 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
30137 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30138 return c
30139 }
30140
30141
30142 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall {
30143 c.ctx_ = ctx
30144 return c
30145 }
30146
30147
30148
30149 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Header() http.Header {
30150 if c.header_ == nil {
30151 c.header_ = make(http.Header)
30152 }
30153 return c.header_
30154 }
30155
30156 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) doRequest(alt string) (*http.Response, error) {
30157 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30158 var body io.Reader = nil
30159 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1detectintentrequest)
30160 if err != nil {
30161 return nil, err
30162 }
30163 c.urlParams_.Set("alt", alt)
30164 c.urlParams_.Set("prettyPrint", "false")
30165 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:serverStreamingDetectIntent")
30166 urls += "?" + c.urlParams_.Encode()
30167 req, err := http.NewRequest("POST", urls, body)
30168 if err != nil {
30169 return nil, err
30170 }
30171 req.Header = reqHeaders
30172 googleapi.Expand(req.URL, map[string]string{
30173 "session": c.sessionid,
30174 })
30175 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30176 }
30177
30178
30179
30180
30181
30182
30183
30184 func (c *ProjectsLocationsAgentsSessionsServerStreamingDetectIntentCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1DetectIntentResponse, error) {
30185 gensupport.SetOptions(c.urlParams_, opts...)
30186 res, err := c.doRequest("json")
30187 if res != nil && res.StatusCode == http.StatusNotModified {
30188 if res.Body != nil {
30189 res.Body.Close()
30190 }
30191 return nil, gensupport.WrapError(&googleapi.Error{
30192 Code: res.StatusCode,
30193 Header: res.Header,
30194 })
30195 }
30196 if err != nil {
30197 return nil, err
30198 }
30199 defer googleapi.CloseBody(res)
30200 if err := googleapi.CheckResponse(res); err != nil {
30201 return nil, gensupport.WrapError(err)
30202 }
30203 ret := &GoogleCloudDialogflowCxV3beta1DetectIntentResponse{
30204 ServerResponse: googleapi.ServerResponse{
30205 Header: res.Header,
30206 HTTPStatusCode: res.StatusCode,
30207 },
30208 }
30209 target := &ret
30210 if err := gensupport.DecodeResponse(target, res); err != nil {
30211 return nil, err
30212 }
30213 return ret, nil
30214 }
30215
30216 type ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall struct {
30217 s *Service
30218 session string
30219 googleclouddialogflowcxv3beta1submitanswerfeedbackrequest *GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest
30220 urlParams_ gensupport.URLParams
30221 ctx_ context.Context
30222 header_ http.Header
30223 }
30224
30225
30226
30227
30228
30229 func (r *ProjectsLocationsAgentsSessionsService) SubmitAnswerFeedback(session string, googleclouddialogflowcxv3beta1submitanswerfeedbackrequest *GoogleCloudDialogflowCxV3beta1SubmitAnswerFeedbackRequest) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
30230 c := &ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30231 c.session = session
30232 c.googleclouddialogflowcxv3beta1submitanswerfeedbackrequest = googleclouddialogflowcxv3beta1submitanswerfeedbackrequest
30233 return c
30234 }
30235
30236
30237
30238
30239 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
30240 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30241 return c
30242 }
30243
30244
30245 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall {
30246 c.ctx_ = ctx
30247 return c
30248 }
30249
30250
30251
30252 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Header() http.Header {
30253 if c.header_ == nil {
30254 c.header_ = make(http.Header)
30255 }
30256 return c.header_
30257 }
30258
30259 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) doRequest(alt string) (*http.Response, error) {
30260 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30261 var body io.Reader = nil
30262 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1submitanswerfeedbackrequest)
30263 if err != nil {
30264 return nil, err
30265 }
30266 c.urlParams_.Set("alt", alt)
30267 c.urlParams_.Set("prettyPrint", "false")
30268 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+session}:submitAnswerFeedback")
30269 urls += "?" + c.urlParams_.Encode()
30270 req, err := http.NewRequest("POST", urls, body)
30271 if err != nil {
30272 return nil, err
30273 }
30274 req.Header = reqHeaders
30275 googleapi.Expand(req.URL, map[string]string{
30276 "session": c.session,
30277 })
30278 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30279 }
30280
30281
30282
30283
30284
30285
30286
30287 func (c *ProjectsLocationsAgentsSessionsSubmitAnswerFeedbackCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1AnswerFeedback, error) {
30288 gensupport.SetOptions(c.urlParams_, opts...)
30289 res, err := c.doRequest("json")
30290 if res != nil && res.StatusCode == http.StatusNotModified {
30291 if res.Body != nil {
30292 res.Body.Close()
30293 }
30294 return nil, gensupport.WrapError(&googleapi.Error{
30295 Code: res.StatusCode,
30296 Header: res.Header,
30297 })
30298 }
30299 if err != nil {
30300 return nil, err
30301 }
30302 defer googleapi.CloseBody(res)
30303 if err := googleapi.CheckResponse(res); err != nil {
30304 return nil, gensupport.WrapError(err)
30305 }
30306 ret := &GoogleCloudDialogflowCxV3beta1AnswerFeedback{
30307 ServerResponse: googleapi.ServerResponse{
30308 Header: res.Header,
30309 HTTPStatusCode: res.StatusCode,
30310 },
30311 }
30312 target := &ret
30313 if err := gensupport.DecodeResponse(target, res); err != nil {
30314 return nil, err
30315 }
30316 return ret, nil
30317 }
30318
30319 type ProjectsLocationsAgentsSessionsEntityTypesCreateCall struct {
30320 s *Service
30321 parent string
30322 googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
30323 urlParams_ gensupport.URLParams
30324 ctx_ context.Context
30325 header_ http.Header
30326 }
30327
30328
30329
30330
30331
30332
30333
30334 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Create(parent string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
30335 c := &ProjectsLocationsAgentsSessionsEntityTypesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30336 c.parent = parent
30337 c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
30338 return c
30339 }
30340
30341
30342
30343
30344 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
30345 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30346 return c
30347 }
30348
30349
30350 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesCreateCall {
30351 c.ctx_ = ctx
30352 return c
30353 }
30354
30355
30356
30357 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Header() http.Header {
30358 if c.header_ == nil {
30359 c.header_ = make(http.Header)
30360 }
30361 return c.header_
30362 }
30363
30364 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) doRequest(alt string) (*http.Response, error) {
30365 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30366 var body io.Reader = nil
30367 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
30368 if err != nil {
30369 return nil, err
30370 }
30371 c.urlParams_.Set("alt", alt)
30372 c.urlParams_.Set("prettyPrint", "false")
30373 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
30374 urls += "?" + c.urlParams_.Encode()
30375 req, err := http.NewRequest("POST", urls, body)
30376 if err != nil {
30377 return nil, err
30378 }
30379 req.Header = reqHeaders
30380 googleapi.Expand(req.URL, map[string]string{
30381 "parent": c.parent,
30382 })
30383 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30384 }
30385
30386
30387
30388
30389
30390
30391
30392 func (c *ProjectsLocationsAgentsSessionsEntityTypesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
30393 gensupport.SetOptions(c.urlParams_, opts...)
30394 res, err := c.doRequest("json")
30395 if res != nil && res.StatusCode == http.StatusNotModified {
30396 if res.Body != nil {
30397 res.Body.Close()
30398 }
30399 return nil, gensupport.WrapError(&googleapi.Error{
30400 Code: res.StatusCode,
30401 Header: res.Header,
30402 })
30403 }
30404 if err != nil {
30405 return nil, err
30406 }
30407 defer googleapi.CloseBody(res)
30408 if err := googleapi.CheckResponse(res); err != nil {
30409 return nil, gensupport.WrapError(err)
30410 }
30411 ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
30412 ServerResponse: googleapi.ServerResponse{
30413 Header: res.Header,
30414 HTTPStatusCode: res.StatusCode,
30415 },
30416 }
30417 target := &ret
30418 if err := gensupport.DecodeResponse(target, res); err != nil {
30419 return nil, err
30420 }
30421 return ret, nil
30422 }
30423
30424 type ProjectsLocationsAgentsSessionsEntityTypesDeleteCall struct {
30425 s *Service
30426 name string
30427 urlParams_ gensupport.URLParams
30428 ctx_ context.Context
30429 header_ http.Header
30430 }
30431
30432
30433
30434
30435
30436
30437
30438 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Delete(name string) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
30439 c := &ProjectsLocationsAgentsSessionsEntityTypesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30440 c.name = name
30441 return c
30442 }
30443
30444
30445
30446
30447 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
30448 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30449 return c
30450 }
30451
30452
30453 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall {
30454 c.ctx_ = ctx
30455 return c
30456 }
30457
30458
30459
30460 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Header() http.Header {
30461 if c.header_ == nil {
30462 c.header_ = make(http.Header)
30463 }
30464 return c.header_
30465 }
30466
30467 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) doRequest(alt string) (*http.Response, error) {
30468 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30469 var body io.Reader = nil
30470 c.urlParams_.Set("alt", alt)
30471 c.urlParams_.Set("prettyPrint", "false")
30472 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
30473 urls += "?" + c.urlParams_.Encode()
30474 req, err := http.NewRequest("DELETE", urls, body)
30475 if err != nil {
30476 return nil, err
30477 }
30478 req.Header = reqHeaders
30479 googleapi.Expand(req.URL, map[string]string{
30480 "name": c.name,
30481 })
30482 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30483 }
30484
30485
30486
30487
30488
30489
30490
30491 func (c *ProjectsLocationsAgentsSessionsEntityTypesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30492 gensupport.SetOptions(c.urlParams_, opts...)
30493 res, err := c.doRequest("json")
30494 if res != nil && res.StatusCode == http.StatusNotModified {
30495 if res.Body != nil {
30496 res.Body.Close()
30497 }
30498 return nil, gensupport.WrapError(&googleapi.Error{
30499 Code: res.StatusCode,
30500 Header: res.Header,
30501 })
30502 }
30503 if err != nil {
30504 return nil, err
30505 }
30506 defer googleapi.CloseBody(res)
30507 if err := googleapi.CheckResponse(res); err != nil {
30508 return nil, gensupport.WrapError(err)
30509 }
30510 ret := &GoogleProtobufEmpty{
30511 ServerResponse: googleapi.ServerResponse{
30512 Header: res.Header,
30513 HTTPStatusCode: res.StatusCode,
30514 },
30515 }
30516 target := &ret
30517 if err := gensupport.DecodeResponse(target, res); err != nil {
30518 return nil, err
30519 }
30520 return ret, nil
30521 }
30522
30523 type ProjectsLocationsAgentsSessionsEntityTypesGetCall struct {
30524 s *Service
30525 name string
30526 urlParams_ gensupport.URLParams
30527 ifNoneMatch_ string
30528 ctx_ context.Context
30529 header_ http.Header
30530 }
30531
30532
30533
30534
30535
30536
30537
30538 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Get(name string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
30539 c := &ProjectsLocationsAgentsSessionsEntityTypesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30540 c.name = name
30541 return c
30542 }
30543
30544
30545
30546
30547 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
30548 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30549 return c
30550 }
30551
30552
30553
30554
30555 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
30556 c.ifNoneMatch_ = entityTag
30557 return c
30558 }
30559
30560
30561 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesGetCall {
30562 c.ctx_ = ctx
30563 return c
30564 }
30565
30566
30567
30568 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Header() http.Header {
30569 if c.header_ == nil {
30570 c.header_ = make(http.Header)
30571 }
30572 return c.header_
30573 }
30574
30575 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) doRequest(alt string) (*http.Response, error) {
30576 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30577 if c.ifNoneMatch_ != "" {
30578 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30579 }
30580 var body io.Reader = nil
30581 c.urlParams_.Set("alt", alt)
30582 c.urlParams_.Set("prettyPrint", "false")
30583 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
30584 urls += "?" + c.urlParams_.Encode()
30585 req, err := http.NewRequest("GET", urls, body)
30586 if err != nil {
30587 return nil, err
30588 }
30589 req.Header = reqHeaders
30590 googleapi.Expand(req.URL, map[string]string{
30591 "name": c.name,
30592 })
30593 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30594 }
30595
30596
30597
30598
30599
30600
30601
30602 func (c *ProjectsLocationsAgentsSessionsEntityTypesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
30603 gensupport.SetOptions(c.urlParams_, opts...)
30604 res, err := c.doRequest("json")
30605 if res != nil && res.StatusCode == http.StatusNotModified {
30606 if res.Body != nil {
30607 res.Body.Close()
30608 }
30609 return nil, gensupport.WrapError(&googleapi.Error{
30610 Code: res.StatusCode,
30611 Header: res.Header,
30612 })
30613 }
30614 if err != nil {
30615 return nil, err
30616 }
30617 defer googleapi.CloseBody(res)
30618 if err := googleapi.CheckResponse(res); err != nil {
30619 return nil, gensupport.WrapError(err)
30620 }
30621 ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
30622 ServerResponse: googleapi.ServerResponse{
30623 Header: res.Header,
30624 HTTPStatusCode: res.StatusCode,
30625 },
30626 }
30627 target := &ret
30628 if err := gensupport.DecodeResponse(target, res); err != nil {
30629 return nil, err
30630 }
30631 return ret, nil
30632 }
30633
30634 type ProjectsLocationsAgentsSessionsEntityTypesListCall struct {
30635 s *Service
30636 parent string
30637 urlParams_ gensupport.URLParams
30638 ifNoneMatch_ string
30639 ctx_ context.Context
30640 header_ http.Header
30641 }
30642
30643
30644
30645
30646
30647
30648
30649 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) List(parent string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
30650 c := &ProjectsLocationsAgentsSessionsEntityTypesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30651 c.parent = parent
30652 return c
30653 }
30654
30655
30656
30657 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
30658 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
30659 return c
30660 }
30661
30662
30663
30664 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
30665 c.urlParams_.Set("pageToken", pageToken)
30666 return c
30667 }
30668
30669
30670
30671
30672 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
30673 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30674 return c
30675 }
30676
30677
30678
30679
30680 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
30681 c.ifNoneMatch_ = entityTag
30682 return c
30683 }
30684
30685
30686 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesListCall {
30687 c.ctx_ = ctx
30688 return c
30689 }
30690
30691
30692
30693 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Header() http.Header {
30694 if c.header_ == nil {
30695 c.header_ = make(http.Header)
30696 }
30697 return c.header_
30698 }
30699
30700 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) doRequest(alt string) (*http.Response, error) {
30701 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
30702 if c.ifNoneMatch_ != "" {
30703 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
30704 }
30705 var body io.Reader = nil
30706 c.urlParams_.Set("alt", alt)
30707 c.urlParams_.Set("prettyPrint", "false")
30708 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/entityTypes")
30709 urls += "?" + c.urlParams_.Encode()
30710 req, err := http.NewRequest("GET", urls, body)
30711 if err != nil {
30712 return nil, err
30713 }
30714 req.Header = reqHeaders
30715 googleapi.Expand(req.URL, map[string]string{
30716 "parent": c.parent,
30717 })
30718 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30719 }
30720
30721
30722
30723
30724
30725
30726
30727 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse, error) {
30728 gensupport.SetOptions(c.urlParams_, opts...)
30729 res, err := c.doRequest("json")
30730 if res != nil && res.StatusCode == http.StatusNotModified {
30731 if res.Body != nil {
30732 res.Body.Close()
30733 }
30734 return nil, gensupport.WrapError(&googleapi.Error{
30735 Code: res.StatusCode,
30736 Header: res.Header,
30737 })
30738 }
30739 if err != nil {
30740 return nil, err
30741 }
30742 defer googleapi.CloseBody(res)
30743 if err := googleapi.CheckResponse(res); err != nil {
30744 return nil, gensupport.WrapError(err)
30745 }
30746 ret := &GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse{
30747 ServerResponse: googleapi.ServerResponse{
30748 Header: res.Header,
30749 HTTPStatusCode: res.StatusCode,
30750 },
30751 }
30752 target := &ret
30753 if err := gensupport.DecodeResponse(target, res); err != nil {
30754 return nil, err
30755 }
30756 return ret, nil
30757 }
30758
30759
30760
30761
30762 func (c *ProjectsLocationsAgentsSessionsEntityTypesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSessionEntityTypesResponse) error) error {
30763 c.ctx_ = ctx
30764 defer c.PageToken(c.urlParams_.Get("pageToken"))
30765 for {
30766 x, err := c.Do()
30767 if err != nil {
30768 return err
30769 }
30770 if err := f(x); err != nil {
30771 return err
30772 }
30773 if x.NextPageToken == "" {
30774 return nil
30775 }
30776 c.PageToken(x.NextPageToken)
30777 }
30778 }
30779
30780 type ProjectsLocationsAgentsSessionsEntityTypesPatchCall struct {
30781 s *Service
30782 nameid string
30783 googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType
30784 urlParams_ gensupport.URLParams
30785 ctx_ context.Context
30786 header_ http.Header
30787 }
30788
30789
30790
30791
30792
30793
30794
30795 func (r *ProjectsLocationsAgentsSessionsEntityTypesService) Patch(nameid string, googleclouddialogflowcxv3beta1sessionentitytype *GoogleCloudDialogflowCxV3beta1SessionEntityType) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30796 c := &ProjectsLocationsAgentsSessionsEntityTypesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30797 c.nameid = nameid
30798 c.googleclouddialogflowcxv3beta1sessionentitytype = googleclouddialogflowcxv3beta1sessionentitytype
30799 return c
30800 }
30801
30802
30803
30804 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30805 c.urlParams_.Set("updateMask", updateMask)
30806 return c
30807 }
30808
30809
30810
30811
30812 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30813 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30814 return c
30815 }
30816
30817
30818 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsSessionsEntityTypesPatchCall {
30819 c.ctx_ = ctx
30820 return c
30821 }
30822
30823
30824
30825 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Header() http.Header {
30826 if c.header_ == nil {
30827 c.header_ = make(http.Header)
30828 }
30829 return c.header_
30830 }
30831
30832 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) doRequest(alt string) (*http.Response, error) {
30833 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30834 var body io.Reader = nil
30835 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1sessionentitytype)
30836 if err != nil {
30837 return nil, err
30838 }
30839 c.urlParams_.Set("alt", alt)
30840 c.urlParams_.Set("prettyPrint", "false")
30841 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
30842 urls += "?" + c.urlParams_.Encode()
30843 req, err := http.NewRequest("PATCH", urls, body)
30844 if err != nil {
30845 return nil, err
30846 }
30847 req.Header = reqHeaders
30848 googleapi.Expand(req.URL, map[string]string{
30849 "name": c.nameid,
30850 })
30851 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30852 }
30853
30854
30855
30856
30857
30858
30859
30860 func (c *ProjectsLocationsAgentsSessionsEntityTypesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SessionEntityType, error) {
30861 gensupport.SetOptions(c.urlParams_, opts...)
30862 res, err := c.doRequest("json")
30863 if res != nil && res.StatusCode == http.StatusNotModified {
30864 if res.Body != nil {
30865 res.Body.Close()
30866 }
30867 return nil, gensupport.WrapError(&googleapi.Error{
30868 Code: res.StatusCode,
30869 Header: res.Header,
30870 })
30871 }
30872 if err != nil {
30873 return nil, err
30874 }
30875 defer googleapi.CloseBody(res)
30876 if err := googleapi.CheckResponse(res); err != nil {
30877 return nil, gensupport.WrapError(err)
30878 }
30879 ret := &GoogleCloudDialogflowCxV3beta1SessionEntityType{
30880 ServerResponse: googleapi.ServerResponse{
30881 Header: res.Header,
30882 HTTPStatusCode: res.StatusCode,
30883 },
30884 }
30885 target := &ret
30886 if err := gensupport.DecodeResponse(target, res); err != nil {
30887 return nil, err
30888 }
30889 return ret, nil
30890 }
30891
30892 type ProjectsLocationsAgentsTestCasesBatchDeleteCall struct {
30893 s *Service
30894 parent string
30895 googleclouddialogflowcxv3beta1batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest
30896 urlParams_ gensupport.URLParams
30897 ctx_ context.Context
30898 header_ http.Header
30899 }
30900
30901
30902
30903
30904
30905 func (r *ProjectsLocationsAgentsTestCasesService) BatchDelete(parent string, googleclouddialogflowcxv3beta1batchdeletetestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchDeleteTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
30906 c := &ProjectsLocationsAgentsTestCasesBatchDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
30907 c.parent = parent
30908 c.googleclouddialogflowcxv3beta1batchdeletetestcasesrequest = googleclouddialogflowcxv3beta1batchdeletetestcasesrequest
30909 return c
30910 }
30911
30912
30913
30914
30915 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
30916 c.urlParams_.Set("fields", googleapi.CombineFields(s))
30917 return c
30918 }
30919
30920
30921 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchDeleteCall {
30922 c.ctx_ = ctx
30923 return c
30924 }
30925
30926
30927
30928 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Header() http.Header {
30929 if c.header_ == nil {
30930 c.header_ = make(http.Header)
30931 }
30932 return c.header_
30933 }
30934
30935 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) doRequest(alt string) (*http.Response, error) {
30936 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
30937 var body io.Reader = nil
30938 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1batchdeletetestcasesrequest)
30939 if err != nil {
30940 return nil, err
30941 }
30942 c.urlParams_.Set("alt", alt)
30943 c.urlParams_.Set("prettyPrint", "false")
30944 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:batchDelete")
30945 urls += "?" + c.urlParams_.Encode()
30946 req, err := http.NewRequest("POST", urls, body)
30947 if err != nil {
30948 return nil, err
30949 }
30950 req.Header = reqHeaders
30951 googleapi.Expand(req.URL, map[string]string{
30952 "parent": c.parent,
30953 })
30954 return gensupport.SendRequest(c.ctx_, c.s.client, req)
30955 }
30956
30957
30958
30959
30960
30961
30962
30963 func (c *ProjectsLocationsAgentsTestCasesBatchDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
30964 gensupport.SetOptions(c.urlParams_, opts...)
30965 res, err := c.doRequest("json")
30966 if res != nil && res.StatusCode == http.StatusNotModified {
30967 if res.Body != nil {
30968 res.Body.Close()
30969 }
30970 return nil, gensupport.WrapError(&googleapi.Error{
30971 Code: res.StatusCode,
30972 Header: res.Header,
30973 })
30974 }
30975 if err != nil {
30976 return nil, err
30977 }
30978 defer googleapi.CloseBody(res)
30979 if err := googleapi.CheckResponse(res); err != nil {
30980 return nil, gensupport.WrapError(err)
30981 }
30982 ret := &GoogleProtobufEmpty{
30983 ServerResponse: googleapi.ServerResponse{
30984 Header: res.Header,
30985 HTTPStatusCode: res.StatusCode,
30986 },
30987 }
30988 target := &ret
30989 if err := gensupport.DecodeResponse(target, res); err != nil {
30990 return nil, err
30991 }
30992 return ret, nil
30993 }
30994
30995 type ProjectsLocationsAgentsTestCasesBatchRunCall struct {
30996 s *Service
30997 parent string
30998 googleclouddialogflowcxv3beta1batchruntestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest
30999 urlParams_ gensupport.URLParams
31000 ctx_ context.Context
31001 header_ http.Header
31002 }
31003
31004
31005
31006
31007
31008
31009
31010
31011
31012 func (r *ProjectsLocationsAgentsTestCasesService) BatchRun(parent string, googleclouddialogflowcxv3beta1batchruntestcasesrequest *GoogleCloudDialogflowCxV3beta1BatchRunTestCasesRequest) *ProjectsLocationsAgentsTestCasesBatchRunCall {
31013 c := &ProjectsLocationsAgentsTestCasesBatchRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31014 c.parent = parent
31015 c.googleclouddialogflowcxv3beta1batchruntestcasesrequest = googleclouddialogflowcxv3beta1batchruntestcasesrequest
31016 return c
31017 }
31018
31019
31020
31021
31022 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesBatchRunCall {
31023 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31024 return c
31025 }
31026
31027
31028 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesBatchRunCall {
31029 c.ctx_ = ctx
31030 return c
31031 }
31032
31033
31034
31035 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Header() http.Header {
31036 if c.header_ == nil {
31037 c.header_ = make(http.Header)
31038 }
31039 return c.header_
31040 }
31041
31042 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) doRequest(alt string) (*http.Response, error) {
31043 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31044 var body io.Reader = nil
31045 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1batchruntestcasesrequest)
31046 if err != nil {
31047 return nil, err
31048 }
31049 c.urlParams_.Set("alt", alt)
31050 c.urlParams_.Set("prettyPrint", "false")
31051 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:batchRun")
31052 urls += "?" + c.urlParams_.Encode()
31053 req, err := http.NewRequest("POST", urls, body)
31054 if err != nil {
31055 return nil, err
31056 }
31057 req.Header = reqHeaders
31058 googleapi.Expand(req.URL, map[string]string{
31059 "parent": c.parent,
31060 })
31061 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31062 }
31063
31064
31065
31066
31067
31068
31069
31070 func (c *ProjectsLocationsAgentsTestCasesBatchRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31071 gensupport.SetOptions(c.urlParams_, opts...)
31072 res, err := c.doRequest("json")
31073 if res != nil && res.StatusCode == http.StatusNotModified {
31074 if res.Body != nil {
31075 res.Body.Close()
31076 }
31077 return nil, gensupport.WrapError(&googleapi.Error{
31078 Code: res.StatusCode,
31079 Header: res.Header,
31080 })
31081 }
31082 if err != nil {
31083 return nil, err
31084 }
31085 defer googleapi.CloseBody(res)
31086 if err := googleapi.CheckResponse(res); err != nil {
31087 return nil, gensupport.WrapError(err)
31088 }
31089 ret := &GoogleLongrunningOperation{
31090 ServerResponse: googleapi.ServerResponse{
31091 Header: res.Header,
31092 HTTPStatusCode: res.StatusCode,
31093 },
31094 }
31095 target := &ret
31096 if err := gensupport.DecodeResponse(target, res); err != nil {
31097 return nil, err
31098 }
31099 return ret, nil
31100 }
31101
31102 type ProjectsLocationsAgentsTestCasesCalculateCoverageCall struct {
31103 s *Service
31104 agent string
31105 urlParams_ gensupport.URLParams
31106 ifNoneMatch_ string
31107 ctx_ context.Context
31108 header_ http.Header
31109 }
31110
31111
31112
31113
31114
31115 func (r *ProjectsLocationsAgentsTestCasesService) CalculateCoverage(agent string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
31116 c := &ProjectsLocationsAgentsTestCasesCalculateCoverageCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31117 c.agent = agent
31118 return c
31119 }
31120
31121
31122
31123
31124
31125
31126
31127
31128
31129
31130 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Type(type_ string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
31131 c.urlParams_.Set("type", type_)
31132 return c
31133 }
31134
31135
31136
31137
31138 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
31139 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31140 return c
31141 }
31142
31143
31144
31145
31146 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
31147 c.ifNoneMatch_ = entityTag
31148 return c
31149 }
31150
31151
31152 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCalculateCoverageCall {
31153 c.ctx_ = ctx
31154 return c
31155 }
31156
31157
31158
31159 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Header() http.Header {
31160 if c.header_ == nil {
31161 c.header_ = make(http.Header)
31162 }
31163 return c.header_
31164 }
31165
31166 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) doRequest(alt string) (*http.Response, error) {
31167 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31168 if c.ifNoneMatch_ != "" {
31169 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31170 }
31171 var body io.Reader = nil
31172 c.urlParams_.Set("alt", alt)
31173 c.urlParams_.Set("prettyPrint", "false")
31174 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+agent}/testCases:calculateCoverage")
31175 urls += "?" + c.urlParams_.Encode()
31176 req, err := http.NewRequest("GET", urls, body)
31177 if err != nil {
31178 return nil, err
31179 }
31180 req.Header = reqHeaders
31181 googleapi.Expand(req.URL, map[string]string{
31182 "agent": c.agent,
31183 })
31184 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31185 }
31186
31187
31188
31189
31190
31191
31192
31193 func (c *ProjectsLocationsAgentsTestCasesCalculateCoverageCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse, error) {
31194 gensupport.SetOptions(c.urlParams_, opts...)
31195 res, err := c.doRequest("json")
31196 if res != nil && res.StatusCode == http.StatusNotModified {
31197 if res.Body != nil {
31198 res.Body.Close()
31199 }
31200 return nil, gensupport.WrapError(&googleapi.Error{
31201 Code: res.StatusCode,
31202 Header: res.Header,
31203 })
31204 }
31205 if err != nil {
31206 return nil, err
31207 }
31208 defer googleapi.CloseBody(res)
31209 if err := googleapi.CheckResponse(res); err != nil {
31210 return nil, gensupport.WrapError(err)
31211 }
31212 ret := &GoogleCloudDialogflowCxV3beta1CalculateCoverageResponse{
31213 ServerResponse: googleapi.ServerResponse{
31214 Header: res.Header,
31215 HTTPStatusCode: res.StatusCode,
31216 },
31217 }
31218 target := &ret
31219 if err := gensupport.DecodeResponse(target, res); err != nil {
31220 return nil, err
31221 }
31222 return ret, nil
31223 }
31224
31225 type ProjectsLocationsAgentsTestCasesCreateCall struct {
31226 s *Service
31227 parent string
31228 googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase
31229 urlParams_ gensupport.URLParams
31230 ctx_ context.Context
31231 header_ http.Header
31232 }
31233
31234
31235
31236
31237
31238 func (r *ProjectsLocationsAgentsTestCasesService) Create(parent string, googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase) *ProjectsLocationsAgentsTestCasesCreateCall {
31239 c := &ProjectsLocationsAgentsTestCasesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31240 c.parent = parent
31241 c.googleclouddialogflowcxv3beta1testcase = googleclouddialogflowcxv3beta1testcase
31242 return c
31243 }
31244
31245
31246
31247
31248 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesCreateCall {
31249 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31250 return c
31251 }
31252
31253
31254 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesCreateCall {
31255 c.ctx_ = ctx
31256 return c
31257 }
31258
31259
31260
31261 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Header() http.Header {
31262 if c.header_ == nil {
31263 c.header_ = make(http.Header)
31264 }
31265 return c.header_
31266 }
31267
31268 func (c *ProjectsLocationsAgentsTestCasesCreateCall) doRequest(alt string) (*http.Response, error) {
31269 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31270 var body io.Reader = nil
31271 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1testcase)
31272 if err != nil {
31273 return nil, err
31274 }
31275 c.urlParams_.Set("alt", alt)
31276 c.urlParams_.Set("prettyPrint", "false")
31277 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases")
31278 urls += "?" + c.urlParams_.Encode()
31279 req, err := http.NewRequest("POST", urls, body)
31280 if err != nil {
31281 return nil, err
31282 }
31283 req.Header = reqHeaders
31284 googleapi.Expand(req.URL, map[string]string{
31285 "parent": c.parent,
31286 })
31287 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31288 }
31289
31290
31291
31292
31293
31294
31295
31296 func (c *ProjectsLocationsAgentsTestCasesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
31297 gensupport.SetOptions(c.urlParams_, opts...)
31298 res, err := c.doRequest("json")
31299 if res != nil && res.StatusCode == http.StatusNotModified {
31300 if res.Body != nil {
31301 res.Body.Close()
31302 }
31303 return nil, gensupport.WrapError(&googleapi.Error{
31304 Code: res.StatusCode,
31305 Header: res.Header,
31306 })
31307 }
31308 if err != nil {
31309 return nil, err
31310 }
31311 defer googleapi.CloseBody(res)
31312 if err := googleapi.CheckResponse(res); err != nil {
31313 return nil, gensupport.WrapError(err)
31314 }
31315 ret := &GoogleCloudDialogflowCxV3beta1TestCase{
31316 ServerResponse: googleapi.ServerResponse{
31317 Header: res.Header,
31318 HTTPStatusCode: res.StatusCode,
31319 },
31320 }
31321 target := &ret
31322 if err := gensupport.DecodeResponse(target, res); err != nil {
31323 return nil, err
31324 }
31325 return ret, nil
31326 }
31327
31328 type ProjectsLocationsAgentsTestCasesExportCall struct {
31329 s *Service
31330 parent string
31331 googleclouddialogflowcxv3beta1exporttestcasesrequest *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest
31332 urlParams_ gensupport.URLParams
31333 ctx_ context.Context
31334 header_ http.Header
31335 }
31336
31337
31338
31339
31340
31341
31342
31343
31344
31345
31346 func (r *ProjectsLocationsAgentsTestCasesService) Export(parent string, googleclouddialogflowcxv3beta1exporttestcasesrequest *GoogleCloudDialogflowCxV3beta1ExportTestCasesRequest) *ProjectsLocationsAgentsTestCasesExportCall {
31347 c := &ProjectsLocationsAgentsTestCasesExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31348 c.parent = parent
31349 c.googleclouddialogflowcxv3beta1exporttestcasesrequest = googleclouddialogflowcxv3beta1exporttestcasesrequest
31350 return c
31351 }
31352
31353
31354
31355
31356 func (c *ProjectsLocationsAgentsTestCasesExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesExportCall {
31357 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31358 return c
31359 }
31360
31361
31362 func (c *ProjectsLocationsAgentsTestCasesExportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesExportCall {
31363 c.ctx_ = ctx
31364 return c
31365 }
31366
31367
31368
31369 func (c *ProjectsLocationsAgentsTestCasesExportCall) Header() http.Header {
31370 if c.header_ == nil {
31371 c.header_ = make(http.Header)
31372 }
31373 return c.header_
31374 }
31375
31376 func (c *ProjectsLocationsAgentsTestCasesExportCall) doRequest(alt string) (*http.Response, error) {
31377 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31378 var body io.Reader = nil
31379 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1exporttestcasesrequest)
31380 if err != nil {
31381 return nil, err
31382 }
31383 c.urlParams_.Set("alt", alt)
31384 c.urlParams_.Set("prettyPrint", "false")
31385 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:export")
31386 urls += "?" + c.urlParams_.Encode()
31387 req, err := http.NewRequest("POST", urls, body)
31388 if err != nil {
31389 return nil, err
31390 }
31391 req.Header = reqHeaders
31392 googleapi.Expand(req.URL, map[string]string{
31393 "parent": c.parent,
31394 })
31395 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31396 }
31397
31398
31399
31400
31401
31402
31403
31404 func (c *ProjectsLocationsAgentsTestCasesExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31405 gensupport.SetOptions(c.urlParams_, opts...)
31406 res, err := c.doRequest("json")
31407 if res != nil && res.StatusCode == http.StatusNotModified {
31408 if res.Body != nil {
31409 res.Body.Close()
31410 }
31411 return nil, gensupport.WrapError(&googleapi.Error{
31412 Code: res.StatusCode,
31413 Header: res.Header,
31414 })
31415 }
31416 if err != nil {
31417 return nil, err
31418 }
31419 defer googleapi.CloseBody(res)
31420 if err := googleapi.CheckResponse(res); err != nil {
31421 return nil, gensupport.WrapError(err)
31422 }
31423 ret := &GoogleLongrunningOperation{
31424 ServerResponse: googleapi.ServerResponse{
31425 Header: res.Header,
31426 HTTPStatusCode: res.StatusCode,
31427 },
31428 }
31429 target := &ret
31430 if err := gensupport.DecodeResponse(target, res); err != nil {
31431 return nil, err
31432 }
31433 return ret, nil
31434 }
31435
31436 type ProjectsLocationsAgentsTestCasesGetCall struct {
31437 s *Service
31438 name string
31439 urlParams_ gensupport.URLParams
31440 ifNoneMatch_ string
31441 ctx_ context.Context
31442 header_ http.Header
31443 }
31444
31445
31446
31447
31448
31449 func (r *ProjectsLocationsAgentsTestCasesService) Get(name string) *ProjectsLocationsAgentsTestCasesGetCall {
31450 c := &ProjectsLocationsAgentsTestCasesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31451 c.name = name
31452 return c
31453 }
31454
31455
31456
31457
31458 func (c *ProjectsLocationsAgentsTestCasesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesGetCall {
31459 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31460 return c
31461 }
31462
31463
31464
31465
31466 func (c *ProjectsLocationsAgentsTestCasesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesGetCall {
31467 c.ifNoneMatch_ = entityTag
31468 return c
31469 }
31470
31471
31472 func (c *ProjectsLocationsAgentsTestCasesGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesGetCall {
31473 c.ctx_ = ctx
31474 return c
31475 }
31476
31477
31478
31479 func (c *ProjectsLocationsAgentsTestCasesGetCall) Header() http.Header {
31480 if c.header_ == nil {
31481 c.header_ = make(http.Header)
31482 }
31483 return c.header_
31484 }
31485
31486 func (c *ProjectsLocationsAgentsTestCasesGetCall) doRequest(alt string) (*http.Response, error) {
31487 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31488 if c.ifNoneMatch_ != "" {
31489 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31490 }
31491 var body io.Reader = nil
31492 c.urlParams_.Set("alt", alt)
31493 c.urlParams_.Set("prettyPrint", "false")
31494 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
31495 urls += "?" + c.urlParams_.Encode()
31496 req, err := http.NewRequest("GET", urls, body)
31497 if err != nil {
31498 return nil, err
31499 }
31500 req.Header = reqHeaders
31501 googleapi.Expand(req.URL, map[string]string{
31502 "name": c.name,
31503 })
31504 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31505 }
31506
31507
31508
31509
31510
31511
31512
31513 func (c *ProjectsLocationsAgentsTestCasesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
31514 gensupport.SetOptions(c.urlParams_, opts...)
31515 res, err := c.doRequest("json")
31516 if res != nil && res.StatusCode == http.StatusNotModified {
31517 if res.Body != nil {
31518 res.Body.Close()
31519 }
31520 return nil, gensupport.WrapError(&googleapi.Error{
31521 Code: res.StatusCode,
31522 Header: res.Header,
31523 })
31524 }
31525 if err != nil {
31526 return nil, err
31527 }
31528 defer googleapi.CloseBody(res)
31529 if err := googleapi.CheckResponse(res); err != nil {
31530 return nil, gensupport.WrapError(err)
31531 }
31532 ret := &GoogleCloudDialogflowCxV3beta1TestCase{
31533 ServerResponse: googleapi.ServerResponse{
31534 Header: res.Header,
31535 HTTPStatusCode: res.StatusCode,
31536 },
31537 }
31538 target := &ret
31539 if err := gensupport.DecodeResponse(target, res); err != nil {
31540 return nil, err
31541 }
31542 return ret, nil
31543 }
31544
31545 type ProjectsLocationsAgentsTestCasesImportCall struct {
31546 s *Service
31547 parent string
31548 googleclouddialogflowcxv3beta1importtestcasesrequest *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest
31549 urlParams_ gensupport.URLParams
31550 ctx_ context.Context
31551 header_ http.Header
31552 }
31553
31554
31555
31556
31557
31558
31559
31560
31561
31562
31563
31564 func (r *ProjectsLocationsAgentsTestCasesService) Import(parent string, googleclouddialogflowcxv3beta1importtestcasesrequest *GoogleCloudDialogflowCxV3beta1ImportTestCasesRequest) *ProjectsLocationsAgentsTestCasesImportCall {
31565 c := &ProjectsLocationsAgentsTestCasesImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31566 c.parent = parent
31567 c.googleclouddialogflowcxv3beta1importtestcasesrequest = googleclouddialogflowcxv3beta1importtestcasesrequest
31568 return c
31569 }
31570
31571
31572
31573
31574 func (c *ProjectsLocationsAgentsTestCasesImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesImportCall {
31575 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31576 return c
31577 }
31578
31579
31580 func (c *ProjectsLocationsAgentsTestCasesImportCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesImportCall {
31581 c.ctx_ = ctx
31582 return c
31583 }
31584
31585
31586
31587 func (c *ProjectsLocationsAgentsTestCasesImportCall) Header() http.Header {
31588 if c.header_ == nil {
31589 c.header_ = make(http.Header)
31590 }
31591 return c.header_
31592 }
31593
31594 func (c *ProjectsLocationsAgentsTestCasesImportCall) doRequest(alt string) (*http.Response, error) {
31595 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31596 var body io.Reader = nil
31597 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1importtestcasesrequest)
31598 if err != nil {
31599 return nil, err
31600 }
31601 c.urlParams_.Set("alt", alt)
31602 c.urlParams_.Set("prettyPrint", "false")
31603 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases:import")
31604 urls += "?" + c.urlParams_.Encode()
31605 req, err := http.NewRequest("POST", urls, body)
31606 if err != nil {
31607 return nil, err
31608 }
31609 req.Header = reqHeaders
31610 googleapi.Expand(req.URL, map[string]string{
31611 "parent": c.parent,
31612 })
31613 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31614 }
31615
31616
31617
31618
31619
31620
31621
31622 func (c *ProjectsLocationsAgentsTestCasesImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
31623 gensupport.SetOptions(c.urlParams_, opts...)
31624 res, err := c.doRequest("json")
31625 if res != nil && res.StatusCode == http.StatusNotModified {
31626 if res.Body != nil {
31627 res.Body.Close()
31628 }
31629 return nil, gensupport.WrapError(&googleapi.Error{
31630 Code: res.StatusCode,
31631 Header: res.Header,
31632 })
31633 }
31634 if err != nil {
31635 return nil, err
31636 }
31637 defer googleapi.CloseBody(res)
31638 if err := googleapi.CheckResponse(res); err != nil {
31639 return nil, gensupport.WrapError(err)
31640 }
31641 ret := &GoogleLongrunningOperation{
31642 ServerResponse: googleapi.ServerResponse{
31643 Header: res.Header,
31644 HTTPStatusCode: res.StatusCode,
31645 },
31646 }
31647 target := &ret
31648 if err := gensupport.DecodeResponse(target, res); err != nil {
31649 return nil, err
31650 }
31651 return ret, nil
31652 }
31653
31654 type ProjectsLocationsAgentsTestCasesListCall struct {
31655 s *Service
31656 parent string
31657 urlParams_ gensupport.URLParams
31658 ifNoneMatch_ string
31659 ctx_ context.Context
31660 header_ http.Header
31661 }
31662
31663
31664
31665
31666
31667 func (r *ProjectsLocationsAgentsTestCasesService) List(parent string) *ProjectsLocationsAgentsTestCasesListCall {
31668 c := &ProjectsLocationsAgentsTestCasesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31669 c.parent = parent
31670 return c
31671 }
31672
31673
31674
31675
31676
31677 func (c *ProjectsLocationsAgentsTestCasesListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesListCall {
31678 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
31679 return c
31680 }
31681
31682
31683
31684 func (c *ProjectsLocationsAgentsTestCasesListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesListCall {
31685 c.urlParams_.Set("pageToken", pageToken)
31686 return c
31687 }
31688
31689
31690
31691
31692
31693
31694
31695
31696
31697
31698
31699
31700
31701
31702
31703 func (c *ProjectsLocationsAgentsTestCasesListCall) View(view string) *ProjectsLocationsAgentsTestCasesListCall {
31704 c.urlParams_.Set("view", view)
31705 return c
31706 }
31707
31708
31709
31710
31711 func (c *ProjectsLocationsAgentsTestCasesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesListCall {
31712 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31713 return c
31714 }
31715
31716
31717
31718
31719 func (c *ProjectsLocationsAgentsTestCasesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesListCall {
31720 c.ifNoneMatch_ = entityTag
31721 return c
31722 }
31723
31724
31725 func (c *ProjectsLocationsAgentsTestCasesListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesListCall {
31726 c.ctx_ = ctx
31727 return c
31728 }
31729
31730
31731
31732 func (c *ProjectsLocationsAgentsTestCasesListCall) Header() http.Header {
31733 if c.header_ == nil {
31734 c.header_ = make(http.Header)
31735 }
31736 return c.header_
31737 }
31738
31739 func (c *ProjectsLocationsAgentsTestCasesListCall) doRequest(alt string) (*http.Response, error) {
31740 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
31741 if c.ifNoneMatch_ != "" {
31742 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
31743 }
31744 var body io.Reader = nil
31745 c.urlParams_.Set("alt", alt)
31746 c.urlParams_.Set("prettyPrint", "false")
31747 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/testCases")
31748 urls += "?" + c.urlParams_.Encode()
31749 req, err := http.NewRequest("GET", urls, body)
31750 if err != nil {
31751 return nil, err
31752 }
31753 req.Header = reqHeaders
31754 googleapi.Expand(req.URL, map[string]string{
31755 "parent": c.parent,
31756 })
31757 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31758 }
31759
31760
31761
31762
31763
31764
31765
31766 func (c *ProjectsLocationsAgentsTestCasesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTestCasesResponse, error) {
31767 gensupport.SetOptions(c.urlParams_, opts...)
31768 res, err := c.doRequest("json")
31769 if res != nil && res.StatusCode == http.StatusNotModified {
31770 if res.Body != nil {
31771 res.Body.Close()
31772 }
31773 return nil, gensupport.WrapError(&googleapi.Error{
31774 Code: res.StatusCode,
31775 Header: res.Header,
31776 })
31777 }
31778 if err != nil {
31779 return nil, err
31780 }
31781 defer googleapi.CloseBody(res)
31782 if err := googleapi.CheckResponse(res); err != nil {
31783 return nil, gensupport.WrapError(err)
31784 }
31785 ret := &GoogleCloudDialogflowCxV3beta1ListTestCasesResponse{
31786 ServerResponse: googleapi.ServerResponse{
31787 Header: res.Header,
31788 HTTPStatusCode: res.StatusCode,
31789 },
31790 }
31791 target := &ret
31792 if err := gensupport.DecodeResponse(target, res); err != nil {
31793 return nil, err
31794 }
31795 return ret, nil
31796 }
31797
31798
31799
31800
31801 func (c *ProjectsLocationsAgentsTestCasesListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTestCasesResponse) error) error {
31802 c.ctx_ = ctx
31803 defer c.PageToken(c.urlParams_.Get("pageToken"))
31804 for {
31805 x, err := c.Do()
31806 if err != nil {
31807 return err
31808 }
31809 if err := f(x); err != nil {
31810 return err
31811 }
31812 if x.NextPageToken == "" {
31813 return nil
31814 }
31815 c.PageToken(x.NextPageToken)
31816 }
31817 }
31818
31819 type ProjectsLocationsAgentsTestCasesPatchCall struct {
31820 s *Service
31821 nameid string
31822 googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase
31823 urlParams_ gensupport.URLParams
31824 ctx_ context.Context
31825 header_ http.Header
31826 }
31827
31828
31829
31830
31831
31832
31833 func (r *ProjectsLocationsAgentsTestCasesService) Patch(nameid string, googleclouddialogflowcxv3beta1testcase *GoogleCloudDialogflowCxV3beta1TestCase) *ProjectsLocationsAgentsTestCasesPatchCall {
31834 c := &ProjectsLocationsAgentsTestCasesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31835 c.nameid = nameid
31836 c.googleclouddialogflowcxv3beta1testcase = googleclouddialogflowcxv3beta1testcase
31837 return c
31838 }
31839
31840
31841
31842
31843 func (c *ProjectsLocationsAgentsTestCasesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTestCasesPatchCall {
31844 c.urlParams_.Set("updateMask", updateMask)
31845 return c
31846 }
31847
31848
31849
31850
31851 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesPatchCall {
31852 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31853 return c
31854 }
31855
31856
31857 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesPatchCall {
31858 c.ctx_ = ctx
31859 return c
31860 }
31861
31862
31863
31864 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Header() http.Header {
31865 if c.header_ == nil {
31866 c.header_ = make(http.Header)
31867 }
31868 return c.header_
31869 }
31870
31871 func (c *ProjectsLocationsAgentsTestCasesPatchCall) doRequest(alt string) (*http.Response, error) {
31872 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31873 var body io.Reader = nil
31874 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1testcase)
31875 if err != nil {
31876 return nil, err
31877 }
31878 c.urlParams_.Set("alt", alt)
31879 c.urlParams_.Set("prettyPrint", "false")
31880 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
31881 urls += "?" + c.urlParams_.Encode()
31882 req, err := http.NewRequest("PATCH", urls, body)
31883 if err != nil {
31884 return nil, err
31885 }
31886 req.Header = reqHeaders
31887 googleapi.Expand(req.URL, map[string]string{
31888 "name": c.nameid,
31889 })
31890 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31891 }
31892
31893
31894
31895
31896
31897
31898
31899 func (c *ProjectsLocationsAgentsTestCasesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCase, error) {
31900 gensupport.SetOptions(c.urlParams_, opts...)
31901 res, err := c.doRequest("json")
31902 if res != nil && res.StatusCode == http.StatusNotModified {
31903 if res.Body != nil {
31904 res.Body.Close()
31905 }
31906 return nil, gensupport.WrapError(&googleapi.Error{
31907 Code: res.StatusCode,
31908 Header: res.Header,
31909 })
31910 }
31911 if err != nil {
31912 return nil, err
31913 }
31914 defer googleapi.CloseBody(res)
31915 if err := googleapi.CheckResponse(res); err != nil {
31916 return nil, gensupport.WrapError(err)
31917 }
31918 ret := &GoogleCloudDialogflowCxV3beta1TestCase{
31919 ServerResponse: googleapi.ServerResponse{
31920 Header: res.Header,
31921 HTTPStatusCode: res.StatusCode,
31922 },
31923 }
31924 target := &ret
31925 if err := gensupport.DecodeResponse(target, res); err != nil {
31926 return nil, err
31927 }
31928 return ret, nil
31929 }
31930
31931 type ProjectsLocationsAgentsTestCasesRunCall struct {
31932 s *Service
31933 name string
31934 googleclouddialogflowcxv3beta1runtestcaserequest *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest
31935 urlParams_ gensupport.URLParams
31936 ctx_ context.Context
31937 header_ http.Header
31938 }
31939
31940
31941
31942
31943
31944
31945
31946
31947 func (r *ProjectsLocationsAgentsTestCasesService) Run(name string, googleclouddialogflowcxv3beta1runtestcaserequest *GoogleCloudDialogflowCxV3beta1RunTestCaseRequest) *ProjectsLocationsAgentsTestCasesRunCall {
31948 c := &ProjectsLocationsAgentsTestCasesRunCall{s: r.s, urlParams_: make(gensupport.URLParams)}
31949 c.name = name
31950 c.googleclouddialogflowcxv3beta1runtestcaserequest = googleclouddialogflowcxv3beta1runtestcaserequest
31951 return c
31952 }
31953
31954
31955
31956
31957 func (c *ProjectsLocationsAgentsTestCasesRunCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesRunCall {
31958 c.urlParams_.Set("fields", googleapi.CombineFields(s))
31959 return c
31960 }
31961
31962
31963 func (c *ProjectsLocationsAgentsTestCasesRunCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesRunCall {
31964 c.ctx_ = ctx
31965 return c
31966 }
31967
31968
31969
31970 func (c *ProjectsLocationsAgentsTestCasesRunCall) Header() http.Header {
31971 if c.header_ == nil {
31972 c.header_ = make(http.Header)
31973 }
31974 return c.header_
31975 }
31976
31977 func (c *ProjectsLocationsAgentsTestCasesRunCall) doRequest(alt string) (*http.Response, error) {
31978 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
31979 var body io.Reader = nil
31980 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1runtestcaserequest)
31981 if err != nil {
31982 return nil, err
31983 }
31984 c.urlParams_.Set("alt", alt)
31985 c.urlParams_.Set("prettyPrint", "false")
31986 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:run")
31987 urls += "?" + c.urlParams_.Encode()
31988 req, err := http.NewRequest("POST", urls, body)
31989 if err != nil {
31990 return nil, err
31991 }
31992 req.Header = reqHeaders
31993 googleapi.Expand(req.URL, map[string]string{
31994 "name": c.name,
31995 })
31996 return gensupport.SendRequest(c.ctx_, c.s.client, req)
31997 }
31998
31999
32000
32001
32002
32003
32004
32005 func (c *ProjectsLocationsAgentsTestCasesRunCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
32006 gensupport.SetOptions(c.urlParams_, opts...)
32007 res, err := c.doRequest("json")
32008 if res != nil && res.StatusCode == http.StatusNotModified {
32009 if res.Body != nil {
32010 res.Body.Close()
32011 }
32012 return nil, gensupport.WrapError(&googleapi.Error{
32013 Code: res.StatusCode,
32014 Header: res.Header,
32015 })
32016 }
32017 if err != nil {
32018 return nil, err
32019 }
32020 defer googleapi.CloseBody(res)
32021 if err := googleapi.CheckResponse(res); err != nil {
32022 return nil, gensupport.WrapError(err)
32023 }
32024 ret := &GoogleLongrunningOperation{
32025 ServerResponse: googleapi.ServerResponse{
32026 Header: res.Header,
32027 HTTPStatusCode: res.StatusCode,
32028 },
32029 }
32030 target := &ret
32031 if err := gensupport.DecodeResponse(target, res); err != nil {
32032 return nil, err
32033 }
32034 return ret, nil
32035 }
32036
32037 type ProjectsLocationsAgentsTestCasesResultsGetCall struct {
32038 s *Service
32039 name string
32040 urlParams_ gensupport.URLParams
32041 ifNoneMatch_ string
32042 ctx_ context.Context
32043 header_ http.Header
32044 }
32045
32046
32047
32048
32049
32050 func (r *ProjectsLocationsAgentsTestCasesResultsService) Get(name string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
32051 c := &ProjectsLocationsAgentsTestCasesResultsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32052 c.name = name
32053 return c
32054 }
32055
32056
32057
32058
32059 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsGetCall {
32060 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32061 return c
32062 }
32063
32064
32065
32066
32067 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsGetCall {
32068 c.ifNoneMatch_ = entityTag
32069 return c
32070 }
32071
32072
32073 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsGetCall {
32074 c.ctx_ = ctx
32075 return c
32076 }
32077
32078
32079
32080 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Header() http.Header {
32081 if c.header_ == nil {
32082 c.header_ = make(http.Header)
32083 }
32084 return c.header_
32085 }
32086
32087 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) doRequest(alt string) (*http.Response, error) {
32088 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32089 if c.ifNoneMatch_ != "" {
32090 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32091 }
32092 var body io.Reader = nil
32093 c.urlParams_.Set("alt", alt)
32094 c.urlParams_.Set("prettyPrint", "false")
32095 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
32096 urls += "?" + c.urlParams_.Encode()
32097 req, err := http.NewRequest("GET", urls, body)
32098 if err != nil {
32099 return nil, err
32100 }
32101 req.Header = reqHeaders
32102 googleapi.Expand(req.URL, map[string]string{
32103 "name": c.name,
32104 })
32105 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32106 }
32107
32108
32109
32110
32111
32112
32113
32114 func (c *ProjectsLocationsAgentsTestCasesResultsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TestCaseResult, error) {
32115 gensupport.SetOptions(c.urlParams_, opts...)
32116 res, err := c.doRequest("json")
32117 if res != nil && res.StatusCode == http.StatusNotModified {
32118 if res.Body != nil {
32119 res.Body.Close()
32120 }
32121 return nil, gensupport.WrapError(&googleapi.Error{
32122 Code: res.StatusCode,
32123 Header: res.Header,
32124 })
32125 }
32126 if err != nil {
32127 return nil, err
32128 }
32129 defer googleapi.CloseBody(res)
32130 if err := googleapi.CheckResponse(res); err != nil {
32131 return nil, gensupport.WrapError(err)
32132 }
32133 ret := &GoogleCloudDialogflowCxV3beta1TestCaseResult{
32134 ServerResponse: googleapi.ServerResponse{
32135 Header: res.Header,
32136 HTTPStatusCode: res.StatusCode,
32137 },
32138 }
32139 target := &ret
32140 if err := gensupport.DecodeResponse(target, res); err != nil {
32141 return nil, err
32142 }
32143 return ret, nil
32144 }
32145
32146 type ProjectsLocationsAgentsTestCasesResultsListCall struct {
32147 s *Service
32148 parent string
32149 urlParams_ gensupport.URLParams
32150 ifNoneMatch_ string
32151 ctx_ context.Context
32152 header_ http.Header
32153 }
32154
32155
32156
32157
32158
32159
32160
32161 func (r *ProjectsLocationsAgentsTestCasesResultsService) List(parent string) *ProjectsLocationsAgentsTestCasesResultsListCall {
32162 c := &ProjectsLocationsAgentsTestCasesResultsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32163 c.parent = parent
32164 return c
32165 }
32166
32167
32168
32169
32170
32171
32172
32173
32174
32175
32176
32177
32178
32179 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Filter(filter string) *ProjectsLocationsAgentsTestCasesResultsListCall {
32180 c.urlParams_.Set("filter", filter)
32181 return c
32182 }
32183
32184
32185
32186 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTestCasesResultsListCall {
32187 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32188 return c
32189 }
32190
32191
32192
32193 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTestCasesResultsListCall {
32194 c.urlParams_.Set("pageToken", pageToken)
32195 return c
32196 }
32197
32198
32199
32200
32201 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTestCasesResultsListCall {
32202 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32203 return c
32204 }
32205
32206
32207
32208
32209 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTestCasesResultsListCall {
32210 c.ifNoneMatch_ = entityTag
32211 return c
32212 }
32213
32214
32215 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTestCasesResultsListCall {
32216 c.ctx_ = ctx
32217 return c
32218 }
32219
32220
32221
32222 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Header() http.Header {
32223 if c.header_ == nil {
32224 c.header_ = make(http.Header)
32225 }
32226 return c.header_
32227 }
32228
32229 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) doRequest(alt string) (*http.Response, error) {
32230 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32231 if c.ifNoneMatch_ != "" {
32232 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32233 }
32234 var body io.Reader = nil
32235 c.urlParams_.Set("alt", alt)
32236 c.urlParams_.Set("prettyPrint", "false")
32237 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/results")
32238 urls += "?" + c.urlParams_.Encode()
32239 req, err := http.NewRequest("GET", urls, body)
32240 if err != nil {
32241 return nil, err
32242 }
32243 req.Header = reqHeaders
32244 googleapi.Expand(req.URL, map[string]string{
32245 "parent": c.parent,
32246 })
32247 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32248 }
32249
32250
32251
32252
32253
32254
32255
32256 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse, error) {
32257 gensupport.SetOptions(c.urlParams_, opts...)
32258 res, err := c.doRequest("json")
32259 if res != nil && res.StatusCode == http.StatusNotModified {
32260 if res.Body != nil {
32261 res.Body.Close()
32262 }
32263 return nil, gensupport.WrapError(&googleapi.Error{
32264 Code: res.StatusCode,
32265 Header: res.Header,
32266 })
32267 }
32268 if err != nil {
32269 return nil, err
32270 }
32271 defer googleapi.CloseBody(res)
32272 if err := googleapi.CheckResponse(res); err != nil {
32273 return nil, gensupport.WrapError(err)
32274 }
32275 ret := &GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse{
32276 ServerResponse: googleapi.ServerResponse{
32277 Header: res.Header,
32278 HTTPStatusCode: res.StatusCode,
32279 },
32280 }
32281 target := &ret
32282 if err := gensupport.DecodeResponse(target, res); err != nil {
32283 return nil, err
32284 }
32285 return ret, nil
32286 }
32287
32288
32289
32290
32291 func (c *ProjectsLocationsAgentsTestCasesResultsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTestCaseResultsResponse) error) error {
32292 c.ctx_ = ctx
32293 defer c.PageToken(c.urlParams_.Get("pageToken"))
32294 for {
32295 x, err := c.Do()
32296 if err != nil {
32297 return err
32298 }
32299 if err := f(x); err != nil {
32300 return err
32301 }
32302 if x.NextPageToken == "" {
32303 return nil
32304 }
32305 c.PageToken(x.NextPageToken)
32306 }
32307 }
32308
32309 type ProjectsLocationsAgentsTransitionRouteGroupsCreateCall struct {
32310 s *Service
32311 parent string
32312 googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
32313 urlParams_ gensupport.URLParams
32314 ctx_ context.Context
32315 header_ http.Header
32316 }
32317
32318
32319
32320
32321
32322
32323
32324
32325
32326 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Create(parent string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
32327 c := &ProjectsLocationsAgentsTransitionRouteGroupsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32328 c.parent = parent
32329 c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
32330 return c
32331 }
32332
32333
32334
32335
32336
32337
32338
32339
32340
32341 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
32342 c.urlParams_.Set("languageCode", languageCode)
32343 return c
32344 }
32345
32346
32347
32348
32349 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
32350 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32351 return c
32352 }
32353
32354
32355 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall {
32356 c.ctx_ = ctx
32357 return c
32358 }
32359
32360
32361
32362 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Header() http.Header {
32363 if c.header_ == nil {
32364 c.header_ = make(http.Header)
32365 }
32366 return c.header_
32367 }
32368
32369 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) doRequest(alt string) (*http.Response, error) {
32370 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32371 var body io.Reader = nil
32372 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
32373 if err != nil {
32374 return nil, err
32375 }
32376 c.urlParams_.Set("alt", alt)
32377 c.urlParams_.Set("prettyPrint", "false")
32378 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
32379 urls += "?" + c.urlParams_.Encode()
32380 req, err := http.NewRequest("POST", urls, body)
32381 if err != nil {
32382 return nil, err
32383 }
32384 req.Header = reqHeaders
32385 googleapi.Expand(req.URL, map[string]string{
32386 "parent": c.parent,
32387 })
32388 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32389 }
32390
32391
32392
32393
32394
32395
32396
32397 func (c *ProjectsLocationsAgentsTransitionRouteGroupsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
32398 gensupport.SetOptions(c.urlParams_, opts...)
32399 res, err := c.doRequest("json")
32400 if res != nil && res.StatusCode == http.StatusNotModified {
32401 if res.Body != nil {
32402 res.Body.Close()
32403 }
32404 return nil, gensupport.WrapError(&googleapi.Error{
32405 Code: res.StatusCode,
32406 Header: res.Header,
32407 })
32408 }
32409 if err != nil {
32410 return nil, err
32411 }
32412 defer googleapi.CloseBody(res)
32413 if err := googleapi.CheckResponse(res); err != nil {
32414 return nil, gensupport.WrapError(err)
32415 }
32416 ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
32417 ServerResponse: googleapi.ServerResponse{
32418 Header: res.Header,
32419 HTTPStatusCode: res.StatusCode,
32420 },
32421 }
32422 target := &ret
32423 if err := gensupport.DecodeResponse(target, res); err != nil {
32424 return nil, err
32425 }
32426 return ret, nil
32427 }
32428
32429 type ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall struct {
32430 s *Service
32431 name string
32432 urlParams_ gensupport.URLParams
32433 ctx_ context.Context
32434 header_ http.Header
32435 }
32436
32437
32438
32439
32440
32441
32442
32443
32444 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Delete(name string) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
32445 c := &ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32446 c.name = name
32447 return c
32448 }
32449
32450
32451
32452
32453
32454
32455
32456 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Force(force bool) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
32457 c.urlParams_.Set("force", fmt.Sprint(force))
32458 return c
32459 }
32460
32461
32462
32463
32464 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
32465 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32466 return c
32467 }
32468
32469
32470 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall {
32471 c.ctx_ = ctx
32472 return c
32473 }
32474
32475
32476
32477 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Header() http.Header {
32478 if c.header_ == nil {
32479 c.header_ = make(http.Header)
32480 }
32481 return c.header_
32482 }
32483
32484 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) doRequest(alt string) (*http.Response, error) {
32485 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32486 var body io.Reader = nil
32487 c.urlParams_.Set("alt", alt)
32488 c.urlParams_.Set("prettyPrint", "false")
32489 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
32490 urls += "?" + c.urlParams_.Encode()
32491 req, err := http.NewRequest("DELETE", urls, body)
32492 if err != nil {
32493 return nil, err
32494 }
32495 req.Header = reqHeaders
32496 googleapi.Expand(req.URL, map[string]string{
32497 "name": c.name,
32498 })
32499 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32500 }
32501
32502
32503
32504
32505
32506
32507
32508 func (c *ProjectsLocationsAgentsTransitionRouteGroupsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
32509 gensupport.SetOptions(c.urlParams_, opts...)
32510 res, err := c.doRequest("json")
32511 if res != nil && res.StatusCode == http.StatusNotModified {
32512 if res.Body != nil {
32513 res.Body.Close()
32514 }
32515 return nil, gensupport.WrapError(&googleapi.Error{
32516 Code: res.StatusCode,
32517 Header: res.Header,
32518 })
32519 }
32520 if err != nil {
32521 return nil, err
32522 }
32523 defer googleapi.CloseBody(res)
32524 if err := googleapi.CheckResponse(res); err != nil {
32525 return nil, gensupport.WrapError(err)
32526 }
32527 ret := &GoogleProtobufEmpty{
32528 ServerResponse: googleapi.ServerResponse{
32529 Header: res.Header,
32530 HTTPStatusCode: res.StatusCode,
32531 },
32532 }
32533 target := &ret
32534 if err := gensupport.DecodeResponse(target, res); err != nil {
32535 return nil, err
32536 }
32537 return ret, nil
32538 }
32539
32540 type ProjectsLocationsAgentsTransitionRouteGroupsGetCall struct {
32541 s *Service
32542 name string
32543 urlParams_ gensupport.URLParams
32544 ifNoneMatch_ string
32545 ctx_ context.Context
32546 header_ http.Header
32547 }
32548
32549
32550
32551
32552
32553
32554 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Get(name string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
32555 c := &ProjectsLocationsAgentsTransitionRouteGroupsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32556 c.name = name
32557 return c
32558 }
32559
32560
32561
32562
32563
32564
32565
32566
32567
32568
32569 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
32570 c.urlParams_.Set("languageCode", languageCode)
32571 return c
32572 }
32573
32574
32575
32576
32577 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
32578 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32579 return c
32580 }
32581
32582
32583
32584
32585 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
32586 c.ifNoneMatch_ = entityTag
32587 return c
32588 }
32589
32590
32591 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsGetCall {
32592 c.ctx_ = ctx
32593 return c
32594 }
32595
32596
32597
32598 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Header() http.Header {
32599 if c.header_ == nil {
32600 c.header_ = make(http.Header)
32601 }
32602 return c.header_
32603 }
32604
32605 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) doRequest(alt string) (*http.Response, error) {
32606 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32607 if c.ifNoneMatch_ != "" {
32608 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32609 }
32610 var body io.Reader = nil
32611 c.urlParams_.Set("alt", alt)
32612 c.urlParams_.Set("prettyPrint", "false")
32613 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
32614 urls += "?" + c.urlParams_.Encode()
32615 req, err := http.NewRequest("GET", urls, body)
32616 if err != nil {
32617 return nil, err
32618 }
32619 req.Header = reqHeaders
32620 googleapi.Expand(req.URL, map[string]string{
32621 "name": c.name,
32622 })
32623 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32624 }
32625
32626
32627
32628
32629
32630
32631
32632 func (c *ProjectsLocationsAgentsTransitionRouteGroupsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
32633 gensupport.SetOptions(c.urlParams_, opts...)
32634 res, err := c.doRequest("json")
32635 if res != nil && res.StatusCode == http.StatusNotModified {
32636 if res.Body != nil {
32637 res.Body.Close()
32638 }
32639 return nil, gensupport.WrapError(&googleapi.Error{
32640 Code: res.StatusCode,
32641 Header: res.Header,
32642 })
32643 }
32644 if err != nil {
32645 return nil, err
32646 }
32647 defer googleapi.CloseBody(res)
32648 if err := googleapi.CheckResponse(res); err != nil {
32649 return nil, gensupport.WrapError(err)
32650 }
32651 ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
32652 ServerResponse: googleapi.ServerResponse{
32653 Header: res.Header,
32654 HTTPStatusCode: res.StatusCode,
32655 },
32656 }
32657 target := &ret
32658 if err := gensupport.DecodeResponse(target, res); err != nil {
32659 return nil, err
32660 }
32661 return ret, nil
32662 }
32663
32664 type ProjectsLocationsAgentsTransitionRouteGroupsListCall struct {
32665 s *Service
32666 parent string
32667 urlParams_ gensupport.URLParams
32668 ifNoneMatch_ string
32669 ctx_ context.Context
32670 header_ http.Header
32671 }
32672
32673
32674
32675
32676
32677 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) List(parent string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32678 c := &ProjectsLocationsAgentsTransitionRouteGroupsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32679 c.parent = parent
32680 return c
32681 }
32682
32683
32684
32685
32686
32687
32688
32689
32690
32691
32692 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32693 c.urlParams_.Set("languageCode", languageCode)
32694 return c
32695 }
32696
32697
32698
32699 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32700 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
32701 return c
32702 }
32703
32704
32705
32706 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) PageToken(pageToken string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32707 c.urlParams_.Set("pageToken", pageToken)
32708 return c
32709 }
32710
32711
32712
32713
32714 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32715 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32716 return c
32717 }
32718
32719
32720
32721
32722 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32723 c.ifNoneMatch_ = entityTag
32724 return c
32725 }
32726
32727
32728 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsListCall {
32729 c.ctx_ = ctx
32730 return c
32731 }
32732
32733
32734
32735 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Header() http.Header {
32736 if c.header_ == nil {
32737 c.header_ = make(http.Header)
32738 }
32739 return c.header_
32740 }
32741
32742 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) doRequest(alt string) (*http.Response, error) {
32743 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
32744 if c.ifNoneMatch_ != "" {
32745 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
32746 }
32747 var body io.Reader = nil
32748 c.urlParams_.Set("alt", alt)
32749 c.urlParams_.Set("prettyPrint", "false")
32750 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/transitionRouteGroups")
32751 urls += "?" + c.urlParams_.Encode()
32752 req, err := http.NewRequest("GET", urls, body)
32753 if err != nil {
32754 return nil, err
32755 }
32756 req.Header = reqHeaders
32757 googleapi.Expand(req.URL, map[string]string{
32758 "parent": c.parent,
32759 })
32760 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32761 }
32762
32763
32764
32765
32766
32767
32768
32769 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse, error) {
32770 gensupport.SetOptions(c.urlParams_, opts...)
32771 res, err := c.doRequest("json")
32772 if res != nil && res.StatusCode == http.StatusNotModified {
32773 if res.Body != nil {
32774 res.Body.Close()
32775 }
32776 return nil, gensupport.WrapError(&googleapi.Error{
32777 Code: res.StatusCode,
32778 Header: res.Header,
32779 })
32780 }
32781 if err != nil {
32782 return nil, err
32783 }
32784 defer googleapi.CloseBody(res)
32785 if err := googleapi.CheckResponse(res); err != nil {
32786 return nil, gensupport.WrapError(err)
32787 }
32788 ret := &GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse{
32789 ServerResponse: googleapi.ServerResponse{
32790 Header: res.Header,
32791 HTTPStatusCode: res.StatusCode,
32792 },
32793 }
32794 target := &ret
32795 if err := gensupport.DecodeResponse(target, res); err != nil {
32796 return nil, err
32797 }
32798 return ret, nil
32799 }
32800
32801
32802
32803
32804 func (c *ProjectsLocationsAgentsTransitionRouteGroupsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListTransitionRouteGroupsResponse) error) error {
32805 c.ctx_ = ctx
32806 defer c.PageToken(c.urlParams_.Get("pageToken"))
32807 for {
32808 x, err := c.Do()
32809 if err != nil {
32810 return err
32811 }
32812 if err := f(x); err != nil {
32813 return err
32814 }
32815 if x.NextPageToken == "" {
32816 return nil
32817 }
32818 c.PageToken(x.NextPageToken)
32819 }
32820 }
32821
32822 type ProjectsLocationsAgentsTransitionRouteGroupsPatchCall struct {
32823 s *Service
32824 nameid string
32825 googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup
32826 urlParams_ gensupport.URLParams
32827 ctx_ context.Context
32828 header_ http.Header
32829 }
32830
32831
32832
32833
32834
32835
32836
32837
32838
32839
32840
32841 func (r *ProjectsLocationsAgentsTransitionRouteGroupsService) Patch(nameid string, googleclouddialogflowcxv3beta1transitionroutegroup *GoogleCloudDialogflowCxV3beta1TransitionRouteGroup) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32842 c := &ProjectsLocationsAgentsTransitionRouteGroupsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32843 c.nameid = nameid
32844 c.googleclouddialogflowcxv3beta1transitionroutegroup = googleclouddialogflowcxv3beta1transitionroutegroup
32845 return c
32846 }
32847
32848
32849
32850
32851
32852
32853
32854
32855
32856 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) LanguageCode(languageCode string) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32857 c.urlParams_.Set("languageCode", languageCode)
32858 return c
32859 }
32860
32861
32862
32863 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32864 c.urlParams_.Set("updateMask", updateMask)
32865 return c
32866 }
32867
32868
32869
32870
32871 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32872 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32873 return c
32874 }
32875
32876
32877 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall {
32878 c.ctx_ = ctx
32879 return c
32880 }
32881
32882
32883
32884 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Header() http.Header {
32885 if c.header_ == nil {
32886 c.header_ = make(http.Header)
32887 }
32888 return c.header_
32889 }
32890
32891 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) doRequest(alt string) (*http.Response, error) {
32892 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32893 var body io.Reader = nil
32894 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1transitionroutegroup)
32895 if err != nil {
32896 return nil, err
32897 }
32898 c.urlParams_.Set("alt", alt)
32899 c.urlParams_.Set("prettyPrint", "false")
32900 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
32901 urls += "?" + c.urlParams_.Encode()
32902 req, err := http.NewRequest("PATCH", urls, body)
32903 if err != nil {
32904 return nil, err
32905 }
32906 req.Header = reqHeaders
32907 googleapi.Expand(req.URL, map[string]string{
32908 "name": c.nameid,
32909 })
32910 return gensupport.SendRequest(c.ctx_, c.s.client, req)
32911 }
32912
32913
32914
32915
32916
32917
32918
32919 func (c *ProjectsLocationsAgentsTransitionRouteGroupsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1TransitionRouteGroup, error) {
32920 gensupport.SetOptions(c.urlParams_, opts...)
32921 res, err := c.doRequest("json")
32922 if res != nil && res.StatusCode == http.StatusNotModified {
32923 if res.Body != nil {
32924 res.Body.Close()
32925 }
32926 return nil, gensupport.WrapError(&googleapi.Error{
32927 Code: res.StatusCode,
32928 Header: res.Header,
32929 })
32930 }
32931 if err != nil {
32932 return nil, err
32933 }
32934 defer googleapi.CloseBody(res)
32935 if err := googleapi.CheckResponse(res); err != nil {
32936 return nil, gensupport.WrapError(err)
32937 }
32938 ret := &GoogleCloudDialogflowCxV3beta1TransitionRouteGroup{
32939 ServerResponse: googleapi.ServerResponse{
32940 Header: res.Header,
32941 HTTPStatusCode: res.StatusCode,
32942 },
32943 }
32944 target := &ret
32945 if err := gensupport.DecodeResponse(target, res); err != nil {
32946 return nil, err
32947 }
32948 return ret, nil
32949 }
32950
32951 type ProjectsLocationsAgentsWebhooksCreateCall struct {
32952 s *Service
32953 parent string
32954 googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook
32955 urlParams_ gensupport.URLParams
32956 ctx_ context.Context
32957 header_ http.Header
32958 }
32959
32960
32961
32962
32963
32964 func (r *ProjectsLocationsAgentsWebhooksService) Create(parent string, googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook) *ProjectsLocationsAgentsWebhooksCreateCall {
32965 c := &ProjectsLocationsAgentsWebhooksCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
32966 c.parent = parent
32967 c.googleclouddialogflowcxv3beta1webhook = googleclouddialogflowcxv3beta1webhook
32968 return c
32969 }
32970
32971
32972
32973
32974 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksCreateCall {
32975 c.urlParams_.Set("fields", googleapi.CombineFields(s))
32976 return c
32977 }
32978
32979
32980 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksCreateCall {
32981 c.ctx_ = ctx
32982 return c
32983 }
32984
32985
32986
32987 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Header() http.Header {
32988 if c.header_ == nil {
32989 c.header_ = make(http.Header)
32990 }
32991 return c.header_
32992 }
32993
32994 func (c *ProjectsLocationsAgentsWebhooksCreateCall) doRequest(alt string) (*http.Response, error) {
32995 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
32996 var body io.Reader = nil
32997 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1webhook)
32998 if err != nil {
32999 return nil, err
33000 }
33001 c.urlParams_.Set("alt", alt)
33002 c.urlParams_.Set("prettyPrint", "false")
33003 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/webhooks")
33004 urls += "?" + c.urlParams_.Encode()
33005 req, err := http.NewRequest("POST", urls, body)
33006 if err != nil {
33007 return nil, err
33008 }
33009 req.Header = reqHeaders
33010 googleapi.Expand(req.URL, map[string]string{
33011 "parent": c.parent,
33012 })
33013 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33014 }
33015
33016
33017
33018
33019
33020
33021
33022 func (c *ProjectsLocationsAgentsWebhooksCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
33023 gensupport.SetOptions(c.urlParams_, opts...)
33024 res, err := c.doRequest("json")
33025 if res != nil && res.StatusCode == http.StatusNotModified {
33026 if res.Body != nil {
33027 res.Body.Close()
33028 }
33029 return nil, gensupport.WrapError(&googleapi.Error{
33030 Code: res.StatusCode,
33031 Header: res.Header,
33032 })
33033 }
33034 if err != nil {
33035 return nil, err
33036 }
33037 defer googleapi.CloseBody(res)
33038 if err := googleapi.CheckResponse(res); err != nil {
33039 return nil, gensupport.WrapError(err)
33040 }
33041 ret := &GoogleCloudDialogflowCxV3beta1Webhook{
33042 ServerResponse: googleapi.ServerResponse{
33043 Header: res.Header,
33044 HTTPStatusCode: res.StatusCode,
33045 },
33046 }
33047 target := &ret
33048 if err := gensupport.DecodeResponse(target, res); err != nil {
33049 return nil, err
33050 }
33051 return ret, nil
33052 }
33053
33054 type ProjectsLocationsAgentsWebhooksDeleteCall struct {
33055 s *Service
33056 name string
33057 urlParams_ gensupport.URLParams
33058 ctx_ context.Context
33059 header_ http.Header
33060 }
33061
33062
33063
33064
33065
33066 func (r *ProjectsLocationsAgentsWebhooksService) Delete(name string) *ProjectsLocationsAgentsWebhooksDeleteCall {
33067 c := &ProjectsLocationsAgentsWebhooksDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33068 c.name = name
33069 return c
33070 }
33071
33072
33073
33074
33075
33076
33077
33078
33079 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Force(force bool) *ProjectsLocationsAgentsWebhooksDeleteCall {
33080 c.urlParams_.Set("force", fmt.Sprint(force))
33081 return c
33082 }
33083
33084
33085
33086
33087 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksDeleteCall {
33088 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33089 return c
33090 }
33091
33092
33093 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksDeleteCall {
33094 c.ctx_ = ctx
33095 return c
33096 }
33097
33098
33099
33100 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Header() http.Header {
33101 if c.header_ == nil {
33102 c.header_ = make(http.Header)
33103 }
33104 return c.header_
33105 }
33106
33107 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) doRequest(alt string) (*http.Response, error) {
33108 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33109 var body io.Reader = nil
33110 c.urlParams_.Set("alt", alt)
33111 c.urlParams_.Set("prettyPrint", "false")
33112 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
33113 urls += "?" + c.urlParams_.Encode()
33114 req, err := http.NewRequest("DELETE", urls, body)
33115 if err != nil {
33116 return nil, err
33117 }
33118 req.Header = reqHeaders
33119 googleapi.Expand(req.URL, map[string]string{
33120 "name": c.name,
33121 })
33122 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33123 }
33124
33125
33126
33127
33128
33129
33130
33131 func (c *ProjectsLocationsAgentsWebhooksDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
33132 gensupport.SetOptions(c.urlParams_, opts...)
33133 res, err := c.doRequest("json")
33134 if res != nil && res.StatusCode == http.StatusNotModified {
33135 if res.Body != nil {
33136 res.Body.Close()
33137 }
33138 return nil, gensupport.WrapError(&googleapi.Error{
33139 Code: res.StatusCode,
33140 Header: res.Header,
33141 })
33142 }
33143 if err != nil {
33144 return nil, err
33145 }
33146 defer googleapi.CloseBody(res)
33147 if err := googleapi.CheckResponse(res); err != nil {
33148 return nil, gensupport.WrapError(err)
33149 }
33150 ret := &GoogleProtobufEmpty{
33151 ServerResponse: googleapi.ServerResponse{
33152 Header: res.Header,
33153 HTTPStatusCode: res.StatusCode,
33154 },
33155 }
33156 target := &ret
33157 if err := gensupport.DecodeResponse(target, res); err != nil {
33158 return nil, err
33159 }
33160 return ret, nil
33161 }
33162
33163 type ProjectsLocationsAgentsWebhooksGetCall struct {
33164 s *Service
33165 name string
33166 urlParams_ gensupport.URLParams
33167 ifNoneMatch_ string
33168 ctx_ context.Context
33169 header_ http.Header
33170 }
33171
33172
33173
33174
33175
33176 func (r *ProjectsLocationsAgentsWebhooksService) Get(name string) *ProjectsLocationsAgentsWebhooksGetCall {
33177 c := &ProjectsLocationsAgentsWebhooksGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33178 c.name = name
33179 return c
33180 }
33181
33182
33183
33184
33185 func (c *ProjectsLocationsAgentsWebhooksGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksGetCall {
33186 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33187 return c
33188 }
33189
33190
33191
33192
33193 func (c *ProjectsLocationsAgentsWebhooksGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksGetCall {
33194 c.ifNoneMatch_ = entityTag
33195 return c
33196 }
33197
33198
33199 func (c *ProjectsLocationsAgentsWebhooksGetCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksGetCall {
33200 c.ctx_ = ctx
33201 return c
33202 }
33203
33204
33205
33206 func (c *ProjectsLocationsAgentsWebhooksGetCall) Header() http.Header {
33207 if c.header_ == nil {
33208 c.header_ = make(http.Header)
33209 }
33210 return c.header_
33211 }
33212
33213 func (c *ProjectsLocationsAgentsWebhooksGetCall) doRequest(alt string) (*http.Response, error) {
33214 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33215 if c.ifNoneMatch_ != "" {
33216 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33217 }
33218 var body io.Reader = nil
33219 c.urlParams_.Set("alt", alt)
33220 c.urlParams_.Set("prettyPrint", "false")
33221 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
33222 urls += "?" + c.urlParams_.Encode()
33223 req, err := http.NewRequest("GET", urls, body)
33224 if err != nil {
33225 return nil, err
33226 }
33227 req.Header = reqHeaders
33228 googleapi.Expand(req.URL, map[string]string{
33229 "name": c.name,
33230 })
33231 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33232 }
33233
33234
33235
33236
33237
33238
33239
33240 func (c *ProjectsLocationsAgentsWebhooksGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
33241 gensupport.SetOptions(c.urlParams_, opts...)
33242 res, err := c.doRequest("json")
33243 if res != nil && res.StatusCode == http.StatusNotModified {
33244 if res.Body != nil {
33245 res.Body.Close()
33246 }
33247 return nil, gensupport.WrapError(&googleapi.Error{
33248 Code: res.StatusCode,
33249 Header: res.Header,
33250 })
33251 }
33252 if err != nil {
33253 return nil, err
33254 }
33255 defer googleapi.CloseBody(res)
33256 if err := googleapi.CheckResponse(res); err != nil {
33257 return nil, gensupport.WrapError(err)
33258 }
33259 ret := &GoogleCloudDialogflowCxV3beta1Webhook{
33260 ServerResponse: googleapi.ServerResponse{
33261 Header: res.Header,
33262 HTTPStatusCode: res.StatusCode,
33263 },
33264 }
33265 target := &ret
33266 if err := gensupport.DecodeResponse(target, res); err != nil {
33267 return nil, err
33268 }
33269 return ret, nil
33270 }
33271
33272 type ProjectsLocationsAgentsWebhooksListCall struct {
33273 s *Service
33274 parent string
33275 urlParams_ gensupport.URLParams
33276 ifNoneMatch_ string
33277 ctx_ context.Context
33278 header_ http.Header
33279 }
33280
33281
33282
33283
33284
33285 func (r *ProjectsLocationsAgentsWebhooksService) List(parent string) *ProjectsLocationsAgentsWebhooksListCall {
33286 c := &ProjectsLocationsAgentsWebhooksListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33287 c.parent = parent
33288 return c
33289 }
33290
33291
33292
33293 func (c *ProjectsLocationsAgentsWebhooksListCall) PageSize(pageSize int64) *ProjectsLocationsAgentsWebhooksListCall {
33294 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33295 return c
33296 }
33297
33298
33299
33300 func (c *ProjectsLocationsAgentsWebhooksListCall) PageToken(pageToken string) *ProjectsLocationsAgentsWebhooksListCall {
33301 c.urlParams_.Set("pageToken", pageToken)
33302 return c
33303 }
33304
33305
33306
33307
33308 func (c *ProjectsLocationsAgentsWebhooksListCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksListCall {
33309 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33310 return c
33311 }
33312
33313
33314
33315
33316 func (c *ProjectsLocationsAgentsWebhooksListCall) IfNoneMatch(entityTag string) *ProjectsLocationsAgentsWebhooksListCall {
33317 c.ifNoneMatch_ = entityTag
33318 return c
33319 }
33320
33321
33322 func (c *ProjectsLocationsAgentsWebhooksListCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksListCall {
33323 c.ctx_ = ctx
33324 return c
33325 }
33326
33327
33328
33329 func (c *ProjectsLocationsAgentsWebhooksListCall) Header() http.Header {
33330 if c.header_ == nil {
33331 c.header_ = make(http.Header)
33332 }
33333 return c.header_
33334 }
33335
33336 func (c *ProjectsLocationsAgentsWebhooksListCall) doRequest(alt string) (*http.Response, error) {
33337 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33338 if c.ifNoneMatch_ != "" {
33339 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33340 }
33341 var body io.Reader = nil
33342 c.urlParams_.Set("alt", alt)
33343 c.urlParams_.Set("prettyPrint", "false")
33344 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/webhooks")
33345 urls += "?" + c.urlParams_.Encode()
33346 req, err := http.NewRequest("GET", urls, body)
33347 if err != nil {
33348 return nil, err
33349 }
33350 req.Header = reqHeaders
33351 googleapi.Expand(req.URL, map[string]string{
33352 "parent": c.parent,
33353 })
33354 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33355 }
33356
33357
33358
33359
33360
33361
33362
33363 func (c *ProjectsLocationsAgentsWebhooksListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListWebhooksResponse, error) {
33364 gensupport.SetOptions(c.urlParams_, opts...)
33365 res, err := c.doRequest("json")
33366 if res != nil && res.StatusCode == http.StatusNotModified {
33367 if res.Body != nil {
33368 res.Body.Close()
33369 }
33370 return nil, gensupport.WrapError(&googleapi.Error{
33371 Code: res.StatusCode,
33372 Header: res.Header,
33373 })
33374 }
33375 if err != nil {
33376 return nil, err
33377 }
33378 defer googleapi.CloseBody(res)
33379 if err := googleapi.CheckResponse(res); err != nil {
33380 return nil, gensupport.WrapError(err)
33381 }
33382 ret := &GoogleCloudDialogflowCxV3beta1ListWebhooksResponse{
33383 ServerResponse: googleapi.ServerResponse{
33384 Header: res.Header,
33385 HTTPStatusCode: res.StatusCode,
33386 },
33387 }
33388 target := &ret
33389 if err := gensupport.DecodeResponse(target, res); err != nil {
33390 return nil, err
33391 }
33392 return ret, nil
33393 }
33394
33395
33396
33397
33398 func (c *ProjectsLocationsAgentsWebhooksListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListWebhooksResponse) error) error {
33399 c.ctx_ = ctx
33400 defer c.PageToken(c.urlParams_.Get("pageToken"))
33401 for {
33402 x, err := c.Do()
33403 if err != nil {
33404 return err
33405 }
33406 if err := f(x); err != nil {
33407 return err
33408 }
33409 if x.NextPageToken == "" {
33410 return nil
33411 }
33412 c.PageToken(x.NextPageToken)
33413 }
33414 }
33415
33416 type ProjectsLocationsAgentsWebhooksPatchCall struct {
33417 s *Service
33418 nameid string
33419 googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook
33420 urlParams_ gensupport.URLParams
33421 ctx_ context.Context
33422 header_ http.Header
33423 }
33424
33425
33426
33427
33428
33429
33430 func (r *ProjectsLocationsAgentsWebhooksService) Patch(nameid string, googleclouddialogflowcxv3beta1webhook *GoogleCloudDialogflowCxV3beta1Webhook) *ProjectsLocationsAgentsWebhooksPatchCall {
33431 c := &ProjectsLocationsAgentsWebhooksPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33432 c.nameid = nameid
33433 c.googleclouddialogflowcxv3beta1webhook = googleclouddialogflowcxv3beta1webhook
33434 return c
33435 }
33436
33437
33438
33439
33440 func (c *ProjectsLocationsAgentsWebhooksPatchCall) UpdateMask(updateMask string) *ProjectsLocationsAgentsWebhooksPatchCall {
33441 c.urlParams_.Set("updateMask", updateMask)
33442 return c
33443 }
33444
33445
33446
33447
33448 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsAgentsWebhooksPatchCall {
33449 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33450 return c
33451 }
33452
33453
33454 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Context(ctx context.Context) *ProjectsLocationsAgentsWebhooksPatchCall {
33455 c.ctx_ = ctx
33456 return c
33457 }
33458
33459
33460
33461 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Header() http.Header {
33462 if c.header_ == nil {
33463 c.header_ = make(http.Header)
33464 }
33465 return c.header_
33466 }
33467
33468 func (c *ProjectsLocationsAgentsWebhooksPatchCall) doRequest(alt string) (*http.Response, error) {
33469 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33470 var body io.Reader = nil
33471 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1webhook)
33472 if err != nil {
33473 return nil, err
33474 }
33475 c.urlParams_.Set("alt", alt)
33476 c.urlParams_.Set("prettyPrint", "false")
33477 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
33478 urls += "?" + c.urlParams_.Encode()
33479 req, err := http.NewRequest("PATCH", urls, body)
33480 if err != nil {
33481 return nil, err
33482 }
33483 req.Header = reqHeaders
33484 googleapi.Expand(req.URL, map[string]string{
33485 "name": c.nameid,
33486 })
33487 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33488 }
33489
33490
33491
33492
33493
33494
33495
33496 func (c *ProjectsLocationsAgentsWebhooksPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1Webhook, error) {
33497 gensupport.SetOptions(c.urlParams_, opts...)
33498 res, err := c.doRequest("json")
33499 if res != nil && res.StatusCode == http.StatusNotModified {
33500 if res.Body != nil {
33501 res.Body.Close()
33502 }
33503 return nil, gensupport.WrapError(&googleapi.Error{
33504 Code: res.StatusCode,
33505 Header: res.Header,
33506 })
33507 }
33508 if err != nil {
33509 return nil, err
33510 }
33511 defer googleapi.CloseBody(res)
33512 if err := googleapi.CheckResponse(res); err != nil {
33513 return nil, gensupport.WrapError(err)
33514 }
33515 ret := &GoogleCloudDialogflowCxV3beta1Webhook{
33516 ServerResponse: googleapi.ServerResponse{
33517 Header: res.Header,
33518 HTTPStatusCode: res.StatusCode,
33519 },
33520 }
33521 target := &ret
33522 if err := gensupport.DecodeResponse(target, res); err != nil {
33523 return nil, err
33524 }
33525 return ret, nil
33526 }
33527
33528 type ProjectsLocationsOperationsCancelCall struct {
33529 s *Service
33530 name string
33531 urlParams_ gensupport.URLParams
33532 ctx_ context.Context
33533 header_ http.Header
33534 }
33535
33536
33537
33538
33539
33540
33541
33542
33543
33544
33545
33546
33547 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
33548 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33549 c.name = name
33550 return c
33551 }
33552
33553
33554
33555
33556 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
33557 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33558 return c
33559 }
33560
33561
33562 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
33563 c.ctx_ = ctx
33564 return c
33565 }
33566
33567
33568
33569 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
33570 if c.header_ == nil {
33571 c.header_ = make(http.Header)
33572 }
33573 return c.header_
33574 }
33575
33576 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
33577 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33578 var body io.Reader = nil
33579 c.urlParams_.Set("alt", alt)
33580 c.urlParams_.Set("prettyPrint", "false")
33581 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:cancel")
33582 urls += "?" + c.urlParams_.Encode()
33583 req, err := http.NewRequest("POST", urls, body)
33584 if err != nil {
33585 return nil, err
33586 }
33587 req.Header = reqHeaders
33588 googleapi.Expand(req.URL, map[string]string{
33589 "name": c.name,
33590 })
33591 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33592 }
33593
33594
33595
33596
33597
33598
33599
33600 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
33601 gensupport.SetOptions(c.urlParams_, opts...)
33602 res, err := c.doRequest("json")
33603 if res != nil && res.StatusCode == http.StatusNotModified {
33604 if res.Body != nil {
33605 res.Body.Close()
33606 }
33607 return nil, gensupport.WrapError(&googleapi.Error{
33608 Code: res.StatusCode,
33609 Header: res.Header,
33610 })
33611 }
33612 if err != nil {
33613 return nil, err
33614 }
33615 defer googleapi.CloseBody(res)
33616 if err := googleapi.CheckResponse(res); err != nil {
33617 return nil, gensupport.WrapError(err)
33618 }
33619 ret := &GoogleProtobufEmpty{
33620 ServerResponse: googleapi.ServerResponse{
33621 Header: res.Header,
33622 HTTPStatusCode: res.StatusCode,
33623 },
33624 }
33625 target := &ret
33626 if err := gensupport.DecodeResponse(target, res); err != nil {
33627 return nil, err
33628 }
33629 return ret, nil
33630 }
33631
33632 type ProjectsLocationsOperationsGetCall struct {
33633 s *Service
33634 name string
33635 urlParams_ gensupport.URLParams
33636 ifNoneMatch_ string
33637 ctx_ context.Context
33638 header_ http.Header
33639 }
33640
33641
33642
33643
33644
33645
33646 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
33647 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33648 c.name = name
33649 return c
33650 }
33651
33652
33653
33654
33655 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
33656 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33657 return c
33658 }
33659
33660
33661
33662
33663 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
33664 c.ifNoneMatch_ = entityTag
33665 return c
33666 }
33667
33668
33669 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
33670 c.ctx_ = ctx
33671 return c
33672 }
33673
33674
33675
33676 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
33677 if c.header_ == nil {
33678 c.header_ = make(http.Header)
33679 }
33680 return c.header_
33681 }
33682
33683 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
33684 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33685 if c.ifNoneMatch_ != "" {
33686 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33687 }
33688 var body io.Reader = nil
33689 c.urlParams_.Set("alt", alt)
33690 c.urlParams_.Set("prettyPrint", "false")
33691 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
33692 urls += "?" + c.urlParams_.Encode()
33693 req, err := http.NewRequest("GET", urls, body)
33694 if err != nil {
33695 return nil, err
33696 }
33697 req.Header = reqHeaders
33698 googleapi.Expand(req.URL, map[string]string{
33699 "name": c.name,
33700 })
33701 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33702 }
33703
33704
33705
33706
33707
33708
33709
33710 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
33711 gensupport.SetOptions(c.urlParams_, opts...)
33712 res, err := c.doRequest("json")
33713 if res != nil && res.StatusCode == http.StatusNotModified {
33714 if res.Body != nil {
33715 res.Body.Close()
33716 }
33717 return nil, gensupport.WrapError(&googleapi.Error{
33718 Code: res.StatusCode,
33719 Header: res.Header,
33720 })
33721 }
33722 if err != nil {
33723 return nil, err
33724 }
33725 defer googleapi.CloseBody(res)
33726 if err := googleapi.CheckResponse(res); err != nil {
33727 return nil, gensupport.WrapError(err)
33728 }
33729 ret := &GoogleLongrunningOperation{
33730 ServerResponse: googleapi.ServerResponse{
33731 Header: res.Header,
33732 HTTPStatusCode: res.StatusCode,
33733 },
33734 }
33735 target := &ret
33736 if err := gensupport.DecodeResponse(target, res); err != nil {
33737 return nil, err
33738 }
33739 return ret, nil
33740 }
33741
33742 type ProjectsLocationsOperationsListCall struct {
33743 s *Service
33744 name string
33745 urlParams_ gensupport.URLParams
33746 ifNoneMatch_ string
33747 ctx_ context.Context
33748 header_ http.Header
33749 }
33750
33751
33752
33753
33754
33755 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
33756 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33757 c.name = name
33758 return c
33759 }
33760
33761
33762 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
33763 c.urlParams_.Set("filter", filter)
33764 return c
33765 }
33766
33767
33768
33769 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
33770 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
33771 return c
33772 }
33773
33774
33775
33776 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
33777 c.urlParams_.Set("pageToken", pageToken)
33778 return c
33779 }
33780
33781
33782
33783
33784 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
33785 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33786 return c
33787 }
33788
33789
33790
33791
33792 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
33793 c.ifNoneMatch_ = entityTag
33794 return c
33795 }
33796
33797
33798 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
33799 c.ctx_ = ctx
33800 return c
33801 }
33802
33803
33804
33805 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
33806 if c.header_ == nil {
33807 c.header_ = make(http.Header)
33808 }
33809 return c.header_
33810 }
33811
33812 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
33813 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
33814 if c.ifNoneMatch_ != "" {
33815 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
33816 }
33817 var body io.Reader = nil
33818 c.urlParams_.Set("alt", alt)
33819 c.urlParams_.Set("prettyPrint", "false")
33820 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/operations")
33821 urls += "?" + c.urlParams_.Encode()
33822 req, err := http.NewRequest("GET", urls, body)
33823 if err != nil {
33824 return nil, err
33825 }
33826 req.Header = reqHeaders
33827 googleapi.Expand(req.URL, map[string]string{
33828 "name": c.name,
33829 })
33830 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33831 }
33832
33833
33834
33835
33836
33837
33838
33839 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
33840 gensupport.SetOptions(c.urlParams_, opts...)
33841 res, err := c.doRequest("json")
33842 if res != nil && res.StatusCode == http.StatusNotModified {
33843 if res.Body != nil {
33844 res.Body.Close()
33845 }
33846 return nil, gensupport.WrapError(&googleapi.Error{
33847 Code: res.StatusCode,
33848 Header: res.Header,
33849 })
33850 }
33851 if err != nil {
33852 return nil, err
33853 }
33854 defer googleapi.CloseBody(res)
33855 if err := googleapi.CheckResponse(res); err != nil {
33856 return nil, gensupport.WrapError(err)
33857 }
33858 ret := &GoogleLongrunningListOperationsResponse{
33859 ServerResponse: googleapi.ServerResponse{
33860 Header: res.Header,
33861 HTTPStatusCode: res.StatusCode,
33862 },
33863 }
33864 target := &ret
33865 if err := gensupport.DecodeResponse(target, res); err != nil {
33866 return nil, err
33867 }
33868 return ret, nil
33869 }
33870
33871
33872
33873
33874 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
33875 c.ctx_ = ctx
33876 defer c.PageToken(c.urlParams_.Get("pageToken"))
33877 for {
33878 x, err := c.Do()
33879 if err != nil {
33880 return err
33881 }
33882 if err := f(x); err != nil {
33883 return err
33884 }
33885 if x.NextPageToken == "" {
33886 return nil
33887 }
33888 c.PageToken(x.NextPageToken)
33889 }
33890 }
33891
33892 type ProjectsLocationsSecuritySettingsCreateCall struct {
33893 s *Service
33894 parent string
33895 googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings
33896 urlParams_ gensupport.URLParams
33897 ctx_ context.Context
33898 header_ http.Header
33899 }
33900
33901
33902
33903
33904
33905 func (r *ProjectsLocationsSecuritySettingsService) Create(parent string, googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings) *ProjectsLocationsSecuritySettingsCreateCall {
33906 c := &ProjectsLocationsSecuritySettingsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
33907 c.parent = parent
33908 c.googleclouddialogflowcxv3beta1securitysettings = googleclouddialogflowcxv3beta1securitysettings
33909 return c
33910 }
33911
33912
33913
33914
33915 func (c *ProjectsLocationsSecuritySettingsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsCreateCall {
33916 c.urlParams_.Set("fields", googleapi.CombineFields(s))
33917 return c
33918 }
33919
33920
33921 func (c *ProjectsLocationsSecuritySettingsCreateCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsCreateCall {
33922 c.ctx_ = ctx
33923 return c
33924 }
33925
33926
33927
33928 func (c *ProjectsLocationsSecuritySettingsCreateCall) Header() http.Header {
33929 if c.header_ == nil {
33930 c.header_ = make(http.Header)
33931 }
33932 return c.header_
33933 }
33934
33935 func (c *ProjectsLocationsSecuritySettingsCreateCall) doRequest(alt string) (*http.Response, error) {
33936 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
33937 var body io.Reader = nil
33938 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1securitysettings)
33939 if err != nil {
33940 return nil, err
33941 }
33942 c.urlParams_.Set("alt", alt)
33943 c.urlParams_.Set("prettyPrint", "false")
33944 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/securitySettings")
33945 urls += "?" + c.urlParams_.Encode()
33946 req, err := http.NewRequest("POST", urls, body)
33947 if err != nil {
33948 return nil, err
33949 }
33950 req.Header = reqHeaders
33951 googleapi.Expand(req.URL, map[string]string{
33952 "parent": c.parent,
33953 })
33954 return gensupport.SendRequest(c.ctx_, c.s.client, req)
33955 }
33956
33957
33958
33959
33960
33961
33962
33963 func (c *ProjectsLocationsSecuritySettingsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
33964 gensupport.SetOptions(c.urlParams_, opts...)
33965 res, err := c.doRequest("json")
33966 if res != nil && res.StatusCode == http.StatusNotModified {
33967 if res.Body != nil {
33968 res.Body.Close()
33969 }
33970 return nil, gensupport.WrapError(&googleapi.Error{
33971 Code: res.StatusCode,
33972 Header: res.Header,
33973 })
33974 }
33975 if err != nil {
33976 return nil, err
33977 }
33978 defer googleapi.CloseBody(res)
33979 if err := googleapi.CheckResponse(res); err != nil {
33980 return nil, gensupport.WrapError(err)
33981 }
33982 ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
33983 ServerResponse: googleapi.ServerResponse{
33984 Header: res.Header,
33985 HTTPStatusCode: res.StatusCode,
33986 },
33987 }
33988 target := &ret
33989 if err := gensupport.DecodeResponse(target, res); err != nil {
33990 return nil, err
33991 }
33992 return ret, nil
33993 }
33994
33995 type ProjectsLocationsSecuritySettingsDeleteCall struct {
33996 s *Service
33997 name string
33998 urlParams_ gensupport.URLParams
33999 ctx_ context.Context
34000 header_ http.Header
34001 }
34002
34003
34004
34005
34006
34007 func (r *ProjectsLocationsSecuritySettingsService) Delete(name string) *ProjectsLocationsSecuritySettingsDeleteCall {
34008 c := &ProjectsLocationsSecuritySettingsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34009 c.name = name
34010 return c
34011 }
34012
34013
34014
34015
34016 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsDeleteCall {
34017 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34018 return c
34019 }
34020
34021
34022 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsDeleteCall {
34023 c.ctx_ = ctx
34024 return c
34025 }
34026
34027
34028
34029 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Header() http.Header {
34030 if c.header_ == nil {
34031 c.header_ = make(http.Header)
34032 }
34033 return c.header_
34034 }
34035
34036 func (c *ProjectsLocationsSecuritySettingsDeleteCall) doRequest(alt string) (*http.Response, error) {
34037 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34038 var body io.Reader = nil
34039 c.urlParams_.Set("alt", alt)
34040 c.urlParams_.Set("prettyPrint", "false")
34041 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
34042 urls += "?" + c.urlParams_.Encode()
34043 req, err := http.NewRequest("DELETE", urls, body)
34044 if err != nil {
34045 return nil, err
34046 }
34047 req.Header = reqHeaders
34048 googleapi.Expand(req.URL, map[string]string{
34049 "name": c.name,
34050 })
34051 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34052 }
34053
34054
34055
34056
34057
34058
34059
34060 func (c *ProjectsLocationsSecuritySettingsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
34061 gensupport.SetOptions(c.urlParams_, opts...)
34062 res, err := c.doRequest("json")
34063 if res != nil && res.StatusCode == http.StatusNotModified {
34064 if res.Body != nil {
34065 res.Body.Close()
34066 }
34067 return nil, gensupport.WrapError(&googleapi.Error{
34068 Code: res.StatusCode,
34069 Header: res.Header,
34070 })
34071 }
34072 if err != nil {
34073 return nil, err
34074 }
34075 defer googleapi.CloseBody(res)
34076 if err := googleapi.CheckResponse(res); err != nil {
34077 return nil, gensupport.WrapError(err)
34078 }
34079 ret := &GoogleProtobufEmpty{
34080 ServerResponse: googleapi.ServerResponse{
34081 Header: res.Header,
34082 HTTPStatusCode: res.StatusCode,
34083 },
34084 }
34085 target := &ret
34086 if err := gensupport.DecodeResponse(target, res); err != nil {
34087 return nil, err
34088 }
34089 return ret, nil
34090 }
34091
34092 type ProjectsLocationsSecuritySettingsGetCall struct {
34093 s *Service
34094 name string
34095 urlParams_ gensupport.URLParams
34096 ifNoneMatch_ string
34097 ctx_ context.Context
34098 header_ http.Header
34099 }
34100
34101
34102
34103
34104
34105
34106 func (r *ProjectsLocationsSecuritySettingsService) Get(name string) *ProjectsLocationsSecuritySettingsGetCall {
34107 c := &ProjectsLocationsSecuritySettingsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34108 c.name = name
34109 return c
34110 }
34111
34112
34113
34114
34115 func (c *ProjectsLocationsSecuritySettingsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsGetCall {
34116 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34117 return c
34118 }
34119
34120
34121
34122
34123 func (c *ProjectsLocationsSecuritySettingsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsGetCall {
34124 c.ifNoneMatch_ = entityTag
34125 return c
34126 }
34127
34128
34129 func (c *ProjectsLocationsSecuritySettingsGetCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsGetCall {
34130 c.ctx_ = ctx
34131 return c
34132 }
34133
34134
34135
34136 func (c *ProjectsLocationsSecuritySettingsGetCall) Header() http.Header {
34137 if c.header_ == nil {
34138 c.header_ = make(http.Header)
34139 }
34140 return c.header_
34141 }
34142
34143 func (c *ProjectsLocationsSecuritySettingsGetCall) doRequest(alt string) (*http.Response, error) {
34144 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34145 if c.ifNoneMatch_ != "" {
34146 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34147 }
34148 var body io.Reader = nil
34149 c.urlParams_.Set("alt", alt)
34150 c.urlParams_.Set("prettyPrint", "false")
34151 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
34152 urls += "?" + c.urlParams_.Encode()
34153 req, err := http.NewRequest("GET", urls, body)
34154 if err != nil {
34155 return nil, err
34156 }
34157 req.Header = reqHeaders
34158 googleapi.Expand(req.URL, map[string]string{
34159 "name": c.name,
34160 })
34161 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34162 }
34163
34164
34165
34166
34167
34168
34169
34170 func (c *ProjectsLocationsSecuritySettingsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
34171 gensupport.SetOptions(c.urlParams_, opts...)
34172 res, err := c.doRequest("json")
34173 if res != nil && res.StatusCode == http.StatusNotModified {
34174 if res.Body != nil {
34175 res.Body.Close()
34176 }
34177 return nil, gensupport.WrapError(&googleapi.Error{
34178 Code: res.StatusCode,
34179 Header: res.Header,
34180 })
34181 }
34182 if err != nil {
34183 return nil, err
34184 }
34185 defer googleapi.CloseBody(res)
34186 if err := googleapi.CheckResponse(res); err != nil {
34187 return nil, gensupport.WrapError(err)
34188 }
34189 ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
34190 ServerResponse: googleapi.ServerResponse{
34191 Header: res.Header,
34192 HTTPStatusCode: res.StatusCode,
34193 },
34194 }
34195 target := &ret
34196 if err := gensupport.DecodeResponse(target, res); err != nil {
34197 return nil, err
34198 }
34199 return ret, nil
34200 }
34201
34202 type ProjectsLocationsSecuritySettingsListCall struct {
34203 s *Service
34204 parent string
34205 urlParams_ gensupport.URLParams
34206 ifNoneMatch_ string
34207 ctx_ context.Context
34208 header_ http.Header
34209 }
34210
34211
34212
34213
34214
34215 func (r *ProjectsLocationsSecuritySettingsService) List(parent string) *ProjectsLocationsSecuritySettingsListCall {
34216 c := &ProjectsLocationsSecuritySettingsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34217 c.parent = parent
34218 return c
34219 }
34220
34221
34222
34223 func (c *ProjectsLocationsSecuritySettingsListCall) PageSize(pageSize int64) *ProjectsLocationsSecuritySettingsListCall {
34224 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34225 return c
34226 }
34227
34228
34229
34230 func (c *ProjectsLocationsSecuritySettingsListCall) PageToken(pageToken string) *ProjectsLocationsSecuritySettingsListCall {
34231 c.urlParams_.Set("pageToken", pageToken)
34232 return c
34233 }
34234
34235
34236
34237
34238 func (c *ProjectsLocationsSecuritySettingsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsListCall {
34239 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34240 return c
34241 }
34242
34243
34244
34245
34246 func (c *ProjectsLocationsSecuritySettingsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsSecuritySettingsListCall {
34247 c.ifNoneMatch_ = entityTag
34248 return c
34249 }
34250
34251
34252 func (c *ProjectsLocationsSecuritySettingsListCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsListCall {
34253 c.ctx_ = ctx
34254 return c
34255 }
34256
34257
34258
34259 func (c *ProjectsLocationsSecuritySettingsListCall) Header() http.Header {
34260 if c.header_ == nil {
34261 c.header_ = make(http.Header)
34262 }
34263 return c.header_
34264 }
34265
34266 func (c *ProjectsLocationsSecuritySettingsListCall) doRequest(alt string) (*http.Response, error) {
34267 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34268 if c.ifNoneMatch_ != "" {
34269 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34270 }
34271 var body io.Reader = nil
34272 c.urlParams_.Set("alt", alt)
34273 c.urlParams_.Set("prettyPrint", "false")
34274 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+parent}/securitySettings")
34275 urls += "?" + c.urlParams_.Encode()
34276 req, err := http.NewRequest("GET", urls, body)
34277 if err != nil {
34278 return nil, err
34279 }
34280 req.Header = reqHeaders
34281 googleapi.Expand(req.URL, map[string]string{
34282 "parent": c.parent,
34283 })
34284 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34285 }
34286
34287
34288
34289
34290
34291
34292
34293 func (c *ProjectsLocationsSecuritySettingsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse, error) {
34294 gensupport.SetOptions(c.urlParams_, opts...)
34295 res, err := c.doRequest("json")
34296 if res != nil && res.StatusCode == http.StatusNotModified {
34297 if res.Body != nil {
34298 res.Body.Close()
34299 }
34300 return nil, gensupport.WrapError(&googleapi.Error{
34301 Code: res.StatusCode,
34302 Header: res.Header,
34303 })
34304 }
34305 if err != nil {
34306 return nil, err
34307 }
34308 defer googleapi.CloseBody(res)
34309 if err := googleapi.CheckResponse(res); err != nil {
34310 return nil, gensupport.WrapError(err)
34311 }
34312 ret := &GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse{
34313 ServerResponse: googleapi.ServerResponse{
34314 Header: res.Header,
34315 HTTPStatusCode: res.StatusCode,
34316 },
34317 }
34318 target := &ret
34319 if err := gensupport.DecodeResponse(target, res); err != nil {
34320 return nil, err
34321 }
34322 return ret, nil
34323 }
34324
34325
34326
34327
34328 func (c *ProjectsLocationsSecuritySettingsListCall) Pages(ctx context.Context, f func(*GoogleCloudDialogflowCxV3beta1ListSecuritySettingsResponse) error) error {
34329 c.ctx_ = ctx
34330 defer c.PageToken(c.urlParams_.Get("pageToken"))
34331 for {
34332 x, err := c.Do()
34333 if err != nil {
34334 return err
34335 }
34336 if err := f(x); err != nil {
34337 return err
34338 }
34339 if x.NextPageToken == "" {
34340 return nil
34341 }
34342 c.PageToken(x.NextPageToken)
34343 }
34344 }
34345
34346 type ProjectsLocationsSecuritySettingsPatchCall struct {
34347 s *Service
34348 name string
34349 googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings
34350 urlParams_ gensupport.URLParams
34351 ctx_ context.Context
34352 header_ http.Header
34353 }
34354
34355
34356
34357
34358
34359
34360
34361 func (r *ProjectsLocationsSecuritySettingsService) Patch(name string, googleclouddialogflowcxv3beta1securitysettings *GoogleCloudDialogflowCxV3beta1SecuritySettings) *ProjectsLocationsSecuritySettingsPatchCall {
34362 c := &ProjectsLocationsSecuritySettingsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34363 c.name = name
34364 c.googleclouddialogflowcxv3beta1securitysettings = googleclouddialogflowcxv3beta1securitysettings
34365 return c
34366 }
34367
34368
34369
34370
34371 func (c *ProjectsLocationsSecuritySettingsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsSecuritySettingsPatchCall {
34372 c.urlParams_.Set("updateMask", updateMask)
34373 return c
34374 }
34375
34376
34377
34378
34379 func (c *ProjectsLocationsSecuritySettingsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsSecuritySettingsPatchCall {
34380 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34381 return c
34382 }
34383
34384
34385 func (c *ProjectsLocationsSecuritySettingsPatchCall) Context(ctx context.Context) *ProjectsLocationsSecuritySettingsPatchCall {
34386 c.ctx_ = ctx
34387 return c
34388 }
34389
34390
34391
34392 func (c *ProjectsLocationsSecuritySettingsPatchCall) Header() http.Header {
34393 if c.header_ == nil {
34394 c.header_ = make(http.Header)
34395 }
34396 return c.header_
34397 }
34398
34399 func (c *ProjectsLocationsSecuritySettingsPatchCall) doRequest(alt string) (*http.Response, error) {
34400 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
34401 var body io.Reader = nil
34402 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddialogflowcxv3beta1securitysettings)
34403 if err != nil {
34404 return nil, err
34405 }
34406 c.urlParams_.Set("alt", alt)
34407 c.urlParams_.Set("prettyPrint", "false")
34408 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
34409 urls += "?" + c.urlParams_.Encode()
34410 req, err := http.NewRequest("PATCH", urls, body)
34411 if err != nil {
34412 return nil, err
34413 }
34414 req.Header = reqHeaders
34415 googleapi.Expand(req.URL, map[string]string{
34416 "name": c.name,
34417 })
34418 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34419 }
34420
34421
34422
34423
34424
34425
34426
34427 func (c *ProjectsLocationsSecuritySettingsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDialogflowCxV3beta1SecuritySettings, error) {
34428 gensupport.SetOptions(c.urlParams_, opts...)
34429 res, err := c.doRequest("json")
34430 if res != nil && res.StatusCode == http.StatusNotModified {
34431 if res.Body != nil {
34432 res.Body.Close()
34433 }
34434 return nil, gensupport.WrapError(&googleapi.Error{
34435 Code: res.StatusCode,
34436 Header: res.Header,
34437 })
34438 }
34439 if err != nil {
34440 return nil, err
34441 }
34442 defer googleapi.CloseBody(res)
34443 if err := googleapi.CheckResponse(res); err != nil {
34444 return nil, gensupport.WrapError(err)
34445 }
34446 ret := &GoogleCloudDialogflowCxV3beta1SecuritySettings{
34447 ServerResponse: googleapi.ServerResponse{
34448 Header: res.Header,
34449 HTTPStatusCode: res.StatusCode,
34450 },
34451 }
34452 target := &ret
34453 if err := gensupport.DecodeResponse(target, res); err != nil {
34454 return nil, err
34455 }
34456 return ret, nil
34457 }
34458
34459 type ProjectsOperationsCancelCall struct {
34460 s *Service
34461 name string
34462 urlParams_ gensupport.URLParams
34463 ctx_ context.Context
34464 header_ http.Header
34465 }
34466
34467
34468
34469
34470
34471
34472
34473
34474
34475
34476
34477
34478 func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
34479 c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34480 c.name = name
34481 return c
34482 }
34483
34484
34485
34486
34487 func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
34488 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34489 return c
34490 }
34491
34492
34493 func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
34494 c.ctx_ = ctx
34495 return c
34496 }
34497
34498
34499
34500 func (c *ProjectsOperationsCancelCall) Header() http.Header {
34501 if c.header_ == nil {
34502 c.header_ = make(http.Header)
34503 }
34504 return c.header_
34505 }
34506
34507 func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
34508 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34509 var body io.Reader = nil
34510 c.urlParams_.Set("alt", alt)
34511 c.urlParams_.Set("prettyPrint", "false")
34512 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}:cancel")
34513 urls += "?" + c.urlParams_.Encode()
34514 req, err := http.NewRequest("POST", urls, body)
34515 if err != nil {
34516 return nil, err
34517 }
34518 req.Header = reqHeaders
34519 googleapi.Expand(req.URL, map[string]string{
34520 "name": c.name,
34521 })
34522 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34523 }
34524
34525
34526
34527
34528
34529
34530
34531 func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
34532 gensupport.SetOptions(c.urlParams_, opts...)
34533 res, err := c.doRequest("json")
34534 if res != nil && res.StatusCode == http.StatusNotModified {
34535 if res.Body != nil {
34536 res.Body.Close()
34537 }
34538 return nil, gensupport.WrapError(&googleapi.Error{
34539 Code: res.StatusCode,
34540 Header: res.Header,
34541 })
34542 }
34543 if err != nil {
34544 return nil, err
34545 }
34546 defer googleapi.CloseBody(res)
34547 if err := googleapi.CheckResponse(res); err != nil {
34548 return nil, gensupport.WrapError(err)
34549 }
34550 ret := &GoogleProtobufEmpty{
34551 ServerResponse: googleapi.ServerResponse{
34552 Header: res.Header,
34553 HTTPStatusCode: res.StatusCode,
34554 },
34555 }
34556 target := &ret
34557 if err := gensupport.DecodeResponse(target, res); err != nil {
34558 return nil, err
34559 }
34560 return ret, nil
34561 }
34562
34563 type ProjectsOperationsGetCall struct {
34564 s *Service
34565 name string
34566 urlParams_ gensupport.URLParams
34567 ifNoneMatch_ string
34568 ctx_ context.Context
34569 header_ http.Header
34570 }
34571
34572
34573
34574
34575
34576
34577 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
34578 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34579 c.name = name
34580 return c
34581 }
34582
34583
34584
34585
34586 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
34587 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34588 return c
34589 }
34590
34591
34592
34593
34594 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
34595 c.ifNoneMatch_ = entityTag
34596 return c
34597 }
34598
34599
34600 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
34601 c.ctx_ = ctx
34602 return c
34603 }
34604
34605
34606
34607 func (c *ProjectsOperationsGetCall) Header() http.Header {
34608 if c.header_ == nil {
34609 c.header_ = make(http.Header)
34610 }
34611 return c.header_
34612 }
34613
34614 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
34615 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34616 if c.ifNoneMatch_ != "" {
34617 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34618 }
34619 var body io.Reader = nil
34620 c.urlParams_.Set("alt", alt)
34621 c.urlParams_.Set("prettyPrint", "false")
34622 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}")
34623 urls += "?" + c.urlParams_.Encode()
34624 req, err := http.NewRequest("GET", urls, body)
34625 if err != nil {
34626 return nil, err
34627 }
34628 req.Header = reqHeaders
34629 googleapi.Expand(req.URL, map[string]string{
34630 "name": c.name,
34631 })
34632 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34633 }
34634
34635
34636
34637
34638
34639
34640
34641 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
34642 gensupport.SetOptions(c.urlParams_, opts...)
34643 res, err := c.doRequest("json")
34644 if res != nil && res.StatusCode == http.StatusNotModified {
34645 if res.Body != nil {
34646 res.Body.Close()
34647 }
34648 return nil, gensupport.WrapError(&googleapi.Error{
34649 Code: res.StatusCode,
34650 Header: res.Header,
34651 })
34652 }
34653 if err != nil {
34654 return nil, err
34655 }
34656 defer googleapi.CloseBody(res)
34657 if err := googleapi.CheckResponse(res); err != nil {
34658 return nil, gensupport.WrapError(err)
34659 }
34660 ret := &GoogleLongrunningOperation{
34661 ServerResponse: googleapi.ServerResponse{
34662 Header: res.Header,
34663 HTTPStatusCode: res.StatusCode,
34664 },
34665 }
34666 target := &ret
34667 if err := gensupport.DecodeResponse(target, res); err != nil {
34668 return nil, err
34669 }
34670 return ret, nil
34671 }
34672
34673 type ProjectsOperationsListCall struct {
34674 s *Service
34675 name string
34676 urlParams_ gensupport.URLParams
34677 ifNoneMatch_ string
34678 ctx_ context.Context
34679 header_ http.Header
34680 }
34681
34682
34683
34684
34685
34686 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
34687 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
34688 c.name = name
34689 return c
34690 }
34691
34692
34693 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
34694 c.urlParams_.Set("filter", filter)
34695 return c
34696 }
34697
34698
34699
34700 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
34701 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
34702 return c
34703 }
34704
34705
34706
34707 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
34708 c.urlParams_.Set("pageToken", pageToken)
34709 return c
34710 }
34711
34712
34713
34714
34715 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
34716 c.urlParams_.Set("fields", googleapi.CombineFields(s))
34717 return c
34718 }
34719
34720
34721
34722
34723 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
34724 c.ifNoneMatch_ = entityTag
34725 return c
34726 }
34727
34728
34729 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
34730 c.ctx_ = ctx
34731 return c
34732 }
34733
34734
34735
34736 func (c *ProjectsOperationsListCall) Header() http.Header {
34737 if c.header_ == nil {
34738 c.header_ = make(http.Header)
34739 }
34740 return c.header_
34741 }
34742
34743 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
34744 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
34745 if c.ifNoneMatch_ != "" {
34746 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
34747 }
34748 var body io.Reader = nil
34749 c.urlParams_.Set("alt", alt)
34750 c.urlParams_.Set("prettyPrint", "false")
34751 urls := googleapi.ResolveRelative(c.s.BasePath, "v3beta1/{+name}/operations")
34752 urls += "?" + c.urlParams_.Encode()
34753 req, err := http.NewRequest("GET", urls, body)
34754 if err != nil {
34755 return nil, err
34756 }
34757 req.Header = reqHeaders
34758 googleapi.Expand(req.URL, map[string]string{
34759 "name": c.name,
34760 })
34761 return gensupport.SendRequest(c.ctx_, c.s.client, req)
34762 }
34763
34764
34765
34766
34767
34768
34769
34770 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
34771 gensupport.SetOptions(c.urlParams_, opts...)
34772 res, err := c.doRequest("json")
34773 if res != nil && res.StatusCode == http.StatusNotModified {
34774 if res.Body != nil {
34775 res.Body.Close()
34776 }
34777 return nil, gensupport.WrapError(&googleapi.Error{
34778 Code: res.StatusCode,
34779 Header: res.Header,
34780 })
34781 }
34782 if err != nil {
34783 return nil, err
34784 }
34785 defer googleapi.CloseBody(res)
34786 if err := googleapi.CheckResponse(res); err != nil {
34787 return nil, gensupport.WrapError(err)
34788 }
34789 ret := &GoogleLongrunningListOperationsResponse{
34790 ServerResponse: googleapi.ServerResponse{
34791 Header: res.Header,
34792 HTTPStatusCode: res.StatusCode,
34793 },
34794 }
34795 target := &ret
34796 if err := gensupport.DecodeResponse(target, res); err != nil {
34797 return nil, err
34798 }
34799 return ret, nil
34800 }
34801
34802
34803
34804
34805 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
34806 c.ctx_ = ctx
34807 defer c.PageToken(c.urlParams_.Get("pageToken"))
34808 for {
34809 x, err := c.Do()
34810 if err != nil {
34811 return err
34812 }
34813 if err := f(x); err != nil {
34814 return err
34815 }
34816 if x.NextPageToken == "" {
34817 return nil
34818 }
34819 c.PageToken(x.NextPageToken)
34820 }
34821 }
34822
View as plain text