Interface RegionHighlights.Builder

    • Method Detail

      • code

        RegionHighlights.Builder code​(Collection<Highlight> code)

        Indicates the starting and ending index of the region in the text query that match the found title.

        Parameters:
        code - Indicates the starting and ending index of the region in the text query that match the found title.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • code

        RegionHighlights.Builder code​(Highlight... code)

        Indicates the starting and ending index of the region in the text query that match the found title.

        Parameters:
        code - Indicates the starting and ending index of the region in the text query that match the found title.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        RegionHighlights.Builder name​(Collection<Highlight> name)

        Indicates the starting and ending index of the region name in the text query that match the found title.

        Parameters:
        name - Indicates the starting and ending index of the region name in the text query that match the found title.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        RegionHighlights.Builder name​(Highlight... name)

        Indicates the starting and ending index of the region name in the text query that match the found title.

        Parameters:
        name - Indicates the starting and ending index of the region name in the text query that match the found title.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • name

        RegionHighlights.Builder name​(Consumer<Highlight.Builder>... name)

        Indicates the starting and ending index of the region name in the text query that match the found title.

        This is a convenience method that creates an instance of the Highlight.Builder avoiding the need to create one manually via Highlight.builder().

        When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to #name(List).

        Parameters:
        name - a consumer that will call methods on Highlight.Builder
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        #name(java.util.Collection)