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 Intent struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
47
48
49
50
51 Params map[string]*IntentParameterValue `protobuf:"bytes,2,rep,name=params,proto3" json:"params,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
52
53
54 Query string `protobuf:"bytes,3,opt,name=query,proto3" json:"query,omitempty"`
55 }
56
57 func (x *Intent) Reset() {
58 *x = Intent{}
59 if protoimpl.UnsafeEnabled {
60 mi := &file_google_actions_sdk_v2_conversation_intent_proto_msgTypes[0]
61 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
62 ms.StoreMessageInfo(mi)
63 }
64 }
65
66 func (x *Intent) String() string {
67 return protoimpl.X.MessageStringOf(x)
68 }
69
70 func (*Intent) ProtoMessage() {}
71
72 func (x *Intent) ProtoReflect() protoreflect.Message {
73 mi := &file_google_actions_sdk_v2_conversation_intent_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 (*Intent) Descriptor() ([]byte, []int) {
86 return file_google_actions_sdk_v2_conversation_intent_proto_rawDescGZIP(), []int{0}
87 }
88
89 func (x *Intent) GetName() string {
90 if x != nil {
91 return x.Name
92 }
93 return ""
94 }
95
96 func (x *Intent) GetParams() map[string]*IntentParameterValue {
97 if x != nil {
98 return x.Params
99 }
100 return nil
101 }
102
103 func (x *Intent) GetQuery() string {
104 if x != nil {
105 return x.Query
106 }
107 return ""
108 }
109
110
111 type IntentParameterValue struct {
112 state protoimpl.MessageState
113 sizeCache protoimpl.SizeCache
114 unknownFields protoimpl.UnknownFields
115
116
117 Original string `protobuf:"bytes,1,opt,name=original,proto3" json:"original,omitempty"`
118
119
120
121
122 Resolved *structpb.Value `protobuf:"bytes,2,opt,name=resolved,proto3" json:"resolved,omitempty"`
123 }
124
125 func (x *IntentParameterValue) Reset() {
126 *x = IntentParameterValue{}
127 if protoimpl.UnsafeEnabled {
128 mi := &file_google_actions_sdk_v2_conversation_intent_proto_msgTypes[1]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132 }
133
134 func (x *IntentParameterValue) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*IntentParameterValue) ProtoMessage() {}
139
140 func (x *IntentParameterValue) ProtoReflect() protoreflect.Message {
141 mi := &file_google_actions_sdk_v2_conversation_intent_proto_msgTypes[1]
142 if protoimpl.UnsafeEnabled && x != nil {
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 if ms.LoadMessageInfo() == nil {
145 ms.StoreMessageInfo(mi)
146 }
147 return ms
148 }
149 return mi.MessageOf(x)
150 }
151
152
153 func (*IntentParameterValue) Descriptor() ([]byte, []int) {
154 return file_google_actions_sdk_v2_conversation_intent_proto_rawDescGZIP(), []int{1}
155 }
156
157 func (x *IntentParameterValue) GetOriginal() string {
158 if x != nil {
159 return x.Original
160 }
161 return ""
162 }
163
164 func (x *IntentParameterValue) GetResolved() *structpb.Value {
165 if x != nil {
166 return x.Resolved
167 }
168 return nil
169 }
170
171 var File_google_actions_sdk_v2_conversation_intent_proto protoreflect.FileDescriptor
172
173 var file_google_actions_sdk_v2_conversation_intent_proto_rawDesc = []byte{
174 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
175 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61,
176 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74,
177 0x6f, 0x12, 0x22, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
178 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73,
179 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
180 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x73, 0x74, 0x72, 0x75, 0x63, 0x74, 0x2e, 0x70, 0x72,
181 0x6f, 0x74, 0x6f, 0x22, 0xf7, 0x01, 0x0a, 0x06, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x12, 0x12,
182 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61,
183 0x6d, 0x65, 0x12, 0x4e, 0x0a, 0x06, 0x70, 0x61, 0x72, 0x61, 0x6d, 0x73, 0x18, 0x02, 0x20, 0x03,
184 0x28, 0x0b, 0x32, 0x36, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69,
185 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65,
186 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2e, 0x50,
187 0x61, 0x72, 0x61, 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x06, 0x70, 0x61, 0x72, 0x61,
188 0x6d, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28,
189 0x09, 0x52, 0x05, 0x71, 0x75, 0x65, 0x72, 0x79, 0x1a, 0x73, 0x0a, 0x0b, 0x50, 0x61, 0x72, 0x61,
190 0x6d, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01,
191 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x4e, 0x0a, 0x05, 0x76, 0x61, 0x6c,
192 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x38, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
193 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32,
194 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6e,
195 0x74, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72, 0x56, 0x61, 0x6c,
196 0x75, 0x65, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02, 0x38, 0x01, 0x22, 0x66, 0x0a,
197 0x14, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x50, 0x61, 0x72, 0x61, 0x6d, 0x65, 0x74, 0x65, 0x72,
198 0x56, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x1a, 0x0a, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
199 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x08, 0x6f, 0x72, 0x69, 0x67, 0x69, 0x6e, 0x61,
200 0x6c, 0x12, 0x32, 0x0a, 0x08, 0x72, 0x65, 0x73, 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x18, 0x02, 0x20,
201 0x01, 0x28, 0x0b, 0x32, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
202 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x56, 0x61, 0x6c, 0x75, 0x65, 0x52, 0x08, 0x72, 0x65, 0x73,
203 0x6f, 0x6c, 0x76, 0x65, 0x64, 0x42, 0x87, 0x01, 0x0a, 0x26, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f,
204 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b,
205 0x2e, 0x76, 0x32, 0x2e, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e,
206 0x42, 0x0b, 0x49, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a,
207 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f,
208 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67,
209 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73,
210 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69,
211 0x6f, 0x6e, 0x3b, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x62,
212 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
213 }
214
215 var (
216 file_google_actions_sdk_v2_conversation_intent_proto_rawDescOnce sync.Once
217 file_google_actions_sdk_v2_conversation_intent_proto_rawDescData = file_google_actions_sdk_v2_conversation_intent_proto_rawDesc
218 )
219
220 func file_google_actions_sdk_v2_conversation_intent_proto_rawDescGZIP() []byte {
221 file_google_actions_sdk_v2_conversation_intent_proto_rawDescOnce.Do(func() {
222 file_google_actions_sdk_v2_conversation_intent_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_conversation_intent_proto_rawDescData)
223 })
224 return file_google_actions_sdk_v2_conversation_intent_proto_rawDescData
225 }
226
227 var file_google_actions_sdk_v2_conversation_intent_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
228 var file_google_actions_sdk_v2_conversation_intent_proto_goTypes = []interface{}{
229 (*Intent)(nil),
230 (*IntentParameterValue)(nil),
231 nil,
232 (*structpb.Value)(nil),
233 }
234 var file_google_actions_sdk_v2_conversation_intent_proto_depIdxs = []int32{
235 2,
236 3,
237 1,
238 3,
239 3,
240 3,
241 3,
242 0,
243 }
244
245 func init() { file_google_actions_sdk_v2_conversation_intent_proto_init() }
246 func file_google_actions_sdk_v2_conversation_intent_proto_init() {
247 if File_google_actions_sdk_v2_conversation_intent_proto != nil {
248 return
249 }
250 if !protoimpl.UnsafeEnabled {
251 file_google_actions_sdk_v2_conversation_intent_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
252 switch v := v.(*Intent); i {
253 case 0:
254 return &v.state
255 case 1:
256 return &v.sizeCache
257 case 2:
258 return &v.unknownFields
259 default:
260 return nil
261 }
262 }
263 file_google_actions_sdk_v2_conversation_intent_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
264 switch v := v.(*IntentParameterValue); i {
265 case 0:
266 return &v.state
267 case 1:
268 return &v.sizeCache
269 case 2:
270 return &v.unknownFields
271 default:
272 return nil
273 }
274 }
275 }
276 type x struct{}
277 out := protoimpl.TypeBuilder{
278 File: protoimpl.DescBuilder{
279 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
280 RawDescriptor: file_google_actions_sdk_v2_conversation_intent_proto_rawDesc,
281 NumEnums: 0,
282 NumMessages: 3,
283 NumExtensions: 0,
284 NumServices: 0,
285 },
286 GoTypes: file_google_actions_sdk_v2_conversation_intent_proto_goTypes,
287 DependencyIndexes: file_google_actions_sdk_v2_conversation_intent_proto_depIdxs,
288 MessageInfos: file_google_actions_sdk_v2_conversation_intent_proto_msgTypes,
289 }.Build()
290 File_google_actions_sdk_v2_conversation_intent_proto = out.File
291 file_google_actions_sdk_v2_conversation_intent_proto_rawDesc = nil
292 file_google_actions_sdk_v2_conversation_intent_proto_goTypes = nil
293 file_google_actions_sdk_v2_conversation_intent_proto_depIdxs = nil
294 }
295
View as plain text