Class: Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkup
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkup
- 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
A widget is a UI element that presents texts, images, etc.
Instance Attribute Summary collapse
-
#buttons ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupButton>
A list of buttons.
-
#image ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImage
An image that is specified by a URL and can have an onclick action.
-
#key_value ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupKeyValue
A UI element contains a key (label) and a value (content).
-
#text_paragraph ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextParagraph
A paragraph of text.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleChatV1WidgetMarkup
constructor
A new instance of GoogleChatV1WidgetMarkup.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleChatV1WidgetMarkup
Returns a new instance of GoogleChatV1WidgetMarkup.
10181 10182 10183 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10181 def initialize(**args) update!(**args) end |
Instance Attribute Details
#buttons ⇒ Array<Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupButton>
A list of buttons. Buttons is also oneof data
and only one of these fields
should be set.
Corresponds to the JSON property buttons
10161 10162 10163 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10161 def @buttons end |
#image ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupImage
An image that is specified by a URL and can have an onclick action.
Corresponds to the JSON property image
10166 10167 10168 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10166 def image @image end |
#key_value ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupKeyValue
A UI element contains a key (label) and a value (content). And this element
may also contain some actions such as onclick button.
Corresponds to the JSON property keyValue
10172 10173 10174 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10172 def key_value @key_value end |
#text_paragraph ⇒ Google::Apis::CloudsearchV1::GoogleChatV1WidgetMarkupTextParagraph
A paragraph of text. Formatted text supported. For more information about
formatting text, see Formatting text in Google Chat apps and Formatting text
in Google Workspace Add-ons.
Corresponds to the JSON property textParagraph
10179 10180 10181 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10179 def text_paragraph @text_paragraph end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10186 10187 10188 10189 10190 10191 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10186 def update!(**args) @buttons = args[:buttons] if args.key?(:buttons) @image = args[:image] if args.key?(:image) @key_value = args[:key_value] if args.key?(:key_value) @text_paragraph = args[:text_paragraph] if args.key?(:text_paragraph) end |