Class: Google::Apis::CloudsearchV1::Attachment

Inherits:
Object
  • Object
show all
Includes:
Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
Defined in:
lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb

Overview

Attachments that follow the message text.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Attachment

Returns a new instance of Attachment.



4790
4791
4792
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4790

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#add_on_dataGoogle::Apis::CloudsearchV1::GoogleChatV1ContextualAddOnMarkup

The markup for developers to specify the contents of a contextual AddOn. Corresponds to the JSON property addOnData



4719
4720
4721
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4719

def add_on_data
  @add_on_data
end

#app_idGoogle::Apis::CloudsearchV1::UserId

Primary key for User resource. Corresponds to the JSON property appId



4724
4725
4726
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4724

def app_id
  @app_id
end

#attachment_idString

To identify an attachment within repeated in a message Corresponds to the JSON property attachmentId

Returns:

  • (String)


4729
4730
4731
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4729

def attachment_id
  @attachment_id
end

#card_add_on_dataGoogle::Apis::CloudsearchV1::AppsDynamiteStorageCard

A card is a UI element that can contain UI widgets such as text and images. For more information, see Cards . For example, the following JSON creates a card that has a header with the name, position, icons, and link for a contact, followed by a section with contact information like email and phone number. ` "header": ` "title": "Heba Salam", "subtitle": "Software Engineer", " imageStyle": "ImageStyle.AVATAR", "imageUrl": "https://example.com/heba_salam. png", "imageAltText": "Avatar for Heba Salam" `, "sections" : [ ` "header": " Contact Info", "widgets": [ ` "decorated_text": ` "icon": ` "knownIcon": " EMAIL" `, "content": "heba.salam@example.com" ` `, ` "decoratedText": ` "icon": ` "knownIcon": "PERSON" `, "content": "Online" ` `, ` "decoratedText": ` " icon": ` "knownIcon": "PHONE" `, "content": "+1 (555) 555-1234" ` `, ` " buttons": [ ` "textButton": ` "text": "Share", `, "onClick": ` "openLink": ` " url": "https://example.com/share" ` ` `, ` "textButton": ` "text": "Edit", `, " onClick": ` "action": ` "function": "goToView", "parameters": [ ` "key": " viewType", "value": "EDIT" ` ], "loadIndicator": "LoadIndicator.SPINNER" ` ` ` ] ` ], "collapsible": true, "uncollapsibleWidgetsCount": 3 ` ], "cardActions": [ ` "actionLabel": "Send Feedback", "onClick": ` "openLink": ` "url": "https:// example.com/feedback" ` ` ` ], "name": "contact-card-K3wB6arF2H9L" ` Corresponds to the JSON property cardAddOnData



4751
4752
4753
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4751

def card_add_on_data
  @card_add_on_data
end

#component_search_infoGoogle::Apis::CloudsearchV1::AppsDynamiteSharedMessageComponentSearchInfo

Metadata used to describe search information in a specific component of a chat message, for example an annotation or an attachment. Corresponds to the JSON property componentSearchInfo



4757
4758
4759
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4757

def component_search_info
  @component_search_info
end

#deprecated_add_on_dataGoogle::Apis::CloudsearchV1::ContextualAddOnMarkup

The markup for developers to specify the contents of a contextual AddOn. A contextual AddOn is triggered in context of an email. For that email, there can be N items that are associated with the email (e.g. contacts, sales lead, meeting information). Each item is represented as a "card". A card has two views, collapsed and detailed. If there are more than 1 card, the cards are show as a list of collapsed views. The end user can expand into the detailed view for each of those cards. In the detailed view, developers have the freedom to use a variety of "widgets" to construct it. The model here is to restrict (make consistent for end users) the navigation of the N cards but providing developers the freedom to build the detailed view that can best represent their use case/content. Go http://go/aoig-widgets1 to see the mocks. Post v1, we plan to support new AddOn use cases that will require different and separate 'templates'. For example, a compose triggered AddOn which will support a new set of use cases with different user interaction patterns. As a result, we will likely need a very different template than this one. Corresponds to the JSON property deprecatedAddOnData



4776
4777
4778
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4776

def deprecated_add_on_data
  @deprecated_add_on_data
end

#slack_dataGoogle::Apis::CloudsearchV1::AppsDynamiteV1ApiCompatV1Attachment

Richly formatted attachments. Documentation: - https://api.slack.com/docs/ message-attachments Corresponds to the JSON property slackData



4782
4783
4784
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4782

def slack_data
  @slack_data
end

#slack_data_image_url_heightFixnum

The height of image url as fetched by fife. This field is asynchronously filled. Corresponds to the JSON property slackDataImageUrlHeight

Returns:

  • (Fixnum)


4788
4789
4790
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4788

def slack_data_image_url_height
  @slack_data_image_url_height
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4795
4796
4797
4798
4799
4800
4801
4802
4803
4804
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 4795

def update!(**args)
  @add_on_data = args[:add_on_data] if args.key?(:add_on_data)
  @app_id = args[:app_id] if args.key?(:app_id)
  @attachment_id = args[:attachment_id] if args.key?(:attachment_id)
  @card_add_on_data = args[:card_add_on_data] if args.key?(:card_add_on_data)
  @component_search_info = args[:component_search_info] if args.key?(:component_search_info)
  @deprecated_add_on_data = args[:deprecated_add_on_data] if args.key?(:deprecated_add_on_data)
  @slack_data = args[:slack_data] if args.key?(:slack_data)
  @slack_data_image_url_height = args[:slack_data_image_url_height] if args.key?(:slack_data_image_url_height)
end