theme_customization.proto 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  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. syntax = "proto3";
  15. package google.actions.sdk.v2;
  16. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk";
  17. option java_multiple_files = true;
  18. option java_outer_classname = "ThemeCustomizationProto";
  19. option java_package = "com.google.actions.sdk.v2";
  20. // Styles applied to cards that are presented to users
  21. message ThemeCustomization {
  22. // Describes how the borders of images should be rendered.
  23. enum ImageCornerStyle {
  24. // Undefined / Unspecified.
  25. IMAGE_CORNER_STYLE_UNSPECIFIED = 0;
  26. // Round corner for image.
  27. CURVED = 1;
  28. // Rectangular corner for image.
  29. ANGLED = 2;
  30. }
  31. // Background color of cards. Acts as a fallback if `background_image` is
  32. // not provided by developers or `background_image` doesn't fit for certain
  33. // surfaces.
  34. // Example usage: #FAFAFA
  35. string background_color = 1;
  36. // Primary theme color of the Action will be used to set text color of title,
  37. // action item background color for Actions on Google cards.
  38. // Example usage: #FAFAFA
  39. string primary_color = 2;
  40. // The font family that will be used for title of cards.
  41. // Supported fonts:
  42. // - Sans Serif
  43. // - Sans Serif Medium
  44. // - Sans Serif Bold
  45. // - Sans Serif Black
  46. // - Sans Serif Condensed
  47. // - Sans Serif Condensed Medium
  48. // - Serif
  49. // - Serif Bold
  50. // - Monospace
  51. // - Cursive
  52. // - Sans Serif Smallcaps
  53. string font_family = 3;
  54. // Border style of foreground image of cards. For example, can be applied on
  55. // the foreground image of a basic card or carousel card.
  56. ImageCornerStyle image_corner_style = 4;
  57. // Landscape mode (minimum 1920x1200 pixels).
  58. // This should be specified as a reference to the corresponding image in the
  59. // `resources/images/` directory. Eg: `$resources.images.foo` (without the
  60. // extension) for image in `resources/images/foo.jpg`
  61. // When working on a project pulled from Console the Google managed url pulled
  62. // could be used.
  63. string landscape_background_image = 5;
  64. // Portrait mode (minimum 1200x1920 pixels).
  65. // This should be specified as a reference to the corresponding image in the
  66. // `resources/images/` directory. Eg: `$resources.images.foo` (without the
  67. // extension) for image in `resources/images/foo.jpg`
  68. // When working on a project pulled from Console the Google managed url pulled
  69. // could be used.
  70. string portrait_background_image = 6;
  71. }