Reference documentation and code samples for the Google Apps Chat V1 Client class Attachment.
An attachment in Google Chat.
Generated from protobuf message google.chat.v1.Attachment
Namespace
Google \ Apps \ Chat \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
Optional. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}
.
↳ content_name
string
Output only. The original file name for the content, not the full path.
↳ content_type
string
Output only. The content type (MIME type) of the file.
↳ attachment_data_ref
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.
↳ drive_data_ref
DriveDataRef
Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
↳ thumbnail_uri
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.
↳ download_uri
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.
↳ source
int
Output only. The source of the attachment.
getName
Optional. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}
.
string
setName
Optional. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}
.
var
string
$this
getContentName
Output only. The original file name for the content, not the full path.
string
setContentName
Output only. The original file name for the content, not the full path.
var
string
$this
getContentType
Output only. The content type (MIME type) of the file.
string
setContentType
Output only. The content type (MIME type) of the file.
var
string
$this
getAttachmentDataRef
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.
hasAttachmentDataRef
setAttachmentDataRef
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.
$this
getDriveDataRef
Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
hasDriveDataRef
setDriveDataRef
Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
$this
getThumbnailUri
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.
string
setThumbnailUri
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.
var
string
$this
getDownloadUri
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.
string
setDownloadUri
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.
var
string
$this
getSource
Output only. The source of the attachment.
int
setSource
Output only. The source of the attachment.
var
int
$this
getDataRef
string