Class: Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem
- Inherits:
-
Object
- Object
- Google::Apis::ChatV1::GoogleAppsCardV1SelectionItem
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/chat_v1/classes.rb,
lib/google/apis/chat_v1/representations.rb,
lib/google/apis/chat_v1/representations.rb
Overview
An item that users can select in a selection input, such as a checkbox or switch. Supports up to 100 items. Google Workspace Add-ons and Chat apps:
Instance Attribute Summary collapse
-
#bottom_text ⇒ String
For multiselect menus, a text description or label that's displayed below the item's
textfield. -
#selected ⇒ Boolean
(also: #selected?)
Whether the item is selected by default.
-
#start_icon_uri ⇒ String
For multiselect menus, the URL for the icon displayed next to the item's
textfield. -
#text ⇒ String
The text that identifies or describes the item to users.
-
#value ⇒ String
The value associated with this item.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAppsCardV1SelectionItem
constructor
A new instance of GoogleAppsCardV1SelectionItem.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAppsCardV1SelectionItem
Returns a new instance of GoogleAppsCardV1SelectionItem.
2971 2972 2973 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2971 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bottom_text ⇒ String
For multiselect menus, a text description or label that's displayed below the
item's text field.
Corresponds to the JSON property bottomText
2942 2943 2944 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2942 def bottom_text @bottom_text end |
#selected ⇒ Boolean Also known as: selected?
Whether the item is selected by default. If the selection input only accepts
one value (such as for radio buttons or a dropdown menu), only set this field
for one item.
Corresponds to the JSON property selected
2949 2950 2951 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2949 def selected @selected end |
#start_icon_uri ⇒ String
For multiselect menus, the URL for the icon displayed next to the item's text
field. Supports PNG and JPEG files. Must be an HTTPS URL. For example,
https://developers.google.com/workspace/chat/images/quickstart-app-avatar.png.
Corresponds to the JSON property startIconUri
2957 2958 2959 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2957 def start_icon_uri @start_icon_uri end |
#text ⇒ String
The text that identifies or describes the item to users.
Corresponds to the JSON property text
2962 2963 2964 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2962 def text @text end |
#value ⇒ String
The value associated with this item. The client should use this as a form
input value. For details about working with form inputs, see Receive form
data.
Corresponds to the JSON property value
2969 2970 2971 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2969 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2976 2977 2978 2979 2980 2981 2982 |
# File 'lib/google/apis/chat_v1/classes.rb', line 2976 def update!(**args) @bottom_text = args[:bottom_text] if args.key?(:bottom_text) @selected = args[:selected] if args.key?(:selected) @start_icon_uri = args[:start_icon_uri] if args.key?(:start_icon_uri) @text = args[:text] if args.key?(:text) @value = args[:value] if args.key?(:value) end |