Class TranslationServiceGrpc.TranslationServiceBlockingV2Stub (2.80.0)
Version latestkeyboard_arrow_down
public static final class TranslationServiceGrpc . TranslationServiceBlockingV2Stub extends AbstractBlockingStub<TranslationServiceGrpc . TranslationServiceBlockingV2Stub >
A stub to allow clients to do synchronous rpc calls to service TranslationService.
Provides natural language translation operations.
Inheritance
java.lang.Object >
io.grpc.stub.AbstractStub >
io.grpc.stub.AbstractBlockingStub >
TranslationServiceGrpc.TranslationServiceBlockingV2Stub
Inherited Members
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel)
io.grpc.stub.AbstractBlockingStub.<T>newStub(io.grpc.stub.AbstractStub.StubFactory<T>,io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.<T>withOption(io.grpc.CallOptions.Key<T>,T)
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
io.grpc.stub.AbstractStub.getCallOptions()
io.grpc.stub.AbstractStub.getChannel()
io.grpc.stub.AbstractStub.withCallCredentials(io.grpc.CallCredentials)
io.grpc.stub.AbstractStub.withChannel(io.grpc.Channel)
io.grpc.stub.AbstractStub.withCompression(java.lang.String)
io.grpc.stub.AbstractStub.withDeadline(io.grpc.Deadline)
io.grpc.stub.AbstractStub.withDeadlineAfter(java.time.Duration)
io.grpc.stub.AbstractStub.withDeadlineAfter(long,java.util.concurrent.TimeUnit)
io.grpc.stub.AbstractStub.withExecutor(java.util.concurrent.Executor)
io.grpc.stub.AbstractStub.withInterceptors(io.grpc.ClientInterceptor...)
io.grpc.stub.AbstractStub.withMaxInboundMessageSize(int)
io.grpc.stub.AbstractStub.withMaxOutboundMessageSize(int)
io.grpc.stub.AbstractStub.withOnReadyThreshold(int)
io.grpc.stub.AbstractStub.withWaitForReady()
Methods
batchTranslateDocument(BatchTranslateDocumentRequest request)
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.
Exceptions
Type
Description
io.grpc.StatusException
batchTranslateText(BatchTranslateTextRequest request)
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.
Exceptions
Type
Description
io.grpc.StatusException
build(Channel channel, CallOptions callOptions)
protected TranslationServiceGrpc . TranslationServiceBlockingV2Stub build ( Channel channel , CallOptions callOptions )
Parameters
Name
Description
channel
io.grpc.Channel
callOptions
io.grpc.CallOptions
Overrides
io.grpc.stub.AbstractStub.build(io.grpc.Channel,io.grpc.CallOptions)
createGlossary(CreateGlossaryRequest request)
public Operation createGlossary ( CreateGlossaryRequest request )
Creates a glossary and returns the long-running operation. Returns
NOT_FOUND, if the project doesn't exist.
Exceptions
Type
Description
io.grpc.StatusException
deleteGlossary(DeleteGlossaryRequest request)
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.
Exceptions
Type
Description
io.grpc.StatusException
detectLanguage(DetectLanguageRequest request)
public DetectLanguageResponse detectLanguage ( DetectLanguageRequest request )
Detects the language of text within a request.
Exceptions
Type
Description
io.grpc.StatusException
getGlossary(GetGlossaryRequest request)
public Glossary getGlossary ( GetGlossaryRequest request )
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
exist.
Exceptions
Type
Description
io.grpc.StatusException
getSupportedLanguages(GetSupportedLanguagesRequest request)
public SupportedLanguages getSupportedLanguages ( GetSupportedLanguagesRequest request )
Returns a list of supported languages for translation.
Exceptions
Type
Description
io.grpc.StatusException
listGlossaries(ListGlossariesRequest request)
public ListGlossariesResponse listGlossaries ( ListGlossariesRequest request )
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
exist.
Exceptions
Type
Description
io.grpc.StatusException
refineText(RefineTextRequest request)
public RefineTextResponse refineText ( RefineTextRequest request )
Refines the input translated text to improve the quality.
Exceptions
Type
Description
io.grpc.StatusException
translateDocument(TranslateDocumentRequest request)
public TranslateDocumentResponse translateDocument ( TranslateDocumentRequest request )
Translates documents in synchronous mode.
Exceptions
Type
Description
io.grpc.StatusException
translateText(TranslateTextRequest request)
public TranslateTextResponse translateText ( TranslateTextRequest request )
Translates input text and returns translated text.
Exceptions
Type
Description
io.grpc.StatusException
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-11-19 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-11-19 UTC."],[],[]]