Class SelectionInput.SelectionItem (2.40.0)

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
Type Description
int

SELECTED_FIELD_NUMBER

public static final int SELECTED_FIELD_NUMBER
Field Value
Type Description
int

START_ICON_URI_FIELD_NUMBER

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

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static SelectionInput.SelectionItem getDefaultInstance()
Returns
Type Description
SelectionInput.SelectionItem

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static SelectionInput.SelectionItem.Builder newBuilder()
Returns
Type Description
SelectionInput.SelectionItem.Builder

newBuilder(SelectionInput.SelectionItem prototype)

public static SelectionInput.SelectionItem.Builder newBuilder(SelectionInput.SelectionItem prototype)
Parameter
Name Description
prototype SelectionInput.SelectionItem
Returns
Type Description
SelectionInput.SelectionItem.Builder

parseDelimitedFrom(InputStream input)

public static SelectionInput.SelectionItem parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static SelectionInput.SelectionItem parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static SelectionInput.SelectionItem parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static SelectionInput.SelectionItem parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static SelectionInput.SelectionItem parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static SelectionInput.SelectionItem parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static SelectionInput.SelectionItem parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
SelectionInput.SelectionItem
Exceptions
Type Description
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
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
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.

getDefaultInstanceForType()

public SelectionInput.SelectionItem getDefaultInstanceForType()
Returns
Type Description
SelectionInput.SelectionItem

getParserForType()

public Parser<SelectionInput.SelectionItem> getParserForType()
Returns
Type Description
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
Type Description
boolean

The selected.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
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/workspace/chat/images/quickstart-app-avatar.png.

string start_icon_uri = 4;

Returns
Type Description
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/workspace/chat/images/quickstart-app-avatar.png.

string start_icon_uri = 4;

Returns
Type Description
ByteString

The bytes for startIconUri.

getText()

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

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
Type Description
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
Type Description
ByteString

The bytes for value.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public SelectionInput.SelectionItem.Builder newBuilderForType()
Returns
Type Description
SelectionInput.SelectionItem.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected SelectionInput.SelectionItem.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
SelectionInput.SelectionItem.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public SelectionInput.SelectionItem.Builder toBuilder()
Returns
Type Description
SelectionInput.SelectionItem.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException