View Source GoogleApi.Translate.V2.Model.TranslationsResource (google_api_translate v0.21.0)

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) - The model type used for this translation. Valid values are listed in public documentation. Can be different from requested model. Present only if specific model type was explicitly requested.
  • translatedText (type: String.t, default: nil) - Text translated into the target language.

Summary

Functions

Unwrap a decoded JSON object into its complex fields.

Types

@type t() :: %GoogleApi.Translate.V2.Model.TranslationsResource{
  detectedSourceLanguage: String.t() | nil,
  model: String.t() | nil,
  translatedText: String.t() | nil
}

Functions

@spec decode(struct(), keyword()) :: struct()

Unwrap a decoded JSON object into its complex fields.