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. Supports up to 100 items.

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.



1335
1336
1337
1338
# File 'proto_docs/google/apps/card/v1/card.rb', line 1335

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.



1335
1336
1337
1338
# File 'proto_docs/google/apps/card/v1/card.rb', line 1335

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

#start_icon_uri::String

Returns:

  • (::String)


1335
1336
1337
1338
# File 'proto_docs/google/apps/card/v1/card.rb', line 1335

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.



1335
1336
1337
1338
# File 'proto_docs/google/apps/card/v1/card.rb', line 1335

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.



1335
1336
1337
1338
# File 'proto_docs/google/apps/card/v1/card.rb', line 1335

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