GoogleApi.Translate.V3.Model.Translation (google_api_translate v0.22.0)
View SourceA single translation response.
Attributes
-
detectedLanguageCode(type:String.t, default:nil) - The ISO-639 language code of source text in 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 does not occur and this field is empty. -
glossaryConfig(type:GoogleApi.Translate.V3.Model.TranslateTextGlossaryConfig.t, default:nil) - Theglossary_configused for this translation. -
model(type:String.t, default:nil) - Only present whenmodelis present in the request.modelhere is normalized to have project number. For example: If themodelrequested in TranslationTextRequest isprojects/{project-id}/locations/{location-id}/models/general/nmtthenmodelhere would be normalized toprojects/{project-number}/locations/{location-id}/models/general/nmt. -
translatedText(type:String.t, default:nil) - Text translated into the target language. If an error occurs during translation, this field might be excluded from the response.
Summary
Functions
Unwrap a decoded JSON object into its complex fields.
Types
@type t() :: %GoogleApi.Translate.V3.Model.Translation{ detectedLanguageCode: String.t() | nil, glossaryConfig: GoogleApi.Translate.V3.Model.TranslateTextGlossaryConfig.t() | nil, model: String.t() | nil, translatedText: String.t() | nil }