1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21 package sdk
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 ThemeCustomization_ImageCornerStyle int32
40
41 const (
42
43 ThemeCustomization_IMAGE_CORNER_STYLE_UNSPECIFIED ThemeCustomization_ImageCornerStyle = 0
44
45 ThemeCustomization_CURVED ThemeCustomization_ImageCornerStyle = 1
46
47 ThemeCustomization_ANGLED ThemeCustomization_ImageCornerStyle = 2
48 )
49
50
51 var (
52 ThemeCustomization_ImageCornerStyle_name = map[int32]string{
53 0: "IMAGE_CORNER_STYLE_UNSPECIFIED",
54 1: "CURVED",
55 2: "ANGLED",
56 }
57 ThemeCustomization_ImageCornerStyle_value = map[string]int32{
58 "IMAGE_CORNER_STYLE_UNSPECIFIED": 0,
59 "CURVED": 1,
60 "ANGLED": 2,
61 }
62 )
63
64 func (x ThemeCustomization_ImageCornerStyle) Enum() *ThemeCustomization_ImageCornerStyle {
65 p := new(ThemeCustomization_ImageCornerStyle)
66 *p = x
67 return p
68 }
69
70 func (x ThemeCustomization_ImageCornerStyle) String() string {
71 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
72 }
73
74 func (ThemeCustomization_ImageCornerStyle) Descriptor() protoreflect.EnumDescriptor {
75 return file_google_actions_sdk_v2_theme_customization_proto_enumTypes[0].Descriptor()
76 }
77
78 func (ThemeCustomization_ImageCornerStyle) Type() protoreflect.EnumType {
79 return &file_google_actions_sdk_v2_theme_customization_proto_enumTypes[0]
80 }
81
82 func (x ThemeCustomization_ImageCornerStyle) Number() protoreflect.EnumNumber {
83 return protoreflect.EnumNumber(x)
84 }
85
86
87 func (ThemeCustomization_ImageCornerStyle) EnumDescriptor() ([]byte, []int) {
88 return file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP(), []int{0, 0}
89 }
90
91
92 type ThemeCustomization struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97
98
99
100
101 BackgroundColor string `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"`
102
103
104
105 PrimaryColor string `protobuf:"bytes,2,opt,name=primary_color,json=primaryColor,proto3" json:"primary_color,omitempty"`
106
107
108
109
110
111
112
113
114
115
116
117
118
119 FontFamily string `protobuf:"bytes,3,opt,name=font_family,json=fontFamily,proto3" json:"font_family,omitempty"`
120
121
122 ImageCornerStyle ThemeCustomization_ImageCornerStyle `protobuf:"varint,4,opt,name=image_corner_style,json=imageCornerStyle,proto3,enum=google.actions.sdk.v2.ThemeCustomization_ImageCornerStyle" json:"image_corner_style,omitempty"`
123
124
125
126
127
128
129 LandscapeBackgroundImage string `protobuf:"bytes,5,opt,name=landscape_background_image,json=landscapeBackgroundImage,proto3" json:"landscape_background_image,omitempty"`
130
131
132
133
134
135
136 PortraitBackgroundImage string `protobuf:"bytes,6,opt,name=portrait_background_image,json=portraitBackgroundImage,proto3" json:"portrait_background_image,omitempty"`
137 }
138
139 func (x *ThemeCustomization) Reset() {
140 *x = ThemeCustomization{}
141 if protoimpl.UnsafeEnabled {
142 mi := &file_google_actions_sdk_v2_theme_customization_proto_msgTypes[0]
143 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
144 ms.StoreMessageInfo(mi)
145 }
146 }
147
148 func (x *ThemeCustomization) String() string {
149 return protoimpl.X.MessageStringOf(x)
150 }
151
152 func (*ThemeCustomization) ProtoMessage() {}
153
154 func (x *ThemeCustomization) ProtoReflect() protoreflect.Message {
155 mi := &file_google_actions_sdk_v2_theme_customization_proto_msgTypes[0]
156 if protoimpl.UnsafeEnabled && x != nil {
157 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
158 if ms.LoadMessageInfo() == nil {
159 ms.StoreMessageInfo(mi)
160 }
161 return ms
162 }
163 return mi.MessageOf(x)
164 }
165
166
167 func (*ThemeCustomization) Descriptor() ([]byte, []int) {
168 return file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP(), []int{0}
169 }
170
171 func (x *ThemeCustomization) GetBackgroundColor() string {
172 if x != nil {
173 return x.BackgroundColor
174 }
175 return ""
176 }
177
178 func (x *ThemeCustomization) GetPrimaryColor() string {
179 if x != nil {
180 return x.PrimaryColor
181 }
182 return ""
183 }
184
185 func (x *ThemeCustomization) GetFontFamily() string {
186 if x != nil {
187 return x.FontFamily
188 }
189 return ""
190 }
191
192 func (x *ThemeCustomization) GetImageCornerStyle() ThemeCustomization_ImageCornerStyle {
193 if x != nil {
194 return x.ImageCornerStyle
195 }
196 return ThemeCustomization_IMAGE_CORNER_STYLE_UNSPECIFIED
197 }
198
199 func (x *ThemeCustomization) GetLandscapeBackgroundImage() string {
200 if x != nil {
201 return x.LandscapeBackgroundImage
202 }
203 return ""
204 }
205
206 func (x *ThemeCustomization) GetPortraitBackgroundImage() string {
207 if x != nil {
208 return x.PortraitBackgroundImage
209 }
210 return ""
211 }
212
213 var File_google_actions_sdk_v2_theme_customization_proto protoreflect.FileDescriptor
214
215 var file_google_actions_sdk_v2_theme_customization_proto_rawDesc = []byte{
216 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73,
217 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x5f, 0x63, 0x75,
218 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
219 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e,
220 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x22, 0xb9, 0x03, 0x0a, 0x12, 0x54, 0x68, 0x65,
221 0x6d, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12,
222 0x29, 0x0a, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f,
223 0x6c, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x67,
224 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72,
225 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28,
226 0x09, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12,
227 0x1f, 0x0a, 0x0b, 0x66, 0x6f, 0x6e, 0x74, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x03,
228 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x6e, 0x74, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79,
229 0x12, 0x68, 0x0a, 0x12, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x72, 0x6e, 0x65, 0x72,
230 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67,
231 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64,
232 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d,
233 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x72,
234 0x6e, 0x65, 0x72, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43,
235 0x6f, 0x72, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x6c, 0x61,
236 0x6e, 0x64, 0x73, 0x63, 0x61, 0x70, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75,
237 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18,
238 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x63, 0x61, 0x70, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f,
239 0x75, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6f, 0x72, 0x74,
240 0x72, 0x61, 0x69, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f,
241 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6f, 0x72,
242 0x74, 0x72, 0x61, 0x69, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x49,
243 0x6d, 0x61, 0x67, 0x65, 0x22, 0x4e, 0x0a, 0x10, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x72,
244 0x6e, 0x65, 0x72, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x49, 0x4d, 0x41, 0x47,
245 0x45, 0x5f, 0x43, 0x4f, 0x52, 0x4e, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55,
246 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06,
247 0x43, 0x55, 0x52, 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x4e, 0x47, 0x4c,
248 0x45, 0x44, 0x10, 0x02, 0x42, 0x70, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
249 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76,
250 0x32, 0x42, 0x17, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a,
251 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f,
252 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f,
253 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61,
254 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f,
255 0x76, 0x32, 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
256 }
257
258 var (
259 file_google_actions_sdk_v2_theme_customization_proto_rawDescOnce sync.Once
260 file_google_actions_sdk_v2_theme_customization_proto_rawDescData = file_google_actions_sdk_v2_theme_customization_proto_rawDesc
261 )
262
263 func file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP() []byte {
264 file_google_actions_sdk_v2_theme_customization_proto_rawDescOnce.Do(func() {
265 file_google_actions_sdk_v2_theme_customization_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_theme_customization_proto_rawDescData)
266 })
267 return file_google_actions_sdk_v2_theme_customization_proto_rawDescData
268 }
269
270 var file_google_actions_sdk_v2_theme_customization_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
271 var file_google_actions_sdk_v2_theme_customization_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
272 var file_google_actions_sdk_v2_theme_customization_proto_goTypes = []interface{}{
273 (ThemeCustomization_ImageCornerStyle)(0),
274 (*ThemeCustomization)(nil),
275 }
276 var file_google_actions_sdk_v2_theme_customization_proto_depIdxs = []int32{
277 0,
278 1,
279 1,
280 1,
281 1,
282 0,
283 }
284
285 func init() { file_google_actions_sdk_v2_theme_customization_proto_init() }
286 func file_google_actions_sdk_v2_theme_customization_proto_init() {
287 if File_google_actions_sdk_v2_theme_customization_proto != nil {
288 return
289 }
290 if !protoimpl.UnsafeEnabled {
291 file_google_actions_sdk_v2_theme_customization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
292 switch v := v.(*ThemeCustomization); i {
293 case 0:
294 return &v.state
295 case 1:
296 return &v.sizeCache
297 case 2:
298 return &v.unknownFields
299 default:
300 return nil
301 }
302 }
303 }
304 type x struct{}
305 out := protoimpl.TypeBuilder{
306 File: protoimpl.DescBuilder{
307 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
308 RawDescriptor: file_google_actions_sdk_v2_theme_customization_proto_rawDesc,
309 NumEnums: 1,
310 NumMessages: 1,
311 NumExtensions: 0,
312 NumServices: 0,
313 },
314 GoTypes: file_google_actions_sdk_v2_theme_customization_proto_goTypes,
315 DependencyIndexes: file_google_actions_sdk_v2_theme_customization_proto_depIdxs,
316 EnumInfos: file_google_actions_sdk_v2_theme_customization_proto_enumTypes,
317 MessageInfos: file_google_actions_sdk_v2_theme_customization_proto_msgTypes,
318 }.Build()
319 File_google_actions_sdk_v2_theme_customization_proto = out.File
320 file_google_actions_sdk_v2_theme_customization_proto_rawDesc = nil
321 file_google_actions_sdk_v2_theme_customization_proto_goTypes = nil
322 file_google_actions_sdk_v2_theme_customization_proto_depIdxs = nil
323 }
324
View as plain text