public class QueryResultPassage
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.Long |
endOffset |
protected java.lang.String |
field |
protected java.lang.String |
passageText |
protected java.lang.Long |
startOffset |
Constructor and Description |
---|
QueryResultPassage() |
Modifier and Type | Method and Description |
---|---|
java.lang.Long |
getEndOffset()
Gets the endOffset.
|
java.lang.String |
getField()
Gets the field.
|
java.lang.String |
getPassageText()
Gets the passageText.
|
java.lang.Long |
getStartOffset()
Gets the startOffset.
|
@SerializedName(value="passage_text") protected java.lang.String passageText
@SerializedName(value="start_offset") protected java.lang.Long startOffset
@SerializedName(value="end_offset") protected java.lang.Long endOffset
protected java.lang.String field
public java.lang.String getPassageText()
The content of the extracted passage.
public java.lang.Long getStartOffset()
The position of the first character of the extracted passage in the originating field.
public java.lang.Long getEndOffset()
The position of the last character of the extracted passage in the originating field.
public java.lang.String getField()
The label of the field from which the passage has been extracted.