public static final class Suggestions.Builder extends GeneratedMessageV3.Builder<Suggestions.Builder> 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.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllItems(Iterable<? extends Suggestions.SuggestionItem> values)
public Suggestions.Builder addAllItems(Iterable<? extends Suggestions.SuggestionItem> values)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.apps.card.v1.Suggestions.SuggestionItem>
|
addItems(Suggestions.SuggestionItem value)
public Suggestions.Builder addItems(Suggestions.SuggestionItem value)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
addItems(Suggestions.SuggestionItem.Builder builderForValue)
public Suggestions.Builder addItems(Suggestions.SuggestionItem.Builder builderForValue)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
addItems(int index, Suggestions.SuggestionItem value)
public Suggestions.Builder addItems(int index, Suggestions.SuggestionItem value)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
addItems(int index, Suggestions.SuggestionItem.Builder builderForValue)
public Suggestions.Builder addItems(int index, Suggestions.SuggestionItem.Builder builderForValue)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
addItemsBuilder()
public Suggestions.SuggestionItem.Builder addItemsBuilder()
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
addItemsBuilder(int index)
public Suggestions.SuggestionItem.Builder addItemsBuilder(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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Suggestions.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public Suggestions build()
buildPartial()
public Suggestions buildPartial()
clear()
public Suggestions.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public Suggestions.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearItems()
public Suggestions.Builder clearItems()
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public Suggestions.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public Suggestions.Builder clone()
Overrides
getDefaultInstanceForType()
public Suggestions getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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
|
getItemsBuilder(int index)
public Suggestions.SuggestionItem.Builder getItemsBuilder(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
|
getItemsBuilderList()
public List<Suggestions.SuggestionItem.Builder> getItemsBuilderList()
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
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> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(Suggestions other)
public Suggestions.Builder mergeFrom(Suggestions other)
public Suggestions.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public Suggestions.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Suggestions.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeItems(int index)
public Suggestions.Builder removeItems(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
|
setField(Descriptors.FieldDescriptor field, Object value)
public Suggestions.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setItems(int index, Suggestions.SuggestionItem value)
public Suggestions.Builder setItems(int index, Suggestions.SuggestionItem value)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
setItems(int index, Suggestions.SuggestionItem.Builder builderForValue)
public Suggestions.Builder setItems(int index, Suggestions.SuggestionItem.Builder builderForValue)
A list of suggestions used for autocomplete recommendations in text input
fields.
repeated .google.apps.card.v1.Suggestions.SuggestionItem items = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Suggestions.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final Suggestions.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides