-
Notifications
You must be signed in to change notification settings - Fork 1.2k
/
answer_record.pb.go
executable file
·1819 lines (1638 loc) · 85.6 KB
/
answer_record.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 2023 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.32.0
// protoc v4.25.2
// source: google/cloud/dialogflow/v2beta1/answer_record.proto
package dialogflowpb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
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)
)
// 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_dialogflow_v2beta1_answer_record_proto_enumTypes[0].Descriptor()
}
func (AnswerFeedback_CorrectnessLevel) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[0]
}
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_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{2, 0}
}
// Relevance of an answer.
type AgentAssistantFeedback_AnswerRelevance int32
const (
// Answer relevance unspecified.
AgentAssistantFeedback_ANSWER_RELEVANCE_UNSPECIFIED AgentAssistantFeedback_AnswerRelevance = 0
// Answer is irrelevant to query.
AgentAssistantFeedback_IRRELEVANT AgentAssistantFeedback_AnswerRelevance = 1
// Answer is relevant to query.
AgentAssistantFeedback_RELEVANT AgentAssistantFeedback_AnswerRelevance = 2
)
// Enum value maps for AgentAssistantFeedback_AnswerRelevance.
var (
AgentAssistantFeedback_AnswerRelevance_name = map[int32]string{
0: "ANSWER_RELEVANCE_UNSPECIFIED",
1: "IRRELEVANT",
2: "RELEVANT",
}
AgentAssistantFeedback_AnswerRelevance_value = map[string]int32{
"ANSWER_RELEVANCE_UNSPECIFIED": 0,
"IRRELEVANT": 1,
"RELEVANT": 2,
}
)
func (x AgentAssistantFeedback_AnswerRelevance) Enum() *AgentAssistantFeedback_AnswerRelevance {
p := new(AgentAssistantFeedback_AnswerRelevance)
*p = x
return p
}
func (x AgentAssistantFeedback_AnswerRelevance) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AgentAssistantFeedback_AnswerRelevance) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[1].Descriptor()
}
func (AgentAssistantFeedback_AnswerRelevance) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[1]
}
func (x AgentAssistantFeedback_AnswerRelevance) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AgentAssistantFeedback_AnswerRelevance.Descriptor instead.
func (AgentAssistantFeedback_AnswerRelevance) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{3, 0}
}
// Correctness of document.
type AgentAssistantFeedback_DocumentCorrectness int32
const (
// Document correctness unspecified.
AgentAssistantFeedback_DOCUMENT_CORRECTNESS_UNSPECIFIED AgentAssistantFeedback_DocumentCorrectness = 0
// Information in document is incorrect.
AgentAssistantFeedback_INCORRECT AgentAssistantFeedback_DocumentCorrectness = 1
// Information in document is correct.
AgentAssistantFeedback_CORRECT AgentAssistantFeedback_DocumentCorrectness = 2
)
// Enum value maps for AgentAssistantFeedback_DocumentCorrectness.
var (
AgentAssistantFeedback_DocumentCorrectness_name = map[int32]string{
0: "DOCUMENT_CORRECTNESS_UNSPECIFIED",
1: "INCORRECT",
2: "CORRECT",
}
AgentAssistantFeedback_DocumentCorrectness_value = map[string]int32{
"DOCUMENT_CORRECTNESS_UNSPECIFIED": 0,
"INCORRECT": 1,
"CORRECT": 2,
}
)
func (x AgentAssistantFeedback_DocumentCorrectness) Enum() *AgentAssistantFeedback_DocumentCorrectness {
p := new(AgentAssistantFeedback_DocumentCorrectness)
*p = x
return p
}
func (x AgentAssistantFeedback_DocumentCorrectness) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AgentAssistantFeedback_DocumentCorrectness) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[2].Descriptor()
}
func (AgentAssistantFeedback_DocumentCorrectness) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[2]
}
func (x AgentAssistantFeedback_DocumentCorrectness) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AgentAssistantFeedback_DocumentCorrectness.Descriptor instead.
func (AgentAssistantFeedback_DocumentCorrectness) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{3, 1}
}
// Efficiency of document.
type AgentAssistantFeedback_DocumentEfficiency int32
const (
// Document efficiency unspecified.
AgentAssistantFeedback_DOCUMENT_EFFICIENCY_UNSPECIFIED AgentAssistantFeedback_DocumentEfficiency = 0
// Document is inefficient.
AgentAssistantFeedback_INEFFICIENT AgentAssistantFeedback_DocumentEfficiency = 1
// Document is efficient.
AgentAssistantFeedback_EFFICIENT AgentAssistantFeedback_DocumentEfficiency = 2
)
// Enum value maps for AgentAssistantFeedback_DocumentEfficiency.
var (
AgentAssistantFeedback_DocumentEfficiency_name = map[int32]string{
0: "DOCUMENT_EFFICIENCY_UNSPECIFIED",
1: "INEFFICIENT",
2: "EFFICIENT",
}
AgentAssistantFeedback_DocumentEfficiency_value = map[string]int32{
"DOCUMENT_EFFICIENCY_UNSPECIFIED": 0,
"INEFFICIENT": 1,
"EFFICIENT": 2,
}
)
func (x AgentAssistantFeedback_DocumentEfficiency) Enum() *AgentAssistantFeedback_DocumentEfficiency {
p := new(AgentAssistantFeedback_DocumentEfficiency)
*p = x
return p
}
func (x AgentAssistantFeedback_DocumentEfficiency) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (AgentAssistantFeedback_DocumentEfficiency) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[3].Descriptor()
}
func (AgentAssistantFeedback_DocumentEfficiency) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_answer_record_proto_enumTypes[3]
}
func (x AgentAssistantFeedback_DocumentEfficiency) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use AgentAssistantFeedback_DocumentEfficiency.Descriptor instead.
func (AgentAssistantFeedback_DocumentEfficiency) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{3, 2}
}
// Answer records are records to manage answer history and feedbacks for
// Dialogflow.
//
// Currently, answer record includes:
//
// - human agent assistant article suggestion
// - human agent assistant faq article
//
// It doesn't include:
//
// - `DetectIntent` intent matching
// - `DetectIntent` knowledge
//
// Answer records are not related to the conversation history in the
// Dialogflow Console. A Record is generated even when the end-user disables
// conversation history in the console. Records are created when there's a human
// agent assistant suggestion generated.
//
// A typical workflow for customers provide feedback to an answer is:
//
// 1. For human agent assistant, customers get suggestion via ListSuggestions
// API. Together with the answers,
// [AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] are
// returned to the customers.
// 2. The customer uses the
//
// [AnswerRecord.name][google.cloud.dialogflow.v2beta1.AnswerRecord.name] to
// call the
//
// [UpdateAnswerRecord][] method to send feedback about a specific answer
// that they believe is wrong.
type AnswerRecord struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The unique identifier of this answer record.
// Required for
// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord]
// method. Format: `projects/<Project ID>/locations/<Location
// ID>/answerRecords/<Answer Record ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The AnswerFeedback for this record. You can set this with
// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord]
// in order to give us feedback about this answer.
AnswerFeedback *AnswerFeedback `protobuf:"bytes,3,opt,name=answer_feedback,json=answerFeedback,proto3" json:"answer_feedback,omitempty"`
// Output only. The record for this answer.
//
// Types that are assignable to Record:
//
// *AnswerRecord_AgentAssistantRecord
Record isAnswerRecord_Record `protobuf_oneof:"record"`
}
func (x *AnswerRecord) Reset() {
*x = AnswerRecord{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnswerRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnswerRecord) ProtoMessage() {}
func (x *AnswerRecord) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_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 AnswerRecord.ProtoReflect.Descriptor instead.
func (*AnswerRecord) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{0}
}
func (x *AnswerRecord) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AnswerRecord) GetAnswerFeedback() *AnswerFeedback {
if x != nil {
return x.AnswerFeedback
}
return nil
}
func (m *AnswerRecord) GetRecord() isAnswerRecord_Record {
if m != nil {
return m.Record
}
return nil
}
func (x *AnswerRecord) GetAgentAssistantRecord() *AgentAssistantRecord {
if x, ok := x.GetRecord().(*AnswerRecord_AgentAssistantRecord); ok {
return x.AgentAssistantRecord
}
return nil
}
type isAnswerRecord_Record interface {
isAnswerRecord_Record()
}
type AnswerRecord_AgentAssistantRecord struct {
// Output only. The record for human agent assistant.
AgentAssistantRecord *AgentAssistantRecord `protobuf:"bytes,4,opt,name=agent_assistant_record,json=agentAssistantRecord,proto3,oneof"`
}
func (*AnswerRecord_AgentAssistantRecord) isAnswerRecord_Record() {}
// Represents a record of a human agent assistant answer.
type AgentAssistantRecord struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. The agent assistant answer.
//
// Types that are assignable to Answer:
//
// *AgentAssistantRecord_ArticleSuggestionAnswer
// *AgentAssistantRecord_FaqAnswer
// *AgentAssistantRecord_DialogflowAssistAnswer
Answer isAgentAssistantRecord_Answer `protobuf_oneof:"answer"`
}
func (x *AgentAssistantRecord) Reset() {
*x = AgentAssistantRecord{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AgentAssistantRecord) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AgentAssistantRecord) ProtoMessage() {}
func (x *AgentAssistantRecord) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_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 AgentAssistantRecord.ProtoReflect.Descriptor instead.
func (*AgentAssistantRecord) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{1}
}
func (m *AgentAssistantRecord) GetAnswer() isAgentAssistantRecord_Answer {
if m != nil {
return m.Answer
}
return nil
}
func (x *AgentAssistantRecord) GetArticleSuggestionAnswer() *ArticleAnswer {
if x, ok := x.GetAnswer().(*AgentAssistantRecord_ArticleSuggestionAnswer); ok {
return x.ArticleSuggestionAnswer
}
return nil
}
func (x *AgentAssistantRecord) GetFaqAnswer() *FaqAnswer {
if x, ok := x.GetAnswer().(*AgentAssistantRecord_FaqAnswer); ok {
return x.FaqAnswer
}
return nil
}
func (x *AgentAssistantRecord) GetDialogflowAssistAnswer() *DialogflowAssistAnswer {
if x, ok := x.GetAnswer().(*AgentAssistantRecord_DialogflowAssistAnswer); ok {
return x.DialogflowAssistAnswer
}
return nil
}
type isAgentAssistantRecord_Answer interface {
isAgentAssistantRecord_Answer()
}
type AgentAssistantRecord_ArticleSuggestionAnswer struct {
// Output only. The article suggestion answer.
ArticleSuggestionAnswer *ArticleAnswer `protobuf:"bytes,5,opt,name=article_suggestion_answer,json=articleSuggestionAnswer,proto3,oneof"`
}
type AgentAssistantRecord_FaqAnswer struct {
// Output only. The FAQ answer.
FaqAnswer *FaqAnswer `protobuf:"bytes,6,opt,name=faq_answer,json=faqAnswer,proto3,oneof"`
}
type AgentAssistantRecord_DialogflowAssistAnswer struct {
// Output only. The Dialogflow assist answer.
DialogflowAssistAnswer *DialogflowAssistAnswer `protobuf:"bytes,7,opt,name=dialogflow_assist_answer,json=dialogflowAssistAnswer,proto3,oneof"`
}
func (*AgentAssistantRecord_ArticleSuggestionAnswer) isAgentAssistantRecord_Answer() {}
func (*AgentAssistantRecord_FaqAnswer) isAgentAssistantRecord_Answer() {}
func (*AgentAssistantRecord_DialogflowAssistAnswer) isAgentAssistantRecord_Answer() {}
// Represents feedback the customer has about the quality & correctness of a
// certain answer in a conversation.
type AnswerFeedback struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The correctness level of the specific answer.
CorrectnessLevel AnswerFeedback_CorrectnessLevel `protobuf:"varint,1,opt,name=correctness_level,json=correctnessLevel,proto3,enum=google.cloud.dialogflow.v2beta1.AnswerFeedback_CorrectnessLevel" json:"correctness_level,omitempty"`
// Normally, detail feedback is provided when answer is not fully correct.
//
// Types that are assignable to DetailFeedback:
//
// *AnswerFeedback_AgentAssistantDetailFeedback
DetailFeedback isAnswerFeedback_DetailFeedback `protobuf_oneof:"detail_feedback"`
// Indicates whether the answer/item was clicked by the human agent
// or not. Default to false.
// For knowledge search, the answer record is considered to be clicked if the
// answer was copied or any URI was clicked.
Clicked bool `protobuf:"varint,3,opt,name=clicked,proto3" json:"clicked,omitempty"`
// Time when the answer/item was clicked.
ClickTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=click_time,json=clickTime,proto3" json:"click_time,omitempty"`
// Indicates whether the answer/item was displayed to the human
// agent in the agent desktop UI. Default to false.
Displayed bool `protobuf:"varint,4,opt,name=displayed,proto3" json:"displayed,omitempty"`
// Time when the answer/item was displayed.
DisplayTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=display_time,json=displayTime,proto3" json:"display_time,omitempty"`
}
func (x *AnswerFeedback) Reset() {
*x = AnswerFeedback{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnswerFeedback) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnswerFeedback) ProtoMessage() {}
func (x *AnswerFeedback) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_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 AnswerFeedback.ProtoReflect.Descriptor instead.
func (*AnswerFeedback) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{2}
}
func (x *AnswerFeedback) GetCorrectnessLevel() AnswerFeedback_CorrectnessLevel {
if x != nil {
return x.CorrectnessLevel
}
return AnswerFeedback_CORRECTNESS_LEVEL_UNSPECIFIED
}
func (m *AnswerFeedback) GetDetailFeedback() isAnswerFeedback_DetailFeedback {
if m != nil {
return m.DetailFeedback
}
return nil
}
func (x *AnswerFeedback) GetAgentAssistantDetailFeedback() *AgentAssistantFeedback {
if x, ok := x.GetDetailFeedback().(*AnswerFeedback_AgentAssistantDetailFeedback); ok {
return x.AgentAssistantDetailFeedback
}
return nil
}
func (x *AnswerFeedback) GetClicked() bool {
if x != nil {
return x.Clicked
}
return false
}
func (x *AnswerFeedback) GetClickTime() *timestamppb.Timestamp {
if x != nil {
return x.ClickTime
}
return nil
}
func (x *AnswerFeedback) GetDisplayed() bool {
if x != nil {
return x.Displayed
}
return false
}
func (x *AnswerFeedback) GetDisplayTime() *timestamppb.Timestamp {
if x != nil {
return x.DisplayTime
}
return nil
}
type isAnswerFeedback_DetailFeedback interface {
isAnswerFeedback_DetailFeedback()
}
type AnswerFeedback_AgentAssistantDetailFeedback struct {
// Optional. Detail feedback of agent assistant suggestions.
AgentAssistantDetailFeedback *AgentAssistantFeedback `protobuf:"bytes,2,opt,name=agent_assistant_detail_feedback,json=agentAssistantDetailFeedback,proto3,oneof"`
}
func (*AnswerFeedback_AgentAssistantDetailFeedback) isAnswerFeedback_DetailFeedback() {}
// Detail feedback of Agent Assistant result.
type AgentAssistantFeedback struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Whether or not the suggested answer is relevant.
//
// For example:
//
// - Query: "Can I change my mailing address?"
// - Suggested document says: "Items must be returned/exchanged within 60
// days of the purchase date."
// - [answer_relevance][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.answer_relevance]: [AnswerRelevance.IRRELEVANT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.AnswerRelevance.IRRELEVANT]
AnswerRelevance AgentAssistantFeedback_AnswerRelevance `protobuf:"varint,1,opt,name=answer_relevance,json=answerRelevance,proto3,enum=google.cloud.dialogflow.v2beta1.AgentAssistantFeedback_AnswerRelevance" json:"answer_relevance,omitempty"`
// Optional. Whether or not the information in the document is correct.
//
// For example:
//
// - Query: "Can I return the package in 2 days once received?"
// - Suggested document says: "Items must be returned/exchanged within 60
// days of the purchase date."
// - Ground truth: "No return or exchange is allowed."
// - [document_correctness]: INCORRECT
DocumentCorrectness AgentAssistantFeedback_DocumentCorrectness `protobuf:"varint,2,opt,name=document_correctness,json=documentCorrectness,proto3,enum=google.cloud.dialogflow.v2beta1.AgentAssistantFeedback_DocumentCorrectness" json:"document_correctness,omitempty"`
// Optional. Whether or not the suggested document is efficient. For example,
// if the document is poorly written, hard to understand, hard to use or
// too long to find useful information,
// [document_efficiency][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.document_efficiency]
// is
// [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2beta1.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
DocumentEfficiency AgentAssistantFeedback_DocumentEfficiency `protobuf:"varint,3,opt,name=document_efficiency,json=documentEfficiency,proto3,enum=google.cloud.dialogflow.v2beta1.AgentAssistantFeedback_DocumentEfficiency" json:"document_efficiency,omitempty"`
// Feedback for conversation summarization.
SummarizationFeedback *AgentAssistantFeedback_SummarizationFeedback `protobuf:"bytes,4,opt,name=summarization_feedback,json=summarizationFeedback,proto3" json:"summarization_feedback,omitempty"`
// Optional. Feedback for knowledge search.
KnowledgeSearchFeedback *AgentAssistantFeedback_KnowledgeSearchFeedback `protobuf:"bytes,5,opt,name=knowledge_search_feedback,json=knowledgeSearchFeedback,proto3" json:"knowledge_search_feedback,omitempty"`
}
func (x *AgentAssistantFeedback) Reset() {
*x = AgentAssistantFeedback{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AgentAssistantFeedback) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AgentAssistantFeedback) ProtoMessage() {}
func (x *AgentAssistantFeedback) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[3]
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 AgentAssistantFeedback.ProtoReflect.Descriptor instead.
func (*AgentAssistantFeedback) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{3}
}
func (x *AgentAssistantFeedback) GetAnswerRelevance() AgentAssistantFeedback_AnswerRelevance {
if x != nil {
return x.AnswerRelevance
}
return AgentAssistantFeedback_ANSWER_RELEVANCE_UNSPECIFIED
}
func (x *AgentAssistantFeedback) GetDocumentCorrectness() AgentAssistantFeedback_DocumentCorrectness {
if x != nil {
return x.DocumentCorrectness
}
return AgentAssistantFeedback_DOCUMENT_CORRECTNESS_UNSPECIFIED
}
func (x *AgentAssistantFeedback) GetDocumentEfficiency() AgentAssistantFeedback_DocumentEfficiency {
if x != nil {
return x.DocumentEfficiency
}
return AgentAssistantFeedback_DOCUMENT_EFFICIENCY_UNSPECIFIED
}
func (x *AgentAssistantFeedback) GetSummarizationFeedback() *AgentAssistantFeedback_SummarizationFeedback {
if x != nil {
return x.SummarizationFeedback
}
return nil
}
func (x *AgentAssistantFeedback) GetKnowledgeSearchFeedback() *AgentAssistantFeedback_KnowledgeSearchFeedback {
if x != nil {
return x.KnowledgeSearchFeedback
}
return nil
}
// Request message for
// [AnswerRecords.GetAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.GetAnswerRecord].
type GetAnswerRecordRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the answer record to retrieve.
// Format: `projects/<Project ID>/locations/<Location
// ID>/answerRecords/<Answer Record Id>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetAnswerRecordRequest) Reset() {
*x = GetAnswerRecordRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetAnswerRecordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetAnswerRecordRequest) ProtoMessage() {}
func (x *GetAnswerRecordRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[4]
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 GetAnswerRecordRequest.ProtoReflect.Descriptor instead.
func (*GetAnswerRecordRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{4}
}
func (x *GetAnswerRecordRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// Request message for
// [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords].
type ListAnswerRecordsRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The project to list all answer records for in reverse
// chronological order. Format: `projects/<Project ID>/locations/<Location
// ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Optional. Filters to restrict results to specific answer records.
//
// For more information about filtering, see
// [API Filtering](https://aip.dev/160).
//
// Deprecated: Marked as deprecated in google/cloud/dialogflow/v2beta1/answer_record.proto.
Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"`
// Optional. The maximum number of records to return in a single page.
// The server may return fewer records than this. If unspecified, we use 10.
// The maximum is 100.
PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// Optional. The
// [ListAnswerRecordsResponse.next_page_token][google.cloud.dialogflow.v2beta1.ListAnswerRecordsResponse.next_page_token]
// value returned from a previous list request used to continue listing on
// the next page.
PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListAnswerRecordsRequest) Reset() {
*x = ListAnswerRecordsRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAnswerRecordsRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAnswerRecordsRequest) ProtoMessage() {}
func (x *ListAnswerRecordsRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[5]
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 ListAnswerRecordsRequest.ProtoReflect.Descriptor instead.
func (*ListAnswerRecordsRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{5}
}
func (x *ListAnswerRecordsRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
// Deprecated: Marked as deprecated in google/cloud/dialogflow/v2beta1/answer_record.proto.
func (x *ListAnswerRecordsRequest) GetFilter() string {
if x != nil {
return x.Filter
}
return ""
}
func (x *ListAnswerRecordsRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListAnswerRecordsRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// Response message for
// [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2beta1.AnswerRecords.ListAnswerRecords].
type ListAnswerRecordsResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of answer records.
AnswerRecords []*AnswerRecord `protobuf:"bytes,1,rep,name=answer_records,json=answerRecords,proto3" json:"answer_records,omitempty"`
// A token to retrieve next page of results. Or empty if there are no more
// results.
// Pass this value in the
// [ListAnswerRecordsRequest.page_token][google.cloud.dialogflow.v2beta1.ListAnswerRecordsRequest.page_token]
// field in the subsequent call to `ListAnswerRecords` method to retrieve the
// next page of results.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListAnswerRecordsResponse) Reset() {
*x = ListAnswerRecordsResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListAnswerRecordsResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListAnswerRecordsResponse) ProtoMessage() {}
func (x *ListAnswerRecordsResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[6]
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 ListAnswerRecordsResponse.ProtoReflect.Descriptor instead.
func (*ListAnswerRecordsResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{6}
}
func (x *ListAnswerRecordsResponse) GetAnswerRecords() []*AnswerRecord {
if x != nil {
return x.AnswerRecords
}
return nil
}
func (x *ListAnswerRecordsResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// Request message for
// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2beta1.AnswerRecords.UpdateAnswerRecord].
type UpdateAnswerRecordRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Answer record to update.
AnswerRecord *AnswerRecord `protobuf:"bytes,1,opt,name=answer_record,json=answerRecord,proto3" json:"answer_record,omitempty"`
// Required. The mask to control which fields get updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateAnswerRecordRequest) Reset() {
*x = UpdateAnswerRecordRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateAnswerRecordRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateAnswerRecordRequest) ProtoMessage() {}
func (x *UpdateAnswerRecordRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[7]
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 UpdateAnswerRecordRequest.ProtoReflect.Descriptor instead.
func (*UpdateAnswerRecordRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_answer_record_proto_rawDescGZIP(), []int{7}
}
func (x *UpdateAnswerRecordRequest) GetAnswerRecord() *AnswerRecord {
if x != nil {
return x.AnswerRecord
}
return nil
}
func (x *UpdateAnswerRecordRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// Feedback for conversation summarization.
type AgentAssistantFeedback_SummarizationFeedback struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Timestamp when composing of the summary starts.
StartTimestamp *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_timestamp,json=startTimestamp,proto3" json:"start_timestamp,omitempty"`
// Timestamp when the summary was submitted.
SubmitTimestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=submit_timestamp,json=submitTimestamp,proto3" json:"submit_timestamp,omitempty"`
// Text of actual submitted summary.
SummaryText string `protobuf:"bytes,3,opt,name=summary_text,json=summaryText,proto3" json:"summary_text,omitempty"`
// Optional. Actual text sections of submitted summary.
TextSections map[string]string `protobuf:"bytes,4,rep,name=text_sections,json=textSections,proto3" json:"text_sections,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
}
func (x *AgentAssistantFeedback_SummarizationFeedback) Reset() {
*x = AgentAssistantFeedback_SummarizationFeedback{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_answer_record_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}