Show / Hide Table of Contents

Class Attachment

An attachment in Google Chat.

Inheritance
object
Attachment
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.HangoutsChat.v1.Data
Assembly: Google.Apis.HangoutsChat.v1.dll
Syntax
public class Attachment : IDirectResponseSchema

Properties

AttachmentDataRef

A reference to the attachment data. This field is used 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

Resource name of the attachment, in the form spaces/*/messages/*/attachments/*.

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

Implements

IDirectResponseSchema
In This Article
Back to top Generated by DocFX