Google Apps Chat V1 Client - Class CardWithId (0.3.0)

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

A card in a Google Chat message.

Only Chat apps can create cards. If your Chat app authenticates as a user, the message can't contain cards. Card builder

Generated from protobuf message google.chat.v1.CardWithId

Namespace

Google \ Apps \ Chat \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ card_id string

Required if the message contains multiple cards. A unique identifier for a card in a message.

↳ card Google\Apps\Card\V1\Card

A card. Maximum size is 32 KB.

getCardId

Required if the message contains multiple cards. A unique identifier for a card in a message.

Returns
Type Description
string

setCardId

Required if the message contains multiple cards. A unique identifier for a card in a message.

Parameter
Name Description
var string
Returns
Type Description
$this

getCard

A card. Maximum size is 32 KB.

Returns
Type Description
Google\Apps\Card\V1\Card|null

hasCard

clearCard

setCard

A card. Maximum size is 32 KB.

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