Interface Highlight.Builder

All Superinterfaces:
Buildable, CopyableBuilder<Highlight.Builder,Highlight>, SdkBuilder<Highlight.Builder,Highlight>, SdkPojo
Enclosing class:
Highlight

public static interface Highlight.Builder extends SdkPojo, CopyableBuilder<Highlight.Builder,Highlight>
  • Method Details

    • beginOffset

      Highlight.Builder beginOffset(Integer beginOffset)

      The zero-based location in the response string where the highlight starts.

      Parameters:
      beginOffset - The zero-based location in the response string where the highlight starts.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • endOffset

      Highlight.Builder endOffset(Integer endOffset)

      The zero-based location in the response string where the highlight ends.

      Parameters:
      endOffset - The zero-based location in the response string where the highlight ends.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • topAnswer

      Highlight.Builder topAnswer(Boolean topAnswer)

      Indicates whether the response is the best response. True if this is the best response; otherwise, false.

      Parameters:
      topAnswer - Indicates whether the response is the best response. True if this is the best response; otherwise, false.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • type

      The highlight type.

      Parameters:
      type - The highlight type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also:
    • type

      The highlight type.

      Parameters:
      type - The highlight type.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: