Class AIServiceLanguageClient
- java.lang.Object
- 
- com.oracle.bmc.http.internal.BaseSyncClient
- 
- com.oracle.bmc.ailanguage.AIServiceLanguageClient
 
 
- 
- All Implemented Interfaces:
- AIServiceLanguage,- AutoCloseable
 
 @Generated(value="OracleSDKGenerator", comments="API Version: 20221001") public class AIServiceLanguageClient extends BaseSyncClient implements AIServiceLanguage
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classAIServiceLanguageClient.BuilderBuilder class for this client.
 - 
Field SummaryFields Modifier and Type Field Description StringclientCommonLibraryVersionCompatible SDK version, provided by the codegen.Optional<String>minimumClientCommonLibraryVersionFromClientMinimum compatible SDK version, maybe provided by the codegen.static ServiceSERVICEService instance for AIServiceLanguage.
 - 
Constructor SummaryConstructors Constructor Description AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration)Deprecated.Use thebuilderinstead.AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator)Deprecated.Use thebuilderinstead.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchDetectDominantLanguageResponsebatchDetectDominantLanguage(BatchDetectDominantLanguageRequest request)The API returns the detected language and a related confidence score (between 0 and 1).BatchDetectHealthEntityResponsebatchDetectHealthEntity(BatchDetectHealthEntityRequest request)The API extracts health entities in text records.BatchDetectLanguageEntitiesResponsebatchDetectLanguageEntities(BatchDetectLanguageEntitiesRequest request)The API extracts entities in text records.BatchDetectLanguageKeyPhrasesResponsebatchDetectLanguageKeyPhrases(BatchDetectLanguageKeyPhrasesRequest request)The API extracts key-phrases in text records.BatchDetectLanguagePiiEntitiesResponsebatchDetectLanguagePiiEntities(BatchDetectLanguagePiiEntitiesRequest request)The API extracts pii entities in text records.BatchDetectLanguageSentimentsResponsebatchDetectLanguageSentiments(BatchDetectLanguageSentimentsRequest request)The API extracts aspect-based and sentence level sentiment in text records.BatchDetectLanguageTextClassificationResponsebatchDetectLanguageTextClassification(BatchDetectLanguageTextClassificationRequest request)The API automatically classifies text into a set of pre-determined classes and sub-classes.BatchLanguageTranslationResponsebatchLanguageTranslation(BatchLanguageTranslationRequest request)Translates a batch of text documents from source to target language.static AIServiceLanguageClient.Builderbuilder()Create a builder for this client.CancelJobResponsecancelJob(CancelJobRequest request)Canceling the job cancels all the tasks under it.ChangeEndpointCompartmentResponsechangeEndpointCompartment(ChangeEndpointCompartmentRequest request)Moves a Endpoint into a different compartment.ChangeJobCompartmentResponsechangeJobCompartment(ChangeJobCompartmentRequest request)Moves a Job into a different compartment.ChangeModelCompartmentResponsechangeModelCompartment(ChangeModelCompartmentRequest request)Moves a Model into a different compartment.ChangeProjectCompartmentResponsechangeProjectCompartment(ChangeProjectCompartmentRequest request)Moves a Project into a different compartment.voidclose()CreateEndpointResponsecreateEndpoint(CreateEndpointRequest request)Creates a new endpoint and deploy the trained modelCreateJobResponsecreateJob(CreateJobRequest request)Creates a new language service async job.CreateModelResponsecreateModel(CreateModelRequest request)Creates a new model for training and train the model with date provided.CreateProjectResponsecreateProject(CreateProjectRequest request)Creates a new Project.DeleteEndpointResponsedeleteEndpoint(DeleteEndpointRequest request)Deletes a provisioned endpoint resource by identifier.DeleteJobResponsedeleteJob(DeleteJobRequest request)Deletes the language service async JobDeleteModelResponsedeleteModel(DeleteModelRequest request)Deletes a provisioned model resource by identifier.DeleteProjectResponsedeleteProject(DeleteProjectRequest request)Deletes a Project resource by identifier.DetectDominantLanguageResponsedetectDominantLanguage(DetectDominantLanguageRequest request)Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.DetectLanguageEntitiesResponsedetectLanguageEntities(DetectLanguageEntitiesRequest request)Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.DetectLanguageKeyPhrasesResponsedetectLanguageKeyPhrases(DetectLanguageKeyPhrasesRequest request)Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.DetectLanguageSentimentsResponsedetectLanguageSentiments(DetectLanguageSentimentsRequest request)Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.DetectLanguageTextClassificationResponsedetectLanguageTextClassification(DetectLanguageTextClassificationRequest request)Deprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.StringgetClientCommonLibraryVersion()protected ClientConfiguratorgetDefaultConfigurator()StringgetEndpoint()GetEndpointResponsegetEndpoint(GetEndpointRequest request)Gets an endpoint by identifierGetJobResponsegetJob(GetJobRequest request)Gets a language service async jobOptional<String>getMinimumClientCommonLibraryVersionFromClient()GetModelResponsegetModel(GetModelRequest request)Gets a model by identifierGetModelTypeResponsegetModelType(GetModelTypeRequest request)Gets model capabilitiesAIServiceLanguagePaginatorsgetPaginators()Gets the pre-configured paginators available for list operations in this service which may return multiple pages of data.GetProjectResponsegetProject(GetProjectRequest request)Gets a Project by identifierAIServiceLanguageWaitersgetWaiters()Gets the pre-configured waiters available for resources for this service.GetWorkRequestResponsegetWorkRequest(GetWorkRequestRequest request)Gets the status of the work request with the given ID.ListEndpointsResponselistEndpoints(ListEndpointsRequest request)Returns a list of Endpoints.ListEvaluationResultsResponselistEvaluationResults(ListEvaluationResultsRequest request)Get a (paginated) list of evaluation results for a given model.ListJobsResponselistJobs(ListJobsRequest request)Returns a list of language service async Jobs.ListModelsResponselistModels(ListModelsRequest request)Returns a list of models.ListProjectsResponselistProjects(ListProjectsRequest request)Returns a list of Projects.ListWorkRequestErrorsResponselistWorkRequestErrors(ListWorkRequestErrorsRequest request)Return a (paginated) list of errors for a given work request.ListWorkRequestLogsResponselistWorkRequestLogs(ListWorkRequestLogsRequest request)Return a (paginated) list of logs for a given work request.ListWorkRequestsResponselistWorkRequests(ListWorkRequestsRequest request)Lists the work requests in a compartment.voidpopulateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap)Populate the parameters in the endpoint with its corresponding value and update the base endpoint.voidrefreshClient()Rebuild the backingHttpClient.voidsetEndpoint(String endpoint)voidsetRegion(Region region)Sets the region to call (ex, Region.US_PHOENIX_1).voidsetRegion(String regionId)Sets the region to call (ex, ‘us-phoenix-1’).voidupdateBaseEndpoint(String endpoint)This method should be used for parameterized endpoint templates only.UpdateEndpointResponseupdateEndpoint(UpdateEndpointRequest request)Update the Endpoint identified by the idUpdateJobResponseupdateJob(UpdateJobRequest request)Updates the language service async JobUpdateModelResponseupdateModel(UpdateModelRequest request)Updates the modelUpdateProjectResponseupdateProject(UpdateProjectRequest request)Updates the ProjectvoiduseRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled)This method should be used to enable or disable the use of realm-specific endpoint template.- 
Methods inherited from class com.oracle.bmc.http.internal.BaseSyncClientclientCall
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.oracle.bmc.ailanguage.AIServiceLanguagegetEndpoint, refreshClient, setEndpoint, useRealmSpecificEndpointTemplate
 - 
