Value

  • 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 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

Create a Mobile Website
View Site in Mobile | Classic
Share by: