The expression data that is used to evaluate an expression
Only available through the Gemini Alpha program for Google Workspace add-ons that extend Google Workspace Flows.
const expressionData = CardService . newExpressionData ();
Methods
| Method | Return type | Brief description |
|---|---|---|
Expression
|
Adds a condition to the current expression data. | |
Expression
|
Adds an event action to the current expression data. | |
Expression
|
Sets the expression data value. | |
Expression
|
Sets the expression data id. |
Detailed documentation
add
Condition(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.
add
Event
Action(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.
set
Expression(expression)
Sets the expression data value.
Parameters
| Name | Type | Description |
|---|---|---|
expression
|
String
|
The uncompiled CEL expression. |
Return
Expression
— This ExpressionData, for chaining.
set
Id(id)
Sets the expression data id.
Parameters
| Name | Type | Description |
|---|---|---|
id
|
String
|
The unique identifier of the ExpressionData. |
Return
Expression
— This ExpressionData, for chaining.

