Interface SuggestionTextWithHighlights.Builder

    • Method Detail

      • text

        SuggestionTextWithHighlights.Builder text​(String text)

        The query suggestion text to display to the user.

        Parameters:
        text - The query suggestion text to display to the user.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • highlights

        SuggestionTextWithHighlights.Builder highlights​(Collection<SuggestionHighlight> highlights)

        The beginning and end of the query suggestion text that should be highlighted.

        Parameters:
        highlights - The beginning and end of the query suggestion text that should be highlighted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • highlights

        SuggestionTextWithHighlights.Builder highlights​(SuggestionHighlight... highlights)

        The beginning and end of the query suggestion text that should be highlighted.

        Parameters:
        highlights - The beginning and end of the query suggestion text that should be highlighted.
        Returns:
        Returns a reference to this object so that method calls can be chained together.