1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51 package contactcenterinsights
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "contactcenterinsights:v1"
90 const apiName = "contactcenterinsights"
91 const apiVersion = "v1"
92 const basePath = "https://contactcenterinsights.googleapis.com/"
93 const basePathTemplate = "https://contactcenterinsights.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://contactcenterinsights.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Projects = NewProjectsService(s)
139 return s, nil
140 }
141
142 type Service struct {
143 client *http.Client
144 BasePath string
145 UserAgent string
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.Locations = NewProjectsLocationsService(s)
160 return rs
161 }
162
163 type ProjectsService struct {
164 s *Service
165
166 Locations *ProjectsLocationsService
167 }
168
169 func NewProjectsLocationsService(s *Service) *ProjectsLocationsService {
170 rs := &ProjectsLocationsService{s: s}
171 rs.Conversations = NewProjectsLocationsConversationsService(s)
172 rs.Insightsdata = NewProjectsLocationsInsightsdataService(s)
173 rs.IssueModels = NewProjectsLocationsIssueModelsService(s)
174 rs.Operations = NewProjectsLocationsOperationsService(s)
175 rs.PhraseMatchers = NewProjectsLocationsPhraseMatchersService(s)
176 rs.Views = NewProjectsLocationsViewsService(s)
177 return rs
178 }
179
180 type ProjectsLocationsService struct {
181 s *Service
182
183 Conversations *ProjectsLocationsConversationsService
184
185 Insightsdata *ProjectsLocationsInsightsdataService
186
187 IssueModels *ProjectsLocationsIssueModelsService
188
189 Operations *ProjectsLocationsOperationsService
190
191 PhraseMatchers *ProjectsLocationsPhraseMatchersService
192
193 Views *ProjectsLocationsViewsService
194 }
195
196 func NewProjectsLocationsConversationsService(s *Service) *ProjectsLocationsConversationsService {
197 rs := &ProjectsLocationsConversationsService{s: s}
198 rs.Analyses = NewProjectsLocationsConversationsAnalysesService(s)
199 return rs
200 }
201
202 type ProjectsLocationsConversationsService struct {
203 s *Service
204
205 Analyses *ProjectsLocationsConversationsAnalysesService
206 }
207
208 func NewProjectsLocationsConversationsAnalysesService(s *Service) *ProjectsLocationsConversationsAnalysesService {
209 rs := &ProjectsLocationsConversationsAnalysesService{s: s}
210 return rs
211 }
212
213 type ProjectsLocationsConversationsAnalysesService struct {
214 s *Service
215 }
216
217 func NewProjectsLocationsInsightsdataService(s *Service) *ProjectsLocationsInsightsdataService {
218 rs := &ProjectsLocationsInsightsdataService{s: s}
219 return rs
220 }
221
222 type ProjectsLocationsInsightsdataService struct {
223 s *Service
224 }
225
226 func NewProjectsLocationsIssueModelsService(s *Service) *ProjectsLocationsIssueModelsService {
227 rs := &ProjectsLocationsIssueModelsService{s: s}
228 rs.Issues = NewProjectsLocationsIssueModelsIssuesService(s)
229 return rs
230 }
231
232 type ProjectsLocationsIssueModelsService struct {
233 s *Service
234
235 Issues *ProjectsLocationsIssueModelsIssuesService
236 }
237
238 func NewProjectsLocationsIssueModelsIssuesService(s *Service) *ProjectsLocationsIssueModelsIssuesService {
239 rs := &ProjectsLocationsIssueModelsIssuesService{s: s}
240 return rs
241 }
242
243 type ProjectsLocationsIssueModelsIssuesService struct {
244 s *Service
245 }
246
247 func NewProjectsLocationsOperationsService(s *Service) *ProjectsLocationsOperationsService {
248 rs := &ProjectsLocationsOperationsService{s: s}
249 return rs
250 }
251
252 type ProjectsLocationsOperationsService struct {
253 s *Service
254 }
255
256 func NewProjectsLocationsPhraseMatchersService(s *Service) *ProjectsLocationsPhraseMatchersService {
257 rs := &ProjectsLocationsPhraseMatchersService{s: s}
258 return rs
259 }
260
261 type ProjectsLocationsPhraseMatchersService struct {
262 s *Service
263 }
264
265 func NewProjectsLocationsViewsService(s *Service) *ProjectsLocationsViewsService {
266 rs := &ProjectsLocationsViewsService{s: s}
267 return rs
268 }
269
270 type ProjectsLocationsViewsService struct {
271 s *Service
272 }
273
274
275
276 type GoogleCloudContactcenterinsightsV1AgentCoachingInstruction struct {
277
278
279
280 AgentAction string `json:"agentAction,omitempty"`
281
282
283
284 Condition string `json:"condition,omitempty"`
285
286 Description string `json:"description,omitempty"`
287
288 DisplayName string `json:"displayName,omitempty"`
289
290 Metadata map[string]string `json:"metadata,omitempty"`
291
292
293
294
295 SystemAction string `json:"systemAction,omitempty"`
296
297
298
299
300
301 ForceSendFields []string `json:"-"`
302
303
304
305
306 NullFields []string `json:"-"`
307 }
308
309 func (s *GoogleCloudContactcenterinsightsV1AgentCoachingInstruction) MarshalJSON() ([]byte, error) {
310 type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingInstruction
311 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
312 }
313
314
315
316 type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion struct {
317
318 AgentActionSuggestions []*GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"`
319
320
321 ApplicableInstructions []*GoogleCloudContactcenterinsightsV1AgentCoachingInstruction `json:"applicableInstructions,omitempty"`
322
323 SampleResponses []*GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"`
324
325 SuggestionEval *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval `json:"suggestionEval,omitempty"`
326
327 SuggestionReasoning *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning `json:"suggestionReasoning,omitempty"`
328
329
330
331
332
333 ForceSendFields []string `json:"-"`
334
335
336
337
338 NullFields []string `json:"-"`
339 }
340
341 func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion) MarshalJSON() ([]byte, error) {
342 type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion
343 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
344 }
345
346
347
348
349 type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion struct {
350
351 AgentAction string `json:"agentAction,omitempty"`
352
353
354
355
356
357 ForceSendFields []string `json:"-"`
358
359
360
361
362 NullFields []string `json:"-"`
363 }
364
365 func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion) MarshalJSON() ([]byte, error) {
366 type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion
367 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
368 }
369
370
371
372 type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval struct {
373
374 ActionActionSuggestionEval string `json:"actionActionSuggestionEval,omitempty"`
375
376 SampleResponseEval string `json:"sampleResponseEval,omitempty"`
377
378
379
380
381
382 ForceSendFields []string `json:"-"`
383
384
385
386
387 NullFields []string `json:"-"`
388 }
389
390 func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval) MarshalJSON() ([]byte, error) {
391 type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval
392 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
393 }
394
395
396
397 type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning struct {
398
399 AgentActionTaken string `json:"agentActionTaken,omitempty"`
400
401 IssueSummary string `json:"issueSummary,omitempty"`
402
403
404
405
406
407 ForceSendFields []string `json:"-"`
408
409
410
411
412 NullFields []string `json:"-"`
413 }
414
415 func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning) MarshalJSON() ([]byte, error) {
416 type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning
417 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
418 }
419
420
421
422
423 type GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse struct {
424
425 ResponseText string `json:"responseText,omitempty"`
426
427
428
429
430
431 ForceSendFields []string `json:"-"`
432
433
434
435
436 NullFields []string `json:"-"`
437 }
438
439 func (s *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse) MarshalJSON() ([]byte, error) {
440 type NoMethod GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse
441 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
442 }
443
444
445 type GoogleCloudContactcenterinsightsV1Analysis struct {
446
447
448 AnalysisResult *GoogleCloudContactcenterinsightsV1AnalysisResult `json:"analysisResult,omitempty"`
449
450
451 AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"`
452
453
454 CreateTime string `json:"createTime,omitempty"`
455
456
457
458 Name string `json:"name,omitempty"`
459
460 RequestTime string `json:"requestTime,omitempty"`
461
462
463 googleapi.ServerResponse `json:"-"`
464
465
466
467
468
469 ForceSendFields []string `json:"-"`
470
471
472
473
474 NullFields []string `json:"-"`
475 }
476
477 func (s *GoogleCloudContactcenterinsightsV1Analysis) MarshalJSON() ([]byte, error) {
478 type NoMethod GoogleCloudContactcenterinsightsV1Analysis
479 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
480 }
481
482
483 type GoogleCloudContactcenterinsightsV1AnalysisResult struct {
484
485 CallAnalysisMetadata *GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata `json:"callAnalysisMetadata,omitempty"`
486
487 EndTime string `json:"endTime,omitempty"`
488
489
490
491
492
493 ForceSendFields []string `json:"-"`
494
495
496
497
498 NullFields []string `json:"-"`
499 }
500
501 func (s *GoogleCloudContactcenterinsightsV1AnalysisResult) MarshalJSON() ([]byte, error) {
502 type NoMethod GoogleCloudContactcenterinsightsV1AnalysisResult
503 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
504 }
505
506
507
508 type GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata struct {
509
510 Annotations []*GoogleCloudContactcenterinsightsV1CallAnnotation `json:"annotations,omitempty"`
511
512 Entities map[string]GoogleCloudContactcenterinsightsV1Entity `json:"entities,omitempty"`
513
514 Intents map[string]GoogleCloudContactcenterinsightsV1Intent `json:"intents,omitempty"`
515
516 IssueModelResult *GoogleCloudContactcenterinsightsV1IssueModelResult `json:"issueModelResult,omitempty"`
517
518 PhraseMatchers map[string]GoogleCloudContactcenterinsightsV1PhraseMatchData `json:"phraseMatchers,omitempty"`
519
520
521 Sentiments []*GoogleCloudContactcenterinsightsV1ConversationLevelSentiment `json:"sentiments,omitempty"`
522
523 Silence *GoogleCloudContactcenterinsightsV1ConversationLevelSilence `json:"silence,omitempty"`
524
525
526
527
528
529 ForceSendFields []string `json:"-"`
530
531
532
533
534 NullFields []string `json:"-"`
535 }
536
537 func (s *GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata) MarshalJSON() ([]byte, error) {
538 type NoMethod GoogleCloudContactcenterinsightsV1AnalysisResultCallAnalysisMetadata
539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
540 }
541
542
543
544 type GoogleCloudContactcenterinsightsV1AnnotationBoundary struct {
545
546
547 TranscriptIndex int64 `json:"transcriptIndex,omitempty"`
548
549
550 WordIndex int64 `json:"wordIndex,omitempty"`
551
552
553
554
555
556 ForceSendFields []string `json:"-"`
557
558
559
560
561 NullFields []string `json:"-"`
562 }
563
564 func (s *GoogleCloudContactcenterinsightsV1AnnotationBoundary) MarshalJSON() ([]byte, error) {
565 type NoMethod GoogleCloudContactcenterinsightsV1AnnotationBoundary
566 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
567 }
568
569
570
571 type GoogleCloudContactcenterinsightsV1AnnotatorSelector struct {
572
573
574
575
576
577 IssueModels []string `json:"issueModels,omitempty"`
578
579
580
581
582
583 PhraseMatchers []string `json:"phraseMatchers,omitempty"`
584
585 RunEntityAnnotator bool `json:"runEntityAnnotator,omitempty"`
586
587 RunIntentAnnotator bool `json:"runIntentAnnotator,omitempty"`
588
589 RunInterruptionAnnotator bool `json:"runInterruptionAnnotator,omitempty"`
590
591
592 RunIssueModelAnnotator bool `json:"runIssueModelAnnotator,omitempty"`
593
594
595 RunPhraseMatcherAnnotator bool `json:"runPhraseMatcherAnnotator,omitempty"`
596
597 RunSentimentAnnotator bool `json:"runSentimentAnnotator,omitempty"`
598
599 RunSilenceAnnotator bool `json:"runSilenceAnnotator,omitempty"`
600
601 RunSummarizationAnnotator bool `json:"runSummarizationAnnotator,omitempty"`
602
603 SummarizationConfig *GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig `json:"summarizationConfig,omitempty"`
604
605
606
607
608
609 ForceSendFields []string `json:"-"`
610
611
612
613
614 NullFields []string `json:"-"`
615 }
616
617 func (s *GoogleCloudContactcenterinsightsV1AnnotatorSelector) MarshalJSON() ([]byte, error) {
618 type NoMethod GoogleCloudContactcenterinsightsV1AnnotatorSelector
619 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
620 }
621
622
623
624 type GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig struct {
625
626
627
628
629 ConversationProfile string `json:"conversationProfile,omitempty"`
630
631
632
633
634
635
636 SummarizationModel string `json:"summarizationModel,omitempty"`
637
638
639
640
641
642 ForceSendFields []string `json:"-"`
643
644
645
646
647 NullFields []string `json:"-"`
648 }
649
650 func (s *GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig) MarshalJSON() ([]byte, error) {
651 type NoMethod GoogleCloudContactcenterinsightsV1AnnotatorSelectorSummarizationConfig
652 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
653 }
654
655
656
657 type GoogleCloudContactcenterinsightsV1AnswerFeedback struct {
658
659 Clicked bool `json:"clicked,omitempty"`
660
661
662
663
664
665
666
667 CorrectnessLevel string `json:"correctnessLevel,omitempty"`
668
669
670 Displayed bool `json:"displayed,omitempty"`
671
672
673
674
675
676 ForceSendFields []string `json:"-"`
677
678
679
680
681 NullFields []string `json:"-"`
682 }
683
684 func (s *GoogleCloudContactcenterinsightsV1AnswerFeedback) MarshalJSON() ([]byte, error) {
685 type NoMethod GoogleCloudContactcenterinsightsV1AnswerFeedback
686 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
687 }
688
689
690
691 type GoogleCloudContactcenterinsightsV1ArticleSuggestionData struct {
692
693
694
695 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
696
697
698 Metadata map[string]string `json:"metadata,omitempty"`
699
700
701 QueryRecord string `json:"queryRecord,omitempty"`
702
703
704 Source string `json:"source,omitempty"`
705
706 Title string `json:"title,omitempty"`
707
708 Uri string `json:"uri,omitempty"`
709
710
711
712
713
714 ForceSendFields []string `json:"-"`
715
716
717
718
719 NullFields []string `json:"-"`
720 }
721
722 func (s *GoogleCloudContactcenterinsightsV1ArticleSuggestionData) MarshalJSON() ([]byte, error) {
723 type NoMethod GoogleCloudContactcenterinsightsV1ArticleSuggestionData
724 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
725 }
726
727 func (s *GoogleCloudContactcenterinsightsV1ArticleSuggestionData) UnmarshalJSON(data []byte) error {
728 type NoMethod GoogleCloudContactcenterinsightsV1ArticleSuggestionData
729 var s1 struct {
730 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
731 *NoMethod
732 }
733 s1.NoMethod = (*NoMethod)(s)
734 if err := json.Unmarshal(data, &s1); err != nil {
735 return err
736 }
737 s.ConfidenceScore = float64(s1.ConfidenceScore)
738 return nil
739 }
740
741
742
743 type GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata struct {
744
745
746 CompletedAnalysesCount int64 `json:"completedAnalysesCount,omitempty"`
747
748 CreateTime string `json:"createTime,omitempty"`
749
750 EndTime string `json:"endTime,omitempty"`
751
752
753 FailedAnalysesCount int64 `json:"failedAnalysesCount,omitempty"`
754
755
756 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
757
758 Request *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest `json:"request,omitempty"`
759
760
761
762 TotalRequestedAnalysesCount int64 `json:"totalRequestedAnalysesCount,omitempty"`
763
764
765
766
767
768 ForceSendFields []string `json:"-"`
769
770
771
772
773 NullFields []string `json:"-"`
774 }
775
776 func (s *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata) MarshalJSON() ([]byte, error) {
777 type NoMethod GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsMetadata
778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
779 }
780
781
782
783 type GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest struct {
784
785
786 AnalysisPercentage float64 `json:"analysisPercentage,omitempty"`
787
788
789 AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"`
790
791
792 Filter string `json:"filter,omitempty"`
793
794 Parent string `json:"parent,omitempty"`
795
796
797
798
799
800 ForceSendFields []string `json:"-"`
801
802
803
804
805 NullFields []string `json:"-"`
806 }
807
808 func (s *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest) MarshalJSON() ([]byte, error) {
809 type NoMethod GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest
810 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
811 }
812
813 func (s *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest) UnmarshalJSON(data []byte) error {
814 type NoMethod GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest
815 var s1 struct {
816 AnalysisPercentage gensupport.JSONFloat64 `json:"analysisPercentage"`
817 *NoMethod
818 }
819 s1.NoMethod = (*NoMethod)(s)
820 if err := json.Unmarshal(data, &s1); err != nil {
821 return err
822 }
823 s.AnalysisPercentage = float64(s1.AnalysisPercentage)
824 return nil
825 }
826
827
828
829 type GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse struct {
830
831 FailedAnalysisCount int64 `json:"failedAnalysisCount,omitempty"`
832
833 SuccessfulAnalysisCount int64 `json:"successfulAnalysisCount,omitempty"`
834
835
836
837
838
839 ForceSendFields []string `json:"-"`
840
841
842
843
844 NullFields []string `json:"-"`
845 }
846
847 func (s *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse) MarshalJSON() ([]byte, error) {
848 type NoMethod GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsResponse
849 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
850 }
851
852
853
854 type GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata struct {
855
856 CreateTime string `json:"createTime,omitempty"`
857
858 EndTime string `json:"endTime,omitempty"`
859
860
861 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
862
863 Request *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest `json:"request,omitempty"`
864
865
866
867
868
869 ForceSendFields []string `json:"-"`
870
871
872
873
874 NullFields []string `json:"-"`
875 }
876
877 func (s *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata) MarshalJSON() ([]byte, error) {
878 type NoMethod GoogleCloudContactcenterinsightsV1BulkDeleteConversationsMetadata
879 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
880 }
881
882
883
884 type GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest struct {
885
886 Filter string `json:"filter,omitempty"`
887
888
889
890 Force bool `json:"force,omitempty"`
891
892 MaxDeleteCount int64 `json:"maxDeleteCount,omitempty"`
893
894
895 Parent string `json:"parent,omitempty"`
896
897
898
899
900
901 ForceSendFields []string `json:"-"`
902
903
904
905
906 NullFields []string `json:"-"`
907 }
908
909 func (s *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest) MarshalJSON() ([]byte, error) {
910 type NoMethod GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest
911 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
912 }
913
914
915
916 type GoogleCloudContactcenterinsightsV1BulkDeleteConversationsResponse struct {
917 }
918
919
920
921 type GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse struct {
922
923
924 CurrentStats *GoogleCloudContactcenterinsightsV1IssueModelLabelStats `json:"currentStats,omitempty"`
925
926
927 googleapi.ServerResponse `json:"-"`
928
929
930
931
932
933 ForceSendFields []string `json:"-"`
934
935
936
937
938 NullFields []string `json:"-"`
939 }
940
941 func (s *GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse) MarshalJSON() ([]byte, error) {
942 type NoMethod GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse
943 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
944 }
945
946
947
948 type GoogleCloudContactcenterinsightsV1CalculateStatsResponse struct {
949
950
951 AverageDuration string `json:"averageDuration,omitempty"`
952
953 AverageTurnCount int64 `json:"averageTurnCount,omitempty"`
954
955 ConversationCount int64 `json:"conversationCount,omitempty"`
956
957
958 ConversationCountTimeSeries *GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries `json:"conversationCountTimeSeries,omitempty"`
959
960
961 CustomHighlighterMatches map[string]int64 `json:"customHighlighterMatches,omitempty"`
962
963
964
965
966 IssueMatches map[string]int64 `json:"issueMatches,omitempty"`
967
968
969
970 IssueMatchesStats map[string]GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats `json:"issueMatchesStats,omitempty"`
971
972
973 SmartHighlighterMatches map[string]int64 `json:"smartHighlighterMatches,omitempty"`
974
975
976 googleapi.ServerResponse `json:"-"`
977
978
979
980
981
982 ForceSendFields []string `json:"-"`
983
984
985
986
987 NullFields []string `json:"-"`
988 }
989
990 func (s *GoogleCloudContactcenterinsightsV1CalculateStatsResponse) MarshalJSON() ([]byte, error) {
991 type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponse
992 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
993 }
994
995
996
997 type GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries struct {
998
999 IntervalDuration string `json:"intervalDuration,omitempty"`
1000
1001
1002
1003 Points []*GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval `json:"points,omitempty"`
1004
1005
1006
1007
1008
1009 ForceSendFields []string `json:"-"`
1010
1011
1012
1013
1014 NullFields []string `json:"-"`
1015 }
1016
1017 func (s *GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries) MarshalJSON() ([]byte, error) {
1018 type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeries
1019 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1020 }
1021
1022
1023
1024 type GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval struct {
1025
1026 ConversationCount int64 `json:"conversationCount,omitempty"`
1027
1028 StartTime string `json:"startTime,omitempty"`
1029
1030
1031
1032
1033
1034 ForceSendFields []string `json:"-"`
1035
1036
1037
1038
1039 NullFields []string `json:"-"`
1040 }
1041
1042 func (s *GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval) MarshalJSON() ([]byte, error) {
1043 type NoMethod GoogleCloudContactcenterinsightsV1CalculateStatsResponseTimeSeriesInterval
1044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1045 }
1046
1047
1048
1049 type GoogleCloudContactcenterinsightsV1CallAnnotation struct {
1050
1051
1052 AnnotationEndBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"annotationEndBoundary,omitempty"`
1053
1054
1055 AnnotationStartBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"annotationStartBoundary,omitempty"`
1056
1057
1058 ChannelTag int64 `json:"channelTag,omitempty"`
1059
1060 EntityMentionData *GoogleCloudContactcenterinsightsV1EntityMentionData `json:"entityMentionData,omitempty"`
1061
1062 HoldData *GoogleCloudContactcenterinsightsV1HoldData `json:"holdData,omitempty"`
1063
1064 IntentMatchData *GoogleCloudContactcenterinsightsV1IntentMatchData `json:"intentMatchData,omitempty"`
1065
1066 InterruptionData *GoogleCloudContactcenterinsightsV1InterruptionData `json:"interruptionData,omitempty"`
1067
1068 IssueMatchData *GoogleCloudContactcenterinsightsV1IssueMatchData `json:"issueMatchData,omitempty"`
1069
1070 PhraseMatchData *GoogleCloudContactcenterinsightsV1PhraseMatchData `json:"phraseMatchData,omitempty"`
1071
1072 SentimentData *GoogleCloudContactcenterinsightsV1SentimentData `json:"sentimentData,omitempty"`
1073
1074 SilenceData *GoogleCloudContactcenterinsightsV1SilenceData `json:"silenceData,omitempty"`
1075
1076
1077
1078
1079
1080 ForceSendFields []string `json:"-"`
1081
1082
1083
1084
1085 NullFields []string `json:"-"`
1086 }
1087
1088 func (s *GoogleCloudContactcenterinsightsV1CallAnnotation) MarshalJSON() ([]byte, error) {
1089 type NoMethod GoogleCloudContactcenterinsightsV1CallAnnotation
1090 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1091 }
1092
1093
1094 type GoogleCloudContactcenterinsightsV1Conversation struct {
1095
1096
1097 AgentId string `json:"agentId,omitempty"`
1098
1099 CallMetadata *GoogleCloudContactcenterinsightsV1ConversationCallMetadata `json:"callMetadata,omitempty"`
1100
1101 CreateTime string `json:"createTime,omitempty"`
1102
1103 DataSource *GoogleCloudContactcenterinsightsV1ConversationDataSource `json:"dataSource,omitempty"`
1104
1105
1106
1107 DialogflowIntents map[string]GoogleCloudContactcenterinsightsV1DialogflowIntent `json:"dialogflowIntents,omitempty"`
1108
1109 Duration string `json:"duration,omitempty"`
1110
1111
1112 ExpireTime string `json:"expireTime,omitempty"`
1113
1114
1115
1116 Labels map[string]string `json:"labels,omitempty"`
1117
1118 LanguageCode string `json:"languageCode,omitempty"`
1119
1120
1121 LatestAnalysis *GoogleCloudContactcenterinsightsV1Analysis `json:"latestAnalysis,omitempty"`
1122
1123 LatestSummary *GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData `json:"latestSummary,omitempty"`
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133 Medium string `json:"medium,omitempty"`
1134
1135
1136 Name string `json:"name,omitempty"`
1137
1138 ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"`
1139
1140 QualityMetadata *GoogleCloudContactcenterinsightsV1ConversationQualityMetadata `json:"qualityMetadata,omitempty"`
1141
1142
1143 RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"`
1144
1145 StartTime string `json:"startTime,omitempty"`
1146
1147 Transcript *GoogleCloudContactcenterinsightsV1ConversationTranscript `json:"transcript,omitempty"`
1148
1149
1150 Ttl string `json:"ttl,omitempty"`
1151
1152 TurnCount int64 `json:"turnCount,omitempty"`
1153
1154
1155 UpdateTime string `json:"updateTime,omitempty"`
1156
1157
1158 googleapi.ServerResponse `json:"-"`
1159
1160
1161
1162
1163
1164 ForceSendFields []string `json:"-"`
1165
1166
1167
1168
1169 NullFields []string `json:"-"`
1170 }
1171
1172 func (s *GoogleCloudContactcenterinsightsV1Conversation) MarshalJSON() ([]byte, error) {
1173 type NoMethod GoogleCloudContactcenterinsightsV1Conversation
1174 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1175 }
1176
1177
1178
1179 type GoogleCloudContactcenterinsightsV1ConversationCallMetadata struct {
1180
1181 AgentChannel int64 `json:"agentChannel,omitempty"`
1182
1183 CustomerChannel int64 `json:"customerChannel,omitempty"`
1184
1185
1186
1187
1188
1189 ForceSendFields []string `json:"-"`
1190
1191
1192
1193
1194 NullFields []string `json:"-"`
1195 }
1196
1197 func (s *GoogleCloudContactcenterinsightsV1ConversationCallMetadata) MarshalJSON() ([]byte, error) {
1198 type NoMethod GoogleCloudContactcenterinsightsV1ConversationCallMetadata
1199 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1200 }
1201
1202
1203
1204 type GoogleCloudContactcenterinsightsV1ConversationDataSource struct {
1205
1206 DialogflowSource *GoogleCloudContactcenterinsightsV1DialogflowSource `json:"dialogflowSource,omitempty"`
1207
1208
1209 GcsSource *GoogleCloudContactcenterinsightsV1GcsSource `json:"gcsSource,omitempty"`
1210
1211
1212
1213
1214
1215 ForceSendFields []string `json:"-"`
1216
1217
1218
1219
1220 NullFields []string `json:"-"`
1221 }
1222
1223 func (s *GoogleCloudContactcenterinsightsV1ConversationDataSource) MarshalJSON() ([]byte, error) {
1224 type NoMethod GoogleCloudContactcenterinsightsV1ConversationDataSource
1225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1226 }
1227
1228
1229
1230 type GoogleCloudContactcenterinsightsV1ConversationLevelSentiment struct {
1231
1232 ChannelTag int64 `json:"channelTag,omitempty"`
1233
1234 SentimentData *GoogleCloudContactcenterinsightsV1SentimentData `json:"sentimentData,omitempty"`
1235
1236
1237
1238
1239
1240 ForceSendFields []string `json:"-"`
1241
1242
1243
1244
1245 NullFields []string `json:"-"`
1246 }
1247
1248 func (s *GoogleCloudContactcenterinsightsV1ConversationLevelSentiment) MarshalJSON() ([]byte, error) {
1249 type NoMethod GoogleCloudContactcenterinsightsV1ConversationLevelSentiment
1250 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1251 }
1252
1253
1254
1255 type GoogleCloudContactcenterinsightsV1ConversationLevelSilence struct {
1256
1257 SilenceDuration string `json:"silenceDuration,omitempty"`
1258
1259 SilencePercentage float64 `json:"silencePercentage,omitempty"`
1260
1261
1262
1263
1264
1265 ForceSendFields []string `json:"-"`
1266
1267
1268
1269
1270 NullFields []string `json:"-"`
1271 }
1272
1273 func (s *GoogleCloudContactcenterinsightsV1ConversationLevelSilence) MarshalJSON() ([]byte, error) {
1274 type NoMethod GoogleCloudContactcenterinsightsV1ConversationLevelSilence
1275 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1276 }
1277
1278 func (s *GoogleCloudContactcenterinsightsV1ConversationLevelSilence) UnmarshalJSON(data []byte) error {
1279 type NoMethod GoogleCloudContactcenterinsightsV1ConversationLevelSilence
1280 var s1 struct {
1281 SilencePercentage gensupport.JSONFloat64 `json:"silencePercentage"`
1282 *NoMethod
1283 }
1284 s1.NoMethod = (*NoMethod)(s)
1285 if err := json.Unmarshal(data, &s1); err != nil {
1286 return err
1287 }
1288 s.SilencePercentage = float64(s1.SilencePercentage)
1289 return nil
1290 }
1291
1292
1293
1294 type GoogleCloudContactcenterinsightsV1ConversationParticipant struct {
1295
1296
1297
1298
1299 DialogflowParticipant string `json:"dialogflowParticipant,omitempty"`
1300
1301
1302
1303
1304 DialogflowParticipantName string `json:"dialogflowParticipantName,omitempty"`
1305
1306 ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316 Role string `json:"role,omitempty"`
1317
1318 UserId string `json:"userId,omitempty"`
1319
1320
1321
1322
1323
1324 ForceSendFields []string `json:"-"`
1325
1326
1327
1328
1329 NullFields []string `json:"-"`
1330 }
1331
1332 func (s *GoogleCloudContactcenterinsightsV1ConversationParticipant) MarshalJSON() ([]byte, error) {
1333 type NoMethod GoogleCloudContactcenterinsightsV1ConversationParticipant
1334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1335 }
1336
1337
1338
1339 type GoogleCloudContactcenterinsightsV1ConversationQualityMetadata struct {
1340
1341 AgentInfo []*GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo `json:"agentInfo,omitempty"`
1342
1343
1344 CustomerSatisfactionRating int64 `json:"customerSatisfactionRating,omitempty"`
1345
1346
1347 MenuPath string `json:"menuPath,omitempty"`
1348
1349
1350 WaitDuration string `json:"waitDuration,omitempty"`
1351
1352
1353
1354
1355
1356 ForceSendFields []string `json:"-"`
1357
1358
1359
1360
1361 NullFields []string `json:"-"`
1362 }
1363
1364 func (s *GoogleCloudContactcenterinsightsV1ConversationQualityMetadata) MarshalJSON() ([]byte, error) {
1365 type NoMethod GoogleCloudContactcenterinsightsV1ConversationQualityMetadata
1366 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1367 }
1368
1369
1370
1371 type GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo struct {
1372
1373 AgentId string `json:"agentId,omitempty"`
1374
1375 DisplayName string `json:"displayName,omitempty"`
1376
1377
1378 DispositionCode string `json:"dispositionCode,omitempty"`
1379
1380 Team string `json:"team,omitempty"`
1381
1382
1383
1384
1385
1386 ForceSendFields []string `json:"-"`
1387
1388
1389
1390
1391 NullFields []string `json:"-"`
1392 }
1393
1394 func (s *GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo) MarshalJSON() ([]byte, error) {
1395 type NoMethod GoogleCloudContactcenterinsightsV1ConversationQualityMetadataAgentInfo
1396 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1397 }
1398
1399
1400
1401 type GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData struct {
1402
1403
1404 AnswerRecord string `json:"answerRecord,omitempty"`
1405
1406 Confidence float64 `json:"confidence,omitempty"`
1407
1408
1409
1410
1411 ConversationModel string `json:"conversationModel,omitempty"`
1412
1413
1414 Metadata map[string]string `json:"metadata,omitempty"`
1415
1416 Text string `json:"text,omitempty"`
1417
1418
1419
1420 TextSections map[string]string `json:"textSections,omitempty"`
1421
1422
1423
1424
1425
1426 ForceSendFields []string `json:"-"`
1427
1428
1429
1430
1431 NullFields []string `json:"-"`
1432 }
1433
1434 func (s *GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData) MarshalJSON() ([]byte, error) {
1435 type NoMethod GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData
1436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1437 }
1438
1439 func (s *GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData) UnmarshalJSON(data []byte) error {
1440 type NoMethod GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData
1441 var s1 struct {
1442 Confidence gensupport.JSONFloat64 `json:"confidence"`
1443 *NoMethod
1444 }
1445 s1.NoMethod = (*NoMethod)(s)
1446 if err := json.Unmarshal(data, &s1); err != nil {
1447 return err
1448 }
1449 s.Confidence = float64(s1.Confidence)
1450 return nil
1451 }
1452
1453
1454
1455 type GoogleCloudContactcenterinsightsV1ConversationTranscript struct {
1456
1457
1458 TranscriptSegments []*GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment `json:"transcriptSegments,omitempty"`
1459
1460
1461
1462
1463
1464 ForceSendFields []string `json:"-"`
1465
1466
1467
1468
1469 NullFields []string `json:"-"`
1470 }
1471
1472 func (s *GoogleCloudContactcenterinsightsV1ConversationTranscript) MarshalJSON() ([]byte, error) {
1473 type NoMethod GoogleCloudContactcenterinsightsV1ConversationTranscript
1474 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1475 }
1476
1477
1478
1479 type GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment struct {
1480
1481
1482
1483
1484 ChannelTag int64 `json:"channelTag,omitempty"`
1485
1486
1487 Confidence float64 `json:"confidence,omitempty"`
1488
1489
1490 DialogflowSegmentMetadata *GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata `json:"dialogflowSegmentMetadata,omitempty"`
1491
1492
1493
1494 LanguageCode string `json:"languageCode,omitempty"`
1495
1496 MessageTime string `json:"messageTime,omitempty"`
1497
1498 SegmentParticipant *GoogleCloudContactcenterinsightsV1ConversationParticipant `json:"segmentParticipant,omitempty"`
1499
1500 Sentiment *GoogleCloudContactcenterinsightsV1SentimentData `json:"sentiment,omitempty"`
1501
1502 Text string `json:"text,omitempty"`
1503
1504 Words []*GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo `json:"words,omitempty"`
1505
1506
1507
1508
1509
1510 ForceSendFields []string `json:"-"`
1511
1512
1513
1514
1515 NullFields []string `json:"-"`
1516 }
1517
1518 func (s *GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment) MarshalJSON() ([]byte, error) {
1519 type NoMethod GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment
1520 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1521 }
1522
1523 func (s *GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment) UnmarshalJSON(data []byte) error {
1524 type NoMethod GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegment
1525 var s1 struct {
1526 Confidence gensupport.JSONFloat64 `json:"confidence"`
1527 *NoMethod
1528 }
1529 s1.NoMethod = (*NoMethod)(s)
1530 if err := json.Unmarshal(data, &s1); err != nil {
1531 return err
1532 }
1533 s.Confidence = float64(s1.Confidence)
1534 return nil
1535 }
1536
1537
1538
1539
1540 type GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata struct {
1541
1542
1543 SmartReplyAllowlistCovered bool `json:"smartReplyAllowlistCovered,omitempty"`
1544
1545
1546
1547
1548
1549 ForceSendFields []string `json:"-"`
1550
1551
1552
1553
1554 NullFields []string `json:"-"`
1555 }
1556
1557 func (s *GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata) MarshalJSON() ([]byte, error) {
1558 type NoMethod GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
1559 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1560 }
1561
1562
1563
1564 type GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo struct {
1565
1566
1567 Confidence float64 `json:"confidence,omitempty"`
1568
1569
1570 EndOffset string `json:"endOffset,omitempty"`
1571
1572
1573 StartOffset string `json:"startOffset,omitempty"`
1574
1575 Word string `json:"word,omitempty"`
1576
1577
1578
1579
1580
1581 ForceSendFields []string `json:"-"`
1582
1583
1584
1585
1586 NullFields []string `json:"-"`
1587 }
1588
1589 func (s *GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo) MarshalJSON() ([]byte, error) {
1590 type NoMethod GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo
1591 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1592 }
1593
1594 func (s *GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo) UnmarshalJSON(data []byte) error {
1595 type NoMethod GoogleCloudContactcenterinsightsV1ConversationTranscriptTranscriptSegmentWordInfo
1596 var s1 struct {
1597 Confidence gensupport.JSONFloat64 `json:"confidence"`
1598 *NoMethod
1599 }
1600 s1.NoMethod = (*NoMethod)(s)
1601 if err := json.Unmarshal(data, &s1); err != nil {
1602 return err
1603 }
1604 s.Confidence = float64(s1.Confidence)
1605 return nil
1606 }
1607
1608
1609
1610 type GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata struct {
1611
1612
1613 AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"`
1614
1615
1616 Conversation string `json:"conversation,omitempty"`
1617
1618 CreateTime string `json:"createTime,omitempty"`
1619
1620 EndTime string `json:"endTime,omitempty"`
1621
1622
1623
1624
1625
1626 ForceSendFields []string `json:"-"`
1627
1628
1629
1630
1631 NullFields []string `json:"-"`
1632 }
1633
1634 func (s *GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata) MarshalJSON() ([]byte, error) {
1635 type NoMethod GoogleCloudContactcenterinsightsV1CreateAnalysisOperationMetadata
1636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1637 }
1638
1639
1640
1641 type GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata struct {
1642
1643 CreateTime string `json:"createTime,omitempty"`
1644
1645 EndTime string `json:"endTime,omitempty"`
1646
1647 Request *GoogleCloudContactcenterinsightsV1CreateIssueModelRequest `json:"request,omitempty"`
1648
1649
1650
1651
1652
1653 ForceSendFields []string `json:"-"`
1654
1655
1656
1657
1658 NullFields []string `json:"-"`
1659 }
1660
1661 func (s *GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata) MarshalJSON() ([]byte, error) {
1662 type NoMethod GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata
1663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1664 }
1665
1666
1667
1668 type GoogleCloudContactcenterinsightsV1CreateIssueModelRequest struct {
1669
1670 IssueModel *GoogleCloudContactcenterinsightsV1IssueModel `json:"issueModel,omitempty"`
1671
1672 Parent string `json:"parent,omitempty"`
1673
1674
1675
1676
1677
1678 ForceSendFields []string `json:"-"`
1679
1680
1681
1682
1683 NullFields []string `json:"-"`
1684 }
1685
1686 func (s *GoogleCloudContactcenterinsightsV1CreateIssueModelRequest) MarshalJSON() ([]byte, error) {
1687 type NoMethod GoogleCloudContactcenterinsightsV1CreateIssueModelRequest
1688 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1689 }
1690
1691
1692
1693 type GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata struct {
1694
1695 CreateTime string `json:"createTime,omitempty"`
1696
1697 EndTime string `json:"endTime,omitempty"`
1698
1699 Request *GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest `json:"request,omitempty"`
1700
1701
1702
1703
1704
1705 ForceSendFields []string `json:"-"`
1706
1707
1708
1709
1710 NullFields []string `json:"-"`
1711 }
1712
1713 func (s *GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata) MarshalJSON() ([]byte, error) {
1714 type NoMethod GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata
1715 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1716 }
1717
1718
1719
1720 type GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest struct {
1721
1722 Name string `json:"name,omitempty"`
1723
1724
1725
1726
1727
1728 ForceSendFields []string `json:"-"`
1729
1730
1731
1732
1733 NullFields []string `json:"-"`
1734 }
1735
1736 func (s *GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest) MarshalJSON() ([]byte, error) {
1737 type NoMethod GoogleCloudContactcenterinsightsV1DeleteIssueModelRequest
1738 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1739 }
1740
1741
1742
1743 type GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata struct {
1744
1745 CreateTime string `json:"createTime,omitempty"`
1746
1747 EndTime string `json:"endTime,omitempty"`
1748
1749 Request *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest `json:"request,omitempty"`
1750
1751
1752
1753
1754
1755 ForceSendFields []string `json:"-"`
1756
1757
1758
1759
1760 NullFields []string `json:"-"`
1761 }
1762
1763 func (s *GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata) MarshalJSON() ([]byte, error) {
1764 type NoMethod GoogleCloudContactcenterinsightsV1DeployIssueModelMetadata
1765 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1766 }
1767
1768
1769
1770 type GoogleCloudContactcenterinsightsV1DeployIssueModelRequest struct {
1771
1772 Name string `json:"name,omitempty"`
1773
1774
1775
1776
1777
1778 ForceSendFields []string `json:"-"`
1779
1780
1781
1782
1783 NullFields []string `json:"-"`
1784 }
1785
1786 func (s *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest) MarshalJSON() ([]byte, error) {
1787 type NoMethod GoogleCloudContactcenterinsightsV1DeployIssueModelRequest
1788 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1789 }
1790
1791
1792
1793 type GoogleCloudContactcenterinsightsV1DeployIssueModelResponse struct {
1794 }
1795
1796
1797
1798
1799 type GoogleCloudContactcenterinsightsV1DialogflowIntent struct {
1800
1801 DisplayName string `json:"displayName,omitempty"`
1802
1803
1804
1805
1806
1807 ForceSendFields []string `json:"-"`
1808
1809
1810
1811
1812 NullFields []string `json:"-"`
1813 }
1814
1815 func (s *GoogleCloudContactcenterinsightsV1DialogflowIntent) MarshalJSON() ([]byte, error) {
1816 type NoMethod GoogleCloudContactcenterinsightsV1DialogflowIntent
1817 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1818 }
1819
1820
1821
1822 type GoogleCloudContactcenterinsightsV1DialogflowInteractionData struct {
1823
1824
1825 Confidence float64 `json:"confidence,omitempty"`
1826
1827
1828 DialogflowIntentId string `json:"dialogflowIntentId,omitempty"`
1829
1830
1831
1832
1833
1834 ForceSendFields []string `json:"-"`
1835
1836
1837
1838
1839 NullFields []string `json:"-"`
1840 }
1841
1842 func (s *GoogleCloudContactcenterinsightsV1DialogflowInteractionData) MarshalJSON() ([]byte, error) {
1843 type NoMethod GoogleCloudContactcenterinsightsV1DialogflowInteractionData
1844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1845 }
1846
1847 func (s *GoogleCloudContactcenterinsightsV1DialogflowInteractionData) UnmarshalJSON(data []byte) error {
1848 type NoMethod GoogleCloudContactcenterinsightsV1DialogflowInteractionData
1849 var s1 struct {
1850 Confidence gensupport.JSONFloat64 `json:"confidence"`
1851 *NoMethod
1852 }
1853 s1.NoMethod = (*NoMethod)(s)
1854 if err := json.Unmarshal(data, &s1); err != nil {
1855 return err
1856 }
1857 s.Confidence = float64(s1.Confidence)
1858 return nil
1859 }
1860
1861
1862
1863 type GoogleCloudContactcenterinsightsV1DialogflowSource struct {
1864
1865
1866 AudioUri string `json:"audioUri,omitempty"`
1867
1868
1869
1870 DialogflowConversation string `json:"dialogflowConversation,omitempty"`
1871
1872
1873
1874
1875
1876 ForceSendFields []string `json:"-"`
1877
1878
1879
1880
1881 NullFields []string `json:"-"`
1882 }
1883
1884 func (s *GoogleCloudContactcenterinsightsV1DialogflowSource) MarshalJSON() ([]byte, error) {
1885 type NoMethod GoogleCloudContactcenterinsightsV1DialogflowSource
1886 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1887 }
1888
1889
1890
1891
1892 type GoogleCloudContactcenterinsightsV1Entity struct {
1893
1894 DisplayName string `json:"displayName,omitempty"`
1895
1896
1897
1898
1899 Metadata map[string]string `json:"metadata,omitempty"`
1900
1901
1902
1903
1904 Salience float64 `json:"salience,omitempty"`
1905
1906
1907 Sentiment *GoogleCloudContactcenterinsightsV1SentimentData `json:"sentiment,omitempty"`
1908
1909
1910
1911
1912
1913
1914
1915
1916
1917
1918
1919
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938 Type string `json:"type,omitempty"`
1939
1940
1941
1942
1943
1944 ForceSendFields []string `json:"-"`
1945
1946
1947
1948
1949 NullFields []string `json:"-"`
1950 }
1951
1952 func (s *GoogleCloudContactcenterinsightsV1Entity) MarshalJSON() ([]byte, error) {
1953 type NoMethod GoogleCloudContactcenterinsightsV1Entity
1954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1955 }
1956
1957 func (s *GoogleCloudContactcenterinsightsV1Entity) UnmarshalJSON(data []byte) error {
1958 type NoMethod GoogleCloudContactcenterinsightsV1Entity
1959 var s1 struct {
1960 Salience gensupport.JSONFloat64 `json:"salience"`
1961 *NoMethod
1962 }
1963 s1.NoMethod = (*NoMethod)(s)
1964 if err := json.Unmarshal(data, &s1); err != nil {
1965 return err
1966 }
1967 s.Salience = float64(s1.Salience)
1968 return nil
1969 }
1970
1971
1972
1973
1974 type GoogleCloudContactcenterinsightsV1EntityMentionData struct {
1975
1976
1977 EntityUniqueId string `json:"entityUniqueId,omitempty"`
1978
1979 Sentiment *GoogleCloudContactcenterinsightsV1SentimentData `json:"sentiment,omitempty"`
1980
1981
1982
1983
1984
1985
1986 Type string `json:"type,omitempty"`
1987
1988
1989
1990
1991
1992 ForceSendFields []string `json:"-"`
1993
1994
1995
1996
1997 NullFields []string `json:"-"`
1998 }
1999
2000 func (s *GoogleCloudContactcenterinsightsV1EntityMentionData) MarshalJSON() ([]byte, error) {
2001 type NoMethod GoogleCloudContactcenterinsightsV1EntityMentionData
2002 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2003 }
2004
2005
2006
2007 type GoogleCloudContactcenterinsightsV1ExactMatchConfig struct {
2008
2009
2010 CaseSensitive bool `json:"caseSensitive,omitempty"`
2011
2012
2013
2014
2015
2016 ForceSendFields []string `json:"-"`
2017
2018
2019
2020
2021 NullFields []string `json:"-"`
2022 }
2023
2024 func (s *GoogleCloudContactcenterinsightsV1ExactMatchConfig) MarshalJSON() ([]byte, error) {
2025 type NoMethod GoogleCloudContactcenterinsightsV1ExactMatchConfig
2026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2027 }
2028
2029
2030
2031 type GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata struct {
2032
2033 CreateTime string `json:"createTime,omitempty"`
2034
2035 EndTime string `json:"endTime,omitempty"`
2036
2037
2038 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
2039
2040 Request *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest `json:"request,omitempty"`
2041
2042
2043
2044
2045
2046 ForceSendFields []string `json:"-"`
2047
2048
2049
2050
2051 NullFields []string `json:"-"`
2052 }
2053
2054 func (s *GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata) MarshalJSON() ([]byte, error) {
2055 type NoMethod GoogleCloudContactcenterinsightsV1ExportInsightsDataMetadata
2056 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2057 }
2058
2059
2060
2061 type GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest struct {
2062
2063 BigQueryDestination *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination `json:"bigQueryDestination,omitempty"`
2064
2065
2066 Filter string `json:"filter,omitempty"`
2067
2068
2069
2070
2071 KmsKey string `json:"kmsKey,omitempty"`
2072
2073 Parent string `json:"parent,omitempty"`
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084 WriteDisposition string `json:"writeDisposition,omitempty"`
2085
2086
2087
2088
2089
2090 ForceSendFields []string `json:"-"`
2091
2092
2093
2094
2095 NullFields []string `json:"-"`
2096 }
2097
2098 func (s *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest) MarshalJSON() ([]byte, error) {
2099 type NoMethod GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest
2100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2101 }
2102
2103
2104
2105 type GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination struct {
2106
2107
2108
2109 Dataset string `json:"dataset,omitempty"`
2110
2111
2112
2113 ProjectId string `json:"projectId,omitempty"`
2114
2115
2116
2117 Table string `json:"table,omitempty"`
2118
2119
2120
2121
2122
2123 ForceSendFields []string `json:"-"`
2124
2125
2126
2127
2128 NullFields []string `json:"-"`
2129 }
2130
2131 func (s *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination) MarshalJSON() ([]byte, error) {
2132 type NoMethod GoogleCloudContactcenterinsightsV1ExportInsightsDataRequestBigQueryDestination
2133 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2134 }
2135
2136
2137
2138 type GoogleCloudContactcenterinsightsV1ExportInsightsDataResponse struct {
2139 }
2140
2141
2142
2143 type GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata struct {
2144
2145 CreateTime string `json:"createTime,omitempty"`
2146
2147 EndTime string `json:"endTime,omitempty"`
2148
2149 Request *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest `json:"request,omitempty"`
2150
2151
2152
2153
2154
2155 ForceSendFields []string `json:"-"`
2156
2157
2158
2159
2160 NullFields []string `json:"-"`
2161 }
2162
2163 func (s *GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata) MarshalJSON() ([]byte, error) {
2164 type NoMethod GoogleCloudContactcenterinsightsV1ExportIssueModelMetadata
2165 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2166 }
2167
2168
2169
2170 type GoogleCloudContactcenterinsightsV1ExportIssueModelRequest struct {
2171
2172 GcsDestination *GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination `json:"gcsDestination,omitempty"`
2173
2174 Name string `json:"name,omitempty"`
2175
2176
2177
2178
2179
2180 ForceSendFields []string `json:"-"`
2181
2182
2183
2184
2185 NullFields []string `json:"-"`
2186 }
2187
2188 func (s *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest) MarshalJSON() ([]byte, error) {
2189 type NoMethod GoogleCloudContactcenterinsightsV1ExportIssueModelRequest
2190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2191 }
2192
2193
2194
2195 type GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination struct {
2196
2197 ObjectUri string `json:"objectUri,omitempty"`
2198
2199
2200
2201
2202
2203 ForceSendFields []string `json:"-"`
2204
2205
2206
2207
2208 NullFields []string `json:"-"`
2209 }
2210
2211 func (s *GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination) MarshalJSON() ([]byte, error) {
2212 type NoMethod GoogleCloudContactcenterinsightsV1ExportIssueModelRequestGcsDestination
2213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2214 }
2215
2216
2217
2218 type GoogleCloudContactcenterinsightsV1ExportIssueModelResponse struct {
2219 }
2220
2221
2222
2223 type GoogleCloudContactcenterinsightsV1FaqAnswerData struct {
2224
2225 Answer string `json:"answer,omitempty"`
2226
2227
2228
2229 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
2230
2231
2232 Metadata map[string]string `json:"metadata,omitempty"`
2233
2234
2235 QueryRecord string `json:"queryRecord,omitempty"`
2236
2237 Question string `json:"question,omitempty"`
2238
2239
2240 Source string `json:"source,omitempty"`
2241
2242
2243
2244
2245
2246 ForceSendFields []string `json:"-"`
2247
2248
2249
2250
2251 NullFields []string `json:"-"`
2252 }
2253
2254 func (s *GoogleCloudContactcenterinsightsV1FaqAnswerData) MarshalJSON() ([]byte, error) {
2255 type NoMethod GoogleCloudContactcenterinsightsV1FaqAnswerData
2256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2257 }
2258
2259 func (s *GoogleCloudContactcenterinsightsV1FaqAnswerData) UnmarshalJSON(data []byte) error {
2260 type NoMethod GoogleCloudContactcenterinsightsV1FaqAnswerData
2261 var s1 struct {
2262 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
2263 *NoMethod
2264 }
2265 s1.NoMethod = (*NoMethod)(s)
2266 if err := json.Unmarshal(data, &s1); err != nil {
2267 return err
2268 }
2269 s.ConfidenceScore = float64(s1.ConfidenceScore)
2270 return nil
2271 }
2272
2273
2274
2275 type GoogleCloudContactcenterinsightsV1FreeFormSuggestion struct {
2276
2277 Labels []string `json:"labels,omitempty"`
2278
2279 Response string `json:"response,omitempty"`
2280
2281
2282
2283
2284
2285 ForceSendFields []string `json:"-"`
2286
2287
2288
2289
2290 NullFields []string `json:"-"`
2291 }
2292
2293 func (s *GoogleCloudContactcenterinsightsV1FreeFormSuggestion) MarshalJSON() ([]byte, error) {
2294 type NoMethod GoogleCloudContactcenterinsightsV1FreeFormSuggestion
2295 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2296 }
2297
2298
2299
2300 type GoogleCloudContactcenterinsightsV1GcsSource struct {
2301
2302
2303 AudioUri string `json:"audioUri,omitempty"`
2304
2305
2306 TranscriptUri string `json:"transcriptUri,omitempty"`
2307
2308
2309
2310
2311
2312 ForceSendFields []string `json:"-"`
2313
2314
2315
2316
2317 NullFields []string `json:"-"`
2318 }
2319
2320 func (s *GoogleCloudContactcenterinsightsV1GcsSource) MarshalJSON() ([]byte, error) {
2321 type NoMethod GoogleCloudContactcenterinsightsV1GcsSource
2322 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2323 }
2324
2325
2326
2327 type GoogleCloudContactcenterinsightsV1GeneratorSuggestion struct {
2328
2329 AgentCoachingSuggestion *GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"`
2330
2331 FreeFormSuggestion *GoogleCloudContactcenterinsightsV1FreeFormSuggestion `json:"freeFormSuggestion,omitempty"`
2332
2333 SummarySuggestion *GoogleCloudContactcenterinsightsV1SummarySuggestion `json:"summarySuggestion,omitempty"`
2334
2335
2336
2337
2338
2339 ForceSendFields []string `json:"-"`
2340
2341
2342
2343
2344 NullFields []string `json:"-"`
2345 }
2346
2347 func (s *GoogleCloudContactcenterinsightsV1GeneratorSuggestion) MarshalJSON() ([]byte, error) {
2348 type NoMethod GoogleCloudContactcenterinsightsV1GeneratorSuggestion
2349 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2350 }
2351
2352
2353
2354 type GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse struct {
2355
2356 GeneratorSuggestion *GoogleCloudContactcenterinsightsV1GeneratorSuggestion `json:"generatorSuggestion,omitempty"`
2357
2358
2359
2360
2361
2362 ForceSendFields []string `json:"-"`
2363
2364
2365
2366
2367 NullFields []string `json:"-"`
2368 }
2369
2370 func (s *GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse) MarshalJSON() ([]byte, error) {
2371 type NoMethod GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse
2372 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2373 }
2374
2375
2376
2377
2378 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse struct {
2379
2380
2381 SuggestedQuery *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery `json:"suggestedQuery,omitempty"`
2382
2383
2384
2385 SuggestedQueryAnswer *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer `json:"suggestedQueryAnswer,omitempty"`
2386
2387
2388
2389
2390
2391 ForceSendFields []string `json:"-"`
2392
2393
2394
2395
2396 NullFields []string `json:"-"`
2397 }
2398
2399 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse) MarshalJSON() ([]byte, error) {
2400 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse
2401 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2402 }
2403
2404
2405
2406
2407 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer struct {
2408
2409
2410 AnswerText string `json:"answerText,omitempty"`
2411
2412 FaqSource *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource `json:"faqSource,omitempty"`
2413
2414 GenerativeSource *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource `json:"generativeSource,omitempty"`
2415
2416 IntentMatchingSource *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource `json:"intentMatchingSource,omitempty"`
2417
2418
2419
2420 MatchConfidence float64 `json:"matchConfidence,omitempty"`
2421
2422
2423
2424
2425
2426 ForceSendFields []string `json:"-"`
2427
2428
2429
2430
2431 NullFields []string `json:"-"`
2432 }
2433
2434 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer) MarshalJSON() ([]byte, error) {
2435 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer
2436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2437 }
2438
2439 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer) UnmarshalJSON(data []byte) error {
2440 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer
2441 var s1 struct {
2442 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
2443 *NoMethod
2444 }
2445 s1.NoMethod = (*NoMethod)(s)
2446 if err := json.Unmarshal(data, &s1); err != nil {
2447 return err
2448 }
2449 s.MatchConfidence = float64(s1.MatchConfidence)
2450 return nil
2451 }
2452
2453
2454
2455 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource struct {
2456
2457
2458 Document string `json:"document,omitempty"`
2459
2460 Question string `json:"question,omitempty"`
2461
2462
2463
2464
2465
2466 ForceSendFields []string `json:"-"`
2467
2468
2469
2470
2471 NullFields []string `json:"-"`
2472 }
2473
2474 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource) MarshalJSON() ([]byte, error) {
2475 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
2476 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2477 }
2478
2479
2480
2481 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource struct {
2482
2483
2484 Snippets []*GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet `json:"snippets,omitempty"`
2485
2486
2487
2488
2489
2490 ForceSendFields []string `json:"-"`
2491
2492
2493
2494
2495 NullFields []string `json:"-"`
2496 }
2497
2498 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource) MarshalJSON() ([]byte, error) {
2499 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
2500 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2501 }
2502
2503
2504
2505 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet struct {
2506
2507
2508 Document string `json:"document,omitempty"`
2509
2510 Text string `json:"text,omitempty"`
2511
2512 Title string `json:"title,omitempty"`
2513
2514 Uri string `json:"uri,omitempty"`
2515
2516
2517
2518
2519
2520 ForceSendFields []string `json:"-"`
2521
2522
2523
2524
2525 NullFields []string `json:"-"`
2526 }
2527
2528 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet) MarshalJSON() ([]byte, error) {
2529 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet
2530 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2531 }
2532
2533
2534
2535 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource struct {
2536
2537 Title string `json:"title,omitempty"`
2538
2539 Uri string `json:"uri,omitempty"`
2540
2541
2542
2543
2544
2545 ForceSendFields []string `json:"-"`
2546
2547
2548
2549
2550 NullFields []string `json:"-"`
2551 }
2552
2553 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource) MarshalJSON() ([]byte, error) {
2554 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
2555 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2556 }
2557
2558
2559
2560 type GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery struct {
2561
2562 QueryText string `json:"queryText,omitempty"`
2563
2564 Score float64 `json:"score,omitempty"`
2565
2566
2567
2568
2569
2570 ForceSendFields []string `json:"-"`
2571
2572
2573
2574
2575 NullFields []string `json:"-"`
2576 }
2577
2578 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery) MarshalJSON() ([]byte, error) {
2579 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery
2580 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2581 }
2582
2583 func (s *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery) UnmarshalJSON(data []byte) error {
2584 type NoMethod GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery
2585 var s1 struct {
2586 Score gensupport.JSONFloat64 `json:"score"`
2587 *NoMethod
2588 }
2589 s1.NoMethod = (*NoMethod)(s)
2590 if err := json.Unmarshal(data, &s1); err != nil {
2591 return err
2592 }
2593 s.Score = float64(s1.Score)
2594 return nil
2595 }
2596
2597
2598 type GoogleCloudContactcenterinsightsV1HoldData struct {
2599 }
2600
2601
2602
2603 type GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata struct {
2604
2605 CreateTime string `json:"createTime,omitempty"`
2606
2607 EndTime string `json:"endTime,omitempty"`
2608
2609 Request *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest `json:"request,omitempty"`
2610
2611
2612
2613
2614
2615 ForceSendFields []string `json:"-"`
2616
2617
2618
2619
2620 NullFields []string `json:"-"`
2621 }
2622
2623 func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) {
2624 type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelMetadata
2625 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2626 }
2627
2628
2629
2630 type GoogleCloudContactcenterinsightsV1ImportIssueModelRequest struct {
2631
2632
2633
2634
2635 CreateNewModel bool `json:"createNewModel,omitempty"`
2636
2637 GcsSource *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"`
2638
2639 Parent string `json:"parent,omitempty"`
2640
2641
2642
2643
2644
2645 ForceSendFields []string `json:"-"`
2646
2647
2648
2649
2650 NullFields []string `json:"-"`
2651 }
2652
2653 func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) MarshalJSON() ([]byte, error) {
2654 type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequest
2655 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2656 }
2657
2658
2659
2660 type GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource struct {
2661
2662 ObjectUri string `json:"objectUri,omitempty"`
2663
2664
2665
2666
2667
2668 ForceSendFields []string `json:"-"`
2669
2670
2671
2672
2673 NullFields []string `json:"-"`
2674 }
2675
2676 func (s *GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) {
2677 type NoMethod GoogleCloudContactcenterinsightsV1ImportIssueModelRequestGcsSource
2678 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2679 }
2680
2681
2682
2683 type GoogleCloudContactcenterinsightsV1ImportIssueModelResponse struct {
2684 }
2685
2686
2687
2688 type GoogleCloudContactcenterinsightsV1IngestConversationsMetadata struct {
2689
2690 CreateTime string `json:"createTime,omitempty"`
2691
2692 EndTime string `json:"endTime,omitempty"`
2693
2694
2695 IngestConversationsStats *GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats `json:"ingestConversationsStats,omitempty"`
2696
2697
2698 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
2699
2700 Request *GoogleCloudContactcenterinsightsV1IngestConversationsRequest `json:"request,omitempty"`
2701
2702
2703
2704
2705
2706 ForceSendFields []string `json:"-"`
2707
2708
2709
2710
2711 NullFields []string `json:"-"`
2712 }
2713
2714 func (s *GoogleCloudContactcenterinsightsV1IngestConversationsMetadata) MarshalJSON() ([]byte, error) {
2715 type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsMetadata
2716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2717 }
2718
2719
2720
2721 type GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats struct {
2722
2723
2724 DuplicatesSkippedCount int64 `json:"duplicatesSkippedCount,omitempty"`
2725
2726
2727
2728 FailedIngestCount int64 `json:"failedIngestCount,omitempty"`
2729
2730
2731 ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"`
2732
2733
2734 SuccessfulIngestCount int64 `json:"successfulIngestCount,omitempty"`
2735
2736
2737
2738
2739
2740 ForceSendFields []string `json:"-"`
2741
2742
2743
2744
2745 NullFields []string `json:"-"`
2746 }
2747
2748 func (s *GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats) MarshalJSON() ([]byte, error) {
2749 type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsMetadataIngestConversationsStats
2750 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2751 }
2752
2753
2754
2755 type GoogleCloudContactcenterinsightsV1IngestConversationsRequest struct {
2756
2757 ConversationConfig *GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig `json:"conversationConfig,omitempty"`
2758
2759
2760 GcsSource *GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource `json:"gcsSource,omitempty"`
2761
2762 Parent string `json:"parent,omitempty"`
2763
2764
2765 RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"`
2766
2767
2768
2769
2770 SampleSize int64 `json:"sampleSize,omitempty"`
2771
2772
2773 SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"`
2774
2775
2776 TranscriptObjectConfig *GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig `json:"transcriptObjectConfig,omitempty"`
2777
2778
2779
2780
2781
2782 ForceSendFields []string `json:"-"`
2783
2784
2785
2786
2787 NullFields []string `json:"-"`
2788 }
2789
2790 func (s *GoogleCloudContactcenterinsightsV1IngestConversationsRequest) MarshalJSON() ([]byte, error) {
2791 type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsRequest
2792 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2793 }
2794
2795
2796
2797 type GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig struct {
2798
2799
2800
2801 AgentChannel int64 `json:"agentChannel,omitempty"`
2802
2803
2804
2805
2806 AgentId string `json:"agentId,omitempty"`
2807
2808
2809
2810 CustomerChannel int64 `json:"customerChannel,omitempty"`
2811
2812
2813
2814
2815
2816 ForceSendFields []string `json:"-"`
2817
2818
2819
2820
2821 NullFields []string `json:"-"`
2822 }
2823
2824 func (s *GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig) MarshalJSON() ([]byte, error) {
2825 type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsRequestConversationConfig
2826 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2827 }
2828
2829
2830
2831 type GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource struct {
2832
2833
2834
2835
2836
2837
2838
2839
2840 BucketObjectType string `json:"bucketObjectType,omitempty"`
2841
2842 BucketUri string `json:"bucketUri,omitempty"`
2843
2844
2845
2846
2847 CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"`
2848
2849
2850
2851
2852 MetadataBucketUri string `json:"metadataBucketUri,omitempty"`
2853
2854
2855
2856
2857
2858 ForceSendFields []string `json:"-"`
2859
2860
2861
2862
2863 NullFields []string `json:"-"`
2864 }
2865
2866 func (s *GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource) MarshalJSON() ([]byte, error) {
2867 type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsRequestGcsSource
2868 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2869 }
2870
2871
2872
2873 type GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig struct {
2874
2875
2876
2877
2878
2879
2880
2881
2882 Medium string `json:"medium,omitempty"`
2883
2884
2885
2886
2887
2888 ForceSendFields []string `json:"-"`
2889
2890
2891
2892
2893 NullFields []string `json:"-"`
2894 }
2895
2896 func (s *GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig) MarshalJSON() ([]byte, error) {
2897 type NoMethod GoogleCloudContactcenterinsightsV1IngestConversationsRequestTranscriptObjectConfig
2898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2899 }
2900
2901
2902
2903 type GoogleCloudContactcenterinsightsV1IngestConversationsResponse struct {
2904 }
2905
2906
2907
2908 type GoogleCloudContactcenterinsightsV1Intent struct {
2909
2910 DisplayName string `json:"displayName,omitempty"`
2911
2912 Id string `json:"id,omitempty"`
2913
2914
2915
2916
2917
2918 ForceSendFields []string `json:"-"`
2919
2920
2921
2922
2923 NullFields []string `json:"-"`
2924 }
2925
2926 func (s *GoogleCloudContactcenterinsightsV1Intent) MarshalJSON() ([]byte, error) {
2927 type NoMethod GoogleCloudContactcenterinsightsV1Intent
2928 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2929 }
2930
2931
2932
2933
2934
2935 type GoogleCloudContactcenterinsightsV1IntentMatchData struct {
2936
2937
2938 IntentUniqueId string `json:"intentUniqueId,omitempty"`
2939
2940
2941
2942
2943
2944 ForceSendFields []string `json:"-"`
2945
2946
2947
2948
2949 NullFields []string `json:"-"`
2950 }
2951
2952 func (s *GoogleCloudContactcenterinsightsV1IntentMatchData) MarshalJSON() ([]byte, error) {
2953 type NoMethod GoogleCloudContactcenterinsightsV1IntentMatchData
2954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2955 }
2956
2957
2958
2959 type GoogleCloudContactcenterinsightsV1InterruptionData struct {
2960 }
2961
2962
2963 type GoogleCloudContactcenterinsightsV1Issue struct {
2964
2965 CreateTime string `json:"createTime,omitempty"`
2966
2967 DisplayName string `json:"displayName,omitempty"`
2968
2969
2970
2971 Name string `json:"name,omitempty"`
2972
2973
2974 SampleUtterances []string `json:"sampleUtterances,omitempty"`
2975
2976 UpdateTime string `json:"updateTime,omitempty"`
2977
2978
2979 googleapi.ServerResponse `json:"-"`
2980
2981
2982
2983
2984
2985 ForceSendFields []string `json:"-"`
2986
2987
2988
2989
2990 NullFields []string `json:"-"`
2991 }
2992
2993 func (s *GoogleCloudContactcenterinsightsV1Issue) MarshalJSON() ([]byte, error) {
2994 type NoMethod GoogleCloudContactcenterinsightsV1Issue
2995 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2996 }
2997
2998
2999
3000 type GoogleCloudContactcenterinsightsV1IssueAssignment struct {
3001
3002
3003 DisplayName string `json:"displayName,omitempty"`
3004
3005 Issue string `json:"issue,omitempty"`
3006
3007
3008 Score float64 `json:"score,omitempty"`
3009
3010
3011
3012
3013
3014 ForceSendFields []string `json:"-"`
3015
3016
3017
3018
3019 NullFields []string `json:"-"`
3020 }
3021
3022 func (s *GoogleCloudContactcenterinsightsV1IssueAssignment) MarshalJSON() ([]byte, error) {
3023 type NoMethod GoogleCloudContactcenterinsightsV1IssueAssignment
3024 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3025 }
3026
3027 func (s *GoogleCloudContactcenterinsightsV1IssueAssignment) UnmarshalJSON(data []byte) error {
3028 type NoMethod GoogleCloudContactcenterinsightsV1IssueAssignment
3029 var s1 struct {
3030 Score gensupport.JSONFloat64 `json:"score"`
3031 *NoMethod
3032 }
3033 s1.NoMethod = (*NoMethod)(s)
3034 if err := json.Unmarshal(data, &s1); err != nil {
3035 return err
3036 }
3037 s.Score = float64(s1.Score)
3038 return nil
3039 }
3040
3041
3042
3043 type GoogleCloudContactcenterinsightsV1IssueMatchData struct {
3044
3045 IssueAssignment *GoogleCloudContactcenterinsightsV1IssueAssignment `json:"issueAssignment,omitempty"`
3046
3047
3048
3049
3050
3051 ForceSendFields []string `json:"-"`
3052
3053
3054
3055
3056 NullFields []string `json:"-"`
3057 }
3058
3059 func (s *GoogleCloudContactcenterinsightsV1IssueMatchData) MarshalJSON() ([]byte, error) {
3060 type NoMethod GoogleCloudContactcenterinsightsV1IssueMatchData
3061 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3062 }
3063
3064
3065 type GoogleCloudContactcenterinsightsV1IssueModel struct {
3066
3067 CreateTime string `json:"createTime,omitempty"`
3068
3069 DisplayName string `json:"displayName,omitempty"`
3070
3071
3072 InputDataConfig *GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig `json:"inputDataConfig,omitempty"`
3073
3074 IssueCount int64 `json:"issueCount,omitempty,string"`
3075
3076 LanguageCode string `json:"languageCode,omitempty"`
3077
3078
3079
3080
3081
3082
3083 ModelType string `json:"modelType,omitempty"`
3084
3085
3086 Name string `json:"name,omitempty"`
3087
3088
3089
3090
3091
3092
3093
3094
3095
3096
3097 State string `json:"state,omitempty"`
3098
3099
3100 TrainingStats *GoogleCloudContactcenterinsightsV1IssueModelLabelStats `json:"trainingStats,omitempty"`
3101
3102
3103 UpdateTime string `json:"updateTime,omitempty"`
3104
3105
3106 googleapi.ServerResponse `json:"-"`
3107
3108
3109
3110
3111
3112 ForceSendFields []string `json:"-"`
3113
3114
3115
3116
3117 NullFields []string `json:"-"`
3118 }
3119
3120 func (s *GoogleCloudContactcenterinsightsV1IssueModel) MarshalJSON() ([]byte, error) {
3121 type NoMethod GoogleCloudContactcenterinsightsV1IssueModel
3122 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3123 }
3124
3125
3126
3127 type GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig struct {
3128
3129
3130 Filter string `json:"filter,omitempty"`
3131
3132
3133
3134
3135
3136
3137
3138
3139
3140
3141 Medium string `json:"medium,omitempty"`
3142
3143
3144 TrainingConversationsCount int64 `json:"trainingConversationsCount,omitempty,string"`
3145
3146
3147
3148
3149
3150 ForceSendFields []string `json:"-"`
3151
3152
3153
3154
3155 NullFields []string `json:"-"`
3156 }
3157
3158 func (s *GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig) MarshalJSON() ([]byte, error) {
3159 type NoMethod GoogleCloudContactcenterinsightsV1IssueModelInputDataConfig
3160 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3161 }
3162
3163
3164
3165 type GoogleCloudContactcenterinsightsV1IssueModelLabelStats struct {
3166
3167
3168 AnalyzedConversationsCount int64 `json:"analyzedConversationsCount,omitempty,string"`
3169
3170 IssueStats map[string]GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats `json:"issueStats,omitempty"`
3171
3172
3173 UnclassifiedConversationsCount int64 `json:"unclassifiedConversationsCount,omitempty,string"`
3174
3175
3176
3177
3178
3179 ForceSendFields []string `json:"-"`
3180
3181
3182
3183
3184 NullFields []string `json:"-"`
3185 }
3186
3187 func (s *GoogleCloudContactcenterinsightsV1IssueModelLabelStats) MarshalJSON() ([]byte, error) {
3188 type NoMethod GoogleCloudContactcenterinsightsV1IssueModelLabelStats
3189 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3190 }
3191
3192
3193
3194 type GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats struct {
3195
3196 DisplayName string `json:"displayName,omitempty"`
3197
3198
3199
3200 Issue string `json:"issue,omitempty"`
3201
3202
3203 LabeledConversationsCount int64 `json:"labeledConversationsCount,omitempty,string"`
3204
3205
3206
3207
3208
3209 ForceSendFields []string `json:"-"`
3210
3211
3212
3213
3214 NullFields []string `json:"-"`
3215 }
3216
3217 func (s *GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats) MarshalJSON() ([]byte, error) {
3218 type NoMethod GoogleCloudContactcenterinsightsV1IssueModelLabelStatsIssueStats
3219 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3220 }
3221
3222
3223
3224 type GoogleCloudContactcenterinsightsV1IssueModelResult struct {
3225
3226
3227 IssueModel string `json:"issueModel,omitempty"`
3228
3229 Issues []*GoogleCloudContactcenterinsightsV1IssueAssignment `json:"issues,omitempty"`
3230
3231
3232
3233
3234
3235 ForceSendFields []string `json:"-"`
3236
3237
3238
3239
3240 NullFields []string `json:"-"`
3241 }
3242
3243 func (s *GoogleCloudContactcenterinsightsV1IssueModelResult) MarshalJSON() ([]byte, error) {
3244 type NoMethod GoogleCloudContactcenterinsightsV1IssueModelResult
3245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3246 }
3247
3248
3249
3250 type GoogleCloudContactcenterinsightsV1ListAnalysesResponse struct {
3251
3252 Analyses []*GoogleCloudContactcenterinsightsV1Analysis `json:"analyses,omitempty"`
3253
3254
3255 NextPageToken string `json:"nextPageToken,omitempty"`
3256
3257
3258 googleapi.ServerResponse `json:"-"`
3259
3260
3261
3262
3263
3264 ForceSendFields []string `json:"-"`
3265
3266
3267
3268
3269 NullFields []string `json:"-"`
3270 }
3271
3272 func (s *GoogleCloudContactcenterinsightsV1ListAnalysesResponse) MarshalJSON() ([]byte, error) {
3273 type NoMethod GoogleCloudContactcenterinsightsV1ListAnalysesResponse
3274 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3275 }
3276
3277
3278
3279 type GoogleCloudContactcenterinsightsV1ListConversationsResponse struct {
3280
3281 Conversations []*GoogleCloudContactcenterinsightsV1Conversation `json:"conversations,omitempty"`
3282
3283
3284
3285 NextPageToken string `json:"nextPageToken,omitempty"`
3286
3287
3288 googleapi.ServerResponse `json:"-"`
3289
3290
3291
3292
3293
3294 ForceSendFields []string `json:"-"`
3295
3296
3297
3298
3299 NullFields []string `json:"-"`
3300 }
3301
3302 func (s *GoogleCloudContactcenterinsightsV1ListConversationsResponse) MarshalJSON() ([]byte, error) {
3303 type NoMethod GoogleCloudContactcenterinsightsV1ListConversationsResponse
3304 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3305 }
3306
3307
3308
3309 type GoogleCloudContactcenterinsightsV1ListIssueModelsResponse struct {
3310
3311 IssueModels []*GoogleCloudContactcenterinsightsV1IssueModel `json:"issueModels,omitempty"`
3312
3313
3314 googleapi.ServerResponse `json:"-"`
3315
3316
3317
3318
3319
3320 ForceSendFields []string `json:"-"`
3321
3322
3323
3324
3325 NullFields []string `json:"-"`
3326 }
3327
3328 func (s *GoogleCloudContactcenterinsightsV1ListIssueModelsResponse) MarshalJSON() ([]byte, error) {
3329 type NoMethod GoogleCloudContactcenterinsightsV1ListIssueModelsResponse
3330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3331 }
3332
3333
3334
3335 type GoogleCloudContactcenterinsightsV1ListIssuesResponse struct {
3336
3337 Issues []*GoogleCloudContactcenterinsightsV1Issue `json:"issues,omitempty"`
3338
3339
3340 googleapi.ServerResponse `json:"-"`
3341
3342
3343
3344
3345
3346 ForceSendFields []string `json:"-"`
3347
3348
3349
3350
3351 NullFields []string `json:"-"`
3352 }
3353
3354 func (s *GoogleCloudContactcenterinsightsV1ListIssuesResponse) MarshalJSON() ([]byte, error) {
3355 type NoMethod GoogleCloudContactcenterinsightsV1ListIssuesResponse
3356 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3357 }
3358
3359
3360
3361 type GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse struct {
3362
3363
3364 NextPageToken string `json:"nextPageToken,omitempty"`
3365
3366 PhraseMatchers []*GoogleCloudContactcenterinsightsV1PhraseMatcher `json:"phraseMatchers,omitempty"`
3367
3368
3369 googleapi.ServerResponse `json:"-"`
3370
3371
3372
3373
3374
3375 ForceSendFields []string `json:"-"`
3376
3377
3378
3379
3380 NullFields []string `json:"-"`
3381 }
3382
3383 func (s *GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse) MarshalJSON() ([]byte, error) {
3384 type NoMethod GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse
3385 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3386 }
3387
3388
3389
3390 type GoogleCloudContactcenterinsightsV1ListViewsResponse struct {
3391
3392
3393 NextPageToken string `json:"nextPageToken,omitempty"`
3394
3395 Views []*GoogleCloudContactcenterinsightsV1View `json:"views,omitempty"`
3396
3397
3398 googleapi.ServerResponse `json:"-"`
3399
3400
3401
3402
3403
3404 ForceSendFields []string `json:"-"`
3405
3406
3407
3408
3409 NullFields []string `json:"-"`
3410 }
3411
3412 func (s *GoogleCloudContactcenterinsightsV1ListViewsResponse) MarshalJSON() ([]byte, error) {
3413 type NoMethod GoogleCloudContactcenterinsightsV1ListViewsResponse
3414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3415 }
3416
3417
3418
3419
3420 type GoogleCloudContactcenterinsightsV1PhraseMatchData struct {
3421
3422 DisplayName string `json:"displayName,omitempty"`
3423
3424
3425 PhraseMatcher string `json:"phraseMatcher,omitempty"`
3426
3427
3428
3429
3430
3431 ForceSendFields []string `json:"-"`
3432
3433
3434
3435
3436 NullFields []string `json:"-"`
3437 }
3438
3439 func (s *GoogleCloudContactcenterinsightsV1PhraseMatchData) MarshalJSON() ([]byte, error) {
3440 type NoMethod GoogleCloudContactcenterinsightsV1PhraseMatchData
3441 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3442 }
3443
3444
3445
3446 type GoogleCloudContactcenterinsightsV1PhraseMatchRule struct {
3447
3448
3449 Config *GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig `json:"config,omitempty"`
3450
3451
3452 Negated bool `json:"negated,omitempty"`
3453
3454 Query string `json:"query,omitempty"`
3455
3456
3457
3458
3459
3460 ForceSendFields []string `json:"-"`
3461
3462
3463
3464
3465 NullFields []string `json:"-"`
3466 }
3467
3468 func (s *GoogleCloudContactcenterinsightsV1PhraseMatchRule) MarshalJSON() ([]byte, error) {
3469 type NoMethod GoogleCloudContactcenterinsightsV1PhraseMatchRule
3470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3471 }
3472
3473
3474
3475 type GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig struct {
3476
3477 ExactMatchConfig *GoogleCloudContactcenterinsightsV1ExactMatchConfig `json:"exactMatchConfig,omitempty"`
3478
3479
3480
3481
3482
3483 ForceSendFields []string `json:"-"`
3484
3485
3486
3487
3488 NullFields []string `json:"-"`
3489 }
3490
3491 func (s *GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig) MarshalJSON() ([]byte, error) {
3492 type NoMethod GoogleCloudContactcenterinsightsV1PhraseMatchRuleConfig
3493 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3494 }
3495
3496
3497
3498 type GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup struct {
3499
3500
3501 PhraseMatchRules []*GoogleCloudContactcenterinsightsV1PhraseMatchRule `json:"phraseMatchRules,omitempty"`
3502
3503
3504
3505
3506
3507
3508 Type string `json:"type,omitempty"`
3509
3510
3511
3512
3513
3514 ForceSendFields []string `json:"-"`
3515
3516
3517
3518
3519 NullFields []string `json:"-"`
3520 }
3521
3522 func (s *GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup) MarshalJSON() ([]byte, error) {
3523 type NoMethod GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup
3524 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3525 }
3526
3527
3528
3529 type GoogleCloudContactcenterinsightsV1PhraseMatcher struct {
3530
3531
3532 ActivationUpdateTime string `json:"activationUpdateTime,omitempty"`
3533
3534 Active bool `json:"active,omitempty"`
3535
3536 DisplayName string `json:"displayName,omitempty"`
3537
3538
3539 Name string `json:"name,omitempty"`
3540
3541
3542 PhraseMatchRuleGroups []*GoogleCloudContactcenterinsightsV1PhraseMatchRuleGroup `json:"phraseMatchRuleGroups,omitempty"`
3543
3544
3545 RevisionCreateTime string `json:"revisionCreateTime,omitempty"`
3546
3547
3548
3549
3550 RevisionId string `json:"revisionId,omitempty"`
3551
3552
3553
3554
3555
3556
3557
3558
3559
3560
3561
3562 RoleMatch string `json:"roleMatch,omitempty"`
3563
3564
3565
3566
3567
3568
3569
3570 Type string `json:"type,omitempty"`
3571
3572
3573 UpdateTime string `json:"updateTime,omitempty"`
3574
3575
3576 VersionTag string `json:"versionTag,omitempty"`
3577
3578
3579 googleapi.ServerResponse `json:"-"`
3580
3581
3582
3583
3584
3585 ForceSendFields []string `json:"-"`
3586
3587
3588
3589
3590 NullFields []string `json:"-"`
3591 }
3592
3593 func (s *GoogleCloudContactcenterinsightsV1PhraseMatcher) MarshalJSON() ([]byte, error) {
3594 type NoMethod GoogleCloudContactcenterinsightsV1PhraseMatcher
3595 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3596 }
3597
3598
3599
3600
3601
3602
3603
3604
3605
3606 type GoogleCloudContactcenterinsightsV1RedactionConfig struct {
3607
3608
3609 DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
3610
3611
3612
3613 InspectTemplate string `json:"inspectTemplate,omitempty"`
3614
3615
3616
3617
3618
3619 ForceSendFields []string `json:"-"`
3620
3621
3622
3623
3624 NullFields []string `json:"-"`
3625 }
3626
3627 func (s *GoogleCloudContactcenterinsightsV1RedactionConfig) MarshalJSON() ([]byte, error) {
3628 type NoMethod GoogleCloudContactcenterinsightsV1RedactionConfig
3629 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3630 }
3631
3632
3633
3634 type GoogleCloudContactcenterinsightsV1RuntimeAnnotation struct {
3635
3636
3637
3638 AnnotationId string `json:"annotationId,omitempty"`
3639
3640
3641 AnswerFeedback *GoogleCloudContactcenterinsightsV1AnswerFeedback `json:"answerFeedback,omitempty"`
3642
3643 ArticleSuggestion *GoogleCloudContactcenterinsightsV1ArticleSuggestionData `json:"articleSuggestion,omitempty"`
3644
3645
3646 ConversationSummarizationSuggestion *GoogleCloudContactcenterinsightsV1ConversationSummarizationSuggestionData `json:"conversationSummarizationSuggestion,omitempty"`
3647
3648 CreateTime string `json:"createTime,omitempty"`
3649
3650 DialogflowInteraction *GoogleCloudContactcenterinsightsV1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"`
3651
3652
3653 EndBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"endBoundary,omitempty"`
3654
3655 FaqAnswer *GoogleCloudContactcenterinsightsV1FaqAnswerData `json:"faqAnswer,omitempty"`
3656
3657 GeneratorSuggestionResult *GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse `json:"generatorSuggestionResult,omitempty"`
3658
3659 KnowledgeAssistResult *GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse `json:"knowledgeAssistResult,omitempty"`
3660
3661 KnowledgeSearchResult *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer `json:"knowledgeSearchResult,omitempty"`
3662
3663 SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"`
3664
3665 SmartReply *GoogleCloudContactcenterinsightsV1SmartReplyData `json:"smartReply,omitempty"`
3666
3667
3668 StartBoundary *GoogleCloudContactcenterinsightsV1AnnotationBoundary `json:"startBoundary,omitempty"`
3669
3670
3671
3672
3673
3674 ForceSendFields []string `json:"-"`
3675
3676
3677
3678
3679 NullFields []string `json:"-"`
3680 }
3681
3682 func (s *GoogleCloudContactcenterinsightsV1RuntimeAnnotation) MarshalJSON() ([]byte, error) {
3683 type NoMethod GoogleCloudContactcenterinsightsV1RuntimeAnnotation
3684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3685 }
3686
3687
3688
3689 type GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer struct {
3690
3691
3692 Answer string `json:"answer,omitempty"`
3693
3694
3695 AnswerRecord string `json:"answerRecord,omitempty"`
3696
3697 AnswerSources []*GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`
3698
3699
3700
3701
3702
3703
3704
3705 AnswerType string `json:"answerType,omitempty"`
3706
3707 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
3708
3709
3710
3711
3712
3713 ForceSendFields []string `json:"-"`
3714
3715
3716
3717
3718 NullFields []string `json:"-"`
3719 }
3720
3721 func (s *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) {
3722 type NoMethod GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
3723 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3724 }
3725
3726 func (s *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer) UnmarshalJSON(data []byte) error {
3727 type NoMethod GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
3728 var s1 struct {
3729 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
3730 *NoMethod
3731 }
3732 s1.NoMethod = (*NoMethod)(s)
3733 if err := json.Unmarshal(data, &s1); err != nil {
3734 return err
3735 }
3736 s.ConfidenceScore = float64(s1.ConfidenceScore)
3737 return nil
3738 }
3739
3740
3741
3742 type GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource struct {
3743
3744
3745 Document string `json:"document,omitempty"`
3746
3747 Snippet string `json:"snippet,omitempty"`
3748
3749 Title string `json:"title,omitempty"`
3750
3751 Uri string `json:"uri,omitempty"`
3752
3753
3754
3755
3756
3757 ForceSendFields []string `json:"-"`
3758
3759
3760
3761
3762 NullFields []string `json:"-"`
3763 }
3764
3765 func (s *GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) {
3766 type NoMethod GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource
3767 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3768 }
3769
3770
3771
3772 type GoogleCloudContactcenterinsightsV1SentimentData struct {
3773
3774
3775 Magnitude float64 `json:"magnitude,omitempty"`
3776
3777 Score float64 `json:"score,omitempty"`
3778
3779
3780
3781
3782
3783 ForceSendFields []string `json:"-"`
3784
3785
3786
3787
3788 NullFields []string `json:"-"`
3789 }
3790
3791 func (s *GoogleCloudContactcenterinsightsV1SentimentData) MarshalJSON() ([]byte, error) {
3792 type NoMethod GoogleCloudContactcenterinsightsV1SentimentData
3793 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3794 }
3795
3796 func (s *GoogleCloudContactcenterinsightsV1SentimentData) UnmarshalJSON(data []byte) error {
3797 type NoMethod GoogleCloudContactcenterinsightsV1SentimentData
3798 var s1 struct {
3799 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
3800 Score gensupport.JSONFloat64 `json:"score"`
3801 *NoMethod
3802 }
3803 s1.NoMethod = (*NoMethod)(s)
3804 if err := json.Unmarshal(data, &s1); err != nil {
3805 return err
3806 }
3807 s.Magnitude = float64(s1.Magnitude)
3808 s.Score = float64(s1.Score)
3809 return nil
3810 }
3811
3812
3813 type GoogleCloudContactcenterinsightsV1Settings struct {
3814
3815 AnalysisConfig *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig `json:"analysisConfig,omitempty"`
3816
3817
3818
3819
3820
3821 ConversationTtl string `json:"conversationTtl,omitempty"`
3822
3823 CreateTime string `json:"createTime,omitempty"`
3824
3825
3826
3827 LanguageCode string `json:"languageCode,omitempty"`
3828
3829
3830 Name string `json:"name,omitempty"`
3831
3832
3833
3834
3835
3836
3837
3838
3839
3840
3841
3842
3843 PubsubNotificationSettings map[string]string `json:"pubsubNotificationSettings,omitempty"`
3844
3845
3846
3847
3848 RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"`
3849
3850
3851
3852
3853
3854 SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"`
3855
3856 UpdateTime string `json:"updateTime,omitempty"`
3857
3858
3859 googleapi.ServerResponse `json:"-"`
3860
3861
3862
3863
3864
3865 ForceSendFields []string `json:"-"`
3866
3867
3868
3869
3870 NullFields []string `json:"-"`
3871 }
3872
3873 func (s *GoogleCloudContactcenterinsightsV1Settings) MarshalJSON() ([]byte, error) {
3874 type NoMethod GoogleCloudContactcenterinsightsV1Settings
3875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3876 }
3877
3878
3879
3880 type GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig struct {
3881
3882
3883 AnnotatorSelector *GoogleCloudContactcenterinsightsV1AnnotatorSelector `json:"annotatorSelector,omitempty"`
3884
3885
3886
3887 RuntimeIntegrationAnalysisPercentage float64 `json:"runtimeIntegrationAnalysisPercentage,omitempty"`
3888
3889
3890
3891 UploadConversationAnalysisPercentage float64 `json:"uploadConversationAnalysisPercentage,omitempty"`
3892
3893
3894
3895
3896
3897 ForceSendFields []string `json:"-"`
3898
3899
3900
3901
3902 NullFields []string `json:"-"`
3903 }
3904
3905 func (s *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig) MarshalJSON() ([]byte, error) {
3906 type NoMethod GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig
3907 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3908 }
3909
3910 func (s *GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig) UnmarshalJSON(data []byte) error {
3911 type NoMethod GoogleCloudContactcenterinsightsV1SettingsAnalysisConfig
3912 var s1 struct {
3913 RuntimeIntegrationAnalysisPercentage gensupport.JSONFloat64 `json:"runtimeIntegrationAnalysisPercentage"`
3914 UploadConversationAnalysisPercentage gensupport.JSONFloat64 `json:"uploadConversationAnalysisPercentage"`
3915 *NoMethod
3916 }
3917 s1.NoMethod = (*NoMethod)(s)
3918 if err := json.Unmarshal(data, &s1); err != nil {
3919 return err
3920 }
3921 s.RuntimeIntegrationAnalysisPercentage = float64(s1.RuntimeIntegrationAnalysisPercentage)
3922 s.UploadConversationAnalysisPercentage = float64(s1.UploadConversationAnalysisPercentage)
3923 return nil
3924 }
3925
3926
3927
3928 type GoogleCloudContactcenterinsightsV1SilenceData struct {
3929 }
3930
3931
3932
3933 type GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData struct {
3934
3935
3936
3937 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
3938
3939
3940 Metadata map[string]string `json:"metadata,omitempty"`
3941
3942
3943 QueryRecord string `json:"queryRecord,omitempty"`
3944
3945 Suggestion string `json:"suggestion,omitempty"`
3946
3947
3948
3949
3950
3951 ForceSendFields []string `json:"-"`
3952
3953
3954
3955
3956 NullFields []string `json:"-"`
3957 }
3958
3959 func (s *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) {
3960 type NoMethod GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData
3961 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3962 }
3963
3964 func (s *GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error {
3965 type NoMethod GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData
3966 var s1 struct {
3967 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
3968 *NoMethod
3969 }
3970 s1.NoMethod = (*NoMethod)(s)
3971 if err := json.Unmarshal(data, &s1); err != nil {
3972 return err
3973 }
3974 s.ConfidenceScore = float64(s1.ConfidenceScore)
3975 return nil
3976 }
3977
3978
3979
3980 type GoogleCloudContactcenterinsightsV1SmartReplyData struct {
3981
3982
3983
3984 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
3985
3986
3987 Metadata map[string]string `json:"metadata,omitempty"`
3988
3989
3990 QueryRecord string `json:"queryRecord,omitempty"`
3991
3992 Reply string `json:"reply,omitempty"`
3993
3994
3995
3996
3997
3998 ForceSendFields []string `json:"-"`
3999
4000
4001
4002
4003 NullFields []string `json:"-"`
4004 }
4005
4006 func (s *GoogleCloudContactcenterinsightsV1SmartReplyData) MarshalJSON() ([]byte, error) {
4007 type NoMethod GoogleCloudContactcenterinsightsV1SmartReplyData
4008 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4009 }
4010
4011 func (s *GoogleCloudContactcenterinsightsV1SmartReplyData) UnmarshalJSON(data []byte) error {
4012 type NoMethod GoogleCloudContactcenterinsightsV1SmartReplyData
4013 var s1 struct {
4014 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
4015 *NoMethod
4016 }
4017 s1.NoMethod = (*NoMethod)(s)
4018 if err := json.Unmarshal(data, &s1); err != nil {
4019 return err
4020 }
4021 s.ConfidenceScore = float64(s1.ConfidenceScore)
4022 return nil
4023 }
4024
4025
4026
4027
4028
4029
4030 type GoogleCloudContactcenterinsightsV1SpeechConfig struct {
4031
4032
4033 SpeechRecognizer string `json:"speechRecognizer,omitempty"`
4034
4035
4036
4037
4038
4039 ForceSendFields []string `json:"-"`
4040
4041
4042
4043
4044 NullFields []string `json:"-"`
4045 }
4046
4047 func (s *GoogleCloudContactcenterinsightsV1SpeechConfig) MarshalJSON() ([]byte, error) {
4048 type NoMethod GoogleCloudContactcenterinsightsV1SpeechConfig
4049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4050 }
4051
4052
4053
4054 type GoogleCloudContactcenterinsightsV1SummarySuggestion struct {
4055
4056 SummarySections []*GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection `json:"summarySections,omitempty"`
4057
4058
4059
4060
4061
4062 ForceSendFields []string `json:"-"`
4063
4064
4065
4066
4067 NullFields []string `json:"-"`
4068 }
4069
4070 func (s *GoogleCloudContactcenterinsightsV1SummarySuggestion) MarshalJSON() ([]byte, error) {
4071 type NoMethod GoogleCloudContactcenterinsightsV1SummarySuggestion
4072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4073 }
4074
4075
4076
4077 type GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection struct {
4078
4079 Section string `json:"section,omitempty"`
4080
4081 Summary string `json:"summary,omitempty"`
4082
4083
4084
4085
4086
4087 ForceSendFields []string `json:"-"`
4088
4089
4090
4091
4092 NullFields []string `json:"-"`
4093 }
4094
4095 func (s *GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection) MarshalJSON() ([]byte, error) {
4096 type NoMethod GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection
4097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4098 }
4099
4100
4101
4102 type GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata struct {
4103
4104 CreateTime string `json:"createTime,omitempty"`
4105
4106 EndTime string `json:"endTime,omitempty"`
4107
4108 Request *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest `json:"request,omitempty"`
4109
4110
4111
4112
4113
4114 ForceSendFields []string `json:"-"`
4115
4116
4117
4118
4119 NullFields []string `json:"-"`
4120 }
4121
4122 func (s *GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata) MarshalJSON() ([]byte, error) {
4123 type NoMethod GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata
4124 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4125 }
4126
4127
4128
4129 type GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest struct {
4130
4131 Name string `json:"name,omitempty"`
4132
4133
4134
4135
4136
4137 ForceSendFields []string `json:"-"`
4138
4139
4140
4141
4142 NullFields []string `json:"-"`
4143 }
4144
4145 func (s *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) MarshalJSON() ([]byte, error) {
4146 type NoMethod GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest
4147 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4148 }
4149
4150
4151
4152 type GoogleCloudContactcenterinsightsV1UndeployIssueModelResponse struct {
4153 }
4154
4155
4156
4157 type GoogleCloudContactcenterinsightsV1UploadConversationMetadata struct {
4158
4159
4160 AnalysisOperation string `json:"analysisOperation,omitempty"`
4161
4162
4163 AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"appliedRedactionConfig,omitempty"`
4164
4165 CreateTime string `json:"createTime,omitempty"`
4166
4167 EndTime string `json:"endTime,omitempty"`
4168
4169 Request *GoogleCloudContactcenterinsightsV1UploadConversationRequest `json:"request,omitempty"`
4170
4171
4172
4173
4174
4175 ForceSendFields []string `json:"-"`
4176
4177
4178
4179
4180 NullFields []string `json:"-"`
4181 }
4182
4183 func (s *GoogleCloudContactcenterinsightsV1UploadConversationMetadata) MarshalJSON() ([]byte, error) {
4184 type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationMetadata
4185 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4186 }
4187
4188
4189
4190 type GoogleCloudContactcenterinsightsV1UploadConversationRequest struct {
4191
4192 Conversation *GoogleCloudContactcenterinsightsV1Conversation `json:"conversation,omitempty"`
4193
4194
4195
4196
4197
4198 ConversationId string `json:"conversationId,omitempty"`
4199
4200 Parent string `json:"parent,omitempty"`
4201
4202
4203 RedactionConfig *GoogleCloudContactcenterinsightsV1RedactionConfig `json:"redactionConfig,omitempty"`
4204
4205
4206 SpeechConfig *GoogleCloudContactcenterinsightsV1SpeechConfig `json:"speechConfig,omitempty"`
4207
4208
4209
4210
4211
4212 ForceSendFields []string `json:"-"`
4213
4214
4215
4216
4217 NullFields []string `json:"-"`
4218 }
4219
4220 func (s *GoogleCloudContactcenterinsightsV1UploadConversationRequest) MarshalJSON() ([]byte, error) {
4221 type NoMethod GoogleCloudContactcenterinsightsV1UploadConversationRequest
4222 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4223 }
4224
4225
4226 type GoogleCloudContactcenterinsightsV1View struct {
4227
4228 CreateTime string `json:"createTime,omitempty"`
4229
4230 DisplayName string `json:"displayName,omitempty"`
4231
4232
4233 Name string `json:"name,omitempty"`
4234
4235 UpdateTime string `json:"updateTime,omitempty"`
4236
4237 Value string `json:"value,omitempty"`
4238
4239
4240 googleapi.ServerResponse `json:"-"`
4241
4242
4243
4244
4245
4246 ForceSendFields []string `json:"-"`
4247
4248
4249
4250
4251 NullFields []string `json:"-"`
4252 }
4253
4254 func (s *GoogleCloudContactcenterinsightsV1View) MarshalJSON() ([]byte, error) {
4255 type NoMethod GoogleCloudContactcenterinsightsV1View
4256 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4257 }
4258
4259
4260
4261 type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction struct {
4262
4263
4264
4265 AgentAction string `json:"agentAction,omitempty"`
4266
4267
4268
4269 Condition string `json:"condition,omitempty"`
4270
4271 Description string `json:"description,omitempty"`
4272
4273 DisplayName string `json:"displayName,omitempty"`
4274
4275 Metadata map[string]string `json:"metadata,omitempty"`
4276
4277
4278
4279
4280 SystemAction string `json:"systemAction,omitempty"`
4281
4282
4283
4284
4285
4286 ForceSendFields []string `json:"-"`
4287
4288
4289
4290
4291 NullFields []string `json:"-"`
4292 }
4293
4294 func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction) MarshalJSON() ([]byte, error) {
4295 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction
4296 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4297 }
4298
4299
4300
4301 type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion struct {
4302
4303 AgentActionSuggestions []*GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion `json:"agentActionSuggestions,omitempty"`
4304
4305
4306 ApplicableInstructions []*GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction `json:"applicableInstructions,omitempty"`
4307
4308 SampleResponses []*GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse `json:"sampleResponses,omitempty"`
4309
4310 SuggestionEval *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval `json:"suggestionEval,omitempty"`
4311
4312 SuggestionReasoning *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning `json:"suggestionReasoning,omitempty"`
4313
4314
4315
4316
4317
4318 ForceSendFields []string `json:"-"`
4319
4320
4321
4322
4323 NullFields []string `json:"-"`
4324 }
4325
4326 func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion) MarshalJSON() ([]byte, error) {
4327 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion
4328 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4329 }
4330
4331
4332
4333
4334 type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion struct {
4335
4336 AgentAction string `json:"agentAction,omitempty"`
4337
4338
4339
4340
4341
4342 ForceSendFields []string `json:"-"`
4343
4344
4345
4346
4347 NullFields []string `json:"-"`
4348 }
4349
4350 func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion) MarshalJSON() ([]byte, error) {
4351 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion
4352 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4353 }
4354
4355
4356
4357 type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval struct {
4358
4359 ActionActionSuggestionEval string `json:"actionActionSuggestionEval,omitempty"`
4360
4361 SampleResponseEval string `json:"sampleResponseEval,omitempty"`
4362
4363
4364
4365
4366
4367 ForceSendFields []string `json:"-"`
4368
4369
4370
4371
4372 NullFields []string `json:"-"`
4373 }
4374
4375 func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval) MarshalJSON() ([]byte, error) {
4376 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval
4377 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4378 }
4379
4380
4381
4382 type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning struct {
4383
4384 AgentActionTaken string `json:"agentActionTaken,omitempty"`
4385
4386 IssueSummary string `json:"issueSummary,omitempty"`
4387
4388
4389
4390
4391
4392 ForceSendFields []string `json:"-"`
4393
4394
4395
4396
4397 NullFields []string `json:"-"`
4398 }
4399
4400 func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning) MarshalJSON() ([]byte, error) {
4401 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning
4402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4403 }
4404
4405
4406
4407
4408 type GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse struct {
4409
4410 ResponseText string `json:"responseText,omitempty"`
4411
4412
4413
4414
4415
4416 ForceSendFields []string `json:"-"`
4417
4418
4419
4420
4421 NullFields []string `json:"-"`
4422 }
4423
4424 func (s *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse) MarshalJSON() ([]byte, error) {
4425 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse
4426 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4427 }
4428
4429
4430 type GoogleCloudContactcenterinsightsV1alpha1Analysis struct {
4431
4432
4433 AnalysisResult *GoogleCloudContactcenterinsightsV1alpha1AnalysisResult `json:"analysisResult,omitempty"`
4434
4435
4436 AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"`
4437
4438
4439 CreateTime string `json:"createTime,omitempty"`
4440
4441
4442
4443 Name string `json:"name,omitempty"`
4444
4445 RequestTime string `json:"requestTime,omitempty"`
4446
4447
4448
4449
4450
4451 ForceSendFields []string `json:"-"`
4452
4453
4454
4455
4456 NullFields []string `json:"-"`
4457 }
4458
4459 func (s *GoogleCloudContactcenterinsightsV1alpha1Analysis) MarshalJSON() ([]byte, error) {
4460 type NoMethod GoogleCloudContactcenterinsightsV1alpha1Analysis
4461 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4462 }
4463
4464
4465
4466 type GoogleCloudContactcenterinsightsV1alpha1AnalysisResult struct {
4467
4468 CallAnalysisMetadata *GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata `json:"callAnalysisMetadata,omitempty"`
4469
4470 EndTime string `json:"endTime,omitempty"`
4471
4472
4473
4474
4475
4476 ForceSendFields []string `json:"-"`
4477
4478
4479
4480
4481 NullFields []string `json:"-"`
4482 }
4483
4484 func (s *GoogleCloudContactcenterinsightsV1alpha1AnalysisResult) MarshalJSON() ([]byte, error) {
4485 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResult
4486 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4487 }
4488
4489
4490
4491 type GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata struct {
4492
4493 Annotations []*GoogleCloudContactcenterinsightsV1alpha1CallAnnotation `json:"annotations,omitempty"`
4494
4495 Entities map[string]GoogleCloudContactcenterinsightsV1alpha1Entity `json:"entities,omitempty"`
4496
4497 Intents map[string]GoogleCloudContactcenterinsightsV1alpha1Intent `json:"intents,omitempty"`
4498
4499 IssueModelResult *GoogleCloudContactcenterinsightsV1alpha1IssueModelResult `json:"issueModelResult,omitempty"`
4500
4501 PhraseMatchers map[string]GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchers,omitempty"`
4502
4503
4504 Sentiments []*GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment `json:"sentiments,omitempty"`
4505
4506 Silence *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence `json:"silence,omitempty"`
4507
4508
4509
4510
4511
4512 ForceSendFields []string `json:"-"`
4513
4514
4515
4516
4517 NullFields []string `json:"-"`
4518 }
4519
4520 func (s *GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata) MarshalJSON() ([]byte, error) {
4521 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata
4522 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4523 }
4524
4525
4526
4527 type GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary struct {
4528
4529
4530 TranscriptIndex int64 `json:"transcriptIndex,omitempty"`
4531
4532
4533 WordIndex int64 `json:"wordIndex,omitempty"`
4534
4535
4536
4537
4538
4539 ForceSendFields []string `json:"-"`
4540
4541
4542
4543
4544 NullFields []string `json:"-"`
4545 }
4546
4547 func (s *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary) MarshalJSON() ([]byte, error) {
4548 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary
4549 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4550 }
4551
4552
4553
4554 type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector struct {
4555
4556
4557
4558
4559
4560 IssueModels []string `json:"issueModels,omitempty"`
4561
4562
4563
4564
4565
4566 PhraseMatchers []string `json:"phraseMatchers,omitempty"`
4567
4568 RunEntityAnnotator bool `json:"runEntityAnnotator,omitempty"`
4569
4570 RunIntentAnnotator bool `json:"runIntentAnnotator,omitempty"`
4571
4572 RunInterruptionAnnotator bool `json:"runInterruptionAnnotator,omitempty"`
4573
4574
4575 RunIssueModelAnnotator bool `json:"runIssueModelAnnotator,omitempty"`
4576
4577
4578 RunPhraseMatcherAnnotator bool `json:"runPhraseMatcherAnnotator,omitempty"`
4579
4580 RunSentimentAnnotator bool `json:"runSentimentAnnotator,omitempty"`
4581
4582 RunSilenceAnnotator bool `json:"runSilenceAnnotator,omitempty"`
4583
4584 RunSummarizationAnnotator bool `json:"runSummarizationAnnotator,omitempty"`
4585
4586 SummarizationConfig *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig `json:"summarizationConfig,omitempty"`
4587
4588
4589
4590
4591
4592 ForceSendFields []string `json:"-"`
4593
4594
4595
4596
4597 NullFields []string `json:"-"`
4598 }
4599
4600 func (s *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector) MarshalJSON() ([]byte, error) {
4601 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector
4602 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4603 }
4604
4605
4606
4607
4608 type GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig struct {
4609
4610
4611
4612
4613 ConversationProfile string `json:"conversationProfile,omitempty"`
4614
4615
4616
4617
4618
4619
4620 SummarizationModel string `json:"summarizationModel,omitempty"`
4621
4622
4623
4624
4625
4626 ForceSendFields []string `json:"-"`
4627
4628
4629
4630
4631 NullFields []string `json:"-"`
4632 }
4633
4634 func (s *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig) MarshalJSON() ([]byte, error) {
4635 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelectorSummarizationConfig
4636 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4637 }
4638
4639
4640
4641 type GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback struct {
4642
4643 Clicked bool `json:"clicked,omitempty"`
4644
4645
4646
4647
4648
4649
4650
4651 CorrectnessLevel string `json:"correctnessLevel,omitempty"`
4652
4653
4654 Displayed bool `json:"displayed,omitempty"`
4655
4656
4657
4658
4659
4660 ForceSendFields []string `json:"-"`
4661
4662
4663
4664
4665 NullFields []string `json:"-"`
4666 }
4667
4668 func (s *GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback) MarshalJSON() ([]byte, error) {
4669 type NoMethod GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback
4670 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4671 }
4672
4673
4674
4675 type GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData struct {
4676
4677
4678
4679 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
4680
4681
4682 Metadata map[string]string `json:"metadata,omitempty"`
4683
4684
4685 QueryRecord string `json:"queryRecord,omitempty"`
4686
4687
4688 Source string `json:"source,omitempty"`
4689
4690 Title string `json:"title,omitempty"`
4691
4692 Uri string `json:"uri,omitempty"`
4693
4694
4695
4696
4697
4698 ForceSendFields []string `json:"-"`
4699
4700
4701
4702
4703 NullFields []string `json:"-"`
4704 }
4705
4706 func (s *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) MarshalJSON() ([]byte, error) {
4707 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData
4708 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4709 }
4710
4711 func (s *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData) UnmarshalJSON(data []byte) error {
4712 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData
4713 var s1 struct {
4714 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
4715 *NoMethod
4716 }
4717 s1.NoMethod = (*NoMethod)(s)
4718 if err := json.Unmarshal(data, &s1); err != nil {
4719 return err
4720 }
4721 s.ConfidenceScore = float64(s1.ConfidenceScore)
4722 return nil
4723 }
4724
4725
4726
4727 type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata struct {
4728
4729
4730 CompletedAnalysesCount int64 `json:"completedAnalysesCount,omitempty"`
4731
4732 CreateTime string `json:"createTime,omitempty"`
4733
4734 EndTime string `json:"endTime,omitempty"`
4735
4736
4737 FailedAnalysesCount int64 `json:"failedAnalysesCount,omitempty"`
4738
4739
4740 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
4741
4742 Request *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest `json:"request,omitempty"`
4743
4744
4745
4746 TotalRequestedAnalysesCount int64 `json:"totalRequestedAnalysesCount,omitempty"`
4747
4748
4749
4750
4751
4752 ForceSendFields []string `json:"-"`
4753
4754
4755
4756
4757 NullFields []string `json:"-"`
4758 }
4759
4760 func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata) MarshalJSON() ([]byte, error) {
4761 type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata
4762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4763 }
4764
4765
4766
4767 type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest struct {
4768
4769
4770 AnalysisPercentage float64 `json:"analysisPercentage,omitempty"`
4771
4772
4773 AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"`
4774
4775
4776 Filter string `json:"filter,omitempty"`
4777
4778 Parent string `json:"parent,omitempty"`
4779
4780
4781
4782
4783
4784 ForceSendFields []string `json:"-"`
4785
4786
4787
4788
4789 NullFields []string `json:"-"`
4790 }
4791
4792 func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest) MarshalJSON() ([]byte, error) {
4793 type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest
4794 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4795 }
4796
4797 func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest) UnmarshalJSON(data []byte) error {
4798 type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest
4799 var s1 struct {
4800 AnalysisPercentage gensupport.JSONFloat64 `json:"analysisPercentage"`
4801 *NoMethod
4802 }
4803 s1.NoMethod = (*NoMethod)(s)
4804 if err := json.Unmarshal(data, &s1); err != nil {
4805 return err
4806 }
4807 s.AnalysisPercentage = float64(s1.AnalysisPercentage)
4808 return nil
4809 }
4810
4811
4812
4813 type GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse struct {
4814
4815 FailedAnalysisCount int64 `json:"failedAnalysisCount,omitempty"`
4816
4817 SuccessfulAnalysisCount int64 `json:"successfulAnalysisCount,omitempty"`
4818
4819
4820
4821
4822
4823 ForceSendFields []string `json:"-"`
4824
4825
4826
4827
4828 NullFields []string `json:"-"`
4829 }
4830
4831 func (s *GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse) MarshalJSON() ([]byte, error) {
4832 type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsResponse
4833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4834 }
4835
4836
4837
4838 type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata struct {
4839
4840 CreateTime string `json:"createTime,omitempty"`
4841
4842 EndTime string `json:"endTime,omitempty"`
4843
4844
4845 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
4846
4847 Request *GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest `json:"request,omitempty"`
4848
4849
4850
4851
4852
4853 ForceSendFields []string `json:"-"`
4854
4855
4856
4857
4858 NullFields []string `json:"-"`
4859 }
4860
4861 func (s *GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata) MarshalJSON() ([]byte, error) {
4862 type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsMetadata
4863 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4864 }
4865
4866
4867
4868 type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest struct {
4869
4870 Filter string `json:"filter,omitempty"`
4871
4872
4873
4874 Force bool `json:"force,omitempty"`
4875
4876 MaxDeleteCount int64 `json:"maxDeleteCount,omitempty"`
4877
4878
4879 Parent string `json:"parent,omitempty"`
4880
4881
4882
4883
4884
4885 ForceSendFields []string `json:"-"`
4886
4887
4888
4889
4890 NullFields []string `json:"-"`
4891 }
4892
4893 func (s *GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest) MarshalJSON() ([]byte, error) {
4894 type NoMethod GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsRequest
4895 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4896 }
4897
4898
4899
4900 type GoogleCloudContactcenterinsightsV1alpha1BulkDeleteConversationsResponse struct {
4901 }
4902
4903
4904
4905 type GoogleCloudContactcenterinsightsV1alpha1CallAnnotation struct {
4906
4907
4908 AnnotationEndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationEndBoundary,omitempty"`
4909
4910
4911 AnnotationStartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"annotationStartBoundary,omitempty"`
4912
4913
4914 ChannelTag int64 `json:"channelTag,omitempty"`
4915
4916 EntityMentionData *GoogleCloudContactcenterinsightsV1alpha1EntityMentionData `json:"entityMentionData,omitempty"`
4917
4918 HoldData *GoogleCloudContactcenterinsightsV1alpha1HoldData `json:"holdData,omitempty"`
4919
4920 IntentMatchData *GoogleCloudContactcenterinsightsV1alpha1IntentMatchData `json:"intentMatchData,omitempty"`
4921
4922 InterruptionData *GoogleCloudContactcenterinsightsV1alpha1InterruptionData `json:"interruptionData,omitempty"`
4923
4924 IssueMatchData *GoogleCloudContactcenterinsightsV1alpha1IssueMatchData `json:"issueMatchData,omitempty"`
4925
4926 PhraseMatchData *GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData `json:"phraseMatchData,omitempty"`
4927
4928 SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"`
4929
4930 SilenceData *GoogleCloudContactcenterinsightsV1alpha1SilenceData `json:"silenceData,omitempty"`
4931
4932
4933
4934
4935
4936 ForceSendFields []string `json:"-"`
4937
4938
4939
4940
4941 NullFields []string `json:"-"`
4942 }
4943
4944 func (s *GoogleCloudContactcenterinsightsV1alpha1CallAnnotation) MarshalJSON() ([]byte, error) {
4945 type NoMethod GoogleCloudContactcenterinsightsV1alpha1CallAnnotation
4946 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4947 }
4948
4949
4950
4951 type GoogleCloudContactcenterinsightsV1alpha1Conversation struct {
4952
4953
4954 AgentId string `json:"agentId,omitempty"`
4955
4956 CallMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata `json:"callMetadata,omitempty"`
4957
4958 CreateTime string `json:"createTime,omitempty"`
4959
4960 DataSource *GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource `json:"dataSource,omitempty"`
4961
4962
4963
4964 DialogflowIntents map[string]GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent `json:"dialogflowIntents,omitempty"`
4965
4966 Duration string `json:"duration,omitempty"`
4967
4968
4969 ExpireTime string `json:"expireTime,omitempty"`
4970
4971
4972
4973 Labels map[string]string `json:"labels,omitempty"`
4974
4975 LanguageCode string `json:"languageCode,omitempty"`
4976
4977
4978 LatestAnalysis *GoogleCloudContactcenterinsightsV1alpha1Analysis `json:"latestAnalysis,omitempty"`
4979
4980 LatestSummary *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData `json:"latestSummary,omitempty"`
4981
4982
4983
4984
4985
4986
4987
4988
4989
4990 Medium string `json:"medium,omitempty"`
4991
4992
4993 Name string `json:"name,omitempty"`
4994
4995 ObfuscatedUserId string `json:"obfuscatedUserId,omitempty"`
4996
4997 QualityMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata `json:"qualityMetadata,omitempty"`
4998
4999
5000 RuntimeAnnotations []*GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation `json:"runtimeAnnotations,omitempty"`
5001
5002 StartTime string `json:"startTime,omitempty"`
5003
5004 Transcript *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript `json:"transcript,omitempty"`
5005
5006
5007 Ttl string `json:"ttl,omitempty"`
5008
5009 TurnCount int64 `json:"turnCount,omitempty"`
5010
5011
5012 UpdateTime string `json:"updateTime,omitempty"`
5013
5014
5015
5016
5017
5018 ForceSendFields []string `json:"-"`
5019
5020
5021
5022
5023 NullFields []string `json:"-"`
5024 }
5025
5026 func (s *GoogleCloudContactcenterinsightsV1alpha1Conversation) MarshalJSON() ([]byte, error) {
5027 type NoMethod GoogleCloudContactcenterinsightsV1alpha1Conversation
5028 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5029 }
5030
5031
5032
5033 type GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata struct {
5034
5035 AgentChannel int64 `json:"agentChannel,omitempty"`
5036
5037 CustomerChannel int64 `json:"customerChannel,omitempty"`
5038
5039
5040
5041
5042
5043 ForceSendFields []string `json:"-"`
5044
5045
5046
5047
5048 NullFields []string `json:"-"`
5049 }
5050
5051 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata) MarshalJSON() ([]byte, error) {
5052 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata
5053 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5054 }
5055
5056
5057
5058 type GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource struct {
5059
5060 DialogflowSource *GoogleCloudContactcenterinsightsV1alpha1DialogflowSource `json:"dialogflowSource,omitempty"`
5061
5062
5063 GcsSource *GoogleCloudContactcenterinsightsV1alpha1GcsSource `json:"gcsSource,omitempty"`
5064
5065
5066
5067
5068
5069 ForceSendFields []string `json:"-"`
5070
5071
5072
5073
5074 NullFields []string `json:"-"`
5075 }
5076
5077 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource) MarshalJSON() ([]byte, error) {
5078 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource
5079 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5080 }
5081
5082
5083
5084 type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment struct {
5085
5086 ChannelTag int64 `json:"channelTag,omitempty"`
5087
5088 SentimentData *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentimentData,omitempty"`
5089
5090
5091
5092
5093
5094 ForceSendFields []string `json:"-"`
5095
5096
5097
5098
5099 NullFields []string `json:"-"`
5100 }
5101
5102 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment) MarshalJSON() ([]byte, error) {
5103 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment
5104 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5105 }
5106
5107
5108
5109 type GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence struct {
5110
5111 SilenceDuration string `json:"silenceDuration,omitempty"`
5112
5113 SilencePercentage float64 `json:"silencePercentage,omitempty"`
5114
5115
5116
5117
5118
5119 ForceSendFields []string `json:"-"`
5120
5121
5122
5123
5124 NullFields []string `json:"-"`
5125 }
5126
5127 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence) MarshalJSON() ([]byte, error) {
5128 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence
5129 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5130 }
5131
5132 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence) UnmarshalJSON(data []byte) error {
5133 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSilence
5134 var s1 struct {
5135 SilencePercentage gensupport.JSONFloat64 `json:"silencePercentage"`
5136 *NoMethod
5137 }
5138 s1.NoMethod = (*NoMethod)(s)
5139 if err := json.Unmarshal(data, &s1); err != nil {
5140 return err
5141 }
5142 s.SilencePercentage = float64(s1.SilencePercentage)
5143 return nil
5144 }
5145
5146
5147
5148 type GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant struct {
5149
5150
5151
5152
5153 DialogflowParticipant string `json:"dialogflowParticipant,omitempty"`
5154
5155
5156
5157
5158 DialogflowParticipantName string `json:"dialogflowParticipantName,omitempty"`
5159
5160 ObfuscatedExternalUserId string `json:"obfuscatedExternalUserId,omitempty"`
5161
5162
5163
5164
5165
5166
5167
5168
5169
5170 Role string `json:"role,omitempty"`
5171
5172 UserId string `json:"userId,omitempty"`
5173
5174
5175
5176
5177
5178 ForceSendFields []string `json:"-"`
5179
5180
5181
5182
5183 NullFields []string `json:"-"`
5184 }
5185
5186 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant) MarshalJSON() ([]byte, error) {
5187 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant
5188 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5189 }
5190
5191
5192
5193 type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata struct {
5194
5195 AgentInfo []*GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo `json:"agentInfo,omitempty"`
5196
5197
5198 CustomerSatisfactionRating int64 `json:"customerSatisfactionRating,omitempty"`
5199
5200
5201 MenuPath string `json:"menuPath,omitempty"`
5202
5203
5204 WaitDuration string `json:"waitDuration,omitempty"`
5205
5206
5207
5208
5209
5210 ForceSendFields []string `json:"-"`
5211
5212
5213
5214
5215 NullFields []string `json:"-"`
5216 }
5217
5218 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata) MarshalJSON() ([]byte, error) {
5219 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadata
5220 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5221 }
5222
5223
5224
5225
5226 type GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo struct {
5227
5228 AgentId string `json:"agentId,omitempty"`
5229
5230 DisplayName string `json:"displayName,omitempty"`
5231
5232
5233 DispositionCode string `json:"dispositionCode,omitempty"`
5234
5235 Team string `json:"team,omitempty"`
5236
5237
5238
5239
5240
5241 ForceSendFields []string `json:"-"`
5242
5243
5244
5245
5246 NullFields []string `json:"-"`
5247 }
5248
5249 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo) MarshalJSON() ([]byte, error) {
5250 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationQualityMetadataAgentInfo
5251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5252 }
5253
5254
5255
5256 type GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData struct {
5257
5258
5259 AnswerRecord string `json:"answerRecord,omitempty"`
5260
5261 Confidence float64 `json:"confidence,omitempty"`
5262
5263
5264
5265
5266 ConversationModel string `json:"conversationModel,omitempty"`
5267
5268
5269 Metadata map[string]string `json:"metadata,omitempty"`
5270
5271 Text string `json:"text,omitempty"`
5272
5273
5274
5275 TextSections map[string]string `json:"textSections,omitempty"`
5276
5277
5278
5279
5280
5281 ForceSendFields []string `json:"-"`
5282
5283
5284
5285
5286 NullFields []string `json:"-"`
5287 }
5288
5289 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData) MarshalJSON() ([]byte, error) {
5290 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData
5291 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5292 }
5293
5294 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData) UnmarshalJSON(data []byte) error {
5295 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData
5296 var s1 struct {
5297 Confidence gensupport.JSONFloat64 `json:"confidence"`
5298 *NoMethod
5299 }
5300 s1.NoMethod = (*NoMethod)(s)
5301 if err := json.Unmarshal(data, &s1); err != nil {
5302 return err
5303 }
5304 s.Confidence = float64(s1.Confidence)
5305 return nil
5306 }
5307
5308
5309
5310 type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript struct {
5311
5312
5313 TranscriptSegments []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment `json:"transcriptSegments,omitempty"`
5314
5315
5316
5317
5318
5319 ForceSendFields []string `json:"-"`
5320
5321
5322
5323
5324 NullFields []string `json:"-"`
5325 }
5326
5327 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript) MarshalJSON() ([]byte, error) {
5328 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript
5329 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5330 }
5331
5332
5333
5334 type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment struct {
5335
5336
5337
5338
5339 ChannelTag int64 `json:"channelTag,omitempty"`
5340
5341
5342 Confidence float64 `json:"confidence,omitempty"`
5343
5344
5345 DialogflowSegmentMetadata *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata `json:"dialogflowSegmentMetadata,omitempty"`
5346
5347
5348
5349 LanguageCode string `json:"languageCode,omitempty"`
5350
5351 MessageTime string `json:"messageTime,omitempty"`
5352
5353 SegmentParticipant *GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant `json:"segmentParticipant,omitempty"`
5354
5355 Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"`
5356
5357 Text string `json:"text,omitempty"`
5358
5359 Words []*GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo `json:"words,omitempty"`
5360
5361
5362
5363
5364
5365 ForceSendFields []string `json:"-"`
5366
5367
5368
5369
5370 NullFields []string `json:"-"`
5371 }
5372
5373 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) MarshalJSON() ([]byte, error) {
5374 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment
5375 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5376 }
5377
5378 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment) UnmarshalJSON(data []byte) error {
5379 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment
5380 var s1 struct {
5381 Confidence gensupport.JSONFloat64 `json:"confidence"`
5382 *NoMethod
5383 }
5384 s1.NoMethod = (*NoMethod)(s)
5385 if err := json.Unmarshal(data, &s1); err != nil {
5386 return err
5387 }
5388 s.Confidence = float64(s1.Confidence)
5389 return nil
5390 }
5391
5392
5393
5394
5395 type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata struct {
5396
5397
5398 SmartReplyAllowlistCovered bool `json:"smartReplyAllowlistCovered,omitempty"`
5399
5400
5401
5402
5403
5404 ForceSendFields []string `json:"-"`
5405
5406
5407
5408
5409 NullFields []string `json:"-"`
5410 }
5411
5412 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata) MarshalJSON() ([]byte, error) {
5413 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
5414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5415 }
5416
5417
5418
5419 type GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo struct {
5420
5421
5422 Confidence float64 `json:"confidence,omitempty"`
5423
5424
5425 EndOffset string `json:"endOffset,omitempty"`
5426
5427
5428 StartOffset string `json:"startOffset,omitempty"`
5429
5430 Word string `json:"word,omitempty"`
5431
5432
5433
5434
5435
5436 ForceSendFields []string `json:"-"`
5437
5438
5439
5440
5441 NullFields []string `json:"-"`
5442 }
5443
5444 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) MarshalJSON() ([]byte, error) {
5445 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo
5446 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5447 }
5448
5449 func (s *GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo) UnmarshalJSON(data []byte) error {
5450 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo
5451 var s1 struct {
5452 Confidence gensupport.JSONFloat64 `json:"confidence"`
5453 *NoMethod
5454 }
5455 s1.NoMethod = (*NoMethod)(s)
5456 if err := json.Unmarshal(data, &s1); err != nil {
5457 return err
5458 }
5459 s.Confidence = float64(s1.Confidence)
5460 return nil
5461 }
5462
5463
5464
5465 type GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata struct {
5466
5467
5468 AnnotatorSelector *GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector `json:"annotatorSelector,omitempty"`
5469
5470
5471 Conversation string `json:"conversation,omitempty"`
5472
5473 CreateTime string `json:"createTime,omitempty"`
5474
5475 EndTime string `json:"endTime,omitempty"`
5476
5477
5478
5479
5480
5481 ForceSendFields []string `json:"-"`
5482
5483
5484
5485
5486 NullFields []string `json:"-"`
5487 }
5488
5489 func (s *GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata) MarshalJSON() ([]byte, error) {
5490 type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata
5491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5492 }
5493
5494
5495
5496 type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata struct {
5497
5498 CreateTime string `json:"createTime,omitempty"`
5499
5500 EndTime string `json:"endTime,omitempty"`
5501
5502 Request *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest `json:"request,omitempty"`
5503
5504
5505
5506
5507
5508 ForceSendFields []string `json:"-"`
5509
5510
5511
5512
5513 NullFields []string `json:"-"`
5514 }
5515
5516 func (s *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata) MarshalJSON() ([]byte, error) {
5517 type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata
5518 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5519 }
5520
5521
5522
5523 type GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest struct {
5524
5525 IssueModel *GoogleCloudContactcenterinsightsV1alpha1IssueModel `json:"issueModel,omitempty"`
5526
5527 Parent string `json:"parent,omitempty"`
5528
5529
5530
5531
5532
5533 ForceSendFields []string `json:"-"`
5534
5535
5536
5537
5538 NullFields []string `json:"-"`
5539 }
5540
5541 func (s *GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest) MarshalJSON() ([]byte, error) {
5542 type NoMethod GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest
5543 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5544 }
5545
5546
5547
5548 type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata struct {
5549
5550 CreateTime string `json:"createTime,omitempty"`
5551
5552 EndTime string `json:"endTime,omitempty"`
5553
5554 Request *GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest `json:"request,omitempty"`
5555
5556
5557
5558
5559
5560 ForceSendFields []string `json:"-"`
5561
5562
5563
5564
5565 NullFields []string `json:"-"`
5566 }
5567
5568 func (s *GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata) MarshalJSON() ([]byte, error) {
5569 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata
5570 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5571 }
5572
5573
5574
5575 type GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest struct {
5576
5577 Name string `json:"name,omitempty"`
5578
5579
5580
5581
5582
5583 ForceSendFields []string `json:"-"`
5584
5585
5586
5587
5588 NullFields []string `json:"-"`
5589 }
5590
5591 func (s *GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest) MarshalJSON() ([]byte, error) {
5592 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest
5593 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5594 }
5595
5596
5597
5598 type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata struct {
5599
5600 CreateTime string `json:"createTime,omitempty"`
5601
5602 EndTime string `json:"endTime,omitempty"`
5603
5604 Request *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest `json:"request,omitempty"`
5605
5606
5607
5608
5609
5610 ForceSendFields []string `json:"-"`
5611
5612
5613
5614
5615 NullFields []string `json:"-"`
5616 }
5617
5618 func (s *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata) MarshalJSON() ([]byte, error) {
5619 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata
5620 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5621 }
5622
5623
5624
5625 type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest struct {
5626
5627 Name string `json:"name,omitempty"`
5628
5629
5630
5631
5632
5633 ForceSendFields []string `json:"-"`
5634
5635
5636
5637
5638 NullFields []string `json:"-"`
5639 }
5640
5641 func (s *GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest) MarshalJSON() ([]byte, error) {
5642 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest
5643 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5644 }
5645
5646
5647
5648 type GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse struct {
5649 }
5650
5651
5652
5653
5654 type GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent struct {
5655
5656 DisplayName string `json:"displayName,omitempty"`
5657
5658
5659
5660
5661
5662 ForceSendFields []string `json:"-"`
5663
5664
5665
5666
5667 NullFields []string `json:"-"`
5668 }
5669
5670 func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent) MarshalJSON() ([]byte, error) {
5671 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent
5672 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5673 }
5674
5675
5676
5677 type GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData struct {
5678
5679
5680 Confidence float64 `json:"confidence,omitempty"`
5681
5682
5683 DialogflowIntentId string `json:"dialogflowIntentId,omitempty"`
5684
5685
5686
5687
5688
5689 ForceSendFields []string `json:"-"`
5690
5691
5692
5693
5694 NullFields []string `json:"-"`
5695 }
5696
5697 func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) MarshalJSON() ([]byte, error) {
5698 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData
5699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5700 }
5701
5702 func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData) UnmarshalJSON(data []byte) error {
5703 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData
5704 var s1 struct {
5705 Confidence gensupport.JSONFloat64 `json:"confidence"`
5706 *NoMethod
5707 }
5708 s1.NoMethod = (*NoMethod)(s)
5709 if err := json.Unmarshal(data, &s1); err != nil {
5710 return err
5711 }
5712 s.Confidence = float64(s1.Confidence)
5713 return nil
5714 }
5715
5716
5717
5718 type GoogleCloudContactcenterinsightsV1alpha1DialogflowSource struct {
5719
5720
5721 AudioUri string `json:"audioUri,omitempty"`
5722
5723
5724
5725 DialogflowConversation string `json:"dialogflowConversation,omitempty"`
5726
5727
5728
5729
5730
5731 ForceSendFields []string `json:"-"`
5732
5733
5734
5735
5736 NullFields []string `json:"-"`
5737 }
5738
5739 func (s *GoogleCloudContactcenterinsightsV1alpha1DialogflowSource) MarshalJSON() ([]byte, error) {
5740 type NoMethod GoogleCloudContactcenterinsightsV1alpha1DialogflowSource
5741 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5742 }
5743
5744
5745
5746
5747 type GoogleCloudContactcenterinsightsV1alpha1Entity struct {
5748
5749 DisplayName string `json:"displayName,omitempty"`
5750
5751
5752
5753
5754 Metadata map[string]string `json:"metadata,omitempty"`
5755
5756
5757
5758
5759 Salience float64 `json:"salience,omitempty"`
5760
5761
5762 Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"`
5763
5764
5765
5766
5767
5768
5769
5770
5771
5772
5773
5774
5775
5776
5777
5778
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788
5789
5790
5791
5792
5793 Type string `json:"type,omitempty"`
5794
5795
5796
5797
5798
5799 ForceSendFields []string `json:"-"`
5800
5801
5802
5803
5804 NullFields []string `json:"-"`
5805 }
5806
5807 func (s *GoogleCloudContactcenterinsightsV1alpha1Entity) MarshalJSON() ([]byte, error) {
5808 type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity
5809 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5810 }
5811
5812 func (s *GoogleCloudContactcenterinsightsV1alpha1Entity) UnmarshalJSON(data []byte) error {
5813 type NoMethod GoogleCloudContactcenterinsightsV1alpha1Entity
5814 var s1 struct {
5815 Salience gensupport.JSONFloat64 `json:"salience"`
5816 *NoMethod
5817 }
5818 s1.NoMethod = (*NoMethod)(s)
5819 if err := json.Unmarshal(data, &s1); err != nil {
5820 return err
5821 }
5822 s.Salience = float64(s1.Salience)
5823 return nil
5824 }
5825
5826
5827
5828
5829 type GoogleCloudContactcenterinsightsV1alpha1EntityMentionData struct {
5830
5831
5832 EntityUniqueId string `json:"entityUniqueId,omitempty"`
5833
5834 Sentiment *GoogleCloudContactcenterinsightsV1alpha1SentimentData `json:"sentiment,omitempty"`
5835
5836
5837
5838
5839
5840
5841 Type string `json:"type,omitempty"`
5842
5843
5844
5845
5846
5847 ForceSendFields []string `json:"-"`
5848
5849
5850
5851
5852 NullFields []string `json:"-"`
5853 }
5854
5855 func (s *GoogleCloudContactcenterinsightsV1alpha1EntityMentionData) MarshalJSON() ([]byte, error) {
5856 type NoMethod GoogleCloudContactcenterinsightsV1alpha1EntityMentionData
5857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5858 }
5859
5860
5861
5862 type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata struct {
5863
5864 CreateTime string `json:"createTime,omitempty"`
5865
5866 EndTime string `json:"endTime,omitempty"`
5867
5868
5869 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
5870
5871 Request *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest `json:"request,omitempty"`
5872
5873
5874
5875
5876
5877 ForceSendFields []string `json:"-"`
5878
5879
5880
5881
5882 NullFields []string `json:"-"`
5883 }
5884
5885 func (s *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata) MarshalJSON() ([]byte, error) {
5886 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata
5887 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5888 }
5889
5890
5891
5892 type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest struct {
5893
5894 BigQueryDestination *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination `json:"bigQueryDestination,omitempty"`
5895
5896
5897 Filter string `json:"filter,omitempty"`
5898
5899
5900
5901
5902 KmsKey string `json:"kmsKey,omitempty"`
5903
5904 Parent string `json:"parent,omitempty"`
5905
5906
5907
5908
5909
5910
5911
5912
5913
5914
5915 WriteDisposition string `json:"writeDisposition,omitempty"`
5916
5917
5918
5919
5920
5921 ForceSendFields []string `json:"-"`
5922
5923
5924
5925
5926 NullFields []string `json:"-"`
5927 }
5928
5929 func (s *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest) MarshalJSON() ([]byte, error) {
5930 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest
5931 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5932 }
5933
5934
5935
5936 type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination struct {
5937
5938
5939
5940 Dataset string `json:"dataset,omitempty"`
5941
5942
5943
5944 ProjectId string `json:"projectId,omitempty"`
5945
5946
5947
5948 Table string `json:"table,omitempty"`
5949
5950
5951
5952
5953
5954 ForceSendFields []string `json:"-"`
5955
5956
5957
5958
5959 NullFields []string `json:"-"`
5960 }
5961
5962 func (s *GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination) MarshalJSON() ([]byte, error) {
5963 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination
5964 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5965 }
5966
5967
5968
5969 type GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse struct {
5970 }
5971
5972
5973
5974 type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata struct {
5975
5976 CreateTime string `json:"createTime,omitempty"`
5977
5978 EndTime string `json:"endTime,omitempty"`
5979
5980 Request *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest `json:"request,omitempty"`
5981
5982
5983
5984
5985
5986 ForceSendFields []string `json:"-"`
5987
5988
5989
5990
5991 NullFields []string `json:"-"`
5992 }
5993
5994 func (s *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata) MarshalJSON() ([]byte, error) {
5995 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelMetadata
5996 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5997 }
5998
5999
6000
6001 type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest struct {
6002
6003 GcsDestination *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination `json:"gcsDestination,omitempty"`
6004
6005 Name string `json:"name,omitempty"`
6006
6007
6008
6009
6010
6011 ForceSendFields []string `json:"-"`
6012
6013
6014
6015
6016 NullFields []string `json:"-"`
6017 }
6018
6019 func (s *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest) MarshalJSON() ([]byte, error) {
6020 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequest
6021 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6022 }
6023
6024
6025
6026 type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination struct {
6027
6028 ObjectUri string `json:"objectUri,omitempty"`
6029
6030
6031
6032
6033
6034 ForceSendFields []string `json:"-"`
6035
6036
6037
6038
6039 NullFields []string `json:"-"`
6040 }
6041
6042 func (s *GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination) MarshalJSON() ([]byte, error) {
6043 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelRequestGcsDestination
6044 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6045 }
6046
6047
6048
6049 type GoogleCloudContactcenterinsightsV1alpha1ExportIssueModelResponse struct {
6050 }
6051
6052
6053
6054 type GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData struct {
6055
6056 Answer string `json:"answer,omitempty"`
6057
6058
6059
6060 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
6061
6062
6063 Metadata map[string]string `json:"metadata,omitempty"`
6064
6065
6066 QueryRecord string `json:"queryRecord,omitempty"`
6067
6068 Question string `json:"question,omitempty"`
6069
6070
6071 Source string `json:"source,omitempty"`
6072
6073
6074
6075
6076
6077 ForceSendFields []string `json:"-"`
6078
6079
6080
6081
6082 NullFields []string `json:"-"`
6083 }
6084
6085 func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) MarshalJSON() ([]byte, error) {
6086 type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData
6087 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6088 }
6089
6090 func (s *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData) UnmarshalJSON(data []byte) error {
6091 type NoMethod GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData
6092 var s1 struct {
6093 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
6094 *NoMethod
6095 }
6096 s1.NoMethod = (*NoMethod)(s)
6097 if err := json.Unmarshal(data, &s1); err != nil {
6098 return err
6099 }
6100 s.ConfidenceScore = float64(s1.ConfidenceScore)
6101 return nil
6102 }
6103
6104
6105
6106 type GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion struct {
6107
6108 Labels []string `json:"labels,omitempty"`
6109
6110 Response string `json:"response,omitempty"`
6111
6112
6113
6114
6115
6116 ForceSendFields []string `json:"-"`
6117
6118
6119
6120
6121 NullFields []string `json:"-"`
6122 }
6123
6124 func (s *GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion) MarshalJSON() ([]byte, error) {
6125 type NoMethod GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion
6126 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6127 }
6128
6129
6130
6131 type GoogleCloudContactcenterinsightsV1alpha1GcsSource struct {
6132
6133
6134 AudioUri string `json:"audioUri,omitempty"`
6135
6136
6137 TranscriptUri string `json:"transcriptUri,omitempty"`
6138
6139
6140
6141
6142
6143 ForceSendFields []string `json:"-"`
6144
6145
6146
6147
6148 NullFields []string `json:"-"`
6149 }
6150
6151 func (s *GoogleCloudContactcenterinsightsV1alpha1GcsSource) MarshalJSON() ([]byte, error) {
6152 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GcsSource
6153 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6154 }
6155
6156
6157
6158 type GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion struct {
6159
6160 AgentCoachingSuggestion *GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion `json:"agentCoachingSuggestion,omitempty"`
6161
6162 FreeFormSuggestion *GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion `json:"freeFormSuggestion,omitempty"`
6163
6164 SummarySuggestion *GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion `json:"summarySuggestion,omitempty"`
6165
6166
6167
6168
6169
6170 ForceSendFields []string `json:"-"`
6171
6172
6173
6174
6175 NullFields []string `json:"-"`
6176 }
6177
6178 func (s *GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion) MarshalJSON() ([]byte, error) {
6179 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion
6180 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6181 }
6182
6183
6184
6185 type GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse struct {
6186
6187 GeneratorSuggestion *GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion `json:"generatorSuggestion,omitempty"`
6188
6189
6190
6191
6192
6193 ForceSendFields []string `json:"-"`
6194
6195
6196
6197
6198 NullFields []string `json:"-"`
6199 }
6200
6201 func (s *GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse) MarshalJSON() ([]byte, error) {
6202 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse
6203 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6204 }
6205
6206
6207
6208
6209 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse struct {
6210
6211
6212 SuggestedQuery *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery `json:"suggestedQuery,omitempty"`
6213
6214
6215
6216 SuggestedQueryAnswer *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer `json:"suggestedQueryAnswer,omitempty"`
6217
6218
6219
6220
6221
6222 ForceSendFields []string `json:"-"`
6223
6224
6225
6226
6227 NullFields []string `json:"-"`
6228 }
6229
6230 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse) MarshalJSON() ([]byte, error) {
6231 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse
6232 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6233 }
6234
6235
6236
6237
6238 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer struct {
6239
6240
6241 AnswerText string `json:"answerText,omitempty"`
6242
6243 FaqSource *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource `json:"faqSource,omitempty"`
6244
6245 GenerativeSource *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource `json:"generativeSource,omitempty"`
6246
6247 IntentMatchingSource *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource `json:"intentMatchingSource,omitempty"`
6248
6249
6250
6251 MatchConfidence float64 `json:"matchConfidence,omitempty"`
6252
6253
6254
6255
6256
6257 ForceSendFields []string `json:"-"`
6258
6259
6260
6261
6262 NullFields []string `json:"-"`
6263 }
6264
6265 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer) MarshalJSON() ([]byte, error) {
6266 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
6267 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6268 }
6269
6270 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer) UnmarshalJSON(data []byte) error {
6271 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
6272 var s1 struct {
6273 MatchConfidence gensupport.JSONFloat64 `json:"matchConfidence"`
6274 *NoMethod
6275 }
6276 s1.NoMethod = (*NoMethod)(s)
6277 if err := json.Unmarshal(data, &s1); err != nil {
6278 return err
6279 }
6280 s.MatchConfidence = float64(s1.MatchConfidence)
6281 return nil
6282 }
6283
6284
6285
6286 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource struct {
6287
6288
6289 Document string `json:"document,omitempty"`
6290
6291 Question string `json:"question,omitempty"`
6292
6293
6294
6295
6296
6297 ForceSendFields []string `json:"-"`
6298
6299
6300
6301
6302 NullFields []string `json:"-"`
6303 }
6304
6305 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource) MarshalJSON() ([]byte, error) {
6306 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
6307 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6308 }
6309
6310
6311
6312 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource struct {
6313
6314
6315 Snippets []*GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet `json:"snippets,omitempty"`
6316
6317
6318
6319
6320
6321 ForceSendFields []string `json:"-"`
6322
6323
6324
6325
6326 NullFields []string `json:"-"`
6327 }
6328
6329 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource) MarshalJSON() ([]byte, error) {
6330 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
6331 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6332 }
6333
6334
6335
6336 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet struct {
6337
6338
6339 Document string `json:"document,omitempty"`
6340
6341 Text string `json:"text,omitempty"`
6342
6343 Title string `json:"title,omitempty"`
6344
6345 Uri string `json:"uri,omitempty"`
6346
6347
6348
6349
6350
6351 ForceSendFields []string `json:"-"`
6352
6353
6354
6355
6356 NullFields []string `json:"-"`
6357 }
6358
6359 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet) MarshalJSON() ([]byte, error) {
6360 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet
6361 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6362 }
6363
6364
6365
6366 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource struct {
6367
6368 Title string `json:"title,omitempty"`
6369
6370 Uri string `json:"uri,omitempty"`
6371
6372
6373
6374
6375
6376 ForceSendFields []string `json:"-"`
6377
6378
6379
6380
6381 NullFields []string `json:"-"`
6382 }
6383
6384 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource) MarshalJSON() ([]byte, error) {
6385 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
6386 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6387 }
6388
6389
6390
6391 type GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery struct {
6392
6393 QueryText string `json:"queryText,omitempty"`
6394
6395 Score float64 `json:"score,omitempty"`
6396
6397
6398
6399
6400
6401 ForceSendFields []string `json:"-"`
6402
6403
6404
6405
6406 NullFields []string `json:"-"`
6407 }
6408
6409 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery) MarshalJSON() ([]byte, error) {
6410 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery
6411 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6412 }
6413
6414 func (s *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery) UnmarshalJSON(data []byte) error {
6415 type NoMethod GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery
6416 var s1 struct {
6417 Score gensupport.JSONFloat64 `json:"score"`
6418 *NoMethod
6419 }
6420 s1.NoMethod = (*NoMethod)(s)
6421 if err := json.Unmarshal(data, &s1); err != nil {
6422 return err
6423 }
6424 s.Score = float64(s1.Score)
6425 return nil
6426 }
6427
6428
6429
6430 type GoogleCloudContactcenterinsightsV1alpha1HoldData struct {
6431 }
6432
6433
6434
6435 type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata struct {
6436
6437 CreateTime string `json:"createTime,omitempty"`
6438
6439 EndTime string `json:"endTime,omitempty"`
6440
6441 Request *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest `json:"request,omitempty"`
6442
6443
6444
6445
6446
6447 ForceSendFields []string `json:"-"`
6448
6449
6450
6451
6452 NullFields []string `json:"-"`
6453 }
6454
6455 func (s *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata) MarshalJSON() ([]byte, error) {
6456 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelMetadata
6457 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6458 }
6459
6460
6461
6462 type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest struct {
6463
6464
6465
6466
6467 CreateNewModel bool `json:"createNewModel,omitempty"`
6468
6469 GcsSource *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource `json:"gcsSource,omitempty"`
6470
6471 Parent string `json:"parent,omitempty"`
6472
6473
6474
6475
6476
6477 ForceSendFields []string `json:"-"`
6478
6479
6480
6481
6482 NullFields []string `json:"-"`
6483 }
6484
6485 func (s *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest) MarshalJSON() ([]byte, error) {
6486 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequest
6487 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6488 }
6489
6490
6491
6492 type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource struct {
6493
6494 ObjectUri string `json:"objectUri,omitempty"`
6495
6496
6497
6498
6499
6500 ForceSendFields []string `json:"-"`
6501
6502
6503
6504
6505 NullFields []string `json:"-"`
6506 }
6507
6508 func (s *GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource) MarshalJSON() ([]byte, error) {
6509 type NoMethod GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelRequestGcsSource
6510 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6511 }
6512
6513
6514
6515 type GoogleCloudContactcenterinsightsV1alpha1ImportIssueModelResponse struct {
6516 }
6517
6518
6519
6520 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata struct {
6521
6522 CreateTime string `json:"createTime,omitempty"`
6523
6524 EndTime string `json:"endTime,omitempty"`
6525
6526
6527 IngestConversationsStats *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats `json:"ingestConversationsStats,omitempty"`
6528
6529
6530 PartialErrors []*GoogleRpcStatus `json:"partialErrors,omitempty"`
6531
6532 Request *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest `json:"request,omitempty"`
6533
6534
6535
6536
6537
6538 ForceSendFields []string `json:"-"`
6539
6540
6541
6542
6543 NullFields []string `json:"-"`
6544 }
6545
6546 func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata) MarshalJSON() ([]byte, error) {
6547 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata
6548 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6549 }
6550
6551
6552
6553 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats struct {
6554
6555
6556 DuplicatesSkippedCount int64 `json:"duplicatesSkippedCount,omitempty"`
6557
6558
6559
6560 FailedIngestCount int64 `json:"failedIngestCount,omitempty"`
6561
6562
6563 ProcessedObjectCount int64 `json:"processedObjectCount,omitempty"`
6564
6565
6566 SuccessfulIngestCount int64 `json:"successfulIngestCount,omitempty"`
6567
6568
6569
6570
6571
6572 ForceSendFields []string `json:"-"`
6573
6574
6575
6576
6577 NullFields []string `json:"-"`
6578 }
6579
6580 func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats) MarshalJSON() ([]byte, error) {
6581 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats
6582 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6583 }
6584
6585
6586
6587 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest struct {
6588
6589 ConversationConfig *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig `json:"conversationConfig,omitempty"`
6590
6591
6592 GcsSource *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource `json:"gcsSource,omitempty"`
6593
6594 Parent string `json:"parent,omitempty"`
6595
6596
6597 RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"`
6598
6599
6600
6601
6602 SampleSize int64 `json:"sampleSize,omitempty"`
6603
6604
6605 SpeechConfig *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig `json:"speechConfig,omitempty"`
6606
6607
6608 TranscriptObjectConfig *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig `json:"transcriptObjectConfig,omitempty"`
6609
6610
6611
6612
6613
6614 ForceSendFields []string `json:"-"`
6615
6616
6617
6618
6619 NullFields []string `json:"-"`
6620 }
6621
6622 func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest) MarshalJSON() ([]byte, error) {
6623 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest
6624 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6625 }
6626
6627
6628
6629 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig struct {
6630
6631
6632
6633 AgentChannel int64 `json:"agentChannel,omitempty"`
6634
6635
6636
6637
6638 AgentId string `json:"agentId,omitempty"`
6639
6640
6641
6642 CustomerChannel int64 `json:"customerChannel,omitempty"`
6643
6644
6645
6646
6647
6648 ForceSendFields []string `json:"-"`
6649
6650
6651
6652
6653 NullFields []string `json:"-"`
6654 }
6655
6656 func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig) MarshalJSON() ([]byte, error) {
6657 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig
6658 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6659 }
6660
6661
6662
6663 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource struct {
6664
6665
6666
6667
6668
6669
6670
6671
6672 BucketObjectType string `json:"bucketObjectType,omitempty"`
6673
6674 BucketUri string `json:"bucketUri,omitempty"`
6675
6676
6677
6678
6679 CustomMetadataKeys []string `json:"customMetadataKeys,omitempty"`
6680
6681
6682
6683
6684 MetadataBucketUri string `json:"metadataBucketUri,omitempty"`
6685
6686
6687
6688
6689
6690 ForceSendFields []string `json:"-"`
6691
6692
6693
6694
6695 NullFields []string `json:"-"`
6696 }
6697
6698 func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource) MarshalJSON() ([]byte, error) {
6699 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
6700 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6701 }
6702
6703
6704
6705 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig struct {
6706
6707
6708
6709
6710
6711
6712
6713
6714 Medium string `json:"medium,omitempty"`
6715
6716
6717
6718
6719
6720 ForceSendFields []string `json:"-"`
6721
6722
6723
6724
6725 NullFields []string `json:"-"`
6726 }
6727
6728 func (s *GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig) MarshalJSON() ([]byte, error) {
6729 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig
6730 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6731 }
6732
6733
6734
6735 type GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse struct {
6736 }
6737
6738
6739
6740 type GoogleCloudContactcenterinsightsV1alpha1Intent struct {
6741
6742 DisplayName string `json:"displayName,omitempty"`
6743
6744 Id string `json:"id,omitempty"`
6745
6746
6747
6748
6749
6750 ForceSendFields []string `json:"-"`
6751
6752
6753
6754
6755 NullFields []string `json:"-"`
6756 }
6757
6758 func (s *GoogleCloudContactcenterinsightsV1alpha1Intent) MarshalJSON() ([]byte, error) {
6759 type NoMethod GoogleCloudContactcenterinsightsV1alpha1Intent
6760 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6761 }
6762
6763
6764
6765
6766
6767 type GoogleCloudContactcenterinsightsV1alpha1IntentMatchData struct {
6768
6769
6770 IntentUniqueId string `json:"intentUniqueId,omitempty"`
6771
6772
6773
6774
6775
6776 ForceSendFields []string `json:"-"`
6777
6778
6779
6780
6781 NullFields []string `json:"-"`
6782 }
6783
6784 func (s *GoogleCloudContactcenterinsightsV1alpha1IntentMatchData) MarshalJSON() ([]byte, error) {
6785 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IntentMatchData
6786 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6787 }
6788
6789
6790
6791 type GoogleCloudContactcenterinsightsV1alpha1InterruptionData struct {
6792 }
6793
6794
6795
6796 type GoogleCloudContactcenterinsightsV1alpha1IssueAssignment struct {
6797
6798
6799 DisplayName string `json:"displayName,omitempty"`
6800
6801 Issue string `json:"issue,omitempty"`
6802
6803
6804 Score float64 `json:"score,omitempty"`
6805
6806
6807
6808
6809
6810 ForceSendFields []string `json:"-"`
6811
6812
6813
6814
6815 NullFields []string `json:"-"`
6816 }
6817
6818 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) MarshalJSON() ([]byte, error) {
6819 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment
6820 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6821 }
6822
6823 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment) UnmarshalJSON(data []byte) error {
6824 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueAssignment
6825 var s1 struct {
6826 Score gensupport.JSONFloat64 `json:"score"`
6827 *NoMethod
6828 }
6829 s1.NoMethod = (*NoMethod)(s)
6830 if err := json.Unmarshal(data, &s1); err != nil {
6831 return err
6832 }
6833 s.Score = float64(s1.Score)
6834 return nil
6835 }
6836
6837
6838
6839 type GoogleCloudContactcenterinsightsV1alpha1IssueMatchData struct {
6840
6841 IssueAssignment *GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issueAssignment,omitempty"`
6842
6843
6844
6845
6846
6847 ForceSendFields []string `json:"-"`
6848
6849
6850
6851
6852 NullFields []string `json:"-"`
6853 }
6854
6855 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueMatchData) MarshalJSON() ([]byte, error) {
6856 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueMatchData
6857 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6858 }
6859
6860
6861
6862 type GoogleCloudContactcenterinsightsV1alpha1IssueModel struct {
6863
6864 CreateTime string `json:"createTime,omitempty"`
6865
6866 DisplayName string `json:"displayName,omitempty"`
6867
6868
6869 InputDataConfig *GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig `json:"inputDataConfig,omitempty"`
6870
6871 IssueCount int64 `json:"issueCount,omitempty,string"`
6872
6873 LanguageCode string `json:"languageCode,omitempty"`
6874
6875
6876
6877
6878
6879
6880 ModelType string `json:"modelType,omitempty"`
6881
6882
6883 Name string `json:"name,omitempty"`
6884
6885
6886
6887
6888
6889
6890
6891
6892
6893
6894 State string `json:"state,omitempty"`
6895
6896
6897 TrainingStats *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats `json:"trainingStats,omitempty"`
6898
6899
6900 UpdateTime string `json:"updateTime,omitempty"`
6901
6902
6903
6904
6905
6906 ForceSendFields []string `json:"-"`
6907
6908
6909
6910
6911 NullFields []string `json:"-"`
6912 }
6913
6914 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModel) MarshalJSON() ([]byte, error) {
6915 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModel
6916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6917 }
6918
6919
6920
6921 type GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig struct {
6922
6923
6924 Filter string `json:"filter,omitempty"`
6925
6926
6927
6928
6929
6930
6931
6932
6933
6934
6935 Medium string `json:"medium,omitempty"`
6936
6937
6938 TrainingConversationsCount int64 `json:"trainingConversationsCount,omitempty,string"`
6939
6940
6941
6942
6943
6944 ForceSendFields []string `json:"-"`
6945
6946
6947
6948
6949 NullFields []string `json:"-"`
6950 }
6951
6952 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig) MarshalJSON() ([]byte, error) {
6953 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig
6954 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6955 }
6956
6957
6958
6959 type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats struct {
6960
6961
6962 AnalyzedConversationsCount int64 `json:"analyzedConversationsCount,omitempty,string"`
6963
6964 IssueStats map[string]GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats `json:"issueStats,omitempty"`
6965
6966
6967 UnclassifiedConversationsCount int64 `json:"unclassifiedConversationsCount,omitempty,string"`
6968
6969
6970
6971
6972
6973 ForceSendFields []string `json:"-"`
6974
6975
6976
6977
6978 NullFields []string `json:"-"`
6979 }
6980
6981 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats) MarshalJSON() ([]byte, error) {
6982 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats
6983 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6984 }
6985
6986
6987
6988 type GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats struct {
6989
6990 DisplayName string `json:"displayName,omitempty"`
6991
6992
6993
6994 Issue string `json:"issue,omitempty"`
6995
6996
6997 LabeledConversationsCount int64 `json:"labeledConversationsCount,omitempty,string"`
6998
6999
7000
7001
7002
7003 ForceSendFields []string `json:"-"`
7004
7005
7006
7007
7008 NullFields []string `json:"-"`
7009 }
7010
7011 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats) MarshalJSON() ([]byte, error) {
7012 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats
7013 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7014 }
7015
7016
7017
7018 type GoogleCloudContactcenterinsightsV1alpha1IssueModelResult struct {
7019
7020
7021 IssueModel string `json:"issueModel,omitempty"`
7022
7023 Issues []*GoogleCloudContactcenterinsightsV1alpha1IssueAssignment `json:"issues,omitempty"`
7024
7025
7026
7027
7028
7029 ForceSendFields []string `json:"-"`
7030
7031
7032
7033
7034 NullFields []string `json:"-"`
7035 }
7036
7037 func (s *GoogleCloudContactcenterinsightsV1alpha1IssueModelResult) MarshalJSON() ([]byte, error) {
7038 type NoMethod GoogleCloudContactcenterinsightsV1alpha1IssueModelResult
7039 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7040 }
7041
7042
7043
7044
7045 type GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData struct {
7046
7047 DisplayName string `json:"displayName,omitempty"`
7048
7049
7050 PhraseMatcher string `json:"phraseMatcher,omitempty"`
7051
7052
7053
7054
7055
7056 ForceSendFields []string `json:"-"`
7057
7058
7059
7060
7061 NullFields []string `json:"-"`
7062 }
7063
7064 func (s *GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData) MarshalJSON() ([]byte, error) {
7065 type NoMethod GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData
7066 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7067 }
7068
7069
7070
7071
7072
7073
7074
7075
7076
7077 type GoogleCloudContactcenterinsightsV1alpha1RedactionConfig struct {
7078
7079
7080 DeidentifyTemplate string `json:"deidentifyTemplate,omitempty"`
7081
7082
7083
7084 InspectTemplate string `json:"inspectTemplate,omitempty"`
7085
7086
7087
7088
7089
7090 ForceSendFields []string `json:"-"`
7091
7092
7093
7094
7095 NullFields []string `json:"-"`
7096 }
7097
7098 func (s *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig) MarshalJSON() ([]byte, error) {
7099 type NoMethod GoogleCloudContactcenterinsightsV1alpha1RedactionConfig
7100 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7101 }
7102
7103
7104
7105 type GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation struct {
7106
7107
7108
7109 AnnotationId string `json:"annotationId,omitempty"`
7110
7111
7112 AnswerFeedback *GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback `json:"answerFeedback,omitempty"`
7113
7114 ArticleSuggestion *GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData `json:"articleSuggestion,omitempty"`
7115
7116
7117 ConversationSummarizationSuggestion *GoogleCloudContactcenterinsightsV1alpha1ConversationSummarizationSuggestionData `json:"conversationSummarizationSuggestion,omitempty"`
7118
7119 CreateTime string `json:"createTime,omitempty"`
7120
7121 DialogflowInteraction *GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData `json:"dialogflowInteraction,omitempty"`
7122
7123
7124 EndBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"endBoundary,omitempty"`
7125
7126 FaqAnswer *GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData `json:"faqAnswer,omitempty"`
7127
7128 GeneratorSuggestionResult *GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse `json:"generatorSuggestionResult,omitempty"`
7129
7130 KnowledgeAssistResult *GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse `json:"knowledgeAssistResult,omitempty"`
7131
7132 KnowledgeSearchResult *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer `json:"knowledgeSearchResult,omitempty"`
7133
7134 SmartComposeSuggestion *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData `json:"smartComposeSuggestion,omitempty"`
7135
7136 SmartReply *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData `json:"smartReply,omitempty"`
7137
7138
7139 StartBoundary *GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary `json:"startBoundary,omitempty"`
7140
7141
7142
7143
7144
7145 ForceSendFields []string `json:"-"`
7146
7147
7148
7149
7150 NullFields []string `json:"-"`
7151 }
7152
7153 func (s *GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation) MarshalJSON() ([]byte, error) {
7154 type NoMethod GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation
7155 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7156 }
7157
7158
7159
7160 type GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer struct {
7161
7162
7163 Answer string `json:"answer,omitempty"`
7164
7165
7166 AnswerRecord string `json:"answerRecord,omitempty"`
7167
7168 AnswerSources []*GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource `json:"answerSources,omitempty"`
7169
7170
7171
7172
7173
7174
7175
7176 AnswerType string `json:"answerType,omitempty"`
7177
7178 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
7179
7180
7181
7182
7183
7184 ForceSendFields []string `json:"-"`
7185
7186
7187
7188
7189 NullFields []string `json:"-"`
7190 }
7191
7192 func (s *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer) MarshalJSON() ([]byte, error) {
7193 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
7194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7195 }
7196
7197 func (s *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer) UnmarshalJSON(data []byte) error {
7198 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
7199 var s1 struct {
7200 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
7201 *NoMethod
7202 }
7203 s1.NoMethod = (*NoMethod)(s)
7204 if err := json.Unmarshal(data, &s1); err != nil {
7205 return err
7206 }
7207 s.ConfidenceScore = float64(s1.ConfidenceScore)
7208 return nil
7209 }
7210
7211
7212
7213 type GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource struct {
7214
7215
7216 Document string `json:"document,omitempty"`
7217
7218 Snippet string `json:"snippet,omitempty"`
7219
7220 Title string `json:"title,omitempty"`
7221
7222 Uri string `json:"uri,omitempty"`
7223
7224
7225
7226
7227
7228 ForceSendFields []string `json:"-"`
7229
7230
7231
7232
7233 NullFields []string `json:"-"`
7234 }
7235
7236 func (s *GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource) MarshalJSON() ([]byte, error) {
7237 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource
7238 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7239 }
7240
7241
7242
7243 type GoogleCloudContactcenterinsightsV1alpha1SentimentData struct {
7244
7245
7246 Magnitude float64 `json:"magnitude,omitempty"`
7247
7248 Score float64 `json:"score,omitempty"`
7249
7250
7251
7252
7253
7254 ForceSendFields []string `json:"-"`
7255
7256
7257
7258
7259 NullFields []string `json:"-"`
7260 }
7261
7262 func (s *GoogleCloudContactcenterinsightsV1alpha1SentimentData) MarshalJSON() ([]byte, error) {
7263 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData
7264 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7265 }
7266
7267 func (s *GoogleCloudContactcenterinsightsV1alpha1SentimentData) UnmarshalJSON(data []byte) error {
7268 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SentimentData
7269 var s1 struct {
7270 Magnitude gensupport.JSONFloat64 `json:"magnitude"`
7271 Score gensupport.JSONFloat64 `json:"score"`
7272 *NoMethod
7273 }
7274 s1.NoMethod = (*NoMethod)(s)
7275 if err := json.Unmarshal(data, &s1); err != nil {
7276 return err
7277 }
7278 s.Magnitude = float64(s1.Magnitude)
7279 s.Score = float64(s1.Score)
7280 return nil
7281 }
7282
7283
7284
7285 type GoogleCloudContactcenterinsightsV1alpha1SilenceData struct {
7286 }
7287
7288
7289
7290 type GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData struct {
7291
7292
7293
7294 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
7295
7296
7297 Metadata map[string]string `json:"metadata,omitempty"`
7298
7299
7300 QueryRecord string `json:"queryRecord,omitempty"`
7301
7302 Suggestion string `json:"suggestion,omitempty"`
7303
7304
7305
7306
7307
7308 ForceSendFields []string `json:"-"`
7309
7310
7311
7312
7313 NullFields []string `json:"-"`
7314 }
7315
7316 func (s *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) MarshalJSON() ([]byte, error) {
7317 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData
7318 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7319 }
7320
7321 func (s *GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData) UnmarshalJSON(data []byte) error {
7322 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData
7323 var s1 struct {
7324 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
7325 *NoMethod
7326 }
7327 s1.NoMethod = (*NoMethod)(s)
7328 if err := json.Unmarshal(data, &s1); err != nil {
7329 return err
7330 }
7331 s.ConfidenceScore = float64(s1.ConfidenceScore)
7332 return nil
7333 }
7334
7335
7336
7337 type GoogleCloudContactcenterinsightsV1alpha1SmartReplyData struct {
7338
7339
7340
7341 ConfidenceScore float64 `json:"confidenceScore,omitempty"`
7342
7343
7344 Metadata map[string]string `json:"metadata,omitempty"`
7345
7346
7347 QueryRecord string `json:"queryRecord,omitempty"`
7348
7349 Reply string `json:"reply,omitempty"`
7350
7351
7352
7353
7354
7355 ForceSendFields []string `json:"-"`
7356
7357
7358
7359
7360 NullFields []string `json:"-"`
7361 }
7362
7363 func (s *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) MarshalJSON() ([]byte, error) {
7364 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData
7365 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7366 }
7367
7368 func (s *GoogleCloudContactcenterinsightsV1alpha1SmartReplyData) UnmarshalJSON(data []byte) error {
7369 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SmartReplyData
7370 var s1 struct {
7371 ConfidenceScore gensupport.JSONFloat64 `json:"confidenceScore"`
7372 *NoMethod
7373 }
7374 s1.NoMethod = (*NoMethod)(s)
7375 if err := json.Unmarshal(data, &s1); err != nil {
7376 return err
7377 }
7378 s.ConfidenceScore = float64(s1.ConfidenceScore)
7379 return nil
7380 }
7381
7382
7383
7384
7385
7386
7387 type GoogleCloudContactcenterinsightsV1alpha1SpeechConfig struct {
7388
7389
7390 SpeechRecognizer string `json:"speechRecognizer,omitempty"`
7391
7392
7393
7394
7395
7396 ForceSendFields []string `json:"-"`
7397
7398
7399
7400
7401 NullFields []string `json:"-"`
7402 }
7403
7404 func (s *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig) MarshalJSON() ([]byte, error) {
7405 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SpeechConfig
7406 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7407 }
7408
7409
7410
7411 type GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion struct {
7412
7413 SummarySections []*GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection `json:"summarySections,omitempty"`
7414
7415
7416
7417
7418
7419 ForceSendFields []string `json:"-"`
7420
7421
7422
7423
7424 NullFields []string `json:"-"`
7425 }
7426
7427 func (s *GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion) MarshalJSON() ([]byte, error) {
7428 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion
7429 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7430 }
7431
7432
7433
7434 type GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection struct {
7435
7436 Section string `json:"section,omitempty"`
7437
7438 Summary string `json:"summary,omitempty"`
7439
7440
7441
7442
7443
7444 ForceSendFields []string `json:"-"`
7445
7446
7447
7448
7449 NullFields []string `json:"-"`
7450 }
7451
7452 func (s *GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection) MarshalJSON() ([]byte, error) {
7453 type NoMethod GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection
7454 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7455 }
7456
7457
7458
7459 type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata struct {
7460
7461 CreateTime string `json:"createTime,omitempty"`
7462
7463 EndTime string `json:"endTime,omitempty"`
7464
7465 Request *GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest `json:"request,omitempty"`
7466
7467
7468
7469
7470
7471 ForceSendFields []string `json:"-"`
7472
7473
7474
7475
7476 NullFields []string `json:"-"`
7477 }
7478
7479 func (s *GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata) MarshalJSON() ([]byte, error) {
7480 type NoMethod GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
7481 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7482 }
7483
7484
7485
7486 type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest struct {
7487
7488 Name string `json:"name,omitempty"`
7489
7490
7491
7492
7493
7494 ForceSendFields []string `json:"-"`
7495
7496
7497
7498
7499 NullFields []string `json:"-"`
7500 }
7501
7502 func (s *GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest) MarshalJSON() ([]byte, error) {
7503 type NoMethod GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest
7504 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7505 }
7506
7507
7508
7509 type GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse struct {
7510 }
7511
7512
7513
7514 type GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata struct {
7515
7516
7517 AnalysisOperation string `json:"analysisOperation,omitempty"`
7518
7519
7520 AppliedRedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"appliedRedactionConfig,omitempty"`
7521
7522 CreateTime string `json:"createTime,omitempty"`
7523
7524 EndTime string `json:"endTime,omitempty"`
7525
7526 Request *GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest `json:"request,omitempty"`
7527
7528
7529
7530
7531
7532 ForceSendFields []string `json:"-"`
7533
7534
7535
7536
7537 NullFields []string `json:"-"`
7538 }
7539
7540 func (s *GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata) MarshalJSON() ([]byte, error) {
7541 type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata
7542 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7543 }
7544
7545
7546
7547 type GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest struct {
7548
7549 Conversation *GoogleCloudContactcenterinsightsV1alpha1Conversation `json:"conversation,omitempty"`
7550
7551
7552
7553
7554
7555 ConversationId string `json:"conversationId,omitempty"`
7556
7557 Parent string `json:"parent,omitempty"`
7558
7559
7560 RedactionConfig *GoogleCloudContactcenterinsightsV1alpha1RedactionConfig `json:"redactionConfig,omitempty"`
7561
7562
7563 SpeechConfig *GoogleCloudContactcenterinsightsV1alpha1SpeechConfig `json:"speechConfig,omitempty"`
7564
7565
7566
7567
7568
7569 ForceSendFields []string `json:"-"`
7570
7571
7572
7573
7574 NullFields []string `json:"-"`
7575 }
7576
7577 func (s *GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest) MarshalJSON() ([]byte, error) {
7578 type NoMethod GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest
7579 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7580 }
7581
7582
7583
7584 type GoogleLongrunningListOperationsResponse struct {
7585
7586 NextPageToken string `json:"nextPageToken,omitempty"`
7587
7588
7589 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
7590
7591
7592 googleapi.ServerResponse `json:"-"`
7593
7594
7595
7596
7597
7598 ForceSendFields []string `json:"-"`
7599
7600
7601
7602
7603 NullFields []string `json:"-"`
7604 }
7605
7606 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
7607 type NoMethod GoogleLongrunningListOperationsResponse
7608 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7609 }
7610
7611
7612
7613 type GoogleLongrunningOperation struct {
7614
7615
7616
7617 Done bool `json:"done,omitempty"`
7618
7619 Error *GoogleRpcStatus `json:"error,omitempty"`
7620
7621
7622
7623
7624 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
7625
7626
7627
7628 Name string `json:"name,omitempty"`
7629
7630
7631
7632
7633
7634
7635
7636 Response googleapi.RawMessage `json:"response,omitempty"`
7637
7638
7639 googleapi.ServerResponse `json:"-"`
7640
7641
7642
7643
7644
7645 ForceSendFields []string `json:"-"`
7646
7647
7648
7649
7650 NullFields []string `json:"-"`
7651 }
7652
7653 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
7654 type NoMethod GoogleLongrunningOperation
7655 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7656 }
7657
7658
7659
7660
7661
7662
7663 type GoogleProtobufEmpty struct {
7664
7665 googleapi.ServerResponse `json:"-"`
7666 }
7667
7668
7669
7670
7671
7672
7673
7674 type GoogleRpcStatus struct {
7675
7676 Code int64 `json:"code,omitempty"`
7677
7678
7679 Details []googleapi.RawMessage `json:"details,omitempty"`
7680
7681
7682
7683 Message string `json:"message,omitempty"`
7684
7685
7686
7687
7688
7689 ForceSendFields []string `json:"-"`
7690
7691
7692
7693
7694 NullFields []string `json:"-"`
7695 }
7696
7697 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
7698 type NoMethod GoogleRpcStatus
7699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
7700 }
7701
7702 type ProjectsLocationsGetSettingsCall struct {
7703 s *Service
7704 name string
7705 urlParams_ gensupport.URLParams
7706 ifNoneMatch_ string
7707 ctx_ context.Context
7708 header_ http.Header
7709 }
7710
7711
7712
7713
7714 func (r *ProjectsLocationsService) GetSettings(name string) *ProjectsLocationsGetSettingsCall {
7715 c := &ProjectsLocationsGetSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7716 c.name = name
7717 return c
7718 }
7719
7720
7721
7722
7723 func (c *ProjectsLocationsGetSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsGetSettingsCall {
7724 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7725 return c
7726 }
7727
7728
7729
7730
7731 func (c *ProjectsLocationsGetSettingsCall) IfNoneMatch(entityTag string) *ProjectsLocationsGetSettingsCall {
7732 c.ifNoneMatch_ = entityTag
7733 return c
7734 }
7735
7736
7737 func (c *ProjectsLocationsGetSettingsCall) Context(ctx context.Context) *ProjectsLocationsGetSettingsCall {
7738 c.ctx_ = ctx
7739 return c
7740 }
7741
7742
7743
7744 func (c *ProjectsLocationsGetSettingsCall) Header() http.Header {
7745 if c.header_ == nil {
7746 c.header_ = make(http.Header)
7747 }
7748 return c.header_
7749 }
7750
7751 func (c *ProjectsLocationsGetSettingsCall) doRequest(alt string) (*http.Response, error) {
7752 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7753 if c.ifNoneMatch_ != "" {
7754 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7755 }
7756 var body io.Reader = nil
7757 c.urlParams_.Set("alt", alt)
7758 c.urlParams_.Set("prettyPrint", "false")
7759 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7760 urls += "?" + c.urlParams_.Encode()
7761 req, err := http.NewRequest("GET", urls, body)
7762 if err != nil {
7763 return nil, err
7764 }
7765 req.Header = reqHeaders
7766 googleapi.Expand(req.URL, map[string]string{
7767 "name": c.name,
7768 })
7769 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7770 }
7771
7772
7773
7774
7775
7776
7777
7778 func (c *ProjectsLocationsGetSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Settings, error) {
7779 gensupport.SetOptions(c.urlParams_, opts...)
7780 res, err := c.doRequest("json")
7781 if res != nil && res.StatusCode == http.StatusNotModified {
7782 if res.Body != nil {
7783 res.Body.Close()
7784 }
7785 return nil, gensupport.WrapError(&googleapi.Error{
7786 Code: res.StatusCode,
7787 Header: res.Header,
7788 })
7789 }
7790 if err != nil {
7791 return nil, err
7792 }
7793 defer googleapi.CloseBody(res)
7794 if err := googleapi.CheckResponse(res); err != nil {
7795 return nil, gensupport.WrapError(err)
7796 }
7797 ret := &GoogleCloudContactcenterinsightsV1Settings{
7798 ServerResponse: googleapi.ServerResponse{
7799 Header: res.Header,
7800 HTTPStatusCode: res.StatusCode,
7801 },
7802 }
7803 target := &ret
7804 if err := gensupport.DecodeResponse(target, res); err != nil {
7805 return nil, err
7806 }
7807 return ret, nil
7808 }
7809
7810 type ProjectsLocationsUpdateSettingsCall struct {
7811 s *Service
7812 name string
7813 googlecloudcontactcenterinsightsv1settings *GoogleCloudContactcenterinsightsV1Settings
7814 urlParams_ gensupport.URLParams
7815 ctx_ context.Context
7816 header_ http.Header
7817 }
7818
7819
7820
7821
7822
7823 func (r *ProjectsLocationsService) UpdateSettings(name string, googlecloudcontactcenterinsightsv1settings *GoogleCloudContactcenterinsightsV1Settings) *ProjectsLocationsUpdateSettingsCall {
7824 c := &ProjectsLocationsUpdateSettingsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7825 c.name = name
7826 c.googlecloudcontactcenterinsightsv1settings = googlecloudcontactcenterinsightsv1settings
7827 return c
7828 }
7829
7830
7831
7832 func (c *ProjectsLocationsUpdateSettingsCall) UpdateMask(updateMask string) *ProjectsLocationsUpdateSettingsCall {
7833 c.urlParams_.Set("updateMask", updateMask)
7834 return c
7835 }
7836
7837
7838
7839
7840 func (c *ProjectsLocationsUpdateSettingsCall) Fields(s ...googleapi.Field) *ProjectsLocationsUpdateSettingsCall {
7841 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7842 return c
7843 }
7844
7845
7846 func (c *ProjectsLocationsUpdateSettingsCall) Context(ctx context.Context) *ProjectsLocationsUpdateSettingsCall {
7847 c.ctx_ = ctx
7848 return c
7849 }
7850
7851
7852
7853 func (c *ProjectsLocationsUpdateSettingsCall) Header() http.Header {
7854 if c.header_ == nil {
7855 c.header_ = make(http.Header)
7856 }
7857 return c.header_
7858 }
7859
7860 func (c *ProjectsLocationsUpdateSettingsCall) doRequest(alt string) (*http.Response, error) {
7861 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7862 var body io.Reader = nil
7863 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1settings)
7864 if err != nil {
7865 return nil, err
7866 }
7867 c.urlParams_.Set("alt", alt)
7868 c.urlParams_.Set("prettyPrint", "false")
7869 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
7870 urls += "?" + c.urlParams_.Encode()
7871 req, err := http.NewRequest("PATCH", urls, body)
7872 if err != nil {
7873 return nil, err
7874 }
7875 req.Header = reqHeaders
7876 googleapi.Expand(req.URL, map[string]string{
7877 "name": c.name,
7878 })
7879 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7880 }
7881
7882
7883
7884
7885
7886
7887
7888 func (c *ProjectsLocationsUpdateSettingsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Settings, error) {
7889 gensupport.SetOptions(c.urlParams_, opts...)
7890 res, err := c.doRequest("json")
7891 if res != nil && res.StatusCode == http.StatusNotModified {
7892 if res.Body != nil {
7893 res.Body.Close()
7894 }
7895 return nil, gensupport.WrapError(&googleapi.Error{
7896 Code: res.StatusCode,
7897 Header: res.Header,
7898 })
7899 }
7900 if err != nil {
7901 return nil, err
7902 }
7903 defer googleapi.CloseBody(res)
7904 if err := googleapi.CheckResponse(res); err != nil {
7905 return nil, gensupport.WrapError(err)
7906 }
7907 ret := &GoogleCloudContactcenterinsightsV1Settings{
7908 ServerResponse: googleapi.ServerResponse{
7909 Header: res.Header,
7910 HTTPStatusCode: res.StatusCode,
7911 },
7912 }
7913 target := &ret
7914 if err := gensupport.DecodeResponse(target, res); err != nil {
7915 return nil, err
7916 }
7917 return ret, nil
7918 }
7919
7920 type ProjectsLocationsConversationsBulkAnalyzeCall struct {
7921 s *Service
7922 parent string
7923 googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest
7924 urlParams_ gensupport.URLParams
7925 ctx_ context.Context
7926 header_ http.Header
7927 }
7928
7929
7930
7931
7932 func (r *ProjectsLocationsConversationsService) BulkAnalyze(parent string, googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest *GoogleCloudContactcenterinsightsV1BulkAnalyzeConversationsRequest) *ProjectsLocationsConversationsBulkAnalyzeCall {
7933 c := &ProjectsLocationsConversationsBulkAnalyzeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7934 c.parent = parent
7935 c.googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest = googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest
7936 return c
7937 }
7938
7939
7940
7941
7942 func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsBulkAnalyzeCall {
7943 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7944 return c
7945 }
7946
7947
7948 func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Context(ctx context.Context) *ProjectsLocationsConversationsBulkAnalyzeCall {
7949 c.ctx_ = ctx
7950 return c
7951 }
7952
7953
7954
7955 func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Header() http.Header {
7956 if c.header_ == nil {
7957 c.header_ = make(http.Header)
7958 }
7959 return c.header_
7960 }
7961
7962 func (c *ProjectsLocationsConversationsBulkAnalyzeCall) doRequest(alt string) (*http.Response, error) {
7963 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7964 var body io.Reader = nil
7965 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkanalyzeconversationsrequest)
7966 if err != nil {
7967 return nil, err
7968 }
7969 c.urlParams_.Set("alt", alt)
7970 c.urlParams_.Set("prettyPrint", "false")
7971 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:bulkAnalyze")
7972 urls += "?" + c.urlParams_.Encode()
7973 req, err := http.NewRequest("POST", urls, body)
7974 if err != nil {
7975 return nil, err
7976 }
7977 req.Header = reqHeaders
7978 googleapi.Expand(req.URL, map[string]string{
7979 "parent": c.parent,
7980 })
7981 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7982 }
7983
7984
7985
7986
7987
7988
7989
7990 func (c *ProjectsLocationsConversationsBulkAnalyzeCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
7991 gensupport.SetOptions(c.urlParams_, opts...)
7992 res, err := c.doRequest("json")
7993 if res != nil && res.StatusCode == http.StatusNotModified {
7994 if res.Body != nil {
7995 res.Body.Close()
7996 }
7997 return nil, gensupport.WrapError(&googleapi.Error{
7998 Code: res.StatusCode,
7999 Header: res.Header,
8000 })
8001 }
8002 if err != nil {
8003 return nil, err
8004 }
8005 defer googleapi.CloseBody(res)
8006 if err := googleapi.CheckResponse(res); err != nil {
8007 return nil, gensupport.WrapError(err)
8008 }
8009 ret := &GoogleLongrunningOperation{
8010 ServerResponse: googleapi.ServerResponse{
8011 Header: res.Header,
8012 HTTPStatusCode: res.StatusCode,
8013 },
8014 }
8015 target := &ret
8016 if err := gensupport.DecodeResponse(target, res); err != nil {
8017 return nil, err
8018 }
8019 return ret, nil
8020 }
8021
8022 type ProjectsLocationsConversationsBulkDeleteCall struct {
8023 s *Service
8024 parent string
8025 googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest
8026 urlParams_ gensupport.URLParams
8027 ctx_ context.Context
8028 header_ http.Header
8029 }
8030
8031
8032
8033
8034
8035 func (r *ProjectsLocationsConversationsService) BulkDelete(parent string, googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest *GoogleCloudContactcenterinsightsV1BulkDeleteConversationsRequest) *ProjectsLocationsConversationsBulkDeleteCall {
8036 c := &ProjectsLocationsConversationsBulkDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8037 c.parent = parent
8038 c.googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest = googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest
8039 return c
8040 }
8041
8042
8043
8044
8045 func (c *ProjectsLocationsConversationsBulkDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsBulkDeleteCall {
8046 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8047 return c
8048 }
8049
8050
8051 func (c *ProjectsLocationsConversationsBulkDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsBulkDeleteCall {
8052 c.ctx_ = ctx
8053 return c
8054 }
8055
8056
8057
8058 func (c *ProjectsLocationsConversationsBulkDeleteCall) Header() http.Header {
8059 if c.header_ == nil {
8060 c.header_ = make(http.Header)
8061 }
8062 return c.header_
8063 }
8064
8065 func (c *ProjectsLocationsConversationsBulkDeleteCall) doRequest(alt string) (*http.Response, error) {
8066 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8067 var body io.Reader = nil
8068 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1bulkdeleteconversationsrequest)
8069 if err != nil {
8070 return nil, err
8071 }
8072 c.urlParams_.Set("alt", alt)
8073 c.urlParams_.Set("prettyPrint", "false")
8074 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:bulkDelete")
8075 urls += "?" + c.urlParams_.Encode()
8076 req, err := http.NewRequest("POST", urls, body)
8077 if err != nil {
8078 return nil, err
8079 }
8080 req.Header = reqHeaders
8081 googleapi.Expand(req.URL, map[string]string{
8082 "parent": c.parent,
8083 })
8084 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8085 }
8086
8087
8088
8089
8090
8091
8092
8093 func (c *ProjectsLocationsConversationsBulkDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8094 gensupport.SetOptions(c.urlParams_, opts...)
8095 res, err := c.doRequest("json")
8096 if res != nil && res.StatusCode == http.StatusNotModified {
8097 if res.Body != nil {
8098 res.Body.Close()
8099 }
8100 return nil, gensupport.WrapError(&googleapi.Error{
8101 Code: res.StatusCode,
8102 Header: res.Header,
8103 })
8104 }
8105 if err != nil {
8106 return nil, err
8107 }
8108 defer googleapi.CloseBody(res)
8109 if err := googleapi.CheckResponse(res); err != nil {
8110 return nil, gensupport.WrapError(err)
8111 }
8112 ret := &GoogleLongrunningOperation{
8113 ServerResponse: googleapi.ServerResponse{
8114 Header: res.Header,
8115 HTTPStatusCode: res.StatusCode,
8116 },
8117 }
8118 target := &ret
8119 if err := gensupport.DecodeResponse(target, res); err != nil {
8120 return nil, err
8121 }
8122 return ret, nil
8123 }
8124
8125 type ProjectsLocationsConversationsCalculateStatsCall struct {
8126 s *Service
8127 location string
8128 urlParams_ gensupport.URLParams
8129 ifNoneMatch_ string
8130 ctx_ context.Context
8131 header_ http.Header
8132 }
8133
8134
8135
8136
8137 func (r *ProjectsLocationsConversationsService) CalculateStats(location string) *ProjectsLocationsConversationsCalculateStatsCall {
8138 c := &ProjectsLocationsConversationsCalculateStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8139 c.location = location
8140 return c
8141 }
8142
8143
8144
8145
8146 func (c *ProjectsLocationsConversationsCalculateStatsCall) Filter(filter string) *ProjectsLocationsConversationsCalculateStatsCall {
8147 c.urlParams_.Set("filter", filter)
8148 return c
8149 }
8150
8151
8152
8153
8154 func (c *ProjectsLocationsConversationsCalculateStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCalculateStatsCall {
8155 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8156 return c
8157 }
8158
8159
8160
8161
8162 func (c *ProjectsLocationsConversationsCalculateStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsCalculateStatsCall {
8163 c.ifNoneMatch_ = entityTag
8164 return c
8165 }
8166
8167
8168 func (c *ProjectsLocationsConversationsCalculateStatsCall) Context(ctx context.Context) *ProjectsLocationsConversationsCalculateStatsCall {
8169 c.ctx_ = ctx
8170 return c
8171 }
8172
8173
8174
8175 func (c *ProjectsLocationsConversationsCalculateStatsCall) Header() http.Header {
8176 if c.header_ == nil {
8177 c.header_ = make(http.Header)
8178 }
8179 return c.header_
8180 }
8181
8182 func (c *ProjectsLocationsConversationsCalculateStatsCall) doRequest(alt string) (*http.Response, error) {
8183 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8184 if c.ifNoneMatch_ != "" {
8185 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8186 }
8187 var body io.Reader = nil
8188 c.urlParams_.Set("alt", alt)
8189 c.urlParams_.Set("prettyPrint", "false")
8190 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+location}/conversations:calculateStats")
8191 urls += "?" + c.urlParams_.Encode()
8192 req, err := http.NewRequest("GET", urls, body)
8193 if err != nil {
8194 return nil, err
8195 }
8196 req.Header = reqHeaders
8197 googleapi.Expand(req.URL, map[string]string{
8198 "location": c.location,
8199 })
8200 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8201 }
8202
8203
8204
8205
8206
8207
8208
8209 func (c *ProjectsLocationsConversationsCalculateStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateStatsResponse, error) {
8210 gensupport.SetOptions(c.urlParams_, opts...)
8211 res, err := c.doRequest("json")
8212 if res != nil && res.StatusCode == http.StatusNotModified {
8213 if res.Body != nil {
8214 res.Body.Close()
8215 }
8216 return nil, gensupport.WrapError(&googleapi.Error{
8217 Code: res.StatusCode,
8218 Header: res.Header,
8219 })
8220 }
8221 if err != nil {
8222 return nil, err
8223 }
8224 defer googleapi.CloseBody(res)
8225 if err := googleapi.CheckResponse(res); err != nil {
8226 return nil, gensupport.WrapError(err)
8227 }
8228 ret := &GoogleCloudContactcenterinsightsV1CalculateStatsResponse{
8229 ServerResponse: googleapi.ServerResponse{
8230 Header: res.Header,
8231 HTTPStatusCode: res.StatusCode,
8232 },
8233 }
8234 target := &ret
8235 if err := gensupport.DecodeResponse(target, res); err != nil {
8236 return nil, err
8237 }
8238 return ret, nil
8239 }
8240
8241 type ProjectsLocationsConversationsCreateCall struct {
8242 s *Service
8243 parent string
8244 googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation
8245 urlParams_ gensupport.URLParams
8246 ctx_ context.Context
8247 header_ http.Header
8248 }
8249
8250
8251
8252
8253
8254 func (r *ProjectsLocationsConversationsService) Create(parent string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsConversationsCreateCall {
8255 c := &ProjectsLocationsConversationsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8256 c.parent = parent
8257 c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation
8258 return c
8259 }
8260
8261
8262
8263
8264
8265
8266 func (c *ProjectsLocationsConversationsCreateCall) ConversationId(conversationId string) *ProjectsLocationsConversationsCreateCall {
8267 c.urlParams_.Set("conversationId", conversationId)
8268 return c
8269 }
8270
8271
8272
8273
8274 func (c *ProjectsLocationsConversationsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsCreateCall {
8275 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8276 return c
8277 }
8278
8279
8280 func (c *ProjectsLocationsConversationsCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsCreateCall {
8281 c.ctx_ = ctx
8282 return c
8283 }
8284
8285
8286
8287 func (c *ProjectsLocationsConversationsCreateCall) Header() http.Header {
8288 if c.header_ == nil {
8289 c.header_ = make(http.Header)
8290 }
8291 return c.header_
8292 }
8293
8294 func (c *ProjectsLocationsConversationsCreateCall) doRequest(alt string) (*http.Response, error) {
8295 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8296 var body io.Reader = nil
8297 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation)
8298 if err != nil {
8299 return nil, err
8300 }
8301 c.urlParams_.Set("alt", alt)
8302 c.urlParams_.Set("prettyPrint", "false")
8303 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
8304 urls += "?" + c.urlParams_.Encode()
8305 req, err := http.NewRequest("POST", urls, body)
8306 if err != nil {
8307 return nil, err
8308 }
8309 req.Header = reqHeaders
8310 googleapi.Expand(req.URL, map[string]string{
8311 "parent": c.parent,
8312 })
8313 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8314 }
8315
8316
8317
8318
8319
8320
8321
8322 func (c *ProjectsLocationsConversationsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) {
8323 gensupport.SetOptions(c.urlParams_, opts...)
8324 res, err := c.doRequest("json")
8325 if res != nil && res.StatusCode == http.StatusNotModified {
8326 if res.Body != nil {
8327 res.Body.Close()
8328 }
8329 return nil, gensupport.WrapError(&googleapi.Error{
8330 Code: res.StatusCode,
8331 Header: res.Header,
8332 })
8333 }
8334 if err != nil {
8335 return nil, err
8336 }
8337 defer googleapi.CloseBody(res)
8338 if err := googleapi.CheckResponse(res); err != nil {
8339 return nil, gensupport.WrapError(err)
8340 }
8341 ret := &GoogleCloudContactcenterinsightsV1Conversation{
8342 ServerResponse: googleapi.ServerResponse{
8343 Header: res.Header,
8344 HTTPStatusCode: res.StatusCode,
8345 },
8346 }
8347 target := &ret
8348 if err := gensupport.DecodeResponse(target, res); err != nil {
8349 return nil, err
8350 }
8351 return ret, nil
8352 }
8353
8354 type ProjectsLocationsConversationsDeleteCall struct {
8355 s *Service
8356 name string
8357 urlParams_ gensupport.URLParams
8358 ctx_ context.Context
8359 header_ http.Header
8360 }
8361
8362
8363
8364
8365 func (r *ProjectsLocationsConversationsService) Delete(name string) *ProjectsLocationsConversationsDeleteCall {
8366 c := &ProjectsLocationsConversationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8367 c.name = name
8368 return c
8369 }
8370
8371
8372
8373
8374 func (c *ProjectsLocationsConversationsDeleteCall) Force(force bool) *ProjectsLocationsConversationsDeleteCall {
8375 c.urlParams_.Set("force", fmt.Sprint(force))
8376 return c
8377 }
8378
8379
8380
8381
8382 func (c *ProjectsLocationsConversationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsDeleteCall {
8383 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8384 return c
8385 }
8386
8387
8388 func (c *ProjectsLocationsConversationsDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsDeleteCall {
8389 c.ctx_ = ctx
8390 return c
8391 }
8392
8393
8394
8395 func (c *ProjectsLocationsConversationsDeleteCall) Header() http.Header {
8396 if c.header_ == nil {
8397 c.header_ = make(http.Header)
8398 }
8399 return c.header_
8400 }
8401
8402 func (c *ProjectsLocationsConversationsDeleteCall) doRequest(alt string) (*http.Response, error) {
8403 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8404 var body io.Reader = nil
8405 c.urlParams_.Set("alt", alt)
8406 c.urlParams_.Set("prettyPrint", "false")
8407 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8408 urls += "?" + c.urlParams_.Encode()
8409 req, err := http.NewRequest("DELETE", urls, body)
8410 if err != nil {
8411 return nil, err
8412 }
8413 req.Header = reqHeaders
8414 googleapi.Expand(req.URL, map[string]string{
8415 "name": c.name,
8416 })
8417 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8418 }
8419
8420
8421
8422
8423
8424
8425
8426 func (c *ProjectsLocationsConversationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
8427 gensupport.SetOptions(c.urlParams_, opts...)
8428 res, err := c.doRequest("json")
8429 if res != nil && res.StatusCode == http.StatusNotModified {
8430 if res.Body != nil {
8431 res.Body.Close()
8432 }
8433 return nil, gensupport.WrapError(&googleapi.Error{
8434 Code: res.StatusCode,
8435 Header: res.Header,
8436 })
8437 }
8438 if err != nil {
8439 return nil, err
8440 }
8441 defer googleapi.CloseBody(res)
8442 if err := googleapi.CheckResponse(res); err != nil {
8443 return nil, gensupport.WrapError(err)
8444 }
8445 ret := &GoogleProtobufEmpty{
8446 ServerResponse: googleapi.ServerResponse{
8447 Header: res.Header,
8448 HTTPStatusCode: res.StatusCode,
8449 },
8450 }
8451 target := &ret
8452 if err := gensupport.DecodeResponse(target, res); err != nil {
8453 return nil, err
8454 }
8455 return ret, nil
8456 }
8457
8458 type ProjectsLocationsConversationsGetCall struct {
8459 s *Service
8460 name string
8461 urlParams_ gensupport.URLParams
8462 ifNoneMatch_ string
8463 ctx_ context.Context
8464 header_ http.Header
8465 }
8466
8467
8468
8469
8470 func (r *ProjectsLocationsConversationsService) Get(name string) *ProjectsLocationsConversationsGetCall {
8471 c := &ProjectsLocationsConversationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8472 c.name = name
8473 return c
8474 }
8475
8476
8477
8478
8479
8480
8481
8482
8483
8484
8485
8486
8487
8488 func (c *ProjectsLocationsConversationsGetCall) View(view string) *ProjectsLocationsConversationsGetCall {
8489 c.urlParams_.Set("view", view)
8490 return c
8491 }
8492
8493
8494
8495
8496 func (c *ProjectsLocationsConversationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsGetCall {
8497 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8498 return c
8499 }
8500
8501
8502
8503
8504 func (c *ProjectsLocationsConversationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsGetCall {
8505 c.ifNoneMatch_ = entityTag
8506 return c
8507 }
8508
8509
8510 func (c *ProjectsLocationsConversationsGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsGetCall {
8511 c.ctx_ = ctx
8512 return c
8513 }
8514
8515
8516
8517 func (c *ProjectsLocationsConversationsGetCall) Header() http.Header {
8518 if c.header_ == nil {
8519 c.header_ = make(http.Header)
8520 }
8521 return c.header_
8522 }
8523
8524 func (c *ProjectsLocationsConversationsGetCall) doRequest(alt string) (*http.Response, error) {
8525 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8526 if c.ifNoneMatch_ != "" {
8527 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8528 }
8529 var body io.Reader = nil
8530 c.urlParams_.Set("alt", alt)
8531 c.urlParams_.Set("prettyPrint", "false")
8532 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8533 urls += "?" + c.urlParams_.Encode()
8534 req, err := http.NewRequest("GET", urls, body)
8535 if err != nil {
8536 return nil, err
8537 }
8538 req.Header = reqHeaders
8539 googleapi.Expand(req.URL, map[string]string{
8540 "name": c.name,
8541 })
8542 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8543 }
8544
8545
8546
8547
8548
8549
8550
8551 func (c *ProjectsLocationsConversationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) {
8552 gensupport.SetOptions(c.urlParams_, opts...)
8553 res, err := c.doRequest("json")
8554 if res != nil && res.StatusCode == http.StatusNotModified {
8555 if res.Body != nil {
8556 res.Body.Close()
8557 }
8558 return nil, gensupport.WrapError(&googleapi.Error{
8559 Code: res.StatusCode,
8560 Header: res.Header,
8561 })
8562 }
8563 if err != nil {
8564 return nil, err
8565 }
8566 defer googleapi.CloseBody(res)
8567 if err := googleapi.CheckResponse(res); err != nil {
8568 return nil, gensupport.WrapError(err)
8569 }
8570 ret := &GoogleCloudContactcenterinsightsV1Conversation{
8571 ServerResponse: googleapi.ServerResponse{
8572 Header: res.Header,
8573 HTTPStatusCode: res.StatusCode,
8574 },
8575 }
8576 target := &ret
8577 if err := gensupport.DecodeResponse(target, res); err != nil {
8578 return nil, err
8579 }
8580 return ret, nil
8581 }
8582
8583 type ProjectsLocationsConversationsIngestCall struct {
8584 s *Service
8585 parent string
8586 googlecloudcontactcenterinsightsv1ingestconversationsrequest *GoogleCloudContactcenterinsightsV1IngestConversationsRequest
8587 urlParams_ gensupport.URLParams
8588 ctx_ context.Context
8589 header_ http.Header
8590 }
8591
8592
8593
8594
8595
8596 func (r *ProjectsLocationsConversationsService) Ingest(parent string, googlecloudcontactcenterinsightsv1ingestconversationsrequest *GoogleCloudContactcenterinsightsV1IngestConversationsRequest) *ProjectsLocationsConversationsIngestCall {
8597 c := &ProjectsLocationsConversationsIngestCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8598 c.parent = parent
8599 c.googlecloudcontactcenterinsightsv1ingestconversationsrequest = googlecloudcontactcenterinsightsv1ingestconversationsrequest
8600 return c
8601 }
8602
8603
8604
8605
8606 func (c *ProjectsLocationsConversationsIngestCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsIngestCall {
8607 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8608 return c
8609 }
8610
8611
8612 func (c *ProjectsLocationsConversationsIngestCall) Context(ctx context.Context) *ProjectsLocationsConversationsIngestCall {
8613 c.ctx_ = ctx
8614 return c
8615 }
8616
8617
8618
8619 func (c *ProjectsLocationsConversationsIngestCall) Header() http.Header {
8620 if c.header_ == nil {
8621 c.header_ = make(http.Header)
8622 }
8623 return c.header_
8624 }
8625
8626 func (c *ProjectsLocationsConversationsIngestCall) doRequest(alt string) (*http.Response, error) {
8627 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8628 var body io.Reader = nil
8629 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1ingestconversationsrequest)
8630 if err != nil {
8631 return nil, err
8632 }
8633 c.urlParams_.Set("alt", alt)
8634 c.urlParams_.Set("prettyPrint", "false")
8635 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:ingest")
8636 urls += "?" + c.urlParams_.Encode()
8637 req, err := http.NewRequest("POST", urls, body)
8638 if err != nil {
8639 return nil, err
8640 }
8641 req.Header = reqHeaders
8642 googleapi.Expand(req.URL, map[string]string{
8643 "parent": c.parent,
8644 })
8645 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8646 }
8647
8648
8649
8650
8651
8652
8653
8654 func (c *ProjectsLocationsConversationsIngestCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8655 gensupport.SetOptions(c.urlParams_, opts...)
8656 res, err := c.doRequest("json")
8657 if res != nil && res.StatusCode == http.StatusNotModified {
8658 if res.Body != nil {
8659 res.Body.Close()
8660 }
8661 return nil, gensupport.WrapError(&googleapi.Error{
8662 Code: res.StatusCode,
8663 Header: res.Header,
8664 })
8665 }
8666 if err != nil {
8667 return nil, err
8668 }
8669 defer googleapi.CloseBody(res)
8670 if err := googleapi.CheckResponse(res); err != nil {
8671 return nil, gensupport.WrapError(err)
8672 }
8673 ret := &GoogleLongrunningOperation{
8674 ServerResponse: googleapi.ServerResponse{
8675 Header: res.Header,
8676 HTTPStatusCode: res.StatusCode,
8677 },
8678 }
8679 target := &ret
8680 if err := gensupport.DecodeResponse(target, res); err != nil {
8681 return nil, err
8682 }
8683 return ret, nil
8684 }
8685
8686 type ProjectsLocationsConversationsListCall struct {
8687 s *Service
8688 parent string
8689 urlParams_ gensupport.URLParams
8690 ifNoneMatch_ string
8691 ctx_ context.Context
8692 header_ http.Header
8693 }
8694
8695
8696
8697
8698 func (r *ProjectsLocationsConversationsService) List(parent string) *ProjectsLocationsConversationsListCall {
8699 c := &ProjectsLocationsConversationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8700 c.parent = parent
8701 return c
8702 }
8703
8704
8705
8706 func (c *ProjectsLocationsConversationsListCall) Filter(filter string) *ProjectsLocationsConversationsListCall {
8707 c.urlParams_.Set("filter", filter)
8708 return c
8709 }
8710
8711
8712
8713
8714
8715
8716
8717
8718 func (c *ProjectsLocationsConversationsListCall) OrderBy(orderBy string) *ProjectsLocationsConversationsListCall {
8719 c.urlParams_.Set("orderBy", orderBy)
8720 return c
8721 }
8722
8723
8724
8725
8726
8727
8728 func (c *ProjectsLocationsConversationsListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsListCall {
8729 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8730 return c
8731 }
8732
8733
8734
8735
8736
8737 func (c *ProjectsLocationsConversationsListCall) PageToken(pageToken string) *ProjectsLocationsConversationsListCall {
8738 c.urlParams_.Set("pageToken", pageToken)
8739 return c
8740 }
8741
8742
8743
8744
8745
8746
8747
8748
8749
8750
8751
8752
8753
8754 func (c *ProjectsLocationsConversationsListCall) View(view string) *ProjectsLocationsConversationsListCall {
8755 c.urlParams_.Set("view", view)
8756 return c
8757 }
8758
8759
8760
8761
8762 func (c *ProjectsLocationsConversationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsListCall {
8763 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8764 return c
8765 }
8766
8767
8768
8769
8770 func (c *ProjectsLocationsConversationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsListCall {
8771 c.ifNoneMatch_ = entityTag
8772 return c
8773 }
8774
8775
8776 func (c *ProjectsLocationsConversationsListCall) Context(ctx context.Context) *ProjectsLocationsConversationsListCall {
8777 c.ctx_ = ctx
8778 return c
8779 }
8780
8781
8782
8783 func (c *ProjectsLocationsConversationsListCall) Header() http.Header {
8784 if c.header_ == nil {
8785 c.header_ = make(http.Header)
8786 }
8787 return c.header_
8788 }
8789
8790 func (c *ProjectsLocationsConversationsListCall) doRequest(alt string) (*http.Response, error) {
8791 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8792 if c.ifNoneMatch_ != "" {
8793 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8794 }
8795 var body io.Reader = nil
8796 c.urlParams_.Set("alt", alt)
8797 c.urlParams_.Set("prettyPrint", "false")
8798 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations")
8799 urls += "?" + c.urlParams_.Encode()
8800 req, err := http.NewRequest("GET", urls, body)
8801 if err != nil {
8802 return nil, err
8803 }
8804 req.Header = reqHeaders
8805 googleapi.Expand(req.URL, map[string]string{
8806 "parent": c.parent,
8807 })
8808 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8809 }
8810
8811
8812
8813
8814
8815
8816
8817 func (c *ProjectsLocationsConversationsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListConversationsResponse, error) {
8818 gensupport.SetOptions(c.urlParams_, opts...)
8819 res, err := c.doRequest("json")
8820 if res != nil && res.StatusCode == http.StatusNotModified {
8821 if res.Body != nil {
8822 res.Body.Close()
8823 }
8824 return nil, gensupport.WrapError(&googleapi.Error{
8825 Code: res.StatusCode,
8826 Header: res.Header,
8827 })
8828 }
8829 if err != nil {
8830 return nil, err
8831 }
8832 defer googleapi.CloseBody(res)
8833 if err := googleapi.CheckResponse(res); err != nil {
8834 return nil, gensupport.WrapError(err)
8835 }
8836 ret := &GoogleCloudContactcenterinsightsV1ListConversationsResponse{
8837 ServerResponse: googleapi.ServerResponse{
8838 Header: res.Header,
8839 HTTPStatusCode: res.StatusCode,
8840 },
8841 }
8842 target := &ret
8843 if err := gensupport.DecodeResponse(target, res); err != nil {
8844 return nil, err
8845 }
8846 return ret, nil
8847 }
8848
8849
8850
8851
8852 func (c *ProjectsLocationsConversationsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListConversationsResponse) error) error {
8853 c.ctx_ = ctx
8854 defer c.PageToken(c.urlParams_.Get("pageToken"))
8855 for {
8856 x, err := c.Do()
8857 if err != nil {
8858 return err
8859 }
8860 if err := f(x); err != nil {
8861 return err
8862 }
8863 if x.NextPageToken == "" {
8864 return nil
8865 }
8866 c.PageToken(x.NextPageToken)
8867 }
8868 }
8869
8870 type ProjectsLocationsConversationsPatchCall struct {
8871 s *Service
8872 name string
8873 googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation
8874 urlParams_ gensupport.URLParams
8875 ctx_ context.Context
8876 header_ http.Header
8877 }
8878
8879
8880
8881
8882
8883 func (r *ProjectsLocationsConversationsService) Patch(name string, googlecloudcontactcenterinsightsv1conversation *GoogleCloudContactcenterinsightsV1Conversation) *ProjectsLocationsConversationsPatchCall {
8884 c := &ProjectsLocationsConversationsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8885 c.name = name
8886 c.googlecloudcontactcenterinsightsv1conversation = googlecloudcontactcenterinsightsv1conversation
8887 return c
8888 }
8889
8890
8891
8892 func (c *ProjectsLocationsConversationsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsConversationsPatchCall {
8893 c.urlParams_.Set("updateMask", updateMask)
8894 return c
8895 }
8896
8897
8898
8899
8900 func (c *ProjectsLocationsConversationsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsPatchCall {
8901 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8902 return c
8903 }
8904
8905
8906 func (c *ProjectsLocationsConversationsPatchCall) Context(ctx context.Context) *ProjectsLocationsConversationsPatchCall {
8907 c.ctx_ = ctx
8908 return c
8909 }
8910
8911
8912
8913 func (c *ProjectsLocationsConversationsPatchCall) Header() http.Header {
8914 if c.header_ == nil {
8915 c.header_ = make(http.Header)
8916 }
8917 return c.header_
8918 }
8919
8920 func (c *ProjectsLocationsConversationsPatchCall) doRequest(alt string) (*http.Response, error) {
8921 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8922 var body io.Reader = nil
8923 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1conversation)
8924 if err != nil {
8925 return nil, err
8926 }
8927 c.urlParams_.Set("alt", alt)
8928 c.urlParams_.Set("prettyPrint", "false")
8929 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
8930 urls += "?" + c.urlParams_.Encode()
8931 req, err := http.NewRequest("PATCH", urls, body)
8932 if err != nil {
8933 return nil, err
8934 }
8935 req.Header = reqHeaders
8936 googleapi.Expand(req.URL, map[string]string{
8937 "name": c.name,
8938 })
8939 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8940 }
8941
8942
8943
8944
8945
8946
8947
8948 func (c *ProjectsLocationsConversationsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Conversation, error) {
8949 gensupport.SetOptions(c.urlParams_, opts...)
8950 res, err := c.doRequest("json")
8951 if res != nil && res.StatusCode == http.StatusNotModified {
8952 if res.Body != nil {
8953 res.Body.Close()
8954 }
8955 return nil, gensupport.WrapError(&googleapi.Error{
8956 Code: res.StatusCode,
8957 Header: res.Header,
8958 })
8959 }
8960 if err != nil {
8961 return nil, err
8962 }
8963 defer googleapi.CloseBody(res)
8964 if err := googleapi.CheckResponse(res); err != nil {
8965 return nil, gensupport.WrapError(err)
8966 }
8967 ret := &GoogleCloudContactcenterinsightsV1Conversation{
8968 ServerResponse: googleapi.ServerResponse{
8969 Header: res.Header,
8970 HTTPStatusCode: res.StatusCode,
8971 },
8972 }
8973 target := &ret
8974 if err := gensupport.DecodeResponse(target, res); err != nil {
8975 return nil, err
8976 }
8977 return ret, nil
8978 }
8979
8980 type ProjectsLocationsConversationsUploadCall struct {
8981 s *Service
8982 parent string
8983 googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest
8984 urlParams_ gensupport.URLParams
8985 ctx_ context.Context
8986 header_ http.Header
8987 }
8988
8989
8990
8991
8992
8993
8994 func (r *ProjectsLocationsConversationsService) Upload(parent string, googlecloudcontactcenterinsightsv1uploadconversationrequest *GoogleCloudContactcenterinsightsV1UploadConversationRequest) *ProjectsLocationsConversationsUploadCall {
8995 c := &ProjectsLocationsConversationsUploadCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8996 c.parent = parent
8997 c.googlecloudcontactcenterinsightsv1uploadconversationrequest = googlecloudcontactcenterinsightsv1uploadconversationrequest
8998 return c
8999 }
9000
9001
9002
9003
9004 func (c *ProjectsLocationsConversationsUploadCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsUploadCall {
9005 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9006 return c
9007 }
9008
9009
9010 func (c *ProjectsLocationsConversationsUploadCall) Context(ctx context.Context) *ProjectsLocationsConversationsUploadCall {
9011 c.ctx_ = ctx
9012 return c
9013 }
9014
9015
9016
9017 func (c *ProjectsLocationsConversationsUploadCall) Header() http.Header {
9018 if c.header_ == nil {
9019 c.header_ = make(http.Header)
9020 }
9021 return c.header_
9022 }
9023
9024 func (c *ProjectsLocationsConversationsUploadCall) doRequest(alt string) (*http.Response, error) {
9025 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9026 var body io.Reader = nil
9027 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1uploadconversationrequest)
9028 if err != nil {
9029 return nil, err
9030 }
9031 c.urlParams_.Set("alt", alt)
9032 c.urlParams_.Set("prettyPrint", "false")
9033 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/conversations:upload")
9034 urls += "?" + c.urlParams_.Encode()
9035 req, err := http.NewRequest("POST", urls, body)
9036 if err != nil {
9037 return nil, err
9038 }
9039 req.Header = reqHeaders
9040 googleapi.Expand(req.URL, map[string]string{
9041 "parent": c.parent,
9042 })
9043 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9044 }
9045
9046
9047
9048
9049
9050
9051
9052 func (c *ProjectsLocationsConversationsUploadCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9053 gensupport.SetOptions(c.urlParams_, opts...)
9054 res, err := c.doRequest("json")
9055 if res != nil && res.StatusCode == http.StatusNotModified {
9056 if res.Body != nil {
9057 res.Body.Close()
9058 }
9059 return nil, gensupport.WrapError(&googleapi.Error{
9060 Code: res.StatusCode,
9061 Header: res.Header,
9062 })
9063 }
9064 if err != nil {
9065 return nil, err
9066 }
9067 defer googleapi.CloseBody(res)
9068 if err := googleapi.CheckResponse(res); err != nil {
9069 return nil, gensupport.WrapError(err)
9070 }
9071 ret := &GoogleLongrunningOperation{
9072 ServerResponse: googleapi.ServerResponse{
9073 Header: res.Header,
9074 HTTPStatusCode: res.StatusCode,
9075 },
9076 }
9077 target := &ret
9078 if err := gensupport.DecodeResponse(target, res); err != nil {
9079 return nil, err
9080 }
9081 return ret, nil
9082 }
9083
9084 type ProjectsLocationsConversationsAnalysesCreateCall struct {
9085 s *Service
9086 parent string
9087 googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis
9088 urlParams_ gensupport.URLParams
9089 ctx_ context.Context
9090 header_ http.Header
9091 }
9092
9093
9094
9095
9096
9097 func (r *ProjectsLocationsConversationsAnalysesService) Create(parent string, googlecloudcontactcenterinsightsv1analysis *GoogleCloudContactcenterinsightsV1Analysis) *ProjectsLocationsConversationsAnalysesCreateCall {
9098 c := &ProjectsLocationsConversationsAnalysesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9099 c.parent = parent
9100 c.googlecloudcontactcenterinsightsv1analysis = googlecloudcontactcenterinsightsv1analysis
9101 return c
9102 }
9103
9104
9105
9106
9107 func (c *ProjectsLocationsConversationsAnalysesCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesCreateCall {
9108 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9109 return c
9110 }
9111
9112
9113 func (c *ProjectsLocationsConversationsAnalysesCreateCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesCreateCall {
9114 c.ctx_ = ctx
9115 return c
9116 }
9117
9118
9119
9120 func (c *ProjectsLocationsConversationsAnalysesCreateCall) Header() http.Header {
9121 if c.header_ == nil {
9122 c.header_ = make(http.Header)
9123 }
9124 return c.header_
9125 }
9126
9127 func (c *ProjectsLocationsConversationsAnalysesCreateCall) doRequest(alt string) (*http.Response, error) {
9128 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9129 var body io.Reader = nil
9130 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1analysis)
9131 if err != nil {
9132 return nil, err
9133 }
9134 c.urlParams_.Set("alt", alt)
9135 c.urlParams_.Set("prettyPrint", "false")
9136 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses")
9137 urls += "?" + c.urlParams_.Encode()
9138 req, err := http.NewRequest("POST", urls, body)
9139 if err != nil {
9140 return nil, err
9141 }
9142 req.Header = reqHeaders
9143 googleapi.Expand(req.URL, map[string]string{
9144 "parent": c.parent,
9145 })
9146 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9147 }
9148
9149
9150
9151
9152
9153
9154
9155 func (c *ProjectsLocationsConversationsAnalysesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9156 gensupport.SetOptions(c.urlParams_, opts...)
9157 res, err := c.doRequest("json")
9158 if res != nil && res.StatusCode == http.StatusNotModified {
9159 if res.Body != nil {
9160 res.Body.Close()
9161 }
9162 return nil, gensupport.WrapError(&googleapi.Error{
9163 Code: res.StatusCode,
9164 Header: res.Header,
9165 })
9166 }
9167 if err != nil {
9168 return nil, err
9169 }
9170 defer googleapi.CloseBody(res)
9171 if err := googleapi.CheckResponse(res); err != nil {
9172 return nil, gensupport.WrapError(err)
9173 }
9174 ret := &GoogleLongrunningOperation{
9175 ServerResponse: googleapi.ServerResponse{
9176 Header: res.Header,
9177 HTTPStatusCode: res.StatusCode,
9178 },
9179 }
9180 target := &ret
9181 if err := gensupport.DecodeResponse(target, res); err != nil {
9182 return nil, err
9183 }
9184 return ret, nil
9185 }
9186
9187 type ProjectsLocationsConversationsAnalysesDeleteCall struct {
9188 s *Service
9189 name string
9190 urlParams_ gensupport.URLParams
9191 ctx_ context.Context
9192 header_ http.Header
9193 }
9194
9195
9196
9197
9198 func (r *ProjectsLocationsConversationsAnalysesService) Delete(name string) *ProjectsLocationsConversationsAnalysesDeleteCall {
9199 c := &ProjectsLocationsConversationsAnalysesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9200 c.name = name
9201 return c
9202 }
9203
9204
9205
9206
9207 func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesDeleteCall {
9208 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9209 return c
9210 }
9211
9212
9213 func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesDeleteCall {
9214 c.ctx_ = ctx
9215 return c
9216 }
9217
9218
9219
9220 func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Header() http.Header {
9221 if c.header_ == nil {
9222 c.header_ = make(http.Header)
9223 }
9224 return c.header_
9225 }
9226
9227 func (c *ProjectsLocationsConversationsAnalysesDeleteCall) doRequest(alt string) (*http.Response, error) {
9228 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9229 var body io.Reader = nil
9230 c.urlParams_.Set("alt", alt)
9231 c.urlParams_.Set("prettyPrint", "false")
9232 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9233 urls += "?" + c.urlParams_.Encode()
9234 req, err := http.NewRequest("DELETE", urls, body)
9235 if err != nil {
9236 return nil, err
9237 }
9238 req.Header = reqHeaders
9239 googleapi.Expand(req.URL, map[string]string{
9240 "name": c.name,
9241 })
9242 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9243 }
9244
9245
9246
9247
9248
9249
9250
9251 func (c *ProjectsLocationsConversationsAnalysesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
9252 gensupport.SetOptions(c.urlParams_, opts...)
9253 res, err := c.doRequest("json")
9254 if res != nil && res.StatusCode == http.StatusNotModified {
9255 if res.Body != nil {
9256 res.Body.Close()
9257 }
9258 return nil, gensupport.WrapError(&googleapi.Error{
9259 Code: res.StatusCode,
9260 Header: res.Header,
9261 })
9262 }
9263 if err != nil {
9264 return nil, err
9265 }
9266 defer googleapi.CloseBody(res)
9267 if err := googleapi.CheckResponse(res); err != nil {
9268 return nil, gensupport.WrapError(err)
9269 }
9270 ret := &GoogleProtobufEmpty{
9271 ServerResponse: googleapi.ServerResponse{
9272 Header: res.Header,
9273 HTTPStatusCode: res.StatusCode,
9274 },
9275 }
9276 target := &ret
9277 if err := gensupport.DecodeResponse(target, res); err != nil {
9278 return nil, err
9279 }
9280 return ret, nil
9281 }
9282
9283 type ProjectsLocationsConversationsAnalysesGetCall struct {
9284 s *Service
9285 name string
9286 urlParams_ gensupport.URLParams
9287 ifNoneMatch_ string
9288 ctx_ context.Context
9289 header_ http.Header
9290 }
9291
9292
9293
9294
9295 func (r *ProjectsLocationsConversationsAnalysesService) Get(name string) *ProjectsLocationsConversationsAnalysesGetCall {
9296 c := &ProjectsLocationsConversationsAnalysesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9297 c.name = name
9298 return c
9299 }
9300
9301
9302
9303
9304 func (c *ProjectsLocationsConversationsAnalysesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesGetCall {
9305 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9306 return c
9307 }
9308
9309
9310
9311
9312 func (c *ProjectsLocationsConversationsAnalysesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsAnalysesGetCall {
9313 c.ifNoneMatch_ = entityTag
9314 return c
9315 }
9316
9317
9318 func (c *ProjectsLocationsConversationsAnalysesGetCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesGetCall {
9319 c.ctx_ = ctx
9320 return c
9321 }
9322
9323
9324
9325 func (c *ProjectsLocationsConversationsAnalysesGetCall) Header() http.Header {
9326 if c.header_ == nil {
9327 c.header_ = make(http.Header)
9328 }
9329 return c.header_
9330 }
9331
9332 func (c *ProjectsLocationsConversationsAnalysesGetCall) doRequest(alt string) (*http.Response, error) {
9333 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9334 if c.ifNoneMatch_ != "" {
9335 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9336 }
9337 var body io.Reader = nil
9338 c.urlParams_.Set("alt", alt)
9339 c.urlParams_.Set("prettyPrint", "false")
9340 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9341 urls += "?" + c.urlParams_.Encode()
9342 req, err := http.NewRequest("GET", urls, body)
9343 if err != nil {
9344 return nil, err
9345 }
9346 req.Header = reqHeaders
9347 googleapi.Expand(req.URL, map[string]string{
9348 "name": c.name,
9349 })
9350 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9351 }
9352
9353
9354
9355
9356
9357
9358
9359 func (c *ProjectsLocationsConversationsAnalysesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Analysis, error) {
9360 gensupport.SetOptions(c.urlParams_, opts...)
9361 res, err := c.doRequest("json")
9362 if res != nil && res.StatusCode == http.StatusNotModified {
9363 if res.Body != nil {
9364 res.Body.Close()
9365 }
9366 return nil, gensupport.WrapError(&googleapi.Error{
9367 Code: res.StatusCode,
9368 Header: res.Header,
9369 })
9370 }
9371 if err != nil {
9372 return nil, err
9373 }
9374 defer googleapi.CloseBody(res)
9375 if err := googleapi.CheckResponse(res); err != nil {
9376 return nil, gensupport.WrapError(err)
9377 }
9378 ret := &GoogleCloudContactcenterinsightsV1Analysis{
9379 ServerResponse: googleapi.ServerResponse{
9380 Header: res.Header,
9381 HTTPStatusCode: res.StatusCode,
9382 },
9383 }
9384 target := &ret
9385 if err := gensupport.DecodeResponse(target, res); err != nil {
9386 return nil, err
9387 }
9388 return ret, nil
9389 }
9390
9391 type ProjectsLocationsConversationsAnalysesListCall struct {
9392 s *Service
9393 parent string
9394 urlParams_ gensupport.URLParams
9395 ifNoneMatch_ string
9396 ctx_ context.Context
9397 header_ http.Header
9398 }
9399
9400
9401
9402
9403 func (r *ProjectsLocationsConversationsAnalysesService) List(parent string) *ProjectsLocationsConversationsAnalysesListCall {
9404 c := &ProjectsLocationsConversationsAnalysesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9405 c.parent = parent
9406 return c
9407 }
9408
9409
9410
9411 func (c *ProjectsLocationsConversationsAnalysesListCall) Filter(filter string) *ProjectsLocationsConversationsAnalysesListCall {
9412 c.urlParams_.Set("filter", filter)
9413 return c
9414 }
9415
9416
9417
9418
9419
9420
9421 func (c *ProjectsLocationsConversationsAnalysesListCall) PageSize(pageSize int64) *ProjectsLocationsConversationsAnalysesListCall {
9422 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9423 return c
9424 }
9425
9426
9427
9428
9429
9430 func (c *ProjectsLocationsConversationsAnalysesListCall) PageToken(pageToken string) *ProjectsLocationsConversationsAnalysesListCall {
9431 c.urlParams_.Set("pageToken", pageToken)
9432 return c
9433 }
9434
9435
9436
9437
9438 func (c *ProjectsLocationsConversationsAnalysesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsConversationsAnalysesListCall {
9439 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9440 return c
9441 }
9442
9443
9444
9445
9446 func (c *ProjectsLocationsConversationsAnalysesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsConversationsAnalysesListCall {
9447 c.ifNoneMatch_ = entityTag
9448 return c
9449 }
9450
9451
9452 func (c *ProjectsLocationsConversationsAnalysesListCall) Context(ctx context.Context) *ProjectsLocationsConversationsAnalysesListCall {
9453 c.ctx_ = ctx
9454 return c
9455 }
9456
9457
9458
9459 func (c *ProjectsLocationsConversationsAnalysesListCall) Header() http.Header {
9460 if c.header_ == nil {
9461 c.header_ = make(http.Header)
9462 }
9463 return c.header_
9464 }
9465
9466 func (c *ProjectsLocationsConversationsAnalysesListCall) doRequest(alt string) (*http.Response, error) {
9467 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9468 if c.ifNoneMatch_ != "" {
9469 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9470 }
9471 var body io.Reader = nil
9472 c.urlParams_.Set("alt", alt)
9473 c.urlParams_.Set("prettyPrint", "false")
9474 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/analyses")
9475 urls += "?" + c.urlParams_.Encode()
9476 req, err := http.NewRequest("GET", urls, body)
9477 if err != nil {
9478 return nil, err
9479 }
9480 req.Header = reqHeaders
9481 googleapi.Expand(req.URL, map[string]string{
9482 "parent": c.parent,
9483 })
9484 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9485 }
9486
9487
9488
9489
9490
9491
9492
9493
9494
9495 func (c *ProjectsLocationsConversationsAnalysesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListAnalysesResponse, error) {
9496 gensupport.SetOptions(c.urlParams_, opts...)
9497 res, err := c.doRequest("json")
9498 if res != nil && res.StatusCode == http.StatusNotModified {
9499 if res.Body != nil {
9500 res.Body.Close()
9501 }
9502 return nil, gensupport.WrapError(&googleapi.Error{
9503 Code: res.StatusCode,
9504 Header: res.Header,
9505 })
9506 }
9507 if err != nil {
9508 return nil, err
9509 }
9510 defer googleapi.CloseBody(res)
9511 if err := googleapi.CheckResponse(res); err != nil {
9512 return nil, gensupport.WrapError(err)
9513 }
9514 ret := &GoogleCloudContactcenterinsightsV1ListAnalysesResponse{
9515 ServerResponse: googleapi.ServerResponse{
9516 Header: res.Header,
9517 HTTPStatusCode: res.StatusCode,
9518 },
9519 }
9520 target := &ret
9521 if err := gensupport.DecodeResponse(target, res); err != nil {
9522 return nil, err
9523 }
9524 return ret, nil
9525 }
9526
9527
9528
9529
9530 func (c *ProjectsLocationsConversationsAnalysesListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListAnalysesResponse) error) error {
9531 c.ctx_ = ctx
9532 defer c.PageToken(c.urlParams_.Get("pageToken"))
9533 for {
9534 x, err := c.Do()
9535 if err != nil {
9536 return err
9537 }
9538 if err := f(x); err != nil {
9539 return err
9540 }
9541 if x.NextPageToken == "" {
9542 return nil
9543 }
9544 c.PageToken(x.NextPageToken)
9545 }
9546 }
9547
9548 type ProjectsLocationsInsightsdataExportCall struct {
9549 s *Service
9550 parent string
9551 googlecloudcontactcenterinsightsv1exportinsightsdatarequest *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest
9552 urlParams_ gensupport.URLParams
9553 ctx_ context.Context
9554 header_ http.Header
9555 }
9556
9557
9558
9559
9560 func (r *ProjectsLocationsInsightsdataService) Export(parent string, googlecloudcontactcenterinsightsv1exportinsightsdatarequest *GoogleCloudContactcenterinsightsV1ExportInsightsDataRequest) *ProjectsLocationsInsightsdataExportCall {
9561 c := &ProjectsLocationsInsightsdataExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9562 c.parent = parent
9563 c.googlecloudcontactcenterinsightsv1exportinsightsdatarequest = googlecloudcontactcenterinsightsv1exportinsightsdatarequest
9564 return c
9565 }
9566
9567
9568
9569
9570 func (c *ProjectsLocationsInsightsdataExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsInsightsdataExportCall {
9571 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9572 return c
9573 }
9574
9575
9576 func (c *ProjectsLocationsInsightsdataExportCall) Context(ctx context.Context) *ProjectsLocationsInsightsdataExportCall {
9577 c.ctx_ = ctx
9578 return c
9579 }
9580
9581
9582
9583 func (c *ProjectsLocationsInsightsdataExportCall) Header() http.Header {
9584 if c.header_ == nil {
9585 c.header_ = make(http.Header)
9586 }
9587 return c.header_
9588 }
9589
9590 func (c *ProjectsLocationsInsightsdataExportCall) doRequest(alt string) (*http.Response, error) {
9591 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9592 var body io.Reader = nil
9593 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1exportinsightsdatarequest)
9594 if err != nil {
9595 return nil, err
9596 }
9597 c.urlParams_.Set("alt", alt)
9598 c.urlParams_.Set("prettyPrint", "false")
9599 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/insightsdata:export")
9600 urls += "?" + c.urlParams_.Encode()
9601 req, err := http.NewRequest("POST", urls, body)
9602 if err != nil {
9603 return nil, err
9604 }
9605 req.Header = reqHeaders
9606 googleapi.Expand(req.URL, map[string]string{
9607 "parent": c.parent,
9608 })
9609 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9610 }
9611
9612
9613
9614
9615
9616
9617
9618 func (c *ProjectsLocationsInsightsdataExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9619 gensupport.SetOptions(c.urlParams_, opts...)
9620 res, err := c.doRequest("json")
9621 if res != nil && res.StatusCode == http.StatusNotModified {
9622 if res.Body != nil {
9623 res.Body.Close()
9624 }
9625 return nil, gensupport.WrapError(&googleapi.Error{
9626 Code: res.StatusCode,
9627 Header: res.Header,
9628 })
9629 }
9630 if err != nil {
9631 return nil, err
9632 }
9633 defer googleapi.CloseBody(res)
9634 if err := googleapi.CheckResponse(res); err != nil {
9635 return nil, gensupport.WrapError(err)
9636 }
9637 ret := &GoogleLongrunningOperation{
9638 ServerResponse: googleapi.ServerResponse{
9639 Header: res.Header,
9640 HTTPStatusCode: res.StatusCode,
9641 },
9642 }
9643 target := &ret
9644 if err := gensupport.DecodeResponse(target, res); err != nil {
9645 return nil, err
9646 }
9647 return ret, nil
9648 }
9649
9650 type ProjectsLocationsIssueModelsCalculateIssueModelStatsCall struct {
9651 s *Service
9652 issueModel string
9653 urlParams_ gensupport.URLParams
9654 ifNoneMatch_ string
9655 ctx_ context.Context
9656 header_ http.Header
9657 }
9658
9659
9660
9661
9662 func (r *ProjectsLocationsIssueModelsService) CalculateIssueModelStats(issueModel string) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall {
9663 c := &ProjectsLocationsIssueModelsCalculateIssueModelStatsCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9664 c.issueModel = issueModel
9665 return c
9666 }
9667
9668
9669
9670
9671 func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall {
9672 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9673 return c
9674 }
9675
9676
9677
9678
9679 func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall {
9680 c.ifNoneMatch_ = entityTag
9681 return c
9682 }
9683
9684
9685 func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall {
9686 c.ctx_ = ctx
9687 return c
9688 }
9689
9690
9691
9692 func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Header() http.Header {
9693 if c.header_ == nil {
9694 c.header_ = make(http.Header)
9695 }
9696 return c.header_
9697 }
9698
9699 func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) doRequest(alt string) (*http.Response, error) {
9700 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9701 if c.ifNoneMatch_ != "" {
9702 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9703 }
9704 var body io.Reader = nil
9705 c.urlParams_.Set("alt", alt)
9706 c.urlParams_.Set("prettyPrint", "false")
9707 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+issueModel}:calculateIssueModelStats")
9708 urls += "?" + c.urlParams_.Encode()
9709 req, err := http.NewRequest("GET", urls, body)
9710 if err != nil {
9711 return nil, err
9712 }
9713 req.Header = reqHeaders
9714 googleapi.Expand(req.URL, map[string]string{
9715 "issueModel": c.issueModel,
9716 })
9717 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9718 }
9719
9720
9721
9722
9723
9724
9725
9726 func (c *ProjectsLocationsIssueModelsCalculateIssueModelStatsCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse, error) {
9727 gensupport.SetOptions(c.urlParams_, opts...)
9728 res, err := c.doRequest("json")
9729 if res != nil && res.StatusCode == http.StatusNotModified {
9730 if res.Body != nil {
9731 res.Body.Close()
9732 }
9733 return nil, gensupport.WrapError(&googleapi.Error{
9734 Code: res.StatusCode,
9735 Header: res.Header,
9736 })
9737 }
9738 if err != nil {
9739 return nil, err
9740 }
9741 defer googleapi.CloseBody(res)
9742 if err := googleapi.CheckResponse(res); err != nil {
9743 return nil, gensupport.WrapError(err)
9744 }
9745 ret := &GoogleCloudContactcenterinsightsV1CalculateIssueModelStatsResponse{
9746 ServerResponse: googleapi.ServerResponse{
9747 Header: res.Header,
9748 HTTPStatusCode: res.StatusCode,
9749 },
9750 }
9751 target := &ret
9752 if err := gensupport.DecodeResponse(target, res); err != nil {
9753 return nil, err
9754 }
9755 return ret, nil
9756 }
9757
9758 type ProjectsLocationsIssueModelsCreateCall struct {
9759 s *Service
9760 parent string
9761 googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel
9762 urlParams_ gensupport.URLParams
9763 ctx_ context.Context
9764 header_ http.Header
9765 }
9766
9767
9768
9769
9770 func (r *ProjectsLocationsIssueModelsService) Create(parent string, googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel) *ProjectsLocationsIssueModelsCreateCall {
9771 c := &ProjectsLocationsIssueModelsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9772 c.parent = parent
9773 c.googlecloudcontactcenterinsightsv1issuemodel = googlecloudcontactcenterinsightsv1issuemodel
9774 return c
9775 }
9776
9777
9778
9779
9780 func (c *ProjectsLocationsIssueModelsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsCreateCall {
9781 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9782 return c
9783 }
9784
9785
9786 func (c *ProjectsLocationsIssueModelsCreateCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsCreateCall {
9787 c.ctx_ = ctx
9788 return c
9789 }
9790
9791
9792
9793 func (c *ProjectsLocationsIssueModelsCreateCall) Header() http.Header {
9794 if c.header_ == nil {
9795 c.header_ = make(http.Header)
9796 }
9797 return c.header_
9798 }
9799
9800 func (c *ProjectsLocationsIssueModelsCreateCall) doRequest(alt string) (*http.Response, error) {
9801 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9802 var body io.Reader = nil
9803 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issuemodel)
9804 if err != nil {
9805 return nil, err
9806 }
9807 c.urlParams_.Set("alt", alt)
9808 c.urlParams_.Set("prettyPrint", "false")
9809 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels")
9810 urls += "?" + c.urlParams_.Encode()
9811 req, err := http.NewRequest("POST", urls, body)
9812 if err != nil {
9813 return nil, err
9814 }
9815 req.Header = reqHeaders
9816 googleapi.Expand(req.URL, map[string]string{
9817 "parent": c.parent,
9818 })
9819 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9820 }
9821
9822
9823
9824
9825
9826
9827
9828 func (c *ProjectsLocationsIssueModelsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9829 gensupport.SetOptions(c.urlParams_, opts...)
9830 res, err := c.doRequest("json")
9831 if res != nil && res.StatusCode == http.StatusNotModified {
9832 if res.Body != nil {
9833 res.Body.Close()
9834 }
9835 return nil, gensupport.WrapError(&googleapi.Error{
9836 Code: res.StatusCode,
9837 Header: res.Header,
9838 })
9839 }
9840 if err != nil {
9841 return nil, err
9842 }
9843 defer googleapi.CloseBody(res)
9844 if err := googleapi.CheckResponse(res); err != nil {
9845 return nil, gensupport.WrapError(err)
9846 }
9847 ret := &GoogleLongrunningOperation{
9848 ServerResponse: googleapi.ServerResponse{
9849 Header: res.Header,
9850 HTTPStatusCode: res.StatusCode,
9851 },
9852 }
9853 target := &ret
9854 if err := gensupport.DecodeResponse(target, res); err != nil {
9855 return nil, err
9856 }
9857 return ret, nil
9858 }
9859
9860 type ProjectsLocationsIssueModelsDeleteCall struct {
9861 s *Service
9862 name string
9863 urlParams_ gensupport.URLParams
9864 ctx_ context.Context
9865 header_ http.Header
9866 }
9867
9868
9869
9870
9871 func (r *ProjectsLocationsIssueModelsService) Delete(name string) *ProjectsLocationsIssueModelsDeleteCall {
9872 c := &ProjectsLocationsIssueModelsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9873 c.name = name
9874 return c
9875 }
9876
9877
9878
9879
9880 func (c *ProjectsLocationsIssueModelsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsDeleteCall {
9881 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9882 return c
9883 }
9884
9885
9886 func (c *ProjectsLocationsIssueModelsDeleteCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsDeleteCall {
9887 c.ctx_ = ctx
9888 return c
9889 }
9890
9891
9892
9893 func (c *ProjectsLocationsIssueModelsDeleteCall) Header() http.Header {
9894 if c.header_ == nil {
9895 c.header_ = make(http.Header)
9896 }
9897 return c.header_
9898 }
9899
9900 func (c *ProjectsLocationsIssueModelsDeleteCall) doRequest(alt string) (*http.Response, error) {
9901 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9902 var body io.Reader = nil
9903 c.urlParams_.Set("alt", alt)
9904 c.urlParams_.Set("prettyPrint", "false")
9905 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
9906 urls += "?" + c.urlParams_.Encode()
9907 req, err := http.NewRequest("DELETE", urls, body)
9908 if err != nil {
9909 return nil, err
9910 }
9911 req.Header = reqHeaders
9912 googleapi.Expand(req.URL, map[string]string{
9913 "name": c.name,
9914 })
9915 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9916 }
9917
9918
9919
9920
9921
9922
9923
9924 func (c *ProjectsLocationsIssueModelsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9925 gensupport.SetOptions(c.urlParams_, opts...)
9926 res, err := c.doRequest("json")
9927 if res != nil && res.StatusCode == http.StatusNotModified {
9928 if res.Body != nil {
9929 res.Body.Close()
9930 }
9931 return nil, gensupport.WrapError(&googleapi.Error{
9932 Code: res.StatusCode,
9933 Header: res.Header,
9934 })
9935 }
9936 if err != nil {
9937 return nil, err
9938 }
9939 defer googleapi.CloseBody(res)
9940 if err := googleapi.CheckResponse(res); err != nil {
9941 return nil, gensupport.WrapError(err)
9942 }
9943 ret := &GoogleLongrunningOperation{
9944 ServerResponse: googleapi.ServerResponse{
9945 Header: res.Header,
9946 HTTPStatusCode: res.StatusCode,
9947 },
9948 }
9949 target := &ret
9950 if err := gensupport.DecodeResponse(target, res); err != nil {
9951 return nil, err
9952 }
9953 return ret, nil
9954 }
9955
9956 type ProjectsLocationsIssueModelsDeployCall struct {
9957 s *Service
9958 name string
9959 googlecloudcontactcenterinsightsv1deployissuemodelrequest *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest
9960 urlParams_ gensupport.URLParams
9961 ctx_ context.Context
9962 header_ http.Header
9963 }
9964
9965
9966
9967
9968
9969
9970 func (r *ProjectsLocationsIssueModelsService) Deploy(name string, googlecloudcontactcenterinsightsv1deployissuemodelrequest *GoogleCloudContactcenterinsightsV1DeployIssueModelRequest) *ProjectsLocationsIssueModelsDeployCall {
9971 c := &ProjectsLocationsIssueModelsDeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9972 c.name = name
9973 c.googlecloudcontactcenterinsightsv1deployissuemodelrequest = googlecloudcontactcenterinsightsv1deployissuemodelrequest
9974 return c
9975 }
9976
9977
9978
9979
9980 func (c *ProjectsLocationsIssueModelsDeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsDeployCall {
9981 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9982 return c
9983 }
9984
9985
9986 func (c *ProjectsLocationsIssueModelsDeployCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsDeployCall {
9987 c.ctx_ = ctx
9988 return c
9989 }
9990
9991
9992
9993 func (c *ProjectsLocationsIssueModelsDeployCall) Header() http.Header {
9994 if c.header_ == nil {
9995 c.header_ = make(http.Header)
9996 }
9997 return c.header_
9998 }
9999
10000 func (c *ProjectsLocationsIssueModelsDeployCall) doRequest(alt string) (*http.Response, error) {
10001 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10002 var body io.Reader = nil
10003 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1deployissuemodelrequest)
10004 if err != nil {
10005 return nil, err
10006 }
10007 c.urlParams_.Set("alt", alt)
10008 c.urlParams_.Set("prettyPrint", "false")
10009 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:deploy")
10010 urls += "?" + c.urlParams_.Encode()
10011 req, err := http.NewRequest("POST", urls, body)
10012 if err != nil {
10013 return nil, err
10014 }
10015 req.Header = reqHeaders
10016 googleapi.Expand(req.URL, map[string]string{
10017 "name": c.name,
10018 })
10019 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10020 }
10021
10022
10023
10024
10025
10026
10027
10028 func (c *ProjectsLocationsIssueModelsDeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10029 gensupport.SetOptions(c.urlParams_, opts...)
10030 res, err := c.doRequest("json")
10031 if res != nil && res.StatusCode == http.StatusNotModified {
10032 if res.Body != nil {
10033 res.Body.Close()
10034 }
10035 return nil, gensupport.WrapError(&googleapi.Error{
10036 Code: res.StatusCode,
10037 Header: res.Header,
10038 })
10039 }
10040 if err != nil {
10041 return nil, err
10042 }
10043 defer googleapi.CloseBody(res)
10044 if err := googleapi.CheckResponse(res); err != nil {
10045 return nil, gensupport.WrapError(err)
10046 }
10047 ret := &GoogleLongrunningOperation{
10048 ServerResponse: googleapi.ServerResponse{
10049 Header: res.Header,
10050 HTTPStatusCode: res.StatusCode,
10051 },
10052 }
10053 target := &ret
10054 if err := gensupport.DecodeResponse(target, res); err != nil {
10055 return nil, err
10056 }
10057 return ret, nil
10058 }
10059
10060 type ProjectsLocationsIssueModelsExportCall struct {
10061 s *Service
10062 name string
10063 googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest
10064 urlParams_ gensupport.URLParams
10065 ctx_ context.Context
10066 header_ http.Header
10067 }
10068
10069
10070
10071
10072 func (r *ProjectsLocationsIssueModelsService) Export(name string, googlecloudcontactcenterinsightsv1exportissuemodelrequest *GoogleCloudContactcenterinsightsV1ExportIssueModelRequest) *ProjectsLocationsIssueModelsExportCall {
10073 c := &ProjectsLocationsIssueModelsExportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10074 c.name = name
10075 c.googlecloudcontactcenterinsightsv1exportissuemodelrequest = googlecloudcontactcenterinsightsv1exportissuemodelrequest
10076 return c
10077 }
10078
10079
10080
10081
10082 func (c *ProjectsLocationsIssueModelsExportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsExportCall {
10083 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10084 return c
10085 }
10086
10087
10088 func (c *ProjectsLocationsIssueModelsExportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsExportCall {
10089 c.ctx_ = ctx
10090 return c
10091 }
10092
10093
10094
10095 func (c *ProjectsLocationsIssueModelsExportCall) Header() http.Header {
10096 if c.header_ == nil {
10097 c.header_ = make(http.Header)
10098 }
10099 return c.header_
10100 }
10101
10102 func (c *ProjectsLocationsIssueModelsExportCall) doRequest(alt string) (*http.Response, error) {
10103 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10104 var body io.Reader = nil
10105 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1exportissuemodelrequest)
10106 if err != nil {
10107 return nil, err
10108 }
10109 c.urlParams_.Set("alt", alt)
10110 c.urlParams_.Set("prettyPrint", "false")
10111 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:export")
10112 urls += "?" + c.urlParams_.Encode()
10113 req, err := http.NewRequest("POST", urls, body)
10114 if err != nil {
10115 return nil, err
10116 }
10117 req.Header = reqHeaders
10118 googleapi.Expand(req.URL, map[string]string{
10119 "name": c.name,
10120 })
10121 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10122 }
10123
10124
10125
10126
10127
10128
10129
10130 func (c *ProjectsLocationsIssueModelsExportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10131 gensupport.SetOptions(c.urlParams_, opts...)
10132 res, err := c.doRequest("json")
10133 if res != nil && res.StatusCode == http.StatusNotModified {
10134 if res.Body != nil {
10135 res.Body.Close()
10136 }
10137 return nil, gensupport.WrapError(&googleapi.Error{
10138 Code: res.StatusCode,
10139 Header: res.Header,
10140 })
10141 }
10142 if err != nil {
10143 return nil, err
10144 }
10145 defer googleapi.CloseBody(res)
10146 if err := googleapi.CheckResponse(res); err != nil {
10147 return nil, gensupport.WrapError(err)
10148 }
10149 ret := &GoogleLongrunningOperation{
10150 ServerResponse: googleapi.ServerResponse{
10151 Header: res.Header,
10152 HTTPStatusCode: res.StatusCode,
10153 },
10154 }
10155 target := &ret
10156 if err := gensupport.DecodeResponse(target, res); err != nil {
10157 return nil, err
10158 }
10159 return ret, nil
10160 }
10161
10162 type ProjectsLocationsIssueModelsGetCall struct {
10163 s *Service
10164 name string
10165 urlParams_ gensupport.URLParams
10166 ifNoneMatch_ string
10167 ctx_ context.Context
10168 header_ http.Header
10169 }
10170
10171
10172
10173
10174 func (r *ProjectsLocationsIssueModelsService) Get(name string) *ProjectsLocationsIssueModelsGetCall {
10175 c := &ProjectsLocationsIssueModelsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10176 c.name = name
10177 return c
10178 }
10179
10180
10181
10182
10183 func (c *ProjectsLocationsIssueModelsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsGetCall {
10184 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10185 return c
10186 }
10187
10188
10189
10190
10191 func (c *ProjectsLocationsIssueModelsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsGetCall {
10192 c.ifNoneMatch_ = entityTag
10193 return c
10194 }
10195
10196
10197 func (c *ProjectsLocationsIssueModelsGetCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsGetCall {
10198 c.ctx_ = ctx
10199 return c
10200 }
10201
10202
10203
10204 func (c *ProjectsLocationsIssueModelsGetCall) Header() http.Header {
10205 if c.header_ == nil {
10206 c.header_ = make(http.Header)
10207 }
10208 return c.header_
10209 }
10210
10211 func (c *ProjectsLocationsIssueModelsGetCall) doRequest(alt string) (*http.Response, error) {
10212 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10213 if c.ifNoneMatch_ != "" {
10214 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10215 }
10216 var body io.Reader = nil
10217 c.urlParams_.Set("alt", alt)
10218 c.urlParams_.Set("prettyPrint", "false")
10219 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10220 urls += "?" + c.urlParams_.Encode()
10221 req, err := http.NewRequest("GET", urls, body)
10222 if err != nil {
10223 return nil, err
10224 }
10225 req.Header = reqHeaders
10226 googleapi.Expand(req.URL, map[string]string{
10227 "name": c.name,
10228 })
10229 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10230 }
10231
10232
10233
10234
10235
10236
10237
10238 func (c *ProjectsLocationsIssueModelsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1IssueModel, error) {
10239 gensupport.SetOptions(c.urlParams_, opts...)
10240 res, err := c.doRequest("json")
10241 if res != nil && res.StatusCode == http.StatusNotModified {
10242 if res.Body != nil {
10243 res.Body.Close()
10244 }
10245 return nil, gensupport.WrapError(&googleapi.Error{
10246 Code: res.StatusCode,
10247 Header: res.Header,
10248 })
10249 }
10250 if err != nil {
10251 return nil, err
10252 }
10253 defer googleapi.CloseBody(res)
10254 if err := googleapi.CheckResponse(res); err != nil {
10255 return nil, gensupport.WrapError(err)
10256 }
10257 ret := &GoogleCloudContactcenterinsightsV1IssueModel{
10258 ServerResponse: googleapi.ServerResponse{
10259 Header: res.Header,
10260 HTTPStatusCode: res.StatusCode,
10261 },
10262 }
10263 target := &ret
10264 if err := gensupport.DecodeResponse(target, res); err != nil {
10265 return nil, err
10266 }
10267 return ret, nil
10268 }
10269
10270 type ProjectsLocationsIssueModelsImportCall struct {
10271 s *Service
10272 parent string
10273 googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest
10274 urlParams_ gensupport.URLParams
10275 ctx_ context.Context
10276 header_ http.Header
10277 }
10278
10279
10280
10281
10282 func (r *ProjectsLocationsIssueModelsService) Import(parent string, googlecloudcontactcenterinsightsv1importissuemodelrequest *GoogleCloudContactcenterinsightsV1ImportIssueModelRequest) *ProjectsLocationsIssueModelsImportCall {
10283 c := &ProjectsLocationsIssueModelsImportCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10284 c.parent = parent
10285 c.googlecloudcontactcenterinsightsv1importissuemodelrequest = googlecloudcontactcenterinsightsv1importissuemodelrequest
10286 return c
10287 }
10288
10289
10290
10291
10292 func (c *ProjectsLocationsIssueModelsImportCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsImportCall {
10293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10294 return c
10295 }
10296
10297
10298 func (c *ProjectsLocationsIssueModelsImportCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsImportCall {
10299 c.ctx_ = ctx
10300 return c
10301 }
10302
10303
10304
10305 func (c *ProjectsLocationsIssueModelsImportCall) Header() http.Header {
10306 if c.header_ == nil {
10307 c.header_ = make(http.Header)
10308 }
10309 return c.header_
10310 }
10311
10312 func (c *ProjectsLocationsIssueModelsImportCall) doRequest(alt string) (*http.Response, error) {
10313 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10314 var body io.Reader = nil
10315 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1importissuemodelrequest)
10316 if err != nil {
10317 return nil, err
10318 }
10319 c.urlParams_.Set("alt", alt)
10320 c.urlParams_.Set("prettyPrint", "false")
10321 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels:import")
10322 urls += "?" + c.urlParams_.Encode()
10323 req, err := http.NewRequest("POST", urls, body)
10324 if err != nil {
10325 return nil, err
10326 }
10327 req.Header = reqHeaders
10328 googleapi.Expand(req.URL, map[string]string{
10329 "parent": c.parent,
10330 })
10331 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10332 }
10333
10334
10335
10336
10337
10338
10339
10340 func (c *ProjectsLocationsIssueModelsImportCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10341 gensupport.SetOptions(c.urlParams_, opts...)
10342 res, err := c.doRequest("json")
10343 if res != nil && res.StatusCode == http.StatusNotModified {
10344 if res.Body != nil {
10345 res.Body.Close()
10346 }
10347 return nil, gensupport.WrapError(&googleapi.Error{
10348 Code: res.StatusCode,
10349 Header: res.Header,
10350 })
10351 }
10352 if err != nil {
10353 return nil, err
10354 }
10355 defer googleapi.CloseBody(res)
10356 if err := googleapi.CheckResponse(res); err != nil {
10357 return nil, gensupport.WrapError(err)
10358 }
10359 ret := &GoogleLongrunningOperation{
10360 ServerResponse: googleapi.ServerResponse{
10361 Header: res.Header,
10362 HTTPStatusCode: res.StatusCode,
10363 },
10364 }
10365 target := &ret
10366 if err := gensupport.DecodeResponse(target, res); err != nil {
10367 return nil, err
10368 }
10369 return ret, nil
10370 }
10371
10372 type ProjectsLocationsIssueModelsListCall struct {
10373 s *Service
10374 parent string
10375 urlParams_ gensupport.URLParams
10376 ifNoneMatch_ string
10377 ctx_ context.Context
10378 header_ http.Header
10379 }
10380
10381
10382
10383
10384 func (r *ProjectsLocationsIssueModelsService) List(parent string) *ProjectsLocationsIssueModelsListCall {
10385 c := &ProjectsLocationsIssueModelsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10386 c.parent = parent
10387 return c
10388 }
10389
10390
10391
10392
10393 func (c *ProjectsLocationsIssueModelsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsListCall {
10394 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10395 return c
10396 }
10397
10398
10399
10400
10401 func (c *ProjectsLocationsIssueModelsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsListCall {
10402 c.ifNoneMatch_ = entityTag
10403 return c
10404 }
10405
10406
10407 func (c *ProjectsLocationsIssueModelsListCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsListCall {
10408 c.ctx_ = ctx
10409 return c
10410 }
10411
10412
10413
10414 func (c *ProjectsLocationsIssueModelsListCall) Header() http.Header {
10415 if c.header_ == nil {
10416 c.header_ = make(http.Header)
10417 }
10418 return c.header_
10419 }
10420
10421 func (c *ProjectsLocationsIssueModelsListCall) doRequest(alt string) (*http.Response, error) {
10422 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10423 if c.ifNoneMatch_ != "" {
10424 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10425 }
10426 var body io.Reader = nil
10427 c.urlParams_.Set("alt", alt)
10428 c.urlParams_.Set("prettyPrint", "false")
10429 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issueModels")
10430 urls += "?" + c.urlParams_.Encode()
10431 req, err := http.NewRequest("GET", urls, body)
10432 if err != nil {
10433 return nil, err
10434 }
10435 req.Header = reqHeaders
10436 googleapi.Expand(req.URL, map[string]string{
10437 "parent": c.parent,
10438 })
10439 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10440 }
10441
10442
10443
10444
10445
10446
10447
10448 func (c *ProjectsLocationsIssueModelsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListIssueModelsResponse, error) {
10449 gensupport.SetOptions(c.urlParams_, opts...)
10450 res, err := c.doRequest("json")
10451 if res != nil && res.StatusCode == http.StatusNotModified {
10452 if res.Body != nil {
10453 res.Body.Close()
10454 }
10455 return nil, gensupport.WrapError(&googleapi.Error{
10456 Code: res.StatusCode,
10457 Header: res.Header,
10458 })
10459 }
10460 if err != nil {
10461 return nil, err
10462 }
10463 defer googleapi.CloseBody(res)
10464 if err := googleapi.CheckResponse(res); err != nil {
10465 return nil, gensupport.WrapError(err)
10466 }
10467 ret := &GoogleCloudContactcenterinsightsV1ListIssueModelsResponse{
10468 ServerResponse: googleapi.ServerResponse{
10469 Header: res.Header,
10470 HTTPStatusCode: res.StatusCode,
10471 },
10472 }
10473 target := &ret
10474 if err := gensupport.DecodeResponse(target, res); err != nil {
10475 return nil, err
10476 }
10477 return ret, nil
10478 }
10479
10480 type ProjectsLocationsIssueModelsPatchCall struct {
10481 s *Service
10482 name string
10483 googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel
10484 urlParams_ gensupport.URLParams
10485 ctx_ context.Context
10486 header_ http.Header
10487 }
10488
10489
10490
10491
10492
10493 func (r *ProjectsLocationsIssueModelsService) Patch(name string, googlecloudcontactcenterinsightsv1issuemodel *GoogleCloudContactcenterinsightsV1IssueModel) *ProjectsLocationsIssueModelsPatchCall {
10494 c := &ProjectsLocationsIssueModelsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10495 c.name = name
10496 c.googlecloudcontactcenterinsightsv1issuemodel = googlecloudcontactcenterinsightsv1issuemodel
10497 return c
10498 }
10499
10500
10501
10502 func (c *ProjectsLocationsIssueModelsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIssueModelsPatchCall {
10503 c.urlParams_.Set("updateMask", updateMask)
10504 return c
10505 }
10506
10507
10508
10509
10510 func (c *ProjectsLocationsIssueModelsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsPatchCall {
10511 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10512 return c
10513 }
10514
10515
10516 func (c *ProjectsLocationsIssueModelsPatchCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsPatchCall {
10517 c.ctx_ = ctx
10518 return c
10519 }
10520
10521
10522
10523 func (c *ProjectsLocationsIssueModelsPatchCall) Header() http.Header {
10524 if c.header_ == nil {
10525 c.header_ = make(http.Header)
10526 }
10527 return c.header_
10528 }
10529
10530 func (c *ProjectsLocationsIssueModelsPatchCall) doRequest(alt string) (*http.Response, error) {
10531 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10532 var body io.Reader = nil
10533 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issuemodel)
10534 if err != nil {
10535 return nil, err
10536 }
10537 c.urlParams_.Set("alt", alt)
10538 c.urlParams_.Set("prettyPrint", "false")
10539 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10540 urls += "?" + c.urlParams_.Encode()
10541 req, err := http.NewRequest("PATCH", urls, body)
10542 if err != nil {
10543 return nil, err
10544 }
10545 req.Header = reqHeaders
10546 googleapi.Expand(req.URL, map[string]string{
10547 "name": c.name,
10548 })
10549 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10550 }
10551
10552
10553
10554
10555
10556
10557
10558 func (c *ProjectsLocationsIssueModelsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1IssueModel, error) {
10559 gensupport.SetOptions(c.urlParams_, opts...)
10560 res, err := c.doRequest("json")
10561 if res != nil && res.StatusCode == http.StatusNotModified {
10562 if res.Body != nil {
10563 res.Body.Close()
10564 }
10565 return nil, gensupport.WrapError(&googleapi.Error{
10566 Code: res.StatusCode,
10567 Header: res.Header,
10568 })
10569 }
10570 if err != nil {
10571 return nil, err
10572 }
10573 defer googleapi.CloseBody(res)
10574 if err := googleapi.CheckResponse(res); err != nil {
10575 return nil, gensupport.WrapError(err)
10576 }
10577 ret := &GoogleCloudContactcenterinsightsV1IssueModel{
10578 ServerResponse: googleapi.ServerResponse{
10579 Header: res.Header,
10580 HTTPStatusCode: res.StatusCode,
10581 },
10582 }
10583 target := &ret
10584 if err := gensupport.DecodeResponse(target, res); err != nil {
10585 return nil, err
10586 }
10587 return ret, nil
10588 }
10589
10590 type ProjectsLocationsIssueModelsUndeployCall struct {
10591 s *Service
10592 name string
10593 googlecloudcontactcenterinsightsv1undeployissuemodelrequest *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest
10594 urlParams_ gensupport.URLParams
10595 ctx_ context.Context
10596 header_ http.Header
10597 }
10598
10599
10600
10601
10602
10603 func (r *ProjectsLocationsIssueModelsService) Undeploy(name string, googlecloudcontactcenterinsightsv1undeployissuemodelrequest *GoogleCloudContactcenterinsightsV1UndeployIssueModelRequest) *ProjectsLocationsIssueModelsUndeployCall {
10604 c := &ProjectsLocationsIssueModelsUndeployCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10605 c.name = name
10606 c.googlecloudcontactcenterinsightsv1undeployissuemodelrequest = googlecloudcontactcenterinsightsv1undeployissuemodelrequest
10607 return c
10608 }
10609
10610
10611
10612
10613 func (c *ProjectsLocationsIssueModelsUndeployCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsUndeployCall {
10614 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10615 return c
10616 }
10617
10618
10619 func (c *ProjectsLocationsIssueModelsUndeployCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsUndeployCall {
10620 c.ctx_ = ctx
10621 return c
10622 }
10623
10624
10625
10626 func (c *ProjectsLocationsIssueModelsUndeployCall) Header() http.Header {
10627 if c.header_ == nil {
10628 c.header_ = make(http.Header)
10629 }
10630 return c.header_
10631 }
10632
10633 func (c *ProjectsLocationsIssueModelsUndeployCall) doRequest(alt string) (*http.Response, error) {
10634 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10635 var body io.Reader = nil
10636 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1undeployissuemodelrequest)
10637 if err != nil {
10638 return nil, err
10639 }
10640 c.urlParams_.Set("alt", alt)
10641 c.urlParams_.Set("prettyPrint", "false")
10642 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:undeploy")
10643 urls += "?" + c.urlParams_.Encode()
10644 req, err := http.NewRequest("POST", urls, body)
10645 if err != nil {
10646 return nil, err
10647 }
10648 req.Header = reqHeaders
10649 googleapi.Expand(req.URL, map[string]string{
10650 "name": c.name,
10651 })
10652 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10653 }
10654
10655
10656
10657
10658
10659
10660
10661 func (c *ProjectsLocationsIssueModelsUndeployCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10662 gensupport.SetOptions(c.urlParams_, opts...)
10663 res, err := c.doRequest("json")
10664 if res != nil && res.StatusCode == http.StatusNotModified {
10665 if res.Body != nil {
10666 res.Body.Close()
10667 }
10668 return nil, gensupport.WrapError(&googleapi.Error{
10669 Code: res.StatusCode,
10670 Header: res.Header,
10671 })
10672 }
10673 if err != nil {
10674 return nil, err
10675 }
10676 defer googleapi.CloseBody(res)
10677 if err := googleapi.CheckResponse(res); err != nil {
10678 return nil, gensupport.WrapError(err)
10679 }
10680 ret := &GoogleLongrunningOperation{
10681 ServerResponse: googleapi.ServerResponse{
10682 Header: res.Header,
10683 HTTPStatusCode: res.StatusCode,
10684 },
10685 }
10686 target := &ret
10687 if err := gensupport.DecodeResponse(target, res); err != nil {
10688 return nil, err
10689 }
10690 return ret, nil
10691 }
10692
10693 type ProjectsLocationsIssueModelsIssuesDeleteCall struct {
10694 s *Service
10695 name string
10696 urlParams_ gensupport.URLParams
10697 ctx_ context.Context
10698 header_ http.Header
10699 }
10700
10701
10702
10703
10704 func (r *ProjectsLocationsIssueModelsIssuesService) Delete(name string) *ProjectsLocationsIssueModelsIssuesDeleteCall {
10705 c := &ProjectsLocationsIssueModelsIssuesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10706 c.name = name
10707 return c
10708 }
10709
10710
10711
10712
10713 func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesDeleteCall {
10714 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10715 return c
10716 }
10717
10718
10719 func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesDeleteCall {
10720 c.ctx_ = ctx
10721 return c
10722 }
10723
10724
10725
10726 func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Header() http.Header {
10727 if c.header_ == nil {
10728 c.header_ = make(http.Header)
10729 }
10730 return c.header_
10731 }
10732
10733 func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) doRequest(alt string) (*http.Response, error) {
10734 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10735 var body io.Reader = nil
10736 c.urlParams_.Set("alt", alt)
10737 c.urlParams_.Set("prettyPrint", "false")
10738 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10739 urls += "?" + c.urlParams_.Encode()
10740 req, err := http.NewRequest("DELETE", urls, body)
10741 if err != nil {
10742 return nil, err
10743 }
10744 req.Header = reqHeaders
10745 googleapi.Expand(req.URL, map[string]string{
10746 "name": c.name,
10747 })
10748 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10749 }
10750
10751
10752
10753
10754
10755
10756
10757 func (c *ProjectsLocationsIssueModelsIssuesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10758 gensupport.SetOptions(c.urlParams_, opts...)
10759 res, err := c.doRequest("json")
10760 if res != nil && res.StatusCode == http.StatusNotModified {
10761 if res.Body != nil {
10762 res.Body.Close()
10763 }
10764 return nil, gensupport.WrapError(&googleapi.Error{
10765 Code: res.StatusCode,
10766 Header: res.Header,
10767 })
10768 }
10769 if err != nil {
10770 return nil, err
10771 }
10772 defer googleapi.CloseBody(res)
10773 if err := googleapi.CheckResponse(res); err != nil {
10774 return nil, gensupport.WrapError(err)
10775 }
10776 ret := &GoogleProtobufEmpty{
10777 ServerResponse: googleapi.ServerResponse{
10778 Header: res.Header,
10779 HTTPStatusCode: res.StatusCode,
10780 },
10781 }
10782 target := &ret
10783 if err := gensupport.DecodeResponse(target, res); err != nil {
10784 return nil, err
10785 }
10786 return ret, nil
10787 }
10788
10789 type ProjectsLocationsIssueModelsIssuesGetCall struct {
10790 s *Service
10791 name string
10792 urlParams_ gensupport.URLParams
10793 ifNoneMatch_ string
10794 ctx_ context.Context
10795 header_ http.Header
10796 }
10797
10798
10799
10800
10801 func (r *ProjectsLocationsIssueModelsIssuesService) Get(name string) *ProjectsLocationsIssueModelsIssuesGetCall {
10802 c := &ProjectsLocationsIssueModelsIssuesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10803 c.name = name
10804 return c
10805 }
10806
10807
10808
10809
10810 func (c *ProjectsLocationsIssueModelsIssuesGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesGetCall {
10811 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10812 return c
10813 }
10814
10815
10816
10817
10818 func (c *ProjectsLocationsIssueModelsIssuesGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsIssuesGetCall {
10819 c.ifNoneMatch_ = entityTag
10820 return c
10821 }
10822
10823
10824 func (c *ProjectsLocationsIssueModelsIssuesGetCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesGetCall {
10825 c.ctx_ = ctx
10826 return c
10827 }
10828
10829
10830
10831 func (c *ProjectsLocationsIssueModelsIssuesGetCall) Header() http.Header {
10832 if c.header_ == nil {
10833 c.header_ = make(http.Header)
10834 }
10835 return c.header_
10836 }
10837
10838 func (c *ProjectsLocationsIssueModelsIssuesGetCall) doRequest(alt string) (*http.Response, error) {
10839 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10840 if c.ifNoneMatch_ != "" {
10841 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10842 }
10843 var body io.Reader = nil
10844 c.urlParams_.Set("alt", alt)
10845 c.urlParams_.Set("prettyPrint", "false")
10846 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
10847 urls += "?" + c.urlParams_.Encode()
10848 req, err := http.NewRequest("GET", urls, body)
10849 if err != nil {
10850 return nil, err
10851 }
10852 req.Header = reqHeaders
10853 googleapi.Expand(req.URL, map[string]string{
10854 "name": c.name,
10855 })
10856 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10857 }
10858
10859
10860
10861
10862
10863
10864
10865 func (c *ProjectsLocationsIssueModelsIssuesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Issue, error) {
10866 gensupport.SetOptions(c.urlParams_, opts...)
10867 res, err := c.doRequest("json")
10868 if res != nil && res.StatusCode == http.StatusNotModified {
10869 if res.Body != nil {
10870 res.Body.Close()
10871 }
10872 return nil, gensupport.WrapError(&googleapi.Error{
10873 Code: res.StatusCode,
10874 Header: res.Header,
10875 })
10876 }
10877 if err != nil {
10878 return nil, err
10879 }
10880 defer googleapi.CloseBody(res)
10881 if err := googleapi.CheckResponse(res); err != nil {
10882 return nil, gensupport.WrapError(err)
10883 }
10884 ret := &GoogleCloudContactcenterinsightsV1Issue{
10885 ServerResponse: googleapi.ServerResponse{
10886 Header: res.Header,
10887 HTTPStatusCode: res.StatusCode,
10888 },
10889 }
10890 target := &ret
10891 if err := gensupport.DecodeResponse(target, res); err != nil {
10892 return nil, err
10893 }
10894 return ret, nil
10895 }
10896
10897 type ProjectsLocationsIssueModelsIssuesListCall struct {
10898 s *Service
10899 parent string
10900 urlParams_ gensupport.URLParams
10901 ifNoneMatch_ string
10902 ctx_ context.Context
10903 header_ http.Header
10904 }
10905
10906
10907
10908
10909 func (r *ProjectsLocationsIssueModelsIssuesService) List(parent string) *ProjectsLocationsIssueModelsIssuesListCall {
10910 c := &ProjectsLocationsIssueModelsIssuesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10911 c.parent = parent
10912 return c
10913 }
10914
10915
10916
10917
10918 func (c *ProjectsLocationsIssueModelsIssuesListCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesListCall {
10919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10920 return c
10921 }
10922
10923
10924
10925
10926 func (c *ProjectsLocationsIssueModelsIssuesListCall) IfNoneMatch(entityTag string) *ProjectsLocationsIssueModelsIssuesListCall {
10927 c.ifNoneMatch_ = entityTag
10928 return c
10929 }
10930
10931
10932 func (c *ProjectsLocationsIssueModelsIssuesListCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesListCall {
10933 c.ctx_ = ctx
10934 return c
10935 }
10936
10937
10938
10939 func (c *ProjectsLocationsIssueModelsIssuesListCall) Header() http.Header {
10940 if c.header_ == nil {
10941 c.header_ = make(http.Header)
10942 }
10943 return c.header_
10944 }
10945
10946 func (c *ProjectsLocationsIssueModelsIssuesListCall) doRequest(alt string) (*http.Response, error) {
10947 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10948 if c.ifNoneMatch_ != "" {
10949 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10950 }
10951 var body io.Reader = nil
10952 c.urlParams_.Set("alt", alt)
10953 c.urlParams_.Set("prettyPrint", "false")
10954 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/issues")
10955 urls += "?" + c.urlParams_.Encode()
10956 req, err := http.NewRequest("GET", urls, body)
10957 if err != nil {
10958 return nil, err
10959 }
10960 req.Header = reqHeaders
10961 googleapi.Expand(req.URL, map[string]string{
10962 "parent": c.parent,
10963 })
10964 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10965 }
10966
10967
10968
10969
10970
10971
10972
10973 func (c *ProjectsLocationsIssueModelsIssuesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListIssuesResponse, error) {
10974 gensupport.SetOptions(c.urlParams_, opts...)
10975 res, err := c.doRequest("json")
10976 if res != nil && res.StatusCode == http.StatusNotModified {
10977 if res.Body != nil {
10978 res.Body.Close()
10979 }
10980 return nil, gensupport.WrapError(&googleapi.Error{
10981 Code: res.StatusCode,
10982 Header: res.Header,
10983 })
10984 }
10985 if err != nil {
10986 return nil, err
10987 }
10988 defer googleapi.CloseBody(res)
10989 if err := googleapi.CheckResponse(res); err != nil {
10990 return nil, gensupport.WrapError(err)
10991 }
10992 ret := &GoogleCloudContactcenterinsightsV1ListIssuesResponse{
10993 ServerResponse: googleapi.ServerResponse{
10994 Header: res.Header,
10995 HTTPStatusCode: res.StatusCode,
10996 },
10997 }
10998 target := &ret
10999 if err := gensupport.DecodeResponse(target, res); err != nil {
11000 return nil, err
11001 }
11002 return ret, nil
11003 }
11004
11005 type ProjectsLocationsIssueModelsIssuesPatchCall struct {
11006 s *Service
11007 name string
11008 googlecloudcontactcenterinsightsv1issue *GoogleCloudContactcenterinsightsV1Issue
11009 urlParams_ gensupport.URLParams
11010 ctx_ context.Context
11011 header_ http.Header
11012 }
11013
11014
11015
11016
11017
11018
11019 func (r *ProjectsLocationsIssueModelsIssuesService) Patch(name string, googlecloudcontactcenterinsightsv1issue *GoogleCloudContactcenterinsightsV1Issue) *ProjectsLocationsIssueModelsIssuesPatchCall {
11020 c := &ProjectsLocationsIssueModelsIssuesPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11021 c.name = name
11022 c.googlecloudcontactcenterinsightsv1issue = googlecloudcontactcenterinsightsv1issue
11023 return c
11024 }
11025
11026
11027
11028 func (c *ProjectsLocationsIssueModelsIssuesPatchCall) UpdateMask(updateMask string) *ProjectsLocationsIssueModelsIssuesPatchCall {
11029 c.urlParams_.Set("updateMask", updateMask)
11030 return c
11031 }
11032
11033
11034
11035
11036 func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsIssueModelsIssuesPatchCall {
11037 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11038 return c
11039 }
11040
11041
11042 func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Context(ctx context.Context) *ProjectsLocationsIssueModelsIssuesPatchCall {
11043 c.ctx_ = ctx
11044 return c
11045 }
11046
11047
11048
11049 func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Header() http.Header {
11050 if c.header_ == nil {
11051 c.header_ = make(http.Header)
11052 }
11053 return c.header_
11054 }
11055
11056 func (c *ProjectsLocationsIssueModelsIssuesPatchCall) doRequest(alt string) (*http.Response, error) {
11057 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11058 var body io.Reader = nil
11059 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1issue)
11060 if err != nil {
11061 return nil, err
11062 }
11063 c.urlParams_.Set("alt", alt)
11064 c.urlParams_.Set("prettyPrint", "false")
11065 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11066 urls += "?" + c.urlParams_.Encode()
11067 req, err := http.NewRequest("PATCH", urls, body)
11068 if err != nil {
11069 return nil, err
11070 }
11071 req.Header = reqHeaders
11072 googleapi.Expand(req.URL, map[string]string{
11073 "name": c.name,
11074 })
11075 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11076 }
11077
11078
11079
11080
11081
11082
11083
11084 func (c *ProjectsLocationsIssueModelsIssuesPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1Issue, error) {
11085 gensupport.SetOptions(c.urlParams_, opts...)
11086 res, err := c.doRequest("json")
11087 if res != nil && res.StatusCode == http.StatusNotModified {
11088 if res.Body != nil {
11089 res.Body.Close()
11090 }
11091 return nil, gensupport.WrapError(&googleapi.Error{
11092 Code: res.StatusCode,
11093 Header: res.Header,
11094 })
11095 }
11096 if err != nil {
11097 return nil, err
11098 }
11099 defer googleapi.CloseBody(res)
11100 if err := googleapi.CheckResponse(res); err != nil {
11101 return nil, gensupport.WrapError(err)
11102 }
11103 ret := &GoogleCloudContactcenterinsightsV1Issue{
11104 ServerResponse: googleapi.ServerResponse{
11105 Header: res.Header,
11106 HTTPStatusCode: res.StatusCode,
11107 },
11108 }
11109 target := &ret
11110 if err := gensupport.DecodeResponse(target, res); err != nil {
11111 return nil, err
11112 }
11113 return ret, nil
11114 }
11115
11116 type ProjectsLocationsOperationsCancelCall struct {
11117 s *Service
11118 name string
11119 urlParams_ gensupport.URLParams
11120 ctx_ context.Context
11121 header_ http.Header
11122 }
11123
11124
11125
11126
11127
11128
11129
11130
11131
11132
11133
11134
11135 func (r *ProjectsLocationsOperationsService) Cancel(name string) *ProjectsLocationsOperationsCancelCall {
11136 c := &ProjectsLocationsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11137 c.name = name
11138 return c
11139 }
11140
11141
11142
11143
11144 func (c *ProjectsLocationsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsCancelCall {
11145 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11146 return c
11147 }
11148
11149
11150 func (c *ProjectsLocationsOperationsCancelCall) Context(ctx context.Context) *ProjectsLocationsOperationsCancelCall {
11151 c.ctx_ = ctx
11152 return c
11153 }
11154
11155
11156
11157 func (c *ProjectsLocationsOperationsCancelCall) Header() http.Header {
11158 if c.header_ == nil {
11159 c.header_ = make(http.Header)
11160 }
11161 return c.header_
11162 }
11163
11164 func (c *ProjectsLocationsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
11165 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11166 var body io.Reader = nil
11167 c.urlParams_.Set("alt", alt)
11168 c.urlParams_.Set("prettyPrint", "false")
11169 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}:cancel")
11170 urls += "?" + c.urlParams_.Encode()
11171 req, err := http.NewRequest("POST", urls, body)
11172 if err != nil {
11173 return nil, err
11174 }
11175 req.Header = reqHeaders
11176 googleapi.Expand(req.URL, map[string]string{
11177 "name": c.name,
11178 })
11179 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11180 }
11181
11182
11183
11184
11185
11186
11187
11188 func (c *ProjectsLocationsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11189 gensupport.SetOptions(c.urlParams_, opts...)
11190 res, err := c.doRequest("json")
11191 if res != nil && res.StatusCode == http.StatusNotModified {
11192 if res.Body != nil {
11193 res.Body.Close()
11194 }
11195 return nil, gensupport.WrapError(&googleapi.Error{
11196 Code: res.StatusCode,
11197 Header: res.Header,
11198 })
11199 }
11200 if err != nil {
11201 return nil, err
11202 }
11203 defer googleapi.CloseBody(res)
11204 if err := googleapi.CheckResponse(res); err != nil {
11205 return nil, gensupport.WrapError(err)
11206 }
11207 ret := &GoogleProtobufEmpty{
11208 ServerResponse: googleapi.ServerResponse{
11209 Header: res.Header,
11210 HTTPStatusCode: res.StatusCode,
11211 },
11212 }
11213 target := &ret
11214 if err := gensupport.DecodeResponse(target, res); err != nil {
11215 return nil, err
11216 }
11217 return ret, nil
11218 }
11219
11220 type ProjectsLocationsOperationsGetCall struct {
11221 s *Service
11222 name string
11223 urlParams_ gensupport.URLParams
11224 ifNoneMatch_ string
11225 ctx_ context.Context
11226 header_ http.Header
11227 }
11228
11229
11230
11231
11232
11233
11234 func (r *ProjectsLocationsOperationsService) Get(name string) *ProjectsLocationsOperationsGetCall {
11235 c := &ProjectsLocationsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11236 c.name = name
11237 return c
11238 }
11239
11240
11241
11242
11243 func (c *ProjectsLocationsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsGetCall {
11244 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11245 return c
11246 }
11247
11248
11249
11250
11251 func (c *ProjectsLocationsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsGetCall {
11252 c.ifNoneMatch_ = entityTag
11253 return c
11254 }
11255
11256
11257 func (c *ProjectsLocationsOperationsGetCall) Context(ctx context.Context) *ProjectsLocationsOperationsGetCall {
11258 c.ctx_ = ctx
11259 return c
11260 }
11261
11262
11263
11264 func (c *ProjectsLocationsOperationsGetCall) Header() http.Header {
11265 if c.header_ == nil {
11266 c.header_ = make(http.Header)
11267 }
11268 return c.header_
11269 }
11270
11271 func (c *ProjectsLocationsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
11272 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11273 if c.ifNoneMatch_ != "" {
11274 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11275 }
11276 var body io.Reader = nil
11277 c.urlParams_.Set("alt", alt)
11278 c.urlParams_.Set("prettyPrint", "false")
11279 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11280 urls += "?" + c.urlParams_.Encode()
11281 req, err := http.NewRequest("GET", urls, body)
11282 if err != nil {
11283 return nil, err
11284 }
11285 req.Header = reqHeaders
11286 googleapi.Expand(req.URL, map[string]string{
11287 "name": c.name,
11288 })
11289 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11290 }
11291
11292
11293
11294
11295
11296
11297
11298 func (c *ProjectsLocationsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11299 gensupport.SetOptions(c.urlParams_, opts...)
11300 res, err := c.doRequest("json")
11301 if res != nil && res.StatusCode == http.StatusNotModified {
11302 if res.Body != nil {
11303 res.Body.Close()
11304 }
11305 return nil, gensupport.WrapError(&googleapi.Error{
11306 Code: res.StatusCode,
11307 Header: res.Header,
11308 })
11309 }
11310 if err != nil {
11311 return nil, err
11312 }
11313 defer googleapi.CloseBody(res)
11314 if err := googleapi.CheckResponse(res); err != nil {
11315 return nil, gensupport.WrapError(err)
11316 }
11317 ret := &GoogleLongrunningOperation{
11318 ServerResponse: googleapi.ServerResponse{
11319 Header: res.Header,
11320 HTTPStatusCode: res.StatusCode,
11321 },
11322 }
11323 target := &ret
11324 if err := gensupport.DecodeResponse(target, res); err != nil {
11325 return nil, err
11326 }
11327 return ret, nil
11328 }
11329
11330 type ProjectsLocationsOperationsListCall struct {
11331 s *Service
11332 name string
11333 urlParams_ gensupport.URLParams
11334 ifNoneMatch_ string
11335 ctx_ context.Context
11336 header_ http.Header
11337 }
11338
11339
11340
11341
11342
11343 func (r *ProjectsLocationsOperationsService) List(name string) *ProjectsLocationsOperationsListCall {
11344 c := &ProjectsLocationsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11345 c.name = name
11346 return c
11347 }
11348
11349
11350 func (c *ProjectsLocationsOperationsListCall) Filter(filter string) *ProjectsLocationsOperationsListCall {
11351 c.urlParams_.Set("filter", filter)
11352 return c
11353 }
11354
11355
11356
11357 func (c *ProjectsLocationsOperationsListCall) PageSize(pageSize int64) *ProjectsLocationsOperationsListCall {
11358 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11359 return c
11360 }
11361
11362
11363
11364 func (c *ProjectsLocationsOperationsListCall) PageToken(pageToken string) *ProjectsLocationsOperationsListCall {
11365 c.urlParams_.Set("pageToken", pageToken)
11366 return c
11367 }
11368
11369
11370
11371
11372 func (c *ProjectsLocationsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsOperationsListCall {
11373 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11374 return c
11375 }
11376
11377
11378
11379
11380 func (c *ProjectsLocationsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsOperationsListCall {
11381 c.ifNoneMatch_ = entityTag
11382 return c
11383 }
11384
11385
11386 func (c *ProjectsLocationsOperationsListCall) Context(ctx context.Context) *ProjectsLocationsOperationsListCall {
11387 c.ctx_ = ctx
11388 return c
11389 }
11390
11391
11392
11393 func (c *ProjectsLocationsOperationsListCall) Header() http.Header {
11394 if c.header_ == nil {
11395 c.header_ = make(http.Header)
11396 }
11397 return c.header_
11398 }
11399
11400 func (c *ProjectsLocationsOperationsListCall) doRequest(alt string) (*http.Response, error) {
11401 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11402 if c.ifNoneMatch_ != "" {
11403 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11404 }
11405 var body io.Reader = nil
11406 c.urlParams_.Set("alt", alt)
11407 c.urlParams_.Set("prettyPrint", "false")
11408 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}/operations")
11409 urls += "?" + c.urlParams_.Encode()
11410 req, err := http.NewRequest("GET", urls, body)
11411 if err != nil {
11412 return nil, err
11413 }
11414 req.Header = reqHeaders
11415 googleapi.Expand(req.URL, map[string]string{
11416 "name": c.name,
11417 })
11418 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11419 }
11420
11421
11422
11423
11424
11425
11426
11427 func (c *ProjectsLocationsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
11428 gensupport.SetOptions(c.urlParams_, opts...)
11429 res, err := c.doRequest("json")
11430 if res != nil && res.StatusCode == http.StatusNotModified {
11431 if res.Body != nil {
11432 res.Body.Close()
11433 }
11434 return nil, gensupport.WrapError(&googleapi.Error{
11435 Code: res.StatusCode,
11436 Header: res.Header,
11437 })
11438 }
11439 if err != nil {
11440 return nil, err
11441 }
11442 defer googleapi.CloseBody(res)
11443 if err := googleapi.CheckResponse(res); err != nil {
11444 return nil, gensupport.WrapError(err)
11445 }
11446 ret := &GoogleLongrunningListOperationsResponse{
11447 ServerResponse: googleapi.ServerResponse{
11448 Header: res.Header,
11449 HTTPStatusCode: res.StatusCode,
11450 },
11451 }
11452 target := &ret
11453 if err := gensupport.DecodeResponse(target, res); err != nil {
11454 return nil, err
11455 }
11456 return ret, nil
11457 }
11458
11459
11460
11461
11462 func (c *ProjectsLocationsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
11463 c.ctx_ = ctx
11464 defer c.PageToken(c.urlParams_.Get("pageToken"))
11465 for {
11466 x, err := c.Do()
11467 if err != nil {
11468 return err
11469 }
11470 if err := f(x); err != nil {
11471 return err
11472 }
11473 if x.NextPageToken == "" {
11474 return nil
11475 }
11476 c.PageToken(x.NextPageToken)
11477 }
11478 }
11479
11480 type ProjectsLocationsPhraseMatchersCreateCall struct {
11481 s *Service
11482 parent string
11483 googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher
11484 urlParams_ gensupport.URLParams
11485 ctx_ context.Context
11486 header_ http.Header
11487 }
11488
11489
11490
11491
11492
11493
11494 func (r *ProjectsLocationsPhraseMatchersService) Create(parent string, googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher) *ProjectsLocationsPhraseMatchersCreateCall {
11495 c := &ProjectsLocationsPhraseMatchersCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11496 c.parent = parent
11497 c.googlecloudcontactcenterinsightsv1phrasematcher = googlecloudcontactcenterinsightsv1phrasematcher
11498 return c
11499 }
11500
11501
11502
11503
11504 func (c *ProjectsLocationsPhraseMatchersCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersCreateCall {
11505 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11506 return c
11507 }
11508
11509
11510 func (c *ProjectsLocationsPhraseMatchersCreateCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersCreateCall {
11511 c.ctx_ = ctx
11512 return c
11513 }
11514
11515
11516
11517 func (c *ProjectsLocationsPhraseMatchersCreateCall) Header() http.Header {
11518 if c.header_ == nil {
11519 c.header_ = make(http.Header)
11520 }
11521 return c.header_
11522 }
11523
11524 func (c *ProjectsLocationsPhraseMatchersCreateCall) doRequest(alt string) (*http.Response, error) {
11525 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11526 var body io.Reader = nil
11527 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1phrasematcher)
11528 if err != nil {
11529 return nil, err
11530 }
11531 c.urlParams_.Set("alt", alt)
11532 c.urlParams_.Set("prettyPrint", "false")
11533 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/phraseMatchers")
11534 urls += "?" + c.urlParams_.Encode()
11535 req, err := http.NewRequest("POST", urls, body)
11536 if err != nil {
11537 return nil, err
11538 }
11539 req.Header = reqHeaders
11540 googleapi.Expand(req.URL, map[string]string{
11541 "parent": c.parent,
11542 })
11543 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11544 }
11545
11546
11547
11548
11549
11550
11551
11552 func (c *ProjectsLocationsPhraseMatchersCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) {
11553 gensupport.SetOptions(c.urlParams_, opts...)
11554 res, err := c.doRequest("json")
11555 if res != nil && res.StatusCode == http.StatusNotModified {
11556 if res.Body != nil {
11557 res.Body.Close()
11558 }
11559 return nil, gensupport.WrapError(&googleapi.Error{
11560 Code: res.StatusCode,
11561 Header: res.Header,
11562 })
11563 }
11564 if err != nil {
11565 return nil, err
11566 }
11567 defer googleapi.CloseBody(res)
11568 if err := googleapi.CheckResponse(res); err != nil {
11569 return nil, gensupport.WrapError(err)
11570 }
11571 ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{
11572 ServerResponse: googleapi.ServerResponse{
11573 Header: res.Header,
11574 HTTPStatusCode: res.StatusCode,
11575 },
11576 }
11577 target := &ret
11578 if err := gensupport.DecodeResponse(target, res); err != nil {
11579 return nil, err
11580 }
11581 return ret, nil
11582 }
11583
11584 type ProjectsLocationsPhraseMatchersDeleteCall struct {
11585 s *Service
11586 name string
11587 urlParams_ gensupport.URLParams
11588 ctx_ context.Context
11589 header_ http.Header
11590 }
11591
11592
11593
11594
11595 func (r *ProjectsLocationsPhraseMatchersService) Delete(name string) *ProjectsLocationsPhraseMatchersDeleteCall {
11596 c := &ProjectsLocationsPhraseMatchersDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11597 c.name = name
11598 return c
11599 }
11600
11601
11602
11603
11604 func (c *ProjectsLocationsPhraseMatchersDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersDeleteCall {
11605 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11606 return c
11607 }
11608
11609
11610 func (c *ProjectsLocationsPhraseMatchersDeleteCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersDeleteCall {
11611 c.ctx_ = ctx
11612 return c
11613 }
11614
11615
11616
11617 func (c *ProjectsLocationsPhraseMatchersDeleteCall) Header() http.Header {
11618 if c.header_ == nil {
11619 c.header_ = make(http.Header)
11620 }
11621 return c.header_
11622 }
11623
11624 func (c *ProjectsLocationsPhraseMatchersDeleteCall) doRequest(alt string) (*http.Response, error) {
11625 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11626 var body io.Reader = nil
11627 c.urlParams_.Set("alt", alt)
11628 c.urlParams_.Set("prettyPrint", "false")
11629 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11630 urls += "?" + c.urlParams_.Encode()
11631 req, err := http.NewRequest("DELETE", urls, body)
11632 if err != nil {
11633 return nil, err
11634 }
11635 req.Header = reqHeaders
11636 googleapi.Expand(req.URL, map[string]string{
11637 "name": c.name,
11638 })
11639 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11640 }
11641
11642
11643
11644
11645
11646
11647
11648 func (c *ProjectsLocationsPhraseMatchersDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11649 gensupport.SetOptions(c.urlParams_, opts...)
11650 res, err := c.doRequest("json")
11651 if res != nil && res.StatusCode == http.StatusNotModified {
11652 if res.Body != nil {
11653 res.Body.Close()
11654 }
11655 return nil, gensupport.WrapError(&googleapi.Error{
11656 Code: res.StatusCode,
11657 Header: res.Header,
11658 })
11659 }
11660 if err != nil {
11661 return nil, err
11662 }
11663 defer googleapi.CloseBody(res)
11664 if err := googleapi.CheckResponse(res); err != nil {
11665 return nil, gensupport.WrapError(err)
11666 }
11667 ret := &GoogleProtobufEmpty{
11668 ServerResponse: googleapi.ServerResponse{
11669 Header: res.Header,
11670 HTTPStatusCode: res.StatusCode,
11671 },
11672 }
11673 target := &ret
11674 if err := gensupport.DecodeResponse(target, res); err != nil {
11675 return nil, err
11676 }
11677 return ret, nil
11678 }
11679
11680 type ProjectsLocationsPhraseMatchersGetCall struct {
11681 s *Service
11682 name string
11683 urlParams_ gensupport.URLParams
11684 ifNoneMatch_ string
11685 ctx_ context.Context
11686 header_ http.Header
11687 }
11688
11689
11690
11691
11692 func (r *ProjectsLocationsPhraseMatchersService) Get(name string) *ProjectsLocationsPhraseMatchersGetCall {
11693 c := &ProjectsLocationsPhraseMatchersGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11694 c.name = name
11695 return c
11696 }
11697
11698
11699
11700
11701 func (c *ProjectsLocationsPhraseMatchersGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersGetCall {
11702 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11703 return c
11704 }
11705
11706
11707
11708
11709 func (c *ProjectsLocationsPhraseMatchersGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseMatchersGetCall {
11710 c.ifNoneMatch_ = entityTag
11711 return c
11712 }
11713
11714
11715 func (c *ProjectsLocationsPhraseMatchersGetCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersGetCall {
11716 c.ctx_ = ctx
11717 return c
11718 }
11719
11720
11721
11722 func (c *ProjectsLocationsPhraseMatchersGetCall) Header() http.Header {
11723 if c.header_ == nil {
11724 c.header_ = make(http.Header)
11725 }
11726 return c.header_
11727 }
11728
11729 func (c *ProjectsLocationsPhraseMatchersGetCall) doRequest(alt string) (*http.Response, error) {
11730 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11731 if c.ifNoneMatch_ != "" {
11732 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11733 }
11734 var body io.Reader = nil
11735 c.urlParams_.Set("alt", alt)
11736 c.urlParams_.Set("prettyPrint", "false")
11737 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
11738 urls += "?" + c.urlParams_.Encode()
11739 req, err := http.NewRequest("GET", urls, body)
11740 if err != nil {
11741 return nil, err
11742 }
11743 req.Header = reqHeaders
11744 googleapi.Expand(req.URL, map[string]string{
11745 "name": c.name,
11746 })
11747 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11748 }
11749
11750
11751
11752
11753
11754
11755
11756 func (c *ProjectsLocationsPhraseMatchersGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) {
11757 gensupport.SetOptions(c.urlParams_, opts...)
11758 res, err := c.doRequest("json")
11759 if res != nil && res.StatusCode == http.StatusNotModified {
11760 if res.Body != nil {
11761 res.Body.Close()
11762 }
11763 return nil, gensupport.WrapError(&googleapi.Error{
11764 Code: res.StatusCode,
11765 Header: res.Header,
11766 })
11767 }
11768 if err != nil {
11769 return nil, err
11770 }
11771 defer googleapi.CloseBody(res)
11772 if err := googleapi.CheckResponse(res); err != nil {
11773 return nil, gensupport.WrapError(err)
11774 }
11775 ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{
11776 ServerResponse: googleapi.ServerResponse{
11777 Header: res.Header,
11778 HTTPStatusCode: res.StatusCode,
11779 },
11780 }
11781 target := &ret
11782 if err := gensupport.DecodeResponse(target, res); err != nil {
11783 return nil, err
11784 }
11785 return ret, nil
11786 }
11787
11788 type ProjectsLocationsPhraseMatchersListCall struct {
11789 s *Service
11790 parent string
11791 urlParams_ gensupport.URLParams
11792 ifNoneMatch_ string
11793 ctx_ context.Context
11794 header_ http.Header
11795 }
11796
11797
11798
11799
11800 func (r *ProjectsLocationsPhraseMatchersService) List(parent string) *ProjectsLocationsPhraseMatchersListCall {
11801 c := &ProjectsLocationsPhraseMatchersListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11802 c.parent = parent
11803 return c
11804 }
11805
11806
11807
11808
11809 func (c *ProjectsLocationsPhraseMatchersListCall) Filter(filter string) *ProjectsLocationsPhraseMatchersListCall {
11810 c.urlParams_.Set("filter", filter)
11811 return c
11812 }
11813
11814
11815
11816
11817
11818
11819 func (c *ProjectsLocationsPhraseMatchersListCall) PageSize(pageSize int64) *ProjectsLocationsPhraseMatchersListCall {
11820 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11821 return c
11822 }
11823
11824
11825
11826
11827
11828 func (c *ProjectsLocationsPhraseMatchersListCall) PageToken(pageToken string) *ProjectsLocationsPhraseMatchersListCall {
11829 c.urlParams_.Set("pageToken", pageToken)
11830 return c
11831 }
11832
11833
11834
11835
11836 func (c *ProjectsLocationsPhraseMatchersListCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersListCall {
11837 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11838 return c
11839 }
11840
11841
11842
11843
11844 func (c *ProjectsLocationsPhraseMatchersListCall) IfNoneMatch(entityTag string) *ProjectsLocationsPhraseMatchersListCall {
11845 c.ifNoneMatch_ = entityTag
11846 return c
11847 }
11848
11849
11850 func (c *ProjectsLocationsPhraseMatchersListCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersListCall {
11851 c.ctx_ = ctx
11852 return c
11853 }
11854
11855
11856
11857 func (c *ProjectsLocationsPhraseMatchersListCall) Header() http.Header {
11858 if c.header_ == nil {
11859 c.header_ = make(http.Header)
11860 }
11861 return c.header_
11862 }
11863
11864 func (c *ProjectsLocationsPhraseMatchersListCall) doRequest(alt string) (*http.Response, error) {
11865 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11866 if c.ifNoneMatch_ != "" {
11867 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11868 }
11869 var body io.Reader = nil
11870 c.urlParams_.Set("alt", alt)
11871 c.urlParams_.Set("prettyPrint", "false")
11872 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/phraseMatchers")
11873 urls += "?" + c.urlParams_.Encode()
11874 req, err := http.NewRequest("GET", urls, body)
11875 if err != nil {
11876 return nil, err
11877 }
11878 req.Header = reqHeaders
11879 googleapi.Expand(req.URL, map[string]string{
11880 "parent": c.parent,
11881 })
11882 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11883 }
11884
11885
11886
11887
11888
11889
11890
11891 func (c *ProjectsLocationsPhraseMatchersListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse, error) {
11892 gensupport.SetOptions(c.urlParams_, opts...)
11893 res, err := c.doRequest("json")
11894 if res != nil && res.StatusCode == http.StatusNotModified {
11895 if res.Body != nil {
11896 res.Body.Close()
11897 }
11898 return nil, gensupport.WrapError(&googleapi.Error{
11899 Code: res.StatusCode,
11900 Header: res.Header,
11901 })
11902 }
11903 if err != nil {
11904 return nil, err
11905 }
11906 defer googleapi.CloseBody(res)
11907 if err := googleapi.CheckResponse(res); err != nil {
11908 return nil, gensupport.WrapError(err)
11909 }
11910 ret := &GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse{
11911 ServerResponse: googleapi.ServerResponse{
11912 Header: res.Header,
11913 HTTPStatusCode: res.StatusCode,
11914 },
11915 }
11916 target := &ret
11917 if err := gensupport.DecodeResponse(target, res); err != nil {
11918 return nil, err
11919 }
11920 return ret, nil
11921 }
11922
11923
11924
11925
11926 func (c *ProjectsLocationsPhraseMatchersListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListPhraseMatchersResponse) error) error {
11927 c.ctx_ = ctx
11928 defer c.PageToken(c.urlParams_.Get("pageToken"))
11929 for {
11930 x, err := c.Do()
11931 if err != nil {
11932 return err
11933 }
11934 if err := f(x); err != nil {
11935 return err
11936 }
11937 if x.NextPageToken == "" {
11938 return nil
11939 }
11940 c.PageToken(x.NextPageToken)
11941 }
11942 }
11943
11944 type ProjectsLocationsPhraseMatchersPatchCall struct {
11945 s *Service
11946 name string
11947 googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher
11948 urlParams_ gensupport.URLParams
11949 ctx_ context.Context
11950 header_ http.Header
11951 }
11952
11953
11954
11955
11956
11957 func (r *ProjectsLocationsPhraseMatchersService) Patch(name string, googlecloudcontactcenterinsightsv1phrasematcher *GoogleCloudContactcenterinsightsV1PhraseMatcher) *ProjectsLocationsPhraseMatchersPatchCall {
11958 c := &ProjectsLocationsPhraseMatchersPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11959 c.name = name
11960 c.googlecloudcontactcenterinsightsv1phrasematcher = googlecloudcontactcenterinsightsv1phrasematcher
11961 return c
11962 }
11963
11964
11965
11966 func (c *ProjectsLocationsPhraseMatchersPatchCall) UpdateMask(updateMask string) *ProjectsLocationsPhraseMatchersPatchCall {
11967 c.urlParams_.Set("updateMask", updateMask)
11968 return c
11969 }
11970
11971
11972
11973
11974 func (c *ProjectsLocationsPhraseMatchersPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsPhraseMatchersPatchCall {
11975 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11976 return c
11977 }
11978
11979
11980 func (c *ProjectsLocationsPhraseMatchersPatchCall) Context(ctx context.Context) *ProjectsLocationsPhraseMatchersPatchCall {
11981 c.ctx_ = ctx
11982 return c
11983 }
11984
11985
11986
11987 func (c *ProjectsLocationsPhraseMatchersPatchCall) Header() http.Header {
11988 if c.header_ == nil {
11989 c.header_ = make(http.Header)
11990 }
11991 return c.header_
11992 }
11993
11994 func (c *ProjectsLocationsPhraseMatchersPatchCall) doRequest(alt string) (*http.Response, error) {
11995 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
11996 var body io.Reader = nil
11997 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1phrasematcher)
11998 if err != nil {
11999 return nil, err
12000 }
12001 c.urlParams_.Set("alt", alt)
12002 c.urlParams_.Set("prettyPrint", "false")
12003 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12004 urls += "?" + c.urlParams_.Encode()
12005 req, err := http.NewRequest("PATCH", urls, body)
12006 if err != nil {
12007 return nil, err
12008 }
12009 req.Header = reqHeaders
12010 googleapi.Expand(req.URL, map[string]string{
12011 "name": c.name,
12012 })
12013 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12014 }
12015
12016
12017
12018
12019
12020
12021
12022 func (c *ProjectsLocationsPhraseMatchersPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1PhraseMatcher, error) {
12023 gensupport.SetOptions(c.urlParams_, opts...)
12024 res, err := c.doRequest("json")
12025 if res != nil && res.StatusCode == http.StatusNotModified {
12026 if res.Body != nil {
12027 res.Body.Close()
12028 }
12029 return nil, gensupport.WrapError(&googleapi.Error{
12030 Code: res.StatusCode,
12031 Header: res.Header,
12032 })
12033 }
12034 if err != nil {
12035 return nil, err
12036 }
12037 defer googleapi.CloseBody(res)
12038 if err := googleapi.CheckResponse(res); err != nil {
12039 return nil, gensupport.WrapError(err)
12040 }
12041 ret := &GoogleCloudContactcenterinsightsV1PhraseMatcher{
12042 ServerResponse: googleapi.ServerResponse{
12043 Header: res.Header,
12044 HTTPStatusCode: res.StatusCode,
12045 },
12046 }
12047 target := &ret
12048 if err := gensupport.DecodeResponse(target, res); err != nil {
12049 return nil, err
12050 }
12051 return ret, nil
12052 }
12053
12054 type ProjectsLocationsViewsCreateCall struct {
12055 s *Service
12056 parent string
12057 googlecloudcontactcenterinsightsv1view *GoogleCloudContactcenterinsightsV1View
12058 urlParams_ gensupport.URLParams
12059 ctx_ context.Context
12060 header_ http.Header
12061 }
12062
12063
12064
12065
12066
12067 func (r *ProjectsLocationsViewsService) Create(parent string, googlecloudcontactcenterinsightsv1view *GoogleCloudContactcenterinsightsV1View) *ProjectsLocationsViewsCreateCall {
12068 c := &ProjectsLocationsViewsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12069 c.parent = parent
12070 c.googlecloudcontactcenterinsightsv1view = googlecloudcontactcenterinsightsv1view
12071 return c
12072 }
12073
12074
12075
12076
12077 func (c *ProjectsLocationsViewsCreateCall) Fields(s ...googleapi.Field) *ProjectsLocationsViewsCreateCall {
12078 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12079 return c
12080 }
12081
12082
12083 func (c *ProjectsLocationsViewsCreateCall) Context(ctx context.Context) *ProjectsLocationsViewsCreateCall {
12084 c.ctx_ = ctx
12085 return c
12086 }
12087
12088
12089
12090 func (c *ProjectsLocationsViewsCreateCall) Header() http.Header {
12091 if c.header_ == nil {
12092 c.header_ = make(http.Header)
12093 }
12094 return c.header_
12095 }
12096
12097 func (c *ProjectsLocationsViewsCreateCall) doRequest(alt string) (*http.Response, error) {
12098 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12099 var body io.Reader = nil
12100 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1view)
12101 if err != nil {
12102 return nil, err
12103 }
12104 c.urlParams_.Set("alt", alt)
12105 c.urlParams_.Set("prettyPrint", "false")
12106 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/views")
12107 urls += "?" + c.urlParams_.Encode()
12108 req, err := http.NewRequest("POST", urls, body)
12109 if err != nil {
12110 return nil, err
12111 }
12112 req.Header = reqHeaders
12113 googleapi.Expand(req.URL, map[string]string{
12114 "parent": c.parent,
12115 })
12116 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12117 }
12118
12119
12120
12121
12122
12123
12124
12125 func (c *ProjectsLocationsViewsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1View, error) {
12126 gensupport.SetOptions(c.urlParams_, opts...)
12127 res, err := c.doRequest("json")
12128 if res != nil && res.StatusCode == http.StatusNotModified {
12129 if res.Body != nil {
12130 res.Body.Close()
12131 }
12132 return nil, gensupport.WrapError(&googleapi.Error{
12133 Code: res.StatusCode,
12134 Header: res.Header,
12135 })
12136 }
12137 if err != nil {
12138 return nil, err
12139 }
12140 defer googleapi.CloseBody(res)
12141 if err := googleapi.CheckResponse(res); err != nil {
12142 return nil, gensupport.WrapError(err)
12143 }
12144 ret := &GoogleCloudContactcenterinsightsV1View{
12145 ServerResponse: googleapi.ServerResponse{
12146 Header: res.Header,
12147 HTTPStatusCode: res.StatusCode,
12148 },
12149 }
12150 target := &ret
12151 if err := gensupport.DecodeResponse(target, res); err != nil {
12152 return nil, err
12153 }
12154 return ret, nil
12155 }
12156
12157 type ProjectsLocationsViewsDeleteCall struct {
12158 s *Service
12159 name string
12160 urlParams_ gensupport.URLParams
12161 ctx_ context.Context
12162 header_ http.Header
12163 }
12164
12165
12166
12167
12168 func (r *ProjectsLocationsViewsService) Delete(name string) *ProjectsLocationsViewsDeleteCall {
12169 c := &ProjectsLocationsViewsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12170 c.name = name
12171 return c
12172 }
12173
12174
12175
12176
12177 func (c *ProjectsLocationsViewsDeleteCall) Fields(s ...googleapi.Field) *ProjectsLocationsViewsDeleteCall {
12178 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12179 return c
12180 }
12181
12182
12183 func (c *ProjectsLocationsViewsDeleteCall) Context(ctx context.Context) *ProjectsLocationsViewsDeleteCall {
12184 c.ctx_ = ctx
12185 return c
12186 }
12187
12188
12189
12190 func (c *ProjectsLocationsViewsDeleteCall) Header() http.Header {
12191 if c.header_ == nil {
12192 c.header_ = make(http.Header)
12193 }
12194 return c.header_
12195 }
12196
12197 func (c *ProjectsLocationsViewsDeleteCall) doRequest(alt string) (*http.Response, error) {
12198 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12199 var body io.Reader = nil
12200 c.urlParams_.Set("alt", alt)
12201 c.urlParams_.Set("prettyPrint", "false")
12202 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12203 urls += "?" + c.urlParams_.Encode()
12204 req, err := http.NewRequest("DELETE", urls, body)
12205 if err != nil {
12206 return nil, err
12207 }
12208 req.Header = reqHeaders
12209 googleapi.Expand(req.URL, map[string]string{
12210 "name": c.name,
12211 })
12212 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12213 }
12214
12215
12216
12217
12218
12219
12220
12221 func (c *ProjectsLocationsViewsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
12222 gensupport.SetOptions(c.urlParams_, opts...)
12223 res, err := c.doRequest("json")
12224 if res != nil && res.StatusCode == http.StatusNotModified {
12225 if res.Body != nil {
12226 res.Body.Close()
12227 }
12228 return nil, gensupport.WrapError(&googleapi.Error{
12229 Code: res.StatusCode,
12230 Header: res.Header,
12231 })
12232 }
12233 if err != nil {
12234 return nil, err
12235 }
12236 defer googleapi.CloseBody(res)
12237 if err := googleapi.CheckResponse(res); err != nil {
12238 return nil, gensupport.WrapError(err)
12239 }
12240 ret := &GoogleProtobufEmpty{
12241 ServerResponse: googleapi.ServerResponse{
12242 Header: res.Header,
12243 HTTPStatusCode: res.StatusCode,
12244 },
12245 }
12246 target := &ret
12247 if err := gensupport.DecodeResponse(target, res); err != nil {
12248 return nil, err
12249 }
12250 return ret, nil
12251 }
12252
12253 type ProjectsLocationsViewsGetCall struct {
12254 s *Service
12255 name string
12256 urlParams_ gensupport.URLParams
12257 ifNoneMatch_ string
12258 ctx_ context.Context
12259 header_ http.Header
12260 }
12261
12262
12263
12264
12265 func (r *ProjectsLocationsViewsService) Get(name string) *ProjectsLocationsViewsGetCall {
12266 c := &ProjectsLocationsViewsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12267 c.name = name
12268 return c
12269 }
12270
12271
12272
12273
12274 func (c *ProjectsLocationsViewsGetCall) Fields(s ...googleapi.Field) *ProjectsLocationsViewsGetCall {
12275 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12276 return c
12277 }
12278
12279
12280
12281
12282 func (c *ProjectsLocationsViewsGetCall) IfNoneMatch(entityTag string) *ProjectsLocationsViewsGetCall {
12283 c.ifNoneMatch_ = entityTag
12284 return c
12285 }
12286
12287
12288 func (c *ProjectsLocationsViewsGetCall) Context(ctx context.Context) *ProjectsLocationsViewsGetCall {
12289 c.ctx_ = ctx
12290 return c
12291 }
12292
12293
12294
12295 func (c *ProjectsLocationsViewsGetCall) Header() http.Header {
12296 if c.header_ == nil {
12297 c.header_ = make(http.Header)
12298 }
12299 return c.header_
12300 }
12301
12302 func (c *ProjectsLocationsViewsGetCall) doRequest(alt string) (*http.Response, error) {
12303 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12304 if c.ifNoneMatch_ != "" {
12305 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12306 }
12307 var body io.Reader = nil
12308 c.urlParams_.Set("alt", alt)
12309 c.urlParams_.Set("prettyPrint", "false")
12310 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12311 urls += "?" + c.urlParams_.Encode()
12312 req, err := http.NewRequest("GET", urls, body)
12313 if err != nil {
12314 return nil, err
12315 }
12316 req.Header = reqHeaders
12317 googleapi.Expand(req.URL, map[string]string{
12318 "name": c.name,
12319 })
12320 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12321 }
12322
12323
12324
12325
12326
12327
12328
12329 func (c *ProjectsLocationsViewsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1View, error) {
12330 gensupport.SetOptions(c.urlParams_, opts...)
12331 res, err := c.doRequest("json")
12332 if res != nil && res.StatusCode == http.StatusNotModified {
12333 if res.Body != nil {
12334 res.Body.Close()
12335 }
12336 return nil, gensupport.WrapError(&googleapi.Error{
12337 Code: res.StatusCode,
12338 Header: res.Header,
12339 })
12340 }
12341 if err != nil {
12342 return nil, err
12343 }
12344 defer googleapi.CloseBody(res)
12345 if err := googleapi.CheckResponse(res); err != nil {
12346 return nil, gensupport.WrapError(err)
12347 }
12348 ret := &GoogleCloudContactcenterinsightsV1View{
12349 ServerResponse: googleapi.ServerResponse{
12350 Header: res.Header,
12351 HTTPStatusCode: res.StatusCode,
12352 },
12353 }
12354 target := &ret
12355 if err := gensupport.DecodeResponse(target, res); err != nil {
12356 return nil, err
12357 }
12358 return ret, nil
12359 }
12360
12361 type ProjectsLocationsViewsListCall struct {
12362 s *Service
12363 parent string
12364 urlParams_ gensupport.URLParams
12365 ifNoneMatch_ string
12366 ctx_ context.Context
12367 header_ http.Header
12368 }
12369
12370
12371
12372
12373 func (r *ProjectsLocationsViewsService) List(parent string) *ProjectsLocationsViewsListCall {
12374 c := &ProjectsLocationsViewsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12375 c.parent = parent
12376 return c
12377 }
12378
12379
12380
12381
12382
12383 func (c *ProjectsLocationsViewsListCall) PageSize(pageSize int64) *ProjectsLocationsViewsListCall {
12384 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
12385 return c
12386 }
12387
12388
12389
12390
12391 func (c *ProjectsLocationsViewsListCall) PageToken(pageToken string) *ProjectsLocationsViewsListCall {
12392 c.urlParams_.Set("pageToken", pageToken)
12393 return c
12394 }
12395
12396
12397
12398
12399 func (c *ProjectsLocationsViewsListCall) Fields(s ...googleapi.Field) *ProjectsLocationsViewsListCall {
12400 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12401 return c
12402 }
12403
12404
12405
12406
12407 func (c *ProjectsLocationsViewsListCall) IfNoneMatch(entityTag string) *ProjectsLocationsViewsListCall {
12408 c.ifNoneMatch_ = entityTag
12409 return c
12410 }
12411
12412
12413 func (c *ProjectsLocationsViewsListCall) Context(ctx context.Context) *ProjectsLocationsViewsListCall {
12414 c.ctx_ = ctx
12415 return c
12416 }
12417
12418
12419
12420 func (c *ProjectsLocationsViewsListCall) Header() http.Header {
12421 if c.header_ == nil {
12422 c.header_ = make(http.Header)
12423 }
12424 return c.header_
12425 }
12426
12427 func (c *ProjectsLocationsViewsListCall) doRequest(alt string) (*http.Response, error) {
12428 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
12429 if c.ifNoneMatch_ != "" {
12430 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
12431 }
12432 var body io.Reader = nil
12433 c.urlParams_.Set("alt", alt)
12434 c.urlParams_.Set("prettyPrint", "false")
12435 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+parent}/views")
12436 urls += "?" + c.urlParams_.Encode()
12437 req, err := http.NewRequest("GET", urls, body)
12438 if err != nil {
12439 return nil, err
12440 }
12441 req.Header = reqHeaders
12442 googleapi.Expand(req.URL, map[string]string{
12443 "parent": c.parent,
12444 })
12445 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12446 }
12447
12448
12449
12450
12451
12452
12453
12454 func (c *ProjectsLocationsViewsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1ListViewsResponse, error) {
12455 gensupport.SetOptions(c.urlParams_, opts...)
12456 res, err := c.doRequest("json")
12457 if res != nil && res.StatusCode == http.StatusNotModified {
12458 if res.Body != nil {
12459 res.Body.Close()
12460 }
12461 return nil, gensupport.WrapError(&googleapi.Error{
12462 Code: res.StatusCode,
12463 Header: res.Header,
12464 })
12465 }
12466 if err != nil {
12467 return nil, err
12468 }
12469 defer googleapi.CloseBody(res)
12470 if err := googleapi.CheckResponse(res); err != nil {
12471 return nil, gensupport.WrapError(err)
12472 }
12473 ret := &GoogleCloudContactcenterinsightsV1ListViewsResponse{
12474 ServerResponse: googleapi.ServerResponse{
12475 Header: res.Header,
12476 HTTPStatusCode: res.StatusCode,
12477 },
12478 }
12479 target := &ret
12480 if err := gensupport.DecodeResponse(target, res); err != nil {
12481 return nil, err
12482 }
12483 return ret, nil
12484 }
12485
12486
12487
12488
12489 func (c *ProjectsLocationsViewsListCall) Pages(ctx context.Context, f func(*GoogleCloudContactcenterinsightsV1ListViewsResponse) error) error {
12490 c.ctx_ = ctx
12491 defer c.PageToken(c.urlParams_.Get("pageToken"))
12492 for {
12493 x, err := c.Do()
12494 if err != nil {
12495 return err
12496 }
12497 if err := f(x); err != nil {
12498 return err
12499 }
12500 if x.NextPageToken == "" {
12501 return nil
12502 }
12503 c.PageToken(x.NextPageToken)
12504 }
12505 }
12506
12507 type ProjectsLocationsViewsPatchCall struct {
12508 s *Service
12509 name string
12510 googlecloudcontactcenterinsightsv1view *GoogleCloudContactcenterinsightsV1View
12511 urlParams_ gensupport.URLParams
12512 ctx_ context.Context
12513 header_ http.Header
12514 }
12515
12516
12517
12518
12519
12520 func (r *ProjectsLocationsViewsService) Patch(name string, googlecloudcontactcenterinsightsv1view *GoogleCloudContactcenterinsightsV1View) *ProjectsLocationsViewsPatchCall {
12521 c := &ProjectsLocationsViewsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
12522 c.name = name
12523 c.googlecloudcontactcenterinsightsv1view = googlecloudcontactcenterinsightsv1view
12524 return c
12525 }
12526
12527
12528
12529 func (c *ProjectsLocationsViewsPatchCall) UpdateMask(updateMask string) *ProjectsLocationsViewsPatchCall {
12530 c.urlParams_.Set("updateMask", updateMask)
12531 return c
12532 }
12533
12534
12535
12536
12537 func (c *ProjectsLocationsViewsPatchCall) Fields(s ...googleapi.Field) *ProjectsLocationsViewsPatchCall {
12538 c.urlParams_.Set("fields", googleapi.CombineFields(s))
12539 return c
12540 }
12541
12542
12543 func (c *ProjectsLocationsViewsPatchCall) Context(ctx context.Context) *ProjectsLocationsViewsPatchCall {
12544 c.ctx_ = ctx
12545 return c
12546 }
12547
12548
12549
12550 func (c *ProjectsLocationsViewsPatchCall) Header() http.Header {
12551 if c.header_ == nil {
12552 c.header_ = make(http.Header)
12553 }
12554 return c.header_
12555 }
12556
12557 func (c *ProjectsLocationsViewsPatchCall) doRequest(alt string) (*http.Response, error) {
12558 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
12559 var body io.Reader = nil
12560 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googlecloudcontactcenterinsightsv1view)
12561 if err != nil {
12562 return nil, err
12563 }
12564 c.urlParams_.Set("alt", alt)
12565 c.urlParams_.Set("prettyPrint", "false")
12566 urls := googleapi.ResolveRelative(c.s.BasePath, "v1/{+name}")
12567 urls += "?" + c.urlParams_.Encode()
12568 req, err := http.NewRequest("PATCH", urls, body)
12569 if err != nil {
12570 return nil, err
12571 }
12572 req.Header = reqHeaders
12573 googleapi.Expand(req.URL, map[string]string{
12574 "name": c.name,
12575 })
12576 return gensupport.SendRequest(c.ctx_, c.s.client, req)
12577 }
12578
12579
12580
12581
12582
12583
12584
12585 func (c *ProjectsLocationsViewsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudContactcenterinsightsV1View, error) {
12586 gensupport.SetOptions(c.urlParams_, opts...)
12587 res, err := c.doRequest("json")
12588 if res != nil && res.StatusCode == http.StatusNotModified {
12589 if res.Body != nil {
12590 res.Body.Close()
12591 }
12592 return nil, gensupport.WrapError(&googleapi.Error{
12593 Code: res.StatusCode,
12594 Header: res.Header,
12595 })
12596 }
12597 if err != nil {
12598 return nil, err
12599 }
12600 defer googleapi.CloseBody(res)
12601 if err := googleapi.CheckResponse(res); err != nil {
12602 return nil, gensupport.WrapError(err)
12603 }
12604 ret := &GoogleCloudContactcenterinsightsV1View{
12605 ServerResponse: googleapi.ServerResponse{
12606 Header: res.Header,
12607 HTTPStatusCode: res.StatusCode,
12608 },
12609 }
12610 target := &ret
12611 if err := gensupport.DecodeResponse(target, res); err != nil {
12612 return nil, err
12613 }
12614 return ret, nil
12615 }
12616
View as plain text