translate/v3 library
Cloud Translation API - v3
Integrates text translation into your website or application.
For more information, see cloud.google.com/translate/docs/quickstarts
Create an instance of TranslateApi to access these resources:
ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesAdaptiveMtSentencesResource - ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentencesResource - ProjectsLocationsDatasetsResource - ProjectsLocationsDatasetsExamplesResource - ProjectsLocationsGlossariesResource - ProjectsLocationsGlossariesGlossaryEntriesResource - ProjectsLocationsModelsResource - ProjectsLocationsOperationsResource
Classes
- AdaptiveMtDataset
- An Adaptive MT Dataset.
- AdaptiveMtFile
- An AdaptiveMtFile.
- AdaptiveMtSentence
- An AdaptiveMt sentence entry.
- AdaptiveMtTranslateRequest
- The request for sending an AdaptiveMt translation query.
- AdaptiveMtTranslateResponse
- An AdaptiveMtTranslate response.
- AdaptiveMtTranslation
- An AdaptiveMt translation.
- BatchDocumentInputConfig
- Input configuration for BatchTranslateDocument request.
- BatchDocumentOutputConfig
- Output configuration for BatchTranslateDocument request.
- BatchTranslateDocumentRequest
- The BatchTranslateDocument request.
- BatchTranslateTextRequest
- The batch translation request.
- Dataset
- A dataset that hosts the examples (sentence pairs) used for translation models.
- DatasetInputConfig
- Input configuration for datasets.
- DatasetOutputConfig
- Output configuration for datasets.
- DetectedLanguage
- The response message for language detection.
- DetectLanguageRequest
- The request message for language detection.
- DetectLanguageResponse
- The response message for language detection.
- DocumentInputConfig
- A document translation request input config.
- DocumentOutputConfig
- A document translation request output config.
- DocumentTranslation
- A translated document message.
- Example
- A sentence pair.
- ExportDataRequest
- Request message for ExportData.
- FileInputSource
- An inlined file.
- GcsDestination
- The Google Cloud Storage location for the output content.
- GcsOutputDestination
- The Google Cloud Storage location for the output content.
- Glossary
- Represents a glossary built from user-provided data.
- GlossaryEntry
- Represents a single entry in a glossary.
- GlossaryInputConfig
- Input configuration for glossaries.
- GlossaryTerm
- Represents a single glossary term
- GlossaryTermsPair
- Represents a single entry for an unidirectional glossary.
- GlossaryTermsSet
- Represents a single entry for an equivalent term set glossary.
- ImportAdaptiveMtFileRequest
- The request for importing an AdaptiveMt file along with its sentences.
- ImportAdaptiveMtFileResponse
- The response for importing an AdaptiveMtFile
- ImportDataRequest
- Request message for ImportData.
- InputConfig
- Input configuration for BatchTranslateText request.
- InputFile
- An input file.
- LanguageCodePair
- Used with unidirectional glossaries.
- LanguageCodesSet
- Used with equivalent term set glossaries.
- ListAdaptiveMtDatasetsResponse
- A list of AdaptiveMtDatasets.
- ListAdaptiveMtFilesResponse
- The response for listing all AdaptiveMt files under a given dataset.
- ListAdaptiveMtSentencesResponse
- List AdaptiveMt sentences response.
- ListDatasetsResponse
- Response message for ListDatasets.
- ListExamplesResponse
- Response message for ListExamples.
- ListGlossariesResponse
- Response message for ListGlossaries.
- ListGlossaryEntriesResponse
- Response message for ListGlossaryEntries
- ListLocationsResponse
- The response message for Locations.ListLocations.
- ListModelsResponse
- Response message for ListModels.
- ListOperationsResponse
- The response message for Operations.ListOperations.
- Model
- A trained translation model.
- Operation
- This resource represents a long-running operation that is the result of a network API call.
- OutputConfig
- Output configuration for BatchTranslateText request.
- ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesAdaptiveMtSentencesResource
- ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtFilesResource
- ProjectsLocationsAdaptiveMtDatasetsAdaptiveMtSentencesResource
- ProjectsLocationsAdaptiveMtDatasetsResource
- ProjectsLocationsDatasetsExamplesResource
- ProjectsLocationsDatasetsResource
- ProjectsLocationsGlossariesGlossaryEntriesResource
- ProjectsLocationsGlossariesResource
- ProjectsLocationsModelsResource
- ProjectsLocationsOperationsResource
- ProjectsLocationsResource
- ProjectsResource
- Romanization
- A single romanization response.
- RomanizeTextRequest
- The request message for synchronous romanization.
- RomanizeTextResponse
- The response message for synchronous romanization.
- SupportedLanguage
- A single supported language response corresponds to information related to one supported language.
- SupportedLanguages
- The response message for discovering supported languages.
- TranslateApi
- Integrates text translation into your website or application.
- TranslateDocumentRequest
- A document translation request.
- TranslateDocumentResponse
- A translated document response message.
- TranslateTextGlossaryConfig
- Configures which glossary is used for a specific target language and defines options for applying that glossary.
- TranslateTextRequest
- The request message for synchronous translation.
- TranslateTextResponse
- Translation
- A single translation response.
- TransliterationConfig
- Configures transliteration feature on top of translation.
Typedefs
- CancelOperationRequest = $Empty
- The request message for Operations.CancelOperation.
- Empty = $Empty
- A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs.
- GcsInputSource = $Source
- The Google Cloud Storage location for the input content.
- GcsSource = $Source
- The Google Cloud Storage location for the input content.
- Location = $Location00
- A resource that represents a Google Cloud location.
- Status = $Status
-
The
Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. - WaitOperationRequest = $WaitOperationRequest
- The request message for Operations.WaitOperation.
Exceptions / Errors
- ApiRequestError
- Represents a general error reported by the API endpoint.
- DetailedApiRequestError
- Represents a specific error reported by the API endpoint.