#include <translate_service.h>
Public Member Functions | |
| DetectionsResource (TranslateService *service) | |
| ~DetectionsResource () | |
| DetectionsResource_DetectMethod * | NewDetectMethod (client::AuthorizationCredential *_credential_, const DetectLanguageRequest &_content_) const |
| DetectionsResource_ListMethod * | NewListMethod (client::AuthorizationCredential *_credential_, const client::JsonCppArray< string > &q) const |
Acts as message factory for accessing data.
|
explicit |
Standard constructor.
| [in] | service | The service instance is used to bind to the methods created from this resource instance. This will be the service that methods are invoked on. |
|
inline |
Standard destructor.
| DetectionsResource_DetectMethod * google_translate_api::TranslateService::DetectionsResource::NewDetectMethod | ( | client::AuthorizationCredential * | _credential_, |
| const DetectLanguageRequest & | _content_ | ||
| ) | const |
Creates a new DetectionsResource_DetectMethod instance.
| [in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
| [in] | <em>content</em> | The data object to detect. |
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.
| [in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
| [in] | q | The input text upon which to perform language detection. Repeat this parameter to perform language detection on multiple text inputs. |
Execute the method instance, then destroy it when they are finished.