A builder for SuggestionsResponse
objects.
Available for Google Workspace Add-ons and Google Chat apps.
Methods
Method | Return type | Brief description |
---|---|---|
build() | SuggestionsResponse | Builds the current suggestions response and validates it. |
setSuggestions(suggestions) | SuggestionsResponseBuilder | Sets the suggestions used in auto complete in text fields. |
Detailed documentation
build()
Builds the current suggestions response and validates it.
Return
SuggestionsResponse
— 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 | The Suggestions to use. |
Return
SuggestionsResponseBuilder
— This object.