[[["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 Chat V1 API - Class Google::Apps::Card::V1::Image (v0.14.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.14.0 (latest)](/ruby/docs/reference/google-apps-chat-v1/latest/Google-Apps-Card-V1-Image)\n- [0.13.0](/ruby/docs/reference/google-apps-chat-v1/0.13.0/Google-Apps-Card-V1-Image)\n- [0.12.0](/ruby/docs/reference/google-apps-chat-v1/0.12.0/Google-Apps-Card-V1-Image)\n- [0.11.1](/ruby/docs/reference/google-apps-chat-v1/0.11.1/Google-Apps-Card-V1-Image)\n- [0.10.0](/ruby/docs/reference/google-apps-chat-v1/0.10.0/Google-Apps-Card-V1-Image)\n- [0.9.1](/ruby/docs/reference/google-apps-chat-v1/0.9.1/Google-Apps-Card-V1-Image)\n- [0.8.0](/ruby/docs/reference/google-apps-chat-v1/0.8.0/Google-Apps-Card-V1-Image)\n- [0.7.0](/ruby/docs/reference/google-apps-chat-v1/0.7.0/Google-Apps-Card-V1-Image)\n- [0.6.0](/ruby/docs/reference/google-apps-chat-v1/0.6.0/Google-Apps-Card-V1-Image)\n- [0.5.1](/ruby/docs/reference/google-apps-chat-v1/0.5.1/Google-Apps-Card-V1-Image)\n- [0.4.0](/ruby/docs/reference/google-apps-chat-v1/0.4.0/Google-Apps-Card-V1-Image)\n- [0.3.1](/ruby/docs/reference/google-apps-chat-v1/0.3.1/Google-Apps-Card-V1-Image)\n- [0.2.0](/ruby/docs/reference/google-apps-chat-v1/0.2.0/Google-Apps-Card-V1-Image)\n- [0.1.2](/ruby/docs/reference/google-apps-chat-v1/0.1.2/Google-Apps-Card-V1-Image) \nReference documentation and code samples for the Google Chat V1 API class Google::Apps::Card::V1::Image.\n\nAn image that is specified by a URL and can have an `onClick` action. For an\nexample, see [Add an\nimage](https://developers.google.com/workspace/chat/add-text-image-card-dialog#add_an_image).\n\n\n\u003cbr /\u003e\n\n[Google Workspace Add-ons and Chat\napps](https://developers.google.com/workspace/extend): \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #alt_text\n\n def alt_text() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The alternative text of this image that's used for accessibility.\n\n### #alt_text=\n\n def alt_text=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The alternative text of this image that's used for accessibility. \n**Returns**\n\n- (::String) --- The alternative text of this image that's used for accessibility.\n\n### #image_url\n\n def image_url() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The HTTPS URL that hosts the image.\n\n For example:\n\n `\n https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png\n `\n\n### #image_url=\n\n def image_url=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The HTTPS URL that hosts the image.\n\n\n For example:\n\n `\n https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png\n` \n**Returns**\n\n- (::String) --- The HTTPS URL that hosts the image.\n\n For example:\n\n `\n https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png\n `\n\n### #on_click\n\n def on_click() -\u003e ::Google::Apps::Card::V1::OnClick\n\n**Returns**\n\n- ([::Google::Apps::Card::V1::OnClick](./Google-Apps-Card-V1-OnClick)) --- When a user clicks the image, the click triggers this action.\n\n### #on_click=\n\n def on_click=(value) -\u003e ::Google::Apps::Card::V1::OnClick\n\n**Parameter**\n\n- **value** ([::Google::Apps::Card::V1::OnClick](./Google-Apps-Card-V1-OnClick)) --- When a user clicks the image, the click triggers this action. \n**Returns**\n\n- ([::Google::Apps::Card::V1::OnClick](./Google-Apps-Card-V1-OnClick)) --- When a user clicks the image, the click triggers this action."]]