Show / Hide Table of Contents

Class Attachment

An attachment in Google Chat.

Inheritance
object
Attachment
Implements
IMessage<Attachment>
IEquatable<Attachment>
IDeepCloneable<Attachment>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.Apps.Chat.V1
Assembly: Google.Apps.Chat.V1.dll
Syntax
public sealed class Attachment : IMessage<Attachment>, IEquatable<Attachment>, IDeepCloneable<Attachment>, IBufferMessage, IMessage

Constructors

Attachment()

Declaration
public Attachment()

Attachment(Attachment)

Declaration
public Attachment(Attachment other)
Parameters
Type Name Description
Attachment other

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
public AttachmentDataRef AttachmentDataRef { get; set; }
Property Value
Type Description
AttachmentDataRef

AttachmentName

AttachmentName-typed view over the Name resource name property.

Declaration
public AttachmentName AttachmentName { get; set; }
Property Value
Type Description
AttachmentName

ContentName

Output only. The original file name for the content, not the full path.

Declaration
public string ContentName { get; set; }
Property Value
Type Description
string

ContentType

Output only. The content type (MIME type) of the file.

Declaration
public string ContentType { get; set; }
Property Value
Type Description
string

DataRefCase

Declaration
public Attachment.DataRefOneofCase DataRefCase { get; }
Property Value
Type Description
Attachment.DataRefOneofCase

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
Type Description
string

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
Type Description
DriveDataRef

Name

Optional. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.

Declaration
public string Name { get; set; }
Property Value
Type Description
string

Source

Output only. The source of the attachment.

Declaration
public Attachment.Types.Source Source { get; set; }
Property Value
Type Description
Attachment.Types.Source

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
Type Description
string
In this article
Back to top Generated by DocFX