AI-generated Key Takeaways
-
SuggestionsResponseBuilder is used to build SuggestionsResponse objects.
-
It is available for Google Workspace add-ons and Google Chat apps.
-
It has methods to build the suggestions response and set the suggestions used in autocomplete in text fields.
A builder for Suggestions
objects.
Available for Google Workspace add-ons and Google Chat apps.
Methods
| Method | Return type | Brief description |
|---|---|---|
Suggestions
|
Builds the current suggestions response and validates it. | |
Suggestions
|
Sets the suggestions used in auto complete in text fields. |
Detailed documentation
build()
Builds the current suggestions response and validates it.
Return
Suggestions
— A validated SuggestionsResponse.
Throws
Error
— if the constructed suggestions response isn't valid.
set
Suggestions(suggestions)
Sets the suggestions used in auto complete in text fields.
Parameters
| Name | Type | Description |
|---|---|---|
suggestions
|
Suggestions
|
The Suggestions
to use. |
Return
Suggestions
— This object.

