Class SuggestionsResponseBuilder Stay organized with collections Save and categorize content based on your preferences.
Page Summary
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 forSuggestions objects.
Available for Google Workspace add-ons and Google Chat apps.
Methods
| Method | Return type | Brief description |
|---|---|---|
build() | Suggestions | Builds the current suggestions response and validates it. |
set | 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.
setSuggestions(suggestions)
Sets the suggestions used in auto complete in text fields.
Parameters
| Name | Type | Description |
|---|---|---|
suggestions | Suggestions | TheSuggestions to use. |
Return
Suggestions — This object.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-12-03 UTC.