1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package interactionmodel
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 prompt "google.golang.org/genproto/googleapis/actions/sdk/v2/interactionmodel/prompt"
28 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
29 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40
41 type EventHandler struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46
47 WebhookHandler string `protobuf:"bytes,1,opt,name=webhook_handler,json=webhookHandler,proto3" json:"webhook_handler,omitempty"`
48
49
50
51
52
53
54 Prompt isEventHandler_Prompt `protobuf_oneof:"prompt"`
55 }
56
57 func (x *EventHandler) Reset() {
58 *x = EventHandler{}
59 if protoimpl.UnsafeEnabled {
60 mi := &file_google_actions_sdk_v2_interactionmodel_event_handler_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64 }
65
66 func (x *EventHandler) String() string {
67 return protoimpl.X.MessageStringOf(x)
68 }
69
70 func (*EventHandler) ProtoMessage() {}
71
72 func (x *EventHandler) ProtoReflect() protoreflect.Message {
73 mi := &file_google_actions_sdk_v2_interactionmodel_event_handler_proto_msgTypes[0]
74 if protoimpl.UnsafeEnabled && x != nil {
75 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
76 if ms.LoadMessageInfo() == nil {
77 ms.StoreMessageInfo(mi)
78 }
79 return ms
80 }
81 return mi.MessageOf(x)
82 }
83
84
85 func (*EventHandler) Descriptor() ([]byte, []int) {
86 return file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescGZIP(), []int{0}
87 }
88
89 func (x *EventHandler) GetWebhookHandler() string {
90 if x != nil {
91 return x.WebhookHandler
92 }
93 return ""
94 }
95
96 func (m *EventHandler) GetPrompt() isEventHandler_Prompt {
97 if m != nil {
98 return m.Prompt
99 }
100 return nil
101 }
102
103 func (x *EventHandler) GetStaticPrompt() *prompt.StaticPrompt {
104 if x, ok := x.GetPrompt().(*EventHandler_StaticPrompt); ok {
105 return x.StaticPrompt
106 }
107 return nil
108 }
109
110 func (x *EventHandler) GetStaticPromptName() string {
111 if x, ok := x.GetPrompt().(*EventHandler_StaticPromptName); ok {
112 return x.StaticPromptName
113 }
114 return ""
115 }
116
117 type isEventHandler_Prompt interface {
118 isEventHandler_Prompt()
119 }
120
121 type EventHandler_StaticPrompt struct {
122
123
124 StaticPrompt *prompt.StaticPrompt `protobuf:"bytes,2,opt,name=static_prompt,json=staticPrompt,proto3,oneof"`
125 }
126
127 type EventHandler_StaticPromptName struct {
128
129 StaticPromptName string `protobuf:"bytes,3,opt,name=static_prompt_name,json=staticPromptName,proto3,oneof"`
130 }
131
132 func (*EventHandler_StaticPrompt) isEventHandler_Prompt() {}
133
134 func (*EventHandler_StaticPromptName) isEventHandler_Prompt() {}
135
136 var File_google_actions_sdk_v2_interactionmodel_event_handler_proto protoreflect.FileDescriptor
137
138 var file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDesc = []byte{
139 0x0a, 0x3a, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
140 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
141 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x5f, 0x68,
142 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x26, 0x67, 0x6f,
143 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b,
144 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d,
145 0x6f, 0x64, 0x65, 0x6c, 0x1a, 0x41, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74,
146 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65,
147 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
148 0x6d, 0x70, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70,
149 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xd5, 0x01, 0x0a, 0x0c, 0x45, 0x76, 0x65, 0x6e,
150 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x12, 0x27, 0x0a, 0x0f, 0x77, 0x65, 0x62, 0x68,
151 0x6f, 0x6f, 0x6b, 0x5f, 0x68, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28,
152 0x09, 0x52, 0x0e, 0x77, 0x65, 0x62, 0x68, 0x6f, 0x6f, 0x6b, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65,
153 0x72, 0x12, 0x62, 0x0a, 0x0d, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x70, 0x72, 0x6f, 0x6d,
154 0x70, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3b, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
155 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32,
156 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65,
157 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50,
158 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x48, 0x00, 0x52, 0x0c, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50,
159 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x2e, 0x0a, 0x12, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f,
160 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x5f, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28,
161 0x09, 0x48, 0x00, 0x52, 0x10, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x50, 0x72, 0x6f, 0x6d, 0x70,
162 0x74, 0x4e, 0x61, 0x6d, 0x65, 0x42, 0x08, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42,
163 0x99, 0x01, 0x0a, 0x2a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
164 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e,
165 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x42, 0x11,
166 0x45, 0x76, 0x65, 0x6e, 0x74, 0x48, 0x61, 0x6e, 0x64, 0x6c, 0x65, 0x72, 0x50, 0x72, 0x6f, 0x74,
167 0x6f, 0x50, 0x01, 0x5a, 0x56, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61,
168 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f,
169 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f,
170 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61,
171 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x3b, 0x69, 0x6e, 0x74, 0x65, 0x72,
172 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x62, 0x06, 0x70, 0x72, 0x6f,
173 0x74, 0x6f, 0x33,
174 }
175
176 var (
177 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescOnce sync.Once
178 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDesc
179 )
180
181 func file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescGZIP() []byte {
182 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescOnce.Do(func() {
183 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescData)
184 })
185 return file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDescData
186 }
187
188 var file_google_actions_sdk_v2_interactionmodel_event_handler_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
189 var file_google_actions_sdk_v2_interactionmodel_event_handler_proto_goTypes = []interface{}{
190 (*EventHandler)(nil),
191 (*prompt.StaticPrompt)(nil),
192 }
193 var file_google_actions_sdk_v2_interactionmodel_event_handler_proto_depIdxs = []int32{
194 1,
195 1,
196 1,
197 1,
198 1,
199 0,
200 }
201
202 func init() { file_google_actions_sdk_v2_interactionmodel_event_handler_proto_init() }
203 func file_google_actions_sdk_v2_interactionmodel_event_handler_proto_init() {
204 if File_google_actions_sdk_v2_interactionmodel_event_handler_proto != nil {
205 return
206 }
207 if !protoimpl.UnsafeEnabled {
208 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
209 switch v := v.(*EventHandler); i {
210 case 0:
211 return &v.state
212 case 1:
213 return &v.sizeCache
214 case 2:
215 return &v.unknownFields
216 default:
217 return nil
218 }
219 }
220 }
221 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_msgTypes[0].OneofWrappers = []interface{}{
222 (*EventHandler_StaticPrompt)(nil),
223 (*EventHandler_StaticPromptName)(nil),
224 }
225 type x struct{}
226 out := protoimpl.TypeBuilder{
227 File: protoimpl.DescBuilder{
228 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
229 RawDescriptor: file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDesc,
230 NumEnums: 0,
231 NumMessages: 1,
232 NumExtensions: 0,
233 NumServices: 0,
234 },
235 GoTypes: file_google_actions_sdk_v2_interactionmodel_event_handler_proto_goTypes,
236 DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_event_handler_proto_depIdxs,
237 MessageInfos: file_google_actions_sdk_v2_interactionmodel_event_handler_proto_msgTypes,
238 }.Build()
239 File_google_actions_sdk_v2_interactionmodel_event_handler_proto = out.File
240 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_rawDesc = nil
241 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_goTypes = nil
242 file_google_actions_sdk_v2_interactionmodel_event_handler_proto_depIdxs = nil
243 }
244
View as plain text