Package com.google.cloud.translate.v3
Class TranslationServiceGrpc.TranslationServiceBlockingStub
java.lang.Object
io.grpc.stub.AbstractStub<S>
io.grpc.stub.AbstractBlockingStub<TranslationServiceGrpc.TranslationServiceBlockingStub>
com.google.cloud.translate.v3.TranslationServiceGrpc.TranslationServiceBlockingStub
- Enclosing class:
- TranslationServiceGrpc
public static final class TranslationServiceGrpc.TranslationServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub<TranslationServiceGrpc.TranslationServiceBlockingStub>
A stub to allow clients to do limited synchronous rpc calls to service TranslationService.
Provides natural language translation operations.
-
Nested Class Summary
Nested classes/interfaces inherited from class io.grpc.stub.AbstractStub
io.grpc.stub.AbstractStub.StubFactory<T extends io.grpc.stub.AbstractStub<T>> -
Method Summary
Modifier and TypeMethodDescriptionTranslate text using Adaptive MT.Translates a large volume of document in asynchronous batch mode.Translates a large volume of text in asynchronous batch mode.build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) Creates an Adaptive MT dataset.createDataset(CreateDatasetRequest request) Creates a Dataset.createGlossary(CreateGlossaryRequest request) Creates a glossary and returns the long-running operation.Creates a glossary entry.createModel(CreateModelRequest request) Creates a Model.com.google.protobuf.EmptyDeletes an Adaptive MT dataset, including all its entries and associated metadata.com.google.protobuf.EmptyDeletes an AdaptiveMtFile along with its sentences.deleteDataset(DeleteDatasetRequest request) Deletes a dataset and all of its contents.deleteGlossary(DeleteGlossaryRequest request) Deletes a glossary, or cancels glossary construction if the glossary isn't created yet.com.google.protobuf.EmptyDeletes a single entry from the glossarydeleteModel(DeleteModelRequest request) Deletes a model.detectLanguage(DetectLanguageRequest request) Detects the language of text within a request.exportData(ExportDataRequest request) Exports dataset's data to the provided output location.Gets the Adaptive MT dataset.Gets and AdaptiveMtFilegetDataset(GetDatasetRequest request) Gets a Dataset.getGlossary(GetGlossaryRequest request) Gets a glossary.getGlossaryEntry(GetGlossaryEntryRequest request) Gets a single glossary entry by the given id.getModel(GetModelRequest request) Gets a model.Returns a list of supported languages for translation.Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.importData(ImportDataRequest request) Import sentence pairs into translation Dataset.Lists all Adaptive MT datasets for which the caller has read permission.Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.Lists all AdaptiveMtSentences under a given file/dataset.listDatasets(ListDatasetsRequest request) Lists datasets.listExamples(ListExamplesRequest request) Lists sentence pairs in the dataset.listGlossaries(ListGlossariesRequest request) Lists glossaries in a project.List the entries for the glossary.listModels(ListModelsRequest request) Lists models.romanizeText(RomanizeTextRequest request) Romanize input text written in non-Latin scripts to Latin text.Translates documents in synchronous mode.translateText(TranslateTextRequest request) Translates input text and returns translated text.updateGlossary(UpdateGlossaryRequest request) Updates a glossary.Updates a glossary entry.Methods inherited from class io.grpc.stub.AbstractBlockingStub
newStub, newStubMethods inherited from class io.grpc.stub.AbstractStub
getCallOptions, getChannel, withCallCredentials, withChannel, withCompression, withDeadline, withDeadlineAfter, withDeadlineAfter, withExecutor, withInterceptors, withMaxInboundMessageSize, withMaxOutboundMessageSize, withOnReadyThreshold, withOption, withWaitForReady
-
Method Details
-
build
protected TranslationServiceGrpc.TranslationServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) - Specified by:
buildin classio.grpc.stub.AbstractStub<TranslationServiceGrpc.TranslationServiceBlockingStub>
-
translateText
Translates input text and returns translated text.
-
romanizeText
Romanize input text written in non-Latin scripts to Latin text.
-
detectLanguage
Detects the language of text within a request.
-
getSupportedLanguages
Returns a list of supported languages for translation.
-
translateDocument
Translates documents in synchronous mode.
-
batchTranslateText
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.
-
batchTranslateDocument
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.
-
createGlossary
Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist.
-
updateGlossary
Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated.
-
listGlossaries
Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist.
-
getGlossary
Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist.
-
deleteGlossary
Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist.
-
getGlossaryEntry
Gets a single glossary entry by the given id.
-
listGlossaryEntries
List the entries for the glossary.
-
createGlossaryEntry
Creates a glossary entry.
-
updateGlossaryEntry
Updates a glossary entry.
-
deleteGlossaryEntry
Deletes a single entry from the glossary
-
createDataset
Creates a Dataset.
-
getDataset
Gets a Dataset.
-
listDatasets
Lists datasets.
-
deleteDataset
Deletes a dataset and all of its contents.
-
createAdaptiveMtDataset
Creates an Adaptive MT dataset.
-
deleteAdaptiveMtDataset
Deletes an Adaptive MT dataset, including all its entries and associated metadata.
-
getAdaptiveMtDataset
Gets the Adaptive MT dataset.
-
listAdaptiveMtDatasets
Lists all Adaptive MT datasets for which the caller has read permission.
-
adaptiveMtTranslate
Translate text using Adaptive MT.
-
getAdaptiveMtFile
Gets and AdaptiveMtFile
-
deleteAdaptiveMtFile
Deletes an AdaptiveMtFile along with its sentences.
-
importAdaptiveMtFile
Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
-
listAdaptiveMtFiles
Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
-
listAdaptiveMtSentences
public ListAdaptiveMtSentencesResponse listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request) Lists all AdaptiveMtSentences under a given file/dataset.
-
importData
Import sentence pairs into translation Dataset.
-
exportData
Exports dataset's data to the provided output location.
-
listExamples
Lists sentence pairs in the dataset.
-
createModel
Creates a Model.
-
listModels
Lists models.
-
getModel
Gets a model.
-
deleteModel
Deletes a model.
-