代表使用者語言代碼專屬的動作專案設定。在本例中,使用者是指叫用您動作的使用者。這則訊息可以本地化。
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 |
必要欄位。使用者與您的動作互動時聽到的 Google 助理語音類型。支援的值為「male_1」、「male_2」、「female_1」和「female_2」。 |
voiceLocale |
選用設定。指定語音的語言代碼。如未指定,則會解析為使用者的 Google 助理語言代碼。如有指定,語音語言代碼必須與 LocalizedSettings 中指定的語言代碼相同。 |
privacyPolicyUrl |
必要欄位。隱私權政策網址。 |
sampleInvocations[] |
選用設定。在 Google 助理目錄中的叫用詞組範例,做為動作專案說明的一部分。這可協助使用者瞭解如何使用。 |
themeCustomization |
選用設定。動作視覺元件的主題自訂。 |
ThemeCustomization
套用至向使用者顯示的資訊卡樣式
YAML 表示法 | |
---|---|
backgroundColor: string
primaryColor: string
fontFamily: string
imageCornerStyle: enum ( |
欄位 | |
---|---|
backgroundColor |
資訊卡的背景顏色。如果開發人員未提供 |
primaryColor |
動作的主要主題顏色將用於設定 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 - Cursive - Sans |
imageCornerStyle |
前景資訊卡的框線樣式。舉例來說,可套用至基本資訊卡或輪轉介面資訊卡的前景圖片。 |
landscapeBackgroundImage |
橫向模式 (至少 1920x1200 像素)。這應指定為 |
portraitBackgroundImage |
直向模式 (至少 1200x1920 像素)。這應指定為 |