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 method that creates an instance of theSuggestionHighlight.Builder avoiding the need to create
one manually via SuggestionHighlight.builder().
When the Consumer completes,
SdkBuilder.build() is called
immediately and its result is passed to #highlights(List.
highlights - a consumer that will call methods on
SuggestionHighlight.Builder#highlights(java.util.Collection) Copyright © 2023. All rights reserved.