Package com.google.cloud.translate.v3
Class TranslationServiceGrpc.TranslationServiceFutureStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<TranslationServiceGrpc.TranslationServiceFutureStub>
com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceFutureStub
- Enclosing class:
- TranslationServiceGrpc
public static final class TranslationServiceGrpc.TranslationServiceFutureStub
extends io.grpc.stub.AbstractFutureStub<TranslationServiceGrpc.TranslationServiceFutureStub>
A stub to allow clients to do ListenableFuture-style rpc calls to service TranslationService.
Provides natural language translation operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptioncom.google.common.util.concurrent.ListenableFuture<AdaptiveMtTranslateResponse>Translate text using Adaptive MT.com.google.common.util.concurrent.ListenableFuture<Operation>Translates a large volume of document in asynchronous batch mode.com.google.common.util.concurrent.ListenableFuture<Operation>Translates a large volume of text in asynchronous batch mode.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) com.google.common.util.concurrent.ListenableFuture<AdaptiveMtDataset>Creates an Adaptive MT dataset.com.google.common.util.concurrent.ListenableFuture<Operation>createDataset(CreateDatasetRequest request) Creates a Dataset.com.google.common.util.concurrent.ListenableFuture<Operation>createGlossary(CreateGlossaryRequest request) Creates a glossary and returns the long-running operation.com.google.common.util.concurrent.ListenableFuture<GlossaryEntry>Creates a glossary entry.com.google.common.util.concurrent.ListenableFuture<Operation>createModel(CreateModelRequest request) Creates a Model.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Deletes an Adaptive MT dataset, including all its entries and associated metadata.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Deletes an AdaptiveMtFile along with its sentences.com.google.common.util.concurrent.ListenableFuture<Operation>deleteDataset(DeleteDatasetRequest request) Deletes a dataset and all of its contents.com.google.common.util.concurrent.ListenableFuture<Operation>deleteGlossary(DeleteGlossaryRequest request) Deletes a glossary, or cancels glossary construction if the glossary isn't created yet.com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty>Deletes a single entry from the glossarycom.google.common.util.concurrent.ListenableFuture<Operation>deleteModel(DeleteModelRequest request) Deletes a model.com.google.common.util.concurrent.ListenableFuture<DetectLanguageResponse>detectLanguage(DetectLanguageRequest request) Detects the language of text within a request.com.google.common.util.concurrent.ListenableFuture<Operation>exportData(ExportDataRequest request) Exports dataset's data to the provided output location.com.google.common.util.concurrent.ListenableFuture<AdaptiveMtDataset>Gets the Adaptive MT dataset.com.google.common.util.concurrent.ListenableFuture<AdaptiveMtFile>Gets and AdaptiveMtFilecom.google.common.util.concurrent.ListenableFuture<Dataset>getDataset(GetDatasetRequest request) Gets a Dataset.com.google.common.util.concurrent.ListenableFuture<Glossary>getGlossary(GetGlossaryRequest request) Gets a glossary.com.google.common.util.concurrent.ListenableFuture<GlossaryEntry>getGlossaryEntry(GetGlossaryEntryRequest request) Gets a single glossary entry by the given id.com.google.common.util.concurrent.ListenableFuture<Model>getModel(GetModelRequest request) Gets a model.com.google.common.util.concurrent.ListenableFuture<SupportedLanguages>Returns a list of supported languages for translation.com.google.common.util.concurrent.ListenableFuture<ImportAdaptiveMtFileResponse>Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.com.google.common.util.concurrent.ListenableFuture<Operation>importData(ImportDataRequest request) Import sentence pairs into translation Dataset.com.google.common.util.concurrent.ListenableFuture<ListAdaptiveMtDatasetsResponse>Lists all Adaptive MT datasets for which the caller has read permission.com.google.common.util.concurrent.ListenableFuture<ListAdaptiveMtFilesResponse>Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.com.google.common.util.concurrent.ListenableFuture<ListAdaptiveMtSentencesResponse>Lists all AdaptiveMtSentences under a given file/dataset.com.google.common.util.concurrent.ListenableFuture<ListDatasetsResponse>listDatasets(ListDatasetsRequest request) Lists datasets.com.google.common.util.concurrent.ListenableFuture<ListExamplesResponse>listExamples(ListExamplesRequest request) Lists sentence pairs in the dataset.com.google.common.util.concurrent.ListenableFuture<ListGlossariesResponse>listGlossaries(ListGlossariesRequest request) Lists glossaries in a project.com.google.common.util.concurrent.ListenableFuture<ListGlossaryEntriesResponse>List the entries for the glossary.com.google.common.util.concurrent.ListenableFuture<ListModelsResponse>listModels(ListModelsRequest request) Lists models.com.google.common.util.concurrent.ListenableFuture<RomanizeTextResponse>romanizeText(RomanizeTextRequest request) Romanize input text written in non-Latin scripts to Latin text.com.google.common.util.concurrent.ListenableFuture<TranslateDocumentResponse>Translates documents in synchronous mode.com.google.common.util.concurrent.ListenableFuture<TranslateTextResponse>translateText(TranslateTextRequest request) Translates input text and returns translated text.com.google.common.util.concurrent.ListenableFuture<Operation>updateGlossary(UpdateGlossaryRequest request) Updates a glossary.com.google.common.util.concurrent.ListenableFuture<GlossaryEntry>Updates a glossary entry.Methods inherited from class io.grpc.stub.AbstractFutureStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected TranslationServiceGrpc.TranslationServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TranslationServiceGrpc.TranslationServiceFutureStub>
-
translateText
public com.google.common.util.concurrent.ListenableFuture<TranslateTextResponse> translateText(TranslateTextRequest request) Translates input text and returns translated text.
-
romanizeText
public com.google.common.util.concurrent.ListenableFuture<RomanizeTextResponse> romanizeText(RomanizeTextRequest request) Romanize input text written in non-Latin scripts to Latin text.
-
detectLanguage
public com.google.common.util.concurrent.ListenableFuture<DetectLanguageResponse> detectLanguage(DetectLanguageRequest request) Detects the language of text within a request.
-
getSupportedLanguages
public com.google.common.util.concurrent.ListenableFuture<SupportedLanguages> getSupportedLanguages(GetSupportedLanguagesRequest request) Returns a list of supported languages for translation.
-
translateDocument
public com.google.common.util.concurrent.ListenableFuture<TranslateDocumentResponse> translateDocument(TranslateDocumentRequest request) Translates documents in synchronous mode.
-
batchTranslateText
public com.google.common.util.concurrent.ListenableFuture<Operation> batchTranslateText(BatchTranslateTextRequest request) Translates a large volume of text in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.
-
batchTranslateDocument
public com.google.common.util.concurrent.ListenableFuture<Operation> batchTranslateDocument(BatchTranslateDocumentRequest request) Translates a large volume of document in asynchronous batch mode. This function provides real-time output as the inputs are being processed. If caller cancels a request, the partial results (for an input file, it's all or nothing) may still be available on the specified output location. This call returns immediately and you can use google.longrunning.Operation.name to poll the status of the call.
-
createGlossary
public com.google.common.util.concurrent.ListenableFuture<Operation> createGlossary(CreateGlossaryRequest request) Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.
-
updateGlossary
public com.google.common.util.concurrent.ListenableFuture<Operation> updateGlossary(UpdateGlossaryRequest request) Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated.
-
listGlossaries
public com.google.common.util.concurrent.ListenableFuture<ListGlossariesResponse> listGlossaries(ListGlossariesRequest request) Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
-
getGlossary
public com.google.common.util.concurrent.ListenableFuture<Glossary> getGlossary(GetGlossaryRequest request) Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
-
deleteGlossary
public com.google.common.util.concurrent.ListenableFuture<Operation> deleteGlossary(DeleteGlossaryRequest request) Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.
-
getGlossaryEntry
public com.google.common.util.concurrent.ListenableFuture<GlossaryEntry> getGlossaryEntry(GetGlossaryEntryRequest request) Gets a single glossary entry by the given id.
-
listGlossaryEntries
public com.google.common.util.concurrent.ListenableFuture<ListGlossaryEntriesResponse> listGlossaryEntries(ListGlossaryEntriesRequest request) List the entries for the glossary.
-
createGlossaryEntry
public com.google.common.util.concurrent.ListenableFuture<GlossaryEntry> createGlossaryEntry(CreateGlossaryEntryRequest request) Creates a glossary entry.
-
updateGlossaryEntry
public com.google.common.util.concurrent.ListenableFuture<GlossaryEntry> updateGlossaryEntry(UpdateGlossaryEntryRequest request) Updates a glossary entry.
-
deleteGlossaryEntry
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteGlossaryEntry(DeleteGlossaryEntryRequest request) Deletes a single entry from the glossary
-
createDataset
public com.google.common.util.concurrent.ListenableFuture<Operation> createDataset(CreateDatasetRequest request) Creates a Dataset.
-
getDataset
public com.google.common.util.concurrent.ListenableFuture<Dataset> getDataset(GetDatasetRequest request) Gets a Dataset.
-
listDatasets
public com.google.common.util.concurrent.ListenableFuture<ListDatasetsResponse> listDatasets(ListDatasetsRequest request) Lists datasets.
-
deleteDataset
public com.google.common.util.concurrent.ListenableFuture<Operation> deleteDataset(DeleteDatasetRequest request) Deletes a dataset and all of its contents.
-
createAdaptiveMtDataset
public com.google.common.util.concurrent.ListenableFuture<AdaptiveMtDataset> createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request) Creates an Adaptive MT dataset.
-
deleteAdaptiveMtDataset
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request) Deletes an Adaptive MT dataset, including all its entries and associated metadata.
-
getAdaptiveMtDataset
public com.google.common.util.concurrent.ListenableFuture<AdaptiveMtDataset> getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request) Gets the Adaptive MT dataset.
-
listAdaptiveMtDatasets
public com.google.common.util.concurrent.ListenableFuture<ListAdaptiveMtDatasetsResponse> listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request) Lists all Adaptive MT datasets for which the caller has read permission.
-
adaptiveMtTranslate
public com.google.common.util.concurrent.ListenableFuture<AdaptiveMtTranslateResponse> adaptiveMtTranslate(AdaptiveMtTranslateRequest request) Translate text using Adaptive MT.
-
getAdaptiveMtFile
public com.google.common.util.concurrent.ListenableFuture<AdaptiveMtFile> getAdaptiveMtFile(GetAdaptiveMtFileRequest request) Gets and AdaptiveMtFile
-
deleteAdaptiveMtFile
public com.google.common.util.concurrent.ListenableFuture<com.google.protobuf.Empty> deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request) Deletes an AdaptiveMtFile along with its sentences.
-
importAdaptiveMtFile
public com.google.common.util.concurrent.ListenableFuture<ImportAdaptiveMtFileResponse> importAdaptiveMtFile(ImportAdaptiveMtFileRequest request) Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
-
listAdaptiveMtFiles
public com.google.common.util.concurrent.ListenableFuture<ListAdaptiveMtFilesResponse> listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request) Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
-
listAdaptiveMtSentences
public com.google.common.util.concurrent.ListenableFuture<ListAdaptiveMtSentencesResponse> listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request) Lists all AdaptiveMtSentences under a given file/dataset.
-
importData
public com.google.common.util.concurrent.ListenableFuture<Operation> importData(ImportDataRequest request) Import sentence pairs into translation Dataset.
-
exportData
public com.google.common.util.concurrent.ListenableFuture<Operation> exportData(ExportDataRequest request) Exports dataset's data to the provided output location.
-
listExamples
public com.google.common.util.concurrent.ListenableFuture<ListExamplesResponse> listExamples(ListExamplesRequest request) Lists sentence pairs in the dataset.
-
createModel
public com.google.common.util.concurrent.ListenableFuture<Operation> createModel(CreateModelRequest request) Creates a Model.
-
listModels
public com.google.common.util.concurrent.ListenableFuture<ListModelsResponse> listModels(ListModelsRequest request) Lists models.
-
getModel
Gets a model.
-
deleteModel
public com.google.common.util.concurrent.ListenableFuture<Operation> deleteModel(DeleteModelRequest request) Deletes a model.
-