Interface CompletionResult.Builder
- Enclosing interface:
CompletionResult
public static interface CompletionResult.Builder
Builder for
CompletionResult.-
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds theCompletionResult.Sets whether additional results exist beyondCompletionResult.values().Sets optional protocol extension metadata.default CompletionResult.Buildertotal(int total) Sets the total number of matches, if known.Sets the total number of matches, if known.Sets the candidate values ranked by relevance.default CompletionResult.BuilderSets the candidate values ranked by relevance.
-
Method Details
-
values
Sets the candidate values ranked by relevance.- Parameters:
elements- candidate values
-
values
Sets the candidate values ranked by relevance.- Parameters:
values- candidate values
-
total
Sets the total number of matches, if known.- Parameters:
total- total match count, ornullif unknown
-
total
Sets the total number of matches, if known.- Parameters:
total- total match count, ornullif unknown
-
hasMore
Sets whether additional results exist beyondCompletionResult.values().- Parameters:
hasMore-trueif more results exist, ornullif unknown
-
meta
Sets optional protocol extension metadata.- Parameters:
entries- metadata entries, ornullfor none
-
build
CompletionResult build()Builds theCompletionResult.
-