public static interface Card.SectionOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getCollapsible()
public abstract 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 | |
---|---|
Type | Description |
boolean | The collapsible. |
getHeader()
public abstract 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 and Formatting text in Google Workspace Add-ons.
string header = 1;
Returns | |
---|---|
Type | Description |
String | The header. |
getHeaderBytes()
public abstract 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 and Formatting text in Google Workspace Add-ons.
string header = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for header. |
getUncollapsibleWidgetsCount()
public abstract 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 | |
---|---|
Type | Description |
int | The uncollapsibleWidgetsCount. |
getWidgets(int index)
public abstract Widget getWidgets(int index)
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
Widget |
getWidgetsCount()
public abstract int getWidgetsCount()
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
Returns | |
---|---|
Type | Description |
int |
getWidgetsList()
public abstract List<Widget> getWidgetsList()
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
Returns | |
---|---|
Type | Description |
List<Widget> |
getWidgetsOrBuilder(int index)
public abstract WidgetOrBuilder getWidgetsOrBuilder(int index)
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
Parameter | |
---|---|
Name | Description |
index | int |
Returns | |
---|---|
Type | Description |
WidgetOrBuilder |
getWidgetsOrBuilderList()
public abstract List<? extends WidgetOrBuilder> getWidgetsOrBuilderList()
All the widgets in the section. Must contain at least one widget.
repeated .google.apps.card.v1.Widget widgets = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.apps.card.v1.WidgetOrBuilder> |