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

#include <translations_resource.h>

Public Member Functions

 TranslationsResource (const Json::Value &storage)
 TranslationsResource (Json::Value *storage)
virtual ~TranslationsResource ()
const StringPiece GetTypeName () const
bool has_detected_source_language () const
void clear_detected_source_language ()
const StringPiece get_detected_source_language () const
void set_detected_source_language (const StringPiece &value)
bool has_model () const
void clear_model ()
const StringPiece get_model () const
void set_model (const StringPiece &value)
bool has_translated_text () const
void clear_translated_text ()
const StringPiece get_translated_text () const
void set_translated_text (const StringPiece &value)

Static Public Member Functions

static TranslationsResourceNew ()

Detailed Description

No description provided.

Constructor & Destructor Documentation

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

Standard constructor for a mutable data object instance.

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

Standard destructor.

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

Returns a string denoting the type of this data object.

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

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
[in]valueThe new value.
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
[in]valueThe new value.
void google_translate_api::TranslationsResource::set_translated_text ( const StringPiece &  value)
inline

Change the 'translatedText' attribute.

Text translated into the target language.

Parameters
[in]valueThe new value.

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