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 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

      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

      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.
    • hasCollapseControl

      boolean hasCollapseControl()
       Optional. Define the expand and collapse button of the section.
       This button will be shown only if the section is collapsible.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.CollapseControl collapse_control = 8;
      Returns:
      Whether the collapseControl field is set.
    • getCollapseControl

      CollapseControl getCollapseControl()
       Optional. Define the expand and collapse button of the section.
       This button will be shown only if the section is collapsible.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.CollapseControl collapse_control = 8;
      Returns:
      The collapseControl.
    • getCollapseControlOrBuilder

      CollapseControlOrBuilder getCollapseControlOrBuilder()
       Optional. Define the expand and collapse button of the section.
       This button will be shown only if the section is collapsible.
       If this field isn't set, the default button is used.
       
      .google.apps.card.v1.CollapseControl collapse_control = 8;