Google Chat V1 API - Class Google::Apps::Chat::V1::Attachment (v0.3.0)

Reference documentation and code samples for the Google Chat V1 API class Google::Apps::Chat::V1::Attachment.

An attachment in Google Chat.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#attachment_data_ref

def attachment_data_ref() -> ::Google::Apps::Chat::V1::AttachmentDataRef
Returns

#attachment_data_ref=

def attachment_data_ref=(value) -> ::Google::Apps::Chat::V1::AttachmentDataRef
Parameter
Returns

#content_name

def content_name() -> ::String
Returns
  • (::String) — Output only. The original file name for the content, not the full path.

#content_type

def content_type() -> ::String
Returns
  • (::String) — Output only. The content type (MIME type) of the file.

#download_uri

def download_uri() -> ::String
Returns
  • (::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.

#drive_data_ref

def drive_data_ref() -> ::Google::Apps::Chat::V1::DriveDataRef
Returns

#name

def name() -> ::String
Returns
  • (::String) — Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.
Returns
  • (::String) — Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.

#source

def source() -> ::Google::Apps::Chat::V1::Attachment::Source
Returns

#thumbnail_uri

def thumbnail_uri() -> ::String
Returns
  • (::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.