注意:您正在查看 API 的 REST 介面說明文件。我們的官方用戶端程式庫支援 gRPC。詳情請參閱
REST 簡介。
Label
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
"resourceName": string,
"status": enum (LabelStatus ),
"textLabel": {
object (TextLabel )
},
"id": string,
"name": string
} |
欄位 |
resourceName |
string
無法變更。資源名稱。標籤資源名稱的格式為:customers/{customerId}/labels/{label_id}
|
status |
enum (LabelStatus )
僅供輸出。標籤的狀態。唯讀。
|
textLabel |
object (TextLabel )
一種標籤,在彩色背景上顯示文字。
|
id |
string (int64 format)
僅供輸出。標籤的 ID。唯讀。
|
name |
string
標籤名稱。 這是必填欄位,建立新標籤時不可空白。 此字串長度必須介於 1 到 80 (含) 之間。
|
LabelStatus
列舉 |
UNSPECIFIED |
未指定。 |
UNKNOWN |
僅適用於傳回值。代表此版本中未知的值。 |
ENABLED |
標籤已啟用。 |
REMOVED |
已移除標籤。 |
TextLabel
JSON 表示法 |
{
"backgroundColor": string,
"description": string
} |
欄位 |
backgroundColor |
string
以 RGB 格式呈現標籤的背景顏色。這個字串必須符合規則運算式「^#([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$」。注意:管理員帳戶可能不會顯示背景顏色。
|
description |
string
關於標籤的簡短說明。長度不可超過 200 個半形字元。
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-04-24 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]