Class SuggestionsResponseBuilder

SuggestionsResponseBuilder

A builder for SuggestionsResponse objects.

Methods

MethodReturn typeBrief description
build()SuggestionsResponseBuilds the current suggestions response and validates it.
setSuggestions(suggestions)SuggestionsResponseBuilderSets 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

NameTypeDescription
suggestionsSuggestionsthe Suggestions to use.

Return

SuggestionsResponseBuilder — this object.

发送以下问题的反馈:

此网页
Apps Script
Apps Script
需要帮助?请访问我们的支持页面