public static final class TranslationServiceGrpc.TranslationServiceFutureStub extends io.grpc.stub.AbstractStub<TranslationServiceGrpc.TranslationServiceFutureStub>
Provides natural language translation operations.
| Modifier and Type | Method and Description |
|---|---|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
batchTranslateText(BatchTranslateTextRequest request)
Translates a large volume of text in asynchronous batch mode.
|
protected TranslationServiceGrpc.TranslationServiceFutureStub |
build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) |
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
createGlossary(CreateGlossaryRequest request)
Creates a glossary and returns the long-running operation.
|
com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> |
deleteGlossary(DeleteGlossaryRequest request)
Deletes a glossary, or cancels glossary construction
if the glossary isn't created yet.
|
com.google.common.util.concurrent.ListenableFuture<DetectLanguageResponse> |
detectLanguage(DetectLanguageRequest request)
Detects the language of text within a request.
|
com.google.common.util.concurrent.ListenableFuture<Glossary> |
getGlossary(GetGlossaryRequest request)
Gets a glossary.
|
com.google.common.util.concurrent.ListenableFuture<SupportedLanguages> |
getSupportedLanguages(GetSupportedLanguagesRequest request)
Returns a list of supported languages for translation.
|
com.google.common.util.concurrent.ListenableFuture<ListGlossariesResponse> |
listGlossaries(ListGlossariesRequest request)
Lists glossaries in a project.
|
com.google.common.util.concurrent.ListenableFuture<TranslateTextResponse> |
translateText(TranslateTextRequest request)
Translates input text and returns translated text.
|
protected TranslationServiceGrpc.TranslationServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions)
build in class io.grpc.stub.AbstractStub<TranslationServiceGrpc.TranslationServiceFutureStub>public com.google.common.util.concurrent.ListenableFuture<TranslateTextResponse> translateText(TranslateTextRequest request)
Translates input text and returns translated text.
public com.google.common.util.concurrent.ListenableFuture<DetectLanguageResponse> detectLanguage(DetectLanguageRequest request)
Detects the language of text within a request.
public com.google.common.util.concurrent.ListenableFuture<SupportedLanguages> getSupportedLanguages(GetSupportedLanguagesRequest request)
Returns a list of supported languages for translation.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.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.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.Operation> createGlossary(CreateGlossaryRequest request)
Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.
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.
public com.google.common.util.concurrent.ListenableFuture<Glossary> getGlossary(GetGlossaryRequest request)
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
public com.google.common.util.concurrent.ListenableFuture<com.google.longrunning.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.
Copyright © 2019 Google LLC. All rights reserved.