Google Apps Chat V1 Client - Class ActionParameter (0.7.1)

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

List of string parameters to supply when the action method is invoked.

For example, consider three snooze buttons: snooze now, snooze one day, or snooze next week. You might use action method = snooze(), passing the snooze type and snooze time in the list of string parameters. To learn more, see CommonEventObject. Google Workspace Add-ons and Chat apps:

Generated from protobuf message google.apps.card.v1.Action.ActionParameter

Namespace

Google \ Apps \ Card \ V1 \ Action

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ key string

The name of the parameter for the action script.

↳ value string

The value of the parameter.

getKey

The name of the parameter for the action script.

Returns
Type Description
string

setKey

The name of the parameter for the action script.

Parameter
Name Description
var string
Returns
Type Description
$this

getValue

The value of the parameter.

Returns
Type Description
string

setValue

The value of the parameter.

Parameter
Name Description
var string
Returns
Type Description
$this