Value
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
JSON 表示法 |
{
// Union field value can be only one of the following:
"booleanValue": boolean,
"stringValue": string,
"stringSetValue": {
object (StringSet )
}
// End of list of possible types for union field value .
} |
欄位 |
聯集欄位 value 。選取資料類型和相關聯的值。value 只能是下列其中一項: |
booleanValue |
boolean
將這個值定義為布林值。
|
stringValue |
string
將這個值定義為字串值。
|
stringSetValue |
object (StringSet )
將這個值定義為 StringSet。
|
StringSet
可保存一組字串的字串集值。每個字串的長度上限為 60 個字元,字串集最多可包含 50 個字串。
JSON 表示法 |
{
"values": [
string
]
} |
欄位 |
values[] |
string
集合中的字串
|
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[[["容易理解","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"]],["上次更新時間:2025-07-26 (世界標準時間)。"],[[["This documentation details the structure and types of data that can be stored in a setting value."],["A setting value can hold a boolean, a string, or a set of strings (StringSet)."],["StringSets have limitations: a maximum of 50 strings, with each string having a maximum length of 60 characters."],["The JSON representation for each data type (boolean, string, StringSet) is provided for clarity."]]],["The document outlines data types within a setting value, which can be a boolean, a string, or a StringSet. A StringSet is a collection of strings, each up to 60 characters long, with a maximum of 50 strings per set. The JSON representation for the setting value uses a union field `value` to specify one of these types. The StringSet's JSON uses an array `values` to list the strings.\n"]]