Class TranslationServiceGrpc.TranslationServiceFutureStub

java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractFutureStub<TranslationServiceGrpc.TranslationServiceFutureStub>
com.google.cloud.translate.v3beta1.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.
 
  • Method Details

    • build

      protected TranslationServiceGrpc.TranslationServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
      Specified by:
      build in class io.grpc.stub.AbstractStub<TranslationServiceGrpc.TranslationServiceFutureStub>
    • translateText

      public com.google.common.util.concurrent.ListenableFuture<TranslateTextResponse> translateText(TranslateTextRequest request)
       Translates input text and returns translated 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.
       
    • 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.
       
    • refineText

      public com.google.common.util.concurrent.ListenableFuture<RefineTextResponse> refineText(RefineTextRequest request)
       Refines the input translated text to improve the quality.