Google Apps Chat V1 Client - Class ActionResponse (0.15.0)

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

Parameters that a Chat app can use to configure how its response is posted.

Generated from protobuf message google.chat.v1.ActionResponse

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ type
int

Input only. The type of Chat app response.

↳ url
string

Input only. URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.)

↳ dialog_action
DialogAction

Input only. A response to an interaction event related to a dialog . Must be accompanied by ResponseType.Dialog .

↳ updated_widget
ActionResponse\UpdatedWidget

Input only. The response of the updated widget.

getType

Input only. The type of Chat app response.

Returns
Type
Description
int
Enum of type ResponseType .

setType

Input only. The type of Chat app response.

Parameter
Name
Description
var
int

Enum of type ResponseType .

Returns
Type
Description
$this

getUrl

Input only. URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.)

Returns
Type
Description
string

setUrl

Input only. URL for users to authenticate or configure. (Only for REQUEST_CONFIG response types.)

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getDialogAction

Input only. A response to an interaction event related to a dialog . Must be accompanied by ResponseType.Dialog .

Returns
Type
Description
DialogAction |null

hasDialogAction

clearDialogAction

setDialogAction

Input only. A response to an interaction event related to a dialog . Must be accompanied by ResponseType.Dialog .

Parameter
Name
Description
Returns
Type
Description
$this

getUpdatedWidget

Input only. The response of the updated widget.

Returns
Type
Description

hasUpdatedWidget

clearUpdatedWidget

setUpdatedWidget

Input only. The response of the updated widget.

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: