[[["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-09-04 UTC."],[],[],null,["# Google Apps Chat V1 Client - Class CardWithId (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.CardWithId)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.CardWithId)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.CardWithId)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.CardWithId)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.CardWithId)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.CardWithId)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.CardWithId)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.CardWithId)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.CardWithId)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.CardWithId)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.CardWithId)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.CardWithId) \nReference documentation and code samples for the Google Apps Chat V1 Client class CardWithId.\n\nA\n[card](https://developers.google.com/workspace/chat/api/reference/rest/v1/cards)\nin a Google Chat message.\n\nOnly Chat apps can create cards. If your Chat app [authenticates as a\nuser](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user),\nthe message can't contain cards.\n[Card builder](https://addons.gsuite.google.com/uikit/builder)\n\nGenerated from protobuf message `google.chat.v1.CardWithId`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getCardId\n\nRequired if the message contains multiple cards. A unique identifier for\na card in a message.\n\n### setCardId\n\nRequired if the message contains multiple cards. A unique identifier for\na card in a message.\n\n### getCard\n\nA card. Maximum size is 32 KB.\n\n### hasCard\n\n### clearCard\n\n### setCard\n\nA card. Maximum size is 32 KB."]]