public static class TrainingQuery.Builder
extends java.lang.Object
Constructor and Description |
---|
TrainingQuery.Builder()
Instantiates a new builder.
|
TrainingQuery.Builder(java.lang.String naturalLanguageQuery,
java.util.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 |
created(java.util.Date created)
Set the created.
|
TrainingQuery.Builder |
examples(java.util.List<TrainingExample> examples)
Set the examples.
|
TrainingQuery.Builder |
filter(java.lang.String filter)
Set the filter.
|
TrainingQuery.Builder |
naturalLanguageQuery(java.lang.String naturalLanguageQuery)
Set the naturalLanguageQuery.
|
TrainingQuery.Builder |
queryId(java.lang.String queryId)
Set the queryId.
|
TrainingQuery.Builder |
updated(java.util.Date updated)
Set the updated.
|
public TrainingQuery.Builder()
public TrainingQuery.Builder(java.lang.String naturalLanguageQuery, java.util.List<TrainingExample> examples)
naturalLanguageQuery
- the naturalLanguageQueryexamples
- the examplespublic TrainingQuery build()
public TrainingQuery.Builder addExamples(TrainingExample examples)
examples
- the new examplespublic TrainingQuery.Builder queryId(java.lang.String queryId)
queryId
- the queryIdpublic TrainingQuery.Builder naturalLanguageQuery(java.lang.String naturalLanguageQuery)
naturalLanguageQuery
- the naturalLanguageQuerypublic TrainingQuery.Builder filter(java.lang.String filter)
filter
- the filterpublic TrainingQuery.Builder created(java.util.Date created)
created
- the createdpublic TrainingQuery.Builder updated(java.util.Date updated)
updated
- the updatedpublic TrainingQuery.Builder examples(java.util.List<TrainingExample> examples)
examples
- the examples