Class: Google::Apps::Chat::V1::Attachment

Inherits:
Object
  • Object
show all
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

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.

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.

Returns:

  • (::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.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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.

Returns:

  • (::String)

    Output only. The original file name for the content, not the full path.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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.

Returns:

  • (::String)

    Output only. The content type (MIME type) of the file.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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.

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.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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.

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.

Returns:

  • (::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.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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}.

Returns:

  • (::String)

    Optional. Resource name of the attachment, in the form spaces/{space}/messages/{message}/attachments/{attachment}.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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.

Returns:



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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.

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.



61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
# File 'proto_docs/google/chat/v1/attachment.rb', line 61

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