Required. The field paths to update. Separate multiple values with commas or use * to update all field paths. Currently supported field paths: - text - attachment - cards (Requires app authentication.) - cards_v2 (Requires app authentication.) - accessory_widgets (Requires app authentication.)
↳ allow_missing
bool
Optional. If true and the message isn't found, a new message is created and updateMask is ignored. The specified message ID must be client-assigned or the request fails.
Optional. If true and the message isn't found, a new message is created
and updateMask is ignored. The specified message ID must be
client-assigned
or the request fails.
Returns
Type
Description
bool
setAllowMissing
Optional. If true and the message isn't found, a new message is created
and updateMask is ignored. The specified message ID must be
client-assigned
or the request fails.
[[["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 UpdateMessageRequest (0.12.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.12.0 (latest)](/php/docs/reference/apps-chat/latest/Chat.V1.UpdateMessageRequest)\n- [0.11.2](/php/docs/reference/apps-chat/0.11.2/Chat.V1.UpdateMessageRequest)\n- [0.10.0](/php/docs/reference/apps-chat/0.10.0/Chat.V1.UpdateMessageRequest)\n- [0.9.0](/php/docs/reference/apps-chat/0.9.0/Chat.V1.UpdateMessageRequest)\n- [0.8.1](/php/docs/reference/apps-chat/0.8.1/Chat.V1.UpdateMessageRequest)\n- [0.7.2](/php/docs/reference/apps-chat/0.7.2/Chat.V1.UpdateMessageRequest)\n- [0.6.1](/php/docs/reference/apps-chat/0.6.1/Chat.V1.UpdateMessageRequest)\n- [0.5.0](/php/docs/reference/apps-chat/0.5.0/Chat.V1.UpdateMessageRequest)\n- [0.4.0](/php/docs/reference/apps-chat/0.4.0/Chat.V1.UpdateMessageRequest)\n- [0.3.0](/php/docs/reference/apps-chat/0.3.0/Chat.V1.UpdateMessageRequest)\n- [0.2.0](/php/docs/reference/apps-chat/0.2.0/Chat.V1.UpdateMessageRequest)\n- [0.1.4](/php/docs/reference/apps-chat/0.1.4/Chat.V1.UpdateMessageRequest) \nReference documentation and code samples for the Google Apps Chat V1 Client class UpdateMessageRequest.\n\nRequest to update a message.\n\nGenerated from protobuf message `google.chat.v1.UpdateMessageRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Apps \\\\ Chat \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getMessage\n\nRequired. Message with fields updated.\n\n### hasMessage\n\n### clearMessage\n\n### setMessage\n\nRequired. Message with fields updated.\n\n### getUpdateMask\n\nRequired. The field paths to update. Separate multiple values with commas\nor use `*` to update all field paths.\n\nCurrently supported field paths:\n\n- `text`\n- `attachment`\n- `cards` (Requires [app\n authentication](/chat/api/guides/auth/service-accounts).)\n- `cards_v2` (Requires [app\n authentication](/chat/api/guides/auth/service-accounts).)\n- `accessory_widgets` (Requires [app\n authentication](/chat/api/guides/auth/service-accounts).)\n\n### hasUpdateMask\n\n### clearUpdateMask\n\n### setUpdateMask\n\nRequired. The field paths to update. Separate multiple values with commas\nor use `*` to update all field paths.\n\nCurrently supported field paths:\n\n- `text`\n- `attachment`\n- `cards` (Requires [app\n authentication](/chat/api/guides/auth/service-accounts).)\n- `cards_v2` (Requires [app\n authentication](/chat/api/guides/auth/service-accounts).)\n- `accessory_widgets` (Requires [app\n authentication](/chat/api/guides/auth/service-accounts).)\n\n### getAllowMissing\n\nOptional. If `true` and the message isn't found, a new message is created\nand `updateMask` is ignored. The specified message ID must be\n[client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message)\nor the request fails.\n\n### setAllowMissing\n\nOptional. If `true` and the message isn't found, a new message is created\nand `updateMask` is ignored. The specified message ID must be\n[client-assigned](https://developers.google.com/workspace/chat/create-messages#name_a_created_message)\nor the request fails.\n\n### static::build"]]