Class RemoveSection

RemoveSection

A builder for RemoveSection objects. Developers can remove a section from the card by passing a RemoveSection to ModifyCard

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

Sample usage:

constremoveSection=AddOnsResponseService.newRemoveSection().setSectionId('sample_id');
constmodifyCard=AddOnsResponseService.newModifyCard().setRemoveSection(removeSection);

Methods

MethodReturn typeBrief description
setSectionId(sectionId) RemoveSection Sets the section ID of the section to be removed.

Detailed documentation

setSectionId(sectionId)

Sets the section ID of the section to be removed.

Parameters

NameTypeDescription
sectionIdStringThe ID of the section to be removed.

Return

RemoveSection — This remove section 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.