Debian Codegraph @

googleapis/actions/sdk/v2/theme_customization.pb.go

raw
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/theme_customization.proto
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 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // Describes how the borders of images should be rendered.
39 type ThemeCustomization_ImageCornerStyle int32
40
41 const (
42 // Undefined / Unspecified.
43 ThemeCustomization_IMAGE_CORNER_STYLE_UNSPECIFIED ThemeCustomization_ImageCornerStyle = 0
44 // Round corner for image.
45 ThemeCustomization_CURVED ThemeCustomization_ImageCornerStyle = 1
46 // Rectangular corner for image.
47 ThemeCustomization_ANGLED ThemeCustomization_ImageCornerStyle = 2
48 )
49
50 // Enum value maps for ThemeCustomization_ImageCornerStyle.
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 // Deprecated: Use ThemeCustomization_ImageCornerStyle.Descriptor instead.
87 func (ThemeCustomization_ImageCornerStyle) EnumDescriptor() ([]byte, []int) {
88 return file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP(), []int{0, 0}
89 }
90
91 // Styles applied to cards that are presented to users
92 type ThemeCustomization struct {
93 state protoimpl.MessageState
94 sizeCache protoimpl.SizeCache
95 unknownFields protoimpl.UnknownFields
96
97 // Background color of cards. Acts as a fallback if `background_image` is
98 // not provided by developers or `background_image` doesn't fit for certain
99 // surfaces.
100 // Example usage: #FAFAFA
101 BackgroundColor string `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"`
102 // Primary theme color of the Action will be used to set text color of title,
103 // action item background color for Actions on Google cards.
104 // Example usage: #FAFAFA
105 PrimaryColor string `protobuf:"bytes,2,opt,name=primary_color,json=primaryColor,proto3" json:"primary_color,omitempty"`
106 // The font family that will be used for title of cards.
107 // Supported fonts:
108 // - Sans Serif
109 // - Sans Serif Medium
110 // - Sans Serif Bold
111 // - Sans Serif Black
112 // - Sans Serif Condensed
113 // - Sans Serif Condensed Medium
114 // - Serif
115 // - Serif Bold
116 // - Monospace
117 // - Cursive
118 // - Sans Serif Smallcaps
119 FontFamily string `protobuf:"bytes,3,opt,name=font_family,json=fontFamily,proto3" json:"font_family,omitempty"`
120 // Border style of foreground image of cards. For example, can be applied on
121 // the foreground image of a basic card or carousel card.
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 // Landscape mode (minimum 1920x1200 pixels).
124 // This should be specified as a reference to the corresponding image in the
125 // `resources/images/` directory. Eg: `$resources.images.foo` (without the
126 // extension) for image in `resources/images/foo.jpg`
127 // When working on a project pulled from Console the Google managed url pulled
128 // could be used.
129 LandscapeBackgroundImage string `protobuf:"bytes,5,opt,name=landscape_background_image,json=landscapeBackgroundImage,proto3" json:"landscape_background_image,omitempty"`
130 // Portrait mode (minimum 1200x1920 pixels).
131 // This should be specified as a reference to the corresponding image in the
132 // `resources/images/` directory. Eg: `$resources.images.foo` (without the
133 // extension) for image in `resources/images/foo.jpg`
134 // When working on a project pulled from Console the Google managed url pulled
135 // could be used.
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 // Deprecated: Use ThemeCustomization.ProtoReflect.Descriptor instead.
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), // 0: google.actions.sdk.v2.ThemeCustomization.ImageCornerStyle
274 (*ThemeCustomization)(nil), // 1: google.actions.sdk.v2.ThemeCustomization
275 }
276 var file_google_actions_sdk_v2_theme_customization_proto_depIdxs = []int32{
277 0, // 0: google.actions.sdk.v2.ThemeCustomization.image_corner_style:type_name -> google.actions.sdk.v2.ThemeCustomization.ImageCornerStyle
278 1, // [1:1] is the sub-list for method output_type
279 1, // [1:1] is the sub-list for method input_type
280 1, // [1:1] is the sub-list for extension type_name
281 1, // [1:1] is the sub-list for extension extendee
282 0, // [0:1] is the sub-list for field type_name
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 }