Settings

表示非特定于语言区域的 Actions 项目的设置。

YAML 表示法
projectId: string
defaultLocale: string
enabledRegions: 
  - string
disabledRegions: 
  - string
category: enum (Category)
usesTransactionsApi: boolean
usesDigitalPurchaseApi: boolean
usesInteractiveCanvas: boolean
usesHomeStorage: boolean
designedForFamily: boolean
containsAlcoholOrTobaccoContent: boolean
keepsMicOpen: boolean
surfaceRequirements: 
  object (SurfaceRequirements)
testingInstructions: string
localizedSettings: 
  object (LocalizedSettings)
accountLinking: 
  object (AccountLinking)
selectedAndroidApps: 
  - string
字段
projectId

string

Actions 项目 ID。

defaultLocale

string

项目的默认语言区域。对于除 resources/ 下且路径中不含语言区域的文件之外的所有文件,本地化数据将归因于此 defaultLocale。对于 resources/ 下的文件,无语言区域意味着资源适用于所有语言区域。

enabledRegions[]

string

表示用户可以在哪些区域调用您的 Action,具体视用户的所在地而定。如果 disabledRegions 已设置,则无法设置。如果未指定 enabledRegionsdisabledRegions,用户可以在所有区域中调用您的 Action。每个区域均使用 AdWords 地理位置定位的“规范名称”来表示。请参阅 https://developers.google.com/adwords/api/docs/appendix/geotargeting,例如:-“德国”-“加纳”-“希腊”-“格林纳达”-“英国”-“美国”-“美国本土外小岛屿”-“乌拉圭”

disabledRegions[]

string

表示根据用户的所在位置,在哪些地区禁止您的 Action。如果 enabledRegions 已设置,则无法设置。每个区域均使用 AdWords 地理位置定位的“规范名称”来表示。请参阅 https://developers.google.com/adwords/api/docs/appendix/geotargeting,例如:-“德国”-“加纳”-“希腊”-“格林纳达”-“英国”-“美国”-“美国本土外小岛屿”-“乌拉圭”

category

enum (Category)

此 Actions 项目的类别。

usesTransactionsApi

boolean

Action 是否可以使用事务(例如,预订、接受订单等)。如果为 false,则尝试使用 Transaction API 会失败。

usesDigitalPurchaseApi

boolean

Action 是否可以执行数字商品交易。

usesInteractiveCanvas

boolean

Action 是否使用 Interactive Canvas。

usesHomeStorage

boolean

Action 是否使用家庭存储空间功能。

designedForFamily

boolean

Action 内容是否面向儿童 (DFF)。

containsAlcoholOrTobaccoContent

boolean

Action 是否包含与酒精饮料或烟草相关的内容。

keepsMicOpen

boolean

指定 Action 是否会在对话期间没有明确提示的情况下将麦克风保持打开状态。

surfaceRequirements

object (SurfaceRequirements)

客户端 Surface 必须支持的 Surface 要求,才能在此项目中调用 Action。

testingInstructions

string

面向 Action 审核者的自由格式测试说明(例如,账号关联说明)。

localizedSettings

object (LocalizedSettings)

项目默认语言区域的本地化设置。每个额外的语言区域都应在其目录中包含自己的设置文件。

accountLinking

object (AccountLinking)

允许用户通过 Google 登录和/或您自己的 OAuth 服务创建或关联帐号。

selectedAndroidApps[]

string

已选择可访问 Google Play 购买交易的 Android 应用。这是从已关联到 Action 项目的 Android 应用中进行选择,用于验证品牌所有权并启用其他功能。如需了解详情,请参阅 https://developers.google.com/assistant/console/brand-verification

SurfaceRequirements

包含客户端 Surface 必须支持的一组要求,以便在您的项目中调用 Action。

YAML 表示法
minimumRequirements: 
  - object (CapabilityRequirement)
字段
minimumRequirements[]

object (CapabilityRequirement)

在项目中调用 Action 所需的最少功能集。如果 surface 缺少上述任何一项,系统将不会触发 Action。