/
intent.pb.go
7581 lines (6780 loc) · 334 KB
/
intent.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 2020 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.25.0
// protoc v3.13.0
// source: google/cloud/dialogflow/v2beta1/intent.proto
package dialogflow
import (
context "context"
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "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"
_ "google.golang.org/protobuf/types/known/durationpb"
emptypb "google.golang.org/protobuf/types/known/emptypb"
fieldmaskpb "google.golang.org/protobuf/types/known/fieldmaskpb"
structpb "google.golang.org/protobuf/types/known/structpb"
)
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)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
// Represents the options for views of an intent.
// An intent can be a sizable object. Therefore, we provide a resource view that
// does not return training phrases in the response by default.
type IntentView int32
const (
// Training phrases field is not populated in the response.
IntentView_INTENT_VIEW_UNSPECIFIED IntentView = 0
// All fields are populated.
IntentView_INTENT_VIEW_FULL IntentView = 1
)
// Enum value maps for IntentView.
var (
IntentView_name = map[int32]string{
0: "INTENT_VIEW_UNSPECIFIED",
1: "INTENT_VIEW_FULL",
}
IntentView_value = map[string]int32{
"INTENT_VIEW_UNSPECIFIED": 0,
"INTENT_VIEW_FULL": 1,
}
)
func (x IntentView) Enum() *IntentView {
p := new(IntentView)
*p = x
return p
}
func (x IntentView) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (IntentView) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[0].Descriptor()
}
func (IntentView) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[0]
}
func (x IntentView) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use IntentView.Descriptor instead.
func (IntentView) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0}
}
// Represents the different states that webhooks can be in.
type Intent_WebhookState int32
const (
// Webhook is disabled in the agent and in the intent.
Intent_WEBHOOK_STATE_UNSPECIFIED Intent_WebhookState = 0
// Webhook is enabled in the agent and in the intent.
Intent_WEBHOOK_STATE_ENABLED Intent_WebhookState = 1
// Webhook is enabled in the agent and in the intent. Also, each slot
// filling prompt is forwarded to the webhook.
Intent_WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING Intent_WebhookState = 2
)
// Enum value maps for Intent_WebhookState.
var (
Intent_WebhookState_name = map[int32]string{
0: "WEBHOOK_STATE_UNSPECIFIED",
1: "WEBHOOK_STATE_ENABLED",
2: "WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING",
}
Intent_WebhookState_value = map[string]int32{
"WEBHOOK_STATE_UNSPECIFIED": 0,
"WEBHOOK_STATE_ENABLED": 1,
"WEBHOOK_STATE_ENABLED_FOR_SLOT_FILLING": 2,
}
)
func (x Intent_WebhookState) Enum() *Intent_WebhookState {
p := new(Intent_WebhookState)
*p = x
return p
}
func (x Intent_WebhookState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_WebhookState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[1].Descriptor()
}
func (Intent_WebhookState) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[1]
}
func (x Intent_WebhookState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_WebhookState.Descriptor instead.
func (Intent_WebhookState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 0}
}
// Represents different types of training phrases.
type Intent_TrainingPhrase_Type int32
const (
// Not specified. This value should never be used.
Intent_TrainingPhrase_TYPE_UNSPECIFIED Intent_TrainingPhrase_Type = 0
// Examples do not contain @-prefixed entity type names, but example parts
// can be annotated with entity types.
Intent_TrainingPhrase_EXAMPLE Intent_TrainingPhrase_Type = 1
// Templates are not annotated with entity types, but they can contain
// @-prefixed entity type names as substrings.
// Template mode has been deprecated. Example mode is the only supported
// way to create new training phrases. If you have existing training
// phrases that you've created in template mode, those will continue to
// work.
//
// Deprecated: Do not use.
Intent_TrainingPhrase_TEMPLATE Intent_TrainingPhrase_Type = 2
)
// Enum value maps for Intent_TrainingPhrase_Type.
var (
Intent_TrainingPhrase_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "EXAMPLE",
2: "TEMPLATE",
}
Intent_TrainingPhrase_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"EXAMPLE": 1,
"TEMPLATE": 2,
}
)
func (x Intent_TrainingPhrase_Type) Enum() *Intent_TrainingPhrase_Type {
p := new(Intent_TrainingPhrase_Type)
*p = x
return p
}
func (x Intent_TrainingPhrase_Type) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_TrainingPhrase_Type) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[2].Descriptor()
}
func (Intent_TrainingPhrase_Type) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[2]
}
func (x Intent_TrainingPhrase_Type) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_TrainingPhrase_Type.Descriptor instead.
func (Intent_TrainingPhrase_Type) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 0, 0}
}
// Represents different platforms that a rich message can be intended for.
type Intent_Message_Platform int32
const (
// Not specified.
Intent_Message_PLATFORM_UNSPECIFIED Intent_Message_Platform = 0
// Facebook.
Intent_Message_FACEBOOK Intent_Message_Platform = 1
// Slack.
Intent_Message_SLACK Intent_Message_Platform = 2
// Telegram.
Intent_Message_TELEGRAM Intent_Message_Platform = 3
// Kik.
Intent_Message_KIK Intent_Message_Platform = 4
// Skype.
Intent_Message_SKYPE Intent_Message_Platform = 5
// Line.
Intent_Message_LINE Intent_Message_Platform = 6
// Viber.
Intent_Message_VIBER Intent_Message_Platform = 7
// Google Assistant
// See [Dialogflow webhook
// format](https://developers.google.com/assistant/actions/build/json/dialogflow-webhook-json)
Intent_Message_ACTIONS_ON_GOOGLE Intent_Message_Platform = 8
// Telephony Gateway.
Intent_Message_TELEPHONY Intent_Message_Platform = 10
// Google Hangouts.
Intent_Message_GOOGLE_HANGOUTS Intent_Message_Platform = 11
)
// Enum value maps for Intent_Message_Platform.
var (
Intent_Message_Platform_name = map[int32]string{
0: "PLATFORM_UNSPECIFIED",
1: "FACEBOOK",
2: "SLACK",
3: "TELEGRAM",
4: "KIK",
5: "SKYPE",
6: "LINE",
7: "VIBER",
8: "ACTIONS_ON_GOOGLE",
10: "TELEPHONY",
11: "GOOGLE_HANGOUTS",
}
Intent_Message_Platform_value = map[string]int32{
"PLATFORM_UNSPECIFIED": 0,
"FACEBOOK": 1,
"SLACK": 2,
"TELEGRAM": 3,
"KIK": 4,
"SKYPE": 5,
"LINE": 6,
"VIBER": 7,
"ACTIONS_ON_GOOGLE": 8,
"TELEPHONY": 10,
"GOOGLE_HANGOUTS": 11,
}
)
func (x Intent_Message_Platform) Enum() *Intent_Message_Platform {
p := new(Intent_Message_Platform)
*p = x
return p
}
func (x Intent_Message_Platform) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_Platform) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[3].Descriptor()
}
func (Intent_Message_Platform) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[3]
}
func (x Intent_Message_Platform) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_Platform.Descriptor instead.
func (Intent_Message_Platform) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 0}
}
// The width of the cards in the carousel.
type Intent_Message_RbmCarouselCard_CardWidth int32
const (
// Not specified.
Intent_Message_RbmCarouselCard_CARD_WIDTH_UNSPECIFIED Intent_Message_RbmCarouselCard_CardWidth = 0
// 120 DP. Note that tall media cannot be used.
Intent_Message_RbmCarouselCard_SMALL Intent_Message_RbmCarouselCard_CardWidth = 1
// 232 DP.
Intent_Message_RbmCarouselCard_MEDIUM Intent_Message_RbmCarouselCard_CardWidth = 2
)
// Enum value maps for Intent_Message_RbmCarouselCard_CardWidth.
var (
Intent_Message_RbmCarouselCard_CardWidth_name = map[int32]string{
0: "CARD_WIDTH_UNSPECIFIED",
1: "SMALL",
2: "MEDIUM",
}
Intent_Message_RbmCarouselCard_CardWidth_value = map[string]int32{
"CARD_WIDTH_UNSPECIFIED": 0,
"SMALL": 1,
"MEDIUM": 2,
}
)
func (x Intent_Message_RbmCarouselCard_CardWidth) Enum() *Intent_Message_RbmCarouselCard_CardWidth {
p := new(Intent_Message_RbmCarouselCard_CardWidth)
*p = x
return p
}
func (x Intent_Message_RbmCarouselCard_CardWidth) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_RbmCarouselCard_CardWidth) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[4].Descriptor()
}
func (Intent_Message_RbmCarouselCard_CardWidth) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[4]
}
func (x Intent_Message_RbmCarouselCard_CardWidth) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_RbmCarouselCard_CardWidth.Descriptor instead.
func (Intent_Message_RbmCarouselCard_CardWidth) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 17, 0}
}
// Orientation of the card.
type Intent_Message_RbmStandaloneCard_CardOrientation int32
const (
// Not specified.
Intent_Message_RbmStandaloneCard_CARD_ORIENTATION_UNSPECIFIED Intent_Message_RbmStandaloneCard_CardOrientation = 0
// Horizontal layout.
Intent_Message_RbmStandaloneCard_HORIZONTAL Intent_Message_RbmStandaloneCard_CardOrientation = 1
// Vertical layout.
Intent_Message_RbmStandaloneCard_VERTICAL Intent_Message_RbmStandaloneCard_CardOrientation = 2
)
// Enum value maps for Intent_Message_RbmStandaloneCard_CardOrientation.
var (
Intent_Message_RbmStandaloneCard_CardOrientation_name = map[int32]string{
0: "CARD_ORIENTATION_UNSPECIFIED",
1: "HORIZONTAL",
2: "VERTICAL",
}
Intent_Message_RbmStandaloneCard_CardOrientation_value = map[string]int32{
"CARD_ORIENTATION_UNSPECIFIED": 0,
"HORIZONTAL": 1,
"VERTICAL": 2,
}
)
func (x Intent_Message_RbmStandaloneCard_CardOrientation) Enum() *Intent_Message_RbmStandaloneCard_CardOrientation {
p := new(Intent_Message_RbmStandaloneCard_CardOrientation)
*p = x
return p
}
func (x Intent_Message_RbmStandaloneCard_CardOrientation) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_RbmStandaloneCard_CardOrientation) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[5].Descriptor()
}
func (Intent_Message_RbmStandaloneCard_CardOrientation) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[5]
}
func (x Intent_Message_RbmStandaloneCard_CardOrientation) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_RbmStandaloneCard_CardOrientation.Descriptor instead.
func (Intent_Message_RbmStandaloneCard_CardOrientation) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 18, 0}
}
// Thumbnail preview alignment for standalone cards with horizontal
// layout.
type Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment int32
const (
// Not specified.
Intent_Message_RbmStandaloneCard_THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment = 0
// Thumbnail preview is left-aligned.
Intent_Message_RbmStandaloneCard_LEFT Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment = 1
// Thumbnail preview is right-aligned.
Intent_Message_RbmStandaloneCard_RIGHT Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment = 2
)
// Enum value maps for Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment.
var (
Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment_name = map[int32]string{
0: "THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED",
1: "LEFT",
2: "RIGHT",
}
Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment_value = map[string]int32{
"THUMBNAIL_IMAGE_ALIGNMENT_UNSPECIFIED": 0,
"LEFT": 1,
"RIGHT": 2,
}
)
func (x Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment) Enum() *Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment {
p := new(Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment)
*p = x
return p
}
func (x Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[6].Descriptor()
}
func (Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[6]
}
func (x Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment.Descriptor instead.
func (Intent_Message_RbmStandaloneCard_ThumbnailImageAlignment) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 18, 1}
}
// Media height
type Intent_Message_RbmCardContent_RbmMedia_Height int32
const (
// Not specified.
Intent_Message_RbmCardContent_RbmMedia_HEIGHT_UNSPECIFIED Intent_Message_RbmCardContent_RbmMedia_Height = 0
// 112 DP.
Intent_Message_RbmCardContent_RbmMedia_SHORT Intent_Message_RbmCardContent_RbmMedia_Height = 1
// 168 DP.
Intent_Message_RbmCardContent_RbmMedia_MEDIUM Intent_Message_RbmCardContent_RbmMedia_Height = 2
// 264 DP. Not available for rich card carousels when the card width
// is set to small.
Intent_Message_RbmCardContent_RbmMedia_TALL Intent_Message_RbmCardContent_RbmMedia_Height = 3
)
// Enum value maps for Intent_Message_RbmCardContent_RbmMedia_Height.
var (
Intent_Message_RbmCardContent_RbmMedia_Height_name = map[int32]string{
0: "HEIGHT_UNSPECIFIED",
1: "SHORT",
2: "MEDIUM",
3: "TALL",
}
Intent_Message_RbmCardContent_RbmMedia_Height_value = map[string]int32{
"HEIGHT_UNSPECIFIED": 0,
"SHORT": 1,
"MEDIUM": 2,
"TALL": 3,
}
)
func (x Intent_Message_RbmCardContent_RbmMedia_Height) Enum() *Intent_Message_RbmCardContent_RbmMedia_Height {
p := new(Intent_Message_RbmCardContent_RbmMedia_Height)
*p = x
return p
}
func (x Intent_Message_RbmCardContent_RbmMedia_Height) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_RbmCardContent_RbmMedia_Height) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[7].Descriptor()
}
func (Intent_Message_RbmCardContent_RbmMedia_Height) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[7]
}
func (x Intent_Message_RbmCardContent_RbmMedia_Height) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_RbmCardContent_RbmMedia_Height.Descriptor instead.
func (Intent_Message_RbmCardContent_RbmMedia_Height) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 19, 0, 0}
}
// Format of response media type.
type Intent_Message_MediaContent_ResponseMediaType int32
const (
// Unspecified.
Intent_Message_MediaContent_RESPONSE_MEDIA_TYPE_UNSPECIFIED Intent_Message_MediaContent_ResponseMediaType = 0
// Response media type is audio.
Intent_Message_MediaContent_AUDIO Intent_Message_MediaContent_ResponseMediaType = 1
)
// Enum value maps for Intent_Message_MediaContent_ResponseMediaType.
var (
Intent_Message_MediaContent_ResponseMediaType_name = map[int32]string{
0: "RESPONSE_MEDIA_TYPE_UNSPECIFIED",
1: "AUDIO",
}
Intent_Message_MediaContent_ResponseMediaType_value = map[string]int32{
"RESPONSE_MEDIA_TYPE_UNSPECIFIED": 0,
"AUDIO": 1,
}
)
func (x Intent_Message_MediaContent_ResponseMediaType) Enum() *Intent_Message_MediaContent_ResponseMediaType {
p := new(Intent_Message_MediaContent_ResponseMediaType)
*p = x
return p
}
func (x Intent_Message_MediaContent_ResponseMediaType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_MediaContent_ResponseMediaType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[8].Descriptor()
}
func (Intent_Message_MediaContent_ResponseMediaType) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[8]
}
func (x Intent_Message_MediaContent_ResponseMediaType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_MediaContent_ResponseMediaType.Descriptor instead.
func (Intent_Message_MediaContent_ResponseMediaType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 23, 0}
}
// Image display options for Actions on Google. This should be used for
// when the image's aspect ratio does not match the image container's
// aspect ratio.
type Intent_Message_BrowseCarouselCard_ImageDisplayOptions int32
const (
// Fill the gaps between the image and the image container with gray
// bars.
Intent_Message_BrowseCarouselCard_IMAGE_DISPLAY_OPTIONS_UNSPECIFIED Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 0
// Fill the gaps between the image and the image container with gray
// bars.
Intent_Message_BrowseCarouselCard_GRAY Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 1
// Fill the gaps between the image and the image container with white
// bars.
Intent_Message_BrowseCarouselCard_WHITE Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 2
// Image is scaled such that the image width and height match or exceed
// the container dimensions. This may crop the top and bottom of the
// image if the scaled image height is greater than the container
// height, or crop the left and right of the image if the scaled image
// width is greater than the container width. This is similar to "Zoom
// Mode" on a widescreen TV when playing a 4:3 video.
Intent_Message_BrowseCarouselCard_CROPPED Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 3
// Pad the gaps between image and image frame with a blurred copy of the
// same image.
Intent_Message_BrowseCarouselCard_BLURRED_BACKGROUND Intent_Message_BrowseCarouselCard_ImageDisplayOptions = 4
)
// Enum value maps for Intent_Message_BrowseCarouselCard_ImageDisplayOptions.
var (
Intent_Message_BrowseCarouselCard_ImageDisplayOptions_name = map[int32]string{
0: "IMAGE_DISPLAY_OPTIONS_UNSPECIFIED",
1: "GRAY",
2: "WHITE",
3: "CROPPED",
4: "BLURRED_BACKGROUND",
}
Intent_Message_BrowseCarouselCard_ImageDisplayOptions_value = map[string]int32{
"IMAGE_DISPLAY_OPTIONS_UNSPECIFIED": 0,
"GRAY": 1,
"WHITE": 2,
"CROPPED": 3,
"BLURRED_BACKGROUND": 4,
}
)
func (x Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Enum() *Intent_Message_BrowseCarouselCard_ImageDisplayOptions {
p := new(Intent_Message_BrowseCarouselCard_ImageDisplayOptions)
*p = x
return p
}
func (x Intent_Message_BrowseCarouselCard_ImageDisplayOptions) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[9].Descriptor()
}
func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[9]
}
func (x Intent_Message_BrowseCarouselCard_ImageDisplayOptions) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_BrowseCarouselCard_ImageDisplayOptions.Descriptor instead.
func (Intent_Message_BrowseCarouselCard_ImageDisplayOptions) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 24, 0}
}
// Type of the URI.
type Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint int32
const (
// Unspecified
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_URL_TYPE_HINT_UNSPECIFIED Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 0
// Url would be an amp action
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_ACTION Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 1
// URL that points directly to AMP content, or to a canonical URL
// which refers to AMP content via <link rel="amphtml">.
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_AMP_CONTENT Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint = 2
)
// Enum value maps for Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint.
var (
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_name = map[int32]string{
0: "URL_TYPE_HINT_UNSPECIFIED",
1: "AMP_ACTION",
2: "AMP_CONTENT",
}
Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint_value = map[string]int32{
"URL_TYPE_HINT_UNSPECIFIED": 0,
"AMP_ACTION": 1,
"AMP_CONTENT": 2,
}
)
func (x Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Enum() *Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint {
p := new(Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint)
*p = x
return p
}
func (x Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[10].Descriptor()
}
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[10]
}
func (x Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint.Descriptor instead.
func (Intent_Message_BrowseCarouselCard_BrowseCarouselCardItem_OpenUrlAction_UrlTypeHint) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 24, 0, 0, 0}
}
// Text alignments within a cell.
type Intent_Message_ColumnProperties_HorizontalAlignment int32
const (
// Text is aligned to the leading edge of the column.
Intent_Message_ColumnProperties_HORIZONTAL_ALIGNMENT_UNSPECIFIED Intent_Message_ColumnProperties_HorizontalAlignment = 0
// Text is aligned to the leading edge of the column.
Intent_Message_ColumnProperties_LEADING Intent_Message_ColumnProperties_HorizontalAlignment = 1
// Text is centered in the column.
Intent_Message_ColumnProperties_CENTER Intent_Message_ColumnProperties_HorizontalAlignment = 2
// Text is aligned to the trailing edge of the column.
Intent_Message_ColumnProperties_TRAILING Intent_Message_ColumnProperties_HorizontalAlignment = 3
)
// Enum value maps for Intent_Message_ColumnProperties_HorizontalAlignment.
var (
Intent_Message_ColumnProperties_HorizontalAlignment_name = map[int32]string{
0: "HORIZONTAL_ALIGNMENT_UNSPECIFIED",
1: "LEADING",
2: "CENTER",
3: "TRAILING",
}
Intent_Message_ColumnProperties_HorizontalAlignment_value = map[string]int32{
"HORIZONTAL_ALIGNMENT_UNSPECIFIED": 0,
"LEADING": 1,
"CENTER": 2,
"TRAILING": 3,
}
)
func (x Intent_Message_ColumnProperties_HorizontalAlignment) Enum() *Intent_Message_ColumnProperties_HorizontalAlignment {
p := new(Intent_Message_ColumnProperties_HorizontalAlignment)
*p = x
return p
}
func (x Intent_Message_ColumnProperties_HorizontalAlignment) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Intent_Message_ColumnProperties_HorizontalAlignment) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[11].Descriptor()
}
func (Intent_Message_ColumnProperties_HorizontalAlignment) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_v2beta1_intent_proto_enumTypes[11]
}
func (x Intent_Message_ColumnProperties_HorizontalAlignment) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Intent_Message_ColumnProperties_HorizontalAlignment.Descriptor instead.
func (Intent_Message_ColumnProperties_HorizontalAlignment) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0, 2, 26, 0}
}
// An intent categorizes an end-user's intention for one conversation turn. For
// each agent, you define many intents, where your combined intents can handle a
// complete conversation. When an end-user writes or says something, referred to
// as an end-user expression or end-user input, Dialogflow matches the end-user
// input to the best intent in your agent. Matching an intent is also known as
// intent classification.
//
// For more information, see the [intent
// guide](https://cloud.google.com/dialogflow/docs/intents-overview).
type Intent struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. The unique identifier of this intent.
// Required for [Intents.UpdateIntent][google.cloud.dialogflow.v2beta1.Intents.UpdateIntent] and [Intents.BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents]
// methods.
// Supported formats:
//
// - `projects/<Project ID>/agent/intents/<Intent ID>`
// - `projects/<Project ID>/locations/<Location ID>/agent/intents/<Intent ID>`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The name of this intent.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. Indicates whether webhooks are enabled for the intent.
WebhookState Intent_WebhookState `protobuf:"varint,6,opt,name=webhook_state,json=webhookState,proto3,enum=google.cloud.dialogflow.v2beta1.Intent_WebhookState" json:"webhook_state,omitempty"`
// Optional. The priority of this intent. Higher numbers represent higher
// priorities.
//
// - If the supplied value is unspecified or 0, the service
// translates the value to 500,000, which corresponds to the
// `Normal` priority in the console.
// - If the supplied value is negative, the intent is ignored
// in runtime detect intent requests.
Priority int32 `protobuf:"varint,3,opt,name=priority,proto3" json:"priority,omitempty"`
// Optional. Indicates whether this is a fallback intent.
IsFallback bool `protobuf:"varint,4,opt,name=is_fallback,json=isFallback,proto3" json:"is_fallback,omitempty"`
// Optional. Indicates whether Machine Learning is enabled for the intent.
// Note: If `ml_enabled` setting is set to false, then this intent is not
// taken into account during inference in `ML ONLY` match mode. Also,
// auto-markup in the UI is turned off.
// DEPRECATED! Please use `ml_disabled` field instead.
// NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false,
// then the default value is determined as follows:
//
// - Before April 15th, 2018 the default is:
// ml_enabled = false / ml_disabled = true.
// - After April 15th, 2018 the default is:
// ml_enabled = true / ml_disabled = false.
//
// Deprecated: Do not use.
MlEnabled bool `protobuf:"varint,5,opt,name=ml_enabled,json=mlEnabled,proto3" json:"ml_enabled,omitempty"`
// Optional. Indicates whether Machine Learning is disabled for the intent.
// Note: If `ml_disabled` setting is set to true, then this intent is not
// taken into account during inference in `ML ONLY` match mode. Also,
// auto-markup in the UI is turned off.
MlDisabled bool `protobuf:"varint,19,opt,name=ml_disabled,json=mlDisabled,proto3" json:"ml_disabled,omitempty"`
// Optional. Indicates that this intent ends an interaction. Some integrations
// (e.g., Actions on Google or Dialogflow phone gateway) use this information
// to close interaction with an end user. Default is false.
EndInteraction bool `protobuf:"varint,21,opt,name=end_interaction,json=endInteraction,proto3" json:"end_interaction,omitempty"`
// Optional. The list of context names required for this intent to be
// triggered.
// Formats:
//
// - `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`
// - `projects/<Project ID>/locations/<Location
// ID>/agent/sessions/-/contexts/<Context ID>`
InputContextNames []string `protobuf:"bytes,7,rep,name=input_context_names,json=inputContextNames,proto3" json:"input_context_names,omitempty"`
// Optional. The collection of event names that trigger the intent.
// If the collection of input contexts is not empty, all of the contexts must
// be present in the active user session for an event to trigger this intent.
// Event names are limited to 150 characters.
Events []string `protobuf:"bytes,8,rep,name=events,proto3" json:"events,omitempty"`
// Optional. The collection of examples that the agent is
// trained on.
TrainingPhrases []*Intent_TrainingPhrase `protobuf:"bytes,9,rep,name=training_phrases,json=trainingPhrases,proto3" json:"training_phrases,omitempty"`
// Optional. The name of the action associated with the intent.
// Note: The action name must not contain whitespaces.
Action string `protobuf:"bytes,10,opt,name=action,proto3" json:"action,omitempty"`
// Optional. The collection of contexts that are activated when the intent
// is matched. Context messages in this collection should not set the
// parameters field. Setting the `lifespan_count` to 0 will reset the context
// when the intent is matched.
// Format: `projects/<Project ID>/agent/sessions/-/contexts/<Context ID>`.
OutputContexts []*Context `protobuf:"bytes,11,rep,name=output_contexts,json=outputContexts,proto3" json:"output_contexts,omitempty"`
// Optional. Indicates whether to delete all contexts in the current
// session when this intent is matched.
ResetContexts bool `protobuf:"varint,12,opt,name=reset_contexts,json=resetContexts,proto3" json:"reset_contexts,omitempty"`
// Optional. The collection of parameters associated with the intent.
Parameters []*Intent_Parameter `protobuf:"bytes,13,rep,name=parameters,proto3" json:"parameters,omitempty"`
// Optional. The collection of rich messages corresponding to the
// `Response` field in the Dialogflow console.
Messages []*Intent_Message `protobuf:"bytes,14,rep,name=messages,proto3" json:"messages,omitempty"`
// Optional. The list of platforms for which the first responses will be
// copied from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
DefaultResponsePlatforms []Intent_Message_Platform `protobuf:"varint,15,rep,packed,name=default_response_platforms,json=defaultResponsePlatforms,proto3,enum=google.cloud.dialogflow.v2beta1.Intent_Message_Platform" json:"default_response_platforms,omitempty"`
// Output only. The unique identifier of the root intent in the chain of
// followup intents. It identifies the correct followup intents chain for
// this intent.
//
// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
RootFollowupIntentName string `protobuf:"bytes,16,opt,name=root_followup_intent_name,json=rootFollowupIntentName,proto3" json:"root_followup_intent_name,omitempty"`
// Optional. The unique identifier of the parent intent in the
// chain of followup intents. You can set this field when creating an intent,
// for example with [CreateIntent][google.cloud.dialogflow.v2beta1.Intents.CreateIntent] or
// [BatchUpdateIntents][google.cloud.dialogflow.v2beta1.Intents.BatchUpdateIntents], in order to make this
// intent a followup intent.
//
// It identifies the parent followup intent.
// Format: `projects/<Project ID>/agent/intents/<Intent ID>`.
ParentFollowupIntentName string `protobuf:"bytes,17,opt,name=parent_followup_intent_name,json=parentFollowupIntentName,proto3" json:"parent_followup_intent_name,omitempty"`
// Output only. Information about all followup intents that have this intent as
// a direct or indirect parent. We populate this field only in the output.
FollowupIntentInfo []*Intent_FollowupIntentInfo `protobuf:"bytes,18,rep,name=followup_intent_info,json=followupIntentInfo,proto3" json:"followup_intent_info,omitempty"`
}
func (x *Intent) Reset() {
*x = Intent{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_v2beta1_intent_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Intent) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Intent) ProtoMessage() {}
func (x *Intent) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_v2beta1_intent_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 Intent.ProtoReflect.Descriptor instead.
func (*Intent) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_v2beta1_intent_proto_rawDescGZIP(), []int{0}
}
func (x *Intent) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Intent) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *Intent) GetWebhookState() Intent_WebhookState {
if x != nil {
return x.WebhookState
}
return Intent_WEBHOOK_STATE_UNSPECIFIED
}
func (x *Intent) GetPriority() int32 {
if x != nil {
return x.Priority
}
return 0
}
func (x *Intent) GetIsFallback() bool {
if x != nil {
return x.IsFallback
}
return false
}
// Deprecated: Do not use.
func (x *Intent) GetMlEnabled() bool {
if x != nil {
return x.MlEnabled
}
return false
}
func (x *Intent) GetMlDisabled() bool {
if x != nil {
return x.MlDisabled
}
return false
}
func (x *Intent) GetEndInteraction() bool {
if x != nil {
return x.EndInteraction
}
return false
}
func (x *Intent) GetInputContextNames() []string {
if x != nil {
return x.InputContextNames
}
return nil
}
func (x *Intent) GetEvents() []string {
if x != nil {
return x.Events
}
return nil
}
func (x *Intent) GetTrainingPhrases() []*Intent_TrainingPhrase {
if x != nil {
return x.TrainingPhrases
}
return nil
}
func (x *Intent) GetAction() string {
if x != nil {
return x.Action
}
return ""
}
func (x *Intent) GetOutputContexts() []*Context {
if x != nil {
return x.OutputContexts
}
return nil
}
func (x *Intent) GetResetContexts() bool {
if x != nil {
return x.ResetContexts
}