/
conversation_model.pb.go
3566 lines (3232 loc) · 169 KB
/
conversation_model.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 2022 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.21.9
// source: google/cloud/dialogflow/v2/conversation_model.proto
package dialogflowpb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
longrunning "google.golang.org/genproto/googleapis/longrunning"
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"
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)
)
// State of the model.
type ConversationModel_State int32
const (
// Should not be used, an un-set enum has this value by default.
ConversationModel_STATE_UNSPECIFIED ConversationModel_State = 0
// Model being created.
ConversationModel_CREATING ConversationModel_State = 1
// Model is not deployed but ready to deploy.
ConversationModel_UNDEPLOYED ConversationModel_State = 2
// Model is deploying.
ConversationModel_DEPLOYING ConversationModel_State = 3
// Model is deployed and ready to use.
ConversationModel_DEPLOYED ConversationModel_State = 4
// Model is undeploying.
ConversationModel_UNDEPLOYING ConversationModel_State = 5
// Model is deleting.
ConversationModel_DELETING ConversationModel_State = 6
// Model is in error state. Not ready to deploy and use.
ConversationModel_FAILED ConversationModel_State = 7
// Model is being created but the training has not started,
// The model may remain in this state until there is enough capacity to
// start training.
ConversationModel_PENDING ConversationModel_State = 8
)
// Enum value maps for ConversationModel_State.
var (
ConversationModel_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "CREATING",
2: "UNDEPLOYED",
3: "DEPLOYING",
4: "DEPLOYED",
5: "UNDEPLOYING",
6: "DELETING",
7: "FAILED",
8: "PENDING",
}
ConversationModel_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"CREATING": 1,
"UNDEPLOYED": 2,
"DEPLOYING": 3,
"DEPLOYED": 4,
"UNDEPLOYING": 5,
"DELETING": 6,
"FAILED": 7,
"PENDING": 8,
}
)
func (x ConversationModel_State) Enum() *ConversationModel_State {
p := new(ConversationModel_State)
*p = x
return p
}
func (x ConversationModel_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConversationModel_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[0].Descriptor()
}
func (ConversationModel_State) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[0]
}
func (x ConversationModel_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConversationModel_State.Descriptor instead.
func (ConversationModel_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{0, 0}
}
// Model type.
type ConversationModel_ModelType int32
const (
// ModelType unspecified.
ConversationModel_MODEL_TYPE_UNSPECIFIED ConversationModel_ModelType = 0
// ModelType smart reply dual encoder model.
ConversationModel_SMART_REPLY_DUAL_ENCODER_MODEL ConversationModel_ModelType = 2
// ModelType smart reply bert model.
ConversationModel_SMART_REPLY_BERT_MODEL ConversationModel_ModelType = 6
)
// Enum value maps for ConversationModel_ModelType.
var (
ConversationModel_ModelType_name = map[int32]string{
0: "MODEL_TYPE_UNSPECIFIED",
2: "SMART_REPLY_DUAL_ENCODER_MODEL",
6: "SMART_REPLY_BERT_MODEL",
}
ConversationModel_ModelType_value = map[string]int32{
"MODEL_TYPE_UNSPECIFIED": 0,
"SMART_REPLY_DUAL_ENCODER_MODEL": 2,
"SMART_REPLY_BERT_MODEL": 6,
}
)
func (x ConversationModel_ModelType) Enum() *ConversationModel_ModelType {
p := new(ConversationModel_ModelType)
*p = x
return p
}
func (x ConversationModel_ModelType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ConversationModel_ModelType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[1].Descriptor()
}
func (ConversationModel_ModelType) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[1]
}
func (x ConversationModel_ModelType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ConversationModel_ModelType.Descriptor instead.
func (ConversationModel_ModelType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{0, 1}
}
// State of CreateConversationModel operation.
type CreateConversationModelOperationMetadata_State int32
const (
// Invalid.
CreateConversationModelOperationMetadata_STATE_UNSPECIFIED CreateConversationModelOperationMetadata_State = 0
// Request is submitted, but training has not started yet.
// The model may remain in this state until there is enough capacity to
// start training.
CreateConversationModelOperationMetadata_PENDING CreateConversationModelOperationMetadata_State = 1
// The training has succeeded.
CreateConversationModelOperationMetadata_SUCCEEDED CreateConversationModelOperationMetadata_State = 2
// The training has succeeded.
CreateConversationModelOperationMetadata_FAILED CreateConversationModelOperationMetadata_State = 3
// The training has been cancelled.
CreateConversationModelOperationMetadata_CANCELLED CreateConversationModelOperationMetadata_State = 4
// The training is in cancelling state.
CreateConversationModelOperationMetadata_CANCELLING CreateConversationModelOperationMetadata_State = 5
// Custom model is training.
CreateConversationModelOperationMetadata_TRAINING CreateConversationModelOperationMetadata_State = 6
)
// Enum value maps for CreateConversationModelOperationMetadata_State.
var (
CreateConversationModelOperationMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "PENDING",
2: "SUCCEEDED",
3: "FAILED",
4: "CANCELLED",
5: "CANCELLING",
6: "TRAINING",
}
CreateConversationModelOperationMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"PENDING": 1,
"SUCCEEDED": 2,
"FAILED": 3,
"CANCELLED": 4,
"CANCELLING": 5,
"TRAINING": 6,
}
)
func (x CreateConversationModelOperationMetadata_State) Enum() *CreateConversationModelOperationMetadata_State {
p := new(CreateConversationModelOperationMetadata_State)
*p = x
return p
}
func (x CreateConversationModelOperationMetadata_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CreateConversationModelOperationMetadata_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[2].Descriptor()
}
func (CreateConversationModelOperationMetadata_State) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[2]
}
func (x CreateConversationModelOperationMetadata_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CreateConversationModelOperationMetadata_State.Descriptor instead.
func (CreateConversationModelOperationMetadata_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{18, 0}
}
// State of CreateConversationModel operation.
type CreateConversationModelEvaluationOperationMetadata_State int32
const (
// Operation status not specified.
CreateConversationModelEvaluationOperationMetadata_STATE_UNSPECIFIED CreateConversationModelEvaluationOperationMetadata_State = 0
// The operation is being prepared.
CreateConversationModelEvaluationOperationMetadata_INITIALIZING CreateConversationModelEvaluationOperationMetadata_State = 1
// The operation is running.
CreateConversationModelEvaluationOperationMetadata_RUNNING CreateConversationModelEvaluationOperationMetadata_State = 2
// The operation is cancelled.
CreateConversationModelEvaluationOperationMetadata_CANCELLED CreateConversationModelEvaluationOperationMetadata_State = 3
// The operation has succeeded.
CreateConversationModelEvaluationOperationMetadata_SUCCEEDED CreateConversationModelEvaluationOperationMetadata_State = 4
// The operation has failed.
CreateConversationModelEvaluationOperationMetadata_FAILED CreateConversationModelEvaluationOperationMetadata_State = 5
)
// Enum value maps for CreateConversationModelEvaluationOperationMetadata_State.
var (
CreateConversationModelEvaluationOperationMetadata_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "INITIALIZING",
2: "RUNNING",
3: "CANCELLED",
4: "SUCCEEDED",
5: "FAILED",
}
CreateConversationModelEvaluationOperationMetadata_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"INITIALIZING": 1,
"RUNNING": 2,
"CANCELLED": 3,
"SUCCEEDED": 4,
"FAILED": 5,
}
)
func (x CreateConversationModelEvaluationOperationMetadata_State) Enum() *CreateConversationModelEvaluationOperationMetadata_State {
p := new(CreateConversationModelEvaluationOperationMetadata_State)
*p = x
return p
}
func (x CreateConversationModelEvaluationOperationMetadata_State) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CreateConversationModelEvaluationOperationMetadata_State) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[3].Descriptor()
}
func (CreateConversationModelEvaluationOperationMetadata_State) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2_conversation_model_proto_enumTypes[3]
}
func (x CreateConversationModelEvaluationOperationMetadata_State) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CreateConversationModelEvaluationOperationMetadata_State.Descriptor instead.
func (CreateConversationModelEvaluationOperationMetadata_State) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{22, 0}
}
// Represents a conversation model.
type ConversationModel struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// ConversationModel resource name. Format:
// `projects/<Project ID>/conversationModels/<Conversation Model ID>`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the model. At most 64 bytes long.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. Creation time of this model.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Required. Datasets used to create model.
Datasets []*InputDataset `protobuf:"bytes,4,rep,name=datasets,proto3" json:"datasets,omitempty"`
// Output only. State of the model. A model can only serve prediction requests
// after it gets deployed.
State ConversationModel_State `protobuf:"varint,7,opt,name=state,proto3,enum=google.cloud.dialogflow.v2.ConversationModel_State" json:"state,omitempty"`
// Language code for the conversation model. If not specified, the language
// is en-US. Language at ConversationModel should be set for all non en-us
// languages.
// This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
// language tag. Example: "en-US".
LanguageCode string `protobuf:"bytes,19,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Required.
// The model metadata that is specific to the problem type.
// Must match the metadata type of the dataset used to train the model.
//
// Types that are assignable to ModelMetadata:
//
// *ConversationModel_ArticleSuggestionModelMetadata
// *ConversationModel_SmartReplyModelMetadata
ModelMetadata isConversationModel_ModelMetadata `protobuf_oneof:"model_metadata"`
}
func (x *ConversationModel) Reset() {
*x = ConversationModel{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConversationModel) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConversationModel) ProtoMessage() {}
func (x *ConversationModel) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 ConversationModel.ProtoReflect.Descriptor instead.
func (*ConversationModel) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{0}
}
func (x *ConversationModel) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ConversationModel) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *ConversationModel) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *ConversationModel) GetDatasets() []*InputDataset {
if x != nil {
return x.Datasets
}
return nil
}
func (x *ConversationModel) GetState() ConversationModel_State {
if x != nil {
return x.State
}
return ConversationModel_STATE_UNSPECIFIED
}
func (x *ConversationModel) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (m *ConversationModel) GetModelMetadata() isConversationModel_ModelMetadata {
if m != nil {
return m.ModelMetadata
}
return nil
}
func (x *ConversationModel) GetArticleSuggestionModelMetadata() *ArticleSuggestionModelMetadata {
if x, ok := x.GetModelMetadata().(*ConversationModel_ArticleSuggestionModelMetadata); ok {
return x.ArticleSuggestionModelMetadata
}
return nil
}
func (x *ConversationModel) GetSmartReplyModelMetadata() *SmartReplyModelMetadata {
if x, ok := x.GetModelMetadata().(*ConversationModel_SmartReplyModelMetadata); ok {
return x.SmartReplyModelMetadata
}
return nil
}
type isConversationModel_ModelMetadata interface {
isConversationModel_ModelMetadata()
}
type ConversationModel_ArticleSuggestionModelMetadata struct {
// Metadata for article suggestion models.
ArticleSuggestionModelMetadata *ArticleSuggestionModelMetadata `protobuf:"bytes,8,opt,name=article_suggestion_model_metadata,json=articleSuggestionModelMetadata,proto3,oneof"`
}
type ConversationModel_SmartReplyModelMetadata struct {
// Metadata for smart reply models.
SmartReplyModelMetadata *SmartReplyModelMetadata `protobuf:"bytes,9,opt,name=smart_reply_model_metadata,json=smartReplyModelMetadata,proto3,oneof"`
}
func (*ConversationModel_ArticleSuggestionModelMetadata) isConversationModel_ModelMetadata() {}
func (*ConversationModel_SmartReplyModelMetadata) isConversationModel_ModelMetadata() {}
// Represents evaluation result of a conversation model.
type ConversationModelEvaluation struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name of the evaluation. Format:
// `projects/<Project ID>/conversationModels/<Conversation Model
// ID>/evaluations/<Evaluation ID>`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Optional. The display name of the model evaluation. At most 64 bytes long.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. The configuration of the evaluation task.
EvaluationConfig *EvaluationConfig `protobuf:"bytes,6,opt,name=evaluation_config,json=evaluationConfig,proto3" json:"evaluation_config,omitempty"`
// Output only. Creation time of this model.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Metrics details.
//
// Types that are assignable to Metrics:
//
// *ConversationModelEvaluation_SmartReplyMetrics
Metrics isConversationModelEvaluation_Metrics `protobuf_oneof:"metrics"`
// Output only. Human eval template in csv format.
// It tooks real-world conversations provided through input dataset, generates
// example suggestions for customer to verify quality of the model.
// For Smart Reply, the generated csv file contains columns of
// Context, (Suggestions,Q1,Q2)*3, Actual reply.
// Context contains at most 10 latest messages in the conversation prior to
// the current suggestion.
// Q1: "Would you send it as the next message of agent?"
// Evaluated based on whether the suggest is appropriate to be sent by
// agent in current context.
// Q2: "Does the suggestion move the conversation closer to resolution?"
// Evaluated based on whether the suggestion provide solutions, or answers
// customer's question or collect information from customer to resolve the
// customer's issue.
// Actual reply column contains the actual agent reply sent in the context.
RawHumanEvalTemplateCsv string `protobuf:"bytes,8,opt,name=raw_human_eval_template_csv,json=rawHumanEvalTemplateCsv,proto3" json:"raw_human_eval_template_csv,omitempty"`
}
func (x *ConversationModelEvaluation) Reset() {
*x = ConversationModelEvaluation{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConversationModelEvaluation) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConversationModelEvaluation) ProtoMessage() {}
func (x *ConversationModelEvaluation) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 ConversationModelEvaluation.ProtoReflect.Descriptor instead.
func (*ConversationModelEvaluation) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{1}
}
func (x *ConversationModelEvaluation) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *ConversationModelEvaluation) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *ConversationModelEvaluation) GetEvaluationConfig() *EvaluationConfig {
if x != nil {
return x.EvaluationConfig
}
return nil
}
func (x *ConversationModelEvaluation) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (m *ConversationModelEvaluation) GetMetrics() isConversationModelEvaluation_Metrics {
if m != nil {
return m.Metrics
}
return nil
}
func (x *ConversationModelEvaluation) GetSmartReplyMetrics() *SmartReplyMetrics {
if x, ok := x.GetMetrics().(*ConversationModelEvaluation_SmartReplyMetrics); ok {
return x.SmartReplyMetrics
}
return nil
}
func (x *ConversationModelEvaluation) GetRawHumanEvalTemplateCsv() string {
if x != nil {
return x.RawHumanEvalTemplateCsv
}
return ""
}
type isConversationModelEvaluation_Metrics interface {
isConversationModelEvaluation_Metrics()
}
type ConversationModelEvaluation_SmartReplyMetrics struct {
// Output only. Only available when model is for smart reply.
SmartReplyMetrics *SmartReplyMetrics `protobuf:"bytes,5,opt,name=smart_reply_metrics,json=smartReplyMetrics,proto3,oneof"`
}
func (*ConversationModelEvaluation_SmartReplyMetrics) isConversationModelEvaluation_Metrics() {}
// The configuration for model evaluation.
type EvaluationConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Datasets used for evaluation.
Datasets []*InputDataset `protobuf:"bytes,3,rep,name=datasets,proto3" json:"datasets,omitempty"`
// Specific configurations for different models in order to do evaluation.
//
// Types that are assignable to ModelSpecificConfig:
//
// *EvaluationConfig_SmartReplyConfig_
// *EvaluationConfig_SmartComposeConfig_
ModelSpecificConfig isEvaluationConfig_ModelSpecificConfig `protobuf_oneof:"model_specific_config"`
}
func (x *EvaluationConfig) Reset() {
*x = EvaluationConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *EvaluationConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*EvaluationConfig) ProtoMessage() {}
func (x *EvaluationConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 EvaluationConfig.ProtoReflect.Descriptor instead.
func (*EvaluationConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{2}
}
func (x *EvaluationConfig) GetDatasets() []*InputDataset {
if x != nil {
return x.Datasets
}
return nil
}
func (m *EvaluationConfig) GetModelSpecificConfig() isEvaluationConfig_ModelSpecificConfig {
if m != nil {
return m.ModelSpecificConfig
}
return nil
}
func (x *EvaluationConfig) GetSmartReplyConfig() *EvaluationConfig_SmartReplyConfig {
if x, ok := x.GetModelSpecificConfig().(*EvaluationConfig_SmartReplyConfig_); ok {
return x.SmartReplyConfig
}
return nil
}
func (x *EvaluationConfig) GetSmartComposeConfig() *EvaluationConfig_SmartComposeConfig {
if x, ok := x.GetModelSpecificConfig().(*EvaluationConfig_SmartComposeConfig_); ok {
return x.SmartComposeConfig
}
return nil
}
type isEvaluationConfig_ModelSpecificConfig interface {
isEvaluationConfig_ModelSpecificConfig()
}
type EvaluationConfig_SmartReplyConfig_ struct {
// Configuration for smart reply model evalution.
SmartReplyConfig *EvaluationConfig_SmartReplyConfig `protobuf:"bytes,2,opt,name=smart_reply_config,json=smartReplyConfig,proto3,oneof"`
}
type EvaluationConfig_SmartComposeConfig_ struct {
// Configuration for smart compose model evalution.
SmartComposeConfig *EvaluationConfig_SmartComposeConfig `protobuf:"bytes,4,opt,name=smart_compose_config,json=smartComposeConfig,proto3,oneof"`
}
func (*EvaluationConfig_SmartReplyConfig_) isEvaluationConfig_ModelSpecificConfig() {}
func (*EvaluationConfig_SmartComposeConfig_) isEvaluationConfig_ModelSpecificConfig() {}
// InputDataset used to create model or do evaluation.
// NextID:5
type InputDataset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. ConversationDataset resource name. Format:
// `projects/<Project ID>/locations/<Location
// ID>/conversationDatasets/<Conversation Dataset ID>`
Dataset string `protobuf:"bytes,1,opt,name=dataset,proto3" json:"dataset,omitempty"`
}
func (x *InputDataset) Reset() {
*x = InputDataset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InputDataset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InputDataset) ProtoMessage() {}
func (x *InputDataset) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 InputDataset.ProtoReflect.Descriptor instead.
func (*InputDataset) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{3}
}
func (x *InputDataset) GetDataset() string {
if x != nil {
return x.Dataset
}
return ""
}
// Metadata for article suggestion models.
type ArticleSuggestionModelMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Type of the article suggestion model. If not provided, model_type
// is used.
TrainingModelType ConversationModel_ModelType `protobuf:"varint,3,opt,name=training_model_type,json=trainingModelType,proto3,enum=google.cloud.dialogflow.v2.ConversationModel_ModelType" json:"training_model_type,omitempty"`
}
func (x *ArticleSuggestionModelMetadata) Reset() {
*x = ArticleSuggestionModelMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ArticleSuggestionModelMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ArticleSuggestionModelMetadata) ProtoMessage() {}
func (x *ArticleSuggestionModelMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 ArticleSuggestionModelMetadata.ProtoReflect.Descriptor instead.
func (*ArticleSuggestionModelMetadata) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{4}
}
func (x *ArticleSuggestionModelMetadata) GetTrainingModelType() ConversationModel_ModelType {
if x != nil {
return x.TrainingModelType
}
return ConversationModel_MODEL_TYPE_UNSPECIFIED
}
// Metadata for smart reply models.
type SmartReplyModelMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. Type of the smart reply model. If not provided, model_type is
// used.
TrainingModelType ConversationModel_ModelType `protobuf:"varint,6,opt,name=training_model_type,json=trainingModelType,proto3,enum=google.cloud.dialogflow.v2.ConversationModel_ModelType" json:"training_model_type,omitempty"`
}
func (x *SmartReplyModelMetadata) Reset() {
*x = SmartReplyModelMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SmartReplyModelMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SmartReplyModelMetadata) ProtoMessage() {}
func (x *SmartReplyModelMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 SmartReplyModelMetadata.ProtoReflect.Descriptor instead.
func (*SmartReplyModelMetadata) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{5}
}
func (x *SmartReplyModelMetadata) GetTrainingModelType() ConversationModel_ModelType {
if x != nil {
return x.TrainingModelType
}
return ConversationModel_MODEL_TYPE_UNSPECIFIED
}
// The evaluation metrics for smart reply model.
type SmartReplyMetrics struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Percentage of target participant messages in the evaluation dataset for
// which similar messages have appeared at least once in the allowlist. Should
// be [0, 1].
AllowlistCoverage float32 `protobuf:"fixed32,1,opt,name=allowlist_coverage,json=allowlistCoverage,proto3" json:"allowlist_coverage,omitempty"`
// Metrics of top n smart replies, sorted by [TopNMetric.n][].
TopNMetrics []*SmartReplyMetrics_TopNMetrics `protobuf:"bytes,2,rep,name=top_n_metrics,json=topNMetrics,proto3" json:"top_n_metrics,omitempty"`
// Total number of conversations used to generate this metric.
ConversationCount int64 `protobuf:"varint,3,opt,name=conversation_count,json=conversationCount,proto3" json:"conversation_count,omitempty"`
}
func (x *SmartReplyMetrics) Reset() {
*x = SmartReplyMetrics{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *SmartReplyMetrics) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*SmartReplyMetrics) ProtoMessage() {}
func (x *SmartReplyMetrics) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 SmartReplyMetrics.ProtoReflect.Descriptor instead.
func (*SmartReplyMetrics) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{6}
}
func (x *SmartReplyMetrics) GetAllowlistCoverage() float32 {
if x != nil {
return x.AllowlistCoverage
}
return 0
}
func (x *SmartReplyMetrics) GetTopNMetrics() []*SmartReplyMetrics_TopNMetrics {
if x != nil {
return x.TopNMetrics
}
return nil
}
func (x *SmartReplyMetrics) GetConversationCount() int64 {
if x != nil {
return x.ConversationCount
}
return 0
}
// The request message for
// [ConversationModels.CreateConversationModel][google.cloud.dialogflow.v2.ConversationModels.CreateConversationModel]
type CreateConversationModelRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The project to create conversation model for. Format:
// `projects/<Project ID>`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The conversation model to create.
ConversationModel *ConversationModel `protobuf:"bytes,2,opt,name=conversation_model,json=conversationModel,proto3" json:"conversation_model,omitempty"`
}
func (x *CreateConversationModelRequest) Reset() {
*x = CreateConversationModelRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateConversationModelRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateConversationModelRequest) ProtoMessage() {}
func (x *CreateConversationModelRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_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 CreateConversationModelRequest.ProtoReflect.Descriptor instead.
func (*CreateConversationModelRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2_conversation_model_proto_rawDescGZIP(), []int{7}
}
func (x *CreateConversationModelRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateConversationModelRequest) GetConversationModel() *ConversationModel {
if x != nil {
return x.ConversationModel
}
return nil
}
// The request message for
// [ConversationModels.GetConversationModel][google.cloud.dialogflow.v2.ConversationModels.GetConversationModel]
type GetConversationModelRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The conversation model to retrieve. Format:
// `projects/<Project ID>/conversationModels/<Conversation Model ID>`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetConversationModelRequest) Reset() {
*x = GetConversationModelRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetConversationModelRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetConversationModelRequest) ProtoMessage() {}
func (x *GetConversationModelRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2_conversation_model_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {