An add-on triggers this action when the action needs to open a link. This differs from the open_link above in that this needs to talk to server to get the link. Thus some preparation work is required for web client to do before the open link action response comes back. Google Workspace Add-ons:
An add-on triggers this action when the action needs to open a
link. This differs from the open_link above in that this needs to talk
to server to get the link. Thus some preparation work is required for
web client to do before the open link action response comes back.
An add-on triggers this action when the action needs to open a
link. This differs from the open_link above in that this needs to talk
to server to get the link. Thus some preparation work is required for
web client to do before the open link action response comes back.
[[["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 OnClick (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Card.V1.OnClick)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Card.V1.OnClick)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Card.V1.OnClick)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Card.V1.OnClick)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Card.V1.OnClick)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Card.V1.OnClick)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Card.V1.OnClick)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Card.V1.OnClick)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Card.V1.OnClick)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Card.V1.OnClick)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Card.V1.OnClick)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Card.V1.OnClick) \nReference documentation and code samples for the Google Apps Chat V1 Client class OnClick.\n\nRepresents how to respond when users click an interactive element on\na card, such as a button.\n\n[Google Workspace Add-ons and Chat\napps](https://developers.google.com/workspace/extend):\n\nGenerated from protobuf message `google.apps.card.v1.OnClick`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Card \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getAction\n\nIf specified, an action is triggered by this `onClick`.\n\n### hasAction\n\n### setAction\n\nIf specified, an action is triggered by this `onClick`.\n\n### getOpenLink\n\nIf specified, this `onClick` triggers an open link action.\n\n### hasOpenLink\n\n### setOpenLink\n\nIf specified, this `onClick` triggers an open link action.\n\n### getOpenDynamicLinkAction\n\nAn add-on triggers this action when the action needs to open a\nlink. This differs from the `open_link` above in that this needs to talk\nto server to get the link. Thus some preparation work is required for\nweb client to do before the open link action response comes back.\n\n[Google Workspace\nAdd-ons](https://developers.google.com/workspace/add-ons):\n\n### hasOpenDynamicLinkAction\n\n### setOpenDynamicLinkAction\n\nAn add-on triggers this action when the action needs to open a\nlink. This differs from the `open_link` above in that this needs to talk\nto server to get the link. Thus some preparation work is required for\nweb client to do before the open link action response comes back.\n\n[Google Workspace\nAdd-ons](https://developers.google.com/workspace/add-ons):\n\n### getCard\n\nA new card is pushed to the card stack after clicking if specified.\n\n[Google Workspace\nAdd-ons](https://developers.google.com/workspace/add-ons):\n\n### hasCard\n\n### setCard\n\nA new card is pushed to the card stack after clicking if specified.\n\n[Google Workspace\nAdd-ons](https://developers.google.com/workspace/add-ons):\n\n### getData"]]