use of com.ibm.watson.discovery.v1.model.CreateCollectionOptions in project java-sdk by watson-developer-cloud.
the class VisualRecognitionIT method createTestCollection.
private String createTestCollection() {
String testCollectionName = "java-sdk-test-collection";
String testCollectionDescription = "Collection for integration testing of the Visual Recognition v4 service in " + "the Java SDK";
CreateCollectionOptions createCollectionOptions = new CreateCollectionOptions.Builder().name(testCollectionName).description(testCollectionDescription).build();
Collection newCollection = service.createCollection(createCollectionOptions).execute().getResult();
String testCollectionId = newCollection.getCollectionId();
return testCollectionId;
}
Aggregations