- 2.53.0 (latest)
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public abstract static class TranslationServiceGrpc.TranslationServiceImplBase implements BindableService
Provides natural language translation operations.
Implements
io.grpc.BindableServiceConstructors
TranslationServiceImplBase()
public TranslationServiceImplBase()
Methods
batchTranslateDocument(BatchTranslateDocumentRequest request, StreamObserver<Operation> responseObserver)
public void batchTranslateDocument(BatchTranslateDocumentRequest request, StreamObserver<Operation> responseObserver)
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.
Parameters | |
---|---|
Name | Description |
request | BatchTranslateDocumentRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |
batchTranslateText(BatchTranslateTextRequest request, StreamObserver<Operation> responseObserver)
public void batchTranslateText(BatchTranslateTextRequest request, StreamObserver<Operation> responseObserver)
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.
Parameters | |
---|---|
Name | Description |
request | BatchTranslateTextRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |
bindService()
public final ServerServiceDefinition bindService()
Returns | |
---|---|
Type | Description |
io.grpc.ServerServiceDefinition |
createGlossary(CreateGlossaryRequest request, StreamObserver<Operation> responseObserver)
public void createGlossary(CreateGlossaryRequest request, StreamObserver<Operation> responseObserver)
Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.
Parameters | |
---|---|
Name | Description |
request | CreateGlossaryRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |
deleteGlossary(DeleteGlossaryRequest request, StreamObserver<Operation> responseObserver)
public void deleteGlossary(DeleteGlossaryRequest request, StreamObserver<Operation> responseObserver)
Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.
Parameters | |
---|---|
Name | Description |
request | DeleteGlossaryRequest |
responseObserver | io.grpc.stub.StreamObserver<Operation> |
detectLanguage(DetectLanguageRequest request, StreamObserver<DetectLanguageResponse> responseObserver)
public void detectLanguage(DetectLanguageRequest request, StreamObserver<DetectLanguageResponse> responseObserver)
Detects the language of text within a request.
Parameters | |
---|---|
Name | Description |
request | DetectLanguageRequest |
responseObserver | io.grpc.stub.StreamObserver<DetectLanguageResponse> |
getGlossary(GetGlossaryRequest request, StreamObserver<Glossary> responseObserver)
public void getGlossary(GetGlossaryRequest request, StreamObserver<Glossary> responseObserver)
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
Parameters | |
---|---|
Name | Description |
request | GetGlossaryRequest |
responseObserver | io.grpc.stub.StreamObserver<Glossary> |
getSupportedLanguages(GetSupportedLanguagesRequest request, StreamObserver<SupportedLanguages> responseObserver)
public void getSupportedLanguages(GetSupportedLanguagesRequest request, StreamObserver<SupportedLanguages> responseObserver)
Returns a list of supported languages for translation.
Parameters | |
---|---|
Name | Description |
request | GetSupportedLanguagesRequest |
responseObserver | io.grpc.stub.StreamObserver<SupportedLanguages> |
listGlossaries(ListGlossariesRequest request, StreamObserver<ListGlossariesResponse> responseObserver)
public void listGlossaries(ListGlossariesRequest request, StreamObserver<ListGlossariesResponse> responseObserver)
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
Parameters | |
---|---|
Name | Description |
request | ListGlossariesRequest |
responseObserver | io.grpc.stub.StreamObserver<ListGlossariesResponse> |
translateDocument(TranslateDocumentRequest request, StreamObserver<TranslateDocumentResponse> responseObserver)
public void translateDocument(TranslateDocumentRequest request, StreamObserver<TranslateDocumentResponse> responseObserver)
Translates documents in synchronous mode.
Parameters | |
---|---|
Name | Description |
request | TranslateDocumentRequest |
responseObserver | io.grpc.stub.StreamObserver<TranslateDocumentResponse> |
translateText(TranslateTextRequest request, StreamObserver<TranslateTextResponse> responseObserver)
public void translateText(TranslateTextRequest request, StreamObserver<TranslateTextResponse> responseObserver)
Translates input text and returns translated text.
Parameters | |
---|---|
Name | Description |
request | TranslateTextRequest |
responseObserver | io.grpc.stub.StreamObserver<TranslateTextResponse> |