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

#include <translate_service.h>

Public Member Functions

 DetectionsResource (TranslateService *service)
 ~DetectionsResource ()
DetectionsResource_DetectMethodNewDetectMethod (client::AuthorizationCredential *_credential_, const DetectLanguageRequest &_content_) const
DetectionsResource_ListMethodNewListMethod (client::AuthorizationCredential *_credential_, const client::JsonCppArray< string > &q) const

Detailed Description

Acts as message factory for accessing data.

Constructor & Destructor Documentation

google_translate_api::TranslateService::DetectionsResource::DetectionsResource ( 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::DetectionsResource::~DetectionsResource ( )
inline

Standard destructor.

Member Function Documentation

DetectionsResource_DetectMethod * google_translate_api::TranslateService::DetectionsResource::NewDetectMethod ( client::AuthorizationCredential *  _credential_,
const DetectLanguageRequest _content_ 
) const

Creates a new DetectionsResource_DetectMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]<em>content</em>The data object to detect.
Returns
The caller should Execute the method instance, then destroy it when they are finished.
DetectionsResource_ListMethod * google_translate_api::TranslateService::DetectionsResource::NewListMethod ( client::AuthorizationCredential *  _credential_,
const client::JsonCppArray< string > &  q 
) const

Creates a new DetectionsResource_ListMethod instance.

Parameters
[in]<em>credential</em>Can be NULL. NULL credentials will not authorize the request.
[in]qThe input text upon which to perform language detection. Repeat this parameter to perform language detection on multiple text inputs.
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: