1// Copyright 2020 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.25.0-devel 18// protoc v3.13.0 19// source: google/actions/sdk/v2/theme_customization.proto 20 21package sdk 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 proto "github.com/golang/protobuf/proto" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 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// This is a compile-time assertion that a sufficiently up-to-date version 40// of the legacy proto package is being used. 41const _ = proto.ProtoPackageIsVersion4 42 43// Describes how the borders of images should be rendered. 44type ThemeCustomization_ImageCornerStyle int32 45 46const ( 47 // Undefined / Unspecified. 48 ThemeCustomization_IMAGE_CORNER_STYLE_UNSPECIFIED ThemeCustomization_ImageCornerStyle = 0 49 // Round corner for image. 50 ThemeCustomization_CURVED ThemeCustomization_ImageCornerStyle = 1 51 // Rectangular corner for image. 52 ThemeCustomization_ANGLED ThemeCustomization_ImageCornerStyle = 2 53) 54 55// Enum value maps for ThemeCustomization_ImageCornerStyle. 56var ( 57 ThemeCustomization_ImageCornerStyle_name = map[int32]string{ 58 0: "IMAGE_CORNER_STYLE_UNSPECIFIED", 59 1: "CURVED", 60 2: "ANGLED", 61 } 62 ThemeCustomization_ImageCornerStyle_value = map[string]int32{ 63 "IMAGE_CORNER_STYLE_UNSPECIFIED": 0, 64 "CURVED": 1, 65 "ANGLED": 2, 66 } 67) 68 69func (x ThemeCustomization_ImageCornerStyle) Enum() *ThemeCustomization_ImageCornerStyle { 70 p := new(ThemeCustomization_ImageCornerStyle) 71 *p = x 72 return p 73} 74 75func (x ThemeCustomization_ImageCornerStyle) String() string { 76 return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x)) 77} 78 79func (ThemeCustomization_ImageCornerStyle) Descriptor() protoreflect.EnumDescriptor { 80 return file_google_actions_sdk_v2_theme_customization_proto_enumTypes[0].Descriptor() 81} 82 83func (ThemeCustomization_ImageCornerStyle) Type() protoreflect.EnumType { 84 return &file_google_actions_sdk_v2_theme_customization_proto_enumTypes[0] 85} 86 87func (x ThemeCustomization_ImageCornerStyle) Number() protoreflect.EnumNumber { 88 return protoreflect.EnumNumber(x) 89} 90 91// Deprecated: Use ThemeCustomization_ImageCornerStyle.Descriptor instead. 92func (ThemeCustomization_ImageCornerStyle) EnumDescriptor() ([]byte, []int) { 93 return file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP(), []int{0, 0} 94} 95 96// Styles applied to cards that are presented to users 97type ThemeCustomization struct { 98 state protoimpl.MessageState 99 sizeCache protoimpl.SizeCache 100 unknownFields protoimpl.UnknownFields 101 102 // Background color of cards. Acts as a fallback if `background_image` is 103 // not provided by developers or `background_image` doesn't fit for certain 104 // surfaces. 105 // Example usage: #FAFAFA 106 BackgroundColor string `protobuf:"bytes,1,opt,name=background_color,json=backgroundColor,proto3" json:"background_color,omitempty"` 107 // Primary theme color of the Action will be used to set text color of title, 108 // action item background color for Actions on Google cards. 109 // Example usage: #FAFAFA 110 PrimaryColor string `protobuf:"bytes,2,opt,name=primary_color,json=primaryColor,proto3" json:"primary_color,omitempty"` 111 // The font family that will be used for title of cards. 112 // Supported fonts: 113 // - Sans Serif 114 // - Sans Serif Medium 115 // - Sans Serif Bold 116 // - Sans Serif Black 117 // - Sans Serif Condensed 118 // - Sans Serif Condensed Medium 119 // - Serif 120 // - Serif Bold 121 // - Monospace 122 // - Cursive 123 // - Sans Serif Smallcaps 124 FontFamily string `protobuf:"bytes,3,opt,name=font_family,json=fontFamily,proto3" json:"font_family,omitempty"` 125 // Border style of foreground image of cards. For example, can be applied on 126 // the foreground image of a basic card or carousel card. 127 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"` 128 // Landscape mode (minimum 1920x1200 pixels). 129 // This should be specified as a reference to the corresponding image in the 130 // `resources/images/` directory. Eg: `$resources.images.foo` (without the 131 // extension) for image in `resources/images/foo.jpg` 132 // When working on a project pulled from Console, the Google-managed URL 133 // pulled could be used. URLs from external sources are not allowed. 134 LandscapeBackgroundImage string `protobuf:"bytes,5,opt,name=landscape_background_image,json=landscapeBackgroundImage,proto3" json:"landscape_background_image,omitempty"` 135 // Portrait mode (minimum 1200x1920 pixels). 136 // This should be specified as a reference to the corresponding image in the 137 // `resources/images/` directory. Eg: `$resources.images.foo` (without the 138 // extension) for image in `resources/images/foo.jpg` 139 // When working on a project pulled from Console, the Google-managed URL 140 // pulled could be used. URLs from external sources are not allowed. 141 PortraitBackgroundImage string `protobuf:"bytes,6,opt,name=portrait_background_image,json=portraitBackgroundImage,proto3" json:"portrait_background_image,omitempty"` 142} 143 144func (x *ThemeCustomization) Reset() { 145 *x = ThemeCustomization{} 146 if protoimpl.UnsafeEnabled { 147 mi := &file_google_actions_sdk_v2_theme_customization_proto_msgTypes[0] 148 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 149 ms.StoreMessageInfo(mi) 150 } 151} 152 153func (x *ThemeCustomization) String() string { 154 return protoimpl.X.MessageStringOf(x) 155} 156 157func (*ThemeCustomization) ProtoMessage() {} 158 159func (x *ThemeCustomization) ProtoReflect() protoreflect.Message { 160 mi := &file_google_actions_sdk_v2_theme_customization_proto_msgTypes[0] 161 if protoimpl.UnsafeEnabled && x != nil { 162 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 163 if ms.LoadMessageInfo() == nil { 164 ms.StoreMessageInfo(mi) 165 } 166 return ms 167 } 168 return mi.MessageOf(x) 169} 170 171// Deprecated: Use ThemeCustomization.ProtoReflect.Descriptor instead. 172func (*ThemeCustomization) Descriptor() ([]byte, []int) { 173 return file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP(), []int{0} 174} 175 176func (x *ThemeCustomization) GetBackgroundColor() string { 177 if x != nil { 178 return x.BackgroundColor 179 } 180 return "" 181} 182 183func (x *ThemeCustomization) GetPrimaryColor() string { 184 if x != nil { 185 return x.PrimaryColor 186 } 187 return "" 188} 189 190func (x *ThemeCustomization) GetFontFamily() string { 191 if x != nil { 192 return x.FontFamily 193 } 194 return "" 195} 196 197func (x *ThemeCustomization) GetImageCornerStyle() ThemeCustomization_ImageCornerStyle { 198 if x != nil { 199 return x.ImageCornerStyle 200 } 201 return ThemeCustomization_IMAGE_CORNER_STYLE_UNSPECIFIED 202} 203 204func (x *ThemeCustomization) GetLandscapeBackgroundImage() string { 205 if x != nil { 206 return x.LandscapeBackgroundImage 207 } 208 return "" 209} 210 211func (x *ThemeCustomization) GetPortraitBackgroundImage() string { 212 if x != nil { 213 return x.PortraitBackgroundImage 214 } 215 return "" 216} 217 218var File_google_actions_sdk_v2_theme_customization_proto protoreflect.FileDescriptor 219 220var file_google_actions_sdk_v2_theme_customization_proto_rawDesc = []byte{ 221 0x0a, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 222 0x2f, 0x73, 0x64, 0x6b, 0x2f, 0x76, 0x32, 0x2f, 0x74, 0x68, 0x65, 0x6d, 0x65, 0x5f, 0x63, 0x75, 223 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 224 0x6f, 0x12, 0x15, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 225 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 0x32, 0x22, 0xb9, 0x03, 0x0a, 0x12, 0x54, 0x68, 0x65, 226 0x6d, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 227 0x29, 0x0a, 0x10, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 0x63, 0x6f, 228 0x6c, 0x6f, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0f, 0x62, 0x61, 0x63, 0x6b, 0x67, 229 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 0x23, 0x0a, 0x0d, 0x70, 0x72, 230 0x69, 0x6d, 0x61, 0x72, 0x79, 0x5f, 0x63, 0x6f, 0x6c, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 231 0x09, 0x52, 0x0c, 0x70, 0x72, 0x69, 0x6d, 0x61, 0x72, 0x79, 0x43, 0x6f, 0x6c, 0x6f, 0x72, 0x12, 232 0x1f, 0x0a, 0x0b, 0x66, 0x6f, 0x6e, 0x74, 0x5f, 0x66, 0x61, 0x6d, 0x69, 0x6c, 0x79, 0x18, 0x03, 233 0x20, 0x01, 0x28, 0x09, 0x52, 0x0a, 0x66, 0x6f, 0x6e, 0x74, 0x46, 0x61, 0x6d, 0x69, 0x6c, 0x79, 234 0x12, 0x68, 0x0a, 0x12, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x5f, 0x63, 0x6f, 0x72, 0x6e, 0x65, 0x72, 235 0x5f, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3a, 0x2e, 0x67, 236 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 237 0x6b, 0x2e, 0x76, 0x32, 0x2e, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 238 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x72, 239 0x6e, 0x65, 0x72, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x52, 0x10, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x43, 240 0x6f, 0x72, 0x6e, 0x65, 0x72, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x3c, 0x0a, 0x1a, 0x6c, 0x61, 241 0x6e, 0x64, 0x73, 0x63, 0x61, 0x70, 0x65, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 242 0x6e, 0x64, 0x5f, 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09, 0x52, 0x18, 243 0x6c, 0x61, 0x6e, 0x64, 0x73, 0x63, 0x61, 0x70, 0x65, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 244 0x75, 0x6e, 0x64, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x12, 0x3a, 0x0a, 0x19, 0x70, 0x6f, 0x72, 0x74, 245 0x72, 0x61, 0x69, 0x74, 0x5f, 0x62, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x5f, 246 0x69, 0x6d, 0x61, 0x67, 0x65, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x17, 0x70, 0x6f, 0x72, 247 0x74, 0x72, 0x61, 0x69, 0x74, 0x42, 0x61, 0x63, 0x6b, 0x67, 0x72, 0x6f, 0x75, 0x6e, 0x64, 0x49, 248 0x6d, 0x61, 0x67, 0x65, 0x22, 0x4e, 0x0a, 0x10, 0x49, 0x6d, 0x61, 0x67, 0x65, 0x43, 0x6f, 0x72, 249 0x6e, 0x65, 0x72, 0x53, 0x74, 0x79, 0x6c, 0x65, 0x12, 0x22, 0x0a, 0x1e, 0x49, 0x4d, 0x41, 0x47, 250 0x45, 0x5f, 0x43, 0x4f, 0x52, 0x4e, 0x45, 0x52, 0x5f, 0x53, 0x54, 0x59, 0x4c, 0x45, 0x5f, 0x55, 251 0x4e, 0x53, 0x50, 0x45, 0x43, 0x49, 0x46, 0x49, 0x45, 0x44, 0x10, 0x00, 0x12, 0x0a, 0x0a, 0x06, 252 0x43, 0x55, 0x52, 0x56, 0x45, 0x44, 0x10, 0x01, 0x12, 0x0a, 0x0a, 0x06, 0x41, 0x4e, 0x47, 0x4c, 253 0x45, 0x44, 0x10, 0x02, 0x42, 0x70, 0x0a, 0x19, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 254 0x6c, 0x65, 0x2e, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x73, 0x64, 0x6b, 0x2e, 0x76, 255 0x32, 0x42, 0x17, 0x54, 0x68, 0x65, 0x6d, 0x65, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x69, 0x7a, 256 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x38, 0x67, 0x6f, 257 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 258 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 259 0x70, 0x69, 0x73, 0x2f, 0x61, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x73, 0x64, 0x6b, 0x2f, 260 0x76, 0x32, 0x3b, 0x73, 0x64, 0x6b, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 261} 262 263var ( 264 file_google_actions_sdk_v2_theme_customization_proto_rawDescOnce sync.Once 265 file_google_actions_sdk_v2_theme_customization_proto_rawDescData = file_google_actions_sdk_v2_theme_customization_proto_rawDesc 266) 267 268func file_google_actions_sdk_v2_theme_customization_proto_rawDescGZIP() []byte { 269 file_google_actions_sdk_v2_theme_customization_proto_rawDescOnce.Do(func() { 270 file_google_actions_sdk_v2_theme_customization_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_actions_sdk_v2_theme_customization_proto_rawDescData) 271 }) 272 return file_google_actions_sdk_v2_theme_customization_proto_rawDescData 273} 274 275var file_google_actions_sdk_v2_theme_customization_proto_enumTypes = make([]protoimpl.EnumInfo, 1) 276var file_google_actions_sdk_v2_theme_customization_proto_msgTypes = make([]protoimpl.MessageInfo, 1) 277var file_google_actions_sdk_v2_theme_customization_proto_goTypes = []interface{}{ 278 (ThemeCustomization_ImageCornerStyle)(0), // 0: google.actions.sdk.v2.ThemeCustomization.ImageCornerStyle 279 (*ThemeCustomization)(nil), // 1: google.actions.sdk.v2.ThemeCustomization 280} 281var file_google_actions_sdk_v2_theme_customization_proto_depIdxs = []int32{ 282 0, // 0: google.actions.sdk.v2.ThemeCustomization.image_corner_style:type_name -> google.actions.sdk.v2.ThemeCustomization.ImageCornerStyle 283 1, // [1:1] is the sub-list for method output_type 284 1, // [1:1] is the sub-list for method input_type 285 1, // [1:1] is the sub-list for extension type_name 286 1, // [1:1] is the sub-list for extension extendee 287 0, // [0:1] is the sub-list for field type_name 288} 289 290func init() { file_google_actions_sdk_v2_theme_customization_proto_init() } 291func file_google_actions_sdk_v2_theme_customization_proto_init() { 292 if File_google_actions_sdk_v2_theme_customization_proto != nil { 293 return 294 } 295 if !protoimpl.UnsafeEnabled { 296 file_google_actions_sdk_v2_theme_customization_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 297 switch v := v.(*ThemeCustomization); i { 298 case 0: 299 return &v.state 300 case 1: 301 return &v.sizeCache 302 case 2: 303 return &v.unknownFields 304 default: 305 return nil 306 } 307 } 308 } 309 type x struct{} 310 out := protoimpl.TypeBuilder{ 311 File: protoimpl.DescBuilder{ 312 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 313 RawDescriptor: file_google_actions_sdk_v2_theme_customization_proto_rawDesc, 314 NumEnums: 1, 315 NumMessages: 1, 316 NumExtensions: 0, 317 NumServices: 0, 318 }, 319 GoTypes: file_google_actions_sdk_v2_theme_customization_proto_goTypes, 320 DependencyIndexes: file_google_actions_sdk_v2_theme_customization_proto_depIdxs, 321 EnumInfos: file_google_actions_sdk_v2_theme_customization_proto_enumTypes, 322 MessageInfos: file_google_actions_sdk_v2_theme_customization_proto_msgTypes, 323 }.Build() 324 File_google_actions_sdk_v2_theme_customization_proto = out.File 325 file_google_actions_sdk_v2_theme_customization_proto_rawDesc = nil 326 file_google_actions_sdk_v2_theme_customization_proto_goTypes = nil 327 file_google_actions_sdk_v2_theme_customization_proto_depIdxs = nil 328} 329