id
int32
0
165k
repo
stringlengths
7
58
path
stringlengths
12
218
func_name
stringlengths
3
140
original_string
stringlengths
73
34.1k
language
stringclasses
1 value
code
stringlengths
73
34.1k
code_tokens
list
docstring
stringlengths
3
16k
docstring_tokens
list
sha
stringlengths
40
40
url
stringlengths
105
339
49,100
watson-developer-cloud/java-sdk
text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java
TextToSpeech.deleteWord
public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) { Validator.notNull(deleteWordOptions, "deleteWordOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { deleteWordOptions.customizationId(), deleteWordOptions.word() }; Requ...
java
public ServiceCall<Void> deleteWord(DeleteWordOptions deleteWordOptions) { Validator.notNull(deleteWordOptions, "deleteWordOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { deleteWordOptions.customizationId(), deleteWordOptions.word() }; Requ...
[ "public", "ServiceCall", "<", "Void", ">", "deleteWord", "(", "DeleteWordOptions", "deleteWordOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteWordOptions", ",", "\"deleteWordOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "...
Delete a custom word. Deletes a single word from the specified custom voice model. You must use credentials for the instance of the service that owns a model to delete its words. **Note:** This method is currently a beta release. **See also:** [Deleting a word from a custom model](https://cloud.ibm.com/docs/services...
[ "Delete", "a", "custom", "word", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java#L657-L668
49,101
watson-developer-cloud/java-sdk
text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java
TextToSpeech.getWord
public ServiceCall<Translation> getWord(GetWordOptions getWordOptions) { Validator.notNull(getWordOptions, "getWordOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { getWordOptions.customizationId(), getWordOptions.word() }; RequestBuilder bui...
java
public ServiceCall<Translation> getWord(GetWordOptions getWordOptions) { Validator.notNull(getWordOptions, "getWordOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { getWordOptions.customizationId(), getWordOptions.word() }; RequestBuilder bui...
[ "public", "ServiceCall", "<", "Translation", ">", "getWord", "(", "GetWordOptions", "getWordOptions", ")", "{", "Validator", ".", "notNull", "(", "getWordOptions", ",", "\"getWordOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", "\...
Get a custom word. Gets the translation for a single word from the specified custom model. The output shows the translation as it is defined in the model. You must use credentials for the instance of the service that owns a model to list its words. **Note:** This method is currently a beta release. **See also:** [Q...
[ "Get", "a", "custom", "word", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java#L685-L697
49,102
watson-developer-cloud/java-sdk
text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java
TextToSpeech.listWords
public ServiceCall<Words> listWords(ListWordsOptions listWordsOptions) { Validator.notNull(listWordsOptions, "listWordsOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { listWordsOptions.customizationId() }; RequestBuilder builder = RequestBui...
java
public ServiceCall<Words> listWords(ListWordsOptions listWordsOptions) { Validator.notNull(listWordsOptions, "listWordsOptions cannot be null"); String[] pathSegments = { "v1/customizations", "words" }; String[] pathParameters = { listWordsOptions.customizationId() }; RequestBuilder builder = RequestBui...
[ "public", "ServiceCall", "<", "Words", ">", "listWords", "(", "ListWordsOptions", "listWordsOptions", ")", "{", "Validator", ".", "notNull", "(", "listWordsOptions", ",", "\"listWordsOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", ...
List custom words. Lists all of the words and their translations for the specified custom voice model. The output shows the translations as they are defined in the model. You must use credentials for the instance of the service that owns a model to list its words. **Note:** This method is currently a beta release. *...
[ "List", "custom", "words", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/TextToSpeech.java#L714-L726
49,103
watson-developer-cloud/java-sdk
natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java
NaturalLanguageClassifier.classify
public ServiceCall<Classification> classify(ClassifyOptions classifyOptions) { Validator.notNull(classifyOptions, "classifyOptions cannot be null"); String[] pathSegments = { "v1/classifiers", "classify" }; String[] pathParameters = { classifyOptions.classifierId() }; RequestBuilder builder = RequestBui...
java
public ServiceCall<Classification> classify(ClassifyOptions classifyOptions) { Validator.notNull(classifyOptions, "classifyOptions cannot be null"); String[] pathSegments = { "v1/classifiers", "classify" }; String[] pathParameters = { classifyOptions.classifierId() }; RequestBuilder builder = RequestBui...
[ "public", "ServiceCall", "<", "Classification", ">", "classify", "(", "ClassifyOptions", "classifyOptions", ")", "{", "Validator", ".", "notNull", "(", "classifyOptions", ",", "\"classifyOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "...
Classify a phrase. Returns label information for the input. The status must be `Available` before you can use the classifier to classify text. @param classifyOptions the {@link ClassifyOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Classification}
[ "Classify", "a", "phrase", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java#L99-L114
49,104
watson-developer-cloud/java-sdk
natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java
NaturalLanguageClassifier.classifyCollection
public ServiceCall<ClassificationCollection> classifyCollection(ClassifyCollectionOptions classifyCollectionOptions) { Validator.notNull(classifyCollectionOptions, "classifyCollectionOptions cannot be null"); String[] pathSegments = { "v1/classifiers", "classify_collection" }; String[] pathParameters = { cl...
java
public ServiceCall<ClassificationCollection> classifyCollection(ClassifyCollectionOptions classifyCollectionOptions) { Validator.notNull(classifyCollectionOptions, "classifyCollectionOptions cannot be null"); String[] pathSegments = { "v1/classifiers", "classify_collection" }; String[] pathParameters = { cl...
[ "public", "ServiceCall", "<", "ClassificationCollection", ">", "classifyCollection", "(", "ClassifyCollectionOptions", "classifyCollectionOptions", ")", "{", "Validator", ".", "notNull", "(", "classifyCollectionOptions", ",", "\"classifyCollectionOptions cannot be null\"", ")", ...
Classify multiple phrases. Returns label information for multiple phrases. The status must be `Available` before you can use the classifier to classify text. Note that classifying Japanese texts is a beta feature. @param classifyCollectionOptions the {@link ClassifyCollectionOptions} containing the options for the c...
[ "Classify", "multiple", "phrases", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java#L127-L142
49,105
watson-developer-cloud/java-sdk
natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java
NaturalLanguageClassifier.createClassifier
public ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions) { Validator.notNull(createClassifierOptions, "createClassifierOptions cannot be null"); String[] pathSegments = { "v1/classifiers" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(...
java
public ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions) { Validator.notNull(createClassifierOptions, "createClassifierOptions cannot be null"); String[] pathSegments = { "v1/classifiers" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(...
[ "public", "ServiceCall", "<", "Classifier", ">", "createClassifier", "(", "CreateClassifierOptions", "createClassifierOptions", ")", "{", "Validator", ".", "notNull", "(", "createClassifierOptions", ",", "\"createClassifierOptions cannot be null\"", ")", ";", "String", "[",...
Create classifier. Sends data to create and train a classifier and returns information about the new classifier. @param createClassifierOptions the {@link CreateClassifierOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Classifier}
[ "Create", "classifier", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/natural-language-classifier/src/main/java/com/ibm/watson/natural_language_classifier/v1/NaturalLanguageClassifier.java#L152-L170
49,106
watson-developer-cloud/java-sdk
text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/util/WaveUtils.java
WaveUtils.writeInt
private static void writeInt(int value, byte[] array, int offset) { for (int i = 0; i < 4; i++) { array[offset + i] = (byte) (value >>> (8 * i)); } }
java
private static void writeInt(int value, byte[] array, int offset) { for (int i = 0; i < 4; i++) { array[offset + i] = (byte) (value >>> (8 * i)); } }
[ "private", "static", "void", "writeInt", "(", "int", "value", ",", "byte", "[", "]", "array", ",", "int", "offset", ")", "{", "for", "(", "int", "i", "=", "0", ";", "i", "<", "4", ";", "i", "++", ")", "{", "array", "[", "offset", "+", "i", "]...
Writes an number into an array using 4 bytes. @param value the number to write @param array the byte array @param offset the offset
[ "Writes", "an", "number", "into", "an", "array", "using", "4", "bytes", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/util/WaveUtils.java#L46-L50
49,107
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/util/MediaTypeUtils.java
MediaTypeUtils.getMediaTypeFromFile
public static String getMediaTypeFromFile(final File file) { if (file == null) { return null; } final String fileName = file.getName(); final int i = fileName.lastIndexOf('.'); if (i == -1) { return null; } return MEDIA_TYPES.get(fileName.substring(i).toLowerCase()); }
java
public static String getMediaTypeFromFile(final File file) { if (file == null) { return null; } final String fileName = file.getName(); final int i = fileName.lastIndexOf('.'); if (i == -1) { return null; } return MEDIA_TYPES.get(fileName.substring(i).toLowerCase()); }
[ "public", "static", "String", "getMediaTypeFromFile", "(", "final", "File", "file", ")", "{", "if", "(", "file", "==", "null", ")", "{", "return", "null", ";", "}", "final", "String", "fileName", "=", "file", ".", "getName", "(", ")", ";", "final", "in...
Returns the media type for a given file. @param file the file object for which media type needs to be provided @return Internet media type for the file, or null if none found
[ "Returns", "the", "media", "type", "for", "a", "given", "file", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/util/MediaTypeUtils.java#L54-L67
49,108
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/util/MediaTypeUtils.java
MediaTypeUtils.isValidMediaType
public static boolean isValidMediaType(final String mediaType) { return (mediaType != null) && MEDIA_TYPES.values().contains(mediaType.toLowerCase()); }
java
public static boolean isValidMediaType(final String mediaType) { return (mediaType != null) && MEDIA_TYPES.values().contains(mediaType.toLowerCase()); }
[ "public", "static", "boolean", "isValidMediaType", "(", "final", "String", "mediaType", ")", "{", "return", "(", "mediaType", "!=", "null", ")", "&&", "MEDIA_TYPES", ".", "values", "(", ")", ".", "contains", "(", "mediaType", ".", "toLowerCase", "(", ")", ...
Checks if the media type is supported by the service. @param mediaType Internet media type for the file @return true if it is supported, false if not.
[ "Checks", "if", "the", "media", "type", "is", "supported", "by", "the", "service", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/util/MediaTypeUtils.java#L75-L77
49,109
watson-developer-cloud/java-sdk
examples/src/main/java/com/ibm/watson/assistant/v1/tone_analyzer_integration/ToneDetection.java
ToneDetection.updateEmotionTone
@SuppressWarnings("unchecked") private static void updateEmotionTone(Map<String, Object> user, List<ToneScore> emotionTone, boolean maintainHistory) { Double maxScore = 0.0; String primaryEmotion = null; Double primaryEmotionScore = null; for (ToneScore tone : emotionTone) { if (tone.get...
java
@SuppressWarnings("unchecked") private static void updateEmotionTone(Map<String, Object> user, List<ToneScore> emotionTone, boolean maintainHistory) { Double maxScore = 0.0; String primaryEmotion = null; Double primaryEmotionScore = null; for (ToneScore tone : emotionTone) { if (tone.get...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "static", "void", "updateEmotionTone", "(", "Map", "<", "String", ",", "Object", ">", "user", ",", "List", "<", "ToneScore", ">", "emotionTone", ",", "boolean", "maintainHistory", ")", "{", "Double...
updateEmotionTone updates the user emotion tone with the primary emotion - the emotion tone that has a score greater than or equal to the EMOTION_SCORE_THRESHOLD; otherwise primary emotion will be 'neutral'. @param user a json object representing user information (tone) to be used in conversing with the Assistant Serv...
[ "updateEmotionTone", "updates", "the", "user", "emotion", "tone", "with", "the", "primary", "emotion", "-", "the", "emotion", "tone", "that", "has", "a", "score", "greater", "than", "or", "equal", "to", "the", "EMOTION_SCORE_THRESHOLD", ";", "otherwise", "primar...
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/examples/src/main/java/com/ibm/watson/assistant/v1/tone_analyzer_integration/ToneDetection.java#L144-L182
49,110
watson-developer-cloud/java-sdk
examples/src/main/java/com/ibm/watson/assistant/v1/tone_analyzer_integration/ToneDetection.java
ToneDetection.updateLanguageTone
@SuppressWarnings("unchecked") private static void updateLanguageTone(Map<String, Object> user, List<ToneScore> languageTone, boolean maintainHistory) { List<String> currentLanguage = new ArrayList<String>(); Map<String, Object> currentLanguageObject = new HashMap<String, Object>(); // Process eac...
java
@SuppressWarnings("unchecked") private static void updateLanguageTone(Map<String, Object> user, List<ToneScore> languageTone, boolean maintainHistory) { List<String> currentLanguage = new ArrayList<String>(); Map<String, Object> currentLanguageObject = new HashMap<String, Object>(); // Process eac...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "private", "static", "void", "updateLanguageTone", "(", "Map", "<", "String", ",", "Object", ">", "user", ",", "List", "<", "ToneScore", ">", "languageTone", ",", "boolean", "maintainHistory", ")", "{", "List...
updateLanguageTone updates the user with the language tones interpreted based on the specified thresholds. @param user a json object representing user information (tone) to be used in conversing with the Assistant Service @param languageTone a json object containing the language tones in the payload returned by the To...
[ "updateLanguageTone", "updates", "the", "user", "with", "the", "language", "tones", "interpreted", "based", "on", "the", "specified", "thresholds", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/examples/src/main/java/com/ibm/watson/assistant/v1/tone_analyzer_integration/ToneDetection.java#L191-L231
49,111
watson-developer-cloud/java-sdk
examples/src/main/java/com/ibm/watson/assistant/v1/tone_analyzer_integration/ToneDetection.java
ToneDetection.updateSocialTone
@SuppressWarnings("unchecked") public static void updateSocialTone(Map<String, Object> user, List<ToneScore> socialTone, boolean maintainHistory) { List<String> currentSocial = new ArrayList<String>(); Map<String, Object> currentSocialObject = new HashMap<String, Object>(); for (ToneScore tone : socialT...
java
@SuppressWarnings("unchecked") public static void updateSocialTone(Map<String, Object> user, List<ToneScore> socialTone, boolean maintainHistory) { List<String> currentSocial = new ArrayList<String>(); Map<String, Object> currentSocialObject = new HashMap<String, Object>(); for (ToneScore tone : socialT...
[ "@", "SuppressWarnings", "(", "\"unchecked\"", ")", "public", "static", "void", "updateSocialTone", "(", "Map", "<", "String", ",", "Object", ">", "user", ",", "List", "<", "ToneScore", ">", "socialTone", ",", "boolean", "maintainHistory", ")", "{", "List", ...
updateSocialTone updates the user with the social tones interpreted based on the specified thresholds. @param user a json object representing user information (tone) to be used in conversing with the Assistant Service @param socialTone a json object containing the social tones in the payload returned by the Tone Analy...
[ "updateSocialTone", "updates", "the", "user", "with", "the", "social", "tones", "interpreted", "based", "on", "the", "specified", "thresholds", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/examples/src/main/java/com/ibm/watson/assistant/v1/tone_analyzer_integration/ToneDetection.java#L241-L278
49,112
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.classify
public ServiceCall<ClassifiedImages> classify(ClassifyOptions classifyOptions) { Validator.notNull(classifyOptions, "classifyOptions cannot be null"); Validator.isTrue((classifyOptions.imagesFile() != null) || (classifyOptions.url() != null) || (classifyOptions .threshold() != null) || (classifyOptions....
java
public ServiceCall<ClassifiedImages> classify(ClassifyOptions classifyOptions) { Validator.notNull(classifyOptions, "classifyOptions cannot be null"); Validator.isTrue((classifyOptions.imagesFile() != null) || (classifyOptions.url() != null) || (classifyOptions .threshold() != null) || (classifyOptions....
[ "public", "ServiceCall", "<", "ClassifiedImages", ">", "classify", "(", "ClassifyOptions", "classifyOptions", ")", "{", "Validator", ".", "notNull", "(", "classifyOptions", ",", "\"classifyOptions cannot be null\"", ")", ";", "Validator", ".", "isTrue", "(", "(", "c...
Classify images. Classify images with built-in or custom classifiers. @param classifyOptions the {@link ClassifyOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ClassifiedImages}
[ "Classify", "images", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L98-L135
49,113
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.detectFaces
public ServiceCall<DetectedFaces> detectFaces(DetectFacesOptions detectFacesOptions) { Validator.notNull(detectFacesOptions, "detectFacesOptions cannot be null"); Validator.isTrue((detectFacesOptions.imagesFile() != null) || (detectFacesOptions.url() != null), "At least one of imagesFile or url must be ...
java
public ServiceCall<DetectedFaces> detectFaces(DetectFacesOptions detectFacesOptions) { Validator.notNull(detectFacesOptions, "detectFacesOptions cannot be null"); Validator.isTrue((detectFacesOptions.imagesFile() != null) || (detectFacesOptions.url() != null), "At least one of imagesFile or url must be ...
[ "public", "ServiceCall", "<", "DetectedFaces", ">", "detectFaces", "(", "DetectFacesOptions", "detectFacesOptions", ")", "{", "Validator", ".", "notNull", "(", "detectFacesOptions", ",", "\"detectFacesOptions cannot be null\"", ")", ";", "Validator", ".", "isTrue", "(",...
Detect faces in images. **Important:** On April 2, 2018, the identity information in the response to calls to the Face model was removed. The identity information refers to the `name` of the person, `score`, and `type_hierarchy` knowledge graph. For details about the enhanced Face model, see the [Release notes](https:...
[ "Detect", "faces", "in", "images", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L167-L194
49,114
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.deleteClassifier
public ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions) { Validator.notNull(deleteClassifierOptions, "deleteClassifierOptions cannot be null"); String[] pathSegments = { "v3/classifiers" }; String[] pathParameters = { deleteClassifierOptions.classifierId() }; RequestBu...
java
public ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions) { Validator.notNull(deleteClassifierOptions, "deleteClassifierOptions cannot be null"); String[] pathSegments = { "v3/classifiers" }; String[] pathParameters = { deleteClassifierOptions.classifierId() }; RequestBu...
[ "public", "ServiceCall", "<", "Void", ">", "deleteClassifier", "(", "DeleteClassifierOptions", "deleteClassifierOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteClassifierOptions", ",", "\"deleteClassifierOptions cannot be null\"", ")", ";", "String", "[", "]"...
Delete a classifier. @param deleteClassifierOptions the {@link DeleteClassifierOptions} containing the options for the call @return a {@link ServiceCall} with a response type of Void
[ "Delete", "a", "classifier", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L265-L278
49,115
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.getClassifier
public ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions) { Validator.notNull(getClassifierOptions, "getClassifierOptions cannot be null"); String[] pathSegments = { "v3/classifiers" }; String[] pathParameters = { getClassifierOptions.classifierId() }; RequestBuilder builde...
java
public ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions) { Validator.notNull(getClassifierOptions, "getClassifierOptions cannot be null"); String[] pathSegments = { "v3/classifiers" }; String[] pathParameters = { getClassifierOptions.classifierId() }; RequestBuilder builde...
[ "public", "ServiceCall", "<", "Classifier", ">", "getClassifier", "(", "GetClassifierOptions", "getClassifierOptions", ")", "{", "Validator", ".", "notNull", "(", "getClassifierOptions", ",", "\"getClassifierOptions cannot be null\"", ")", ";", "String", "[", "]", "path...
Retrieve classifier details. Retrieve information about a custom classifier. @param getClassifierOptions the {@link GetClassifierOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Classifier}
[ "Retrieve", "classifier", "details", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L288-L301
49,116
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.listClassifiers
public ServiceCall<Classifiers> listClassifiers(ListClassifiersOptions listClassifiersOptions) { String[] pathSegments = { "v3/classifiers" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String, Str...
java
public ServiceCall<Classifiers> listClassifiers(ListClassifiersOptions listClassifiersOptions) { String[] pathSegments = { "v3/classifiers" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String, Str...
[ "public", "ServiceCall", "<", "Classifiers", ">", "listClassifiers", "(", "ListClassifiersOptions", "listClassifiersOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v3/classifiers\"", "}", ";", "RequestBuilder", "builder", "=", "RequestBuilder", "....
Retrieve a list of classifiers. @param listClassifiersOptions the {@link ListClassifiersOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Classifiers}
[ "Retrieve", "a", "list", "of", "classifiers", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L309-L324
49,117
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.updateClassifier
public ServiceCall<Classifier> updateClassifier(UpdateClassifierOptions updateClassifierOptions) { Validator.notNull(updateClassifierOptions, "updateClassifierOptions cannot be null"); Validator.isTrue((updateClassifierOptions.positiveExamples() != null) || (updateClassifierOptions .negativeExamples() !...
java
public ServiceCall<Classifier> updateClassifier(UpdateClassifierOptions updateClassifierOptions) { Validator.notNull(updateClassifierOptions, "updateClassifierOptions cannot be null"); Validator.isTrue((updateClassifierOptions.positiveExamples() != null) || (updateClassifierOptions .negativeExamples() !...
[ "public", "ServiceCall", "<", "Classifier", ">", "updateClassifier", "(", "UpdateClassifierOptions", "updateClassifierOptions", ")", "{", "Validator", ".", "notNull", "(", "updateClassifierOptions", ",", "\"updateClassifierOptions cannot be null\"", ")", ";", "Validator", "...
Update a classifier. Update a custom classifier by adding new positive or negative classes or by adding new images to existing classes. You must supply at least one set of positive or negative examples. For details, see [Updating custom classifiers](https://cloud.ibm.com/docs/services/visual-recognition/customizing.ht...
[ "Update", "a", "classifier", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L352-L383
49,118
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.getCoreMlModel
public ServiceCall<InputStream> getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions) { Validator.notNull(getCoreMlModelOptions, "getCoreMlModelOptions cannot be null"); String[] pathSegments = { "v3/classifiers", "core_ml_model" }; String[] pathParameters = { getCoreMlModelOptions.classifierId() }; ...
java
public ServiceCall<InputStream> getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions) { Validator.notNull(getCoreMlModelOptions, "getCoreMlModelOptions cannot be null"); String[] pathSegments = { "v3/classifiers", "core_ml_model" }; String[] pathParameters = { getCoreMlModelOptions.classifierId() }; ...
[ "public", "ServiceCall", "<", "InputStream", ">", "getCoreMlModel", "(", "GetCoreMlModelOptions", "getCoreMlModelOptions", ")", "{", "Validator", ".", "notNull", "(", "getCoreMlModelOptions", ",", "\"getCoreMlModelOptions cannot be null\"", ")", ";", "String", "[", "]", ...
Retrieve a Core ML model of a classifier. Download a Core ML model file (.mlmodel) of a custom classifier that returns <tt>\"core_ml_enabled\": true</tt> in the classifier details. @param getCoreMlModelOptions the {@link GetCoreMlModelOptions} containing the options for the call @return a {@link ServiceCall} with a r...
[ "Retrieve", "a", "Core", "ML", "model", "of", "a", "classifier", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L394-L407
49,119
watson-developer-cloud/java-sdk
visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java
VisualRecognition.deleteUserData
public ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions) { Validator.notNull(deleteUserDataOptions, "deleteUserDataOptions cannot be null"); String[] pathSegments = { "v3/user_data" }; RequestBuilder builder = RequestBuilder.delete(RequestBuilder.constructHttpUrl(getEndPoint(), p...
java
public ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions) { Validator.notNull(deleteUserDataOptions, "deleteUserDataOptions cannot be null"); String[] pathSegments = { "v3/user_data" }; RequestBuilder builder = RequestBuilder.delete(RequestBuilder.constructHttpUrl(getEndPoint(), p...
[ "public", "ServiceCall", "<", "Void", ">", "deleteUserData", "(", "DeleteUserDataOptions", "deleteUserDataOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteUserDataOptions", ",", "\"deleteUserDataOptions cannot be null\"", ")", ";", "String", "[", "]", "pathS...
Delete labeled data. Deletes all data associated with a specified customer ID. The method has no effect if no data is associated with the customer ID. You associate a customer ID with data by passing the `X-Watson-Metadata` header with a request that passes data. For more information about personal data and customer ...
[ "Delete", "labeled", "data", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/visual-recognition/src/main/java/com/ibm/watson/visual_recognition/v3/VisualRecognition.java#L422-L434
49,120
watson-developer-cloud/java-sdk
examples/src/main/java/com/ibm/watson/text_to_speech/v1/TranslateAndSynthesizeExample.java
TranslateAndSynthesizeExample.writeToFile
private static void writeToFile(InputStream in, File file) { try { OutputStream out = new FileOutputStream(file); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } out.close(); in.close(); } catch (Exception e) { ...
java
private static void writeToFile(InputStream in, File file) { try { OutputStream out = new FileOutputStream(file); byte[] buf = new byte[1024]; int len; while ((len = in.read(buf)) > 0) { out.write(buf, 0, len); } out.close(); in.close(); } catch (Exception e) { ...
[ "private", "static", "void", "writeToFile", "(", "InputStream", "in", ",", "File", "file", ")", "{", "try", "{", "OutputStream", "out", "=", "new", "FileOutputStream", "(", "file", ")", ";", "byte", "[", "]", "buf", "=", "new", "byte", "[", "1024", "]"...
Write the input stream to a file.
[ "Write", "the", "input", "stream", "to", "a", "file", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/examples/src/main/java/com/ibm/watson/text_to_speech/v1/TranslateAndSynthesizeExample.java#L71-L84
49,121
watson-developer-cloud/java-sdk
natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/NaturalLanguageUnderstanding.java
NaturalLanguageUnderstanding.analyze
public ServiceCall<AnalysisResults> analyze(AnalyzeOptions analyzeOptions) { Validator.notNull(analyzeOptions, "analyzeOptions cannot be null"); String[] pathSegments = { "v1/analyze" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.q...
java
public ServiceCall<AnalysisResults> analyze(AnalyzeOptions analyzeOptions) { Validator.notNull(analyzeOptions, "analyzeOptions cannot be null"); String[] pathSegments = { "v1/analyze" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.q...
[ "public", "ServiceCall", "<", "AnalysisResults", ">", "analyze", "(", "AnalyzeOptions", "analyzeOptions", ")", "{", "Validator", ".", "notNull", "(", "analyzeOptions", ",", "\"analyzeOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", ...
Analyze text. Analyzes text, HTML, or a public webpage for the following features: - Categories - Concepts - Emotion - Entities - Keywords - Metadata - Relations - Semantic roles - Sentiment - Syntax (Experimental). @param analyzeOptions the {@link AnalyzeOptions} containing the options for the call @return a {@link ...
[ "Analyze", "text", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/natural-language-understanding/src/main/java/com/ibm/watson/natural_language_understanding/v1/NaturalLanguageUnderstanding.java#L115-L156
49,122
watson-developer-cloud/java-sdk
text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/websocket/TextToSpeechWebSocketListener.java
TextToSpeechWebSocketListener.buildStopMessage
private String buildStopMessage() { JsonObject stopMessage = new JsonObject(); stopMessage.addProperty(ACTION, STOP); return stopMessage.toString(); }
java
private String buildStopMessage() { JsonObject stopMessage = new JsonObject(); stopMessage.addProperty(ACTION, STOP); return stopMessage.toString(); }
[ "private", "String", "buildStopMessage", "(", ")", "{", "JsonObject", "stopMessage", "=", "new", "JsonObject", "(", ")", ";", "stopMessage", ".", "addProperty", "(", "ACTION", ",", "STOP", ")", ";", "return", "stopMessage", ".", "toString", "(", ")", ";", ...
Builds the stop message. @return the string
[ "Builds", "the", "stop", "message", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/text-to-speech/src/main/java/com/ibm/watson/text_to_speech/v1/websocket/TextToSpeechWebSocketListener.java#L170-L174
49,123
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/query/AggregationDeserializer.java
AggregationDeserializer.parseArray
private void parseArray(JsonReader in, HashMap<String, Object> objMap, String name) throws IOException { List<HashMap<String, Object>> array = new ArrayList<>(); in.beginArray(); while (in.peek() != JsonToken.END_ARRAY) { HashMap<String, Object> arrayItem = new HashMap<>(); parseNext(in, arrayI...
java
private void parseArray(JsonReader in, HashMap<String, Object> objMap, String name) throws IOException { List<HashMap<String, Object>> array = new ArrayList<>(); in.beginArray(); while (in.peek() != JsonToken.END_ARRAY) { HashMap<String, Object> arrayItem = new HashMap<>(); parseNext(in, arrayI...
[ "private", "void", "parseArray", "(", "JsonReader", "in", ",", "HashMap", "<", "String", ",", "Object", ">", "objMap", ",", "String", "name", ")", "throws", "IOException", "{", "List", "<", "HashMap", "<", "String", ",", "Object", ">", ">", "array", "=",...
Parses a JSON array and adds it to the main object map. @param in {@link JsonReader} object used for parsing @param objMap Map used to build the structure for the resulting {@link QueryAggregation} object @param name key value to go with the resulting value of this method pass @throws IOException signals that there ha...
[ "Parses", "a", "JSON", "array", "and", "adds", "it", "to", "the", "main", "object", "map", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/query/AggregationDeserializer.java#L157-L169
49,124
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/query/AggregationDeserializer.java
AggregationDeserializer.parseObject
private void parseObject(JsonReader in, HashMap<String, Object> objMap, String name) throws IOException { HashMap<String, Object> innerObject = new HashMap<>(); in.beginObject(); while (in.peek() != JsonToken.END_OBJECT) { parseNext(in, innerObject); } in.endObject(); objMap.put(name, in...
java
private void parseObject(JsonReader in, HashMap<String, Object> objMap, String name) throws IOException { HashMap<String, Object> innerObject = new HashMap<>(); in.beginObject(); while (in.peek() != JsonToken.END_OBJECT) { parseNext(in, innerObject); } in.endObject(); objMap.put(name, in...
[ "private", "void", "parseObject", "(", "JsonReader", "in", ",", "HashMap", "<", "String", ",", "Object", ">", "objMap", ",", "String", "name", ")", "throws", "IOException", "{", "HashMap", "<", "String", ",", "Object", ">", "innerObject", "=", "new", "Hash...
Parses a JSON object and adds it to the main object map. @param in {@link JsonReader} object used for parsing @param objMap Map used to build the structure for the resulting {@link QueryAggregation} object @param name key value to go with the resulting value of this method pass @throws IOException signals that there h...
[ "Parses", "a", "JSON", "object", "and", "adds", "it", "to", "the", "main", "object", "map", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/query/AggregationDeserializer.java#L179-L189
49,125
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/query/AggregationDeserializer.java
AggregationDeserializer.collapseMap
private void collapseMap(HashMap<String, Object> objMap) { while (objMap.keySet().size() == 1 && objMap.keySet().contains("")) { HashMap<String, Object> innerMap = (HashMap<String, Object>) objMap.get(""); objMap.clear(); objMap.putAll(innerMap); } }
java
private void collapseMap(HashMap<String, Object> objMap) { while (objMap.keySet().size() == 1 && objMap.keySet().contains("")) { HashMap<String, Object> innerMap = (HashMap<String, Object>) objMap.get(""); objMap.clear(); objMap.putAll(innerMap); } }
[ "private", "void", "collapseMap", "(", "HashMap", "<", "String", ",", "Object", ">", "objMap", ")", "{", "while", "(", "objMap", ".", "keySet", "(", ")", ".", "size", "(", ")", "==", "1", "&&", "objMap", ".", "keySet", "(", ")", ".", "contains", "(...
Condenses the main object map to eliminate unnecessary nesting and allow for proper type conversion when the map is complete. @param objMap Map used to build the structure for the resulting {@link QueryAggregation} object
[ "Condenses", "the", "main", "object", "map", "to", "eliminate", "unnecessary", "nesting", "and", "allow", "for", "proper", "type", "conversion", "when", "the", "map", "is", "complete", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/query/AggregationDeserializer.java#L197-L203
49,126
watson-developer-cloud/java-sdk
personality-insights/src/main/java/com/ibm/watson/personality_insights/v3/PersonalityInsights.java
PersonalityInsights.profile
public ServiceCall<Profile> profile(ProfileOptions profileOptions) { Validator.notNull(profileOptions, "profileOptions cannot be null"); String[] pathSegments = { "v3/profile" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("ve...
java
public ServiceCall<Profile> profile(ProfileOptions profileOptions) { Validator.notNull(profileOptions, "profileOptions cannot be null"); String[] pathSegments = { "v3/profile" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("ve...
[ "public", "ServiceCall", "<", "Profile", ">", "profile", "(", "ProfileOptions", "profileOptions", ")", "{", "Validator", ".", "notNull", "(", "profileOptions", ",", "\"profileOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", "\"v3/...
Get profile. Generates a personality profile for the author of the input text. The service accepts a maximum of 20 MB of input content, but it requires much less text to produce an accurate profile. The service can analyze text in Arabic, English, Japanese, Korean, or Spanish. It can return its results in a variety of...
[ "Get", "profile", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/personality-insights/src/main/java/com/ibm/watson/personality_insights/v3/PersonalityInsights.java#L140-L170
49,127
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/websocket/SpeechToTextWebSocketListener.java
SpeechToTextWebSocketListener.sendInputStream
private void sendInputStream(InputStream inputStream) { byte[] buffer = new byte[ONE_KB]; int read; try { // This method uses a blocking while loop to receive all contents of the underlying input stream. // AudioInputStreams, typically used for streaming microphone inputs return 0 only when the ...
java
private void sendInputStream(InputStream inputStream) { byte[] buffer = new byte[ONE_KB]; int read; try { // This method uses a blocking while loop to receive all contents of the underlying input stream. // AudioInputStreams, typically used for streaming microphone inputs return 0 only when the ...
[ "private", "void", "sendInputStream", "(", "InputStream", "inputStream", ")", "{", "byte", "[", "]", "buffer", "=", "new", "byte", "[", "ONE_KB", "]", ";", "int", "read", ";", "try", "{", "// This method uses a blocking while loop to receive all contents of the underl...
Send input stream. @param inputStream the input stream
[ "Send", "input", "stream", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/websocket/SpeechToTextWebSocketListener.java#L187-L217
49,128
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createEnvironment
public ServiceCall<Environment> createEnvironment(CreateEnvironmentOptions createEnvironmentOptions) { Validator.notNull(createEnvironmentOptions, "createEnvironmentOptions cannot be null"); String[] pathSegments = { "v1/environments" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructH...
java
public ServiceCall<Environment> createEnvironment(CreateEnvironmentOptions createEnvironmentOptions) { Validator.notNull(createEnvironmentOptions, "createEnvironmentOptions cannot be null"); String[] pathSegments = { "v1/environments" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructH...
[ "public", "ServiceCall", "<", "Environment", ">", "createEnvironment", "(", "CreateEnvironmentOptions", "createEnvironmentOptions", ")", "{", "Validator", ".", "notNull", "(", "createEnvironmentOptions", ",", "\"createEnvironmentOptions cannot be null\"", ")", ";", "String", ...
Create an environment. Creates a new environment for private data. An environment must be created before collections can be created. **Note**: You can create only one environment for private data per service instance. An attempt to create another environment results in an error. @param createEnvironmentOptions the {...
[ "Create", "an", "environment", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L195-L215
49,129
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getEnvironment
public ServiceCall<Environment> getEnvironment(GetEnvironmentOptions getEnvironmentOptions) { Validator.notNull(getEnvironmentOptions, "getEnvironmentOptions cannot be null"); String[] pathSegments = { "v1/environments" }; String[] pathParameters = { getEnvironmentOptions.environmentId() }; RequestBuild...
java
public ServiceCall<Environment> getEnvironment(GetEnvironmentOptions getEnvironmentOptions) { Validator.notNull(getEnvironmentOptions, "getEnvironmentOptions cannot be null"); String[] pathSegments = { "v1/environments" }; String[] pathParameters = { getEnvironmentOptions.environmentId() }; RequestBuild...
[ "public", "ServiceCall", "<", "Environment", ">", "getEnvironment", "(", "GetEnvironmentOptions", "getEnvironmentOptions", ")", "{", "Validator", ".", "notNull", "(", "getEnvironmentOptions", ",", "\"getEnvironmentOptions cannot be null\"", ")", ";", "String", "[", "]", ...
Get environment info. @param getEnvironmentOptions the {@link GetEnvironmentOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Environment}
[ "Get", "environment", "info", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L244-L257
49,130
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listEnvironments
public ServiceCall<ListEnvironmentsResponse> listEnvironments(ListEnvironmentsOptions listEnvironmentsOptions) { String[] pathSegments = { "v1/environments" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); ...
java
public ServiceCall<ListEnvironmentsResponse> listEnvironments(ListEnvironmentsOptions listEnvironmentsOptions) { String[] pathSegments = { "v1/environments" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); ...
[ "public", "ServiceCall", "<", "ListEnvironmentsResponse", ">", "listEnvironments", "(", "ListEnvironmentsOptions", "listEnvironmentsOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/environments\"", "}", ";", "RequestBuilder", "builder", "=", "Requ...
List environments. List existing environments for the service instance. @param listEnvironmentsOptions the {@link ListEnvironmentsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ListEnvironmentsResponse}
[ "List", "environments", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L267-L282
49,131
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listFields
public ServiceCall<ListCollectionFieldsResponse> listFields(ListFieldsOptions listFieldsOptions) { Validator.notNull(listFieldsOptions, "listFieldsOptions cannot be null"); String[] pathSegments = { "v1/environments", "fields" }; String[] pathParameters = { listFieldsOptions.environmentId() }; RequestBu...
java
public ServiceCall<ListCollectionFieldsResponse> listFields(ListFieldsOptions listFieldsOptions) { Validator.notNull(listFieldsOptions, "listFieldsOptions cannot be null"); String[] pathSegments = { "v1/environments", "fields" }; String[] pathParameters = { listFieldsOptions.environmentId() }; RequestBu...
[ "public", "ServiceCall", "<", "ListCollectionFieldsResponse", ">", "listFields", "(", "ListFieldsOptions", "listFieldsOptions", ")", "{", "Validator", ".", "notNull", "(", "listFieldsOptions", ",", "\"listFieldsOptions cannot be null\"", ")", ";", "String", "[", "]", "p...
List fields across collections. Gets a list of the unique fields (and their types) stored in the indexes of the specified collections. @param listFieldsOptions the {@link ListFieldsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ListCollectionFieldsResponse}
[ "List", "fields", "across", "collections", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L303-L317
49,132
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getConfiguration
public ServiceCall<Configuration> getConfiguration(GetConfigurationOptions getConfigurationOptions) { Validator.notNull(getConfigurationOptions, "getConfigurationOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters = { getConfigurationOptions.env...
java
public ServiceCall<Configuration> getConfiguration(GetConfigurationOptions getConfigurationOptions) { Validator.notNull(getConfigurationOptions, "getConfigurationOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters = { getConfigurationOptions.env...
[ "public", "ServiceCall", "<", "Configuration", ">", "getConfiguration", "(", "GetConfigurationOptions", "getConfigurationOptions", ")", "{", "Validator", ".", "notNull", "(", "getConfigurationOptions", ",", "\"getConfigurationOptions cannot be null\"", ")", ";", "String", "...
Get configuration details. @param getConfigurationOptions the {@link GetConfigurationOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Configuration}
[ "Get", "configuration", "details", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L437-L450
49,133
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listConfigurations
public ServiceCall<ListConfigurationsResponse> listConfigurations( ListConfigurationsOptions listConfigurationsOptions) { Validator.notNull(listConfigurationsOptions, "listConfigurationsOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters =...
java
public ServiceCall<ListConfigurationsResponse> listConfigurations( ListConfigurationsOptions listConfigurationsOptions) { Validator.notNull(listConfigurationsOptions, "listConfigurationsOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters =...
[ "public", "ServiceCall", "<", "ListConfigurationsResponse", ">", "listConfigurations", "(", "ListConfigurationsOptions", "listConfigurationsOptions", ")", "{", "Validator", ".", "notNull", "(", "listConfigurationsOptions", ",", "\"listConfigurationsOptions cannot be null\"", ")",...
List configurations. Lists existing configurations for the service instance. @param listConfigurationsOptions the {@link ListConfigurationsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ListConfigurationsResponse}
[ "List", "configurations", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L460-L477
49,134
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.updateConfiguration
public ServiceCall<Configuration> updateConfiguration(UpdateConfigurationOptions updateConfigurationOptions) { Validator.notNull(updateConfigurationOptions, "updateConfigurationOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters = { updateConfig...
java
public ServiceCall<Configuration> updateConfiguration(UpdateConfigurationOptions updateConfigurationOptions) { Validator.notNull(updateConfigurationOptions, "updateConfigurationOptions cannot be null"); String[] pathSegments = { "v1/environments", "configurations" }; String[] pathParameters = { updateConfig...
[ "public", "ServiceCall", "<", "Configuration", ">", "updateConfiguration", "(", "UpdateConfigurationOptions", "updateConfigurationOptions", ")", "{", "Validator", ".", "notNull", "(", "updateConfigurationOptions", ",", "\"updateConfigurationOptions cannot be null\"", ")", ";", ...
Update a configuration. Replaces an existing configuration. * Completely replaces the original configuration. * The **configuration_id**, **updated**, and **created** fields are accepted in the request, but they are ignored, and an error is not generated. It is also acceptable for users to submit an updated configurat...
[ "Update", "a", "configuration", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L493-L526
49,135
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createCollection
public ServiceCall<Collection> createCollection(CreateCollectionOptions createCollectionOptions) { Validator.notNull(createCollectionOptions, "createCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { createCollectionOptions.environme...
java
public ServiceCall<Collection> createCollection(CreateCollectionOptions createCollectionOptions) { Validator.notNull(createCollectionOptions, "createCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { createCollectionOptions.environme...
[ "public", "ServiceCall", "<", "Collection", ">", "createCollection", "(", "CreateCollectionOptions", "createCollectionOptions", ")", "{", "Validator", ".", "notNull", "(", "createCollectionOptions", ",", "\"createCollectionOptions cannot be null\"", ")", ";", "String", "[",...
Create a collection. @param createCollectionOptions the {@link CreateCollectionOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Collection}
[ "Create", "a", "collection", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L583-L608
49,136
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getCollection
public ServiceCall<Collection> getCollection(GetCollectionOptions getCollectionOptions) { Validator.notNull(getCollectionOptions, "getCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { getCollectionOptions.environmentId(), getCollect...
java
public ServiceCall<Collection> getCollection(GetCollectionOptions getCollectionOptions) { Validator.notNull(getCollectionOptions, "getCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { getCollectionOptions.environmentId(), getCollect...
[ "public", "ServiceCall", "<", "Collection", ">", "getCollection", "(", "GetCollectionOptions", "getCollectionOptions", ")", "{", "Validator", ".", "notNull", "(", "getCollectionOptions", ",", "\"getCollectionOptions cannot be null\"", ")", ";", "String", "[", "]", "path...
Get collection details. @param getCollectionOptions the {@link GetCollectionOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Collection}
[ "Get", "collection", "details", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L637-L650
49,137
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listCollectionFields
public ServiceCall<ListCollectionFieldsResponse> listCollectionFields( ListCollectionFieldsOptions listCollectionFieldsOptions) { Validator.notNull(listCollectionFieldsOptions, "listCollectionFieldsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "fields" }; String...
java
public ServiceCall<ListCollectionFieldsResponse> listCollectionFields( ListCollectionFieldsOptions listCollectionFieldsOptions) { Validator.notNull(listCollectionFieldsOptions, "listCollectionFieldsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "fields" }; String...
[ "public", "ServiceCall", "<", "ListCollectionFieldsResponse", ">", "listCollectionFields", "(", "ListCollectionFieldsOptions", "listCollectionFieldsOptions", ")", "{", "Validator", ".", "notNull", "(", "listCollectionFieldsOptions", ",", "\"listCollectionFieldsOptions cannot be nul...
List collection fields. Gets a list of the unique fields (and their types) stored in the index. @param listCollectionFieldsOptions the {@link ListCollectionFieldsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ListCollectionFieldsResponse}
[ "List", "collection", "fields", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L660-L675
49,138
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listCollections
public ServiceCall<ListCollectionsResponse> listCollections(ListCollectionsOptions listCollectionsOptions) { Validator.notNull(listCollectionsOptions, "listCollectionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { listCollectionsOptions.en...
java
public ServiceCall<ListCollectionsResponse> listCollections(ListCollectionsOptions listCollectionsOptions) { Validator.notNull(listCollectionsOptions, "listCollectionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { listCollectionsOptions.en...
[ "public", "ServiceCall", "<", "ListCollectionsResponse", ">", "listCollections", "(", "ListCollectionsOptions", "listCollectionsOptions", ")", "{", "Validator", ".", "notNull", "(", "listCollectionsOptions", ",", "\"listCollectionsOptions cannot be null\"", ")", ";", "String"...
List collections. Lists existing collections for the service instance. @param listCollectionsOptions the {@link ListCollectionsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ListCollectionsResponse}
[ "List", "collections", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L685-L701
49,139
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.updateCollection
public ServiceCall<Collection> updateCollection(UpdateCollectionOptions updateCollectionOptions) { Validator.notNull(updateCollectionOptions, "updateCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { updateCollectionOptions.environme...
java
public ServiceCall<Collection> updateCollection(UpdateCollectionOptions updateCollectionOptions) { Validator.notNull(updateCollectionOptions, "updateCollectionOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections" }; String[] pathParameters = { updateCollectionOptions.environme...
[ "public", "ServiceCall", "<", "Collection", ">", "updateCollection", "(", "UpdateCollectionOptions", "updateCollectionOptions", ")", "{", "Validator", ".", "notNull", "(", "updateCollectionOptions", ",", "\"updateCollectionOptions cannot be null\"", ")", ";", "String", "[",...
Update a collection. @param updateCollectionOptions the {@link UpdateCollectionOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Collection}
[ "Update", "a", "collection", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L709-L733
49,140
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createExpansions
public ServiceCall<Expansions> createExpansions(CreateExpansionsOptions createExpansionsOptions) { Validator.notNull(createExpansionsOptions, "createExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { createExpansionsOpt...
java
public ServiceCall<Expansions> createExpansions(CreateExpansionsOptions createExpansionsOptions) { Validator.notNull(createExpansionsOptions, "createExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { createExpansionsOpt...
[ "public", "ServiceCall", "<", "Expansions", ">", "createExpansions", "(", "CreateExpansionsOptions", "createExpansionsOptions", ")", "{", "Validator", ".", "notNull", "(", "createExpansionsOptions", ",", "\"createExpansionsOptions cannot be null\"", ")", ";", "String", "[",...
Create or update expansion list. Create or replace the Expansion list for this collection. The maximum number of expanded terms per collection is `500`. The current expansion list is replaced with the uploaded content. @param createExpansionsOptions the {@link CreateExpansionsOptions} containing the options for the c...
[ "Create", "or", "update", "expansion", "list", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L745-L761
49,141
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createStopwordList
public ServiceCall<TokenDictStatusResponse> createStopwordList(CreateStopwordListOptions createStopwordListOptions) { Validator.notNull(createStopwordListOptions, "createStopwordListOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "word_lists/stopwords" }; String[] pathP...
java
public ServiceCall<TokenDictStatusResponse> createStopwordList(CreateStopwordListOptions createStopwordListOptions) { Validator.notNull(createStopwordListOptions, "createStopwordListOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "word_lists/stopwords" }; String[] pathP...
[ "public", "ServiceCall", "<", "TokenDictStatusResponse", ">", "createStopwordList", "(", "CreateStopwordListOptions", "createStopwordListOptions", ")", "{", "Validator", ".", "notNull", "(", "createStopwordListOptions", ",", "\"createStopwordListOptions cannot be null\"", ")", ...
Create stopword list. Upload a custom stopword list to use with the specified collection. @param createStopwordListOptions the {@link CreateStopwordListOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TokenDictStatusResponse}
[ "Create", "stopword", "list", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L771-L790
49,142
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createTokenizationDictionary
public ServiceCall<TokenDictStatusResponse> createTokenizationDictionary( CreateTokenizationDictionaryOptions createTokenizationDictionaryOptions) { Validator.notNull(createTokenizationDictionaryOptions, "createTokenizationDictionaryOptions cannot be null"); String[] pathSegments = { "v1/environments", "c...
java
public ServiceCall<TokenDictStatusResponse> createTokenizationDictionary( CreateTokenizationDictionaryOptions createTokenizationDictionaryOptions) { Validator.notNull(createTokenizationDictionaryOptions, "createTokenizationDictionaryOptions cannot be null"); String[] pathSegments = { "v1/environments", "c...
[ "public", "ServiceCall", "<", "TokenDictStatusResponse", ">", "createTokenizationDictionary", "(", "CreateTokenizationDictionaryOptions", "createTokenizationDictionaryOptions", ")", "{", "Validator", ".", "notNull", "(", "createTokenizationDictionaryOptions", ",", "\"createTokeniza...
Create tokenization dictionary. Upload a custom tokenization dictionary to use with the specified collection. @param createTokenizationDictionaryOptions the {@link CreateTokenizationDictionaryOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TokenDictStatusRespo...
[ "Create", "tokenization", "dictionary", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L801-L822
49,143
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.deleteExpansions
public ServiceCall<Void> deleteExpansions(DeleteExpansionsOptions deleteExpansionsOptions) { Validator.notNull(deleteExpansionsOptions, "deleteExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { deleteExpansionsOptions.e...
java
public ServiceCall<Void> deleteExpansions(DeleteExpansionsOptions deleteExpansionsOptions) { Validator.notNull(deleteExpansionsOptions, "deleteExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { deleteExpansionsOptions.e...
[ "public", "ServiceCall", "<", "Void", ">", "deleteExpansions", "(", "DeleteExpansionsOptions", "deleteExpansionsOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteExpansionsOptions", ",", "\"deleteExpansionsOptions cannot be null\"", ")", ";", "String", "[", "]"...
Delete the expansion list. Remove the expansion information for this collection. The expansion list must be deleted to disable query expansion for a collection. @param deleteExpansionsOptions the {@link DeleteExpansionsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of ...
[ "Delete", "the", "expansion", "list", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L833-L845
49,144
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getTokenizationDictionaryStatus
public ServiceCall<TokenDictStatusResponse> getTokenizationDictionaryStatus( GetTokenizationDictionaryStatusOptions getTokenizationDictionaryStatusOptions) { Validator.notNull(getTokenizationDictionaryStatusOptions, "getTokenizationDictionaryStatusOptions cannot be null"); String[] pathSegments = { "v1/en...
java
public ServiceCall<TokenDictStatusResponse> getTokenizationDictionaryStatus( GetTokenizationDictionaryStatusOptions getTokenizationDictionaryStatusOptions) { Validator.notNull(getTokenizationDictionaryStatusOptions, "getTokenizationDictionaryStatusOptions cannot be null"); String[] pathSegments = { "v1/en...
[ "public", "ServiceCall", "<", "TokenDictStatusResponse", ">", "getTokenizationDictionaryStatus", "(", "GetTokenizationDictionaryStatusOptions", "getTokenizationDictionaryStatusOptions", ")", "{", "Validator", ".", "notNull", "(", "getTokenizationDictionaryStatusOptions", ",", "\"ge...
Get tokenization dictionary status. Returns the current status of the tokenization dictionary for the specified collection. @param getTokenizationDictionaryStatusOptions the {@link GetTokenizationDictionaryStatusOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link ...
[ "Get", "tokenization", "dictionary", "status", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L929-L944
49,145
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listExpansions
public ServiceCall<Expansions> listExpansions(ListExpansionsOptions listExpansionsOptions) { Validator.notNull(listExpansionsOptions, "listExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { listExpansionsOptions.environ...
java
public ServiceCall<Expansions> listExpansions(ListExpansionsOptions listExpansionsOptions) { Validator.notNull(listExpansionsOptions, "listExpansionsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "expansions" }; String[] pathParameters = { listExpansionsOptions.environ...
[ "public", "ServiceCall", "<", "Expansions", ">", "listExpansions", "(", "ListExpansionsOptions", "listExpansionsOptions", ")", "{", "Validator", ".", "notNull", "(", "listExpansionsOptions", ",", "\"listExpansionsOptions cannot be null\"", ")", ";", "String", "[", "]", ...
Get the expansion list. Returns the current expansion list for the specified collection. If an expansion list is not specified, an object with empty expansion arrays is returned. @param listExpansionsOptions the {@link ListExpansionsOptions} containing the options for the call @return a {@link ServiceCall} with a res...
[ "Get", "the", "expansion", "list", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L955-L968
49,146
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getDocumentStatus
public ServiceCall<DocumentStatus> getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions) { Validator.notNull(getDocumentStatusOptions, "getDocumentStatusOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "documents" }; String[] pathParameters = { getDocument...
java
public ServiceCall<DocumentStatus> getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions) { Validator.notNull(getDocumentStatusOptions, "getDocumentStatusOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "documents" }; String[] pathParameters = { getDocument...
[ "public", "ServiceCall", "<", "DocumentStatus", ">", "getDocumentStatus", "(", "GetDocumentStatusOptions", "getDocumentStatusOptions", ")", "{", "Validator", ".", "notNull", "(", "getDocumentStatusOptions", ",", "\"getDocumentStatusOptions cannot be null\"", ")", ";", "String...
Get document details. Fetch status details about a submitted document. **Note:** this operation does not return the document itself. Instead, it returns only the document's processing status and any notices (warnings or errors) that were generated when the document was ingested. Use the query API to retrieve the actua...
[ "Get", "document", "details", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1062-L1076
49,147
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.queryEntities
public ServiceCall<QueryEntitiesResponse> queryEntities(QueryEntitiesOptions queryEntitiesOptions) { Validator.notNull(queryEntitiesOptions, "queryEntitiesOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "query_entities" }; String[] pathParameters = { queryEntitiesOption...
java
public ServiceCall<QueryEntitiesResponse> queryEntities(QueryEntitiesOptions queryEntitiesOptions) { Validator.notNull(queryEntitiesOptions, "queryEntitiesOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "query_entities" }; String[] pathParameters = { queryEntitiesOption...
[ "public", "ServiceCall", "<", "QueryEntitiesResponse", ">", "queryEntities", "(", "QueryEntitiesOptions", "queryEntitiesOptions", ")", "{", "Validator", ".", "notNull", "(", "queryEntitiesOptions", ",", "\"queryEntitiesOptions cannot be null\"", ")", ";", "String", "[", "...
Knowledge Graph entity query. See the [Knowledge Graph documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-kg#kg) for more details. @param queryEntitiesOptions the {@link QueryEntitiesOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Que...
[ "Knowledge", "Graph", "entity", "query", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1377-L1407
49,148
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.queryRelations
public ServiceCall<QueryRelationsResponse> queryRelations(QueryRelationsOptions queryRelationsOptions) { Validator.notNull(queryRelationsOptions, "queryRelationsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "query_relations" }; String[] pathParameters = { queryRelatio...
java
public ServiceCall<QueryRelationsResponse> queryRelations(QueryRelationsOptions queryRelationsOptions) { Validator.notNull(queryRelationsOptions, "queryRelationsOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "query_relations" }; String[] pathParameters = { queryRelatio...
[ "public", "ServiceCall", "<", "QueryRelationsResponse", ">", "queryRelations", "(", "QueryRelationsOptions", "queryRelationsOptions", ")", "{", "Validator", ".", "notNull", "(", "queryRelationsOptions", ",", "\"queryRelationsOptions cannot be null\"", ")", ";", "String", "[...
Knowledge Graph relationship query. See the [Knowledge Graph documentation](https://cloud.ibm.com/docs/services/discovery?topic=discovery-kg#kg) for more details. @param queryRelationsOptions the {@link QueryRelationsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@...
[ "Knowledge", "Graph", "relationship", "query", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1495-L1528
49,149
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.addTrainingData
public ServiceCall<TrainingQuery> addTrainingData(AddTrainingDataOptions addTrainingDataOptions) { Validator.notNull(addTrainingDataOptions, "addTrainingDataOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data" }; String[] pathParameters = { addTrainingDataOpt...
java
public ServiceCall<TrainingQuery> addTrainingData(AddTrainingDataOptions addTrainingDataOptions) { Validator.notNull(addTrainingDataOptions, "addTrainingDataOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data" }; String[] pathParameters = { addTrainingDataOpt...
[ "public", "ServiceCall", "<", "TrainingQuery", ">", "addTrainingData", "(", "AddTrainingDataOptions", "addTrainingDataOptions", ")", "{", "Validator", ".", "notNull", "(", "addTrainingDataOptions", ",", "\"addTrainingDataOptions cannot be null\"", ")", ";", "String", "[", ...
Add query to training data. Adds a query to the training data for this collection. The query can contain a filter and natural language query. @param addTrainingDataOptions the {@link AddTrainingDataOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TrainingQuery}
[ "Add", "query", "to", "training", "data", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1538-L1562
49,150
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createTrainingExample
public ServiceCall<TrainingExample> createTrainingExample(CreateTrainingExampleOptions createTrainingExampleOptions) { Validator.notNull(createTrainingExampleOptions, "createTrainingExampleOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; St...
java
public ServiceCall<TrainingExample> createTrainingExample(CreateTrainingExampleOptions createTrainingExampleOptions) { Validator.notNull(createTrainingExampleOptions, "createTrainingExampleOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; St...
[ "public", "ServiceCall", "<", "TrainingExample", ">", "createTrainingExample", "(", "CreateTrainingExampleOptions", "createTrainingExampleOptions", ")", "{", "Validator", ".", "notNull", "(", "createTrainingExampleOptions", ",", "\"createTrainingExampleOptions cannot be null\"", ...
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}
[ "Add", "example", "to", "training", "data", "query", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1572-L1597
49,151
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getTrainingData
public ServiceCall<TrainingQuery> getTrainingData(GetTrainingDataOptions getTrainingDataOptions) { Validator.notNull(getTrainingDataOptions, "getTrainingDataOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data" }; String[] pathParameters = { getTrainingDataOpt...
java
public ServiceCall<TrainingQuery> getTrainingData(GetTrainingDataOptions getTrainingDataOptions) { Validator.notNull(getTrainingDataOptions, "getTrainingDataOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data" }; String[] pathParameters = { getTrainingDataOpt...
[ "public", "ServiceCall", "<", "TrainingQuery", ">", "getTrainingData", "(", "GetTrainingDataOptions", "getTrainingDataOptions", ")", "{", "Validator", ".", "notNull", "(", "getTrainingDataOptions", ",", "\"getTrainingDataOptions cannot be null\"", ")", ";", "String", "[", ...
Get details about a query. Gets details for a specific training data query, including the query string and all examples. @param getTrainingDataOptions the {@link GetTrainingDataOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TrainingQuery}
[ "Get", "details", "about", "a", "query", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1676-L1690
49,152
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getTrainingExample
public ServiceCall<TrainingExample> getTrainingExample(GetTrainingExampleOptions getTrainingExampleOptions) { Validator.notNull(getTrainingExampleOptions, "getTrainingExampleOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; String[] pathPara...
java
public ServiceCall<TrainingExample> getTrainingExample(GetTrainingExampleOptions getTrainingExampleOptions) { Validator.notNull(getTrainingExampleOptions, "getTrainingExampleOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; String[] pathPara...
[ "public", "ServiceCall", "<", "TrainingExample", ">", "getTrainingExample", "(", "GetTrainingExampleOptions", "getTrainingExampleOptions", ")", "{", "Validator", ".", "notNull", "(", "getTrainingExampleOptions", ",", "\"getTrainingExampleOptions cannot be null\"", ")", ";", "...
Get details for training data example. Gets the details for this training example. @param getTrainingExampleOptions the {@link GetTrainingExampleOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TrainingExample}
[ "Get", "details", "for", "training", "data", "example", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1700-L1714
49,153
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listTrainingData
public ServiceCall<TrainingDataSet> listTrainingData(ListTrainingDataOptions listTrainingDataOptions) { Validator.notNull(listTrainingDataOptions, "listTrainingDataOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data" }; String[] pathParameters = { listTrainin...
java
public ServiceCall<TrainingDataSet> listTrainingData(ListTrainingDataOptions listTrainingDataOptions) { Validator.notNull(listTrainingDataOptions, "listTrainingDataOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data" }; String[] pathParameters = { listTrainin...
[ "public", "ServiceCall", "<", "TrainingDataSet", ">", "listTrainingData", "(", "ListTrainingDataOptions", "listTrainingDataOptions", ")", "{", "Validator", ".", "notNull", "(", "listTrainingDataOptions", ",", "\"listTrainingDataOptions cannot be null\"", ")", ";", "String", ...
List training data. Lists the training data for the specified collection. @param listTrainingDataOptions the {@link ListTrainingDataOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TrainingDataSet}
[ "List", "training", "data", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1724-L1737
49,154
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listTrainingExamples
public ServiceCall<TrainingExampleList> listTrainingExamples( ListTrainingExamplesOptions listTrainingExamplesOptions) { Validator.notNull(listTrainingExamplesOptions, "listTrainingExamplesOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; ...
java
public ServiceCall<TrainingExampleList> listTrainingExamples( ListTrainingExamplesOptions listTrainingExamplesOptions) { Validator.notNull(listTrainingExamplesOptions, "listTrainingExamplesOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; ...
[ "public", "ServiceCall", "<", "TrainingExampleList", ">", "listTrainingExamples", "(", "ListTrainingExamplesOptions", "listTrainingExamplesOptions", ")", "{", "Validator", ".", "notNull", "(", "listTrainingExamplesOptions", ",", "\"listTrainingExamplesOptions cannot be null\"", "...
List examples for a training data query. List all examples for this training data query. @param listTrainingExamplesOptions the {@link ListTrainingExamplesOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TrainingExampleList}
[ "List", "examples", "for", "a", "training", "data", "query", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1747-L1762
49,155
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.updateTrainingExample
public ServiceCall<TrainingExample> updateTrainingExample(UpdateTrainingExampleOptions updateTrainingExampleOptions) { Validator.notNull(updateTrainingExampleOptions, "updateTrainingExampleOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; St...
java
public ServiceCall<TrainingExample> updateTrainingExample(UpdateTrainingExampleOptions updateTrainingExampleOptions) { Validator.notNull(updateTrainingExampleOptions, "updateTrainingExampleOptions cannot be null"); String[] pathSegments = { "v1/environments", "collections", "training_data", "examples" }; St...
[ "public", "ServiceCall", "<", "TrainingExample", ">", "updateTrainingExample", "(", "UpdateTrainingExampleOptions", "updateTrainingExampleOptions", ")", "{", "Validator", ".", "notNull", "(", "updateTrainingExampleOptions", ",", "\"updateTrainingExampleOptions cannot be null\"", ...
Change label or cross reference for example. Changes the label or cross reference query for this training data example. @param updateTrainingExampleOptions the {@link UpdateTrainingExampleOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link TrainingExample}
[ "Change", "label", "or", "cross", "reference", "for", "example", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1772-L1794
49,156
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createEvent
public ServiceCall<CreateEventResponse> createEvent(CreateEventOptions createEventOptions) { Validator.notNull(createEventOptions, "createEventOptions cannot be null"); String[] pathSegments = { "v1/events" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSe...
java
public ServiceCall<CreateEventResponse> createEvent(CreateEventOptions createEventOptions) { Validator.notNull(createEventOptions, "createEventOptions cannot be null"); String[] pathSegments = { "v1/events" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSe...
[ "public", "ServiceCall", "<", "CreateEventResponse", ">", "createEvent", "(", "CreateEventOptions", "createEventOptions", ")", "{", "Validator", ".", "notNull", "(", "createEventOptions", ",", "\"createEventOptions cannot be null\"", ")", ";", "String", "[", "]", "pathS...
Create event. The **Events** API can be used to create log entries that are associated with specific queries. For example, you can record which documents in the results set were \"clicked\" by a user and when that click occured. @param createEventOptions the {@link CreateEventOptions} containing the options for the c...
[ "Create", "event", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1831-L1846
49,157
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getMetricsEventRate
public ServiceCall<MetricResponse> getMetricsEventRate(GetMetricsEventRateOptions getMetricsEventRateOptions) { String[] pathSegments = { "v1/metrics/event_rate" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate...
java
public ServiceCall<MetricResponse> getMetricsEventRate(GetMetricsEventRateOptions getMetricsEventRateOptions) { String[] pathSegments = { "v1/metrics/event_rate" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate...
[ "public", "ServiceCall", "<", "MetricResponse", ">", "getMetricsEventRate", "(", "GetMetricsEventRateOptions", "getMetricsEventRateOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/metrics/event_rate\"", "}", ";", "RequestBuilder", "builder", "=", ...
Percentage of queries with an associated event. The percentage of queries using the **natural_language_query** parameter that have a corresponding \"click\" event over a specified time window. This metric requires having integrated event tracking in your application using the **Events** API. @param getMetricsEventRat...
[ "Percentage", "of", "queries", "with", "an", "associated", "event", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L1858-L1879
49,158
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getMetricsQueryTokenEvent
public ServiceCall<MetricTokenResponse> getMetricsQueryTokenEvent( GetMetricsQueryTokenEventOptions getMetricsQueryTokenEventOptions) { String[] pathSegments = { "v1/metrics/top_query_tokens_with_event_rate" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), path...
java
public ServiceCall<MetricTokenResponse> getMetricsQueryTokenEvent( GetMetricsQueryTokenEventOptions getMetricsQueryTokenEventOptions) { String[] pathSegments = { "v1/metrics/top_query_tokens_with_event_rate" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), path...
[ "public", "ServiceCall", "<", "MetricTokenResponse", ">", "getMetricsQueryTokenEvent", "(", "GetMetricsQueryTokenEventOptions", "getMetricsQueryTokenEventOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/metrics/top_query_tokens_with_event_rate\"", "}", ";...
Most frequent query tokens with an event. The most frequent query tokens parsed from the **natural_language_query** parameter and their corresponding \"click\" event rate within the recording period (queries and events are stored for 30 days). A query token is an individual word or unigram within the query string. @p...
[ "Most", "frequent", "query", "tokens", "with", "an", "event", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2039-L2055
49,159
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.queryLog
public ServiceCall<LogQueryResponse> queryLog(QueryLogOptions queryLogOptions) { String[] pathSegments = { "v1/logs" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCo...
java
public ServiceCall<LogQueryResponse> queryLog(QueryLogOptions queryLogOptions) { String[] pathSegments = { "v1/logs" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCo...
[ "public", "ServiceCall", "<", "LogQueryResponse", ">", "queryLog", "(", "QueryLogOptions", "queryLogOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/logs\"", "}", ";", "RequestBuilder", "builder", "=", "RequestBuilder", ".", "get", "(", "R...
Search the query and event log. Searches the query and event log to find query sessions that match the specified criteria. Searching the **logs** endpoint uses the standard Discovery query syntax for the parameters that are supported. @param queryLogOptions the {@link QueryLogOptions} containing the options for the c...
[ "Search", "the", "query", "and", "event", "log", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2079-L2106
49,160
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getCredentials
public ServiceCall<Credentials> getCredentials(GetCredentialsOptions getCredentialsOptions) { Validator.notNull(getCredentialsOptions, "getCredentialsOptions cannot be null"); String[] pathSegments = { "v1/environments", "credentials" }; String[] pathParameters = { getCredentialsOptions.environmentId(), get...
java
public ServiceCall<Credentials> getCredentials(GetCredentialsOptions getCredentialsOptions) { Validator.notNull(getCredentialsOptions, "getCredentialsOptions cannot be null"); String[] pathSegments = { "v1/environments", "credentials" }; String[] pathParameters = { getCredentialsOptions.environmentId(), get...
[ "public", "ServiceCall", "<", "Credentials", ">", "getCredentials", "(", "GetCredentialsOptions", "getCredentialsOptions", ")", "{", "Validator", ".", "notNull", "(", "getCredentialsOptions", ",", "\"getCredentialsOptions cannot be null\"", ")", ";", "String", "[", "]", ...
View Credentials. Returns details about the specified credentials. **Note:** Secure credential information such as a password or SSH key is never returned and must be obtained from the source system. @param getCredentialsOptions the {@link GetCredentialsOptions} containing the options for the call @return a {@link S...
[ "View", "Credentials", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2189-L2202
49,161
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listCredentials
public ServiceCall<CredentialsList> listCredentials(ListCredentialsOptions listCredentialsOptions) { Validator.notNull(listCredentialsOptions, "listCredentialsOptions cannot be null"); String[] pathSegments = { "v1/environments", "credentials" }; String[] pathParameters = { listCredentialsOptions.environmen...
java
public ServiceCall<CredentialsList> listCredentials(ListCredentialsOptions listCredentialsOptions) { Validator.notNull(listCredentialsOptions, "listCredentialsOptions cannot be null"); String[] pathSegments = { "v1/environments", "credentials" }; String[] pathParameters = { listCredentialsOptions.environmen...
[ "public", "ServiceCall", "<", "CredentialsList", ">", "listCredentials", "(", "ListCredentialsOptions", "listCredentialsOptions", ")", "{", "Validator", ".", "notNull", "(", "listCredentialsOptions", ",", "\"listCredentialsOptions cannot be null\"", ")", ";", "String", "[",...
List credentials. List all the source credentials that have been created for this service instance. **Note:** All credentials are sent over an encrypted connection and encrypted at rest. @param listCredentialsOptions the {@link ListCredentialsOptions} containing the options for the call @return a {@link ServiceCall}...
[ "List", "credentials", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2214-L2227
49,162
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.updateCredentials
public ServiceCall<Credentials> updateCredentials(UpdateCredentialsOptions updateCredentialsOptions) { Validator.notNull(updateCredentialsOptions, "updateCredentialsOptions cannot be null"); String[] pathSegments = { "v1/environments", "credentials" }; String[] pathParameters = { updateCredentialsOptions.en...
java
public ServiceCall<Credentials> updateCredentials(UpdateCredentialsOptions updateCredentialsOptions) { Validator.notNull(updateCredentialsOptions, "updateCredentialsOptions cannot be null"); String[] pathSegments = { "v1/environments", "credentials" }; String[] pathParameters = { updateCredentialsOptions.en...
[ "public", "ServiceCall", "<", "Credentials", ">", "updateCredentials", "(", "UpdateCredentialsOptions", "updateCredentialsOptions", ")", "{", "Validator", ".", "notNull", "(", "updateCredentialsOptions", ",", "\"updateCredentialsOptions cannot be null\"", ")", ";", "String", ...
Update credentials. Updates an existing set of source credentials. **Note:** All credentials are sent over an encrypted connection and encrypted at rest. @param updateCredentialsOptions the {@link UpdateCredentialsOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@li...
[ "Update", "credentials", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2239-L2261
49,163
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.createGateway
public ServiceCall<Gateway> createGateway(CreateGatewayOptions createGatewayOptions) { Validator.notNull(createGatewayOptions, "createGatewayOptions cannot be null"); String[] pathSegments = { "v1/environments", "gateways" }; String[] pathParameters = { createGatewayOptions.environmentId() }; RequestBui...
java
public ServiceCall<Gateway> createGateway(CreateGatewayOptions createGatewayOptions) { Validator.notNull(createGatewayOptions, "createGatewayOptions cannot be null"); String[] pathSegments = { "v1/environments", "gateways" }; String[] pathParameters = { createGatewayOptions.environmentId() }; RequestBui...
[ "public", "ServiceCall", "<", "Gateway", ">", "createGateway", "(", "CreateGatewayOptions", "createGatewayOptions", ")", "{", "Validator", ".", "notNull", "(", "createGatewayOptions", ",", "\"createGatewayOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSeg...
Create Gateway. Create a gateway configuration to use with a remotely installed gateway. @param createGatewayOptions the {@link CreateGatewayOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Gateway}
[ "Create", "Gateway", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2271-L2289
49,164
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.getGateway
public ServiceCall<Gateway> getGateway(GetGatewayOptions getGatewayOptions) { Validator.notNull(getGatewayOptions, "getGatewayOptions cannot be null"); String[] pathSegments = { "v1/environments", "gateways" }; String[] pathParameters = { getGatewayOptions.environmentId(), getGatewayOptions.gatewayId() }; ...
java
public ServiceCall<Gateway> getGateway(GetGatewayOptions getGatewayOptions) { Validator.notNull(getGatewayOptions, "getGatewayOptions cannot be null"); String[] pathSegments = { "v1/environments", "gateways" }; String[] pathParameters = { getGatewayOptions.environmentId(), getGatewayOptions.gatewayId() }; ...
[ "public", "ServiceCall", "<", "Gateway", ">", "getGateway", "(", "GetGatewayOptions", "getGatewayOptions", ")", "{", "Validator", ".", "notNull", "(", "getGatewayOptions", ",", "\"getGatewayOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", ...
List Gateway Details. List information about the specified gateway. @param getGatewayOptions the {@link GetGatewayOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link Gateway}
[ "List", "Gateway", "Details", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2322-L2335
49,165
watson-developer-cloud/java-sdk
discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java
Discovery.listGateways
public ServiceCall<GatewayList> listGateways(ListGatewaysOptions listGatewaysOptions) { Validator.notNull(listGatewaysOptions, "listGatewaysOptions cannot be null"); String[] pathSegments = { "v1/environments", "gateways" }; String[] pathParameters = { listGatewaysOptions.environmentId() }; RequestBuild...
java
public ServiceCall<GatewayList> listGateways(ListGatewaysOptions listGatewaysOptions) { Validator.notNull(listGatewaysOptions, "listGatewaysOptions cannot be null"); String[] pathSegments = { "v1/environments", "gateways" }; String[] pathParameters = { listGatewaysOptions.environmentId() }; RequestBuild...
[ "public", "ServiceCall", "<", "GatewayList", ">", "listGateways", "(", "ListGatewaysOptions", "listGatewaysOptions", ")", "{", "Validator", ".", "notNull", "(", "listGatewaysOptions", ",", "\"listGatewaysOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegm...
List Gateways. List the currently configured gateways. @param listGatewaysOptions the {@link ListGatewaysOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link GatewayList}
[ "List", "Gateways", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/discovery/src/main/java/com/ibm/watson/discovery/v1/Discovery.java#L2345-L2358
49,166
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.getModel
public ServiceCall<SpeechModel> getModel(GetModelOptions getModelOptions) { Validator.notNull(getModelOptions, "getModelOptions cannot be null"); String[] pathSegments = { "v1/models" }; String[] pathParameters = { getModelOptions.modelId() }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.c...
java
public ServiceCall<SpeechModel> getModel(GetModelOptions getModelOptions) { Validator.notNull(getModelOptions, "getModelOptions cannot be null"); String[] pathSegments = { "v1/models" }; String[] pathParameters = { getModelOptions.modelId() }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.c...
[ "public", "ServiceCall", "<", "SpeechModel", ">", "getModel", "(", "GetModelOptions", "getModelOptions", ")", "{", "Validator", ".", "notNull", "(", "getModelOptions", ",", "\"getModelOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{",...
Get a model. Gets information for a single specified language model that is available for use with the service. The information includes the name of the model and its minimum sampling rate in Hertz, among other things. **See also:** [Languages and models](https://cloud.ibm.com/docs/services/speech-to-text/models.html...
[ "Get", "a", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L168-L180
49,167
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.recognizeUsingWebSocket
public WebSocket recognizeUsingWebSocket(RecognizeOptions recognizeOptions, RecognizeCallback callback) { Validator.notNull(recognizeOptions, "recognizeOptions cannot be null"); Validator.notNull(recognizeOptions.audio(), "audio cannot be null"); Validator.notNull(callback, "callback cannot be null"); ...
java
public WebSocket recognizeUsingWebSocket(RecognizeOptions recognizeOptions, RecognizeCallback callback) { Validator.notNull(recognizeOptions, "recognizeOptions cannot be null"); Validator.notNull(recognizeOptions.audio(), "audio cannot be null"); Validator.notNull(callback, "callback cannot be null"); ...
[ "public", "WebSocket", "recognizeUsingWebSocket", "(", "RecognizeOptions", "recognizeOptions", ",", "RecognizeCallback", "callback", ")", "{", "Validator", ".", "notNull", "(", "recognizeOptions", ",", "\"recognizeOptions cannot be null\"", ")", ";", "Validator", ".", "no...
Sends audio and returns transcription results for recognition requests over a WebSocket connection. Requests and responses are enabled over a single TCP connection that abstracts much of the complexity of the request to offer efficient implementation, low latency, high throughput, and an asynchronous response. By defau...
[ "Sends", "audio", "and", "returns", "transcription", "results", "for", "recognition", "requests", "over", "a", "WebSocket", "connection", ".", "Requests", "and", "responses", "are", "enabled", "over", "a", "single", "TCP", "connection", "that", "abstracts", "much"...
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L381-L412
49,168
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.checkJob
public ServiceCall<RecognitionJob> checkJob(CheckJobOptions checkJobOptions) { Validator.notNull(checkJobOptions, "checkJobOptions cannot be null"); String[] pathSegments = { "v1/recognitions" }; String[] pathParameters = { checkJobOptions.id() }; RequestBuilder builder = RequestBuilder.get(RequestBuild...
java
public ServiceCall<RecognitionJob> checkJob(CheckJobOptions checkJobOptions) { Validator.notNull(checkJobOptions, "checkJobOptions cannot be null"); String[] pathSegments = { "v1/recognitions" }; String[] pathParameters = { checkJobOptions.id() }; RequestBuilder builder = RequestBuilder.get(RequestBuild...
[ "public", "ServiceCall", "<", "RecognitionJob", ">", "checkJob", "(", "CheckJobOptions", "checkJobOptions", ")", "{", "Validator", ".", "notNull", "(", "checkJobOptions", ",", "\"checkJobOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "...
Check a job. Returns information about the specified job. The response always includes the status of the job and its creation and update times. If the status is `completed`, the response includes the results of the recognition request. You must use credentials for the instance of the service that owns a job to list in...
[ "Check", "a", "job", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L432-L444
49,169
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.checkJobs
public ServiceCall<RecognitionJobs> checkJobs(CheckJobsOptions checkJobsOptions) { String[] pathSegments = { "v1/recognitions" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("speech_to_tex...
java
public ServiceCall<RecognitionJobs> checkJobs(CheckJobsOptions checkJobsOptions) { String[] pathSegments = { "v1/recognitions" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("speech_to_tex...
[ "public", "ServiceCall", "<", "RecognitionJobs", ">", "checkJobs", "(", "CheckJobsOptions", "checkJobsOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/recognitions\"", "}", ";", "RequestBuilder", "builder", "=", "RequestBuilder", ".", "get", ...
Check jobs. Returns the ID and status of the latest 100 outstanding jobs associated with the credentials with which it is called. The method also returns the creation and update times of each job, and, if a job was created with a callback URL and a user token, the user token for the job. To obtain the results for a jo...
[ "Check", "jobs", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L462-L473
49,170
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.deleteJob
public ServiceCall<Void> deleteJob(DeleteJobOptions deleteJobOptions) { Validator.notNull(deleteJobOptions, "deleteJobOptions cannot be null"); String[] pathSegments = { "v1/recognitions" }; String[] pathParameters = { deleteJobOptions.id() }; RequestBuilder builder = RequestBuilder.delete(RequestBuilde...
java
public ServiceCall<Void> deleteJob(DeleteJobOptions deleteJobOptions) { Validator.notNull(deleteJobOptions, "deleteJobOptions cannot be null"); String[] pathSegments = { "v1/recognitions" }; String[] pathParameters = { deleteJobOptions.id() }; RequestBuilder builder = RequestBuilder.delete(RequestBuilde...
[ "public", "ServiceCall", "<", "Void", ">", "deleteJob", "(", "DeleteJobOptions", "deleteJobOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteJobOptions", ",", "\"deleteJobOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", ...
Delete a job. Deletes the specified job. You cannot delete a job that the service is actively processing. Once you delete a job, its results are no longer available. The service automatically deletes a job and its results when the time to live for the results expires. You must use credentials for the instance of the s...
[ "Delete", "a", "job", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L672-L683
49,171
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.registerCallback
public ServiceCall<RegisterStatus> registerCallback(RegisterCallbackOptions registerCallbackOptions) { Validator.notNull(registerCallbackOptions, "registerCallbackOptions cannot be null"); String[] pathSegments = { "v1/register_callback" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constru...
java
public ServiceCall<RegisterStatus> registerCallback(RegisterCallbackOptions registerCallbackOptions) { Validator.notNull(registerCallbackOptions, "registerCallbackOptions cannot be null"); String[] pathSegments = { "v1/register_callback" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constru...
[ "public", "ServiceCall", "<", "RegisterStatus", ">", "registerCallback", "(", "RegisterCallbackOptions", "registerCallbackOptions", ")", "{", "Validator", ".", "notNull", "(", "registerCallbackOptions", ",", "\"registerCallbackOptions cannot be null\"", ")", ";", "String", ...
Register a callback. Registers a callback URL with the service for use with subsequent asynchronous recognition requests. The service attempts to register, or white-list, the callback URL if it is not already registered by sending a `GET` request to the callback URL. The service passes a random alphanumeric challenge ...
[ "Register", "a", "callback", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L718-L732
49,172
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.unregisterCallback
public ServiceCall<Void> unregisterCallback(UnregisterCallbackOptions unregisterCallbackOptions) { Validator.notNull(unregisterCallbackOptions, "unregisterCallbackOptions cannot be null"); String[] pathSegments = { "v1/unregister_callback" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.const...
java
public ServiceCall<Void> unregisterCallback(UnregisterCallbackOptions unregisterCallbackOptions) { Validator.notNull(unregisterCallbackOptions, "unregisterCallbackOptions cannot be null"); String[] pathSegments = { "v1/unregister_callback" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.const...
[ "public", "ServiceCall", "<", "Void", ">", "unregisterCallback", "(", "UnregisterCallbackOptions", "unregisterCallbackOptions", ")", "{", "Validator", ".", "notNull", "(", "unregisterCallbackOptions", ",", "\"unregisterCallbackOptions cannot be null\"", ")", ";", "String", ...
Unregister a callback. Unregisters a callback URL that was previously white-listed with a **Register a callback** request for use with the asynchronous interface. Once unregistered, the URL can no longer be used with asynchronous recognition requests. **See also:** [Unregistering a callback URL](https://cloud.ibm.com...
[ "Unregister", "a", "callback", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L746-L756
49,173
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.createLanguageModel
public ServiceCall<LanguageModel> createLanguageModel(CreateLanguageModelOptions createLanguageModelOptions) { Validator.notNull(createLanguageModelOptions, "createLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; RequestBuilder builder = RequestBuilder.post(RequestBuil...
java
public ServiceCall<LanguageModel> createLanguageModel(CreateLanguageModelOptions createLanguageModelOptions) { Validator.notNull(createLanguageModelOptions, "createLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; RequestBuilder builder = RequestBuilder.post(RequestBuil...
[ "public", "ServiceCall", "<", "LanguageModel", ">", "createLanguageModel", "(", "CreateLanguageModelOptions", "createLanguageModelOptions", ")", "{", "Validator", ".", "notNull", "(", "createLanguageModelOptions", ",", "\"createLanguageModelOptions cannot be null\"", ")", ";", ...
Create a custom language model. Creates a new custom language model for a specified base model. The custom language model can be used only with the base model for which it is created. The model is owned by the instance of the service whose credentials are used to create it. **See also:** [Create a custom language mod...
[ "Create", "a", "custom", "language", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L771-L791
49,174
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.deleteLanguageModel
public ServiceCall<Void> deleteLanguageModel(DeleteLanguageModelOptions deleteLanguageModelOptions) { Validator.notNull(deleteLanguageModelOptions, "deleteLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; String[] pathParameters = { deleteLanguageModelOptions.customizat...
java
public ServiceCall<Void> deleteLanguageModel(DeleteLanguageModelOptions deleteLanguageModelOptions) { Validator.notNull(deleteLanguageModelOptions, "deleteLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; String[] pathParameters = { deleteLanguageModelOptions.customizat...
[ "public", "ServiceCall", "<", "Void", ">", "deleteLanguageModel", "(", "DeleteLanguageModelOptions", "deleteLanguageModelOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteLanguageModelOptions", ",", "\"deleteLanguageModelOptions cannot be null\"", ")", ";", "String...
Delete a custom language model. Deletes an existing custom language model. The custom model cannot be deleted if another request, such as adding a corpus or grammar to the model, is currently being processed. You must use credentials for the instance of the service that owns a model to delete it. **See also:** [Delet...
[ "Delete", "a", "custom", "language", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L806-L818
49,175
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.getLanguageModel
public ServiceCall<LanguageModel> getLanguageModel(GetLanguageModelOptions getLanguageModelOptions) { Validator.notNull(getLanguageModelOptions, "getLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; String[] pathParameters = { getLanguageModelOptions.customizationId() }...
java
public ServiceCall<LanguageModel> getLanguageModel(GetLanguageModelOptions getLanguageModelOptions) { Validator.notNull(getLanguageModelOptions, "getLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations" }; String[] pathParameters = { getLanguageModelOptions.customizationId() }...
[ "public", "ServiceCall", "<", "LanguageModel", ">", "getLanguageModel", "(", "GetLanguageModelOptions", "getLanguageModelOptions", ")", "{", "Validator", ".", "notNull", "(", "getLanguageModelOptions", ",", "\"getLanguageModelOptions cannot be null\"", ")", ";", "String", "...
Get a custom language model. Gets information about a specified custom language model. You must use credentials for the instance of the service that owns a model to list information about it. **See also:** [Listing custom language models](https://cloud.ibm.com/docs/services/speech-to-text/language-models.html#listMod...
[ "Get", "a", "custom", "language", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L832-L844
49,176
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.listLanguageModels
public ServiceCall<LanguageModels> listLanguageModels(ListLanguageModelsOptions listLanguageModelsOptions) { String[] pathSegments = { "v1/customizations" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); Map<String, String> sdkHeaders = SdkCommon....
java
public ServiceCall<LanguageModels> listLanguageModels(ListLanguageModelsOptions listLanguageModelsOptions) { String[] pathSegments = { "v1/customizations" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); Map<String, String> sdkHeaders = SdkCommon....
[ "public", "ServiceCall", "<", "LanguageModels", ">", "listLanguageModels", "(", "ListLanguageModelsOptions", "listLanguageModelsOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/customizations\"", "}", ";", "RequestBuilder", "builder", "=", "Reques...
List custom language models. Lists information about all custom language models that are owned by an instance of the service. Use the `language` parameter to see all custom language models for the specified language. Omit the parameter to see all custom language models for all languages. You must use credentials for t...
[ "List", "custom", "language", "models", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L860-L874
49,177
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.trainLanguageModel
public ServiceCall<Void> trainLanguageModel(TrainLanguageModelOptions trainLanguageModelOptions) { Validator.notNull(trainLanguageModelOptions, "trainLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations", "train" }; String[] pathParameters = { trainLanguageModelOptions.customi...
java
public ServiceCall<Void> trainLanguageModel(TrainLanguageModelOptions trainLanguageModelOptions) { Validator.notNull(trainLanguageModelOptions, "trainLanguageModelOptions cannot be null"); String[] pathSegments = { "v1/customizations", "train" }; String[] pathParameters = { trainLanguageModelOptions.customi...
[ "public", "ServiceCall", "<", "Void", ">", "trainLanguageModel", "(", "TrainLanguageModelOptions", "trainLanguageModelOptions", ")", "{", "Validator", ".", "notNull", "(", "trainLanguageModelOptions", ",", "\"trainLanguageModelOptions cannot be null\"", ")", ";", "String", ...
Train a custom language model. Initiates the training of a custom language model with new resources such as corpora, grammars, and custom words. After adding, modifying, or deleting resources for a custom language model, use this method to begin the actual training of the model on the latest data. You can specify whet...
[ "Train", "a", "custom", "language", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L952-L970
49,178
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.addCorpus
public ServiceCall<Void> addCorpus(AddCorpusOptions addCorpusOptions) { Validator.notNull(addCorpusOptions, "addCorpusOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { addCorpusOptions.customizationId(), addCorpusOptions.corpusName() }; Req...
java
public ServiceCall<Void> addCorpus(AddCorpusOptions addCorpusOptions) { Validator.notNull(addCorpusOptions, "addCorpusOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { addCorpusOptions.customizationId(), addCorpusOptions.corpusName() }; Req...
[ "public", "ServiceCall", "<", "Void", ">", "addCorpus", "(", "AddCorpusOptions", "addCorpusOptions", ")", "{", "Validator", ".", "notNull", "(", "addCorpusOptions", ",", "\"addCorpusOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", ...
Add a corpus. Adds a single corpus text file of new training data to a custom language model. Use multiple requests to submit multiple corpus text files. You must use credentials for the instance of the service that owns a model to add a corpus to it. Adding a corpus does not affect the custom language model until you...
[ "Add", "a", "corpus", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1049-L1065
49,179
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.deleteCorpus
public ServiceCall<Void> deleteCorpus(DeleteCorpusOptions deleteCorpusOptions) { Validator.notNull(deleteCorpusOptions, "deleteCorpusOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { deleteCorpusOptions.customizationId(), deleteCorpusOptions.co...
java
public ServiceCall<Void> deleteCorpus(DeleteCorpusOptions deleteCorpusOptions) { Validator.notNull(deleteCorpusOptions, "deleteCorpusOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { deleteCorpusOptions.customizationId(), deleteCorpusOptions.co...
[ "public", "ServiceCall", "<", "Void", ">", "deleteCorpus", "(", "DeleteCorpusOptions", "deleteCorpusOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteCorpusOptions", ",", "\"deleteCorpusOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", ...
Delete a corpus. Deletes an existing corpus from a custom language model. The service removes any out-of-vocabulary (OOV) words that are associated with the corpus from the custom model's words resource unless they were also added by another corpus or grammar, or they were modified in some way with the **Add custom wo...
[ "Delete", "a", "corpus", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1082-L1094
49,180
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.getCorpus
public ServiceCall<Corpus> getCorpus(GetCorpusOptions getCorpusOptions) { Validator.notNull(getCorpusOptions, "getCorpusOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { getCorpusOptions.customizationId(), getCorpusOptions.corpusName() }; R...
java
public ServiceCall<Corpus> getCorpus(GetCorpusOptions getCorpusOptions) { Validator.notNull(getCorpusOptions, "getCorpusOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { getCorpusOptions.customizationId(), getCorpusOptions.corpusName() }; R...
[ "public", "ServiceCall", "<", "Corpus", ">", "getCorpus", "(", "GetCorpusOptions", "getCorpusOptions", ")", "{", "Validator", ".", "notNull", "(", "getCorpusOptions", ",", "\"getCorpusOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{",...
Get a corpus. Gets information about a corpus from a custom language model. The information includes the total number of words and out-of-vocabulary (OOV) words, name, and status of the corpus. You must use credentials for the instance of the service that owns a model to list its corpora. **See also:** [Listing corpo...
[ "Get", "a", "corpus", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1109-L1121
49,181
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.listCorpora
public ServiceCall<Corpora> listCorpora(ListCorporaOptions listCorporaOptions) { Validator.notNull(listCorporaOptions, "listCorporaOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { listCorporaOptions.customizationId() }; RequestBuilder buil...
java
public ServiceCall<Corpora> listCorpora(ListCorporaOptions listCorporaOptions) { Validator.notNull(listCorporaOptions, "listCorporaOptions cannot be null"); String[] pathSegments = { "v1/customizations", "corpora" }; String[] pathParameters = { listCorporaOptions.customizationId() }; RequestBuilder buil...
[ "public", "ServiceCall", "<", "Corpora", ">", "listCorpora", "(", "ListCorporaOptions", "listCorporaOptions", ")", "{", "Validator", ".", "notNull", "(", "listCorporaOptions", ",", "\"listCorporaOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", ...
List corpora. Lists information about all corpora from a custom language model. The information includes the total number of words and out-of-vocabulary (OOV) words, name, and status of each corpus. You must use credentials for the instance of the service that owns a model to list its corpora. **See also:** [Listing ...
[ "List", "corpora", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1136-L1148
49,182
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.addGrammar
public ServiceCall<Void> addGrammar(AddGrammarOptions addGrammarOptions) { Validator.notNull(addGrammarOptions, "addGrammarOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { addGrammarOptions.customizationId(), addGrammarOptions.grammarName() }...
java
public ServiceCall<Void> addGrammar(AddGrammarOptions addGrammarOptions) { Validator.notNull(addGrammarOptions, "addGrammarOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { addGrammarOptions.customizationId(), addGrammarOptions.grammarName() }...
[ "public", "ServiceCall", "<", "Void", ">", "addGrammar", "(", "AddGrammarOptions", "addGrammarOptions", ")", "{", "Validator", ".", "notNull", "(", "addGrammarOptions", ",", "\"addGrammarOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "...
Add a grammar. Adds a single grammar file to a custom language model. Submit a plain text file in UTF-8 format that defines the grammar. Use multiple requests to submit multiple grammar files. You must use credentials for the instance of the service that owns a model to add a grammar to it. Adding a grammar does not a...
[ "Add", "a", "grammar", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1404-L1421
49,183
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.deleteGrammar
public ServiceCall<Void> deleteGrammar(DeleteGrammarOptions deleteGrammarOptions) { Validator.notNull(deleteGrammarOptions, "deleteGrammarOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { deleteGrammarOptions.customizationId(), deleteGrammarOp...
java
public ServiceCall<Void> deleteGrammar(DeleteGrammarOptions deleteGrammarOptions) { Validator.notNull(deleteGrammarOptions, "deleteGrammarOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { deleteGrammarOptions.customizationId(), deleteGrammarOp...
[ "public", "ServiceCall", "<", "Void", ">", "deleteGrammar", "(", "DeleteGrammarOptions", "deleteGrammarOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteGrammarOptions", ",", "\"deleteGrammarOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegmen...
Delete a grammar. Deletes an existing grammar from a custom language model. The service removes any out-of-vocabulary (OOV) words associated with the grammar from the custom model's words resource unless they were also added by another resource or they were modified in some way with the **Add custom words** or **Add a...
[ "Delete", "a", "grammar", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1438-L1450
49,184
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.getGrammar
public ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions) { Validator.notNull(getGrammarOptions, "getGrammarOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { getGrammarOptions.customizationId(), getGrammarOptions.grammarName(...
java
public ServiceCall<Grammar> getGrammar(GetGrammarOptions getGrammarOptions) { Validator.notNull(getGrammarOptions, "getGrammarOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { getGrammarOptions.customizationId(), getGrammarOptions.grammarName(...
[ "public", "ServiceCall", "<", "Grammar", ">", "getGrammar", "(", "GetGrammarOptions", "getGrammarOptions", ")", "{", "Validator", ".", "notNull", "(", "getGrammarOptions", ",", "\"getGrammarOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", ...
Get a grammar. Gets information about a grammar from a custom language model. The information includes the total number of out-of-vocabulary (OOV) words, name, and status of the grammar. You must use credentials for the instance of the service that owns a model to list its grammars. **See also:** [Listing grammars fr...
[ "Get", "a", "grammar", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1464-L1476
49,185
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.listGrammars
public ServiceCall<Grammars> listGrammars(ListGrammarsOptions listGrammarsOptions) { Validator.notNull(listGrammarsOptions, "listGrammarsOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { listGrammarsOptions.customizationId() }; RequestBuil...
java
public ServiceCall<Grammars> listGrammars(ListGrammarsOptions listGrammarsOptions) { Validator.notNull(listGrammarsOptions, "listGrammarsOptions cannot be null"); String[] pathSegments = { "v1/customizations", "grammars" }; String[] pathParameters = { listGrammarsOptions.customizationId() }; RequestBuil...
[ "public", "ServiceCall", "<", "Grammars", ">", "listGrammars", "(", "ListGrammarsOptions", "listGrammarsOptions", ")", "{", "Validator", ".", "notNull", "(", "listGrammarsOptions", ",", "\"listGrammarsOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegment...
List grammars. Lists information about all grammars from a custom language model. The information includes the total number of out-of-vocabulary (OOV) words, name, and status of each grammar. You must use credentials for the instance of the service that owns a model to list its grammars. **See also:** [Listing gramma...
[ "List", "grammars", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1490-L1502
49,186
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.createAcousticModel
public ServiceCall<AcousticModel> createAcousticModel(CreateAcousticModelOptions createAcousticModelOptions) { Validator.notNull(createAcousticModelOptions, "createAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations" }; RequestBuilder builder = RequestBuilder.post(Re...
java
public ServiceCall<AcousticModel> createAcousticModel(CreateAcousticModelOptions createAcousticModelOptions) { Validator.notNull(createAcousticModelOptions, "createAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations" }; RequestBuilder builder = RequestBuilder.post(Re...
[ "public", "ServiceCall", "<", "AcousticModel", ">", "createAcousticModel", "(", "CreateAcousticModelOptions", "createAcousticModelOptions", ")", "{", "Validator", ".", "notNull", "(", "createAcousticModelOptions", ",", "\"createAcousticModelOptions cannot be null\"", ")", ";", ...
Create a custom acoustic model. Creates a new custom acoustic model for a specified base model. The custom acoustic model can be used only with the base model for which it is created. The model is owned by the instance of the service whose credentials are used to create it. **See also:** [Create a custom acoustic mod...
[ "Create", "a", "custom", "acoustic", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1517-L1534
49,187
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.getAcousticModel
public ServiceCall<AcousticModel> getAcousticModel(GetAcousticModelOptions getAcousticModelOptions) { Validator.notNull(getAcousticModelOptions, "getAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations" }; String[] pathParameters = { getAcousticModelOptions.customizat...
java
public ServiceCall<AcousticModel> getAcousticModel(GetAcousticModelOptions getAcousticModelOptions) { Validator.notNull(getAcousticModelOptions, "getAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations" }; String[] pathParameters = { getAcousticModelOptions.customizat...
[ "public", "ServiceCall", "<", "AcousticModel", ">", "getAcousticModel", "(", "GetAcousticModelOptions", "getAcousticModelOptions", ")", "{", "Validator", ".", "notNull", "(", "getAcousticModelOptions", ",", "\"getAcousticModelOptions cannot be null\"", ")", ";", "String", "...
Get a custom acoustic model. Gets information about a specified custom acoustic model. You must use credentials for the instance of the service that owns a model to list information about it. **See also:** [Listing custom acoustic models](https://cloud.ibm.com/docs/services/speech-to-text/acoustic-models.html#listMod...
[ "Get", "a", "custom", "acoustic", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1575-L1587
49,188
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.listAcousticModels
public ServiceCall<AcousticModels> listAcousticModels(ListAcousticModelsOptions listAcousticModelsOptions) { String[] pathSegments = { "v1/acoustic_customizations" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); Map<String, String> sdkHeaders = S...
java
public ServiceCall<AcousticModels> listAcousticModels(ListAcousticModelsOptions listAcousticModelsOptions) { String[] pathSegments = { "v1/acoustic_customizations" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); Map<String, String> sdkHeaders = S...
[ "public", "ServiceCall", "<", "AcousticModels", ">", "listAcousticModels", "(", "ListAcousticModelsOptions", "listAcousticModelsOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/acoustic_customizations\"", "}", ";", "RequestBuilder", "builder", "=", ...
List custom acoustic models. Lists information about all custom acoustic models that are owned by an instance of the service. Use the `language` parameter to see all custom acoustic models for the specified language. Omit the parameter to see all custom acoustic models for all languages. You must use credentials for t...
[ "List", "custom", "acoustic", "models", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1603-L1617
49,189
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.resetAcousticModel
public ServiceCall<Void> resetAcousticModel(ResetAcousticModelOptions resetAcousticModelOptions) { Validator.notNull(resetAcousticModelOptions, "resetAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "reset" }; String[] pathParameters = { resetAcousticModelOption...
java
public ServiceCall<Void> resetAcousticModel(ResetAcousticModelOptions resetAcousticModelOptions) { Validator.notNull(resetAcousticModelOptions, "resetAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "reset" }; String[] pathParameters = { resetAcousticModelOption...
[ "public", "ServiceCall", "<", "Void", ">", "resetAcousticModel", "(", "ResetAcousticModelOptions", "resetAcousticModelOptions", ")", "{", "Validator", ".", "notNull", "(", "resetAcousticModelOptions", ",", "\"resetAcousticModelOptions cannot be null\"", ")", ";", "String", ...
Reset a custom acoustic model. Resets a custom acoustic model by removing all audio resources from the model. Resetting a custom acoustic model initializes the model to its state when it was first created. Metadata such as the name and language of the model are preserved, but the model's audio resources are removed an...
[ "Reset", "a", "custom", "acoustic", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1650-L1662
49,190
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.trainAcousticModel
public ServiceCall<Void> trainAcousticModel(TrainAcousticModelOptions trainAcousticModelOptions) { Validator.notNull(trainAcousticModelOptions, "trainAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "train" }; String[] pathParameters = { trainAcousticModelOption...
java
public ServiceCall<Void> trainAcousticModel(TrainAcousticModelOptions trainAcousticModelOptions) { Validator.notNull(trainAcousticModelOptions, "trainAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "train" }; String[] pathParameters = { trainAcousticModelOption...
[ "public", "ServiceCall", "<", "Void", ">", "trainAcousticModel", "(", "TrainAcousticModelOptions", "trainAcousticModelOptions", ")", "{", "Validator", ".", "notNull", "(", "trainAcousticModelOptions", ",", "\"trainAcousticModelOptions cannot be null\"", ")", ";", "String", ...
Train a custom acoustic model. Initiates the training of a custom acoustic model with new or changed audio resources. After adding or deleting audio resources for a custom acoustic model, use this method to begin the actual training of the model on the latest audio data. The custom acoustic model does not reflect its ...
[ "Train", "a", "custom", "acoustic", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1704-L1719
49,191
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.upgradeAcousticModel
public ServiceCall<Void> upgradeAcousticModel(UpgradeAcousticModelOptions upgradeAcousticModelOptions) { Validator.notNull(upgradeAcousticModelOptions, "upgradeAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "upgrade_model" }; String[] pathParameters = { upgrad...
java
public ServiceCall<Void> upgradeAcousticModel(UpgradeAcousticModelOptions upgradeAcousticModelOptions) { Validator.notNull(upgradeAcousticModelOptions, "upgradeAcousticModelOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "upgrade_model" }; String[] pathParameters = { upgrad...
[ "public", "ServiceCall", "<", "Void", ">", "upgradeAcousticModel", "(", "UpgradeAcousticModelOptions", "upgradeAcousticModelOptions", ")", "{", "Validator", ".", "notNull", "(", "upgradeAcousticModelOptions", ",", "\"upgradeAcousticModelOptions cannot be null\"", ")", ";", "S...
Upgrade a custom acoustic model. Initiates the upgrade of a custom acoustic model to the latest version of its base language model. The upgrade method is asynchronous. It can take on the order of minutes or hours to complete depending on the amount of data in the custom model and the current load on the service; typic...
[ "Upgrade", "a", "custom", "acoustic", "model", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1748-L1766
49,192
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.addAudio
public ServiceCall<Void> addAudio(AddAudioOptions addAudioOptions) { Validator.notNull(addAudioOptions, "addAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { addAudioOptions.customizationId(), addAudioOptions.audioName() }; Requ...
java
public ServiceCall<Void> addAudio(AddAudioOptions addAudioOptions) { Validator.notNull(addAudioOptions, "addAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { addAudioOptions.customizationId(), addAudioOptions.audioName() }; Requ...
[ "public", "ServiceCall", "<", "Void", ">", "addAudio", "(", "AddAudioOptions", "addAudioOptions", ")", "{", "Validator", ".", "notNull", "(", "addAudioOptions", ",", "\"addAudioOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", "\"v...
Add an audio resource. Adds an audio resource to a custom acoustic model. Add audio content that reflects the acoustic characteristics of the audio that you plan to transcribe. You must use credentials for the instance of the service that owns a model to add an audio resource to it. Adding audio data does not affect t...
[ "Add", "an", "audio", "resource", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1862-L1884
49,193
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.deleteAudio
public ServiceCall<Void> deleteAudio(DeleteAudioOptions deleteAudioOptions) { Validator.notNull(deleteAudioOptions, "deleteAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { deleteAudioOptions.customizationId(), deleteAudioOptions.au...
java
public ServiceCall<Void> deleteAudio(DeleteAudioOptions deleteAudioOptions) { Validator.notNull(deleteAudioOptions, "deleteAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { deleteAudioOptions.customizationId(), deleteAudioOptions.au...
[ "public", "ServiceCall", "<", "Void", ">", "deleteAudio", "(", "DeleteAudioOptions", "deleteAudioOptions", ")", "{", "Validator", ".", "notNull", "(", "deleteAudioOptions", ",", "\"deleteAudioOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "="...
Delete an audio resource. Deletes an existing audio resource from a custom acoustic model. Deleting an archive-type audio resource removes the entire archive of files; the current interface does not allow deletion of individual files from an archive resource. Removing an audio resource does not affect the custom model...
[ "Delete", "an", "audio", "resource", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1901-L1913
49,194
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.getAudio
public ServiceCall<AudioListing> getAudio(GetAudioOptions getAudioOptions) { Validator.notNull(getAudioOptions, "getAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { getAudioOptions.customizationId(), getAudioOptions.audioName() }; ...
java
public ServiceCall<AudioListing> getAudio(GetAudioOptions getAudioOptions) { Validator.notNull(getAudioOptions, "getAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { getAudioOptions.customizationId(), getAudioOptions.audioName() }; ...
[ "public", "ServiceCall", "<", "AudioListing", ">", "getAudio", "(", "GetAudioOptions", "getAudioOptions", ")", "{", "Validator", ".", "notNull", "(", "getAudioOptions", ",", "\"getAudioOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{"...
Get an audio resource. Gets information about an audio resource from a custom acoustic model. The method returns an `AudioListing` object whose fields depend on the type of audio resource that you specify with the method's `audio_name` parameter: * **For an audio-type resource,** the object's fields match those of an ...
[ "Get", "an", "audio", "resource", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1940-L1952
49,195
watson-developer-cloud/java-sdk
speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java
SpeechToText.listAudio
public ServiceCall<AudioResources> listAudio(ListAudioOptions listAudioOptions) { Validator.notNull(listAudioOptions, "listAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { listAudioOptions.customizationId() }; RequestBuilder bu...
java
public ServiceCall<AudioResources> listAudio(ListAudioOptions listAudioOptions) { Validator.notNull(listAudioOptions, "listAudioOptions cannot be null"); String[] pathSegments = { "v1/acoustic_customizations", "audio" }; String[] pathParameters = { listAudioOptions.customizationId() }; RequestBuilder bu...
[ "public", "ServiceCall", "<", "AudioResources", ">", "listAudio", "(", "ListAudioOptions", "listAudioOptions", ")", "{", "Validator", ".", "notNull", "(", "listAudioOptions", ",", "\"listAudioOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "="...
List audio resources. Lists information about all audio resources from a custom acoustic model. The information includes the name of the resource and information about its audio data, such as its duration. It also includes the status of the audio resource, which is important for checking the service's analysis of the ...
[ "List", "audio", "resources", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/speech-to-text/src/main/java/com/ibm/watson/speech_to_text/v1/SpeechToText.java#L1969-L1981
49,196
watson-developer-cloud/java-sdk
assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java
Assistant.message
public ServiceCall<MessageResponse> message(MessageOptions messageOptions) { Validator.notNull(messageOptions, "messageOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "message" }; String[] pathParameters = { messageOptions.workspaceId() }; RequestBuilder builder = RequestBuilder.pos...
java
public ServiceCall<MessageResponse> message(MessageOptions messageOptions) { Validator.notNull(messageOptions, "messageOptions cannot be null"); String[] pathSegments = { "v1/workspaces", "message" }; String[] pathParameters = { messageOptions.workspaceId() }; RequestBuilder builder = RequestBuilder.pos...
[ "public", "ServiceCall", "<", "MessageResponse", ">", "message", "(", "MessageOptions", "messageOptions", ")", "{", "Validator", ".", "notNull", "(", "messageOptions", ",", "\"messageOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegments", "=", "{", ...
Get response to user input. Send user input to a workspace and receive a response. There is no rate limit for this operation. @param messageOptions the {@link MessageOptions} containing the options for the call @return a {@link ServiceCall} with a response type of {@link MessageResponse}
[ "Get", "response", "to", "user", "input", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java#L161-L197
49,197
watson-developer-cloud/java-sdk
assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java
Assistant.createWorkspace
public ServiceCall<Workspace> createWorkspace(CreateWorkspaceOptions createWorkspaceOptions) { String[] pathSegments = { "v1/workspaces" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String, Strin...
java
public ServiceCall<Workspace> createWorkspace(CreateWorkspaceOptions createWorkspaceOptions) { String[] pathSegments = { "v1/workspaces" }; RequestBuilder builder = RequestBuilder.post(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String, Strin...
[ "public", "ServiceCall", "<", "Workspace", ">", "createWorkspace", "(", "CreateWorkspaceOptions", "createWorkspaceOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/workspaces\"", "}", ";", "RequestBuilder", "builder", "=", "RequestBuilder", ".", ...
Create workspace. Create a workspace based on component objects. You must provide workspace components defining the content of the new workspace. This operation is limited to 30 requests per 30 minutes. For more information, see **Rate limiting**. @param createWorkspaceOptions the {@link CreateWorkspaceOptions} cont...
[ "Create", "workspace", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java#L210-L255
49,198
watson-developer-cloud/java-sdk
assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java
Assistant.getWorkspace
public ServiceCall<Workspace> getWorkspace(GetWorkspaceOptions getWorkspaceOptions) { Validator.notNull(getWorkspaceOptions, "getWorkspaceOptions cannot be null"); String[] pathSegments = { "v1/workspaces" }; String[] pathParameters = { getWorkspaceOptions.workspaceId() }; RequestBuilder builder = Reque...
java
public ServiceCall<Workspace> getWorkspace(GetWorkspaceOptions getWorkspaceOptions) { Validator.notNull(getWorkspaceOptions, "getWorkspaceOptions cannot be null"); String[] pathSegments = { "v1/workspaces" }; String[] pathParameters = { getWorkspaceOptions.workspaceId() }; RequestBuilder builder = Reque...
[ "public", "ServiceCall", "<", "Workspace", ">", "getWorkspace", "(", "GetWorkspaceOptions", "getWorkspaceOptions", ")", "{", "Validator", ".", "notNull", "(", "getWorkspaceOptions", ",", "\"getWorkspaceOptions cannot be null\"", ")", ";", "String", "[", "]", "pathSegmen...
Get information about a workspace. Get information about a workspace, optionally including all workspace content. With **export**=`false`, this operation is limited to 6000 requests per 5 minutes. With **export**=`true`, the limit is 20 requests per 30 minutes. For more information, see **Rate limiting**. @param get...
[ "Get", "information", "about", "a", "workspace", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java#L307-L329
49,199
watson-developer-cloud/java-sdk
assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java
Assistant.listWorkspaces
public ServiceCall<WorkspaceCollection> listWorkspaces(ListWorkspacesOptions listWorkspacesOptions) { String[] pathSegments = { "v1/workspaces" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String,...
java
public ServiceCall<WorkspaceCollection> listWorkspaces(ListWorkspacesOptions listWorkspacesOptions) { String[] pathSegments = { "v1/workspaces" }; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getEndPoint(), pathSegments)); builder.query("version", versionDate); Map<String,...
[ "public", "ServiceCall", "<", "WorkspaceCollection", ">", "listWorkspaces", "(", "ListWorkspacesOptions", "listWorkspacesOptions", ")", "{", "String", "[", "]", "pathSegments", "=", "{", "\"v1/workspaces\"", "}", ";", "RequestBuilder", "builder", "=", "RequestBuilder", ...
List workspaces. List the workspaces associated with a Watson Assistant service instance. This operation is limited to 500 requests per 30 minutes. For more information, see **Rate limiting**. @param listWorkspacesOptions the {@link ListWorkspacesOptions} containing the options for the call @return a {@link ServiceC...
[ "List", "workspaces", "." ]
c926117afd20e2002b69942537720ab733a914f3
https://github.com/watson-developer-cloud/java-sdk/blob/c926117afd20e2002b69942537720ab733a914f3/assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java#L341-L368