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
-
(::Google::Apps::Chat::V1::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.
Note: The following fields are mutually exclusive:
attachment_data_ref
,drive_data_ref
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#attachment_data_ref=
def attachment_data_ref=(value) -> ::Google::Apps::Chat::V1::AttachmentDataRef
-
value (::Google::Apps::Chat::V1::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.
Note: The following fields are mutually exclusive:
attachment_data_ref
,drive_data_ref
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Apps::Chat::V1::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.
Note: The following fields are mutually exclusive:
attachment_data_ref
,drive_data_ref
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#content_name
def content_name() -> ::String
- (::String) — Output only. The original file name for the content, not the full path.
#content_type
def content_type() -> ::String
- (::String) — Output only. The content type (MIME type) of the file.
#download_uri
def download_uri() -> ::String
- (::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
-
(::Google::Apps::Chat::V1::DriveDataRef) — Output only. A reference to the Google Drive attachment. This field is
used with the Google Drive API.
Note: The following fields are mutually exclusive:
drive_data_ref
,attachment_data_ref
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#name
def name() -> ::String
-
(::String) — Optional. Resource name of the attachment, in the form
spaces/{space}/messages/{message}/attachments/{attachment}
.
#name=
def name=(value) -> ::String
-
value (::String) — Optional. Resource name of the attachment, in the form
spaces/{space}/messages/{message}/attachments/{attachment}
.
-
(::String) — Optional. Resource name of the attachment, in the form
spaces/{space}/messages/{message}/attachments/{attachment}
.
#source
def source() -> ::Google::Apps::Chat::V1::Attachment::Source
- (::Google::Apps::Chat::V1::Attachment::Source) — Output only. The source of the attachment.
#thumbnail_uri
def thumbnail_uri() -> ::String
- (::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.