Package com.google.apps.card.v1
Interface Card.SectionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Card.Section
,Card.Section.Builder
- Enclosing class:
Card
public static interface Card.SectionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Indicates whether this section is collapsible.Text that appears at the top of a section.com.google.protobuf.ByteString
Text that appears at the top of a section.int
The number of uncollapsible widgets which remain visible even when a section is collapsed.getWidgets
(int index) All the widgets in the section.int
All the widgets in the section.All the widgets in the section.getWidgetsOrBuilder
(int index) All the widgets in the section.List
<? extends WidgetOrBuilder> All the widgets in the section.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getHeader
String getHeader()Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string header = 1;
- Returns:
- The header.
-
getHeaderBytes
com.google.protobuf.ByteString getHeaderBytes()Text that appears at the top of a section. Supports simple HTML formatted text. For more information about formatting text, see [Formatting text in Google Chat apps](https://developers.google.com/workspace/chat/format-messages#card-formatting) and [Formatting text in Google Workspace Add-ons](https://developers.google.com/apps-script/add-ons/concepts/widgets#text_formatting).
string header = 1;
- Returns:
- The bytes for header.
-
getWidgetsList
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
-
getWidgets
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
-
getWidgetsCount
int getWidgetsCount()All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
-
getWidgetsOrBuilderList
List<? extends WidgetOrBuilder> getWidgetsOrBuilderList()All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
-
getWidgetsOrBuilder
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
-
getCollapsible
boolean getCollapsible()Indicates whether this section is collapsible. Collapsible sections hide some or all widgets, but users can expand the section to reveal the hidden widgets by clicking **Show more**. Users can hide the widgets again by clicking **Show less**. To determine which widgets are hidden, specify `uncollapsibleWidgetsCount`.
bool collapsible = 5;
- Returns:
- The collapsible.
-
getUncollapsibleWidgetsCount
int getUncollapsibleWidgetsCount()The number of uncollapsible widgets which remain visible even when a section is collapsed. For example, when a section contains five widgets and the `uncollapsibleWidgetsCount` is set to `2`, the first two widgets are always shown and the last three are collapsed by default. The `uncollapsibleWidgetsCount` is taken into account only when `collapsible` is `true`.
int32 uncollapsible_widgets_count = 6;
- Returns:
- The uncollapsibleWidgetsCount.
-