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