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 \ V1Methods
__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 |
↳ dialog_action |
DialogAction
Input only. A response to an interaction event related to a dialog. Must be accompanied by |
↳ 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 |
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 |
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 |
DialogAction
|
Returns | |
---|---|
Type | Description |
$this |
getUpdatedWidget
Input only. The response of the updated widget.
Returns | |
---|---|
Type | Description |
ActionResponse\UpdatedWidget|null |
hasUpdatedWidget
clearUpdatedWidget
setUpdatedWidget
Input only. The response of the updated widget.
Parameter | |
---|---|
Name | Description |
var |
ActionResponse\UpdatedWidget
|
Returns | |
---|---|
Type | Description |
$this |