public class LanguageTranslator
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description |
|---|
LanguageTranslator(java.lang.String versionDate)
Constructs a new `LanguageTranslator` client.
|
LanguageTranslator(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `LanguageTranslator` client with the specified Authenticator.
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> |
createModel(CreateModelOptions createModelOptions)
Create model.
|
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> |
deleteDocument(DeleteDocumentOptions deleteDocumentOptions)
Delete document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DeleteModelResult> |
deleteModel(DeleteModelOptions deleteModelOptions)
Delete model.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> |
getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions)
Get document status.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> |
getModel(GetModelOptions getModelOptions)
Get model details.
|
com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> |
getTranslatedDocument(GetTranslatedDocumentOptions getTranslatedDocumentOptions)
Get translated document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiedLanguages> |
identify(IdentifyOptions identifyOptions)
Identify language.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> |
listDocuments()
List documents.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> |
listDocuments(ListDocumentsOptions listDocumentsOptions)
List documents.
|
com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> |
listIdentifiableLanguages()
List identifiable languages.
|
com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> |
listIdentifiableLanguages(ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions)
List identifiable languages.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> |
listModels()
List models.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> |
listModels(ListModelsOptions listModelsOptions)
List models.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationResult> |
translate(TranslateOptions translateOptions)
Translate.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> |
translateDocument(TranslateDocumentOptions translateDocumentOptions)
Translate document.
|
configureClient, configureHttpClient, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toStringpublic LanguageTranslator(java.lang.String versionDate)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.public LanguageTranslator(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.authenticator - the Authenticator instance to be configured for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationResult> translate(TranslateOptions translateOptions)
translateOptions - the TranslateOptions containing the options for the callServiceCall with a response type of TranslationResultpublic com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> listIdentifiableLanguages(ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions)
listIdentifiableLanguagesOptions - the ListIdentifiableLanguagesOptions containing the options for the
callServiceCall with a response type of IdentifiableLanguagespublic com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> listIdentifiableLanguages()
ServiceCall with a response type of IdentifiableLanguagespublic com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiedLanguages> identify(IdentifyOptions identifyOptions)
identifyOptions - the IdentifyOptions containing the options for the callServiceCall with a response type of IdentifiedLanguagespublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> listModels(ListModelsOptions listModelsOptions)
listModelsOptions - the ListModelsOptions containing the options for the callServiceCall with a response type of TranslationModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> listModels()
ServiceCall with a response type of TranslationModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> createModel(CreateModelOptions createModelOptions)
createModelOptions - the CreateModelOptions containing the options for the callServiceCall with a response type of TranslationModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteModelResult> deleteModel(DeleteModelOptions deleteModelOptions)
deleteModelOptions - the DeleteModelOptions containing the options for the callServiceCall with a response type of DeleteModelResultpublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> getModel(GetModelOptions getModelOptions)
getModelOptions - the GetModelOptions containing the options for the callServiceCall with a response type of TranslationModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> listDocuments(ListDocumentsOptions listDocumentsOptions)
listDocumentsOptions - the ListDocumentsOptions containing the options for the callServiceCall with a response type of DocumentListpublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> listDocuments()
ServiceCall with a response type of DocumentListpublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> translateDocument(TranslateDocumentOptions translateDocumentOptions)
translateDocumentOptions - the TranslateDocumentOptions containing the options for the callServiceCall with a response type of DocumentStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions)
getDocumentStatusOptions - the GetDocumentStatusOptions containing the options for the callServiceCall with a response type of DocumentStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDocument(DeleteDocumentOptions deleteDocumentOptions)
deleteDocumentOptions - the DeleteDocumentOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getTranslatedDocument(GetTranslatedDocumentOptions getTranslatedDocumentOptions)
getTranslatedDocumentOptions - the GetTranslatedDocumentOptions containing the options for the callServiceCall with a response type of InputStream