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

#include <translate_text_request.h>

Public Member Functions

 TranslateTextRequest (const Json::Value &storage)
 TranslateTextRequest (Json::Value *storage)
virtual ~TranslateTextRequest ()
const StringPiece GetTypeName () const
bool has_format () const
void clear_format ()
const StringPiece get_format () const
void set_format (const StringPiece &value)
bool has_model () const
void clear_model ()
const StringPiece get_model () const
void set_model (const StringPiece &value)
bool has_q () const
void clear_q ()
const client::JsonCppArray
< string > 
get_q () const
client::JsonCppArray< string > mutable_q ()
bool has_source () const
void clear_source ()
const StringPiece get_source () const
void set_source (const StringPiece &value)
bool has_target () const
void clear_target ()
const StringPiece get_target () const
void set_target (const StringPiece &value)

Static Public Member Functions

static TranslateTextRequestNew ()

Detailed Description

The main translation request message for the Cloud Translation API.

Constructor & Destructor Documentation

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

Standard constructor for a mutable data object instance.

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

Standard destructor.

Member Function Documentation

void google_translate_api::TranslateTextRequest::clear_format ( )
inline

Clears the 'format' attribute.

void google_translate_api::TranslateTextRequest::clear_model ( )
inline

Clears the 'model' attribute.

void google_translate_api::TranslateTextRequest::clear_q ( )
inline

Clears the 'q' attribute.

void google_translate_api::TranslateTextRequest::clear_source ( )
inline

Clears the 'source' attribute.

void google_translate_api::TranslateTextRequest::clear_target ( )
inline

Clears the 'target' attribute.

const StringPiece google_translate_api::TranslateTextRequest::get_format ( ) const
inline

Get the value of the 'format' attribute.

const StringPiece google_translate_api::TranslateTextRequest::get_model ( ) const
inline

Get the value of the 'model' attribute.

const client::JsonCppArray<string > google_translate_api::TranslateTextRequest::get_q ( ) const
inline

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

const StringPiece google_translate_api::TranslateTextRequest::get_source ( ) const
inline

Get the value of the 'source' attribute.

const StringPiece google_translate_api::TranslateTextRequest::get_target ( ) const
inline

Get the value of the 'target' attribute.

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

Returns a string denoting the type of this data object.

Returns
google_translate_api::TranslateTextRequest
bool google_translate_api::TranslateTextRequest::has_format ( ) const
inline

Determine if the 'format' attribute was set.

Returns
true if the 'format' attribute was set.
bool google_translate_api::TranslateTextRequest::has_model ( ) const
inline

Determine if the 'model' attribute was set.

Returns
true if the 'model' attribute was set.
bool google_translate_api::TranslateTextRequest::has_q ( ) const
inline

Determine if the 'q' attribute was set.

Returns
true if the 'q' attribute was set.
bool google_translate_api::TranslateTextRequest::has_source ( ) const
inline

Determine if the 'source' attribute was set.

Returns
true if the 'source' attribute was set.
bool google_translate_api::TranslateTextRequest::has_target ( ) const
inline

Determine if the 'target' attribute was set.

Returns
true if the 'target' attribute was set.
client::JsonCppArray<string > google_translate_api::TranslateTextRequest::mutable_q ( )
inline

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

The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.

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

Creates a new default instance.

Returns
Ownership is passed back to the caller.
void google_translate_api::TranslateTextRequest::set_format ( const StringPiece &  value)
inline

Change the 'format' attribute.

The format of the source text, in either HTML (default) or plain-text. A value of "html" indicates HTML and a value of "text" indicates plain-text.

Parameters
[in]valueThe new value.
void google_translate_api::TranslateTextRequest::set_model ( const StringPiece &  value)
inline

Change the 'model' attribute.

The model type requested for this translation. Valid values are listed in public documentation.

Parameters
[in]valueThe new value.
void google_translate_api::TranslateTextRequest::set_source ( const StringPiece &  value)
inline

Change the 'source' attribute.

The language of the source text, set to one of the language codes listed in Language Support. If the source language is not specified, the API will attempt to identify the source language automatically and return it within the response.

Parameters
[in]valueThe new value.
void google_translate_api::TranslateTextRequest::set_target ( const StringPiece &  value)
inline

Change the 'target' attribute.

The language to use for translation of the input text, set to one of the language codes listed in Language Support.

Parameters
[in]valueThe new value.

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