Class Attachment
An attachment in Google Chat.
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class Attachment : IMessage<Attachment>, IEquatable<Attachment>, IDeepCloneable<Attachment>, IBufferMessage, IMessage
Constructors
Attachment()
Declaration
Attachment(Attachment)
Declaration
public Attachment(Attachment other)
Parameters
Properties
AttachmentDataRef
A reference to the attachment data. This field is used with the media API
to download the attachment data.
Declaration
public AttachmentDataRef AttachmentDataRef { get; set; }
Property Value
AttachmentName
Declaration
public AttachmentName AttachmentName { get; set; }
Property Value
ContentName
Output only. The original file name for the content, not the full path.
Declaration
public string ContentName { get; set; }
Property Value
ContentType
Output only. The content type (MIME type) of the file.
Declaration
public string ContentType { get; set; }
Property Value
DataRefCase
Declaration
public Attachment.DataRefOneofCase DataRefCase { get; }
Property Value
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
public string DownloadUri { get; set; }
Property Value
DriveDataRef
Output only. A reference to the Google Drive attachment. This field is
used with the Google Drive API.
Declaration
public DriveDataRef DriveDataRef { get; set; }
Property Value
Name
Resource name of the attachment, in the form
spaces/{space}/messages/{message}/attachments/{attachment}
.
Declaration
public string Name { get; set; }
Property Value
Source
Output only. The source of the attachment.
Declaration
public Attachment.Types.Source Source { get; set; }
Property Value
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
public string ThumbnailUri { get; set; }
Property Value