Class: Google::Apps::Card::V1::SelectionInput::SelectionItem

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/apps/card/v1/card.rb

Overview

An item that users can select in a selection input, such as a checkbox or switch.

Google Workspace Add-ons and Chat apps:

Instance Attribute Summary collapse

Instance Attribute Details

#bottom_text::String

Returns For multiselect menus, a text description or label that's displayed below the item's text field.

Returns:

  • (::String)

    For multiselect menus, a text description or label that's displayed below the item's text field.



1138
1139
1140
1141
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138

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

#selected::Boolean

Returns 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.

Returns:

  • (::Boolean)

    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.



1138
1139
1140
1141
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138

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

#start_icon_uri::String

Returns 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.

Returns:

  • (::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.



1138
1139
1140
1141
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138

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

#text::String

Returns The text that identifies or describes the item to users.

Returns:

  • (::String)

    The text that identifies or describes the item to users.



1138
1139
1140
1141
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138

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

#value::String

Returns 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.

Returns:

  • (::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.



1138
1139
1140
1141
# File 'proto_docs/google/apps/card/v1/card.rb', line 1138

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