code: public ServiceCall<TrainingExample> createTrainingExample(CreateTrainingExampleOptions createTrainingExampleOptions) {
      Validator.notNull(createTrainingExampleOptions, "createTrainingExampleOptions cannot be null");
      String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" };
      String[] pathParameters = { createTrainingExampleOptions.environmentId(), createTrainingExampleOptions
          .collectionId(), createTrainingExampleOptions.queryId() };
      RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments,
          pathParameters));
      builder.query("version", versionDate);
      Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("discovery", "v1", "createTrainingExample");
      for (Entry<String, String> header : sdkHeaders.entrySet()) {
        builder.header(header.getKey(), header.getValue());
      }
      builder.header("Accept", "application/json");
      final JsonObject contentJson = new JsonObject();
      if (createTrainingExampleOptions.documentId() != null) {
        contentJson.addProperty("document_id", createTrainingExampleOptions.documentId());
      }
      if (createTrainingExampleOptions.crossReference() != null) {
        contentJson.addProperty("cross_reference", createTrainingExampleOptions.crossReference());
      }
      if (createTrainingExampleOptions.relevance() != null) {
        contentJson.addProperty("relevance", createTrainingExampleOptions.relevance());
      }
      builder.bodyJson(contentJson);
      return createServiceCall(builder.build(), ResponseConverterUtils.getObject(TrainingExample.class));
    }
docs: Add example to training data query.
  
  Adds a example to this training data query.
  
  @param createTrainingExampleOptions the {@link CreateTrainingExampleOptions} containing the options for the call
  @return a {@link ServiceCall} with a response type of {@link TrainingExample}