表示特定于用户语言区域的 Actions 项目的设置。在这种情况下,用户是指调用您的 Action 的最终用户。此消息可本地化。
YAML 表示法 | |
---|---|
displayName: string
pronunciation: string
shortDescription: string
fullDescription: string
smallLogoImage: string
largeBannerImage: string
developerName: string
developerEmail: string
termsOfServiceUrl: string
voice: string
voiceLocale: string
privacyPolicyUrl: string
sampleInvocations:
- string
themeCustomization:
object ( |
字段 | |
---|---|
displayName |
必需。此 Actions 项目的默认显示名称(如果没有可用的翻译) |
pronunciation |
必需。显示名称的发音,以便在语音(口头)上下文中调用它。 |
shortDescription |
必需。Actions 项目的默认简短说明(如果没有可用的翻译)。上限为 80 个字符。 |
fullDescription |
必需。Actions 项目的默认详细说明(如果没有可用的翻译)。不能超过 4000 个字符。 |
smallLogoImage |
必需。方形小图片,192 x 192 像素。应指定此图片作为对 |
largeBannerImage |
可选。大型横向图片,1920 x 1080 像素。应指定此图片作为对 |
developerName |
必需。要向用户显示的开发者的名称。 |
developerEmail |
必需。开发者的联系电子邮件地址。 |
termsOfServiceUrl |
可选。服务条款网址。 |
voice |
必需。用户在与您的 Action 互动时听到的 Google 助理语音类型。支持的值包括“male_1”“male_2”“female_1”和“female_2”。 |
voiceLocale |
可选。指定语音的语言区域。如果未指定,则解析为用户的 Google 助理语言区域。如果指定,则语音语言区域必须与 LocalizedSettings 中指定的语言区域具有相同的根语言。 |
privacyPolicyUrl |
必需。隐私权政策网址。 |
sampleInvocations[] |
可选。在 Google 助理目录中,作为 Actions 项目说明的一部分显示的调用短语示例。这将有助于用户了解如何使用它。 |
themeCustomization |
可选。针对 Action 视觉组件的主题自定义。 |
ThemeCustomization
应用于向用户显示的卡片的样式
YAML 表示法 | |
---|---|
backgroundColor: string
primaryColor: string
fontFamily: string
imageCornerStyle: enum ( |
字段 | |
---|---|
backgroundColor |
卡片的背景颜色。当开发者未提供 |
primaryColor |
Action 的主要主题颜色将用于为 Actions on Google 卡片设置标题文字颜色和操作项背景颜色。用法示例:#FAFAFA |
fontFamily |
将用作卡片标题的字体系列。支持的字体:- Sans Serif - Sans Serif Medium - Sans Serif Bold - Sans Serif Black - Sans Serif Condensed - Sans Serif Condensed Medium - Serif - Serif Bold - Monospace - Sancaps Cursive - |
imageCornerStyle |
卡片前景图片的边框样式。例如,可应用于基本卡片或轮播卡片的前景图片。 |
landscapeBackgroundImage |
横屏模式(最小 1920x1200 像素)。应指定此图片作为对 |
portraitBackgroundImage |
纵向模式(最小 1200x1920 像素)。应指定此图片作为对 |