Class AddTrainingDataOptions
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v1.model.AddTrainingDataOptions
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class AddTrainingDataOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The addTrainingData options.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAddTrainingDataOptions.BuilderBuilder. -
Method Summary
Modifier and Type Method Description StringcollectionId()Gets the collectionId.StringenvironmentId()Gets the environmentId.List<TrainingExample>examples()Gets the examples.Stringfilter()Gets the filter.StringnaturalLanguageQuery()Gets the naturalLanguageQuery.AddTrainingDataOptions.BuildernewBuilder()New builder.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a AddTrainingDataOptions builder
-
environmentId
Gets the environmentId.The ID of the environment.
- Returns:
- the environmentId
-
collectionId
Gets the collectionId.The ID of the collection.
- Returns:
- the collectionId
-
naturalLanguageQuery
Gets the naturalLanguageQuery.The natural text query for the new training query.
- Returns:
- the naturalLanguageQuery
-
filter
Gets the filter.The filter used on the collection before the **natural_language_query** is applied.
- Returns:
- the filter
-
examples
Gets the examples.Array of training examples.
- Returns:
- the examples
-