Interface ContextualAddOnMarkup.Card.SectionOrBuilder (0.19.0)

public static interface ContextualAddOnMarkup.Card.SectionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getHeader()

public abstract String getHeader()

The header of the section. Formatted text is supported. 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()

The header of the section. Formatted text is supported. 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.

getWidgets(int index)

public abstract WidgetMarkup getWidgets(int index)

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Parameter
Name Description
index int
Returns
Type Description
WidgetMarkup

getWidgetsCount()

public abstract int getWidgetsCount()

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Returns
Type Description
int

getWidgetsList()

public abstract List<WidgetMarkup> getWidgetsList()

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Returns
Type Description
List<WidgetMarkup>

getWidgetsOrBuilder(int index)

public abstract WidgetMarkupOrBuilder getWidgetsOrBuilder(int index)

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Parameter
Name Description
index int
Returns
Type Description
WidgetMarkupOrBuilder

getWidgetsOrBuilderList()

public abstract List<? extends WidgetMarkupOrBuilder> getWidgetsOrBuilderList()

A section must contain at least one widget.

repeated .google.chat.v1.WidgetMarkup widgets = 2;

Returns
Type Description
List<? extends com.google.chat.v1.WidgetMarkupOrBuilder>