Send feedback
Google Apps Chat V1 Client - Class CardWithId (0.2.0) Stay organized with collections
Save and categorize content based on your preferences.
Version 0.2.0 keyboard_arrow_down
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
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.
getCardId
Required if the message contains multiple cards. A unique identifier for
a card in a message.
setCardId
Required if the message contains multiple cards. A unique identifier for
a card in a message.
getCard
A card. Maximum size is 32 KB.
hasCard
clearCard
setCard
A card. Maximum size is 32 KB.
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License
, and code samples are licensed under the Apache 2.0 License
. For details, see the Google Developers Site Policies
. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-10-30 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]