{"name":string,"contentName":string,"contentType":string,"thumbnailUri":string,"downloadUri":string,"source":enum (Source),// Union fielddata_refcan be only one of the following:"attachmentDataRef":{object (AttachmentDataRef)},"driveDataRef":{object (DriveDataRef)}// End of list of possible types for union fielddata_ref.}
Output only. The original file name for the content, not the full path.
contentType
string
Output only. The content type (MIME type) of the file.
thumbnailUri
string
Output only. The thumbnail URL which should be used to preview the attachment to a human user. Chat apps shouldn't use this URL to download attachment content.
downloadUri
string
Output only. The download URL which should be used to allow a human user to download the attachment. Chat apps shouldn't use this URL to download attachment content.
Optional. A reference to the attachment data. This field is used to create or update messages with attachments, or with the media API to download the attachment data.
Optional. The resource name of the attachment data. This field is used with the media API to download the attachment data.
attachmentUploadToken
string
Optional. Opaque token containing a reference to an uploaded attachment. Treated by clients as an opaque string and used to create or update Chat messages with attachments.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-07 UTC."],[],["Attachments in Google Chat contain metadata and data references. Key information includes the attachment's `name`, `contentName`, `contentType`, `thumbnailUri`, and `downloadUri`. The `source` indicates if it's from Google Drive or uploaded to Chat. `AttachmentDataRef` provides a `resourceName` for media API downloads and an `attachmentUploadToken` for creating/updating messages with attachments. Methods to retrieve attachments metadata are detailed. The data source can be either a Drive file or uploaded content.\n"]]