settings.proto 5.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  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. import "google/actions/sdk/v2/account_linking.proto";
  17. import "google/actions/sdk/v2/localized_settings.proto";
  18. import "google/actions/sdk/v2/surface.proto";
  19. option go_package = "google.golang.org/genproto/googleapis/actions/sdk/v2;sdk";
  20. option java_multiple_files = true;
  21. option java_outer_classname = "SettingsProto";
  22. option java_package = "com.google.actions.sdk.v2";
  23. // Represents settings of an Actions project that are not locale specific.
  24. message Settings {
  25. // The category choices for an Actions project.
  26. enum Category {
  27. // Unknown / Unspecified.
  28. CATEGORY_UNSPECIFIED = 0;
  29. // Business and Finance category.
  30. BUSINESS_AND_FINANCE = 2;
  31. // Education and Reference category.
  32. EDUCATION_AND_REFERENCE = 3;
  33. // Food and Drink category.
  34. FOOD_AND_DRINK = 4;
  35. // Games and Trivia category.
  36. GAMES_AND_TRIVIA = 5;
  37. // Health and Fitness category.
  38. HEALTH_AND_FITNESS = 6;
  39. // Kids and Family category.
  40. KIDS_AND_FAMILY = 20;
  41. // Lifestyle category.
  42. LIFESTYLE = 7;
  43. // Local category.
  44. LOCAL = 8;
  45. // Movies and TV category.
  46. MOVIES_AND_TV = 9;
  47. // Music and Audio category.
  48. MUSIC_AND_AUDIO = 10;
  49. // News category,
  50. NEWS = 1;
  51. // Novelty and Humor category.
  52. NOVELTY_AND_HUMOR = 11;
  53. // Productivity category.
  54. PRODUCTIVITY = 12;
  55. // Shopping category.
  56. SHOPPING = 13;
  57. // Social category.
  58. SOCIAL = 14;
  59. // Sports category.
  60. SPORTS = 15;
  61. // Travel and Transportation category.
  62. TRAVEL_AND_TRANSPORTATION = 16;
  63. // Utilities category.
  64. UTILITIES = 17;
  65. // Weather category.
  66. WEATHER = 18;
  67. // Home Control category.
  68. HOME_CONTROL = 19;
  69. }
  70. // Actions project id.
  71. string project_id = 1;
  72. // Locale which is default for the project. For all files except under
  73. // `resources/` with no locale in the path, the localized data is attributed
  74. // to this `default_locale`. For files under `resources/` no locale means that
  75. // the resource is applicable to all locales.
  76. string default_locale = 2;
  77. // Represents the regions where users can invoke your Actions, which is
  78. // based on the user's location of presence. Cannot be set if
  79. // `disabled_regions` is set. If both `enabled_regions` and `disabled_regions`
  80. // are not specified, users can invoke your Actions in all regions. Each
  81. // region is represented using the Canonical Name of Adwords geotargets. See
  82. // https://developers.google.com/adwords/api/docs/appendix/geotargeting
  83. // Examples include:
  84. // - "Germany"
  85. // - "Ghana"
  86. // - "Greece"
  87. // - "Grenada"
  88. // - "United Kingdom"
  89. // - "United States"
  90. // - "United States Minor Outlying Islands"
  91. // - "Uruguay"
  92. repeated string enabled_regions = 3;
  93. // Represents the regions where your Actions are blocked, based on the user's
  94. // location of presence. Cannot be set if `enabled_regions` is set.
  95. // Each region is represented using the Canonical Name of Adwords geotargets.
  96. // See https://developers.google.com/adwords/api/docs/appendix/geotargeting
  97. // Examples include:
  98. // - "Germany"
  99. // - "Ghana"
  100. // - "Greece"
  101. // - "Grenada"
  102. // - "United Kingdom"
  103. // - "United States"
  104. // - "United States Minor Outlying Islands"
  105. // - "Uruguay"
  106. repeated string disabled_regions = 4;
  107. // The category for this Actions project.
  108. Category category = 5;
  109. // Whether Actions can use transactions (for example, making
  110. // reservations, taking orders, etc.). If false, then attempts to use the
  111. // Transactions APIs fail.
  112. bool uses_transactions_api = 6;
  113. // Whether Actions can perform transactions for digital goods.
  114. bool uses_digital_purchase_api = 7;
  115. // Whether Actions use Interactive Canvas.
  116. bool uses_interactive_canvas = 8;
  117. // Whether Actions use the home storage feature.
  118. bool uses_home_storage = 17;
  119. // Whether Actions content is designed for family (DFF).
  120. bool designed_for_family = 9;
  121. // Whether Actions contains alcohol or tobacco related content.
  122. bool contains_alcohol_or_tobacco_content = 11;
  123. // Whether Actions may leave mic open without an explicit prompt during
  124. // conversation.
  125. bool keeps_mic_open = 12;
  126. // The surface requirements that a client surface must support to invoke
  127. // Actions in this project.
  128. SurfaceRequirements surface_requirements = 13;
  129. // Free-form testing instructions for Actions reviewer (for example, account
  130. // linking instructions).
  131. string testing_instructions = 14;
  132. // Localized settings for the project's default locale. Every additional
  133. // locale should have its own settings file in its own directory.
  134. LocalizedSettings localized_settings = 15;
  135. // Allow users to create or link accounts through Google sign-in and/or your
  136. // own OAuth service.
  137. AccountLinking account_linking = 16;
  138. // Android apps selected to acccess Google Play purchases for transactions.
  139. // This is a selection from the Android apps connected to the actions project
  140. // to verify brand ownership and enable additional features. See
  141. // https://developers.google.com/assistant/console/brand-verification for more
  142. // information.
  143. repeated string selected_android_apps = 20;
  144. }