public static final class TranslationServiceGrpc.TranslationServiceBlockingStub extends AbstractBlockingStub<TranslationServiceGrpc.TranslationServiceBlockingStub>
Provides natural language translation operations.
AbstractStub.StubFactory<T extends AbstractStub<T>>
Modifier and Type | Method and Description |
---|---|
Operation |
batchTranslateDocument(BatchTranslateDocumentRequest request)
Translates a large volume of document in asynchronous batch mode.
|
Operation |
batchTranslateText(BatchTranslateTextRequest request)
Translates a large volume of text in asynchronous batch mode.
|
protected TranslationServiceGrpc.TranslationServiceBlockingStub |
build(Channel channel,
CallOptions callOptions) |
Operation |
createGlossary(CreateGlossaryRequest request)
Creates a glossary and returns the long-running operation.
|
Operation |
deleteGlossary(DeleteGlossaryRequest request)
Deletes a glossary, or cancels glossary construction
if the glossary isn't created yet.
|
DetectLanguageResponse |
detectLanguage(DetectLanguageRequest request)
Detects the language of text within a request.
|
Glossary |
getGlossary(GetGlossaryRequest request)
Gets a glossary.
|
SupportedLanguages |
getSupportedLanguages(GetSupportedLanguagesRequest request)
Returns a list of supported languages for translation.
|
ListGlossariesResponse |
listGlossaries(ListGlossariesRequest request)
Lists glossaries in a project.
|
TranslateDocumentResponse |
translateDocument(TranslateDocumentRequest request)
Translates documents in synchronous mode.
|
TranslateTextResponse |
translateText(TranslateTextRequest request)
Translates input text and returns translated text.
|
newStub, newStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOption, withWaitForReady
protected TranslationServiceGrpc.TranslationServiceBlockingStub build(Channel channel, CallOptions callOptions)
build
in class AbstractStub<TranslationServiceGrpc.TranslationServiceBlockingStub>
public TranslateTextResponse translateText(TranslateTextRequest request)
Translates input text and returns translated text.
public DetectLanguageResponse detectLanguage(DetectLanguageRequest request)
Detects the language of text within a request.
public SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request)
Returns a list of supported languages for translation.
public TranslateDocumentResponse translateDocument(TranslateDocumentRequest request)
Translates documents in synchronous mode.
public 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 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.
public Operation createGlossary(CreateGlossaryRequest request)
Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.
public ListGlossariesResponse listGlossaries(ListGlossariesRequest request)
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
public Glossary getGlossary(GetGlossaryRequest request)
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
public 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 © 2022 Google LLC. All rights reserved.