Send feedback
Class SelectionInput.SelectionItem (2.63.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version latestkeyboard_arrow_down
public static final class SelectionInput . SelectionItem extends GeneratedMessageV3 implements SelectionInput . SelectionItemOrBuilder
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 :
Protobuf type google.apps.card.v1.SelectionInput.SelectionItem
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
BOTTOM_TEXT_FIELD_NUMBER
public static final int BOTTOM_TEXT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int SELECTED_FIELD_NUMBER
Field Value
Type
Description
int
public static final int START_ICON_URI_FIELD_NUMBER
Field Value
Type
Description
int
TEXT_FIELD_NUMBER
public static final int TEXT_FIELD_NUMBER
Field Value
Type
Description
int
public static final int VALUE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static SelectionInput . SelectionItem getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static SelectionInput . SelectionItem . Builder newBuilder ()
public static SelectionInput . SelectionItem . Builder newBuilder ( SelectionInput . SelectionItem prototype )
public static SelectionInput . SelectionItem parseDelimitedFrom ( InputStream input )
public static SelectionInput . SelectionItem parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SelectionInput . SelectionItem parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static SelectionInput . SelectionItem parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static SelectionInput . SelectionItem parseFrom ( ByteString data )
public static SelectionInput . SelectionItem parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static SelectionInput . SelectionItem parseFrom ( CodedInputStream input )
public static SelectionInput . SelectionItem parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static SelectionInput . SelectionItem parseFrom ( InputStream input )
public static SelectionInput . SelectionItem parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static SelectionInput . SelectionItem parseFrom ( ByteBuffer data )
public static SelectionInput . SelectionItem parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<SelectionInput . SelectionItem > parser ()
Methods
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
getBottomText()
public String getBottomText ()
For multiselect menus, a text description or label that's
displayed below the item's text field.
string bottom_text = 5;
Returns
Type
Description
String
The bottomText.
getBottomTextBytes()
public ByteString getBottomTextBytes ()
For multiselect menus, a text description or label that's
displayed below the item's text field.
string bottom_text = 5;
Returns
Type
Description
ByteString
The bytes for bottomText.
public SelectionInput . SelectionItem getDefaultInstanceForType ()
public Parser<SelectionInput . SelectionItem > getParserForType ()
Overrides
public 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
Type
Description
boolean
The selected.
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public SelectionInput . SelectionItem . StartIconCase getStartIconCase ()
public String getStartIconUri ()
string start_icon_uri = 4;
Returns
Type
Description
String
The startIconUri.
public ByteString getStartIconUriBytes ()
string start_icon_uri = 4;
Returns
Type
Description
ByteString
The bytes for startIconUri.
getText()
The text that identifies or describes the item to users.
string text = 1;
Returns
Type
Description
String
The text.
getTextBytes()
public ByteString getTextBytes ()
The text that identifies or describes the item to users.
string text = 1;
Returns
Type
Description
ByteString
The bytes for text.
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 .
string value = 2;
Returns
Type
Description
String
The value.
public 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 .
string value = 2;
Returns
Type
Description
ByteString
The bytes for value.
public boolean hasStartIconUri ()
string start_icon_uri = 4;
Returns
Type
Description
boolean
Whether the startIconUri field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public SelectionInput . SelectionItem . Builder newBuilderForType ()
protected SelectionInput . SelectionItem . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public SelectionInput . SelectionItem . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]