#include <translate_service.h>
Public Member Functions | |
TranslationsResource (TranslateService *service) | |
~TranslationsResource () | |
TranslationsResource_ListMethod * | NewListMethod (client::AuthorizationCredential *_credential_, const client::JsonCppArray< string > &q, const StringPiece &target) const |
TranslationsResource_TranslateMethod * | NewTranslateMethod (client::AuthorizationCredential *_credential_, const TranslateTextRequest &_content_) 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.
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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | q | The input text to translate. Repeat this parameter to perform translation operations on multiple text inputs. |
[in] | target | The language to use for translation of the input text, set to one of the language codes listed in Language Support. |
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.
[in] | <em>credential</em> | Can be NULL. NULL credentials will not authorize the request. |
[in] | <em>content</em> | The data object to translate. |
Execute
the method instance, then destroy it when they are finished.