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