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 class
AddTrainingDataOptions.Builder
Builder. -
Method Summary
Modifier and Type Method Description String
collectionId()
Gets the collectionId.String
environmentId()
Gets the environmentId.List<TrainingExample>
examples()
Gets the examples.String
filter()
Gets the filter.String
naturalLanguageQuery()
Gets the naturalLanguageQuery.AddTrainingDataOptions.Builder
newBuilder()
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
-