1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package conversation
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
28 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
29 structpb "google.golang.org/protobuf/types/known/structpb"
30 )
31
32 const (
33
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39
40 type SlotFillingStatus int32
41
42 const (
43
44 SlotFillingStatus_UNSPECIFIED SlotFillingStatus = 0
45
46 SlotFillingStatus_INITIALIZED SlotFillingStatus = 1
47
48 SlotFillingStatus_COLLECTING SlotFillingStatus = 2
49
50 SlotFillingStatus_FINAL SlotFillingStatus = 4
51 )
52
53
54 var (
55 SlotFillingStatus_name = map[int32]string{
56 0: "UNSPECIFIED",
57 1: "INITIALIZED",
58 2: "COLLECTING",
59 4: "FINAL",
60 }
61 SlotFillingStatus_value = map[string]int32{
62 "UNSPECIFIED": 0,
63 "INITIALIZED": 1,
64 "COLLECTING": 2,
65 "FINAL": 4,
66 }
67 )
68
69 func (x SlotFillingStatus) Enum() *SlotFillingStatus {
70 p := new(SlotFillingStatus)
71 *p = x
72 return p
73 }
74
75 func (x SlotFillingStatus) String() string {
76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
77 }
78
79 func (SlotFillingStatus) Descriptor() protoreflect.EnumDescriptor {
80 return file_google_actions_sdk_v2_conversation_scene_proto_enumTypes[0].Descriptor()
81 }
82
83 func (SlotFillingStatus) Type() protoreflect.EnumType {
84 return &file_google_actions_sdk_v2_conversation_scene_proto_enumTypes[0]
85 }
86
87 func (x SlotFillingStatus) Number() protoreflect.EnumNumber {
88 return protoreflect.EnumNumber(x)
89 }
90
91
92 func (SlotFillingStatus) EnumDescriptor() ([]byte, []int) {
93 return file_google_actions_sdk_v2_conversation_scene_proto_rawDescGZIP(), []int{0}
94 }
95
96
97 type Slot_SlotMode int32
98
99 const (
100
101 Slot_MODE_UNSPECIFIED Slot_SlotMode = 0
102
103 Slot_OPTIONAL Slot_SlotMode = 1
104
105 Slot_REQUIRED Slot_SlotMode = 2
106 )
107
108
109 var (
110 Slot_SlotMode_name = map[int32]string{
111 0: "MODE_UNSPECIFIED",
112 1: "OPTIONAL",
113 2: "REQUIRED",
114 }
115 Slot_SlotMode_value = map[string]int32{
116 "MODE_UNSPECIFIED": 0,
117 "OPTIONAL": 1,
118 "REQUIRED": 2,
119 }
120 )
121
122 func (x Slot_SlotMode) Enum() *Slot_SlotMode {
123 p := new(Slot_SlotMode)
124 *p = x
125 return p
126 }
127
128 func (x Slot_SlotMode) String() string {
129 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
130 }
131
132 func (Slot_SlotMode) Descriptor() protoreflect.EnumDescriptor {
133 return file_google_actions_sdk_v2_conversation_scene_proto_enumTypes[1].Descriptor()
134 }
135
136 func (Slot_SlotMode) Type() protoreflect.EnumType {
137 return &file_google_actions_sdk_v2_conversation_scene_proto_enumTypes[1]
138 }
139
140 func (x Slot_SlotMode) Number() protoreflect.EnumNumber {
141 return protoreflect.EnumNumber(x)
142 }
143
144
145 func (Slot_SlotMode) EnumDescriptor() ([]byte, []int) {
146 return file_google_actions_sdk_v2_conversation_scene_proto_rawDescGZIP(), []int{0, 0}
147 }
148
149
150 type Slot_SlotStatus int32
151
152 const (
153
154 Slot_SLOT_UNSPECIFIED Slot_SlotStatus = 0
155
156
157 Slot_EMPTY Slot_SlotStatus = 1
158
159
160 Slot_INVALID Slot_SlotStatus = 2
161
162
163 Slot_FILLED Slot_SlotStatus = 3
164 )
165
166
167 var (
168 Slot_SlotStatus_name = map[int32]string{
169 0: "SLOT_UNSPECIFIED",
170 1: "EMPTY",
171 2: "INVALID",
172 3: "FILLED",
173 }
174 Slot_SlotStatus_value = map[string]int32{
175 "SLOT_UNSPECIFIED": 0,
176 "EMPTY": 1,
177 "INVALID": 2,
178 "FILLED": 3,
179 }
180 )
181
182 func (x Slot_SlotStatus) Enum() *Slot_SlotStatus {
183 p := new(Slot_SlotStatus)
184 *p = x
185 return p
186 }
187
188 func (x Slot_SlotStatus) String() string {
189 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
190 }
191
192 func (Slot_SlotStatus) Descriptor() protoreflect.EnumDescriptor {
193 return file_google_actions_sdk_v2_conversation_scene_proto_enumTypes[2].Descriptor()
194 }
195
196 func (Slot_SlotStatus) Type() protoreflect.EnumType {
197 return &file_google_actions_sdk_v2_conversation_scene_proto_enumTypes[2]
198 }
199
200 func (x Slot_SlotStatus) Number() protoreflect.EnumNumber {
201 return protoreflect.EnumNumber(x)
202 }
203
204
205 func (Slot_SlotStatus) EnumDescriptor() ([]byte, []int) {
206 return file_google_actions_sdk_v2_conversation_scene_proto_rawDescGZIP(), []int{0, 1}
207 }
208
209
210 type Slot struct {
211 state protoimpl.MessageState
212 sizeCache protoimpl.SizeCache
213 unknownFields protoimpl.UnknownFields
214
215
216 Mode Slot_SlotMode `protobuf:"varint,1,opt,name=mode,proto3,enum=google.actions.sdk.v2.conversation.Slot_SlotMode" json:"mode,omitempty"`
217
218 Status Slot_SlotStatus `protobuf:"varint,2,opt,name=status,proto3,enum=google.actions.sdk.v2.conversation.Slot_SlotStatus" json:"status,omitempty"`
219
220
221 Value *structpb.Value `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
222
223
224 Updated bool `protobuf:"varint,4,opt,name=updated,proto3" json:"updated,omitempty"`
225
226
227
228 Prompt *Prompt `protobuf:"bytes,5,opt,name=prompt,proto3" json:"prompt,omitempty"`
229 }
230
231 func (x *Slot) Reset() {
232 *x = Slot{}
233 if protoimpl.UnsafeEnabled {
234 mi := &file_google_actions_sdk_v2_conversation_scene_proto_msgTypes[0]
235 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
236 ms.StoreMessageInfo(mi)
237 }
238 }
239
240 func (x *Slot) String() string {
241 return protoimpl.X.MessageStringOf(x)
242 }
243
244 func (*Slot) ProtoMessage() {}
245
246 func (x *Slot) ProtoReflect() protoreflect.Message {
247 mi := &file_google_actions_sdk_v2_conversation_scene_proto_msgTypes[0]
248 if protoimpl.UnsafeEnabled && x != nil {
249 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
250 if ms.LoadMessageInfo() == nil {
251 ms.StoreMessageInfo(mi)
252 }
253 return ms
254 }
255 return mi.MessageOf(x)
256 }
257
258
259 func (*Slot) Descriptor() ([]byte, []int) {
260 return file_google_actions_sdk_v2_conversation_scene_proto_rawDescGZIP(), []int{0}
261 }
262
263 func (x *Slot) GetMode() Slot_SlotMode {
264 if x != nil {
265 return x.Mode
266 }
267 return Slot_MODE_UNSPECIFIED
268 }
269
270 func (x *Slot) GetStatus() Slot_SlotStatus {
271 if x != nil {
272 return x.Status
273 }
274 return Slot_SLOT_UNSPECIFIED
275 }
276
277 func (x *Slot) GetValue() *structpb.Value {
278 if x != nil {
279 return x.Value
280 }
281 return nil
282 }
283
284 func (x *Slot) GetUpdated() bool {
285 if x != nil {
286 return x.Updated
287 }
288 return false
289 }
290
291 func (x *Slot) GetPrompt() *Prompt {
292 if x != nil {
293 return x.Prompt
294 }
295 return nil
296 }
297
298 var File_google_actions_sdk_v2_conversation_scene_proto protoreflect.FileDescriptor
299
300 var file_google_actions_sdk_v2_conversation_scene_proto_rawDesc = []byte{
301 0x0a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
302 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
303 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x73, 0x63, 0x65, 0x6e, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
304 0x12, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
305 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
306 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x36, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74,
307 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76,
308 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
309 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f,
310 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74,
311 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xac, 0x03, 0x0a, 0x04, 0x53,
312 0x6c, 0x6f, 0x74, 0x12, 0x45, 0x0a, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
313 0x0e, 0x32, 0x31, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f,
314 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
315 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x2e, 0x53, 0x6c, 0x6f, 0x74,
316 0x4d, 0x6f, 0x64, 0x65, 0x52, 0x04, 0x6d, 0x6f, 0x64, 0x65, 0x12, 0x4b, 0x0a, 0x06, 0x73, 0x74,
317 0x61, 0x74, 0x75, 0x73, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x33, 0x2e, 0x67, 0x6f, 0x6f,
318 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
319 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e,
320 0x53, 0x6c, 0x6f, 0x74, 0x2e, 0x53, 0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x52,
321 0x06, 0x73, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x2c, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65,
322 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
323 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x05,
324 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x18, 0x0a, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64,
325 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x75, 0x70, 0x64, 0x61, 0x74, 0x65, 0x64, 0x12,
326 0x42, 0x0a, 0x06, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0b, 0x32,
327 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
328 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
329 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x52, 0x06, 0x70, 0x72, 0x6f,
330 0x6d, 0x70, 0x74, 0x22, 0x3c, 0x0a, 0x08, 0x53, 0x6c, 0x6f, 0x74, 0x4d, 0x6f, 0x64, 0x65, 0x12,
331 0x14, 0x0a, 0x10, 0x4d, 0x4f, 0x44, 0x45, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
332 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0c, 0x0a, 0x08, 0x4f, 0x50, 0x54, 0x49, 0x4f, 0x4e, 0x41,
333 0x4c, 0x10, 0x01, 0x12, 0x0c, 0x0a, 0x08, 0x52, 0x45, 0x51, 0x55, 0x49, 0x52, 0x45, 0x44, 0x10,
334 0x02, 0x22, 0x46, 0x0a, 0x0a, 0x53, 0x6c, 0x6f, 0x74, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12,
335 0x14, 0x0a, 0x10, 0x53, 0x4c, 0x4f, 0x54, 0x5f, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46,
336 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x09, 0x0a, 0x05, 0x45, 0x4d, 0x50, 0x54, 0x59, 0x10, 0x01,
337 0x12, 0x0b, 0x0a, 0x07, 0x49, 0x4e, 0x56, 0x41, 0x4c, 0x49, 0x44, 0x10, 0x02, 0x12, 0x0a, 0x0a,
338 0x06, 0x46, 0x49, 0x4c, 0x4c, 0x45, 0x44, 0x10, 0x03, 0x2a, 0x50, 0x0a, 0x11, 0x53, 0x6c, 0x6f,
339 0x74, 0x46, 0x69, 0x6c, 0x6c, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x61, 0x74, 0x75, 0x73, 0x12, 0x0f,
340 0x0a, 0x0b, 0x55, 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12,
341 0x0f, 0x0a, 0x0b, 0x49, 0x4e, 0x49, 0x54, 0x49, 0x41, 0x4c, 0x49, 0x5a, 0x45, 0x44, 0x10, 0x01,
342 0x12, 0x0e, 0x0a, 0x0a, 0x43, 0x4f, 0x4c, 0x4c, 0x45, 0x43, 0x54, 0x49, 0x4e, 0x47, 0x10, 0x02,
343 0x12, 0x09, 0x0a, 0x05, 0x46, 0x49, 0x4e, 0x41, 0x4c, 0x10, 0x04, 0x42, 0x86, 0x01, 0x0a, 0x26,
344 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f,
345 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72,
346 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x42, 0x0a, 0x53, 0x63, 0x65, 0x6e, 0x65, 0x50, 0x72, 0x6f,
347 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c,
348 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
349 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69,
350 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65,
351 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
352 0x74, 0x69, 0x6f, 0x6e, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
353 }
354
355 var (
356 file_google_actions_sdk_v2_conversation_scene_proto_rawDescOnce sync.Once
357 file_google_actions_sdk_v2_conversation_scene_proto_rawDescData = file_google_actions_sdk_v2_conversation_scene_proto_rawDesc
358 )
359
360 func file_google_actions_sdk_v2_conversation_scene_proto_rawDescGZIP() []byte {
361 file_google_actions_sdk_v2_conversation_scene_proto_rawDescOnce.Do(func() {
362 file_google_actions_sdk_v2_conversation_scene_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_scene_proto_rawDescData)
363 })
364 return file_google_actions_sdk_v2_conversation_scene_proto_rawDescData
365 }
366
367 var file_google_actions_sdk_v2_conversation_scene_proto_enumTypes = make([]protoimpl.EnumInfo, 3)
368 var file_google_actions_sdk_v2_conversation_scene_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
369 var file_google_actions_sdk_v2_conversation_scene_proto_goTypes = []interface{}{
370 (SlotFillingStatus)(0),
371 (Slot_SlotMode)(0),
372 (Slot_SlotStatus)(0),
373 (*Slot)(nil),
374 (*structpb.Value)(nil),
375 (*Prompt)(nil),
376 }
377 var file_google_actions_sdk_v2_conversation_scene_proto_depIdxs = []int32{
378 1,
379 2,
380 4,
381 5,
382 4,
383 4,
384 4,
385 4,
386 0,
387 }
388
389 func init() { file_google_actions_sdk_v2_conversation_scene_proto_init() }
390 func file_google_actions_sdk_v2_conversation_scene_proto_init() {
391 if File_google_actions_sdk_v2_conversation_scene_proto != nil {
392 return
393 }
394 file_google_actions_sdk_v2_conversation_prompt_prompt_proto_init()
395 if !protoimpl.UnsafeEnabled {
396 file_google_actions_sdk_v2_conversation_scene_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
397 switch v := v.(*Slot); i {
398 case 0:
399 return &v.state
400 case 1:
401 return &v.sizeCache
402 case 2:
403 return &v.unknownFields
404 default:
405 return nil
406 }
407 }
408 }
409 type x struct{}
410 out := protoimpl.TypeBuilder{
411 File: protoimpl.DescBuilder{
412 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
413 RawDescriptor: file_google_actions_sdk_v2_conversation_scene_proto_rawDesc,
414 NumEnums: 3,
415 NumMessages: 1,
416 NumExtensions: 0,
417 NumServices: 0,
418 },
419 GoTypes: file_google_actions_sdk_v2_conversation_scene_proto_goTypes,
420 DependencyIndexes: file_google_actions_sdk_v2_conversation_scene_proto_depIdxs,
421 EnumInfos: file_google_actions_sdk_v2_conversation_scene_proto_enumTypes,
422 MessageInfos: file_google_actions_sdk_v2_conversation_scene_proto_msgTypes,
423 }.Build()
424 File_google_actions_sdk_v2_conversation_scene_proto = out.File
425 file_google_actions_sdk_v2_conversation_scene_proto_rawDesc = nil
426 file_google_actions_sdk_v2_conversation_scene_proto_goTypes = nil
427 file_google_actions_sdk_v2_conversation_scene_proto_depIdxs = nil
428 }
429
View as plain text