Google Apps Chat V1 Client - Class ActionResponse (0.3.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 Google\Apps\Chat\V1\DialogAction

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

↳ updated_widget Google\Apps\Chat\V1\ActionResponse\UpdatedWidget

Input only. The response of the updated widget.

getType

Input only. The type of Chat app response.

Returns
Type Description
int

setType

Input only. The type of Chat app response.

Parameter
Name Description
var int
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
Google\Apps\Chat\V1\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
var Google\Apps\Chat\V1\DialogAction
Returns
Type Description
$this

getUpdatedWidget

Input only. The response of the updated widget.

Returns
Type Description
Google\Apps\Chat\V1\ActionResponse\UpdatedWidget|null

hasUpdatedWidget

clearUpdatedWidget

setUpdatedWidget

Input only. The response of the updated widget.

Parameter
Name Description
var Google\Apps\Chat\V1\ActionResponse\UpdatedWidget
Returns
Type Description
$this