public static final class TranslationServiceGrpc.TranslationServiceStub extends AbstractAsyncStub<TranslationServiceGrpc.TranslationServiceStub>
A stub to allow clients to do asynchronous rpc calls to service TranslationService.
Provides natural language translation operations.
Inheritance
java.lang.Object > io.grpc.stub.AbstractStub > io.grpc.stub.AbstractAsyncStub > TranslationServiceGrpc.TranslationServiceStubMethods
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> |
build(Channel channel, CallOptions callOptions)
protected TranslationServiceGrpc.TranslationServiceStub build(Channel channel, CallOptions callOptions)
Parameters | |
---|---|
Name | Description |
channel | io.grpc.Channel |
callOptions | io.grpc.CallOptions |
Returns | |
---|---|
Type | Description |
TranslationServiceGrpc.TranslationServiceStub |
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)