Class Attachment
An attachment in Google Chat.
Implements
Inherited Members
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class Attachment : IDirectResponseSchema
Properties
AttachmentDataRef
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.
Declaration
[JsonProperty("attachmentDataRef")]
public virtual AttachmentDataRef AttachmentDataRef { get; set; }
Property Value
Type | Description |
---|---|
AttachmentDataRef |
ContentName
Output only. The original file name for the content, not the full path.
Declaration
[JsonProperty("contentName")]
public virtual string ContentName { get; set; }
Property Value
Type | Description |
---|---|
string |
ContentType
Output only. The content type (MIME type) of the file.
Declaration
[JsonProperty("contentType")]
public virtual string ContentType { get; set; }
Property Value
Type | Description |
---|---|
string |
DownloadUri
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.
Declaration
[JsonProperty("downloadUri")]
public virtual string DownloadUri { get; set; }
Property Value
Type | Description |
---|---|
string |
DriveDataRef
Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
Declaration
[JsonProperty("driveDataRef")]
public virtual DriveDataRef DriveDataRef { get; set; }
Property Value
Type | Description |
---|---|
DriveDataRef |
ETag
The ETag of the item.
Declaration
public virtual string ETag { get; set; }
Property Value
Type | Description |
---|---|
string |
Name
Optional. Resource name of the attachment, in the form
spaces/{space}/messages/{message}/attachments/{attachment}
.
Declaration
[JsonProperty("name")]
public virtual string Name { get; set; }
Property Value
Type | Description |
---|---|
string |
Source
Output only. The source of the attachment.
Declaration
[JsonProperty("source")]
public virtual string Source { get; set; }
Property Value
Type | Description |
---|---|
string |
ThumbnailUri
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.
Declaration
[JsonProperty("thumbnailUri")]
public virtual string ThumbnailUri { get; set; }
Property Value
Type | Description |
---|---|
string |