Class: Google::Apps::Chat::V1::WidgetMarkup::KeyValue
- Inherits:
-
Object
- Object
- Google::Apps::Chat::V1::WidgetMarkup::KeyValue
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/chat/v1/widgets.rb
Overview
A UI element contains a key (label) and a value (content). This
element can also contain some actions such as onclick button.
Instance Attribute Summary collapse
-
#bottom_label ⇒ ::String
The text of the bottom label.
-
#button ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::Button
A button that can be clicked to trigger an action.
-
#content ⇒ ::String
The text of the content.
-
#content_multiline ⇒ ::Boolean
If the content should be multiline.
-
#icon ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::Icon
An enum value that's replaced by the Chat API with the corresponding icon image.
-
#icon_url ⇒ ::String
The icon specified by a URL.
-
#on_click ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
The
onclickaction. -
#top_label ⇒ ::String
The text of the top label.
Instance Attribute Details
#bottom_label ⇒ ::String
Returns The text of the bottom label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#button ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::Button
Returns A button that can be clicked to trigger an action.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#content ⇒ ::String
Returns The text of the content. Formatted text supported and always required. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#content_multiline ⇒ ::Boolean
Returns If the content should be multiline.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#icon ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::Icon
Returns An enum value that's replaced by the Chat API with the corresponding icon image.
Note: The following fields are mutually exclusive: icon, icon_url. If a field in that set is populated, all other fields in the set will automatically be cleared.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#icon_url ⇒ ::String
Returns The icon specified by a URL.
Note: The following fields are mutually exclusive: icon_url, icon. If a field in that set is populated, all other fields in the set will automatically be cleared.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#on_click ⇒ ::Google::Apps::Chat::V1::WidgetMarkup::OnClick
Returns The onclick action. Only the top label, bottom label, and content
region are clickable.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#top_label ⇒ ::String
Returns The text of the top label. Formatted text supported. For more information about formatting text, see Formatting text in Google Chat apps and Formatting text in Google Workspace Add-ons.
144 145 146 147 |
# File 'proto_docs/google/chat/v1/widgets.rb', line 144 class KeyValue include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |