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 IntegerendIndex()Get the endIndex value.Doublescore()Get the score value.IntegerstartIndex()Get the startIndex value.Stringtext()Get the text value.AnswerSpanResponseDTOwithEndIndex(Integer endIndex)Set the endIndex value.AnswerSpanResponseDTOwithScore(Double score)Set the score value.AnswerSpanResponseDTOwithStartIndex(Integer startIndex)Set the startIndex value.AnswerSpanResponseDTOwithText(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.
-
-