Google 會運用 AI 技術將內容翻譯成你偏好的語言,但可能會出錯。
提供意見
Icon
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
資訊卡小工具中顯示的圖示。如需 Google Chat 應用程式範例,請參閱「新增圖示 」。
支援內建 和自訂 圖示。
適用於 Google Chat 擴充應用程式和 Google Workspace 外掛程式。
JSON 表示法
{
"altText" : string ,
"imageType" : enum (ImageType ) ,
"knownIcon" : string ,
"iconUrl" : string ,
"materialIcon" : {
object (MaterialIcon )
}
}
欄位
altText
string
(選用步驟) 無障礙功能圖示的說明。如未指定,則會提供預設值 Button。最佳做法是為圖示顯示的內容設定實用說明,並視情況說明其功能。例如 A user's account portrait 或 Opens a new browser tab and navigates to the Google Chat developer
documentation at https://developers.google.com/workspace/chat。
如果圖示是在 Button 中設定,當使用者將滑鼠游標懸停在按鈕上時,altText 會顯示為輔助文字。不過,如果按鈕也設定 text,系統會忽略圖示的 altText。
imageType
enum (ImageType )
套用至圖片的裁剪樣式。在某些情況下,套用 CIRCLE 裁剪會導致圖片繪製得比內建圖示大。
資訊卡小工具中顯示的圖示。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
knownIcon
string
顯示 Google Workspace 提供的其中一個內建圖示。
舉例來說,如要顯示飛機圖示,請指定 AIRPLANE。如果是公車,請指定 BUS。
如需完整的支援圖示清單,請參閱內建圖示 。
iconUrl
string
顯示託管於 HTTPS 網址的自訂圖示。
例如:
"iconUrl":
"https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png"
支援的檔案類型包括 .png 和 .jpg。
materialIcon
object (MaterialIcon )
顯示其中一個 Google Material Design 圖示 。
例如,如要顯示核取方塊圖示 ,請使用
"materialIcon": {
"name": "check_box"
}
適用於 Google Chat 擴充應用程式,不適用於 Google Workspace 外掛程式。
互斥欄位結束。
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-11-06 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-11-06 (世界標準時間)。"],[],[]]