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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleangetCollapsible()Indicates whether this section is collapsible.java.lang.StringgetHeader()Text that appears at the top of a section.com.google.protobuf.ByteStringgetHeaderBytes()Text that appears at the top of a section.intgetUncollapsibleWidgetsCount()The number of uncollapsible widgets which remain visible even when a section is collapsed.WidgetgetWidgets(int index)All the widgets in the section.intgetWidgetsCount()All the widgets in the section.java.util.List<Widget>getWidgetsList()All the widgets in the section.WidgetOrBuildergetWidgetsOrBuilder(int index)All the widgets in the section.java.util.List<? extends WidgetOrBuilder>getWidgetsOrBuilderList()All the widgets in the section.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getHeader
java.lang.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
java.util.List<Widget> getWidgetsList()
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
-
getWidgets
Widget getWidgets(int index)
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
java.util.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
WidgetOrBuilder getWidgetsOrBuilder(int index)
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.
-
-