Class: Google::Apis::ChatV1::WidgetMarkup
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::ChatV1::WidgetMarkup
 
- Defined in:
- generated/google/apis/chat_v1/classes.rb,
 generated/google/apis/chat_v1/representations.rb,
 generated/google/apis/chat_v1/representations.rb
Overview
A widget is a UI element that presents texts, images, etc.
Instance Attribute Summary collapse
- 
  
    
      #buttons  ⇒ Array<Google::Apis::ChatV1::Button> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of buttons. 
- 
  
    
      #image  ⇒ Google::Apis::ChatV1::Image 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    An image that is specified by a URL and can have an onclick action. 
- 
  
    
      #key_value  ⇒ Google::Apis::ChatV1::KeyValue 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A UI element contains a key (label) and a value (content). 
- 
  
    
      #text_paragraph  ⇒ Google::Apis::ChatV1::TextParagraph 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A paragraph of text. 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ WidgetMarkup 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of WidgetMarkup. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Google::Apis::Core::JsonObjectSupport
Methods included from Google::Apis::Core::Hashable
Constructor Details
#initialize(**args) ⇒ WidgetMarkup
Returns a new instance of WidgetMarkup
| 882 883 884 | # File 'generated/google/apis/chat_v1/classes.rb', line 882 def initialize(**args) update!(**args) end | 
Instance Attribute Details
#buttons ⇒ Array<Google::Apis::ChatV1::Button>
A list of buttons. Buttons is also oneof data and only one of these
fields should be set.
Corresponds to the JSON property buttons
| 864 865 866 | # File 'generated/google/apis/chat_v1/classes.rb', line 864 def @buttons end | 
#image ⇒ Google::Apis::ChatV1::Image
An image that is specified by a URL and can have an onclick action.
Corresponds to the JSON property image
| 869 870 871 | # File 'generated/google/apis/chat_v1/classes.rb', line 869 def image @image end | 
#key_value ⇒ Google::Apis::ChatV1::KeyValue
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
| 875 876 877 | # File 'generated/google/apis/chat_v1/classes.rb', line 875 def key_value @key_value end | 
#text_paragraph ⇒ Google::Apis::ChatV1::TextParagraph
A paragraph of text. Formatted text supported.
Corresponds to the JSON property textParagraph
| 880 881 882 | # File 'generated/google/apis/chat_v1/classes.rb', line 880 def text_paragraph @text_paragraph end | 
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
| 887 888 889 890 891 892 | # File 'generated/google/apis/chat_v1/classes.rb', line 887 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 |