- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 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 static interface TranslationServiceGrpc.AsyncService
Provides natural language translation operations.
Methods
adaptiveMtTranslate(AdaptiveMtTranslateRequest request, StreamObserver<AdaptiveMtTranslateResponse> responseObserver)
public default void adaptiveMtTranslate(AdaptiveMtTranslateRequest request, StreamObserver<AdaptiveMtTranslateResponse> responseObserver)
Translate text using Adaptive MT.
Parameters | |
---|---|
Name | Description |
request |
AdaptiveMtTranslateRequest |
responseObserver |
io.grpc.stub.StreamObserver<AdaptiveMtTranslateResponse> |
batchTranslateDocument(BatchTranslateDocumentRequest request, StreamObserver<Operation> responseObserver)
public default 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 default 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> |
createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request, StreamObserver<AdaptiveMtDataset> responseObserver)
public default void createAdaptiveMtDataset(CreateAdaptiveMtDatasetRequest request, StreamObserver<AdaptiveMtDataset> responseObserver)
Creates an Adaptive MT dataset.
Parameters | |
---|---|
Name | Description |
request |
CreateAdaptiveMtDatasetRequest |
responseObserver |
io.grpc.stub.StreamObserver<AdaptiveMtDataset> |
createDataset(CreateDatasetRequest request, StreamObserver<Operation> responseObserver)
public default void createDataset(CreateDatasetRequest request, StreamObserver<Operation> responseObserver)
Creates a Dataset.
Parameters | |
---|---|
Name | Description |
request |
CreateDatasetRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
createGlossary(CreateGlossaryRequest request, StreamObserver<Operation> responseObserver)
public default 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> |
createGlossaryEntry(CreateGlossaryEntryRequest request, StreamObserver<GlossaryEntry> responseObserver)
public default void createGlossaryEntry(CreateGlossaryEntryRequest request, StreamObserver<GlossaryEntry> responseObserver)
Creates a glossary entry.
Parameters | |
---|---|
Name | Description |
request |
CreateGlossaryEntryRequest |
responseObserver |
io.grpc.stub.StreamObserver<GlossaryEntry> |
createModel(CreateModelRequest request, StreamObserver<Operation> responseObserver)
public default void createModel(CreateModelRequest request, StreamObserver<Operation> responseObserver)
Creates a Model.
Parameters | |
---|---|
Name | Description |
request |
CreateModelRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request, StreamObserver<Empty> responseObserver)
public default void deleteAdaptiveMtDataset(DeleteAdaptiveMtDatasetRequest request, StreamObserver<Empty> responseObserver)
Deletes an Adaptive MT dataset, including all its entries and associated metadata.
Parameters | |
---|---|
Name | Description |
request |
DeleteAdaptiveMtDatasetRequest |
responseObserver |
io.grpc.stub.StreamObserver<Empty> |
deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request, StreamObserver<Empty> responseObserver)
public default void deleteAdaptiveMtFile(DeleteAdaptiveMtFileRequest request, StreamObserver<Empty> responseObserver)
Deletes an AdaptiveMtFile along with its sentences.
Parameters | |
---|---|
Name | Description |
request |
DeleteAdaptiveMtFileRequest |
responseObserver |
io.grpc.stub.StreamObserver<Empty> |
deleteDataset(DeleteDatasetRequest request, StreamObserver<Operation> responseObserver)
public default void deleteDataset(DeleteDatasetRequest request, StreamObserver<Operation> responseObserver)
Deletes a dataset and all of its contents.
Parameters | |
---|---|
Name | Description |
request |
DeleteDatasetRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
deleteGlossary(DeleteGlossaryRequest request, StreamObserver<Operation> responseObserver)
public default 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> |
deleteGlossaryEntry(DeleteGlossaryEntryRequest request, StreamObserver<Empty> responseObserver)
public default void deleteGlossaryEntry(DeleteGlossaryEntryRequest request, StreamObserver<Empty> responseObserver)
Deletes a single entry from the glossary
Parameters | |
---|---|
Name | Description |
request |
DeleteGlossaryEntryRequest |
responseObserver |
io.grpc.stub.StreamObserver<Empty> |
deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)
public default void deleteModel(DeleteModelRequest request, StreamObserver<Operation> responseObserver)
Deletes a model.
Parameters | |
---|---|
Name | Description |
request |
DeleteModelRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
detectLanguage(DetectLanguageRequest request, StreamObserver<DetectLanguageResponse> responseObserver)
public default 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> |
exportData(ExportDataRequest request, StreamObserver<Operation> responseObserver)
public default void exportData(ExportDataRequest request, StreamObserver<Operation> responseObserver)
Exports dataset's data to the provided output location.
Parameters | |
---|---|
Name | Description |
request |
ExportDataRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request, StreamObserver<AdaptiveMtDataset> responseObserver)
public default void getAdaptiveMtDataset(GetAdaptiveMtDatasetRequest request, StreamObserver<AdaptiveMtDataset> responseObserver)
Gets the Adaptive MT dataset.
Parameters | |
---|---|
Name | Description |
request |
GetAdaptiveMtDatasetRequest |
responseObserver |
io.grpc.stub.StreamObserver<AdaptiveMtDataset> |
getAdaptiveMtFile(GetAdaptiveMtFileRequest request, StreamObserver<AdaptiveMtFile> responseObserver)
public default void getAdaptiveMtFile(GetAdaptiveMtFileRequest request, StreamObserver<AdaptiveMtFile> responseObserver)
Gets and AdaptiveMtFile
Parameters | |
---|---|
Name | Description |
request |
GetAdaptiveMtFileRequest |
responseObserver |
io.grpc.stub.StreamObserver<AdaptiveMtFile> |
getDataset(GetDatasetRequest request, StreamObserver<Dataset> responseObserver)
public default void getDataset(GetDatasetRequest request, StreamObserver<Dataset> responseObserver)
Gets a Dataset.
Parameters | |
---|---|
Name | Description |
request |
GetDatasetRequest |
responseObserver |
io.grpc.stub.StreamObserver<Dataset> |
getGlossary(GetGlossaryRequest request, StreamObserver<Glossary> responseObserver)
public default 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> |
getGlossaryEntry(GetGlossaryEntryRequest request, StreamObserver<GlossaryEntry> responseObserver)
public default void getGlossaryEntry(GetGlossaryEntryRequest request, StreamObserver<GlossaryEntry> responseObserver)
Gets a single glossary entry by the given id.
Parameters | |
---|---|
Name | Description |
request |
GetGlossaryEntryRequest |
responseObserver |
io.grpc.stub.StreamObserver<GlossaryEntry> |
getModel(GetModelRequest request, StreamObserver<Model> responseObserver)
public default void getModel(GetModelRequest request, StreamObserver<Model> responseObserver)
Gets a model.
Parameters | |
---|---|
Name | Description |
request |
GetModelRequest |
responseObserver |
io.grpc.stub.StreamObserver<Model> |
getSupportedLanguages(GetSupportedLanguagesRequest request, StreamObserver<SupportedLanguages> responseObserver)
public default 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> |
importAdaptiveMtFile(ImportAdaptiveMtFileRequest request, StreamObserver<ImportAdaptiveMtFileResponse> responseObserver)
public default void importAdaptiveMtFile(ImportAdaptiveMtFileRequest request, StreamObserver<ImportAdaptiveMtFileResponse> responseObserver)
Imports an AdaptiveMtFile and adds all of its sentences into the AdaptiveMtDataset.
Parameters | |
---|---|
Name | Description |
request |
ImportAdaptiveMtFileRequest |
responseObserver |
io.grpc.stub.StreamObserver<ImportAdaptiveMtFileResponse> |
importData(ImportDataRequest request, StreamObserver<Operation> responseObserver)
public default void importData(ImportDataRequest request, StreamObserver<Operation> responseObserver)
Import sentence pairs into translation Dataset.
Parameters | |
---|---|
Name | Description |
request |
ImportDataRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request, StreamObserver<ListAdaptiveMtDatasetsResponse> responseObserver)
public default void listAdaptiveMtDatasets(ListAdaptiveMtDatasetsRequest request, StreamObserver<ListAdaptiveMtDatasetsResponse> responseObserver)
Lists all Adaptive MT datasets for which the caller has read permission.
Parameters | |
---|---|
Name | Description |
request |
ListAdaptiveMtDatasetsRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListAdaptiveMtDatasetsResponse> |
listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request, StreamObserver<ListAdaptiveMtFilesResponse> responseObserver)
public default void listAdaptiveMtFiles(ListAdaptiveMtFilesRequest request, StreamObserver<ListAdaptiveMtFilesResponse> responseObserver)
Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
Parameters | |
---|---|
Name | Description |
request |
ListAdaptiveMtFilesRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListAdaptiveMtFilesResponse> |
listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request, StreamObserver<ListAdaptiveMtSentencesResponse> responseObserver)
public default void listAdaptiveMtSentences(ListAdaptiveMtSentencesRequest request, StreamObserver<ListAdaptiveMtSentencesResponse> responseObserver)
Lists all AdaptiveMtSentences under a given file/dataset.
Parameters | |
---|---|
Name | Description |
request |
ListAdaptiveMtSentencesRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListAdaptiveMtSentencesResponse> |
listDatasets(ListDatasetsRequest request, StreamObserver<ListDatasetsResponse> responseObserver)
public default void listDatasets(ListDatasetsRequest request, StreamObserver<ListDatasetsResponse> responseObserver)
Lists datasets.
Parameters | |
---|---|
Name | Description |
request |
ListDatasetsRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListDatasetsResponse> |
listExamples(ListExamplesRequest request, StreamObserver<ListExamplesResponse> responseObserver)
public default void listExamples(ListExamplesRequest request, StreamObserver<ListExamplesResponse> responseObserver)
Lists sentence pairs in the dataset.
Parameters | |
---|---|
Name | Description |
request |
ListExamplesRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListExamplesResponse> |
listGlossaries(ListGlossariesRequest request, StreamObserver<ListGlossariesResponse> responseObserver)
public default 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> |
listGlossaryEntries(ListGlossaryEntriesRequest request, StreamObserver<ListGlossaryEntriesResponse> responseObserver)
public default void listGlossaryEntries(ListGlossaryEntriesRequest request, StreamObserver<ListGlossaryEntriesResponse> responseObserver)
List the entries for the glossary.
Parameters | |
---|---|
Name | Description |
request |
ListGlossaryEntriesRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListGlossaryEntriesResponse> |
listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)
public default void listModels(ListModelsRequest request, StreamObserver<ListModelsResponse> responseObserver)
Lists models.
Parameters | |
---|---|
Name | Description |
request |
ListModelsRequest |
responseObserver |
io.grpc.stub.StreamObserver<ListModelsResponse> |
romanizeText(RomanizeTextRequest request, StreamObserver<RomanizeTextResponse> responseObserver)
public default void romanizeText(RomanizeTextRequest request, StreamObserver<RomanizeTextResponse> responseObserver)
Romanize input text written in non-Latin scripts to Latin text.
Parameters | |
---|---|
Name | Description |
request |
RomanizeTextRequest |
responseObserver |
io.grpc.stub.StreamObserver<RomanizeTextResponse> |
translateDocument(TranslateDocumentRequest request, StreamObserver<TranslateDocumentResponse> responseObserver)
public default 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 default 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> |
updateGlossary(UpdateGlossaryRequest request, StreamObserver<Operation> responseObserver)
public default void updateGlossary(UpdateGlossaryRequest request, StreamObserver<Operation> responseObserver)
Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated.
Parameters | |
---|---|
Name | Description |
request |
UpdateGlossaryRequest |
responseObserver |
io.grpc.stub.StreamObserver<Operation> |
updateGlossaryEntry(UpdateGlossaryEntryRequest request, StreamObserver<GlossaryEntry> responseObserver)
public default void updateGlossaryEntry(UpdateGlossaryEntryRequest request, StreamObserver<GlossaryEntry> responseObserver)
Updates a glossary entry.
Parameters | |
---|---|
Name | Description |
request |
UpdateGlossaryEntryRequest |
responseObserver |
io.grpc.stub.StreamObserver<GlossaryEntry> |