Class SelectionInput.SelectionItem (2.37.1)

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.

Google Workspace Add-ons and Chat apps:

Protobuf type google.apps.card.v1.SelectionInput.SelectionItem

Static Fields

BOTTOM_TEXT_FIELD_NUMBER

public static final int BOTTOM_TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

SELECTED_FIELD_NUMBER

public static final int SELECTED_FIELD_NUMBER
Field Value
TypeDescription
int

START_ICON_URI_FIELD_NUMBER

public static final int START_ICON_URI_FIELD_NUMBER
Field Value
TypeDescription
int

TEXT_FIELD_NUMBER

public static final int TEXT_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SelectionInput.SelectionItem getDefaultInstance()
Returns
TypeDescription
SelectionInput.SelectionItem

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static SelectionInput.SelectionItem.Builder newBuilder()
Returns
TypeDescription
SelectionInput.SelectionItem.Builder

newBuilder(SelectionInput.SelectionItem prototype)

public static SelectionInput.SelectionItem.Builder newBuilder(SelectionInput.SelectionItem prototype)
Parameter
NameDescription
prototypeSelectionInput.SelectionItem
Returns
TypeDescription
SelectionInput.SelectionItem.Builder

parseDelimitedFrom(InputStream input)

public static SelectionInput.SelectionItem parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static SelectionInput.SelectionItem parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SelectionInput.SelectionItem parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SelectionInput.SelectionItem parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static SelectionInput.SelectionItem parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static SelectionInput.SelectionItem parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SelectionInput.SelectionItem
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<SelectionInput.SelectionItem> parser()
Returns
TypeDescription
Parser<SelectionItem>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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
TypeDescription
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
TypeDescription
ByteString

The bytes for bottomText.

getDefaultInstanceForType()

public SelectionInput.SelectionItem getDefaultInstanceForType()
Returns
TypeDescription
SelectionInput.SelectionItem

getParserForType()

public Parser<SelectionInput.SelectionItem> getParserForType()
Returns
TypeDescription
Parser<SelectionItem>
Overrides

getSelected()

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
TypeDescription
boolean

The selected.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getStartIconUri()

public 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/chat/images/quickstart-app-avatar.png.

string start_icon_uri = 4;

Returns
TypeDescription
String

The startIconUri.

getStartIconUriBytes()

public 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/chat/images/quickstart-app-avatar.png.

string start_icon_uri = 4;

Returns
TypeDescription
ByteString

The bytes for startIconUri.

getText()

public String getText()

The text that identifies or describes the item to users.

string text = 1;

Returns
TypeDescription
String

The text.

getTextBytes()

public ByteString getTextBytes()

The text that identifies or describes the item to users.

string text = 1;

Returns
TypeDescription
ByteString

The bytes for text.

getValue()

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

string value = 2;

Returns
TypeDescription
String

The value.

getValueBytes()

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
TypeDescription
ByteString

The bytes for value.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public SelectionInput.SelectionItem.Builder newBuilderForType()
Returns
TypeDescription
SelectionInput.SelectionItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SelectionInput.SelectionItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
SelectionInput.SelectionItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public SelectionInput.SelectionItem.Builder toBuilder()
Returns
TypeDescription
SelectionInput.SelectionItem.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException