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 StaticCardPrompt 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
51 Text string `protobuf:"bytes,3,opt,name=text,proto3" json:"text,omitempty"`
52
53 Image *StaticImagePrompt `protobuf:"bytes,4,opt,name=image,proto3" json:"image,omitempty"`
54
55 ImageFill StaticImagePrompt_ImageFill `protobuf:"varint,5,opt,name=image_fill,json=imageFill,proto3,enum=google.actions.sdk.v2.interactionmodel.prompt.StaticImagePrompt_ImageFill" json:"image_fill,omitempty"`
56
57 Button *StaticLinkPrompt `protobuf:"bytes,6,opt,name=button,proto3" json:"button,omitempty"`
58 }
59
60 func (x *StaticCardPrompt) Reset() {
61 *x = StaticCardPrompt{}
62 if protoimpl.UnsafeEnabled {
63 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_msgTypes[0]
64 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
65 ms.StoreMessageInfo(mi)
66 }
67 }
68
69 func (x *StaticCardPrompt) String() string {
70 return protoimpl.X.MessageStringOf(x)
71 }
72
73 func (*StaticCardPrompt) ProtoMessage() {}
74
75 func (x *StaticCardPrompt) ProtoReflect() protoreflect.Message {
76 mi := &file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_msgTypes[0]
77 if protoimpl.UnsafeEnabled && x != nil {
78 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
79 if ms.LoadMessageInfo() == nil {
80 ms.StoreMessageInfo(mi)
81 }
82 return ms
83 }
84 return mi.MessageOf(x)
85 }
86
87
88 func (*StaticCardPrompt) Descriptor() ([]byte, []int) {
89 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescGZIP(), []int{0}
90 }
91
92 func (x *StaticCardPrompt) GetTitle() string {
93 if x != nil {
94 return x.Title
95 }
96 return ""
97 }
98
99 func (x *StaticCardPrompt) GetSubtitle() string {
100 if x != nil {
101 return x.Subtitle
102 }
103 return ""
104 }
105
106 func (x *StaticCardPrompt) GetText() string {
107 if x != nil {
108 return x.Text
109 }
110 return ""
111 }
112
113 func (x *StaticCardPrompt) GetImage() *StaticImagePrompt {
114 if x != nil {
115 return x.Image
116 }
117 return nil
118 }
119
120 func (x *StaticCardPrompt) GetImageFill() StaticImagePrompt_ImageFill {
121 if x != nil {
122 return x.ImageFill
123 }
124 return StaticImagePrompt_UNSPECIFIED
125 }
126
127 func (x *StaticCardPrompt) GetButton() *StaticLinkPrompt {
128 if x != nil {
129 return x.Button
130 }
131 return nil
132 }
133
134 var File_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto protoreflect.FileDescriptor
135
136 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDesc = []byte{
137 0x0a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
138 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
139 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
140 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x63,
141 0x61, 0x72, 0x64, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
142 0x12, 0x2d, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
143 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
144 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x1a,
145 0x4f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f,
146 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69,
147 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f, 0x63,
148 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x69, 0x6d,
149 0x61, 0x67, 0x65, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
150 0x1a, 0x4e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
151 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74,
152 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2f,
153 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x2f, 0x73, 0x74, 0x61, 0x74, 0x69, 0x63, 0x5f, 0x6c,
154 0x69, 0x6e, 0x6b, 0x5f, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
155 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x66, 0x69, 0x65,
156 0x6c, 0x64, 0x5f, 0x62, 0x65, 0x68, 0x61, 0x76, 0x69, 0x6f, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
157 0x6f, 0x22, 0x92, 0x03, 0x0a, 0x10, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x43, 0x61, 0x72, 0x64,
158 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x12, 0x19, 0x0a, 0x05, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18,
159 0x01, 0x20, 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x05, 0x74, 0x69, 0x74, 0x6c,
160 0x65, 0x12, 0x1f, 0x0a, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74, 0x6c, 0x65, 0x18, 0x02, 0x20,
161 0x01, 0x28, 0x09, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x08, 0x73, 0x75, 0x62, 0x74, 0x69, 0x74,
162 0x6c, 0x65, 0x12, 0x17, 0x0a, 0x04, 0x74, 0x65, 0x78, 0x74, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
163 0x42, 0x03, 0xe0, 0x41, 0x02, 0x52, 0x04, 0x74, 0x65, 0x78, 0x74, 0x12, 0x5b, 0x0a, 0x05, 0x69,
164 0x6d, 0x61, 0x67, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x40, 0x2e, 0x67, 0x6f, 0x6f,
165 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e,
166 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f,
167 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69,
168 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x03, 0xe0, 0x41,
169 0x01, 0x52, 0x05, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x6e, 0x0a, 0x0a, 0x69, 0x6d, 0x61, 0x67,
170 0x65, 0x5f, 0x66, 0x69, 0x6c, 0x6c, 0x18, 0x05, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x4a, 0x2e, 0x67,
171 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
172 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
173 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61,
174 0x74, 0x69, 0x63, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x49,
175 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x09, 0x69,
176 0x6d, 0x61, 0x67, 0x65, 0x46, 0x69, 0x6c, 0x6c, 0x12, 0x5c, 0x0a, 0x06, 0x62, 0x75, 0x74, 0x74,
177 0x6f, 0x6e, 0x18, 0x06, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x3f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
178 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32,
179 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65,
180 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x2e, 0x53, 0x74, 0x61, 0x74, 0x69, 0x63, 0x4c,
181 0x69, 0x6e, 0x6b, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x03, 0xe0, 0x41, 0x01, 0x52, 0x06,
182 0x62, 0x75, 0x74, 0x74, 0x6f, 0x6e, 0x42, 0xa1, 0x01, 0x0a, 0x31, 0x63, 0x6f, 0x6d, 0x2e, 0x67,
183 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
184 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
185 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2e, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x42, 0x15, 0x53, 0x74,
186 0x61, 0x74, 0x69, 0x63, 0x43, 0x61, 0x72, 0x64, 0x50, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x50, 0x72,
187 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x53, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f,
188 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74,
189 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74,
190 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x69, 0x6e, 0x74, 0x65,
191 0x72, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x6d, 0x6f, 0x64, 0x65, 0x6c, 0x2f, 0x70, 0x72, 0x6f,
192 0x6d, 0x70, 0x74, 0x3b, 0x70, 0x72, 0x6f, 0x6d, 0x70, 0x74, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74,
193 0x6f, 0x33,
194 }
195
196 var (
197 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescOnce sync.Once
198 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescData = file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDesc
199 )
200
201 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescGZIP() []byte {
202 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescOnce.Do(func() {
203 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescData)
204 })
205 return file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDescData
206 }
207
208 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
209 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_goTypes = []interface{}{
210 (*StaticCardPrompt)(nil),
211 (*StaticImagePrompt)(nil),
212 (StaticImagePrompt_ImageFill)(0),
213 (*StaticLinkPrompt)(nil),
214 }
215 var file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_depIdxs = []int32{
216 1,
217 2,
218 3,
219 3,
220 3,
221 3,
222 3,
223 0,
224 }
225
226 func init() {
227 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_init()
228 }
229 func file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_init() {
230 if File_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto != nil {
231 return
232 }
233 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_image_prompt_proto_init()
234 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_link_prompt_proto_init()
235 if !protoimpl.UnsafeEnabled {
236 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
237 switch v := v.(*StaticCardPrompt); i {
238 case 0:
239 return &v.state
240 case 1:
241 return &v.sizeCache
242 case 2:
243 return &v.unknownFields
244 default:
245 return nil
246 }
247 }
248 }
249 type x struct{}
250 out := protoimpl.TypeBuilder{
251 File: protoimpl.DescBuilder{
252 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
253 RawDescriptor: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDesc,
254 NumEnums: 0,
255 NumMessages: 1,
256 NumExtensions: 0,
257 NumServices: 0,
258 },
259 GoTypes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_goTypes,
260 DependencyIndexes: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_depIdxs,
261 MessageInfos: file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_msgTypes,
262 }.Build()
263 File_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto = out.File
264 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_rawDesc = nil
265 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_goTypes = nil
266 file_google_actions_sdk_v2_interactionmodel_prompt_content_static_card_prompt_proto_depIdxs = nil
267 }
268
View as plain text