-
Notifications
You must be signed in to change notification settings - Fork 184
/
resources.pb.go
6231 lines (5586 loc) · 274 KB
/
resources.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.26.0
// protoc v3.12.2
// source: google/cloud/contactcenterinsights/v1/resources.proto
package contactcenterinsights
import (
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// Possible media for the conversation.
type Conversation_Medium int32
const (
// Default value, if unspecified will default to PHONE_CALL.
Conversation_MEDIUM_UNSPECIFIED Conversation_Medium = 0
// The format for conversations that took place over the phone.
Conversation_PHONE_CALL Conversation_Medium = 1
// The format for conversations that took place over chat.
Conversation_CHAT Conversation_Medium = 2
)
// Enum value maps for Conversation_Medium.
var (
Conversation_Medium_name = map[int32]string{
0: "MEDIUM_UNSPECIFIED",
1: "PHONE_CALL",
2: "CHAT",
}
Conversation_Medium_value = map[string]int32{
"MEDIUM_UNSPECIFIED": 0,
"PHONE_CALL": 1,
"CHAT": 2,
}
)
func (x Conversation_Medium) Enum() *Conversation_Medium {
p := new(Conversation_Medium)
*p = x
return p
}
func (x Conversation_Medium) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Conversation_Medium) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[0].Descriptor()
}
func (Conversation_Medium) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[0]
}
func (x Conversation_Medium) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Conversation_Medium.Descriptor instead.
func (Conversation_Medium) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{0, 0}
}
// The type of the entity. For most entity types, the associated metadata is a
// Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`). The table
// below lists the associated fields for entities that have different
// metadata.
type Entity_Type int32
const (
// Unspecified.
Entity_TYPE_UNSPECIFIED Entity_Type = 0
// Person.
Entity_PERSON Entity_Type = 1
// Location.
Entity_LOCATION Entity_Type = 2
// Organization.
Entity_ORGANIZATION Entity_Type = 3
// Event.
Entity_EVENT Entity_Type = 4
// Artwork.
Entity_WORK_OF_ART Entity_Type = 5
// Consumer product.
Entity_CONSUMER_GOOD Entity_Type = 6
// Other types of entities.
Entity_OTHER Entity_Type = 7
// Phone number.
//
// The metadata lists the phone number (formatted according to local
// convention), plus whichever additional elements appear in the text:
//
// * `number` - The actual number, broken down into sections according to
// local convention.
// * `national_prefix` - Country code, if detected.
// * `area_code` - Region or area code, if detected.
// * `extension` - Phone extension (to be dialed after connection), if
// detected.
Entity_PHONE_NUMBER Entity_Type = 9
// Address.
//
// The metadata identifies the street number and locality plus whichever
// additional elements appear in the text:
//
// * `street_number` - Street number.
// * `locality` - City or town.
// * `street_name` - Street/route name, if detected.
// * `postal_code` - Postal code, if detected.
// * `country` - Country, if detected.
// * `broad_region` - Administrative area, such as the state, if detected.
// * `narrow_region` - Smaller administrative area, such as county, if
// detected.
// * `sublocality` - Used in Asian addresses to demark a district within a
// city, if detected.
Entity_ADDRESS Entity_Type = 10
// Date.
//
// The metadata identifies the components of the date:
//
// * `year` - Four digit year, if detected.
// * `month` - Two digit month number, if detected.
// * `day` - Two digit day number, if detected.
Entity_DATE Entity_Type = 11
// Number.
//
// The metadata is the number itself.
Entity_NUMBER Entity_Type = 12
// Price.
//
// The metadata identifies the `value` and `currency`.
Entity_PRICE Entity_Type = 13
)
// Enum value maps for Entity_Type.
var (
Entity_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "PERSON",
2: "LOCATION",
3: "ORGANIZATION",
4: "EVENT",
5: "WORK_OF_ART",
6: "CONSUMER_GOOD",
7: "OTHER",
9: "PHONE_NUMBER",
10: "ADDRESS",
11: "DATE",
12: "NUMBER",
13: "PRICE",
}
Entity_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"PERSON": 1,
"LOCATION": 2,
"ORGANIZATION": 3,
"EVENT": 4,
"WORK_OF_ART": 5,
"CONSUMER_GOOD": 6,
"OTHER": 7,
"PHONE_NUMBER": 9,
"ADDRESS": 10,
"DATE": 11,
"NUMBER": 12,
"PRICE": 13,
}
)
func (x Entity_Type) Enum() *Entity_Type {
p := new(Entity_Type)
*p = x
return p
}
func (x Entity_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Entity_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[1].Descriptor()
}
func (Entity_Type) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[1]
}
func (x Entity_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Entity_Type.Descriptor instead.
func (Entity_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{11, 0}
}
// The supported types of mentions.
type EntityMentionData_MentionType int32
const (
// Unspecified.
EntityMentionData_MENTION_TYPE_UNSPECIFIED EntityMentionData_MentionType = 0
// Proper noun.
EntityMentionData_PROPER EntityMentionData_MentionType = 1
// Common noun (or noun compound).
EntityMentionData_COMMON EntityMentionData_MentionType = 2
)
// Enum value maps for EntityMentionData_MentionType.
var (
EntityMentionData_MentionType_name = map[int32]string{
0: "MENTION_TYPE_UNSPECIFIED",
1: "PROPER",
2: "COMMON",
}
EntityMentionData_MentionType_value = map[string]int32{
"MENTION_TYPE_UNSPECIFIED": 0,
"PROPER": 1,
"COMMON": 2,
}
)
func (x EntityMentionData_MentionType) Enum() *EntityMentionData_MentionType {
p := new(EntityMentionData_MentionType)
*p = x
return p
}
func (x EntityMentionData_MentionType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (EntityMentionData_MentionType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[2].Descriptor()
}
func (EntityMentionData_MentionType) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[2]
}
func (x EntityMentionData_MentionType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use EntityMentionData_MentionType.Descriptor instead.
func (EntityMentionData_MentionType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{18, 0}
}
// State of the model.
type IssueModel_State int32
const (
// Unspecified.
IssueModel_STATE_UNSPECIFIED IssueModel_State = 0
// Model is not deployed but is ready to deploy.
IssueModel_UNDEPLOYED IssueModel_State = 1
// Model is being deployed.
IssueModel_DEPLOYING IssueModel_State = 2
// Model is deployed and is ready to be used. A model can only be used in
// analysis if it's in this state.
IssueModel_DEPLOYED IssueModel_State = 3
// Model is being undeployed.
IssueModel_UNDEPLOYING IssueModel_State = 4
// Model is being deleted.
IssueModel_DELETING IssueModel_State = 5
)
// Enum value maps for IssueModel_State.
var (
IssueModel_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "UNDEPLOYED",
2: "DEPLOYING",
3: "DEPLOYED",
4: "UNDEPLOYING",
5: "DELETING",
}
IssueModel_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"UNDEPLOYED": 1,
"DEPLOYING": 2,
"DEPLOYED": 3,
"UNDEPLOYING": 4,
"DELETING": 5,
}
)
func (x IssueModel_State) Enum() *IssueModel_State {
p := new(IssueModel_State)
*p = x
return p
}
func (x IssueModel_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IssueModel_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[3].Descriptor()
}
func (IssueModel_State) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[3]
}
func (x IssueModel_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IssueModel_State.Descriptor instead.
func (IssueModel_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{21, 0}
}
// Specifies how to combine each phrase match rule group to determine whether
// there is a match.
type PhraseMatcher_PhraseMatcherType int32
const (
// Unspecified.
PhraseMatcher_PHRASE_MATCHER_TYPE_UNSPECIFIED PhraseMatcher_PhraseMatcherType = 0
// Must meet all phrase match rule groups or there is no match.
PhraseMatcher_ALL_OF PhraseMatcher_PhraseMatcherType = 1
// If any of the phrase match rule groups are met, there is a match.
PhraseMatcher_ANY_OF PhraseMatcher_PhraseMatcherType = 2
)
// Enum value maps for PhraseMatcher_PhraseMatcherType.
var (
PhraseMatcher_PhraseMatcherType_name = map[int32]string{
0: "PHRASE_MATCHER_TYPE_UNSPECIFIED",
1: "ALL_OF",
2: "ANY_OF",
}
PhraseMatcher_PhraseMatcherType_value = map[string]int32{
"PHRASE_MATCHER_TYPE_UNSPECIFIED": 0,
"ALL_OF": 1,
"ANY_OF": 2,
}
)
func (x PhraseMatcher_PhraseMatcherType) Enum() *PhraseMatcher_PhraseMatcherType {
p := new(PhraseMatcher_PhraseMatcherType)
*p = x
return p
}
func (x PhraseMatcher_PhraseMatcherType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PhraseMatcher_PhraseMatcherType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[4].Descriptor()
}
func (PhraseMatcher_PhraseMatcherType) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[4]
}
func (x PhraseMatcher_PhraseMatcherType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PhraseMatcher_PhraseMatcherType.Descriptor instead.
func (PhraseMatcher_PhraseMatcherType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{24, 0}
}
// Specifies how to combine each phrase match rule for whether there is a
// match.
type PhraseMatchRuleGroup_PhraseMatchRuleGroupType int32
const (
// Unspecified.
PhraseMatchRuleGroup_PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED PhraseMatchRuleGroup_PhraseMatchRuleGroupType = 0
// Must meet all phrase match rules or there is no match.
PhraseMatchRuleGroup_ALL_OF PhraseMatchRuleGroup_PhraseMatchRuleGroupType = 1
// If any of the phrase match rules are met, there is a match.
PhraseMatchRuleGroup_ANY_OF PhraseMatchRuleGroup_PhraseMatchRuleGroupType = 2
)
// Enum value maps for PhraseMatchRuleGroup_PhraseMatchRuleGroupType.
var (
PhraseMatchRuleGroup_PhraseMatchRuleGroupType_name = map[int32]string{
0: "PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED",
1: "ALL_OF",
2: "ANY_OF",
}
PhraseMatchRuleGroup_PhraseMatchRuleGroupType_value = map[string]int32{
"PHRASE_MATCH_RULE_GROUP_TYPE_UNSPECIFIED": 0,
"ALL_OF": 1,
"ANY_OF": 2,
}
)
func (x PhraseMatchRuleGroup_PhraseMatchRuleGroupType) Enum() *PhraseMatchRuleGroup_PhraseMatchRuleGroupType {
p := new(PhraseMatchRuleGroup_PhraseMatchRuleGroupType)
*p = x
return p
}
func (x PhraseMatchRuleGroup_PhraseMatchRuleGroupType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PhraseMatchRuleGroup_PhraseMatchRuleGroupType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[5].Descriptor()
}
func (PhraseMatchRuleGroup_PhraseMatchRuleGroupType) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[5]
}
func (x PhraseMatchRuleGroup_PhraseMatchRuleGroupType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PhraseMatchRuleGroup_PhraseMatchRuleGroupType.Descriptor instead.
func (PhraseMatchRuleGroup_PhraseMatchRuleGroupType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{25, 0}
}
// The correctness level of an answer.
type AnswerFeedback_CorrectnessLevel int32
const (
// Correctness level unspecified.
AnswerFeedback_CORRECTNESS_LEVEL_UNSPECIFIED AnswerFeedback_CorrectnessLevel = 0
// Answer is totally wrong.
AnswerFeedback_NOT_CORRECT AnswerFeedback_CorrectnessLevel = 1
// Answer is partially correct.
AnswerFeedback_PARTIALLY_CORRECT AnswerFeedback_CorrectnessLevel = 2
// Answer is fully correct.
AnswerFeedback_FULLY_CORRECT AnswerFeedback_CorrectnessLevel = 3
)
// Enum value maps for AnswerFeedback_CorrectnessLevel.
var (
AnswerFeedback_CorrectnessLevel_name = map[int32]string{
0: "CORRECTNESS_LEVEL_UNSPECIFIED",
1: "NOT_CORRECT",
2: "PARTIALLY_CORRECT",
3: "FULLY_CORRECT",
}
AnswerFeedback_CorrectnessLevel_value = map[string]int32{
"CORRECTNESS_LEVEL_UNSPECIFIED": 0,
"NOT_CORRECT": 1,
"PARTIALLY_CORRECT": 2,
"FULLY_CORRECT": 3,
}
)
func (x AnswerFeedback_CorrectnessLevel) Enum() *AnswerFeedback_CorrectnessLevel {
p := new(AnswerFeedback_CorrectnessLevel)
*p = x
return p
}
func (x AnswerFeedback_CorrectnessLevel) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AnswerFeedback_CorrectnessLevel) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[6].Descriptor()
}
func (AnswerFeedback_CorrectnessLevel) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[6]
}
func (x AnswerFeedback_CorrectnessLevel) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AnswerFeedback_CorrectnessLevel.Descriptor instead.
func (AnswerFeedback_CorrectnessLevel) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{31, 0}
}
// The role of the participant.
type ConversationParticipant_Role int32
const (
// Participant's role is not set.
ConversationParticipant_ROLE_UNSPECIFIED ConversationParticipant_Role = 0
// Participant is a human agent.
ConversationParticipant_HUMAN_AGENT ConversationParticipant_Role = 1
// Participant is an automated agent.
ConversationParticipant_AUTOMATED_AGENT ConversationParticipant_Role = 2
// Participant is an end user who conversed with the contact center.
ConversationParticipant_END_USER ConversationParticipant_Role = 3
// Participant is either a human or automated agent.
ConversationParticipant_ANY_AGENT ConversationParticipant_Role = 4
)
// Enum value maps for ConversationParticipant_Role.
var (
ConversationParticipant_Role_name = map[int32]string{
0: "ROLE_UNSPECIFIED",
1: "HUMAN_AGENT",
2: "AUTOMATED_AGENT",
3: "END_USER",
4: "ANY_AGENT",
}
ConversationParticipant_Role_value = map[string]int32{
"ROLE_UNSPECIFIED": 0,
"HUMAN_AGENT": 1,
"AUTOMATED_AGENT": 2,
"END_USER": 3,
"ANY_AGENT": 4,
}
)
func (x ConversationParticipant_Role) Enum() *ConversationParticipant_Role {
p := new(ConversationParticipant_Role)
*p = x
return p
}
func (x ConversationParticipant_Role) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConversationParticipant_Role) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[7].Descriptor()
}
func (ConversationParticipant_Role) Type() protoreflect.EnumType {
return &file_google_cloud_contactcenterinsights_v1_resources_proto_enumTypes[7]
}
func (x ConversationParticipant_Role) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConversationParticipant_Role.Descriptor instead.
func (ConversationParticipant_Role) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{37, 0}
}
// The conversation resource.
type Conversation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Metadata that applies to the conversation.
//
// Types that are assignable to Metadata:
// *Conversation_CallMetadata_
Metadata isConversation_Metadata `protobuf_oneof:"metadata"`
// A time to live expiration setting, can be either a specified timestamp or a
// duration from the time that the conversation creation request was received.
// Conversations with an expiration set will be removed up to 24 hours after
// the specified time.
//
// Types that are assignable to Expiration:
// *Conversation_ExpireTime
// *Conversation_Ttl
Expiration isConversation_Expiration `protobuf_oneof:"expiration"`
// Immutable. The resource name of the conversation.
// Format:
// projects/{project}/locations/{location}/conversations/{conversation}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// The source of the audio and transcription for the conversation.
DataSource *ConversationDataSource `protobuf:"bytes,2,opt,name=data_source,json=dataSource,proto3" json:"data_source,omitempty"`
// Output only. The time at which the conversation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The most recent time at which the conversation was updated.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// The time at which the conversation started.
StartTime *timestamppb.Timestamp `protobuf:"bytes,17,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
// A user-specified language code for the conversation.
LanguageCode string `protobuf:"bytes,14,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// An opaque, user-specified string representing the human agent who handled
// the conversation.
AgentId string `protobuf:"bytes,5,opt,name=agent_id,json=agentId,proto3" json:"agent_id,omitempty"`
// A map for the user to specify any custom fields. A maximum of 20 labels per
// conversation is allowed, with a maximum of 256 characters per entry.
Labels map[string]string `protobuf:"bytes,6,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Output only. The conversation transcript.
Transcript *Conversation_Transcript `protobuf:"bytes,8,opt,name=transcript,proto3" json:"transcript,omitempty"`
// Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
Medium Conversation_Medium `protobuf:"varint,9,opt,name=medium,proto3,enum=google.cloud.contactcenterinsights.v1.Conversation_Medium" json:"medium,omitempty"`
// Output only. The duration of the conversation.
Duration *durationpb.Duration `protobuf:"bytes,10,opt,name=duration,proto3" json:"duration,omitempty"`
// Output only. The number of turns in the conversation.
TurnCount int32 `protobuf:"varint,11,opt,name=turn_count,json=turnCount,proto3" json:"turn_count,omitempty"`
// Output only. The conversation's latest analysis, if one exists.
LatestAnalysis *Analysis `protobuf:"bytes,12,opt,name=latest_analysis,json=latestAnalysis,proto3" json:"latest_analysis,omitempty"`
// Output only. The annotations that were generated during the customer and agent
// interaction.
RuntimeAnnotations []*RuntimeAnnotation `protobuf:"bytes,13,rep,name=runtime_annotations,json=runtimeAnnotations,proto3" json:"runtime_annotations,omitempty"`
// Output only. All the matched Dialogflow intents in the call. The key corresponds to a
// Dialogflow intent, format:
// projects/{project}/agent/{agent}/intents/{intent}
DialogflowIntents map[string]*DialogflowIntent `protobuf:"bytes,18,rep,name=dialogflow_intents,json=dialogflowIntents,proto3" json:"dialogflow_intents,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *Conversation) Reset() {
*x = Conversation{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_contactcenterinsights_v1_resources_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Conversation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Conversation) ProtoMessage() {}
func (x *Conversation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_contactcenterinsights_v1_resources_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Conversation.ProtoReflect.Descriptor instead.
func (*Conversation) Descriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{0}
}
func (m *Conversation) GetMetadata() isConversation_Metadata {
if m != nil {
return m.Metadata
}
return nil
}
func (x *Conversation) GetCallMetadata() *Conversation_CallMetadata {
if x, ok := x.GetMetadata().(*Conversation_CallMetadata_); ok {
return x.CallMetadata
}
return nil
}
func (m *Conversation) GetExpiration() isConversation_Expiration {
if m != nil {
return m.Expiration
}
return nil
}
func (x *Conversation) GetExpireTime() *timestamppb.Timestamp {
if x, ok := x.GetExpiration().(*Conversation_ExpireTime); ok {
return x.ExpireTime
}
return nil
}
func (x *Conversation) GetTtl() *durationpb.Duration {
if x, ok := x.GetExpiration().(*Conversation_Ttl); ok {
return x.Ttl
}
return nil
}
func (x *Conversation) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Conversation) GetDataSource() *ConversationDataSource {
if x != nil {
return x.DataSource
}
return nil
}
func (x *Conversation) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Conversation) GetUpdateTime() *timestamppb.Timestamp {
if x != nil {
return x.UpdateTime
}
return nil
}
func (x *Conversation) GetStartTime() *timestamppb.Timestamp {
if x != nil {
return x.StartTime
}
return nil
}
func (x *Conversation) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (x *Conversation) GetAgentId() string {
if x != nil {
return x.AgentId
}
return ""
}
func (x *Conversation) GetLabels() map[string]string {
if x != nil {
return x.Labels
}
return nil
}
func (x *Conversation) GetTranscript() *Conversation_Transcript {
if x != nil {
return x.Transcript
}
return nil
}
func (x *Conversation) GetMedium() Conversation_Medium {
if x != nil {
return x.Medium
}
return Conversation_MEDIUM_UNSPECIFIED
}
func (x *Conversation) GetDuration() *durationpb.Duration {
if x != nil {
return x.Duration
}
return nil
}
func (x *Conversation) GetTurnCount() int32 {
if x != nil {
return x.TurnCount
}
return 0
}
func (x *Conversation) GetLatestAnalysis() *Analysis {
if x != nil {
return x.LatestAnalysis
}
return nil
}
func (x *Conversation) GetRuntimeAnnotations() []*RuntimeAnnotation {
if x != nil {
return x.RuntimeAnnotations
}
return nil
}
func (x *Conversation) GetDialogflowIntents() map[string]*DialogflowIntent {
if x != nil {
return x.DialogflowIntents
}
return nil
}
type isConversation_Metadata interface {
isConversation_Metadata()
}
type Conversation_CallMetadata_ struct {
// Call-specific metadata.
CallMetadata *Conversation_CallMetadata `protobuf:"bytes,7,opt,name=call_metadata,json=callMetadata,proto3,oneof"`
}
func (*Conversation_CallMetadata_) isConversation_Metadata() {}
type isConversation_Expiration interface {
isConversation_Expiration()
}
type Conversation_ExpireTime struct {
// The time at which this conversation should expire. After this time, the
// conversation data and any associated analyses will be deleted.
ExpireTime *timestamppb.Timestamp `protobuf:"bytes,15,opt,name=expire_time,json=expireTime,proto3,oneof"`
}
type Conversation_Ttl struct {
// Input only. The TTL for this resource. If specified, then this TTL will
// be used to calculate the expire time.
Ttl *durationpb.Duration `protobuf:"bytes,16,opt,name=ttl,proto3,oneof"`
}
func (*Conversation_ExpireTime) isConversation_Expiration() {}
func (*Conversation_Ttl) isConversation_Expiration() {}
// The analysis resource.
type Analysis struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Immutable. The resource name of the analysis.
// Format:
// projects/{project}/locations/{location}/conversations/{conversation}/analyses/{analysis}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The time at which the analysis was requested.
RequestTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=request_time,json=requestTime,proto3" json:"request_time,omitempty"`
// Output only. The time at which the analysis was created, which occurs when the
// long-running operation completes.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. The result of the analysis, which is populated when the analysis
// finishes.
AnalysisResult *AnalysisResult `protobuf:"bytes,7,opt,name=analysis_result,json=analysisResult,proto3" json:"analysis_result,omitempty"`
}
func (x *Analysis) Reset() {
*x = Analysis{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_contactcenterinsights_v1_resources_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Analysis) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Analysis) ProtoMessage() {}
func (x *Analysis) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_contactcenterinsights_v1_resources_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Analysis.ProtoReflect.Descriptor instead.
func (*Analysis) Descriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{1}
}
func (x *Analysis) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Analysis) GetRequestTime() *timestamppb.Timestamp {
if x != nil {
return x.RequestTime
}
return nil
}
func (x *Analysis) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Analysis) GetAnalysisResult() *AnalysisResult {
if x != nil {
return x.AnalysisResult
}
return nil
}
// The conversation source, which is a combination of transcript and audio.
type ConversationDataSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The source of the conversation.
//
// Types that are assignable to Source:
// *ConversationDataSource_GcsSource
// *ConversationDataSource_DialogflowSource
Source isConversationDataSource_Source `protobuf_oneof:"source"`
}
func (x *ConversationDataSource) Reset() {
*x = ConversationDataSource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_contactcenterinsights_v1_resources_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConversationDataSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConversationDataSource) ProtoMessage() {}
func (x *ConversationDataSource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_contactcenterinsights_v1_resources_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ConversationDataSource.ProtoReflect.Descriptor instead.
func (*ConversationDataSource) Descriptor() ([]byte, []int) {
return file_google_cloud_contactcenterinsights_v1_resources_proto_rawDescGZIP(), []int{2}
}
func (m *ConversationDataSource) GetSource() isConversationDataSource_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *ConversationDataSource) GetGcsSource() *GcsSource {
if x, ok := x.GetSource().(*ConversationDataSource_GcsSource); ok {
return x.GcsSource
}
return nil
}
func (x *ConversationDataSource) GetDialogflowSource() *DialogflowSource {
if x, ok := x.GetSource().(*ConversationDataSource_DialogflowSource); ok {
return x.DialogflowSource
}
return nil
}
type isConversationDataSource_Source interface {
isConversationDataSource_Source()
}
type ConversationDataSource_GcsSource struct {
// A Cloud Storage location specification for the audio and transcript.
GcsSource *GcsSource `protobuf:"bytes,1,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}
type ConversationDataSource_DialogflowSource struct {
// The source when the conversation comes from Dialogflow.
DialogflowSource *DialogflowSource `protobuf:"bytes,3,opt,name=dialogflow_source,json=dialogflowSource,proto3,oneof"`
}
func (*ConversationDataSource_GcsSource) isConversationDataSource_Source() {}
func (*ConversationDataSource_DialogflowSource) isConversationDataSource_Source() {}
// A Cloud Storage source of conversation data.
type GcsSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields