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.

constexpressionData=CardService.newExpressionData();

Methods

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

Detailed documentation

addCondition(condition)

Adds a condition to the current expression data.

Parameters

NameTypeDescription
conditionCondition The Condition to add.

Return

ExpressionData — This ExpressionData, for chaining.


addEventAction(eventAction)

Adds an event action to the current expression data.

Parameters

NameTypeDescription
eventActionEventAction The 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.

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026年04月13日 UTC.