1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package prompt
22
23 import (
24 reflect "reflect"
25 sync "sync"
26
27 _ "google.golang.org/genproto/googleapis/api/annotations"
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 type StaticCollectionPrompt struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45
46 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
47
48 Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
49
50 Items []*StaticCollectionPrompt_CollectionItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
51
52 ImageFill StaticImagePrompt_ImageFill `protobuf:"varint,4,opt,name=image_fill,json=imageFill,proto3,enum=google.actions.sdk.v2.interactionmodel.prompt.StaticImagePrompt_ImageFill" json:"image_fill,omitempty"`
53 }
54
55 func (x *StaticCollectionPrompt) Reset() {
56 *x = StaticCollectionPrompt{}
57 if protoimpl.UnsafeEnabled {
58 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes[0]
59 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
60 ms.StoreMessageInfo(mi)
61 }
62 }
63
64 func (x *StaticCollectionPrompt) String() string {
65 return protoimpl.X.MessageStringOf(x)
66 }
67
68 func (*StaticCollectionPrompt) ProtoMessage() {}
69
70 func (x *StaticCollectionPrompt) ProtoReflect() protoreflect.Message {
71 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes[0]
72 if protoimpl.UnsafeEnabled && x != nil {
73 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
74 if ms.LoadMessageInfo() == nil {
75 ms.StoreMessageInfo(mi)
76 }
77 return ms
78 }
79 return mi.MessageOf(x)
80 }
81
82
83 func (*StaticCollectionPrompt) Descriptor() ([]byte, []int) {
84 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescGZIP(), []int{0}
85 }
86
87 func (x *StaticCollectionPrompt) GetTitle() string {
88 if x != nil {
89 return x.Title
90 }
91 return ""
92 }
93
94 func (x *StaticCollectionPrompt) GetSubtitle() string {
95 if x != nil {
96 return x.Subtitle
97 }
98 return ""
99 }
100
101 func (x *StaticCollectionPrompt) GetItems() []*StaticCollectionPrompt_CollectionItem {
102 if x != nil {
103 return x.Items
104 }
105 return nil
106 }
107
108 func (x *StaticCollectionPrompt) GetImageFill() StaticImagePrompt_ImageFill {
109 if x != nil {
110 return x.ImageFill
111 }
112 return StaticImagePrompt_UNSPECIFIED
113 }
114
115
116 type StaticCollectionPrompt_CollectionItem struct {
117 state protoimpl.MessageState
118 sizeCache protoimpl.SizeCache
119 unknownFields protoimpl.UnknownFields
120
121
122
123
124 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
125
126
127
128 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
129
130 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
131
132 Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
133 }
134
135 func (x *StaticCollectionPrompt_CollectionItem) Reset() {
136 *x = StaticCollectionPrompt_CollectionItem{}
137 if protoimpl.UnsafeEnabled {
138 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes[1]
139 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
140 ms.StoreMessageInfo(mi)
141 }
142 }
143
144 func (x *StaticCollectionPrompt_CollectionItem) String() string {
145 return protoimpl.X.MessageStringOf(x)
146 }
147
148 func (*StaticCollectionPrompt_CollectionItem) ProtoMessage() {}
149
150 func (x *StaticCollectionPrompt_CollectionItem) ProtoReflect() protoreflect.Message {
151 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes[1]
152 if protoimpl.UnsafeEnabled && x != nil {
153 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
154 if ms.LoadMessageInfo() == nil {
155 ms.StoreMessageInfo(mi)
156 }
157 return ms
158 }
159 return mi.MessageOf(x)
160 }
161
162
163 func (*StaticCollectionPrompt_CollectionItem) Descriptor() ([]byte, []int) {
164 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescGZIP(), []int{0, 0}
165 }
166
167 func (x *StaticCollectionPrompt_CollectionItem) GetKey() string {
168 if x != nil {
169 return x.Key
170 }
171 return ""
172 }
173
174 func (x *StaticCollectionPrompt_CollectionItem) GetTitle() string {
175 if x != nil {
176 return x.Title
177 }
178 return ""
179 }
180
181 func (x *StaticCollectionPrompt_CollectionItem) GetDescription() string {
182 if x != nil {
183 return x.Description
184 }
185 return ""
186 }
187
188 func (x *StaticCollectionPrompt_CollectionItem) GetImage() *StaticImagePrompt {
189 if x != nil {
190 return x.Image
191 }
192 return nil
193 }
194
195 var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto protoreflect.FileDescriptor
196
197 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDesc = []byte{
198 0x0a, 0x54, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
199 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
200 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
201 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63,
202 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74,
203 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61,
204 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e,
205 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70,
206 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x1a, 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63,
207 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74,
208 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72,
209 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61,
210 0x74, 0x69, 0x63, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74,
211 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61,
212 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65, 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f,
213 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xfe, 0x03, 0x0a, 0x16, 0x53, 0x74, 0x61, 0x74,
214 0x69, 0x63, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x6d,
215 0x70, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
216 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x1f, 0x0a,
217 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42,
218 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x6f,
219 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x54, 0x2e,
220 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73,
221 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f,
222 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74,
223 0x61, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72,
224 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49,
225 0x74, 0x65, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x12,
226 0x6e, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x04, 0x20,
227 0x01, 0x28, 0x0e, 0x32, 0x4a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74,
228 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65,
229 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f,
230 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50,
231 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x42,
232 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x1a,
233 0xc6, 0x01, 0x0a, 0x0e, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x74,
234 0x65, 0x6d, 0x12, 0x15, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x42,
235 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74,
236 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x05, 0x74,
237 0x69, 0x74, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
238 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x0b,
239 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5b, 0x0a, 0x05, 0x69,
240 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f,
241 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
242 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f,
243 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69,
244 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x03, 0xe0, 0x41,
245 0x01, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0xa7, 0x01, 0x0a, 0x31, 0x63, 0x6f, 0x6d,
246 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e,
247 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69,
248 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x1b,
249 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x43, 0x6f, 0x6c, 0x6c, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e,
250 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67,
251 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67,
252 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65,
253 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b,
254 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d,
255 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d,
256 0x70, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
257 }
258
259 var (
260 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescOnce sync.Once
261 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDesc
262 )
263
264 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescGZIP() []byte {
265 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescOnce.Do(func() {
266 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescData)
267 })
268 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDescData
269 }
270
271 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
272 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_goTypes = []interface{}{
273 (*StaticCollectionPrompt)(nil),
274 (*StaticCollectionPrompt_CollectionItem)(nil),
275 (StaticImagePrompt_ImageFill)(0),
276 (*StaticImagePrompt)(nil),
277 }
278 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_depIdxs = []int32{
279 1,
280 2,
281 3,
282 3,
283 3,
284 3,
285 3,
286 0,
287 }
288
289 func init() {
290 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_init()
291 }
292 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_init() {
293 if File_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto != nil {
294 return
295 }
296 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init()
297 if !protoimpl.UnsafeEnabled {
298 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
299 switch v := v.(*StaticCollectionPrompt); i {
300 case 0:
301 return &v.state
302 case 1:
303 return &v.sizeCache
304 case 2:
305 return &v.unknownFields
306 default:
307 return nil
308 }
309 }
310 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
311 switch v := v.(*StaticCollectionPrompt_CollectionItem); i {
312 case 0:
313 return &v.state
314 case 1:
315 return &v.sizeCache
316 case 2:
317 return &v.unknownFields
318 default:
319 return nil
320 }
321 }
322 }
323 type x struct{}
324 out := protoimpl.TypeBuilder{
325 File: protoimpl.DescBuilder{
326 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
327 RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDesc,
328 NumEnums: 0,
329 NumMessages: 2,
330 NumExtensions: 0,
331 NumServices: 0,
332 },
333 GoTypes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_goTypes,
334 DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_depIdxs,
335 MessageInfos: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_msgTypes,
336 }.Build()
337 File_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto = out.File
338 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_rawDesc = nil
339 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_goTypes = nil
340 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_collection_prompt_proto_depIdxs = nil
341 }
342
View as plain text