Class CreateTrainingQueryOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.discovery.v2.model.CreateTrainingQueryOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class CreateTrainingQueryOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The createTrainingQuery options.
  • Method Details

    • newBuilder

      New builder.
      Returns:
      a CreateTrainingQueryOptions builder
    • projectId

      public String projectId()
      Gets the projectId.

      The ID of the project. This information can be found from the *Integrate and Deploy* page in Discovery.

      Returns:
      the projectId
    • naturalLanguageQuery

      public String naturalLanguageQuery()
      Gets the naturalLanguageQuery.

      The natural text query for the training query.

      Returns:
      the naturalLanguageQuery
    • examples

      public List<TrainingExample> examples()
      Gets the examples.

      Array of training examples.

      Returns:
      the examples
    • filter

      public String filter()
      Gets the filter.

      The filter used on the collection before the **natural_language_query** is applied.

      Returns:
      the filter