Reference documentation and code samples for the Google Apps Chat V1 Client class Section.
A section contains a collection of widgets that are rendered
(vertically) in the order that they are specified. Across all platforms,
cards have a narrow fixed width, so
there's currently no need for layout properties (for example, float).
Generated from protobuf message google.chat.v1.ContextualAddOnMarkup.Card.Section
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class Section (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.ContextualAddOnMarkup.Card.Section)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.ContextualAddOnMarkup.Card.Section) \nReference documentation and code samples for the Google Apps Chat V1 Client class Section.\n\nA section contains a collection of widgets that are rendered\n(vertically) in the order that they are specified. Across all platforms,\ncards have a narrow fixed width, so\nthere's currently no need for layout properties (for example, float).\n\nGenerated from protobuf message `google.chat.v1.ContextualAddOnMarkup.Card.Section`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1 \\\\ ContextualAddOnMarkup \\\\ Card\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getHeader\n\nThe header of the section. Formatted text is\nsupported. For more information\nabout formatting text, see\n[Formatting text in Google Chat\napps](https://developers.google.com/workspace/chat/format-messages#card-formatting)\nand\n[Formatting\ntext in Google Workspace\nAdd-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).\n\n### setHeader\n\nThe header of the section. Formatted text is\nsupported. For more information\nabout formatting text, see\n[Formatting text in Google Chat\napps](https://developers.google.com/workspace/chat/format-messages#card-formatting)\nand\n[Formatting\ntext in Google Workspace\nAdd-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).\n\n### getWidgets\n\nA section must contain at least one widget.\n\n### setWidgets\n\nA section must contain at least one widget."]]