public static class TrainingQuery.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(String naturalLanguageQuery,
List<TrainingExample> examples)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
TrainingQuery.Builder |
addExamples(TrainingExample examples)
Adds an examples to examples.
|
TrainingQuery |
build()
Builds a TrainingQuery.
|
TrainingQuery.Builder |
examples(List<TrainingExample> examples)
Set the examples.
|
TrainingQuery.Builder |
filter(String filter)
Set the filter.
|
TrainingQuery.Builder |
naturalLanguageQuery(String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
public Builder()
public Builder(String naturalLanguageQuery, List<TrainingExample> examples)
naturalLanguageQuery
- the naturalLanguageQueryexamples
- the examplespublic TrainingQuery build()
public TrainingQuery.Builder addExamples(TrainingExample examples)
examples
- the new examplespublic TrainingQuery.Builder naturalLanguageQuery(String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic TrainingQuery.Builder filter(String filter)
filter
- the filterpublic TrainingQuery.Builder examples(List<TrainingExample> examples)
examples
- the examplesCopyright © 2022 IBM Cloud. All rights reserved.