30 #ifndef GOOGLE_TRANSLATE_API_DETECT_LANGUAGE_REQUEST_H_
31 #define GOOGLE_TRANSLATE_API_DETECT_LANGUAGE_REQUEST_H_
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
42 namespace google_translate_api {
43 using namespace googleapis;
84 return StringPiece(
"google_translate_api::DetectLanguageRequest");
93 return Storage().isMember(
"q");
100 MutableStorage()->removeMember(
"q");
107 const client::JsonCppArray<string >
get_q()
const {
108 const Json::Value& storage = Storage(
"q");
109 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
121 Json::Value* storage = MutableStorage(
"q");
122 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
129 #endif // GOOGLE_TRANSLATE_API_DETECT_LANGUAGE_REQUEST_H_