#include <translations_resource.h>
Detailed Description
Constructor & Destructor Documentation
google_translate_api::TranslationsResource::TranslationsResource |
( |
const Json::Value & |
storage | ) |
|
|
explicit |
Standard constructor for an immutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
google_translate_api::TranslationsResource::TranslationsResource |
( |
Json::Value * |
storage | ) |
|
|
explicit |
Standard constructor for a mutable data object instance.
- Parameters
-
[in] | storage | The underlying data storage for this instance. |
google_translate_api::TranslationsResource::~TranslationsResource |
( |
| ) |
|
|
virtual |
Member Function Documentation
void google_translate_api::TranslationsResource::clear_detected_source_language |
( |
| ) |
|
|
inline |
Clears the 'detectedSourceLanguage
' attribute.
void google_translate_api::TranslationsResource::clear_model |
( |
| ) |
|
|
inline |
Clears the 'model
' attribute.
void google_translate_api::TranslationsResource::clear_translated_text |
( |
| ) |
|
|
inline |
Clears the 'translatedText
' attribute.
const StringPiece google_translate_api::TranslationsResource::get_detected_source_language |
( |
| ) |
const |
|
inline |
Get the value of the 'detectedSourceLanguage
' attribute.
const StringPiece google_translate_api::TranslationsResource::get_model |
( |
| ) |
const |
|
inline |
Get the value of the 'model
' attribute.
const StringPiece google_translate_api::TranslationsResource::get_translated_text |
( |
| ) |
const |
|
inline |
Get the value of the 'translatedText
' attribute.
const StringPiece google_translate_api::TranslationsResource::GetTypeName |
( |
| ) |
const |
|
inline |
bool google_translate_api::TranslationsResource::has_detected_source_language |
( |
| ) |
const |
|
inline |
Determine if the 'detectedSourceLanguage
' attribute was set.
- Returns
- true if the '
detectedSourceLanguage
' attribute was set.
bool google_translate_api::TranslationsResource::has_model |
( |
| ) |
const |
|
inline |
Determine if the 'model
' attribute was set.
- Returns
- true if the '
model
' attribute was set.
bool google_translate_api::TranslationsResource::has_translated_text |
( |
| ) |
const |
|
inline |
Determine if the 'translatedText
' attribute was set.
- Returns
- true if the '
translatedText
' attribute was set.
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
void google_translate_api::TranslationsResource::set_detected_source_language |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'detectedSourceLanguage
' attribute.
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.
- Parameters
-
void google_translate_api::TranslationsResource::set_model |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'model
' attribute.
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.
- Parameters
-
void google_translate_api::TranslationsResource::set_translated_text |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'translatedText
' attribute.
Text translated into the target language.
- Parameters
-
The documentation for this class was generated from the following files: