public static interface ResultData.Builder extends SdkPojo, CopyableBuilder<ResultData.Builder,ResultData>
| Modifier and Type | Method and Description |
|---|---|
default ResultData.Builder |
document(Consumer<Document.Builder> document)
The document.
|
ResultData.Builder |
document(Document document)
The document.
|
ResultData.Builder |
relevanceScore(Double relevanceScore)
The relevance score of the results.
|
ResultData.Builder |
resultId(String resultId)
The identifier of the result data.
|
equalsBySdkFields, sdkFieldscopyapplyMutation, buildResultData.Builder document(Document document)
The document.
document - The document.default ResultData.Builder document(Consumer<Document.Builder> document)
The document.
This is a convenience method that creates an instance of theDocument.Builder avoiding the need to
create one manually via Document.builder().
When the Consumer completes, SdkBuilder.build() is called immediately and its result is
passed to document(Document).document - a consumer that will call methods on Document.Builderdocument(Document)ResultData.Builder relevanceScore(Double relevanceScore)
The relevance score of the results.
relevanceScore - The relevance score of the results.ResultData.Builder resultId(String resultId)
The identifier of the result data.
resultId - The identifier of the result data.Copyright © 2022. All rights reserved.