Google Apps Chat V1 Client - Class Button (0.1.4)

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

A button. Can be a text button or an image button.

Generated from protobuf message google.chat.v1.WidgetMarkup.Button

Namespace

Google \ Apps \ Chat \ V1 \ WidgetMarkup

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ text_button Google\Apps\Chat\V1\WidgetMarkup\TextButton

A button with text and onclick action.

↳ image_button Google\Apps\Chat\V1\WidgetMarkup\ImageButton

A button with image and onclick action.

getTextButton

A button with text and onclick action.

Returns
Type Description
Google\Apps\Chat\V1\WidgetMarkup\TextButton|null

hasTextButton

setTextButton

A button with text and onclick action.

Parameter
Name Description
var Google\Apps\Chat\V1\WidgetMarkup\TextButton
Returns
Type Description
$this

getImageButton

A button with image and onclick action.

Returns
Type Description
Google\Apps\Chat\V1\WidgetMarkup\ImageButton|null

hasImageButton

setImageButton

A button with image and onclick action.

Parameter
Name Description
var Google\Apps\Chat\V1\WidgetMarkup\ImageButton
Returns
Type Description
$this

getType

Returns
Type Description
string