Debian Codegraph @

googleapis/actions/sdk/v2/interactionmodel/prompt/static_list_prompt.pb.go

raw symbols SCIP
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.26.0
18 // protoc v4.24.4
19 // source: google/actions/sdk/v2/interactionmodel/prompt/content/static_list_prompt.proto
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 // Verify that this generated code is sufficiently up-to-date.
34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
35 // Verify that runtime/protoimpl is sufficiently up-to-date.
36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
37 )
38
39 // A card for presenting a list of options to select from.
40 type StaticListPrompt struct {
41 state protoimpl.MessageState
42 sizeCache protoimpl.SizeCache
43 unknownFields protoimpl.UnknownFields
44
45 // Optional. Title of the list.
46 Title string `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
47 // Optional. Subtitle of the list.
48 Subtitle string `protobuf:"bytes,2,opt,name=subtitle,proto3" json:"subtitle,omitempty"`
49 // Required. List items.
50 Items []*StaticListPrompt_ListItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
51 }
52
53 func (x *StaticListPrompt) Reset() {
54 *x = StaticListPrompt{}
55 if protoimpl.UnsafeEnabled {
56 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes[0]
57 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
58 ms.StoreMessageInfo(mi)
59 }
60 }
61
62 func (x *StaticListPrompt) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*StaticListPrompt) ProtoMessage() {}
67
68 func (x *StaticListPrompt) ProtoReflect() protoreflect.Message {
69 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes[0]
70 if protoimpl.UnsafeEnabled && x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use StaticListPrompt.ProtoReflect.Descriptor instead.
81 func (*StaticListPrompt) Descriptor() ([]byte, []int) {
82 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *StaticListPrompt) GetTitle() string {
86 if x != nil {
87 return x.Title
88 }
89 return ""
90 }
91
92 func (x *StaticListPrompt) GetSubtitle() string {
93 if x != nil {
94 return x.Subtitle
95 }
96 return ""
97 }
98
99 func (x *StaticListPrompt) GetItems() []*StaticListPrompt_ListItem {
100 if x != nil {
101 return x.Items
102 }
103 return nil
104 }
105
106 // An item in the list.
107 type StaticListPrompt_ListItem struct {
108 state protoimpl.MessageState
109 sizeCache protoimpl.SizeCache
110 unknownFields protoimpl.UnknownFields
111
112 // Required. The NLU key that matches the entry key name in the associated type. When
113 // item tapped, this key will be posted back as a select option parameter.
114 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
115 // Required. Title of the item. When tapped, this text will be posted back to the
116 // conversation verbatim as if the user had typed it. Each title must be
117 // unique among the set of items.
118 Title string `protobuf:"bytes,2,opt,name=title,proto3" json:"title,omitempty"`
119 // Optional. Body text of the item.
120 Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
121 // Optional. Item image.
122 Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
123 }
124
125 func (x *StaticListPrompt_ListItem) Reset() {
126 *x = StaticListPrompt_ListItem{}
127 if protoimpl.UnsafeEnabled {
128 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes[1]
129 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
130 ms.StoreMessageInfo(mi)
131 }
132 }
133
134 func (x *StaticListPrompt_ListItem) String() string {
135 return protoimpl.X.MessageStringOf(x)
136 }
137
138 func (*StaticListPrompt_ListItem) ProtoMessage() {}
139
140 func (x *StaticListPrompt_ListItem) ProtoReflect() protoreflect.Message {
141 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_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 // Deprecated: Use StaticListPrompt_ListItem.ProtoReflect.Descriptor instead.
153 func (*StaticListPrompt_ListItem) Descriptor() ([]byte, []int) {
154 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescGZIP(), []int{0, 0}
155 }
156
157 func (x *StaticListPrompt_ListItem) GetKey() string {
158 if x != nil {
159 return x.Key
160 }
161 return ""
162 }
163
164 func (x *StaticListPrompt_ListItem) GetTitle() string {
165 if x != nil {
166 return x.Title
167 }
168 return ""
169 }
170
171 func (x *StaticListPrompt_ListItem) GetDescription() string {
172 if x != nil {
173 return x.Description
174 }
175 return ""
176 }
177
178 func (x *StaticListPrompt_ListItem) GetImage() *StaticImagePrompt {
179 if x != nil {
180 return x.Image
181 }
182 return nil
183 }
184
185 var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto protoreflect.FileDescriptor
186
187 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDesc = []byte{
188 0x0a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
189 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
190 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
191 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6c,
192 0x69, 0x73, 0x74, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
193 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
194 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
195 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x1a,
196 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
197 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69,
198 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63,
199 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x69, 0x6d,
200 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
201 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
202 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
203 0x6f, 0x22, 0xf6, 0x02, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74,
204 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,
205 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
206 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20,
207 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74,
208 0x6c, 0x65, 0x12, 0x63, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28,
209 0x0b, 0x32, 0x48, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f,
210 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61,
211 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70,
212 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d,
213 0x70, 0x74, 0x2e, 0x4c, 0x69, 0x73, 0x74, 0x49, 0x74, 0x65, 0x6d, 0x42, 0x03, 0xe0, 0x41, 0x02,
214 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0xc0, 0x01, 0x0a, 0x08, 0x4c, 0x69, 0x73, 0x74,
215 0x49, 0x74, 0x65, 0x6d, 0x12, 0x15, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
216 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x19, 0x0a, 0x05, 0x74,
217 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52,
218 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x12, 0x25, 0x0a, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69,
219 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01,
220 0x52, 0x0b, 0x64, 0x65, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x5b, 0x0a,
221 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67,
222 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
223 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
224 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61,
225 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x03,
226 0xe0, 0x41, 0x01, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x42, 0xa1, 0x01, 0x0a, 0x31, 0x63,
227 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
228 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63,
229 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74,
230 0x42, 0x15, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4c, 0x69, 0x73, 0x74, 0x50, 0x72, 0x6f, 0x6d,
231 0x70, 0x74, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
232 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e,
233 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73,
234 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f,
235 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c,
236 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x62, 0x06,
237 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
238 }
239
240 var (
241 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescOnce sync.Once
242 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDesc
243 )
244
245 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescGZIP() []byte {
246 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescOnce.Do(func() {
247 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescData)
248 })
249 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDescData
250 }
251
252 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
253 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_goTypes = []interface{}{
254 (*StaticListPrompt)(nil), // 0: google.actions.sdk.v2.interactionmodel.prompt.StaticListPrompt
255 (*StaticListPrompt_ListItem)(nil), // 1: google.actions.sdk.v2.interactionmodel.prompt.StaticListPrompt.ListItem
256 (*StaticImagePrompt)(nil), // 2: google.actions.sdk.v2.interactionmodel.prompt.StaticImagePrompt
257 }
258 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_depIdxs = []int32{
259 1, // 0: google.actions.sdk.v2.interactionmodel.prompt.StaticListPrompt.items:type_name -> google.actions.sdk.v2.interactionmodel.prompt.StaticListPrompt.ListItem
260 2, // 1: google.actions.sdk.v2.interactionmodel.prompt.StaticListPrompt.ListItem.image:type_name -> google.actions.sdk.v2.interactionmodel.prompt.StaticImagePrompt
261 2, // [2:2] is the sub-list for method output_type
262 2, // [2:2] is the sub-list for method input_type
263 2, // [2:2] is the sub-list for extension type_name
264 2, // [2:2] is the sub-list for extension extendee
265 0, // [0:2] is the sub-list for field type_name
266 }
267
268 func init() {
269 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_init()
270 }
271 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_init() {
272 if File_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto != nil {
273 return
274 }
275 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init()
276 if !protoimpl.UnsafeEnabled {
277 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
278 switch v := v.(*StaticListPrompt); i {
279 case 0:
280 return &v.state
281 case 1:
282 return &v.sizeCache
283 case 2:
284 return &v.unknownFields
285 default:
286 return nil
287 }
288 }
289 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
290 switch v := v.(*StaticListPrompt_ListItem); i {
291 case 0:
292 return &v.state
293 case 1:
294 return &v.sizeCache
295 case 2:
296 return &v.unknownFields
297 default:
298 return nil
299 }
300 }
301 }
302 type x struct{}
303 out := protoimpl.TypeBuilder{
304 File: protoimpl.DescBuilder{
305 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
306 RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDesc,
307 NumEnums: 0,
308 NumMessages: 2,
309 NumExtensions: 0,
310 NumServices: 0,
311 },
312 GoTypes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_goTypes,
313 DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_depIdxs,
314 MessageInfos: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_msgTypes,
315 }.Build()
316 File_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto = out.File
317 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_rawDesc = nil
318 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_goTypes = nil
319 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_list_prompt_proto_depIdxs = nil
320 }