public static interface Highlight.Builder extends SdkPojo, CopyableBuilder<Highlight.Builder,Highlight>
| Modifier and Type | Method and Description |
|---|---|
Highlight.Builder |
beginOffset(Integer beginOffset)
The zero-based location in the response string where the highlight starts.
|
Highlight.Builder |
endOffset(Integer endOffset)
The zero-based location in the response string where the highlight ends.
|
Highlight.Builder |
topAnswer(Boolean topAnswer)
Indicates whether the response is the best response.
|
Highlight.Builder |
type(HighlightType type)
The highlight type.
|
Highlight.Builder |
type(String type)
The highlight type.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildHighlight.Builder beginOffset(Integer beginOffset)
The zero-based location in the response string where the highlight starts.
beginOffset - The zero-based location in the response string where the highlight starts.Highlight.Builder endOffset(Integer endOffset)
The zero-based location in the response string where the highlight ends.
endOffset - The zero-based location in the response string where the highlight ends.Highlight.Builder topAnswer(Boolean topAnswer)
Indicates whether the response is the best response. True if this is the best response; otherwise, false.
topAnswer - Indicates whether the response is the best response. True if this is the best response; otherwise,
false.Highlight.Builder type(String type)
The highlight type.
type - The highlight type.HighlightType,
HighlightTypeHighlight.Builder type(HighlightType type)
The highlight type.
type - The highlight type.HighlightType,
HighlightTypeCopyright © 2021. All rights reserved.