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.

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.



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.

Returns:

  • (::String)

    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.

Returns:

  • (::String)

    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.

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.



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.

Returns:



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

Returns:

  • (::String)

    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.

Returns:



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.

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.



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