Class AnswerSpanResponseDTO
- java.lang.Object
-
- com.microsoft.azure.cognitiveservices.knowledge.qnamaker.models.AnswerSpanResponseDTO
-
- Direct Known Subclasses:
QnASearchResultAnswerSpan
public class AnswerSpanResponseDTO extends Object
Answer span object of QnA.
-
-
Constructor Summary
Constructors Constructor Description AnswerSpanResponseDTO()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
endIndex()
Get the endIndex value.Double
score()
Get the score value.Integer
startIndex()
Get the startIndex value.String
text()
Get the text value.AnswerSpanResponseDTO
withEndIndex(Integer endIndex)
Set the endIndex value.AnswerSpanResponseDTO
withScore(Double score)
Set the score value.AnswerSpanResponseDTO
withStartIndex(Integer startIndex)
Set the startIndex value.AnswerSpanResponseDTO
withText(String text)
Set the text value.
-
-
-
Method Detail
-
text
public String text()
Get the text value.- Returns:
- the text value
-
withText
public AnswerSpanResponseDTO withText(String text)
Set the text value.- Parameters:
text
- the text value to set- Returns:
- the AnswerSpanResponseDTO object itself.
-
score
public Double score()
Get the score value.- Returns:
- the score value
-
withScore
public AnswerSpanResponseDTO withScore(Double score)
Set the score value.- Parameters:
score
- the score value to set- Returns:
- the AnswerSpanResponseDTO object itself.
-
startIndex
public Integer startIndex()
Get the startIndex value.- Returns:
- the startIndex value
-
withStartIndex
public AnswerSpanResponseDTO withStartIndex(Integer startIndex)
Set the startIndex value.- Parameters:
startIndex
- the startIndex value to set- Returns:
- the AnswerSpanResponseDTO object itself.
-
endIndex
public Integer endIndex()
Get the endIndex value.- Returns:
- the endIndex value
-
withEndIndex
public AnswerSpanResponseDTO withEndIndex(Integer endIndex)
Set the endIndex value.- Parameters:
endIndex
- the endIndex value to set- Returns:
- the AnswerSpanResponseDTO object itself.
-
-