代表特定使用者語言代碼適用的 Actions 專案設定。在本例中,使用者是指叫用動作的使用者。這是可本地化的訊息。
| 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 |
必要欄位。動作專案的預設簡短說明 (如果沒有翻譯)。長度上限為 80 個半形字元。 |
fullDescription |
必要欄位。動作專案的預設詳細說明 (如果沒有翻譯)。長度上限為 4,000 個半形字元。 |
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 caps |
imageCornerStyle |
前景圖片的框線樣式。例如可套用至基本資訊卡或輪轉介面資訊卡的前景圖片。 |
landscapeBackgroundImage |
橫向模式 (最小 1920 x 1200 像素)。這個項目應指定為 |
portraitBackgroundImage |
直向模式 (最小 1200 x 1920 像素)。這個項目應指定為 |