View Source API Reference google_api_translate v0.21.0
Modules
API client metadata for GoogleApi.Translate.V2.
API calls for all endpoints tagged Detections
.
API calls for all endpoints tagged Languages
.
API calls for all endpoints tagged Translations
.
Handle Tesla connections for GoogleApi.Translate.V2.
The request message for language detection.
The request message for discovering supported languages.
Attributes
-
languages
(type:list(GoogleApi.Translate.V2.Model.LanguagesResource.t)
, default:nil
) - List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.
Attributes
-
language
(type:String.t
, default:nil
) - Supported language code, generally consisting of its ISO 639-1 identifier. (E.g. 'en', 'ja'). In certain cases, BCP-47 codes including language + region identifiers are returned (e.g. 'zh-TW' and 'zh-CH') -
name
(type:String.t
, default:nil
) - Human readable name of the language localized to the target language.
The main translation request message for the Cloud Translation API.
The main language translation response message.
Attributes
-
detectedSourceLanguage
(type:String.t
, default:nil
) - The source language of the initial request, detected automatically, if no source language was passed within the initial request. If the source language was passed, auto-detection of the language will not occur and this field will be empty. -
model
(type:String.t
, default:nil
) - Themodel
type used for this translation. Valid values are listed in public documentation. Can be different from requestedmodel
. Present only if specific model type was explicitly requested. -
translatedText
(type:String.t
, default:nil
) - Text translated into the target language.
API client metadata for GoogleApi.Translate.V3.
API calls for all endpoints tagged Projects
.
Handle Tesla connections for GoogleApi.Translate.V3.
An Adaptive MT Dataset.
An AdaptiveMtFile.
An AdaptiveMt sentence entry.
The request for sending an AdaptiveMt translation query.
An AdaptiveMtTranslate response.
An AdaptiveMt translation.
Input configuration for BatchTranslateDocument request.
Output configuration for BatchTranslateDocument request.
The BatchTranslateDocument request.
The batch translation request.
The request message for Operations.CancelOperation.
A dataset that hosts the examples (sentence pairs) used for translation models.
Input configuration for datasets.
Output configuration for datasets.
The request message for language detection.
The response message for language detection.
The response message for language detection.
A document translation request input config.
A document translation request output config.
A translated document message.
A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
A sentence pair.
Request message for ExportData.
An inlined file.
The Google Cloud Storage location for the output content.
The Google Cloud Storage location for the input content.
The Google Cloud Storage location for the output content.
The Google Cloud Storage location for the input content.
Represents a glossary built from user-provided data.
Configures which glossary is used for a specific target language and defines options for applying that glossary.
Represents a single entry in a glossary.
Input configuration for glossaries.
Represents a single glossary term
Represents a single entry for an unidirectional glossary.
Represents a single entry for an equivalent term set glossary. This is used for equivalent term sets where each term can be replaced by the other terms in the set.
The request for importing an AdaptiveMt file along with its sentences.
The response for importing an AdaptiveMtFile
Request message for ImportData.
Input configuration for BatchTranslateText request.
An input file.
Used with unidirectional glossaries.
Used with equivalent term set glossaries.
A list of AdaptiveMtDatasets.
The response for listing all AdaptiveMt files under a given dataset.
List AdaptiveMt sentences response.
Response message for ListDatasets.
Response message for ListExamples.
Response message for ListGlossaries.
Response message for ListGlossaryEntries
The response message for Locations.ListLocations.
Response message for ListModels.
The response message for Operations.ListOperations.
A resource that represents a Google Cloud location.
A trained translation model.
This resource represents a long-running operation that is the result of a network API call.
Output configuration for BatchTranslateText request.
Message of caller-provided reference configuration.
A pair of sentences used as reference in source and target languages.
A list of reference sentence pairs.
A single romanization response.
The request message for synchronous romanization.
The response message for synchronous romanization.
The Status
type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status
message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide.
A single supported language response corresponds to information related to one supported language.
The response message for discovering supported languages.
A document translation request.
A translated document response message.
Configures which glossary is used for a specific target language and defines options for applying that glossary.
The request message for synchronous translation.
Attributes
-
glossaryTranslations
(type:list(GoogleApi.Translate.V3.Model.Translation.t)
, default:nil
) - Text translation responses if a glossary is provided in the request. This can be the same astranslations
if no terms apply. This field has the same length ascontents
. -
translations
(type:list(GoogleApi.Translate.V3.Model.Translation.t)
, default:nil
) - Text translation responses with no glossary applied. This field has the same length ascontents
.
A single translation response.
Configures transliteration feature on top of translation.
The request message for Operations.WaitOperation.