public static class UpdateTrainingQueryOptions.Builder
extends java.lang.Object
Constructor and Description |
---|
UpdateTrainingQueryOptions.Builder()
Instantiates a new builder.
|
UpdateTrainingQueryOptions.Builder(java.lang.String projectId,
java.lang.String queryId,
java.lang.String naturalLanguageQuery,
java.util.List<TrainingExample> examples)
Instantiates a new builder with required properties.
|
Modifier and Type | Method and Description |
---|---|
UpdateTrainingQueryOptions.Builder |
addExamples(TrainingExample examples)
Adds an examples to examples.
|
UpdateTrainingQueryOptions |
build()
Builds a UpdateTrainingQueryOptions.
|
UpdateTrainingQueryOptions.Builder |
examples(java.util.List<TrainingExample> examples)
Set the examples.
|
UpdateTrainingQueryOptions.Builder |
filter(java.lang.String filter)
Set the filter.
|
UpdateTrainingQueryOptions.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
UpdateTrainingQueryOptions.Builder |
projectId(java.lang.String projectId)
Set the projectId.
|
UpdateTrainingQueryOptions.Builder |
queryId(java.lang.String queryId)
Set the queryId.
|
UpdateTrainingQueryOptions.Builder |
trainingQuery(TrainingQuery trainingQuery)
Set the trainingQuery.
|
public UpdateTrainingQueryOptions.Builder()
public UpdateTrainingQueryOptions.Builder(java.lang.String projectId, java.lang.String queryId, java.lang.String naturalLanguageQuery, java.util.List<TrainingExample> examples)
projectId
- the projectIdqueryId
- the queryIdnaturalLanguageQuery
- the naturalLanguageQueryexamples
- the examplespublic UpdateTrainingQueryOptions build()
public UpdateTrainingQueryOptions.Builder addExamples(TrainingExample examples)
examples
- the new examplespublic UpdateTrainingQueryOptions.Builder projectId(java.lang.String projectId)
projectId
- the projectIdpublic UpdateTrainingQueryOptions.Builder queryId(java.lang.String queryId)
queryId
- the queryIdpublic UpdateTrainingQueryOptions.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic UpdateTrainingQueryOptions.Builder examples(java.util.List<TrainingExample> examples)
examples
- the examplespublic UpdateTrainingQueryOptions.Builder filter(java.lang.String filter)
filter
- the filterpublic UpdateTrainingQueryOptions.Builder trainingQuery(TrainingQuery trainingQuery)
trainingQuery
- the trainingQuery