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