/
webhook.pb.go
executable file
·3098 lines (2796 loc) · 138 KB
/
webhook.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2023 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.32.0
// protoc v4.25.2
// source: google/cloud/dialogflow/cx/v3/webhook.proto
package cxpb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "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)
)
// Represents the type of webhook configuration.
type Webhook_GenericWebService_WebhookType int32
const (
// Default value. This value is unused.
Webhook_GenericWebService_WEBHOOK_TYPE_UNSPECIFIED Webhook_GenericWebService_WebhookType = 0
// Represents a standard webhook.
Webhook_GenericWebService_STANDARD Webhook_GenericWebService_WebhookType = 1
// Represents a flexible webhook.
Webhook_GenericWebService_FLEXIBLE Webhook_GenericWebService_WebhookType = 2
)
// Enum value maps for Webhook_GenericWebService_WebhookType.
var (
Webhook_GenericWebService_WebhookType_name = map[int32]string{
0: "WEBHOOK_TYPE_UNSPECIFIED",
1: "STANDARD",
2: "FLEXIBLE",
}
Webhook_GenericWebService_WebhookType_value = map[string]int32{
"WEBHOOK_TYPE_UNSPECIFIED": 0,
"STANDARD": 1,
"FLEXIBLE": 2,
}
)
func (x Webhook_GenericWebService_WebhookType) Enum() *Webhook_GenericWebService_WebhookType {
p := new(Webhook_GenericWebService_WebhookType)
*p = x
return p
}
func (x Webhook_GenericWebService_WebhookType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Webhook_GenericWebService_WebhookType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[0].Descriptor()
}
func (Webhook_GenericWebService_WebhookType) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[0]
}
func (x Webhook_GenericWebService_WebhookType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Webhook_GenericWebService_WebhookType.Descriptor instead.
func (Webhook_GenericWebService_WebhookType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{0, 0, 0}
}
// HTTP method to use when calling webhooks.
type Webhook_GenericWebService_HttpMethod int32
const (
// HTTP method not specified.
Webhook_GenericWebService_HTTP_METHOD_UNSPECIFIED Webhook_GenericWebService_HttpMethod = 0
// HTTP POST Method.
Webhook_GenericWebService_POST Webhook_GenericWebService_HttpMethod = 1
// HTTP GET Method.
Webhook_GenericWebService_GET Webhook_GenericWebService_HttpMethod = 2
// HTTP HEAD Method.
Webhook_GenericWebService_HEAD Webhook_GenericWebService_HttpMethod = 3
// HTTP PUT Method.
Webhook_GenericWebService_PUT Webhook_GenericWebService_HttpMethod = 4
// HTTP DELETE Method.
Webhook_GenericWebService_DELETE Webhook_GenericWebService_HttpMethod = 5
// HTTP PATCH Method.
Webhook_GenericWebService_PATCH Webhook_GenericWebService_HttpMethod = 6
// HTTP OPTIONS Method.
Webhook_GenericWebService_OPTIONS Webhook_GenericWebService_HttpMethod = 7
)
// Enum value maps for Webhook_GenericWebService_HttpMethod.
var (
Webhook_GenericWebService_HttpMethod_name = map[int32]string{
0: "HTTP_METHOD_UNSPECIFIED",
1: "POST",
2: "GET",
3: "HEAD",
4: "PUT",
5: "DELETE",
6: "PATCH",
7: "OPTIONS",
}
Webhook_GenericWebService_HttpMethod_value = map[string]int32{
"HTTP_METHOD_UNSPECIFIED": 0,
"POST": 1,
"GET": 2,
"HEAD": 3,
"PUT": 4,
"DELETE": 5,
"PATCH": 6,
"OPTIONS": 7,
}
)
func (x Webhook_GenericWebService_HttpMethod) Enum() *Webhook_GenericWebService_HttpMethod {
p := new(Webhook_GenericWebService_HttpMethod)
*p = x
return p
}
func (x Webhook_GenericWebService_HttpMethod) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Webhook_GenericWebService_HttpMethod) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[1].Descriptor()
}
func (Webhook_GenericWebService_HttpMethod) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[1]
}
func (x Webhook_GenericWebService_HttpMethod) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Webhook_GenericWebService_HttpMethod.Descriptor instead.
func (Webhook_GenericWebService_HttpMethod) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{0, 0, 1}
}
// Defines merge behavior for `messages`.
type WebhookResponse_FulfillmentResponse_MergeBehavior int32
const (
// Not specified. `APPEND` will be used.
WebhookResponse_FulfillmentResponse_MERGE_BEHAVIOR_UNSPECIFIED WebhookResponse_FulfillmentResponse_MergeBehavior = 0
// `messages` will be appended to the list of messages waiting to be sent
// to the user.
WebhookResponse_FulfillmentResponse_APPEND WebhookResponse_FulfillmentResponse_MergeBehavior = 1
// `messages` will replace the list of messages waiting to be sent to the
// user.
WebhookResponse_FulfillmentResponse_REPLACE WebhookResponse_FulfillmentResponse_MergeBehavior = 2
)
// Enum value maps for WebhookResponse_FulfillmentResponse_MergeBehavior.
var (
WebhookResponse_FulfillmentResponse_MergeBehavior_name = map[int32]string{
0: "MERGE_BEHAVIOR_UNSPECIFIED",
1: "APPEND",
2: "REPLACE",
}
WebhookResponse_FulfillmentResponse_MergeBehavior_value = map[string]int32{
"MERGE_BEHAVIOR_UNSPECIFIED": 0,
"APPEND": 1,
"REPLACE": 2,
}
)
func (x WebhookResponse_FulfillmentResponse_MergeBehavior) Enum() *WebhookResponse_FulfillmentResponse_MergeBehavior {
p := new(WebhookResponse_FulfillmentResponse_MergeBehavior)
*p = x
return p
}
func (x WebhookResponse_FulfillmentResponse_MergeBehavior) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (WebhookResponse_FulfillmentResponse_MergeBehavior) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[2].Descriptor()
}
func (WebhookResponse_FulfillmentResponse_MergeBehavior) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[2]
}
func (x WebhookResponse_FulfillmentResponse_MergeBehavior) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use WebhookResponse_FulfillmentResponse_MergeBehavior.Descriptor instead.
func (WebhookResponse_FulfillmentResponse_MergeBehavior) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{8, 0, 0}
}
// Represents the state of a parameter.
type PageInfo_FormInfo_ParameterInfo_ParameterState int32
const (
// Not specified. This value should be never used.
PageInfo_FormInfo_ParameterInfo_PARAMETER_STATE_UNSPECIFIED PageInfo_FormInfo_ParameterInfo_ParameterState = 0
// Indicates that the parameter does not have a value.
PageInfo_FormInfo_ParameterInfo_EMPTY PageInfo_FormInfo_ParameterInfo_ParameterState = 1
// Indicates that the parameter value is invalid. This field can be used
// by the webhook to invalidate the parameter and ask the server to
// collect it from the user again.
PageInfo_FormInfo_ParameterInfo_INVALID PageInfo_FormInfo_ParameterInfo_ParameterState = 2
// Indicates that the parameter has a value.
PageInfo_FormInfo_ParameterInfo_FILLED PageInfo_FormInfo_ParameterInfo_ParameterState = 3
)
// Enum value maps for PageInfo_FormInfo_ParameterInfo_ParameterState.
var (
PageInfo_FormInfo_ParameterInfo_ParameterState_name = map[int32]string{
0: "PARAMETER_STATE_UNSPECIFIED",
1: "EMPTY",
2: "INVALID",
3: "FILLED",
}
PageInfo_FormInfo_ParameterInfo_ParameterState_value = map[string]int32{
"PARAMETER_STATE_UNSPECIFIED": 0,
"EMPTY": 1,
"INVALID": 2,
"FILLED": 3,
}
)
func (x PageInfo_FormInfo_ParameterInfo_ParameterState) Enum() *PageInfo_FormInfo_ParameterInfo_ParameterState {
p := new(PageInfo_FormInfo_ParameterInfo_ParameterState)
*p = x
return p
}
func (x PageInfo_FormInfo_ParameterInfo_ParameterState) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (PageInfo_FormInfo_ParameterInfo_ParameterState) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[3].Descriptor()
}
func (PageInfo_FormInfo_ParameterInfo_ParameterState) Type() protoreflect.EnumType {
return &file_google_cloud_dialogflow_cx_v3_webhook_proto_enumTypes[3]
}
func (x PageInfo_FormInfo_ParameterInfo_ParameterState) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use PageInfo_FormInfo_ParameterInfo_ParameterState.Descriptor instead.
func (PageInfo_FormInfo_ParameterInfo_ParameterState) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{9, 0, 0, 0}
}
// Webhooks host the developer's business logic. During a session, webhooks
// allow the developer to use the data extracted by Dialogflow's natural
// language processing to generate dynamic responses, validate collected data,
// or trigger actions on the backend.
type Webhook struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The unique identifier of the webhook.
// Required for the
// [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook]
// method.
// [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook]
// populates the name automatically. Format: `projects/<Project
// ID>/locations/<Location ID>/agents/<Agent ID>/webhooks/<Webhook ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The human-readable name of the webhook, unique within the agent.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Required. The webhook configuration.
//
// Types that are assignable to Webhook:
//
// *Webhook_GenericWebService_
// *Webhook_ServiceDirectory
Webhook isWebhook_Webhook `protobuf_oneof:"webhook"`
// Webhook execution timeout. Execution is considered failed if Dialogflow
// doesn't receive a response from webhook at the end of the timeout period.
// Defaults to 5 seconds, maximum allowed timeout is 30 seconds.
Timeout *durationpb.Duration `protobuf:"bytes,6,opt,name=timeout,proto3" json:"timeout,omitempty"`
// Indicates whether the webhook is disabled.
Disabled bool `protobuf:"varint,5,opt,name=disabled,proto3" json:"disabled,omitempty"`
}
func (x *Webhook) Reset() {
*x = Webhook{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Webhook) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Webhook) ProtoMessage() {}
func (x *Webhook) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 Webhook.ProtoReflect.Descriptor instead.
func (*Webhook) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{0}
}
func (x *Webhook) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Webhook) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (m *Webhook) GetWebhook() isWebhook_Webhook {
if m != nil {
return m.Webhook
}
return nil
}
func (x *Webhook) GetGenericWebService() *Webhook_GenericWebService {
if x, ok := x.GetWebhook().(*Webhook_GenericWebService_); ok {
return x.GenericWebService
}
return nil
}
func (x *Webhook) GetServiceDirectory() *Webhook_ServiceDirectoryConfig {
if x, ok := x.GetWebhook().(*Webhook_ServiceDirectory); ok {
return x.ServiceDirectory
}
return nil
}
func (x *Webhook) GetTimeout() *durationpb.Duration {
if x != nil {
return x.Timeout
}
return nil
}
func (x *Webhook) GetDisabled() bool {
if x != nil {
return x.Disabled
}
return false
}
type isWebhook_Webhook interface {
isWebhook_Webhook()
}
type Webhook_GenericWebService_ struct {
// Configuration for a generic web service.
GenericWebService *Webhook_GenericWebService `protobuf:"bytes,4,opt,name=generic_web_service,json=genericWebService,proto3,oneof"`
}
type Webhook_ServiceDirectory struct {
// Configuration for a [Service
// Directory](https://cloud.google.com/service-directory) service.
ServiceDirectory *Webhook_ServiceDirectoryConfig `protobuf:"bytes,7,opt,name=service_directory,json=serviceDirectory,proto3,oneof"`
}
func (*Webhook_GenericWebService_) isWebhook_Webhook() {}
func (*Webhook_ServiceDirectory) isWebhook_Webhook() {}
// The request message for
// [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
type ListWebhooksRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The agent to list all webhooks for.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// The maximum number of items to return in a single page. By default 100 and
// at most 1000.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// The next_page_token value returned from a previous list request.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
}
func (x *ListWebhooksRequest) Reset() {
*x = ListWebhooksRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListWebhooksRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListWebhooksRequest) ProtoMessage() {}
func (x *ListWebhooksRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 ListWebhooksRequest.ProtoReflect.Descriptor instead.
func (*ListWebhooksRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{1}
}
func (x *ListWebhooksRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *ListWebhooksRequest) GetPageSize() int32 {
if x != nil {
return x.PageSize
}
return 0
}
func (x *ListWebhooksRequest) GetPageToken() string {
if x != nil {
return x.PageToken
}
return ""
}
// The response message for
// [Webhooks.ListWebhooks][google.cloud.dialogflow.cx.v3.Webhooks.ListWebhooks].
type ListWebhooksResponse struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The list of webhooks. There will be a maximum number of items returned
// based on the page_size field in the request.
Webhooks []*Webhook `protobuf:"bytes,1,rep,name=webhooks,proto3" json:"webhooks,omitempty"`
// Token to retrieve the next page of results, or empty if there are no more
// results in the list.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
}
func (x *ListWebhooksResponse) Reset() {
*x = ListWebhooksResponse{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ListWebhooksResponse) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ListWebhooksResponse) ProtoMessage() {}
func (x *ListWebhooksResponse) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 ListWebhooksResponse.ProtoReflect.Descriptor instead.
func (*ListWebhooksResponse) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{2}
}
func (x *ListWebhooksResponse) GetWebhooks() []*Webhook {
if x != nil {
return x.Webhooks
}
return nil
}
func (x *ListWebhooksResponse) GetNextPageToken() string {
if x != nil {
return x.NextPageToken
}
return ""
}
// The request message for
// [Webhooks.GetWebhook][google.cloud.dialogflow.cx.v3.Webhooks.GetWebhook].
type GetWebhookRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the webhook.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/webhooks/<Webhook ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *GetWebhookRequest) Reset() {
*x = GetWebhookRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GetWebhookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GetWebhookRequest) ProtoMessage() {}
func (x *GetWebhookRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 GetWebhookRequest.ProtoReflect.Descriptor instead.
func (*GetWebhookRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{3}
}
func (x *GetWebhookRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
// The request message for
// [Webhooks.CreateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.CreateWebhook].
type CreateWebhookRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The agent to create a webhook for.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. The webhook to create.
Webhook *Webhook `protobuf:"bytes,2,opt,name=webhook,proto3" json:"webhook,omitempty"`
}
func (x *CreateWebhookRequest) Reset() {
*x = CreateWebhookRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *CreateWebhookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*CreateWebhookRequest) ProtoMessage() {}
func (x *CreateWebhookRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 CreateWebhookRequest.ProtoReflect.Descriptor instead.
func (*CreateWebhookRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{4}
}
func (x *CreateWebhookRequest) GetParent() string {
if x != nil {
return x.Parent
}
return ""
}
func (x *CreateWebhookRequest) GetWebhook() *Webhook {
if x != nil {
return x.Webhook
}
return nil
}
// The request message for
// [Webhooks.UpdateWebhook][google.cloud.dialogflow.cx.v3.Webhooks.UpdateWebhook].
type UpdateWebhookRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The webhook to update.
Webhook *Webhook `protobuf:"bytes,1,opt,name=webhook,proto3" json:"webhook,omitempty"`
// The mask to control which fields get updated. If the mask is not present,
// all fields will be updated.
UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
}
func (x *UpdateWebhookRequest) Reset() {
*x = UpdateWebhookRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *UpdateWebhookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*UpdateWebhookRequest) ProtoMessage() {}
func (x *UpdateWebhookRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 UpdateWebhookRequest.ProtoReflect.Descriptor instead.
func (*UpdateWebhookRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{5}
}
func (x *UpdateWebhookRequest) GetWebhook() *Webhook {
if x != nil {
return x.Webhook
}
return nil
}
func (x *UpdateWebhookRequest) GetUpdateMask() *fieldmaskpb.FieldMask {
if x != nil {
return x.UpdateMask
}
return nil
}
// The request message for
// [Webhooks.DeleteWebhook][google.cloud.dialogflow.cx.v3.Webhooks.DeleteWebhook].
type DeleteWebhookRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The name of the webhook to delete.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/webhooks/<Webhook ID>`.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// This field has no effect for webhook not being used.
// For webhooks that are used by pages/flows/transition route groups:
//
// - If `force` is set to false, an error will be returned with message
// indicating the referenced resources.
// - If `force` is set to true, Dialogflow will remove the webhook, as well
// as any references to the webhook (i.e.
// [Webhook][google.cloud.dialogflow.cx.v3.Fulfillment.webhook] and
// [tag][google.cloud.dialogflow.cx.v3.Fulfillment.tag]in fulfillments that
// point to this webhook will be removed).
Force bool `protobuf:"varint,2,opt,name=force,proto3" json:"force,omitempty"`
}
func (x *DeleteWebhookRequest) Reset() {
*x = DeleteWebhookRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DeleteWebhookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DeleteWebhookRequest) ProtoMessage() {}
func (x *DeleteWebhookRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 DeleteWebhookRequest.ProtoReflect.Descriptor instead.
func (*DeleteWebhookRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{6}
}
func (x *DeleteWebhookRequest) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *DeleteWebhookRequest) GetForce() bool {
if x != nil {
return x.Force
}
return false
}
// The request message for a webhook call. The request is sent as a JSON object
// and the field names will be presented in camel cases.
//
// You may see undocumented fields in an actual request. These fields are used
// internally by Dialogflow and should be ignored.
type WebhookRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Always present. The unique identifier of the
// [DetectIntentResponse][google.cloud.dialogflow.cx.v3.DetectIntentResponse]
// that will be returned to the API caller.
DetectIntentResponseId string `protobuf:"bytes,1,opt,name=detect_intent_response_id,json=detectIntentResponseId,proto3" json:"detect_intent_response_id,omitempty"`
// The original conversational query.
//
// Types that are assignable to Query:
//
// *WebhookRequest_Text
// *WebhookRequest_TriggerIntent
// *WebhookRequest_Transcript
// *WebhookRequest_TriggerEvent
// *WebhookRequest_DtmfDigits
Query isWebhookRequest_Query `protobuf_oneof:"query"`
// The language code specified in the [original
// request][QueryInput.language_code].
LanguageCode string `protobuf:"bytes,15,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
// Always present. Information about the fulfillment that triggered this
// webhook call.
FulfillmentInfo *WebhookRequest_FulfillmentInfo `protobuf:"bytes,6,opt,name=fulfillment_info,json=fulfillmentInfo,proto3" json:"fulfillment_info,omitempty"`
// Information about the last matched intent.
IntentInfo *WebhookRequest_IntentInfo `protobuf:"bytes,3,opt,name=intent_info,json=intentInfo,proto3" json:"intent_info,omitempty"`
// Information about page status.
PageInfo *PageInfo `protobuf:"bytes,4,opt,name=page_info,json=pageInfo,proto3" json:"page_info,omitempty"`
// Information about session status.
SessionInfo *SessionInfo `protobuf:"bytes,5,opt,name=session_info,json=sessionInfo,proto3" json:"session_info,omitempty"`
// The list of rich message responses to present to the user. Webhook can
// choose to append or replace this list in
// [WebhookResponse.fulfillment_response][google.cloud.dialogflow.cx.v3.WebhookResponse.fulfillment_response];
Messages []*ResponseMessage `protobuf:"bytes,7,rep,name=messages,proto3" json:"messages,omitempty"`
// Custom data set in
// [QueryParameters.payload][google.cloud.dialogflow.cx.v3.QueryParameters.payload].
Payload *structpb.Struct `protobuf:"bytes,8,opt,name=payload,proto3" json:"payload,omitempty"`
// The sentiment analysis result of the current user request. The field is
// filled when sentiment analysis is configured to be enabled for the request.
SentimentAnalysisResult *WebhookRequest_SentimentAnalysisResult `protobuf:"bytes,9,opt,name=sentiment_analysis_result,json=sentimentAnalysisResult,proto3" json:"sentiment_analysis_result,omitempty"`
}
func (x *WebhookRequest) Reset() {
*x = WebhookRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *WebhookRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*WebhookRequest) ProtoMessage() {}
func (x *WebhookRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_dialogflow_cx_v3_webhook_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 WebhookRequest.ProtoReflect.Descriptor instead.
func (*WebhookRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_dialogflow_cx_v3_webhook_proto_rawDescGZIP(), []int{7}
}
func (x *WebhookRequest) GetDetectIntentResponseId() string {
if x != nil {
return x.DetectIntentResponseId
}
return ""
}
func (m *WebhookRequest) GetQuery() isWebhookRequest_Query {
if m != nil {
return m.Query
}
return nil
}
func (x *WebhookRequest) GetText() string {
if x, ok := x.GetQuery().(*WebhookRequest_Text); ok {
return x.Text
}
return ""
}
func (x *WebhookRequest) GetTriggerIntent() string {
if x, ok := x.GetQuery().(*WebhookRequest_TriggerIntent); ok {
return x.TriggerIntent
}
return ""
}
func (x *WebhookRequest) GetTranscript() string {
if x, ok := x.GetQuery().(*WebhookRequest_Transcript); ok {
return x.Transcript
}
return ""
}
func (x *WebhookRequest) GetTriggerEvent() string {
if x, ok := x.GetQuery().(*WebhookRequest_TriggerEvent); ok {
return x.TriggerEvent
}
return ""
}
func (x *WebhookRequest) GetDtmfDigits() string {
if x, ok := x.GetQuery().(*WebhookRequest_DtmfDigits); ok {
return x.DtmfDigits
}
return ""
}
func (x *WebhookRequest) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
func (x *WebhookRequest) GetFulfillmentInfo() *WebhookRequest_FulfillmentInfo {
if x != nil {
return x.FulfillmentInfo
}
return nil
}
func (x *WebhookRequest) GetIntentInfo() *WebhookRequest_IntentInfo {
if x != nil {
return x.IntentInfo
}
return nil
}
func (x *WebhookRequest) GetPageInfo() *PageInfo {
if x != nil {
return x.PageInfo
}
return nil
}
func (x *WebhookRequest) GetSessionInfo() *SessionInfo {
if x != nil {
return x.SessionInfo
}
return nil
}
func (x *WebhookRequest) GetMessages() []*ResponseMessage {
if x != nil {
return x.Messages
}
return nil
}
func (x *WebhookRequest) GetPayload() *structpb.Struct {
if x != nil {
return x.Payload
}
return nil
}
func (x *WebhookRequest) GetSentimentAnalysisResult() *WebhookRequest_SentimentAnalysisResult {
if x != nil {
return x.SentimentAnalysisResult
}
return nil
}
type isWebhookRequest_Query interface {
isWebhookRequest_Query()
}
type WebhookRequest_Text struct {
// If [natural language text][google.cloud.dialogflow.cx.v3.TextInput] was
// provided as input, this field will contain a copy of the text.
Text string `protobuf:"bytes,10,opt,name=text,proto3,oneof"`
}
type WebhookRequest_TriggerIntent struct {
// If an [intent][google.cloud.dialogflow.cx.v3.IntentInput] was provided as
// input, this field will contain a copy of the intent identifier. Format:
// `projects/<Project ID>/locations/<Location ID>/agents/<Agent
// ID>/intents/<Intent ID>`.
TriggerIntent string `protobuf:"bytes,11,opt,name=trigger_intent,json=triggerIntent,proto3,oneof"`
}
type WebhookRequest_Transcript struct {
// If [natural language speech
// audio][google.cloud.dialogflow.cx.v3.AudioInput] was provided as input,
// this field will contain the transcript for the audio.