t

com.google.apps.card.v1

WidgetOrBuilder

trait WidgetOrBuilder extends MessageOrBuilder

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WidgetOrBuilder
  2. MessageOrBuilder
  3. MessageLiteOrBuilder
  4. AnyRef
  5. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Abstract Value Members

  1. abstract def findInitializationErrors(): List[String]
    Definition Classes
    MessageOrBuilder
  2. abstract def getAllFields(): Map[FieldDescriptor, AnyRef]
    Definition Classes
    MessageOrBuilder
  3. abstract def getButtonList(): ButtonList

    A list of buttons.
    
    For example, the following JSON creates two buttons. The first
    is a blue text button and the second is an image button that opens a
    link:
    ```
    "buttonList": {
      "buttons": [
        {
          "text": "Edit",
          "color": {
            "red": 0,
            "green": 0,
            "blue": 1,
            "alpha": 1
          },
          "disabled": true,
        },
        {
          "icon": {
            "knownIcon": "INVITE",
            "altText": "check calendar"
          },
          "onClick": {
            "openLink": {
              "url": "https://example.com/calendar"
            }
          }
        }
      ]
    }
    ```
    

    A list of buttons.
    
    For example, the following JSON creates two buttons. The first
    is a blue text button and the second is an image button that opens a
    link:
    ```
    "buttonList": {
      "buttons": [
        {
          "text": "Edit",
          "color": {
            "red": 0,
            "green": 0,
            "blue": 1,
            "alpha": 1
          },
          "disabled": true,
        },
        {
          "icon": {
            "knownIcon": "INVITE",
            "altText": "check calendar"
          },
          "onClick": {
            "openLink": {
              "url": "https://example.com/calendar"
            }
          }
        }
      ]
    }
    ```
    

    .google.apps.card.v1.ButtonList button_list = 4;

    returns

    The buttonList.

  4. abstract def getButtonListOrBuilder(): ButtonListOrBuilder

    A list of buttons.
    
    For example, the following JSON creates two buttons. The first
    is a blue text button and the second is an image button that opens a
    link:
    ```
    "buttonList": {
      "buttons": [
        {
          "text": "Edit",
          "color": {
            "red": 0,
            "green": 0,
            "blue": 1,
            "alpha": 1
          },
          "disabled": true,
        },
        {
          "icon": {
            "knownIcon": "INVITE",
            "altText": "check calendar"
          },
          "onClick": {
            "openLink": {
              "url": "https://example.com/calendar"
            }
          }
        }
      ]
    }
    ```
    

    A list of buttons.
    
    For example, the following JSON creates two buttons. The first
    is a blue text button and the second is an image button that opens a
    link:
    ```
    "buttonList": {
      "buttons": [
        {
          "text": "Edit",
          "color": {
            "red": 0,
            "green": 0,
            "blue": 1,
            "alpha": 1
          },
          "disabled": true,
        },
        {
          "icon": {
            "knownIcon": "INVITE",
            "altText": "check calendar"
          },
          "onClick": {
            "openLink": {
              "url": "https://example.com/calendar"
            }
          }
        }
      ]
    }
    ```
    

    .google.apps.card.v1.ButtonList button_list = 4;

  5. abstract def getColumns(): Columns

    Displays up to 2 columns.
    
    To include more than 2 columns, or to use rows, use the `Grid` widget.
    
    For example, the following JSON creates 2 columns that each contain
    text paragraphs:
    
    ```
    "columns": {
      "columnItems": [
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "First column text paragraph"
              }
            }
          ]
        },
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "Second column text paragraph"
              }
            }
          ]
        }
      ]
    }
    ```
    

    Displays up to 2 columns.
    
    To include more than 2 columns, or to use rows, use the `Grid` widget.
    
    For example, the following JSON creates 2 columns that each contain
    text paragraphs:
    
    ```
    "columns": {
      "columnItems": [
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "First column text paragraph"
              }
            }
          ]
        },
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "Second column text paragraph"
              }
            }
          ]
        }
      ]
    }
    ```
    

    .google.apps.card.v1.Columns columns = 11;

    returns

    The columns.

  6. abstract def getColumnsOrBuilder(): ColumnsOrBuilder

    Displays up to 2 columns.
    
    To include more than 2 columns, or to use rows, use the `Grid` widget.
    
    For example, the following JSON creates 2 columns that each contain
    text paragraphs:
    
    ```
    "columns": {
      "columnItems": [
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "First column text paragraph"
              }
            }
          ]
        },
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "Second column text paragraph"
              }
            }
          ]
        }
      ]
    }
    ```
    

    Displays up to 2 columns.
    
    To include more than 2 columns, or to use rows, use the `Grid` widget.
    
    For example, the following JSON creates 2 columns that each contain
    text paragraphs:
    
    ```
    "columns": {
      "columnItems": [
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "First column text paragraph"
              }
            }
          ]
        },
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "Second column text paragraph"
              }
            }
          ]
        }
      ]
    }
    ```
    

    .google.apps.card.v1.Columns columns = 11;

  7. abstract def getDataCase(): DataCase
  8. abstract def getDateTimePicker(): DateTimePicker

    Displays a widget that lets users input a date, time, or date and time.
    
    For example, the following JSON creates a date time picker to schedule an
    appointment:
    
    
    ```
    "dateTimePicker": {
      "name": "appointment_time",
      "label": "Book your appointment at:",
      "type": "DATE_AND_TIME",
      "valueMsEpoch": "796435200000"
    }
    ```
    

    Displays a widget that lets users input a date, time, or date and time.
    
    For example, the following JSON creates a date time picker to schedule an
    appointment:
    
    
    ```
    "dateTimePicker": {
      "name": "appointment_time",
      "label": "Book your appointment at:",
      "type": "DATE_AND_TIME",
      "valueMsEpoch": "796435200000"
    }
    ```
    

    .google.apps.card.v1.DateTimePicker date_time_picker = 7;

    returns

    The dateTimePicker.

  9. abstract def getDateTimePickerOrBuilder(): DateTimePickerOrBuilder

    Displays a widget that lets users input a date, time, or date and time.
    
    For example, the following JSON creates a date time picker to schedule an
    appointment:
    
    
    ```
    "dateTimePicker": {
      "name": "appointment_time",
      "label": "Book your appointment at:",
      "type": "DATE_AND_TIME",
      "valueMsEpoch": "796435200000"
    }
    ```
    

    Displays a widget that lets users input a date, time, or date and time.
    
    For example, the following JSON creates a date time picker to schedule an
    appointment:
    
    
    ```
    "dateTimePicker": {
      "name": "appointment_time",
      "label": "Book your appointment at:",
      "type": "DATE_AND_TIME",
      "valueMsEpoch": "796435200000"
    }
    ```
    

    .google.apps.card.v1.DateTimePicker date_time_picker = 7;

  10. abstract def getDecoratedText(): DecoratedText

    Displays a decorated text item.
    
    For example, the following JSON creates a decorated text widget showing
    email address:
    
    ```
    "decoratedText": {
      "icon": {
        "knownIcon": "EMAIL"
      },
      "topLabel": "Email Address",
      "text": "sasha@example.com",
      "bottomLabel": "This is a new Email address!",
      "switchControl": {
        "name": "has_send_welcome_email_to_sasha",
        "selected": false,
        "controlType": "CHECKBOX"
      }
    }
    ```
    

    Displays a decorated text item.
    
    For example, the following JSON creates a decorated text widget showing
    email address:
    
    ```
    "decoratedText": {
      "icon": {
        "knownIcon": "EMAIL"
      },
      "topLabel": "Email Address",
      "text": "sasha@example.com",
      "bottomLabel": "This is a new Email address!",
      "switchControl": {
        "name": "has_send_welcome_email_to_sasha",
        "selected": false,
        "controlType": "CHECKBOX"
      }
    }
    ```
    

    .google.apps.card.v1.DecoratedText decorated_text = 3;

    returns

    The decoratedText.

  11. abstract def getDecoratedTextOrBuilder(): DecoratedTextOrBuilder

    Displays a decorated text item.
    
    For example, the following JSON creates a decorated text widget showing
    email address:
    
    ```
    "decoratedText": {
      "icon": {
        "knownIcon": "EMAIL"
      },
      "topLabel": "Email Address",
      "text": "sasha@example.com",
      "bottomLabel": "This is a new Email address!",
      "switchControl": {
        "name": "has_send_welcome_email_to_sasha",
        "selected": false,
        "controlType": "CHECKBOX"
      }
    }
    ```
    

    Displays a decorated text item.
    
    For example, the following JSON creates a decorated text widget showing
    email address:
    
    ```
    "decoratedText": {
      "icon": {
        "knownIcon": "EMAIL"
      },
      "topLabel": "Email Address",
      "text": "sasha@example.com",
      "bottomLabel": "This is a new Email address!",
      "switchControl": {
        "name": "has_send_welcome_email_to_sasha",
        "selected": false,
        "controlType": "CHECKBOX"
      }
    }
    ```
    

    .google.apps.card.v1.DecoratedText decorated_text = 3;

  12. abstract def getDefaultInstanceForType(): Message
    Definition Classes
    MessageOrBuilder → MessageLiteOrBuilder
  13. abstract def getDescriptorForType(): Descriptor
    Definition Classes
    MessageOrBuilder
  14. abstract def getDivider(): Divider

    Displays a horizontal line divider between widgets.
    
    For example, the following JSON creates a divider:
    ```
    "divider": {
    }
    ```
    

    Displays a horizontal line divider between widgets.
    
    For example, the following JSON creates a divider:
    ```
    "divider": {
    }
    ```
    

    .google.apps.card.v1.Divider divider = 9;

    returns

    The divider.

  15. abstract def getDividerOrBuilder(): DividerOrBuilder

    Displays a horizontal line divider between widgets.
    
    For example, the following JSON creates a divider:
    ```
    "divider": {
    }
    ```
    

    Displays a horizontal line divider between widgets.
    
    For example, the following JSON creates a divider:
    ```
    "divider": {
    }
    ```
    

    .google.apps.card.v1.Divider divider = 9;

  16. abstract def getField(arg0: FieldDescriptor): AnyRef
    Definition Classes
    MessageOrBuilder
  17. abstract def getGrid(): Grid

    Displays a grid with a collection of items.
    
    A grid supports any number of columns and items. The number of rows is
    determined by the upper bounds of the number items divided by the number
    of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11
    items and 2 columns has 6 rows.
    
    [Google Workspace Add-ons and
    Chat apps](https://developers.google.com/workspace/extend):
    
    For example, the following JSON creates a 2 column grid with a single
    item:
    
    ```
    "grid": {
      "title": "A fine collection of items",
      "columnCount": 2,
      "borderStyle": {
        "type": "STROKE",
        "cornerRadius": 4
      },
      "items": [
        {
          "image": {
            "imageUri": "https://www.example.com/image.png",
            "cropStyle": {
              "type": "SQUARE"
            },
            "borderStyle": {
              "type": "STROKE"
            }
          },
          "title": "An item",
          "textAlignment": "CENTER"
        }
      ],
      "onClick": {
        "openLink": {
          "url": "https://www.example.com"
        }
      }
    }
    ```
    

    Displays a grid with a collection of items.
    
    A grid supports any number of columns and items. The number of rows is
    determined by the upper bounds of the number items divided by the number
    of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11
    items and 2 columns has 6 rows.
    
    [Google Workspace Add-ons and
    Chat apps](https://developers.google.com/workspace/extend):
    
    For example, the following JSON creates a 2 column grid with a single
    item:
    
    ```
    "grid": {
      "title": "A fine collection of items",
      "columnCount": 2,
      "borderStyle": {
        "type": "STROKE",
        "cornerRadius": 4
      },
      "items": [
        {
          "image": {
            "imageUri": "https://www.example.com/image.png",
            "cropStyle": {
              "type": "SQUARE"
            },
            "borderStyle": {
              "type": "STROKE"
            }
          },
          "title": "An item",
          "textAlignment": "CENTER"
        }
      ],
      "onClick": {
        "openLink": {
          "url": "https://www.example.com"
        }
      }
    }
    ```
    

    .google.apps.card.v1.Grid grid = 10;

    returns

    The grid.

  18. abstract def getGridOrBuilder(): GridOrBuilder

    Displays a grid with a collection of items.
    
    A grid supports any number of columns and items. The number of rows is
    determined by the upper bounds of the number items divided by the number
    of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11
    items and 2 columns has 6 rows.
    
    [Google Workspace Add-ons and
    Chat apps](https://developers.google.com/workspace/extend):
    
    For example, the following JSON creates a 2 column grid with a single
    item:
    
    ```
    "grid": {
      "title": "A fine collection of items",
      "columnCount": 2,
      "borderStyle": {
        "type": "STROKE",
        "cornerRadius": 4
      },
      "items": [
        {
          "image": {
            "imageUri": "https://www.example.com/image.png",
            "cropStyle": {
              "type": "SQUARE"
            },
            "borderStyle": {
              "type": "STROKE"
            }
          },
          "title": "An item",
          "textAlignment": "CENTER"
        }
      ],
      "onClick": {
        "openLink": {
          "url": "https://www.example.com"
        }
      }
    }
    ```
    

    Displays a grid with a collection of items.
    
    A grid supports any number of columns and items. The number of rows is
    determined by the upper bounds of the number items divided by the number
    of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11
    items and 2 columns has 6 rows.
    
    [Google Workspace Add-ons and
    Chat apps](https://developers.google.com/workspace/extend):
    
    For example, the following JSON creates a 2 column grid with a single
    item:
    
    ```
    "grid": {
      "title": "A fine collection of items",
      "columnCount": 2,
      "borderStyle": {
        "type": "STROKE",
        "cornerRadius": 4
      },
      "items": [
        {
          "image": {
            "imageUri": "https://www.example.com/image.png",
            "cropStyle": {
              "type": "SQUARE"
            },
            "borderStyle": {
              "type": "STROKE"
            }
          },
          "title": "An item",
          "textAlignment": "CENTER"
        }
      ],
      "onClick": {
        "openLink": {
          "url": "https://www.example.com"
        }
      }
    }
    ```
    

    .google.apps.card.v1.Grid grid = 10;

  19. abstract def getHorizontalAlignment(): HorizontalAlignment

    Specifies whether widgets align to the left, right, or center of a column.
    

    Specifies whether widgets align to the left, right, or center of a column.
    

    .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;

    returns

    The horizontalAlignment.

  20. abstract def getHorizontalAlignmentValue(): Int

    Specifies whether widgets align to the left, right, or center of a column.
    

    Specifies whether widgets align to the left, right, or center of a column.
    

    .google.apps.card.v1.Widget.HorizontalAlignment horizontal_alignment = 8;

    returns

    The enum numeric value on the wire for horizontalAlignment.

  21. abstract def getImage(): Image

    Displays an image.
    
    For example, the following JSON creates an image with alternative text:
    ```
    "image": {
      "imageUrl":
      "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
      "altText": "Chat app avatar"
    }
    ```
    

    Displays an image.
    
    For example, the following JSON creates an image with alternative text:
    ```
    "image": {
      "imageUrl":
      "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
      "altText": "Chat app avatar"
    }
    ```
    

    .google.apps.card.v1.Image image = 2;

    returns

    The image.

  22. abstract def getImageOrBuilder(): ImageOrBuilder

    Displays an image.
    
    For example, the following JSON creates an image with alternative text:
    ```
    "image": {
      "imageUrl":
      "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
      "altText": "Chat app avatar"
    }
    ```
    

    Displays an image.
    
    For example, the following JSON creates an image with alternative text:
    ```
    "image": {
      "imageUrl":
      "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
      "altText": "Chat app avatar"
    }
    ```
    

    .google.apps.card.v1.Image image = 2;

  23. abstract def getInitializationErrorString(): String
    Definition Classes
    MessageOrBuilder
  24. abstract def getOneofFieldDescriptor(arg0: OneofDescriptor): FieldDescriptor
    Definition Classes
    MessageOrBuilder
  25. abstract def getRepeatedField(arg0: FieldDescriptor, arg1: Int): AnyRef
    Definition Classes
    MessageOrBuilder
  26. abstract def getRepeatedFieldCount(arg0: FieldDescriptor): Int
    Definition Classes
    MessageOrBuilder
  27. abstract def getSelectionInput(): SelectionInput

    Displays a selection control that lets users select items. Selection
    controls can be checkboxes, radio buttons, switches, or dropdown menus.
    
    For example, the following JSON creates a dropdown menu that lets users
    choose a size:
    
    ```
    "selectionInput": {
      "name": "size",
      "label": "Size"
      "type": "DROPDOWN",
      "items": [
        {
          "text": "S",
          "value": "small",
          "selected": false
        },
        {
          "text": "M",
          "value": "medium",
          "selected": true
        },
        {
          "text": "L",
          "value": "large",
          "selected": false
        },
        {
          "text": "XL",
          "value": "extra_large",
          "selected": false
        }
      ]
    }
    ```
    

    Displays a selection control that lets users select items. Selection
    controls can be checkboxes, radio buttons, switches, or dropdown menus.
    
    For example, the following JSON creates a dropdown menu that lets users
    choose a size:
    
    ```
    "selectionInput": {
      "name": "size",
      "label": "Size"
      "type": "DROPDOWN",
      "items": [
        {
          "text": "S",
          "value": "small",
          "selected": false
        },
        {
          "text": "M",
          "value": "medium",
          "selected": true
        },
        {
          "text": "L",
          "value": "large",
          "selected": false
        },
        {
          "text": "XL",
          "value": "extra_large",
          "selected": false
        }
      ]
    }
    ```
    

    .google.apps.card.v1.SelectionInput selection_input = 6;

    returns

    The selectionInput.

  28. abstract def getSelectionInputOrBuilder(): SelectionInputOrBuilder

    Displays a selection control that lets users select items. Selection
    controls can be checkboxes, radio buttons, switches, or dropdown menus.
    
    For example, the following JSON creates a dropdown menu that lets users
    choose a size:
    
    ```
    "selectionInput": {
      "name": "size",
      "label": "Size"
      "type": "DROPDOWN",
      "items": [
        {
          "text": "S",
          "value": "small",
          "selected": false
        },
        {
          "text": "M",
          "value": "medium",
          "selected": true
        },
        {
          "text": "L",
          "value": "large",
          "selected": false
        },
        {
          "text": "XL",
          "value": "extra_large",
          "selected": false
        }
      ]
    }
    ```
    

    Displays a selection control that lets users select items. Selection
    controls can be checkboxes, radio buttons, switches, or dropdown menus.
    
    For example, the following JSON creates a dropdown menu that lets users
    choose a size:
    
    ```
    "selectionInput": {
      "name": "size",
      "label": "Size"
      "type": "DROPDOWN",
      "items": [
        {
          "text": "S",
          "value": "small",
          "selected": false
        },
        {
          "text": "M",
          "value": "medium",
          "selected": true
        },
        {
          "text": "L",
          "value": "large",
          "selected": false
        },
        {
          "text": "XL",
          "value": "extra_large",
          "selected": false
        }
      ]
    }
    ```
    

    .google.apps.card.v1.SelectionInput selection_input = 6;

  29. abstract def getTextInput(): TextInput

    Displays a text box that users can type into.
    
    For example, the following JSON creates a text input for an email
    address:
    
    ```
    "textInput": {
      "name": "mailing_address",
      "label": "Mailing Address"
    }
    ```
    
    As another example, the following JSON creates a text input for a
    programming language with static suggestions:
    ```
    "textInput": {
      "name": "preferred_programing_language",
      "label": "Preferred Language",
      "initialSuggestions": {
        "items": [
          {
            "text": "C++"
          },
          {
            "text": "Java"
          },
          {
            "text": "JavaScript"
          },
          {
            "text": "Python"
          }
        ]
      }
    }
    ```
    

    Displays a text box that users can type into.
    
    For example, the following JSON creates a text input for an email
    address:
    
    ```
    "textInput": {
      "name": "mailing_address",
      "label": "Mailing Address"
    }
    ```
    
    As another example, the following JSON creates a text input for a
    programming language with static suggestions:
    ```
    "textInput": {
      "name": "preferred_programing_language",
      "label": "Preferred Language",
      "initialSuggestions": {
        "items": [
          {
            "text": "C++"
          },
          {
            "text": "Java"
          },
          {
            "text": "JavaScript"
          },
          {
            "text": "Python"
          }
        ]
      }
    }
    ```
    

    .google.apps.card.v1.TextInput text_input = 5;

    returns

    The textInput.

  30. abstract def getTextInputOrBuilder(): TextInputOrBuilder

    Displays a text box that users can type into.
    
    For example, the following JSON creates a text input for an email
    address:
    
    ```
    "textInput": {
      "name": "mailing_address",
      "label": "Mailing Address"
    }
    ```
    
    As another example, the following JSON creates a text input for a
    programming language with static suggestions:
    ```
    "textInput": {
      "name": "preferred_programing_language",
      "label": "Preferred Language",
      "initialSuggestions": {
        "items": [
          {
            "text": "C++"
          },
          {
            "text": "Java"
          },
          {
            "text": "JavaScript"
          },
          {
            "text": "Python"
          }
        ]
      }
    }
    ```
    

    Displays a text box that users can type into.
    
    For example, the following JSON creates a text input for an email
    address:
    
    ```
    "textInput": {
      "name": "mailing_address",
      "label": "Mailing Address"
    }
    ```
    
    As another example, the following JSON creates a text input for a
    programming language with static suggestions:
    ```
    "textInput": {
      "name": "preferred_programing_language",
      "label": "Preferred Language",
      "initialSuggestions": {
        "items": [
          {
            "text": "C++"
          },
          {
            "text": "Java"
          },
          {
            "text": "JavaScript"
          },
          {
            "text": "Python"
          }
        ]
      }
    }
    ```
    

    .google.apps.card.v1.TextInput text_input = 5;

  31. abstract def getTextParagraph(): TextParagraph

    Displays a text paragraph. 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).
    
    For example, the following JSON creates a bolded text:
    ```
    "textParagraph": {
      "text": "  <b>bold text</b>"
    }
    ```
    

    Displays a text paragraph. 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).
    
    For example, the following JSON creates a bolded text:
    ```
    "textParagraph": {
      "text": "  <b>bold text</b>"
    }
    ```
    

    .google.apps.card.v1.TextParagraph text_paragraph = 1;

    returns

    The textParagraph.

  32. abstract def getTextParagraphOrBuilder(): TextParagraphOrBuilder

    Displays a text paragraph. 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).
    
    For example, the following JSON creates a bolded text:
    ```
    "textParagraph": {
      "text": "  <b>bold text</b>"
    }
    ```
    

    Displays a text paragraph. 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).
    
    For example, the following JSON creates a bolded text:
    ```
    "textParagraph": {
      "text": "  <b>bold text</b>"
    }
    ```
    

    .google.apps.card.v1.TextParagraph text_paragraph = 1;

  33. abstract def getUnknownFields(): UnknownFieldSet
    Definition Classes
    MessageOrBuilder
  34. abstract def hasButtonList(): Boolean

    A list of buttons.
    
    For example, the following JSON creates two buttons. The first
    is a blue text button and the second is an image button that opens a
    link:
    ```
    "buttonList": {
      "buttons": [
        {
          "text": "Edit",
          "color": {
            "red": 0,
            "green": 0,
            "blue": 1,
            "alpha": 1
          },
          "disabled": true,
        },
        {
          "icon": {
            "knownIcon": "INVITE",
            "altText": "check calendar"
          },
          "onClick": {
            "openLink": {
              "url": "https://example.com/calendar"
            }
          }
        }
      ]
    }
    ```
    

    A list of buttons.
    
    For example, the following JSON creates two buttons. The first
    is a blue text button and the second is an image button that opens a
    link:
    ```
    "buttonList": {
      "buttons": [
        {
          "text": "Edit",
          "color": {
            "red": 0,
            "green": 0,
            "blue": 1,
            "alpha": 1
          },
          "disabled": true,
        },
        {
          "icon": {
            "knownIcon": "INVITE",
            "altText": "check calendar"
          },
          "onClick": {
            "openLink": {
              "url": "https://example.com/calendar"
            }
          }
        }
      ]
    }
    ```
    

    .google.apps.card.v1.ButtonList button_list = 4;

    returns

    Whether the buttonList field is set.

  35. abstract def hasColumns(): Boolean

    Displays up to 2 columns.
    
    To include more than 2 columns, or to use rows, use the `Grid` widget.
    
    For example, the following JSON creates 2 columns that each contain
    text paragraphs:
    
    ```
    "columns": {
      "columnItems": [
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "First column text paragraph"
              }
            }
          ]
        },
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "Second column text paragraph"
              }
            }
          ]
        }
      ]
    }
    ```
    

    Displays up to 2 columns.
    
    To include more than 2 columns, or to use rows, use the `Grid` widget.
    
    For example, the following JSON creates 2 columns that each contain
    text paragraphs:
    
    ```
    "columns": {
      "columnItems": [
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "First column text paragraph"
              }
            }
          ]
        },
        {
          "horizontalSizeStyle": "FILL_AVAILABLE_SPACE",
          "horizontalAlignment": "CENTER",
          "verticalAlignment": "CENTER",
          "widgets": [
            {
              "textParagraph": {
                "text": "Second column text paragraph"
              }
            }
          ]
        }
      ]
    }
    ```
    

    .google.apps.card.v1.Columns columns = 11;

    returns

    Whether the columns field is set.

  36. abstract def hasDateTimePicker(): Boolean

    Displays a widget that lets users input a date, time, or date and time.
    
    For example, the following JSON creates a date time picker to schedule an
    appointment:
    
    
    ```
    "dateTimePicker": {
      "name": "appointment_time",
      "label": "Book your appointment at:",
      "type": "DATE_AND_TIME",
      "valueMsEpoch": "796435200000"
    }
    ```
    

    Displays a widget that lets users input a date, time, or date and time.
    
    For example, the following JSON creates a date time picker to schedule an
    appointment:
    
    
    ```
    "dateTimePicker": {
      "name": "appointment_time",
      "label": "Book your appointment at:",
      "type": "DATE_AND_TIME",
      "valueMsEpoch": "796435200000"
    }
    ```
    

    .google.apps.card.v1.DateTimePicker date_time_picker = 7;

    returns

    Whether the dateTimePicker field is set.

  37. abstract def hasDecoratedText(): Boolean

    Displays a decorated text item.
    
    For example, the following JSON creates a decorated text widget showing
    email address:
    
    ```
    "decoratedText": {
      "icon": {
        "knownIcon": "EMAIL"
      },
      "topLabel": "Email Address",
      "text": "sasha@example.com",
      "bottomLabel": "This is a new Email address!",
      "switchControl": {
        "name": "has_send_welcome_email_to_sasha",
        "selected": false,
        "controlType": "CHECKBOX"
      }
    }
    ```
    

    Displays a decorated text item.
    
    For example, the following JSON creates a decorated text widget showing
    email address:
    
    ```
    "decoratedText": {
      "icon": {
        "knownIcon": "EMAIL"
      },
      "topLabel": "Email Address",
      "text": "sasha@example.com",
      "bottomLabel": "This is a new Email address!",
      "switchControl": {
        "name": "has_send_welcome_email_to_sasha",
        "selected": false,
        "controlType": "CHECKBOX"
      }
    }
    ```
    

    .google.apps.card.v1.DecoratedText decorated_text = 3;

    returns

    Whether the decoratedText field is set.

  38. abstract def hasDivider(): Boolean

    Displays a horizontal line divider between widgets.
    
    For example, the following JSON creates a divider:
    ```
    "divider": {
    }
    ```
    

    Displays a horizontal line divider between widgets.
    
    For example, the following JSON creates a divider:
    ```
    "divider": {
    }
    ```
    

    .google.apps.card.v1.Divider divider = 9;

    returns

    Whether the divider field is set.

  39. abstract def hasField(arg0: FieldDescriptor): Boolean
    Definition Classes
    MessageOrBuilder
  40. abstract def hasGrid(): Boolean

    Displays a grid with a collection of items.
    
    A grid supports any number of columns and items. The number of rows is
    determined by the upper bounds of the number items divided by the number
    of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11
    items and 2 columns has 6 rows.
    
    [Google Workspace Add-ons and
    Chat apps](https://developers.google.com/workspace/extend):
    
    For example, the following JSON creates a 2 column grid with a single
    item:
    
    ```
    "grid": {
      "title": "A fine collection of items",
      "columnCount": 2,
      "borderStyle": {
        "type": "STROKE",
        "cornerRadius": 4
      },
      "items": [
        {
          "image": {
            "imageUri": "https://www.example.com/image.png",
            "cropStyle": {
              "type": "SQUARE"
            },
            "borderStyle": {
              "type": "STROKE"
            }
          },
          "title": "An item",
          "textAlignment": "CENTER"
        }
      ],
      "onClick": {
        "openLink": {
          "url": "https://www.example.com"
        }
      }
    }
    ```
    

    Displays a grid with a collection of items.
    
    A grid supports any number of columns and items. The number of rows is
    determined by the upper bounds of the number items divided by the number
    of columns. A grid with 10 items and 2 columns has 5 rows. A grid with 11
    items and 2 columns has 6 rows.
    
    [Google Workspace Add-ons and
    Chat apps](https://developers.google.com/workspace/extend):
    
    For example, the following JSON creates a 2 column grid with a single
    item:
    
    ```
    "grid": {
      "title": "A fine collection of items",
      "columnCount": 2,
      "borderStyle": {
        "type": "STROKE",
        "cornerRadius": 4
      },
      "items": [
        {
          "image": {
            "imageUri": "https://www.example.com/image.png",
            "cropStyle": {
              "type": "SQUARE"
            },
            "borderStyle": {
              "type": "STROKE"
            }
          },
          "title": "An item",
          "textAlignment": "CENTER"
        }
      ],
      "onClick": {
        "openLink": {
          "url": "https://www.example.com"
        }
      }
    }
    ```
    

    .google.apps.card.v1.Grid grid = 10;

    returns

    Whether the grid field is set.

  41. abstract def hasImage(): Boolean

    Displays an image.
    
    For example, the following JSON creates an image with alternative text:
    ```
    "image": {
      "imageUrl":
      "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
      "altText": "Chat app avatar"
    }
    ```
    

    Displays an image.
    
    For example, the following JSON creates an image with alternative text:
    ```
    "image": {
      "imageUrl":
      "https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png",
      "altText": "Chat app avatar"
    }
    ```
    

    .google.apps.card.v1.Image image = 2;

    returns

    Whether the image field is set.

  42. abstract def hasOneof(arg0: OneofDescriptor): Boolean
    Definition Classes
    MessageOrBuilder
  43. abstract def hasSelectionInput(): Boolean

    Displays a selection control that lets users select items. Selection
    controls can be checkboxes, radio buttons, switches, or dropdown menus.
    
    For example, the following JSON creates a dropdown menu that lets users
    choose a size:
    
    ```
    "selectionInput": {
      "name": "size",
      "label": "Size"
      "type": "DROPDOWN",
      "items": [
        {
          "text": "S",
          "value": "small",
          "selected": false
        },
        {
          "text": "M",
          "value": "medium",
          "selected": true
        },
        {
          "text": "L",
          "value": "large",
          "selected": false
        },
        {
          "text": "XL",
          "value": "extra_large",
          "selected": false
        }
      ]
    }
    ```
    

    Displays a selection control that lets users select items. Selection
    controls can be checkboxes, radio buttons, switches, or dropdown menus.
    
    For example, the following JSON creates a dropdown menu that lets users
    choose a size:
    
    ```
    "selectionInput": {
      "name": "size",
      "label": "Size"
      "type": "DROPDOWN",
      "items": [
        {
          "text": "S",
          "value": "small",
          "selected": false
        },
        {
          "text": "M",
          "value": "medium",
          "selected": true
        },
        {
          "text": "L",
          "value": "large",
          "selected": false
        },
        {
          "text": "XL",
          "value": "extra_large",
          "selected": false
        }
      ]
    }
    ```
    

    .google.apps.card.v1.SelectionInput selection_input = 6;

    returns

    Whether the selectionInput field is set.

  44. abstract def hasTextInput(): Boolean

    Displays a text box that users can type into.
    
    For example, the following JSON creates a text input for an email
    address:
    
    ```
    "textInput": {
      "name": "mailing_address",
      "label": "Mailing Address"
    }
    ```
    
    As another example, the following JSON creates a text input for a
    programming language with static suggestions:
    ```
    "textInput": {
      "name": "preferred_programing_language",
      "label": "Preferred Language",
      "initialSuggestions": {
        "items": [
          {
            "text": "C++"
          },
          {
            "text": "Java"
          },
          {
            "text": "JavaScript"
          },
          {
            "text": "Python"
          }
        ]
      }
    }
    ```
    

    Displays a text box that users can type into.
    
    For example, the following JSON creates a text input for an email
    address:
    
    ```
    "textInput": {
      "name": "mailing_address",
      "label": "Mailing Address"
    }
    ```
    
    As another example, the following JSON creates a text input for a
    programming language with static suggestions:
    ```
    "textInput": {
      "name": "preferred_programing_language",
      "label": "Preferred Language",
      "initialSuggestions": {
        "items": [
          {
            "text": "C++"
          },
          {
            "text": "Java"
          },
          {
            "text": "JavaScript"
          },
          {
            "text": "Python"
          }
        ]
      }
    }
    ```
    

    .google.apps.card.v1.TextInput text_input = 5;

    returns

    Whether the textInput field is set.

  45. abstract def hasTextParagraph(): Boolean

    Displays a text paragraph. 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).
    
    For example, the following JSON creates a bolded text:
    ```
    "textParagraph": {
      "text": "  <b>bold text</b>"
    }
    ```
    

    Displays a text paragraph. 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).
    
    For example, the following JSON creates a bolded text:
    ```
    "textParagraph": {
      "text": "  <b>bold text</b>"
    }
    ```
    

    .google.apps.card.v1.TextParagraph text_paragraph = 1;

    returns

    Whether the textParagraph field is set.

  46. abstract def isInitialized(): Boolean
    Definition Classes
    MessageLiteOrBuilder

Concrete Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  14. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  15. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  16. def toString(): String
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  18. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  19. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MessageOrBuilder

Inherited from MessageLiteOrBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped