public static class CreateTrainingQueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
CreateTrainingQueryOptions.Builder()
Instantiates a new builder.
|
CreateTrainingQueryOptions.Builder(java.lang.String projectId,
java.lang.String naturalLanguageQuery,
java.util.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(java.util.List<TrainingExample> examples)
Set the examples.
|
CreateTrainingQueryOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
CreateTrainingQueryOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
CreateTrainingQueryOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
CreateTrainingQueryOptions.Builder |
trainingQuery(TrainingQuery trainingQuery)
Set the trainingQuery.
|
public CreateTrainingQueryOptions.Builder()
public CreateTrainingQueryOptions.Builder(java.lang.String projectId, java.lang.String naturalLanguageQuery, java.util.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(java.lang.String projectId)
projectId
- the projectIdpublic CreateTrainingQueryOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic CreateTrainingQueryOptions.Builder examples(java.util.List<TrainingExample> examples)
examples
- the examplespublic CreateTrainingQueryOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic CreateTrainingQueryOptions.Builder trainingQuery(TrainingQuery trainingQuery)
trainingQuery
- the trainingQuery