Package com.google.apps.card.v1
Interface SelectionInput.SelectionItemOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SelectionInput.SelectionItem
,SelectionInput.SelectionItem.Builder
- Enclosing class:
SelectionInput
public static interface SelectionInput.SelectionItemOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionFor multiselect menus, a text description or label that's displayed below the item's `text` field.com.google.protobuf.ByteString
For multiselect menus, a text description or label that's displayed below the item's `text` field.boolean
Whether the item is selected by default.For multiselect menus, the URL for the icon displayed next to the item's `text` field.com.google.protobuf.ByteString
For multiselect menus, the URL for the icon displayed next to the item's `text` field.getText()
The text that identifies or describes the item to users.com.google.protobuf.ByteString
The text that identifies or describes the item to users.getValue()
The value associated with this item.com.google.protobuf.ByteString
The value associated with this item.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getText
String getText()The text that identifies or describes the item to users.
string text = 1;
- Returns:
- The text.
-
getTextBytes
com.google.protobuf.ByteString getTextBytes()The text that identifies or describes the item to users.
string text = 1;
- Returns:
- The bytes for text.
-
getValue
String getValue()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](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;
- Returns:
- The value.
-
getValueBytes
com.google.protobuf.ByteString getValueBytes()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](https://developers.google.com/workspace/chat/read-form-data).
string value = 2;
- Returns:
- The bytes for value.
-
getSelected
boolean getSelected()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.
bool selected = 3;
- Returns:
- The selected.
-
getStartIconUri
String getStartIconUri()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`.
string start_icon_uri = 4;
- Returns:
- The startIconUri.
-
getStartIconUriBytes
com.google.protobuf.ByteString getStartIconUriBytes()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`.
string start_icon_uri = 4;
- Returns:
- The bytes for startIconUri.
-
getBottomText
String getBottomText()For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;
- Returns:
- The bottomText.
-
getBottomTextBytes
com.google.protobuf.ByteString getBottomTextBytes()For multiselect menus, a text description or label that's displayed below the item's `text` field.
string bottom_text = 5;
- Returns:
- The bytes for bottomText.
-