Class: Google::Apps::Chat::V1::WidgetMarkup::KeyValue

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

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.

Returns:



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

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.

Returns:



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

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.

Returns:



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

class KeyValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#content_multiline::Boolean

Returns If the content should be multiline.

Returns:

  • (::Boolean)

    If the content should be multiline.



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

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.

Returns:



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

class KeyValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#icon_url::String

Returns The icon specified by a URL.

Returns:

  • (::String)

    The icon specified by a URL.



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

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.

Returns:



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

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.

Returns:



130
131
132
133
# File 'proto_docs/google/chat/v1/widgets.rb', line 130

class KeyValue
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end