Class ExpressionData Stay organized with collections Save and categorize content based on your preferences.
The expression data that is used to evaluate an expression.
Only available for Google Workspace add-ons that extend Google Workspace Studio.
constexpressionData=CardService.newExpressionData();
Methods
| Method | Return type | Brief description |
|---|---|---|
add | Expression | Adds a condition to the current expression data. |
add | Expression | Adds an event action to the current expression data. |
set | Expression | Sets the expression data value. |
set | Expression | Sets the expression data id. |
Detailed documentation
addCondition(condition)
Adds a condition to the current expression data.
Parameters
| Name | Type | Description |
|---|---|---|
condition | Condition | The Condition to add. |
Return
Expression — This ExpressionData, for chaining.
addEventAction(eventAction)
Adds an event action to the current expression data.
Parameters
| Name | Type | Description |
|---|---|---|
event | Event | The EventAction to add. |
Return
Expression — This ExpressionData, for chaining.
setExpression(expression)
Sets the expression data value.
Parameters
| Name | Type | Description |
|---|---|---|
expression | String | The uncompiled CEL expression. |
Return
Expression — This ExpressionData, for chaining.
setId(id)
Sets the expression data id.
Parameters
| Name | Type | Description |
|---|---|---|
id | String | The unique identifier of the ExpressionData. |
Return
Expression — This ExpressionData, 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.