Class: Google::Apps::Chat::V1::Attachment
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::Attachment
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/chat/v1/attachment.rb
Overview
An attachment in Google Chat.
Defined Under Namespace
Modules: Source
Instance Attribute Summary collapse
-
#attachment_data_ref ⇒ ::Google::Apps::Chat::V1::AttachmentDataRef
Optional.
-
#content_name ⇒ ::String
readonly
Output only.
-
#content_type ⇒ ::String
readonly
Output only.
-
#download_uri ⇒ ::String
readonly
Output only.
-
#drive_data_ref ⇒ ::Google::Apps::Chat::V1::DriveDataRef
readonly
Output only.
-
#name ⇒ ::String
Optional.
-
#source ⇒ ::Google::Apps::Chat::V1::Attachment::Source
readonly
Output only.
-
#thumbnail_uri ⇒ ::String
readonly
Output only.
Instance Attribute Details
#attachment_data_ref ⇒ ::Google::Apps::Chat::V1::AttachmentDataRef
Returns 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.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#content_name ⇒ ::String (readonly)
Returns Output only. The original file name for the content, not the full path.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#content_type ⇒ ::String (readonly)
Returns Output only. The content type (MIME type) of the file.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#download_uri ⇒ ::String (readonly)
Returns 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.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#drive_data_ref ⇒ ::Google::Apps::Chat::V1::DriveDataRef (readonly)
Returns Output only. A reference to the Google Drive attachment. This field is used with the Google Drive API.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#name ⇒ ::String
Returns Optional. Resource name of the attachment, in the form
spaces/{space}/messages/{message}/attachments/{attachment}
.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#source ⇒ ::Google::Apps::Chat::V1::Attachment::Source (readonly)
Returns Output only. The source of the attachment.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |
#thumbnail_uri ⇒ ::String (readonly)
Returns 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.
57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'proto_docs/google/chat/v1/attachment.rb', line 57 class Attachment include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The source of the attachment. module Source # Reserved. SOURCE_UNSPECIFIED = 0 # The file is a Google Drive file. DRIVE_FILE = 1 # The file is uploaded to Chat. UPLOADED_CONTENT = 2 end end |