Methods inherited from interface java.lang.AutoCloseableclose
 
- 
 
- 
- 
- 
Constructor Detail- 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(BasicAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
 
 - 
AIServiceLanguageClient@Deprecated public AIServiceLanguageClient(AbstractAuthenticationDetailsProvider authenticationDetailsProvider, ClientConfiguration configuration, ClientConfigurator clientConfigurator, RequestSignerFactory defaultRequestSignerFactory, Map<SigningStrategy,RequestSignerFactory> signingStrategyRequestSignerFactories, List<ClientConfigurator> additionalClientConfigurators, String endpoint, ExecutorService executorService) Deprecated.Use thebuilderinstead.Create a new client instance.- Parameters:
- authenticationDetailsProvider- The authentication details (see- AIServiceLanguageClient.Builder.build(com.oracle.bmc.auth.AbstractAuthenticationDetailsProvider))
- configuration-- ClientBuilderBase.configuration
- clientConfigurator-- ClientBuilderBase.clientConfigurator(com.oracle.bmc.http.ClientConfigurator)
- defaultRequestSignerFactory-- ClientBuilderBase.requestSignerFactory
- additionalClientConfigurators-- ClientBuilderBase.additionalClientConfigurators
- endpoint-- ClientBuilderBase.endpoint(java.lang.String)
- signingStrategyRequestSignerFactories-- ClientBuilderBase.signingStrategyRequestSignerFactories
- executorService-- AIServiceLanguageClient.Builder.executorService
 
 
- 
 - 
Method Detail- 
builderpublic static AIServiceLanguageClient.Builder builder() Create a builder for this client.- Returns:
- builder
 
 - 
setRegionpublic void setRegion(Region region) Description copied from interface:AIServiceLanguageSets the region to call (ex, Region.US_PHOENIX_1).Note, this will call setEndpointafter resolving the endpoint. If the service is not available in this Region, however, an IllegalArgumentException will be raised.- Specified by:
- setRegionin interface- AIServiceLanguage
- Parameters:
- region- The region of the service.
 
 - 
setRegionpublic void setRegion(String regionId) Description copied from interface:AIServiceLanguageSets the region to call (ex, ‘us-phoenix-1’).Note, this will first try to map the region ID to a known Region and call setRegion.If no known Region could be determined, it will create an endpoint based on the default endpoint format ( Region.formatDefaultRegionEndpoint(Service, String)and then callsetEndpoint.- Specified by:
- setRegionin interface- AIServiceLanguage
- Parameters:
- regionId- The public region ID.
 
 - 
batchDetectDominantLanguagepublic BatchDetectDominantLanguageResponse batchDetectDominantLanguage(BatchDetectDominantLanguageRequest request) Description copied from interface:AIServiceLanguageThe API returns the detected language and a related confidence score (between 0 and 1).It supports passing a batch of records. [List of supported languages.](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect) Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectDominantLanguagein interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchDetectHealthEntitypublic BatchDetectHealthEntityResponse batchDetectHealthEntity(BatchDetectHealthEntityRequest request) Description copied from interface:AIServiceLanguageThe API extracts health entities in text records.For each entity, its type and confidence score (between 0 and 1) is returned. It supports passing a batch of records. Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectHealthEntityin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchDetectLanguageEntitiespublic BatchDetectLanguageEntitiesResponse batchDetectLanguageEntities(BatchDetectLanguageEntitiesRequest request) Description copied from interface:AIServiceLanguageThe API extracts entities in text records.For each entity, its type/subtype and confidence score (between 0 and 1) is returned. It supports passing a batch of records. [List of supported entities.](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#ner__sup-ner-entity) Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectLanguageEntitiesin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchDetectLanguageKeyPhrasespublic BatchDetectLanguageKeyPhrasesResponse batchDetectLanguageKeyPhrases(BatchDetectLanguageKeyPhrasesRequest request) Description copied from interface:AIServiceLanguageThe API extracts key-phrases in text records.For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text. It supports passing a batch of records. Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectLanguageKeyPhrasesin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchDetectLanguagePiiEntitiespublic BatchDetectLanguagePiiEntitiesResponse batchDetectLanguagePiiEntities(BatchDetectLanguagePiiEntitiesRequest request) Description copied from interface:AIServiceLanguageThe API extracts pii entities in text records.For each entity, its type and confidence score (between 0 and 1) is returned. It supports passing a batch of records. Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectLanguagePiiEntitiesin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchDetectLanguageSentimentspublic BatchDetectLanguageSentimentsResponse batchDetectLanguageSentiments(BatchDetectLanguageSentimentsRequest request) Description copied from interface:AIServiceLanguageThe API extracts aspect-based and sentence level sentiment in text records.For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned for each record. Similarly, for sentence-level sentiment analysis, the sentiment is returned at the sentence level. For sentiment analysis, confidence scores are provided for each of the classes (positive, negative, neutral and mixed). Learn more about sentiment analysis [here](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#sentiment). Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectLanguageSentimentsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchDetectLanguageTextClassificationpublic BatchDetectLanguageTextClassificationResponse batchDetectLanguageTextClassification(BatchDetectLanguageTextClassificationRequest request) Description copied from interface:AIServiceLanguageThe API automatically classifies text into a set of pre-determined classes and sub-classes.A single class/subclass is returned for each record classified. It supports passing a batch of records. Learn more about text classification [here](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#text-class). Limitations: - A batch may have up to 100 records. - A record may be up to 5000 characters long. - The total of characters to process in a request can be up to 20,000 characters. - Specified by:
- batchDetectLanguageTextClassificationin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
batchLanguageTranslationpublic BatchLanguageTranslationResponse batchLanguageTranslation(BatchLanguageTranslationRequest request) Description copied from interface:AIServiceLanguageTranslates a batch of text documents from source to target language.A batch can contain: - up to 100 records. - documents length less than 5000 characters. - 20,000 characters in total as a sum of all documents length. - Specified by:
- batchLanguageTranslationin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
cancelJobpublic CancelJobResponse cancelJob(CancelJobRequest request) Description copied from interface:AIServiceLanguageCanceling the job cancels all the tasks under it.- Specified by:
- cancelJobin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeEndpointCompartmentpublic ChangeEndpointCompartmentResponse changeEndpointCompartment(ChangeEndpointCompartmentRequest request) Description copied from interface:AIServiceLanguageMoves a Endpoint into a different compartment.When provided, If-Match is checked against ETag values of the resource. - Specified by:
- changeEndpointCompartmentin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeJobCompartmentpublic ChangeJobCompartmentResponse changeJobCompartment(ChangeJobCompartmentRequest request) Description copied from interface:AIServiceLanguageMoves a Job into a different compartment.When provided, If-Match is checked against ETag values of the resource. - Specified by:
- changeJobCompartmentin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeModelCompartmentpublic ChangeModelCompartmentResponse changeModelCompartment(ChangeModelCompartmentRequest request) Description copied from interface:AIServiceLanguageMoves a Model into a different compartment.When provided, If-Match is checked against ETag values of the resource. - Specified by:
- changeModelCompartmentin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
changeProjectCompartmentpublic ChangeProjectCompartmentResponse changeProjectCompartment(ChangeProjectCompartmentRequest request) Description copied from interface:AIServiceLanguageMoves a Project into a different compartment.When provided, If-Match is checked against ETag values of the resource. - Specified by:
- changeProjectCompartmentin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createEndpointpublic CreateEndpointResponse createEndpoint(CreateEndpointRequest request) Description copied from interface:AIServiceLanguageCreates a new endpoint and deploy the trained model- Specified by:
- createEndpointin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createJobpublic CreateJobResponse createJob(CreateJobRequest request) Description copied from interface:AIServiceLanguageCreates a new language service async job.- Specified by:
- createJobin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createModelpublic CreateModelResponse createModel(CreateModelRequest request) Description copied from interface:AIServiceLanguageCreates a new model for training and train the model with date provided.- Specified by:
- createModelin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
createProjectpublic CreateProjectResponse createProject(CreateProjectRequest request) Description copied from interface:AIServiceLanguageCreates a new Project.- Specified by:
- createProjectin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteEndpointpublic DeleteEndpointResponse deleteEndpoint(DeleteEndpointRequest request) Description copied from interface:AIServiceLanguageDeletes a provisioned endpoint resource by identifier.This operation fails with a 409 error unless all associated resources are in a DELETED state. You must delete all associated resources before deleting a model. - Specified by:
- deleteEndpointin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteJobpublic DeleteJobResponse deleteJob(DeleteJobRequest request) Description copied from interface:AIServiceLanguageDeletes the language service async Job- Specified by:
- deleteJobin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteModelpublic DeleteModelResponse deleteModel(DeleteModelRequest request) Description copied from interface:AIServiceLanguageDeletes a provisioned model resource by identifier.This operation fails with a 409 error unless all associated resources are in a DELETED state. You must delete all associated resources before deleting a model. - Specified by:
- deleteModelin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
deleteProjectpublic DeleteProjectResponse deleteProject(DeleteProjectRequest request) Description copied from interface:AIServiceLanguageDeletes a Project resource by identifier.This operation fails with a 409 error unless all associated resources (models deployments or data assets) are in a DELETED state. You must delete all associated resources before deleting a project. - Specified by:
- deleteProjectin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
detectDominantLanguagepublic DetectDominantLanguageResponse detectDominantLanguage(DetectDominantLanguageRequest request) Description copied from interface:AIServiceLanguageDeprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.We recommend you replace this API with the batch API, BatchDetectDominantLanguage. The DetectDominantLanguage API returns the detected language and a related confidence score (between 0 and 1). [List of supported languages](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#lang-detect) Limitations: - A record may be up to 1000 characters long. - Specified by:
- detectDominantLanguagein interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
detectLanguageEntitiespublic DetectLanguageEntitiesResponse detectLanguageEntities(DetectLanguageEntitiesRequest request) Description copied from interface:AIServiceLanguageDeprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.We recommend you replace this API with the batch API, BatchDetectLanguageEntities. The DetectLanguageEntities API extracts entities in text records. For each entity, its type and confidence score (between 0 and 1) is returned. Limitations: - A text may be up to 1000 characters long. - Specified by:
- detectLanguageEntitiesin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
detectLanguageKeyPhrasespublic DetectLanguageKeyPhrasesResponse detectLanguageKeyPhrases(DetectLanguageKeyPhrasesRequest request) Description copied from interface:AIServiceLanguageDeprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.We recommend you replace this API with the batch API, BatchDetectLanguageKeyPhrases. The DetectLanguageKeyPhrases API extracts key-phrases in text records. For each key-phrase, a score (between 0 and 1) is returned that highlights the importance of the key-phrase in the context of the text. Limitations: - A record may be up to 1000 characters long. - Specified by:
- detectLanguageKeyPhrasesin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
detectLanguageSentimentspublic DetectLanguageSentimentsResponse detectLanguageSentiments(DetectLanguageSentimentsRequest request) Description copied from interface:AIServiceLanguageDeprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.We recommend you replace this API with the batch API, BatchDetectLanguageSentiments. The DetectLanguageSentiments API extracts aspect-based in text records. For aspect-based sentiment analysis, a set of aspects and their respective sentiment is returned. For sentiment analysis, confidence scores are provided for each of the classes (positive, negative, neutral). Learn more about sentiment analysis [here](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#sentiment). Limitations: - A record may be up to 1000 characters long. - Specified by:
- detectLanguageSentimentsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
detectLanguageTextClassificationpublic DetectLanguageTextClassificationResponse detectLanguageTextClassification(DetectLanguageTextClassificationRequest request) Description copied from interface:AIServiceLanguageDeprecated: This API will be retired Tuesday, 10 Oct 2023 00:00:00 GMT.We recommend you replace this API with the batch API, BatchDetectLanguageTextClassification. The DetectLanguageTextClassification API automatically classifies text into a set of pre-determined classes and sub-classes. A single class/subclass is returned for each record classified. Learn more about text classification [here](https://docs.oracle.com/iaas/language/using/pretrain-models.htm#text-class). Limitations: - A record may be up to 1000 characters long. - Specified by:
- detectLanguageTextClassificationin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getEndpointpublic GetEndpointResponse getEndpoint(GetEndpointRequest request) Description copied from interface:AIServiceLanguageGets an endpoint by identifier- Specified by:
- getEndpointin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getJobpublic GetJobResponse getJob(GetJobRequest request) Description copied from interface:AIServiceLanguageGets a language service async job- Specified by:
- getJobin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getModelpublic GetModelResponse getModel(GetModelRequest request) Description copied from interface:AIServiceLanguageGets a model by identifier- Specified by:
- getModelin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getModelTypepublic GetModelTypeResponse getModelType(GetModelTypeRequest request) Description copied from interface:AIServiceLanguageGets model capabilities- Specified by:
- getModelTypein interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getProjectpublic GetProjectResponse getProject(GetProjectRequest request) Description copied from interface:AIServiceLanguageGets a Project by identifier- Specified by:
- getProjectin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getWorkRequestpublic GetWorkRequestResponse getWorkRequest(GetWorkRequestRequest request) Description copied from interface:AIServiceLanguageGets the status of the work request with the given ID.- Specified by:
- getWorkRequestin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listEndpointspublic ListEndpointsResponse listEndpoints(ListEndpointsRequest request) Description copied from interface:AIServiceLanguageReturns a list of Endpoints.- Specified by:
- listEndpointsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listEvaluationResultspublic ListEvaluationResultsResponse listEvaluationResults(ListEvaluationResultsRequest request) Description copied from interface:AIServiceLanguageGet a (paginated) list of evaluation results for a given model.- Specified by:
- listEvaluationResultsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listJobspublic ListJobsResponse listJobs(ListJobsRequest request) Description copied from interface:AIServiceLanguageReturns a list of language service async Jobs.- Specified by:
- listJobsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listModelspublic ListModelsResponse listModels(ListModelsRequest request) Description copied from interface:AIServiceLanguageReturns a list of models.- Specified by:
- listModelsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listProjectspublic ListProjectsResponse listProjects(ListProjectsRequest request) Description copied from interface:AIServiceLanguageReturns a list of Projects.- Specified by:
- listProjectsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listWorkRequestErrorspublic ListWorkRequestErrorsResponse listWorkRequestErrors(ListWorkRequestErrorsRequest request) Description copied from interface:AIServiceLanguageReturn a (paginated) list of errors for a given work request.- Specified by:
- listWorkRequestErrorsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listWorkRequestLogspublic ListWorkRequestLogsResponse listWorkRequestLogs(ListWorkRequestLogsRequest request) Description copied from interface:AIServiceLanguageReturn a (paginated) list of logs for a given work request.- Specified by:
- listWorkRequestLogsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
listWorkRequestspublic ListWorkRequestsResponse listWorkRequests(ListWorkRequestsRequest request) Description copied from interface:AIServiceLanguageLists the work requests in a compartment.- Specified by:
- listWorkRequestsin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateEndpointpublic UpdateEndpointResponse updateEndpoint(UpdateEndpointRequest request) Description copied from interface:AIServiceLanguageUpdate the Endpoint identified by the id- Specified by:
- updateEndpointin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateJobpublic UpdateJobResponse updateJob(UpdateJobRequest request) Description copied from interface:AIServiceLanguageUpdates the language service async Job- Specified by:
- updateJobin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateModelpublic UpdateModelResponse updateModel(UpdateModelRequest request) Description copied from interface:AIServiceLanguageUpdates the model- Specified by:
- updateModelin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
updateProjectpublic UpdateProjectResponse updateProject(UpdateProjectRequest request) Description copied from interface:AIServiceLanguageUpdates the Project- Specified by:
- updateProjectin interface- AIServiceLanguage
- Parameters:
- request- The request object containing the details to send
- Returns:
- A response object containing details about the completed operation
 
 - 
getWaiterspublic AIServiceLanguageWaiters getWaiters() Description copied from interface:AIServiceLanguageGets the pre-configured waiters available for resources for this service.- Specified by:
- getWaitersin interface- AIServiceLanguage
- Returns:
- The service waiters.
 
 - 
getPaginatorspublic AIServiceLanguagePaginators getPaginators() Description copied from interface:AIServiceLanguageGets the pre-configured paginators available for list operations in this service which may return multiple pages of data.These paginators provide an Iterableinterface so that service responses, or resources/records, can be iterated through without having to manually deal with pagination and page tokens.- Specified by:
- getPaginatorsin interface- AIServiceLanguage
- Returns:
- The service paginators.
 
 - 
getDefaultConfiguratorprotected ClientConfigurator getDefaultConfigurator() 
 - 
useRealmSpecificEndpointTemplatepublic void useRealmSpecificEndpointTemplate(boolean useOfRealmSpecificEndpointTemplateEnabled) This method should be used to enable or disable the use of realm-specific endpoint template.The default value is null. To enable the use of endpoint template defined for the realm in use, set the flag to true To disable the use of endpoint template defined for the realm in use, set the flag to false - Parameters:
- useOfRealmSpecificEndpointTemplateEnabled- This flag can be set to true or false to enable or disable the use of realm-specific endpoint template respectively
 
 - 
populateServiceParametersInEndpointpublic final void populateServiceParametersInEndpoint(String endpoint, Map<String,Object> requiredParametersMap) Populate the parameters in the endpoint with its corresponding value and update the base endpoint.The value will be populated iff the parameter in endpoint is a required request path parameter or a required request query parameter. If not, the parameter in the endpoint will be ignored and left blank. - Parameters:
- endpoint- The endpoint template in use
- requiredParametersMap- Map of parameter name as key and value set in request path or query parameter as value
 
 - 
updateBaseEndpointpublic final void updateBaseEndpoint(String endpoint) This method should be used for parameterized endpoint templates only.This does not include {region} and {secondLevelDomain} parameters. - Parameters:
- endpoint- The updated endpoint to use
 
 - 
setEndpointpublic final void setEndpoint(String endpoint) 
 - 
getEndpointpublic final String getEndpoint() 
 - 
refreshClientpublic final void refreshClient() Rebuild the backingHttpClient.This will call ClientConfigurators again, and can be used to e.g. refresh the SSL certificate.
 - 
closepublic final void close() - Specified by:
- closein interface- AutoCloseable
 
 - 
getClientCommonLibraryVersionpublic String getClientCommonLibraryVersion() 
 
- 
 
-