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

#include <translate_service.h>

Public Member Functions

 TranslationsResource (TranslateService *service)
 ~TranslationsResource ()
TranslationsResource_ListMethodNewListMethod (client::AuthorizationCredential *_credential_, const client::JsonCppArray< string > &q, const StringPiece &target) const
TranslationsResource_TranslateMethodNewTranslateMethod (client::AuthorizationCredential *_credential_, const TranslateTextRequest &_content_) const

Detailed Description

Acts as message factory for accessing data.

Constructor & Destructor Documentation

google_translate_api::TranslateService::TranslationsResource::TranslationsResource ( TranslateService service)
explicit

Standard constructor.

Parameters
[in]serviceThe service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on.
google_translate_api::TranslateService::TranslationsResource::~TranslationsResource ( )
inline

Standard destructor.

Member Function Documentation

TranslationsResource_ListMethod * google_translate_api::TranslateService::TranslationsResource::NewListMethod ( client::AuthorizationCredential *  _credential_,
const client::JsonCppArray< string > &  q,
const StringPiece &  target 
) const

Creates a new TranslationsResource_ListMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]qThe input text to translate. Repeat this parameter to perform translation operations on multiple text inputs.
[in]targetThe language to use for translation of the input text, set to one of the language codes listed in Language Support.
Returns
The caller should Execute the method instance, then destroy it when they are finished.
TranslationsResource_TranslateMethod * google_translate_api::TranslateService::TranslationsResource::NewTranslateMethod ( client::AuthorizationCredential *  _credential_,
const TranslateTextRequest _content_ 
) const

Creates a new TranslationsResource_TranslateMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]<em>content</em>The data object to translate.
Returns
The caller should Execute the method instance, then destroy it when they are finished.

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