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.BuilderaddFields(String fields)Adds an fields to fields.QueryLargePassagesbuild()Builds a QueryLargePassages.QueryLargePassages.Buildercharacters(long characters)Set the characters.QueryLargePassages.Buildercount(long count)Set the count.QueryLargePassages.Builderenabled(Boolean enabled)Set the enabled.QueryLargePassages.Builderfields(List<String> fields)Set the fields.QueryLargePassages.BuilderfindAnswers(Boolean findAnswers)Set the findAnswers.QueryLargePassages.BuildermaxAnswersPerPassage(long maxAnswersPerPassage)Set the maxAnswersPerPassage.QueryLargePassages.BuildermaxPerDocument(long maxPerDocument)Set the maxPerDocument.QueryLargePassages.BuilderperDocument(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
-