public static interface SuggestionTextWithHighlights.Builder extends SdkPojo, CopyableBuilder<SuggestionTextWithHighlights.Builder,SuggestionTextWithHighlights>
| Modifier and Type | Method and Description |
|---|---|
SuggestionTextWithHighlights.Builder |
highlights(Collection<SuggestionHighlight> highlights)
The beginning and end of the query suggestion text that should be highlighted.
|
SuggestionTextWithHighlights.Builder |
highlights(Consumer<SuggestionHighlight.Builder>... highlights)
The beginning and end of the query suggestion text that should be highlighted.
|
SuggestionTextWithHighlights.Builder |
highlights(SuggestionHighlight... highlights)
The beginning and end of the query suggestion text that should be highlighted.
|
SuggestionTextWithHighlights.Builder |
text(String text)
The query suggestion text to display to the user.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildSuggestionTextWithHighlights.Builder text(String text)
The query suggestion text to display to the user.
text - The query suggestion text to display to the user.SuggestionTextWithHighlights.Builder highlights(Collection<SuggestionHighlight> highlights)
The beginning and end of the query suggestion text that should be highlighted.
highlights - The beginning and end of the query suggestion text that should be highlighted.SuggestionTextWithHighlights.Builder highlights(SuggestionHighlight... highlights)
The beginning and end of the query suggestion text that should be highlighted.
highlights - The beginning and end of the query suggestion text that should be highlighted.SuggestionTextWithHighlights.Builder highlights(Consumer<SuggestionHighlight.Builder>... highlights)
The beginning and end of the query suggestion text that should be highlighted.
This is a convenience that creates an instance of theList.Builder avoiding the
need to create one manually via List#builder() .
When the Consumer completes, List.Builder#build() is called immediately
and its result is passed to #highlights(List) .highlights - a consumer that will call methods on List.Builder #highlights(List) Copyright © 2021. All rights reserved.