Google Apps Chat V1 Client - Class CreateReactionRequest (0.2.0)

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

Creates a reaction to a message.

Generated from protobuf message google.chat.v1.CreateReactionRequest

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ parent string

Required. The message where the reaction is created. Format: spaces/{space}/messages/{message}

↳ reaction Google\Apps\Chat\V1\Reaction

Required. The reaction to create.

getParent

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

Returns
Type Description
string

setParent

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message}

Parameter
Name Description
var string
Returns
Type Description
$this

getReaction

Required. The reaction to create.

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

hasReaction

clearReaction

setReaction

Required. The reaction to create.

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

static::build

Parameters
Name Description
parent string

Required. The message where the reaction is created.

Format: spaces/{space}/messages/{message} Please see Google\Apps\Chat\V1\ChatServiceClient::messageName() for help formatting this field.

reaction Google\Apps\Chat\V1\Reaction

Required. The reaction to create.

Returns
Type Description
Google\Apps\Chat\V1\CreateReactionRequest