Google Apps Chat V1 Client - Class WidgetMarkup (0.6.1)

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

A widget is a UI element that presents text and images.

Generated from protobuf message google.chat.v1.WidgetMarkup

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text_paragraph WidgetMarkup\TextParagraph

Display a text paragraph in this widget.

↳ image WidgetMarkup\Image

Display an image in this widget.

↳ key_value WidgetMarkup\KeyValue

Display a key value item in this widget.

↳ buttons array<WidgetMarkup\Button>

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

getTextParagraph

Display a text paragraph in this widget.

Returns
Type Description
WidgetMarkup\TextParagraph|null

hasTextParagraph

setTextParagraph

Display a text paragraph in this widget.

Parameter
Name Description
var WidgetMarkup\TextParagraph
Returns
Type Description
$this

getImage

Display an image in this widget.

Returns
Type Description
WidgetMarkup\Image|null

hasImage

setImage

Display an image in this widget.

Parameter
Name Description
var WidgetMarkup\Image
Returns
Type Description
$this

getKeyValue

Display a key value item in this widget.

Returns
Type Description
WidgetMarkup\KeyValue|null

hasKeyValue

setKeyValue

Display a key value item in this widget.

Parameter
Name Description
var WidgetMarkup\KeyValue
Returns
Type Description
$this

getButtons

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setButtons

A list of buttons. Buttons is also oneof data and only one of these fields should be set.

Parameter
Name Description
var array<WidgetMarkup\Button>
Returns
Type Description
$this

getData

Returns
Type Description
string