Google Apps Chat V1 Client - Class MessageCreatedEventData (0.3.0)

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

Event payload for a new message.

Event type: google.workspace.chat.message.v1.created

Generated from protobuf message google.chat.v1.MessageCreatedEventData

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ message Google\Apps\Chat\V1\Message

The new message.

getMessage

The new message.

Returns
Type Description
Google\Apps\Chat\V1\Message|null

hasMessage

clearMessage

setMessage

The new message.

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