#include <languages_resource.h>
Detailed Description
Constructor & Destructor Documentation
google_translate_api::LanguagesResource::LanguagesResource |
( |
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::LanguagesResource::LanguagesResource |
( |
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::LanguagesResource::~LanguagesResource |
( |
| ) |
|
|
virtual |
Member Function Documentation
void google_translate_api::LanguagesResource::clear_language |
( |
| ) |
|
|
inline |
Clears the 'language
' attribute.
void google_translate_api::LanguagesResource::clear_name |
( |
| ) |
|
|
inline |
Clears the 'name
' attribute.
const StringPiece google_translate_api::LanguagesResource::get_language |
( |
| ) |
const |
|
inline |
Get the value of the 'language
' attribute.
const StringPiece google_translate_api::LanguagesResource::get_name |
( |
| ) |
const |
|
inline |
Get the value of the 'name
' attribute.
const StringPiece google_translate_api::LanguagesResource::GetTypeName |
( |
| ) |
const |
|
inline |
bool google_translate_api::LanguagesResource::has_language |
( |
| ) |
const |
|
inline |
Determine if the 'language
' attribute was set.
- Returns
- true if the '
language
' attribute was set.
bool google_translate_api::LanguagesResource::has_name |
( |
| ) |
const |
|
inline |
Determine if the 'name
' attribute was set.
- Returns
- true if the '
name
' attribute was set.
Creates a new default instance.
- Returns
- Ownership is passed back to the caller.
void google_translate_api::LanguagesResource::set_language |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'language
' attribute.
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').
- Parameters
-
void google_translate_api::LanguagesResource::set_name |
( |
const StringPiece & |
value | ) |
|
|
inline |
Change the 'name
' attribute.
Human readable name of the language localized to the target language.
- Parameters
-
The documentation for this class was generated from the following files: