public static final class TranslationServiceGrpc.TranslationServiceBlockingStub extends AbstractBlockingStub<TranslationServiceGrpc.TranslationServiceBlockingStub>
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.TranslationServiceBlockingStub
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
adaptiveMtTranslate(AdaptiveMtTranslateRequest request)
public AdaptiveMtTranslateResponse adaptiveMtTranslate(AdaptiveMtTranslateRequest request)
Translate text using Adaptive MT.
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.
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.
build(Channel channel, CallOptions callOptions)
protected TranslationServiceGrpc.TranslationServiceBlockingStub 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)
createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request)
public AdaptiveMtDataset createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request)
Creates an Adaptive MT dataset.
createDataset(CreateDatasetRequest request)
public Operation createDataset(CreateDatasetRequest request)
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.
createGlossaryEntry(CreateGlossaryEntryRequest request)
public GlossaryEntry createGlossaryEntry(CreateGlossaryEntryRequest request)
Creates a glossary entry.
createModel(CreateModelRequest request)
public Operation createModel(CreateModelRequest request)
deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request)
public Empty deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request)
Deletes an Adaptive MT dataset, including all its entries and associated
metadata.
Returns |
Type |
Description |
Empty |
|
deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request)
public Empty deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request)
Deletes an AdaptiveMtFile along with its sentences.
Returns |
Type |
Description |
Empty |
|
deleteDataset(DeleteDatasetRequest request)
public Operation deleteDataset(DeleteDatasetRequest request)
Deletes a dataset and all of its contents.
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.
deleteGlossaryEntry(DeleteGlossaryEntryRequest request)
public Empty deleteGlossaryEntry(DeleteGlossaryEntryRequest request)
Deletes a single entry from the glossary
Returns |
Type |
Description |
Empty |
|
deleteModel(DeleteModelRequest request)
public Operation deleteModel(DeleteModelRequest request)
detectLanguage(DetectLanguageRequest request)
public DetectLanguageResponse detectLanguage(DetectLanguageRequest request)
Detects the language of text within a request.
exportData(ExportDataRequest request)
public Operation exportData(ExportDataRequest request)
Exports dataset's data to the provided output location.
getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request)
public AdaptiveMtDataset getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request)
Gets the Adaptive MT dataset.
getAdaptiveMtFile(GetAdaptiveMtFileRequest request)
public AdaptiveMtFile getAdaptiveMtFile(GetAdaptiveMtFileRequest request)
getDataset(GetDatasetRequest request)
public Dataset getDataset(GetDatasetRequest request)
getGlossary(GetGlossaryRequest request)
public Glossary getGlossary(GetGlossaryRequest request)
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't
exist.
getGlossaryEntry(GetGlossaryEntryRequest request)
public GlossaryEntry getGlossaryEntry(GetGlossaryEntryRequest request)
Gets a single glossary entry by the given id.
getModel(GetModelRequest request)
public Model getModel(GetModelRequest request)
Returns |
Type |
Description |
Model |
|
getSupportedLanguages(GetSupportedLanguagesRequest request)
public SupportedLanguages getSupportedLanguages(GetSupportedLanguagesRequest request)
Returns a list of supported languages for translation.
importAdaptiveMtFile(ImportAdaptiveMtFileRequest request)
public ImportAdaptiveMtFileResponse importAdaptiveMtFile(ImportAdaptiveMtFileRequest request)
Imports an AdaptiveMtFile and adds all of its sentences into the
AdaptiveMtDataset.
importData(ImportDataRequest request)
public Operation importData(ImportDataRequest request)
Import sentence pairs into translation Dataset.
listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request)
public ListAdaptiveMtDatasetsResponse listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request)
Lists all Adaptive MT datasets for which the caller has read permission.
listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request)
public ListAdaptiveMtFilesResponse listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request)
Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request)
public ListAdaptiveMtSentencesResponse listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request)
Lists all AdaptiveMtSentences under a given file/dataset.
listDatasets(ListDatasetsRequest request)
public ListDatasetsResponse listDatasets(ListDatasetsRequest request)
listExamples(ListExamplesRequest request)
public ListExamplesResponse listExamples(ListExamplesRequest request)
Lists sentence pairs in the dataset.
listGlossaries(ListGlossariesRequest request)
public ListGlossariesResponse listGlossaries(ListGlossariesRequest request)
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't
exist.
listGlossaryEntries(ListGlossaryEntriesRequest request)
public ListGlossaryEntriesResponse listGlossaryEntries(ListGlossaryEntriesRequest request)
List the entries for the glossary.
listModels(ListModelsRequest request)
public ListModelsResponse listModels(ListModelsRequest request)
romanizeText(RomanizeTextRequest request)
public RomanizeTextResponse romanizeText(RomanizeTextRequest request)
Romanize input text written in non-Latin scripts to Latin text.
translateDocument(TranslateDocumentRequest request)
public TranslateDocumentResponse translateDocument(TranslateDocumentRequest request)
Translates documents in synchronous mode.
translateText(TranslateTextRequest request)
public TranslateTextResponse translateText(TranslateTextRequest request)
Translates input text and returns translated text.
updateGlossary(UpdateGlossaryRequest request)
public Operation updateGlossary(UpdateGlossaryRequest request)
Updates a glossary. A LRO is used since the update can be async if the
glossary's entry file is updated.
updateGlossaryEntry(UpdateGlossaryEntryRequest request)
public GlossaryEntry updateGlossaryEntry(UpdateGlossaryEntryRequest request)
Updates a glossary entry.