translate  v2
 All Classes Functions Variables Groups
Public Member Functions | Static Public Member Functions | List of all members
google_translate_api::LanguagesResource Class Reference

#include <languages_resource.h>

Public Member Functions

 LanguagesResource (const Json::Value &storage)
 LanguagesResource (Json::Value *storage)
virtual ~LanguagesResource ()
const StringPiece GetTypeName () const
bool has_language () const
void clear_language ()
const StringPiece get_language () const
void set_language (const StringPiece &value)
bool has_name () const
void clear_name ()
const StringPiece get_name () const
void set_name (const StringPiece &value)

Static Public Member Functions

static LanguagesResourceNew ()

Detailed Description

No description provided.

Constructor & Destructor Documentation

google_translate_api::LanguagesResource::LanguagesResource ( const Json::Value &  storage)
explicit

Standard constructor for an immutable data object instance.

Parameters
[in]storageThe 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]storageThe underlying data storage for this instance.
google_translate_api::LanguagesResource::~LanguagesResource ( )
virtual

Standard destructor.

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

Returns a string denoting the type of this data object.

Returns
google_translate_api::LanguagesResource
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.
LanguagesResource * google_translate_api::LanguagesResource::New ( )
static

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
[in]valueThe new value.
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
[in]valueThe new value.

The documentation for this class was generated from the following files: