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

#include <translations_list_response.h>

Public Member Functions

 TranslationsListResponse (const Json::Value &storage)
 TranslationsListResponse (Json::Value *storage)
virtual ~TranslationsListResponse ()
const StringPiece GetTypeName () const
bool has_translations () const
void clear_translations ()
const client::JsonCppArray
< TranslationsResource
get_translations () const
client::JsonCppArray
< TranslationsResource
mutable_translations ()

Static Public Member Functions

static TranslationsListResponseNew ()

Detailed Description

The main language translation response message.

Constructor & Destructor Documentation

google_translate_api::TranslationsListResponse::TranslationsListResponse ( 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::TranslationsListResponse::TranslationsListResponse ( Json::Value *  storage)
explicit

Standard constructor for a mutable data object instance.

Parameters
[in]storageThe underlying data storage for this instance.
google_translate_api::TranslationsListResponse::~TranslationsListResponse ( )
virtual

Standard destructor.

Member Function Documentation

void google_translate_api::TranslationsListResponse::clear_translations ( )
inline

Clears the 'translations' attribute.

const client::JsonCppArray<TranslationsResource > google_translate_api::TranslationsListResponse::get_translations ( ) const

Get a reference to the value of the 'translations' attribute.

const StringPiece google_translate_api::TranslationsListResponse::GetTypeName ( ) const
inline

Returns a string denoting the type of this data object.

Returns
google_translate_api::TranslationsListResponse
bool google_translate_api::TranslationsListResponse::has_translations ( ) const
inline

Determine if the 'translations' attribute was set.

Returns
true if the 'translations' attribute was set.
client::JsonCppArray<TranslationsResource > google_translate_api::TranslationsListResponse::mutable_translations ( )

Gets a reference to a mutable value of the 'translations' property.

Translations contains list of translation results of given text.

Returns
The result can be modified to change the attribute value.
TranslationsListResponse * google_translate_api::TranslationsListResponse::New ( )
static

Creates a new default instance.

Returns
Ownership is passed back to the caller.

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