Class QueryLargePassages.Builder
java.lang.Object
com.ibm.watson.discovery.v2.model.QueryLargePassages.Builder
- Enclosing class:
- QueryLargePassages
public static class QueryLargePassages.Builder extends Object
Builder.
-
Constructor Summary
Constructors Constructor Description Builder()
Instantiates a new builder. -
Method Summary
Modifier and Type Method Description QueryLargePassages.Builder
addFields(String fields)
Adds an fields to fields.QueryLargePassages
build()
Builds a QueryLargePassages.QueryLargePassages.Builder
characters(long characters)
Set the characters.QueryLargePassages.Builder
count(long count)
Set the count.QueryLargePassages.Builder
enabled(Boolean enabled)
Set the enabled.QueryLargePassages.Builder
fields(List<String> fields)
Set the fields.QueryLargePassages.Builder
findAnswers(Boolean findAnswers)
Set the findAnswers.QueryLargePassages.Builder
maxAnswersPerPassage(long maxAnswersPerPassage)
Set the maxAnswersPerPassage.QueryLargePassages.Builder
maxPerDocument(long maxPerDocument)
Set the maxPerDocument.QueryLargePassages.Builder
perDocument(Boolean perDocument)
Set the perDocument.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder.
-
-
Method Details
-
build
Builds a QueryLargePassages.- Returns:
- the new QueryLargePassages instance
-
addFields
Adds an fields to fields.- Parameters:
fields
- the new fields- Returns:
- the QueryLargePassages builder
-
enabled
Set the enabled.- Parameters:
enabled
- the enabled- Returns:
- the QueryLargePassages builder
-
perDocument
Set the perDocument.- Parameters:
perDocument
- the perDocument- Returns:
- the QueryLargePassages builder
-
maxPerDocument
Set the maxPerDocument.- Parameters:
maxPerDocument
- the maxPerDocument- Returns:
- the QueryLargePassages builder
-
fields
Set the fields. Existing fields will be replaced.- Parameters:
fields
- the fields- Returns:
- the QueryLargePassages builder
-
count
Set the count.- Parameters:
count
- the count- Returns:
- the QueryLargePassages builder
-
characters
Set the characters.- Parameters:
characters
- the characters- Returns:
- the QueryLargePassages builder
-
findAnswers
Set the findAnswers.- Parameters:
findAnswers
- the findAnswers- Returns:
- the QueryLargePassages builder
-
maxAnswersPerPassage
Set the maxAnswersPerPassage.- Parameters:
maxAnswersPerPassage
- the maxAnswersPerPassage- Returns:
- the QueryLargePassages builder
-