Class VariableData Stay organized with collections Save and categorize content based on your preferences.
Represents a variable data which can contain a collection of values in various types.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
Sample usage:
constvariableData=AddOnsResponseService.newVariableData().addBooleanValue(true).addIntegerValue(123);
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Variable | Adds a boolean value to the variable data. |
add | Variable | Adds an email address to the variable data. |
add | Variable | Adds a float value to the variable data. |
add | Variable | Adds a google user to the variable data. |
add | Variable | Adds an integer value to the variable data. |
add | Variable | Adds aResource value to the variable data. |
add | Variable | Adds a resource reference ID to the variable data. |
add | Variable | Adds a string value to the variable data. |
add | Variable | Adds aTime value to the variable data. |
add | Variable | Adds aWorkflow value to the variable data. |
Detailed documentation
addBooleanValue(value)
Adds a boolean value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
value | Boolean | The boolean value to be added. |
Return
Variable — This variable data object, for chaining.
addEmailAddress(emailAddress)
Adds an email address to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
email | String | The email address text value to be added. |
Return
Variable — This variable data object, for chaining.
addFloatValue(value)
Adds a float value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
value | Number | The float value to be added. |
Return
Variable — This variable data object, for chaining.
addGoogleUser(googleUser)
Adds a google user to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
google | String | The google user text value to be added, should have format of user/xxxx. |
Return
Variable — This variable data object, for chaining.
addIntegerValue(value)
Adds an integer value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
value | Integer | The integer value to be added. |
Return
Variable — This variable data object, for chaining.
addResourceData(resourceData)
Adds aResource value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
resource | Resource | The resource data value to be added. |
Return
Variable — This variable data object, for chaining.
addResourceReference(resourceReference)
Adds a resource reference ID to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
resource | String | The resource ID to the variable data, for example "space/123". |
Return
Variable — This variable data object, for chaining.
addStringValue(value)
Adds a string value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
value | String | The string value to be added. |
Return
Variable — This variable data object, for chaining.
addTimestampValue(value)
Adds aTime value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
value | Time | The timestamp value to be added. |
Return
Variable — This variable data object, for chaining.
addWorkflowTextFormat(workflowTextFormat)
Adds aWorkflow value to the variable data.
Parameters
| Name | Type | Description |
|---|---|---|
workflow | Workflow | The workflow text format to be added. |
Return
Variable — This variable data object, for chaining.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.