Class ExpressionData

ExpressionData

The expression data that is used to evaluate an expression.

Only available for Google Workspace add-ons that extend Google Workspace Studio.

 const 
  
 expressionData 
  
 = 
  
 CardService 
 . 
 newExpressionData 
 (); 

Methods

Method Return type Brief description
Expression Data Adds a condition to the current expression data.
Expression Data Adds an event action to the current expression data.
Expression Data Sets the expression data value.
Expression Data 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

ExpressionData — This ExpressionData, for chaining.


addEventAction(eventAction)

Adds an event action to the current expression data.

Parameters

Name Type Description
event Action
Event Action The EventAction to add.

Return

ExpressionData — This ExpressionData, for chaining.


setExpression(expression)

Sets the expression data value.

Parameters

Name Type Description
expression
String The uncompiled CEL expression.

Return

ExpressionData — This ExpressionData, for chaining.


setId(id)

Sets the expression data id.

Parameters

Name Type Description
id
String The unique identifier of the ExpressionData.

Return

ExpressionData — This ExpressionData, for chaining.

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