final class Widget extends GeneratedMessageV3 with WidgetOrBuilder

Each card is made up of widgets.

A widget is a composite object that can represent one of text, images,
buttons, and other object types.

Protobuf type google.apps.card.v1.Widget

Source
Widget.java
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Widget
  2. WidgetOrBuilder
  3. GeneratedMessageV3
  4. Serializable
  5. AbstractMessage
  6. Message
  7. MessageOrBuilder
  8. AbstractMessageLite
  9. MessageLite
  10. MessageLiteOrBuilder
  11. AnyRef
  12. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

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(obj: AnyRef): Boolean
    Definition Classes
    Widget → AbstractMessage → Message → AnyRef → Any
    Annotations
    @Override()
  8. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  9. def findInitializationErrors(): List[String]
    Definition Classes
    AbstractMessage → MessageOrBuilder
  10. def getAllFields(): Map[FieldDescriptor, AnyRef]
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  11. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  12. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  13. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  15. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  16. def getDataCase(): DataCase
    Definition Classes
    WidgetWidgetOrBuilder
  17. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  18. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  19. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  20. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  21. def getDefaultInstanceForType(): Widget
    Definition Classes
    Widget → MessageOrBuilder → MessageLiteOrBuilder
    Annotations
    @Override()
  22. def getDescriptorForType(): Descriptor
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  23. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  24. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  25. def getField(arg0: FieldDescriptor): AnyRef
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  26. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  27. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  28. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  29. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  30. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  31. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  32. def getInitializationErrorString(): String
    Definition Classes
    AbstractMessage → MessageOrBuilder
  33. def getOneofFieldDescriptor(arg0: OneofDescriptor): FieldDescriptor
    Definition Classes
    GeneratedMessageV3 → AbstractMessage → MessageOrBuilder
  34. def getParserForType(): Parser[Widget]
    Definition Classes
    Widget → GeneratedMessageV3 → Message → MessageLite
    Annotations
    @Override()
  35. def getRepeatedField(arg0: FieldDescriptor, arg1: Int): AnyRef
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  36. def getRepeatedFieldCount(arg0: FieldDescriptor): Int
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  37. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  38. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  39. def getSerializedSize(): Int
    Definition Classes
    Widget → GeneratedMessageV3 → AbstractMessage → MessageLite
    Annotations
    @Override()
  40. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  41. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  42. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  43. 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;

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  44. def getUnknownFields(): UnknownFieldSet
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  45. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  46. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  47. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  48. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  49. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  50. def hasField(arg0: FieldDescriptor): Boolean
    Definition Classes
    GeneratedMessageV3 → MessageOrBuilder
  51. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  52. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  53. def hasOneof(arg0: OneofDescriptor): Boolean
    Definition Classes
    GeneratedMessageV3 → AbstractMessage → MessageOrBuilder
  54. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  55. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  56. 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.

    Definition Classes
    WidgetWidgetOrBuilder
    Annotations
    @Override()
  57. def hashCode(): Int
    Definition Classes
    Widget → AbstractMessage → Message → AnyRef → Any
    Annotations
    @Override()
  58. def internalGetFieldAccessorTable(): FieldAccessorTable
    Attributes
    protected[v1]
    Definition Classes
    Widget → GeneratedMessageV3
    Annotations
    @Override()
  59. def internalGetMapField(arg0: Int): MapField[_ <: AnyRef, _ <: AnyRef]
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3
  60. final def isInitialized(): Boolean
    Definition Classes
    Widget → GeneratedMessageV3 → AbstractMessage → MessageLiteOrBuilder
    Annotations
    @Override()
  61. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  62. def makeExtensionsImmutable(): Unit
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3
  63. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  64. def newBuilderForType(parent: BuilderParent): Builder
    Attributes
    protected[v1]
    Definition Classes
    Widget → GeneratedMessageV3
    Annotations
    @Override()
  65. def newBuilderForType(): Builder
    Definition Classes
    Widget → Message → MessageLite
    Annotations
    @Override()
  66. def newBuilderForType(arg0: BuilderParent): Builder
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3 → AbstractMessage
  67. def newInstance(unused: UnusedPrivateParameter): AnyRef
    Attributes
    protected[v1]
    Definition Classes
    Widget → GeneratedMessageV3
    Annotations
    @Override() @SuppressWarnings()
  68. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  69. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  70. def parseUnknownField(arg0: CodedInputStream, arg1: Builder, arg2: ExtensionRegistryLite, arg3: Int): Boolean
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3
    Annotations
    @throws(classOf[java.io.IOException])
  71. def parseUnknownFieldProto3(arg0: CodedInputStream, arg1: Builder, arg2: ExtensionRegistryLite, arg3: Int): Boolean
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3
    Annotations
    @throws(classOf[java.io.IOException])
  72. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  73. def toBuilder(): Builder
    Definition Classes
    Widget → Message → MessageLite
    Annotations
    @Override()
  74. def toByteArray(): Array[Byte]
    Definition Classes
    AbstractMessageLite → MessageLite
  75. def toByteString(): ByteString
    Definition Classes
    AbstractMessageLite → MessageLite
  76. final def toString(): String
    Definition Classes
    AbstractMessage → Message → AnyRef → Any
  77. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  78. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  79. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  80. def writeDelimitedTo(arg0: OutputStream): Unit
    Definition Classes
    AbstractMessageLite → MessageLite
    Annotations
    @throws(classOf[java.io.IOException])
  81. def writeReplace(): AnyRef
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3
    Annotations
    @throws(classOf[java.io.ObjectStreamException])
  82. def writeTo(output: CodedOutputStream): Unit
    Definition Classes
    Widget → GeneratedMessageV3 → AbstractMessage → MessageLite
    Annotations
    @Override()
  83. def writeTo(arg0: OutputStream): Unit
    Definition Classes
    AbstractMessageLite → MessageLite
    Annotations
    @throws(classOf[java.io.IOException])

Deprecated Value Members

  1. def mergeFromAndMakeImmutableInternal(arg0: CodedInputStream, arg1: ExtensionRegistryLite): Unit
    Attributes
    protected[protobuf]
    Definition Classes
    GeneratedMessageV3
    Annotations
    @throws(classOf[com.google.protobuf.InvalidProtocolBufferException]) @Deprecated
    Deprecated

Inherited from WidgetOrBuilder

Inherited from GeneratedMessageV3

Inherited from Serializable

Inherited from AbstractMessage

Inherited from Message

Inherited from MessageOrBuilder

Inherited from AbstractMessageLite[MessageType, BuilderType]

Inherited from MessageLite

Inherited from MessageLiteOrBuilder

Inherited from AnyRef

Inherited from Any

Ungrouped