Class ExpressionData

ExpressionData

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

MethodReturn typeBrief description
addCondition(condition)ExpressionDataAdds a condition to the current expression data.
addEventAction(eventAction)ExpressionDataAdds an event action to the current expression data.
setExpression(expression)ExpressionDataSets the expression data value.
setId(id)ExpressionDataSets the expression data id.

Detailed documentation

addCondition(condition)

Adds a condition to the current expression data.

Parameters

NameTypeDescription
conditionConditionThe Condition to add.

Return

ExpressionData — This ExpressionData, for chaining.


addEventAction(eventAction)

Adds an event action to the current expression data.

Parameters

NameTypeDescription
eventActionEventActionThe EventAction to add.

Return

ExpressionData — This ExpressionData, for chaining.


setExpression(expression)

Sets the expression data value.

Parameters

NameTypeDescription
expressionStringThe uncompiled CEL expression.

Return

ExpressionData — This ExpressionData, for chaining.


setId(id)

Sets the expression data id.

Parameters

NameTypeDescription
idStringThe unique identifier of the ExpressionData.

Return

ExpressionData — This ExpressionData, for chaining.