public final class Suggestions extends GeneratedMessageV3 implements SuggestionsOrBuilder
Suggested values that users can enter. These values appear when users click
inside the text input field. As users type, the suggested values
dynamically filter to match what the users have typed.
For example, a text input field for programming language might suggest
Java, JavaScript, Python, and C++. When users start typing Jav
, the list
of suggestions filters to show Java
and JavaScript
.
Suggested values help guide users to enter values that your app can make
sense of. When referring to JavaScript, some users might enter javascript
and others java script
. Suggesting JavaScript
can standardize how users
interact with your app.
When specified, TextInput.type
is always SINGLE_LINE
, even if it's set
to MULTIPLE_LINE
.
Google Workspace
Add-ons and Chat apps:
Protobuf type google.apps.card.v1.Suggestions
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
ITEMS_FIELD_NUMBER
public static final int ITEMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Suggestions getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Suggestions.Builder newBuilder()
newBuilder(Suggestions prototype)
public static Suggestions.Builder newBuilder(Suggestions prototype)
public static Suggestions parseDelimitedFrom(InputStream input)
public static Suggestions parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Suggestions parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Suggestions parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Suggestions parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Suggestions parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Suggestions parseFrom(CodedInputStream input)
public static Suggestions parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Suggestions parseFrom(InputStream input)
public static Suggestions parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Suggestions parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Suggestions parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Suggestions> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public Suggestions getDefaultInstanceForType()
getItems(int index)
public Suggestions.SuggestionItem getItems(int index)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
Parameter |
---|
Name | Description |
index | int
|
getItemsCount()
public int getItemsCount()
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
Returns |
---|
Type | Description |
int | |
getItemsList()
public List<Suggestions.SuggestionItem> getItemsList()
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
getItemsOrBuilder(int index)
public Suggestions.SuggestionItemOrBuilder getItemsOrBuilder(int index)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
Parameter |
---|
Name | Description |
index | int
|
getItemsOrBuilderList()
public List<? extends Suggestions.SuggestionItemOrBuilder> getItemsOrBuilderList()
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
Returns |
---|
Type | Description |
List<? extends com.google.apps.card.v1.Suggestions.SuggestionItemOrBuilder> | |
getParserForType()
public Parser<Suggestions> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Suggestions.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Suggestions.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Suggestions.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides