Google Apps Chat V1 Client - Class NestedWidget (0.15.0)

Reference documentation and code samples for the Google Apps Chat V1 Client class NestedWidget.

A list of widgets that can be displayed in a containing layout, such as a CarouselCard.

Google Chat apps:

Generated from protobuf message google.apps.card.v1.Card.NestedWidget

Namespace

Google \ Apps \ Card \ V1 \ Card

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text_paragraph Google\Apps\Card\V1\TextParagraph

A text paragraph widget.

↳ button_list Google\Apps\Card\V1\ButtonList

A button list widget.

↳ image Google\Apps\Card\V1\Image

An image widget.

getTextParagraph

A text paragraph widget.

Returns
Type Description
Google\Apps\Card\V1\TextParagraph|null

hasTextParagraph

setTextParagraph

A text paragraph widget.

Parameter
Name Description
var Google\Apps\Card\V1\TextParagraph
Returns
Type Description
$this

getButtonList

A button list widget.

Returns
Type Description
Google\Apps\Card\V1\ButtonList|null

hasButtonList

setButtonList

A button list widget.

Parameter
Name Description
var Google\Apps\Card\V1\ButtonList
Returns
Type Description
$this

getImage

An image widget.

Returns
Type Description
Google\Apps\Card\V1\Image|null

hasImage

setImage

An image widget.

Parameter
Name Description
var Google\Apps\Card\V1\Image
Returns
Type Description
$this

getData

Returns
Type Description
string