Value
Stay organized with collections
Save and categorize content based on your preferences.
The data in a setting value.
JSON representation |
{
// 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 .
} |
Fields |
Union field value . Selects the data type and associated value. value can be only one of the following: |
booleanValue |
boolean
Defines this value as being a boolean value.
|
stringValue |
string
Defines this value as being a string value.
|
stringSetValue |
object (StringSet )
Defines this value as being a StringSet.
|
StringSet
A string set value that can hold a set of strings. The maximum length of each string is 60 characters and there can be a maximum of 50 strings in the string set.
JSON representation |
{
"values": [
string
]
} |
Fields |
values[] |
string
The strings in the set
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-05-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-05-25 UTC."],[[["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"]]