/
test_case.pb.go
executable file
·5188 lines (4682 loc) · 225 KB
/
test_case.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.30.0
// protoc v4.23.1
// source: google/cloud/dialogflow/cx/v3/test_case.proto
package cxpb
import (
context "context"
reflect "reflect"
sync "sync"
longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
_ "google.golang.org/genproto/googleapis/api/annotations"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
structpb "google.golang.org/protobuf/types/known/structpb"
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 test result for a test case and an agent environment.
type TestResult int32
const (
// Not specified. Should never be used.
TestResult_TEST_RESULT_UNSPECIFIED TestResult = 0
// The test passed.
TestResult_PASSED TestResult = 1
// The test did not pass.
TestResult_FAILED TestResult = 2
)
// Enum value maps for TestResult.
var (
TestResult_name = map[int32]string{
0: "TEST_RESULT_UNSPECIFIED",
1: "PASSED",
2: "FAILED",
}
TestResult_value = map[string]int32{
"TEST_RESULT_UNSPECIFIED": 0,
"PASSED": 1,
"FAILED": 2,
}
)
func (x TestResult) Enum() *TestResult {
p := new(TestResult)
*p = x
return p
}
func (x TestResult) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestResult) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[0].Descriptor()
}
func (TestResult) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[0]
}
func (x TestResult) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestResult.Descriptor instead.
func (TestResult) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{0}
}
// What part of the message replay differs from the test case.
type TestRunDifference_DiffType int32
const (
// Should never be used.
TestRunDifference_DIFF_TYPE_UNSPECIFIED TestRunDifference_DiffType = 0
// The intent.
TestRunDifference_INTENT TestRunDifference_DiffType = 1
// The page.
TestRunDifference_PAGE TestRunDifference_DiffType = 2
// The parameters.
TestRunDifference_PARAMETERS TestRunDifference_DiffType = 3
// The message utterance.
TestRunDifference_UTTERANCE TestRunDifference_DiffType = 4
// The flow.
TestRunDifference_FLOW TestRunDifference_DiffType = 5
)
// Enum value maps for TestRunDifference_DiffType.
var (
TestRunDifference_DiffType_name = map[int32]string{
0: "DIFF_TYPE_UNSPECIFIED",
1: "INTENT",
2: "PAGE",
3: "PARAMETERS",
4: "UTTERANCE",
5: "FLOW",
}
TestRunDifference_DiffType_value = map[string]int32{
"DIFF_TYPE_UNSPECIFIED": 0,
"INTENT": 1,
"PAGE": 2,
"PARAMETERS": 3,
"UTTERANCE": 4,
"FLOW": 5,
}
)
func (x TestRunDifference_DiffType) Enum() *TestRunDifference_DiffType {
p := new(TestRunDifference_DiffType)
*p = x
return p
}
func (x TestRunDifference_DiffType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (TestRunDifference_DiffType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[1].Descriptor()
}
func (TestRunDifference_DiffType) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[1]
}
func (x TestRunDifference_DiffType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use TestRunDifference_DiffType.Descriptor instead.
func (TestRunDifference_DiffType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{4, 0}
}
// The type of coverage score requested.
type CalculateCoverageRequest_CoverageType int32
const (
// Should never be used.
CalculateCoverageRequest_COVERAGE_TYPE_UNSPECIFIED CalculateCoverageRequest_CoverageType = 0
// Intent coverage.
CalculateCoverageRequest_INTENT CalculateCoverageRequest_CoverageType = 1
// Page transition coverage.
CalculateCoverageRequest_PAGE_TRANSITION CalculateCoverageRequest_CoverageType = 2
// Transition route group coverage.
CalculateCoverageRequest_TRANSITION_ROUTE_GROUP CalculateCoverageRequest_CoverageType = 3
)
// Enum value maps for CalculateCoverageRequest_CoverageType.
var (
CalculateCoverageRequest_CoverageType_name = map[int32]string{
0: "COVERAGE_TYPE_UNSPECIFIED",
1: "INTENT",
2: "PAGE_TRANSITION",
3: "TRANSITION_ROUTE_GROUP",
}
CalculateCoverageRequest_CoverageType_value = map[string]int32{
"COVERAGE_TYPE_UNSPECIFIED": 0,
"INTENT": 1,
"PAGE_TRANSITION": 2,
"TRANSITION_ROUTE_GROUP": 3,
}
)
func (x CalculateCoverageRequest_CoverageType) Enum() *CalculateCoverageRequest_CoverageType {
p := new(CalculateCoverageRequest_CoverageType)
*p = x
return p
}
func (x CalculateCoverageRequest_CoverageType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (CalculateCoverageRequest_CoverageType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[2].Descriptor()
}
func (CalculateCoverageRequest_CoverageType) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[2]
}
func (x CalculateCoverageRequest_CoverageType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use CalculateCoverageRequest_CoverageType.Descriptor instead.
func (CalculateCoverageRequest_CoverageType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{8, 0}
}
// Specifies how much test case information to include in the response.
type ListTestCasesRequest_TestCaseView int32
const (
// The default / unset value.
// The API will default to the BASIC view.
ListTestCasesRequest_TEST_CASE_VIEW_UNSPECIFIED ListTestCasesRequest_TestCaseView = 0
// Include basic metadata about the test case, but not the conversation
// turns. This is the default value.
ListTestCasesRequest_BASIC ListTestCasesRequest_TestCaseView = 1
// Include everything.
ListTestCasesRequest_FULL ListTestCasesRequest_TestCaseView = 2
)
// Enum value maps for ListTestCasesRequest_TestCaseView.
var (
ListTestCasesRequest_TestCaseView_name = map[int32]string{
0: "TEST_CASE_VIEW_UNSPECIFIED",
1: "BASIC",
2: "FULL",
}
ListTestCasesRequest_TestCaseView_value = map[string]int32{
"TEST_CASE_VIEW_UNSPECIFIED": 0,
"BASIC": 1,
"FULL": 2,
}
)
func (x ListTestCasesRequest_TestCaseView) Enum() *ListTestCasesRequest_TestCaseView {
p := new(ListTestCasesRequest_TestCaseView)
*p = x
return p
}
func (x ListTestCasesRequest_TestCaseView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ListTestCasesRequest_TestCaseView) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[3].Descriptor()
}
func (ListTestCasesRequest_TestCaseView) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[3]
}
func (x ListTestCasesRequest_TestCaseView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ListTestCasesRequest_TestCaseView.Descriptor instead.
func (ListTestCasesRequest_TestCaseView) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{10, 0}
}
// Data format of the exported test cases.
type ExportTestCasesRequest_DataFormat int32
const (
// Unspecified format.
ExportTestCasesRequest_DATA_FORMAT_UNSPECIFIED ExportTestCasesRequest_DataFormat = 0
// Raw bytes.
ExportTestCasesRequest_BLOB ExportTestCasesRequest_DataFormat = 1
// JSON format.
ExportTestCasesRequest_JSON ExportTestCasesRequest_DataFormat = 2
)
// Enum value maps for ExportTestCasesRequest_DataFormat.
var (
ExportTestCasesRequest_DataFormat_name = map[int32]string{
0: "DATA_FORMAT_UNSPECIFIED",
1: "BLOB",
2: "JSON",
}
ExportTestCasesRequest_DataFormat_value = map[string]int32{
"DATA_FORMAT_UNSPECIFIED": 0,
"BLOB": 1,
"JSON": 2,
}
)
func (x ExportTestCasesRequest_DataFormat) Enum() *ExportTestCasesRequest_DataFormat {
p := new(ExportTestCasesRequest_DataFormat)
*p = x
return p
}
func (x ExportTestCasesRequest_DataFormat) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (ExportTestCasesRequest_DataFormat) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[4].Descriptor()
}
func (ExportTestCasesRequest_DataFormat) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_test_case_proto_enumTypes[4]
}
func (x ExportTestCasesRequest_DataFormat) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use ExportTestCasesRequest_DataFormat.Descriptor instead.
func (ExportTestCasesRequest_DataFormat) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{27, 0}
}
// Represents a test case.
type TestCase struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The unique identifier of the test case.
// [TestCases.CreateTestCase][google.cloud.dialogflow.cx.v3.TestCases.CreateTestCase]
// will populate the name automatically. Otherwise use format:
// `projects/<Project ID>/locations/<LocationID>/agents/
// <AgentID>/testCases/<TestCase ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Tags are short descriptions that users may apply to test cases for
// organizational and filtering purposes. Each tag should start with "#" and
// has a limit of 30 characters.
Tags []string `protobuf:"bytes,2,rep,name=tags,proto3" json:"tags,omitempty"`
// Required. The human-readable name of the test case, unique within the
// agent. Limit of 200 characters.
DisplayName string `protobuf:"bytes,3,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Additional freeform notes about the test case. Limit of 400 characters.
Notes string `protobuf:"bytes,4,opt,name=notes,proto3" json:"notes,omitempty"`
// Config for the test case.
TestConfig *TestConfig `protobuf:"bytes,13,opt,name=test_config,json=testConfig,proto3" json:"test_config,omitempty"`
// The conversation turns uttered when the test case was created, in
// chronological order. These include the canonical set of agent utterances
// that should occur when the agent is working properly.
TestCaseConversationTurns []*ConversationTurn `protobuf:"bytes,5,rep,name=test_case_conversation_turns,json=testCaseConversationTurns,proto3" json:"test_case_conversation_turns,omitempty"`
// Output only. When the test was created.
CreationTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=creation_time,json=creationTime,proto3" json:"creation_time,omitempty"`
// The latest test result.
LastTestResult *TestCaseResult `protobuf:"bytes,12,opt,name=last_test_result,json=lastTestResult,proto3" json:"last_test_result,omitempty"`
}
func (x *TestCase) Reset() {
*x = TestCase{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCase) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCase) ProtoMessage() {}
func (x *TestCase) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 TestCase.ProtoReflect.Descriptor instead.
func (*TestCase) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{0}
}
func (x *TestCase) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TestCase) GetTags() []string {
if x != nil {
return x.Tags
}
return nil
}
func (x *TestCase) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *TestCase) GetNotes() string {
if x != nil {
return x.Notes
}
return ""
}
func (x *TestCase) GetTestConfig() *TestConfig {
if x != nil {
return x.TestConfig
}
return nil
}
func (x *TestCase) GetTestCaseConversationTurns() []*ConversationTurn {
if x != nil {
return x.TestCaseConversationTurns
}
return nil
}
func (x *TestCase) GetCreationTime() *timestamppb.Timestamp {
if x != nil {
return x.CreationTime
}
return nil
}
func (x *TestCase) GetLastTestResult() *TestCaseResult {
if x != nil {
return x.LastTestResult
}
return nil
}
// Represents a result from running a test case in an agent environment.
type TestCaseResult struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The resource name for the test case result. Format:
// `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/testCases/
// <TestCase ID>/results/<TestCaseResult ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Environment where the test was run. If not set, it indicates the draft
// environment.
Environment string `protobuf:"bytes,2,opt,name=environment,proto3" json:"environment,omitempty"`
// The conversation turns uttered during the test case replay in chronological
// order.
ConversationTurns []*ConversationTurn `protobuf:"bytes,3,rep,name=conversation_turns,json=conversationTurns,proto3" json:"conversation_turns,omitempty"`
// Whether the test case passed in the agent environment.
TestResult TestResult `protobuf:"varint,4,opt,name=test_result,json=testResult,proto3,enum=google.cloud.dialogflow.cx.v3.TestResult" json:"test_result,omitempty"`
// The time that the test was run.
TestTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=test_time,json=testTime,proto3" json:"test_time,omitempty"`
}
func (x *TestCaseResult) Reset() {
*x = TestCaseResult{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestCaseResult) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestCaseResult) ProtoMessage() {}
func (x *TestCaseResult) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 TestCaseResult.ProtoReflect.Descriptor instead.
func (*TestCaseResult) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{1}
}
func (x *TestCaseResult) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *TestCaseResult) GetEnvironment() string {
if x != nil {
return x.Environment
}
return ""
}
func (x *TestCaseResult) GetConversationTurns() []*ConversationTurn {
if x != nil {
return x.ConversationTurns
}
return nil
}
func (x *TestCaseResult) GetTestResult() TestResult {
if x != nil {
return x.TestResult
}
return TestResult_TEST_RESULT_UNSPECIFIED
}
func (x *TestCaseResult) GetTestTime() *timestamppb.Timestamp {
if x != nil {
return x.TestTime
}
return nil
}
// Represents configurations for a test case.
type TestConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Session parameters to be compared when calculating differences.
TrackingParameters []string `protobuf:"bytes,1,rep,name=tracking_parameters,json=trackingParameters,proto3" json:"tracking_parameters,omitempty"`
// Flow name to start the test case with.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/flows/<Flow ID>`.
//
// Only one of `flow` and `page` should be set to indicate the starting point
// of the test case. If both are set, `page` takes precedence over `flow`. If
// neither is set, the test case will start with start page on the default
// start flow.
Flow string `protobuf:"bytes,2,opt,name=flow,proto3" json:"flow,omitempty"`
// The [page][google.cloud.dialogflow.cx.v3.Page] to start the test case with.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/flows/<Flow ID>/pages/<Page ID>`.
//
// Only one of `flow` and `page` should be set to indicate the starting point
// of the test case. If both are set, `page` takes precedence over `flow`. If
// neither is set, the test case will start with start page on the default
// start flow.
Page string `protobuf:"bytes,3,opt,name=page,proto3" json:"page,omitempty"`
}
func (x *TestConfig) Reset() {
*x = TestConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestConfig) ProtoMessage() {}
func (x *TestConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 TestConfig.ProtoReflect.Descriptor instead.
func (*TestConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{2}
}
func (x *TestConfig) GetTrackingParameters() []string {
if x != nil {
return x.TrackingParameters
}
return nil
}
func (x *TestConfig) GetFlow() string {
if x != nil {
return x.Flow
}
return ""
}
func (x *TestConfig) GetPage() string {
if x != nil {
return x.Page
}
return ""
}
// One interaction between a human and virtual agent. The human provides some
// input and the virtual agent provides a response.
type ConversationTurn struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The user input.
UserInput *ConversationTurn_UserInput `protobuf:"bytes,1,opt,name=user_input,json=userInput,proto3" json:"user_input,omitempty"`
// The virtual agent output.
VirtualAgentOutput *ConversationTurn_VirtualAgentOutput `protobuf:"bytes,2,opt,name=virtual_agent_output,json=virtualAgentOutput,proto3" json:"virtual_agent_output,omitempty"`
}
func (x *ConversationTurn) Reset() {
*x = ConversationTurn{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ConversationTurn) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ConversationTurn) ProtoMessage() {}
func (x *ConversationTurn) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 ConversationTurn.ProtoReflect.Descriptor instead.
func (*ConversationTurn) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{3}
}
func (x *ConversationTurn) GetUserInput() *ConversationTurn_UserInput {
if x != nil {
return x.UserInput
}
return nil
}
func (x *ConversationTurn) GetVirtualAgentOutput() *ConversationTurn_VirtualAgentOutput {
if x != nil {
return x.VirtualAgentOutput
}
return nil
}
// The description of differences between original and replayed agent output.
type TestRunDifference struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The type of diff.
Type TestRunDifference_DiffType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.dialogflow.cx.v3.TestRunDifference_DiffType" json:"type,omitempty"`
// A description of the diff, showing the actual output vs expected output.
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
}
func (x *TestRunDifference) Reset() {
*x = TestRunDifference{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TestRunDifference) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TestRunDifference) ProtoMessage() {}
func (x *TestRunDifference) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 TestRunDifference.ProtoReflect.Descriptor instead.
func (*TestRunDifference) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{4}
}
func (x *TestRunDifference) GetType() TestRunDifference_DiffType {
if x != nil {
return x.Type
}
return TestRunDifference_DIFF_TYPE_UNSPECIFIED
}
func (x *TestRunDifference) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
// Transition coverage represents the percentage of all possible page
// transitions (page-level transition routes and event handlers, excluding
// transition route groups) present within any of a parent's test cases.
type TransitionCoverage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of Transitions present in the agent.
Transitions []*TransitionCoverage_Transition `protobuf:"bytes,1,rep,name=transitions,proto3" json:"transitions,omitempty"`
// The percent of transitions in the agent that are covered.
CoverageScore float32 `protobuf:"fixed32,2,opt,name=coverage_score,json=coverageScore,proto3" json:"coverage_score,omitempty"`
}
func (x *TransitionCoverage) Reset() {
*x = TransitionCoverage{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransitionCoverage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransitionCoverage) ProtoMessage() {}
func (x *TransitionCoverage) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 TransitionCoverage.ProtoReflect.Descriptor instead.
func (*TransitionCoverage) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{5}
}
func (x *TransitionCoverage) GetTransitions() []*TransitionCoverage_Transition {
if x != nil {
return x.Transitions
}
return nil
}
func (x *TransitionCoverage) GetCoverageScore() float32 {
if x != nil {
return x.CoverageScore
}
return 0
}
// Transition route group coverage represents the percentage of all possible
// transition routes present within any of a parent's test cases. The results
// are grouped by the transition route group.
type TransitionRouteGroupCoverage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Transition route group coverages.
Coverages []*TransitionRouteGroupCoverage_Coverage `protobuf:"bytes,1,rep,name=coverages,proto3" json:"coverages,omitempty"`
// The percent of transition routes in all the transition route groups that
// are covered.
CoverageScore float32 `protobuf:"fixed32,2,opt,name=coverage_score,json=coverageScore,proto3" json:"coverage_score,omitempty"`
}
func (x *TransitionRouteGroupCoverage) Reset() {
*x = TransitionRouteGroupCoverage{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TransitionRouteGroupCoverage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TransitionRouteGroupCoverage) ProtoMessage() {}
func (x *TransitionRouteGroupCoverage) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 TransitionRouteGroupCoverage.ProtoReflect.Descriptor instead.
func (*TransitionRouteGroupCoverage) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{6}
}
func (x *TransitionRouteGroupCoverage) GetCoverages() []*TransitionRouteGroupCoverage_Coverage {
if x != nil {
return x.Coverages
}
return nil
}
func (x *TransitionRouteGroupCoverage) GetCoverageScore() float32 {
if x != nil {
return x.CoverageScore
}
return 0
}
// Intent coverage represents the percentage of all possible intents in the
// agent that are triggered in any of a parent's test cases.
type IntentCoverage struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of Intents present in the agent
Intents []*IntentCoverage_Intent `protobuf:"bytes,1,rep,name=intents,proto3" json:"intents,omitempty"`
// The percent of intents in the agent that are covered.
CoverageScore float32 `protobuf:"fixed32,2,opt,name=coverage_score,json=coverageScore,proto3" json:"coverage_score,omitempty"`
}
func (x *IntentCoverage) Reset() {
*x = IntentCoverage{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *IntentCoverage) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*IntentCoverage) ProtoMessage() {}
func (x *IntentCoverage) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_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 IntentCoverage.ProtoReflect.Descriptor instead.
func (*IntentCoverage) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{7}
}
func (x *IntentCoverage) GetIntents() []*IntentCoverage_Intent {
if x != nil {
return x.Intents
}
return nil
}
func (x *IntentCoverage) GetCoverageScore() float32 {
if x != nil {
return x.CoverageScore
}
return 0
}
// The request message for
// [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
type CalculateCoverageRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The agent to calculate coverage for.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
Agent string `protobuf:"bytes,3,opt,name=agent,proto3" json:"agent,omitempty"`
// Required. The type of coverage requested.
Type CalculateCoverageRequest_CoverageType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.dialogflow.cx.v3.CalculateCoverageRequest_CoverageType" json:"type,omitempty"`
}
func (x *CalculateCoverageRequest) Reset() {
*x = CalculateCoverageRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CalculateCoverageRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CalculateCoverageRequest) ProtoMessage() {}
func (x *CalculateCoverageRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_test_case_proto_msgTypes[8]
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 CalculateCoverageRequest.ProtoReflect.Descriptor instead.
func (*CalculateCoverageRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_test_case_proto_rawDescGZIP(), []int{8}
}
func (x *CalculateCoverageRequest) GetAgent() string {
if x != nil {
return x.Agent
}
return ""
}
func (x *CalculateCoverageRequest) GetType() CalculateCoverageRequest_CoverageType {
if x != nil {
return x.Type
}
return CalculateCoverageRequest_COVERAGE_TYPE_UNSPECIFIED
}
// The response message for
// [TestCases.CalculateCoverage][google.cloud.dialogflow.cx.v3.TestCases.CalculateCoverage].
type CalculateCoverageResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The agent to calculate coverage for.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
Agent string `protobuf:"bytes,5,opt,name=agent,proto3" json:"agent,omitempty"`
// The type of coverage requested.
//
// Types that are assignable to CoverageType:
// *CalculateCoverageResponse_IntentCoverage
// *CalculateCoverageResponse_TransitionCoverage
// *CalculateCoverageResponse_RouteGroupCoverage
CoverageType isCalculateCoverageResponse_CoverageType `protobuf_oneof:"coverage_type"`
}
func (x *CalculateCoverageResponse) Reset() {
*x = CalculateCoverageResponse{}