Class WorkflowTextFormat

WorkflowTextFormat

A block of text with rich formatting options including styles, hyperlinks, and interactive elements defined in TextFormatElement . A WorkflowTextFormat can contain one or more TextFormatElement s.

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

Sample usage:

constworkflowTextFormat=AddOnsResponseService.newWorkflowTextFormat()
.addTextFormatElement(
AddOnsResponseService.newTextFormatElement()
.setText("example_text")
);

Methods

MethodReturn typeBrief description
addTextFormatElement(textFormatElement) WorkflowTextFormat Adds a TextFormatElement to the workflow text format.

Detailed documentation

addTextFormatElement(textFormatElement)

Adds a TextFormatElement to the workflow text format.

Parameters

NameTypeDescription
textFormatElementTextFormatElement The text format element to be added.

Return

WorkflowTextFormat — This workflow text format object, 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 2025年12月03日 UTC.