customsearch  v1
search.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-04-13, 18:20:31 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Custom Search API (customsearch/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 83
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CUSTOMSEARCH_API_SEARCH_H_
31 #define GOOGLE_CUSTOMSEARCH_API_SEARCH_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 #include "google/customsearch_api/promotion.h"
40 #include "google/customsearch_api/result.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_customsearch_api {
47 using namespace googleapis;
48 
54 class Search : public client::JsonCppData {
55  public:
61  class SearchQueries : public client::JsonCppData {
62  public:
68  class SearchQueriesNextPage : public client::JsonCppData {
69  public:
75  static SearchQueriesNextPage* New();
76 
82  explicit SearchQueriesNextPage(const Json::Value& storage);
83 
89  explicit SearchQueriesNextPage(Json::Value* storage);
90 
94  virtual ~SearchQueriesNextPage();
95 
101  const StringPiece GetTypeName() const {
102  return StringPiece("google_customsearch_api::SearchQueriesNextPage");
103  }
104 
110  bool has_count() const {
111  return Storage().isMember("count");
112  }
113 
117  void clear_count() {
118  MutableStorage()->removeMember("count");
119  }
120 
121 
125  int32 get_count() const {
126  const Json::Value& storage = Storage("count");
127  return client::JsonValueToCppValueHelper<int32 >(storage);
128  }
129 
137  void set_count(int32 value) {
138  client::SetJsonValueFromCppValueHelper<int32 >(
139  value, MutableStorage("count"));
140  }
141 
147  bool has_cr() const {
148  return Storage().isMember("cr");
149  }
150 
154  void clear_cr() {
155  MutableStorage()->removeMember("cr");
156  }
157 
158 
162  const StringPiece get_cr() const {
163  const Json::Value& v = Storage("cr");
164  if (v == Json::Value::null) return StringPiece("");
165  return StringPiece(v.asCString());
166  }
167 
191  void set_cr(const StringPiece& value) {
192  *MutableStorage("cr") = value.data();
193  }
194 
200  bool has_cx() const {
201  return Storage().isMember("cx");
202  }
203 
207  void clear_cx() {
208  MutableStorage()->removeMember("cx");
209  }
210 
211 
215  const StringPiece get_cx() const {
216  const Json::Value& v = Storage("cx");
217  if (v == Json::Value::null) return StringPiece("");
218  return StringPiece(v.asCString());
219  }
220 
231  void set_cx(const StringPiece& value) {
232  *MutableStorage("cx") = value.data();
233  }
234 
240  bool has_date_restrict() const {
241  return Storage().isMember("dateRestrict");
242  }
243 
248  MutableStorage()->removeMember("dateRestrict");
249  }
250 
251 
255  const StringPiece get_date_restrict() const {
256  const Json::Value& v = Storage("dateRestrict");
257  if (v == Json::Value::null) return StringPiece("");
258  return StringPiece(v.asCString());
259  }
260 
279  void set_date_restrict(const StringPiece& value) {
280  *MutableStorage("dateRestrict") = value.data();
281  }
282 
291  return Storage().isMember("disableCnTwTranslation");
292  }
293 
298  MutableStorage()->removeMember("disableCnTwTranslation");
299  }
300 
301 
305  const StringPiece get_disable_cn_tw_translation() const {
306  const Json::Value& v = Storage("disableCnTwTranslation");
307  if (v == Json::Value::null) return StringPiece("");
308  return StringPiece(v.asCString());
309  }
310 
328  void set_disable_cn_tw_translation(const StringPiece& value) {
329  *MutableStorage("disableCnTwTranslation") = value.data();
330  }
331 
337  bool has_exact_terms() const {
338  return Storage().isMember("exactTerms");
339  }
340 
345  MutableStorage()->removeMember("exactTerms");
346  }
347 
348 
352  const StringPiece get_exact_terms() const {
353  const Json::Value& v = Storage("exactTerms");
354  if (v == Json::Value::null) return StringPiece("");
355  return StringPiece(v.asCString());
356  }
357 
366  void set_exact_terms(const StringPiece& value) {
367  *MutableStorage("exactTerms") = value.data();
368  }
369 
375  bool has_exclude_terms() const {
376  return Storage().isMember("excludeTerms");
377  }
378 
383  MutableStorage()->removeMember("excludeTerms");
384  }
385 
386 
390  const StringPiece get_exclude_terms() const {
391  const Json::Value& v = Storage("excludeTerms");
392  if (v == Json::Value::null) return StringPiece("");
393  return StringPiece(v.asCString());
394  }
395 
404  void set_exclude_terms(const StringPiece& value) {
405  *MutableStorage("excludeTerms") = value.data();
406  }
407 
413  bool has_file_type() const {
414  return Storage().isMember("fileType");
415  }
416 
421  MutableStorage()->removeMember("fileType");
422  }
423 
424 
428  const StringPiece get_file_type() const {
429  const Json::Value& v = Storage("fileType");
430  if (v == Json::Value::null) return StringPiece("");
431  return StringPiece(v.asCString());
432  }
433 
473  void set_file_type(const StringPiece& value) {
474  *MutableStorage("fileType") = value.data();
475  }
476 
482  bool has_filter() const {
483  return Storage().isMember("filter");
484  }
485 
489  void clear_filter() {
490  MutableStorage()->removeMember("filter");
491  }
492 
493 
497  const StringPiece get_filter() const {
498  const Json::Value& v = Storage("filter");
499  if (v == Json::Value::null) return StringPiece("");
500  return StringPiece(v.asCString());
501  }
502 
523  void set_filter(const StringPiece& value) {
524  *MutableStorage("filter") = value.data();
525  }
526 
532  bool has_gl() const {
533  return Storage().isMember("gl");
534  }
535 
539  void clear_gl() {
540  MutableStorage()->removeMember("gl");
541  }
542 
543 
547  const StringPiece get_gl() const {
548  const Json::Value& v = Storage("gl");
549  if (v == Json::Value::null) return StringPiece("");
550  return StringPiece(v.asCString());
551  }
552 
571  void set_gl(const StringPiece& value) {
572  *MutableStorage("gl") = value.data();
573  }
574 
580  bool has_google_host() const {
581  return Storage().isMember("googleHost");
582  }
583 
588  MutableStorage()->removeMember("googleHost");
589  }
590 
591 
595  const StringPiece get_google_host() const {
596  const Json::Value& v = Storage("googleHost");
597  if (v == Json::Value::null) return StringPiece("");
598  return StringPiece(v.asCString());
599  }
600 
609  void set_google_host(const StringPiece& value) {
610  *MutableStorage("googleHost") = value.data();
611  }
612 
618  bool has_high_range() const {
619  return Storage().isMember("highRange");
620  }
621 
626  MutableStorage()->removeMember("highRange");
627  }
628 
629 
633  const StringPiece get_high_range() const {
634  const Json::Value& v = Storage("highRange");
635  if (v == Json::Value::null) return StringPiece("");
636  return StringPiece(v.asCString());
637  }
638 
648  void set_high_range(const StringPiece& value) {
649  *MutableStorage("highRange") = value.data();
650  }
651 
657  bool has_hl() const {
658  return Storage().isMember("hl");
659  }
660 
664  void clear_hl() {
665  MutableStorage()->removeMember("hl");
666  }
667 
668 
672  const StringPiece get_hl() const {
673  const Json::Value& v = Storage("hl");
674  if (v == Json::Value::null) return StringPiece("");
675  return StringPiece(v.asCString());
676  }
677 
699  void set_hl(const StringPiece& value) {
700  *MutableStorage("hl") = value.data();
701  }
702 
708  bool has_hq() const {
709  return Storage().isMember("hq");
710  }
711 
715  void clear_hq() {
716  MutableStorage()->removeMember("hq");
717  }
718 
719 
723  const StringPiece get_hq() const {
724  const Json::Value& v = Storage("hq");
725  if (v == Json::Value::null) return StringPiece("");
726  return StringPiece(v.asCString());
727  }
728 
738  void set_hq(const StringPiece& value) {
739  *MutableStorage("hq") = value.data();
740  }
741 
747  bool has_img_color_type() const {
748  return Storage().isMember("imgColorType");
749  }
750 
755  MutableStorage()->removeMember("imgColorType");
756  }
757 
758 
762  const StringPiece get_img_color_type() const {
763  const Json::Value& v = Storage("imgColorType");
764  if (v == Json::Value::null) return StringPiece("");
765  return StringPiece(v.asCString());
766  }
767 
782  void set_img_color_type(const StringPiece& value) {
783  *MutableStorage("imgColorType") = value.data();
784  }
785 
791  bool has_img_dominant_color() const {
792  return Storage().isMember("imgDominantColor");
793  }
794 
799  MutableStorage()->removeMember("imgDominantColor");
800  }
801 
802 
806  const StringPiece get_img_dominant_color() const {
807  const Json::Value& v = Storage("imgDominantColor");
808  if (v == Json::Value::null) return StringPiece("");
809  return StringPiece(v.asCString());
810  }
811 
844  void set_img_dominant_color(const StringPiece& value) {
845  *MutableStorage("imgDominantColor") = value.data();
846  }
847 
853  bool has_img_size() const {
854  return Storage().isMember("imgSize");
855  }
856 
860  void clear_img_size() {
861  MutableStorage()->removeMember("imgSize");
862  }
863 
864 
868  const StringPiece get_img_size() const {
869  const Json::Value& v = Storage("imgSize");
870  if (v == Json::Value::null) return StringPiece("");
871  return StringPiece(v.asCString());
872  }
873 
889  void set_img_size(const StringPiece& value) {
890  *MutableStorage("imgSize") = value.data();
891  }
892 
898  bool has_img_type() const {
899  return Storage().isMember("imgType");
900  }
901 
905  void clear_img_type() {
906  MutableStorage()->removeMember("imgType");
907  }
908 
909 
913  const StringPiece get_img_type() const {
914  const Json::Value& v = Storage("imgType");
915  if (v == Json::Value::null) return StringPiece("");
916  return StringPiece(v.asCString());
917  }
918 
938  void set_img_type(const StringPiece& value) {
939  *MutableStorage("imgType") = value.data();
940  }
941 
947  bool has_input_encoding() const {
948  return Storage().isMember("inputEncoding");
949  }
950 
955  MutableStorage()->removeMember("inputEncoding");
956  }
957 
958 
962  const StringPiece get_input_encoding() const {
963  const Json::Value& v = Storage("inputEncoding");
964  if (v == Json::Value::null) return StringPiece("");
965  return StringPiece(v.asCString());
966  }
967 
975  void set_input_encoding(const StringPiece& value) {
976  *MutableStorage("inputEncoding") = value.data();
977  }
978 
984  bool has_language() const {
985  return Storage().isMember("language");
986  }
987 
991  void clear_language() {
992  MutableStorage()->removeMember("language");
993  }
994 
995 
999  const StringPiece get_language() const {
1000  const Json::Value& v = Storage("language");
1001  if (v == Json::Value::null) return StringPiece("");
1002  return StringPiece(v.asCString());
1003  }
1004 
1012  void set_language(const StringPiece& value) {
1013  *MutableStorage("language") = value.data();
1014  }
1015 
1021  bool has_link_site() const {
1022  return Storage().isMember("linkSite");
1023  }
1024 
1029  MutableStorage()->removeMember("linkSite");
1030  }
1031 
1032 
1036  const StringPiece get_link_site() const {
1037  const Json::Value& v = Storage("linkSite");
1038  if (v == Json::Value::null) return StringPiece("");
1039  return StringPiece(v.asCString());
1040  }
1041 
1049  void set_link_site(const StringPiece& value) {
1050  *MutableStorage("linkSite") = value.data();
1051  }
1052 
1058  bool has_low_range() const {
1059  return Storage().isMember("lowRange");
1060  }
1061 
1066  MutableStorage()->removeMember("lowRange");
1067  }
1068 
1069 
1073  const StringPiece get_low_range() const {
1074  const Json::Value& v = Storage("lowRange");
1075  if (v == Json::Value::null) return StringPiece("");
1076  return StringPiece(v.asCString());
1077  }
1078 
1088  void set_low_range(const StringPiece& value) {
1089  *MutableStorage("lowRange") = value.data();
1090  }
1091 
1097  bool has_or_terms() const {
1098  return Storage().isMember("orTerms");
1099  }
1100 
1105  MutableStorage()->removeMember("orTerms");
1106  }
1107 
1108 
1112  const StringPiece get_or_terms() const {
1113  const Json::Value& v = Storage("orTerms");
1114  if (v == Json::Value::null) return StringPiece("");
1115  return StringPiece(v.asCString());
1116  }
1117 
1130  void set_or_terms(const StringPiece& value) {
1131  *MutableStorage("orTerms") = value.data();
1132  }
1133 
1139  bool has_output_encoding() const {
1140  return Storage().isMember("outputEncoding");
1141  }
1142 
1147  MutableStorage()->removeMember("outputEncoding");
1148  }
1149 
1150 
1154  const StringPiece get_output_encoding() const {
1155  const Json::Value& v = Storage("outputEncoding");
1156  if (v == Json::Value::null) return StringPiece("");
1157  return StringPiece(v.asCString());
1158  }
1159 
1167  void set_output_encoding(const StringPiece& value) {
1168  *MutableStorage("outputEncoding") = value.data();
1169  }
1170 
1176  bool has_related_site() const {
1177  return Storage().isMember("relatedSite");
1178  }
1179 
1184  MutableStorage()->removeMember("relatedSite");
1185  }
1186 
1187 
1191  const StringPiece get_related_site() const {
1192  const Json::Value& v = Storage("relatedSite");
1193  if (v == Json::Value::null) return StringPiece("");
1194  return StringPiece(v.asCString());
1195  }
1196 
1206  void set_related_site(const StringPiece& value) {
1207  *MutableStorage("relatedSite") = value.data();
1208  }
1209 
1215  bool has_rights() const {
1216  return Storage().isMember("rights");
1217  }
1218 
1222  void clear_rights() {
1223  MutableStorage()->removeMember("rights");
1224  }
1225 
1226 
1230  const StringPiece get_rights() const {
1231  const Json::Value& v = Storage("rights");
1232  if (v == Json::Value::null) return StringPiece("");
1233  return StringPiece(v.asCString());
1234  }
1235 
1253  void set_rights(const StringPiece& value) {
1254  *MutableStorage("rights") = value.data();
1255  }
1256 
1262  bool has_safe() const {
1263  return Storage().isMember("safe");
1264  }
1265 
1269  void clear_safe() {
1270  MutableStorage()->removeMember("safe");
1271  }
1272 
1273 
1277  const StringPiece get_safe() const {
1278  const Json::Value& v = Storage("safe");
1279  if (v == Json::Value::null) return StringPiece("");
1280  return StringPiece(v.asCString());
1281  }
1282 
1300  void set_safe(const StringPiece& value) {
1301  *MutableStorage("safe") = value.data();
1302  }
1303 
1309  bool has_search_terms() const {
1310  return Storage().isMember("searchTerms");
1311  }
1312 
1317  MutableStorage()->removeMember("searchTerms");
1318  }
1319 
1320 
1324  const StringPiece get_search_terms() const {
1325  const Json::Value& v = Storage("searchTerms");
1326  if (v == Json::Value::null) return StringPiece("");
1327  return StringPiece(v.asCString());
1328  }
1329 
1337  void set_search_terms(const StringPiece& value) {
1338  *MutableStorage("searchTerms") = value.data();
1339  }
1340 
1346  bool has_search_type() const {
1347  return Storage().isMember("searchType");
1348  }
1349 
1354  MutableStorage()->removeMember("searchType");
1355  }
1356 
1357 
1361  const StringPiece get_search_type() const {
1362  const Json::Value& v = Storage("searchType");
1363  if (v == Json::Value::null) return StringPiece("");
1364  return StringPiece(v.asCString());
1365  }
1366 
1376  void set_search_type(const StringPiece& value) {
1377  *MutableStorage("searchType") = value.data();
1378  }
1379 
1385  bool has_site_search() const {
1386  return Storage().isMember("siteSearch");
1387  }
1388 
1393  MutableStorage()->removeMember("siteSearch");
1394  }
1395 
1396 
1400  const StringPiece get_site_search() const {
1401  const Json::Value& v = Storage("siteSearch");
1402  if (v == Json::Value::null) return StringPiece("");
1403  return StringPiece(v.asCString());
1404  }
1405 
1413  void set_site_search(const StringPiece& value) {
1414  *MutableStorage("siteSearch") = value.data();
1415  }
1416 
1422  bool has_site_search_filter() const {
1423  return Storage().isMember("siteSearchFilter");
1424  }
1425 
1430  MutableStorage()->removeMember("siteSearchFilter");
1431  }
1432 
1433 
1437  const StringPiece get_site_search_filter() const {
1438  const Json::Value& v = Storage("siteSearchFilter");
1439  if (v == Json::Value::null) return StringPiece("");
1440  return StringPiece(v.asCString());
1441  }
1442 
1455  void set_site_search_filter(const StringPiece& value) {
1456  *MutableStorage("siteSearchFilter") = value.data();
1457  }
1458 
1464  bool has_sort() const {
1465  return Storage().isMember("sort");
1466  }
1467 
1471  void clear_sort() {
1472  MutableStorage()->removeMember("sort");
1473  }
1474 
1475 
1479  const StringPiece get_sort() const {
1480  const Json::Value& v = Storage("sort");
1481  if (v == Json::Value::null) return StringPiece("");
1482  return StringPiece(v.asCString());
1483  }
1484 
1493  void set_sort(const StringPiece& value) {
1494  *MutableStorage("sort") = value.data();
1495  }
1496 
1502  bool has_start_index() const {
1503  return Storage().isMember("startIndex");
1504  }
1505 
1510  MutableStorage()->removeMember("startIndex");
1511  }
1512 
1513 
1517  int32 get_start_index() const {
1518  const Json::Value& storage = Storage("startIndex");
1519  return client::JsonValueToCppValueHelper<int32 >(storage);
1520  }
1521 
1530  void set_start_index(int32 value) {
1531  client::SetJsonValueFromCppValueHelper<int32 >(
1532  value, MutableStorage("startIndex"));
1533  }
1534 
1540  bool has_start_page() const {
1541  return Storage().isMember("startPage");
1542  }
1543 
1548  MutableStorage()->removeMember("startPage");
1549  }
1550 
1551 
1555  int32 get_start_page() const {
1556  const Json::Value& storage = Storage("startPage");
1557  return client::JsonValueToCppValueHelper<int32 >(storage);
1558  }
1559 
1568  void set_start_page(int32 value) {
1569  client::SetJsonValueFromCppValueHelper<int32 >(
1570  value, MutableStorage("startPage"));
1571  }
1572 
1578  bool has_title() const {
1579  return Storage().isMember("title");
1580  }
1581 
1585  void clear_title() {
1586  MutableStorage()->removeMember("title");
1587  }
1588 
1589 
1593  const StringPiece get_title() const {
1594  const Json::Value& v = Storage("title");
1595  if (v == Json::Value::null) return StringPiece("");
1596  return StringPiece(v.asCString());
1597  }
1598 
1606  void set_title(const StringPiece& value) {
1607  *MutableStorage("title") = value.data();
1608  }
1609 
1615  bool has_total_results() const {
1616  return Storage().isMember("totalResults");
1617  }
1618 
1623  MutableStorage()->removeMember("totalResults");
1624  }
1625 
1626 
1630  int64 get_total_results() const {
1631  const Json::Value& storage = Storage("totalResults");
1632  return client::JsonValueToCppValueHelper<int64 >(storage);
1633  }
1634 
1642  void set_total_results(int64 value) {
1643  client::SetJsonValueFromCppValueHelper<int64 >(
1644  value, MutableStorage("totalResults"));
1645  }
1646 
1647  private:
1648  void operator=(const SearchQueriesNextPage&);
1649  }; // SearchQueriesNextPage
1655  class SearchQueriesPreviousPage : public client::JsonCppData {
1656  public:
1662  static SearchQueriesPreviousPage* New();
1663 
1669  explicit SearchQueriesPreviousPage(const Json::Value& storage);
1670 
1676  explicit SearchQueriesPreviousPage(Json::Value* storage);
1677 
1681  virtual ~SearchQueriesPreviousPage();
1682 
1688  const StringPiece GetTypeName() const {
1689  return StringPiece("google_customsearch_api::SearchQueriesPreviousPage");
1690  }
1691 
1697  bool has_count() const {
1698  return Storage().isMember("count");
1699  }
1700 
1704  void clear_count() {
1705  MutableStorage()->removeMember("count");
1706  }
1707 
1708 
1712  int32 get_count() const {
1713  const Json::Value& storage = Storage("count");
1714  return client::JsonValueToCppValueHelper<int32 >(storage);
1715  }
1716 
1724  void set_count(int32 value) {
1725  client::SetJsonValueFromCppValueHelper<int32 >(
1726  value, MutableStorage("count"));
1727  }
1728 
1734  bool has_cr() const {
1735  return Storage().isMember("cr");
1736  }
1737 
1741  void clear_cr() {
1742  MutableStorage()->removeMember("cr");
1743  }
1744 
1745 
1749  const StringPiece get_cr() const {
1750  const Json::Value& v = Storage("cr");
1751  if (v == Json::Value::null) return StringPiece("");
1752  return StringPiece(v.asCString());
1753  }
1754 
1778  void set_cr(const StringPiece& value) {
1779  *MutableStorage("cr") = value.data();
1780  }
1781 
1787  bool has_cx() const {
1788  return Storage().isMember("cx");
1789  }
1790 
1794  void clear_cx() {
1795  MutableStorage()->removeMember("cx");
1796  }
1797 
1798 
1802  const StringPiece get_cx() const {
1803  const Json::Value& v = Storage("cx");
1804  if (v == Json::Value::null) return StringPiece("");
1805  return StringPiece(v.asCString());
1806  }
1807 
1818  void set_cx(const StringPiece& value) {
1819  *MutableStorage("cx") = value.data();
1820  }
1821 
1827  bool has_date_restrict() const {
1828  return Storage().isMember("dateRestrict");
1829  }
1830 
1835  MutableStorage()->removeMember("dateRestrict");
1836  }
1837 
1838 
1842  const StringPiece get_date_restrict() const {
1843  const Json::Value& v = Storage("dateRestrict");
1844  if (v == Json::Value::null) return StringPiece("");
1845  return StringPiece(v.asCString());
1846  }
1847 
1866  void set_date_restrict(const StringPiece& value) {
1867  *MutableStorage("dateRestrict") = value.data();
1868  }
1869 
1878  return Storage().isMember("disableCnTwTranslation");
1879  }
1880 
1885  MutableStorage()->removeMember("disableCnTwTranslation");
1886  }
1887 
1888 
1892  const StringPiece get_disable_cn_tw_translation() const {
1893  const Json::Value& v = Storage("disableCnTwTranslation");
1894  if (v == Json::Value::null) return StringPiece("");
1895  return StringPiece(v.asCString());
1896  }
1897 
1915  void set_disable_cn_tw_translation(const StringPiece& value) {
1916  *MutableStorage("disableCnTwTranslation") = value.data();
1917  }
1918 
1924  bool has_exact_terms() const {
1925  return Storage().isMember("exactTerms");
1926  }
1927 
1932  MutableStorage()->removeMember("exactTerms");
1933  }
1934 
1935 
1939  const StringPiece get_exact_terms() const {
1940  const Json::Value& v = Storage("exactTerms");
1941  if (v == Json::Value::null) return StringPiece("");
1942  return StringPiece(v.asCString());
1943  }
1944 
1953  void set_exact_terms(const StringPiece& value) {
1954  *MutableStorage("exactTerms") = value.data();
1955  }
1956 
1962  bool has_exclude_terms() const {
1963  return Storage().isMember("excludeTerms");
1964  }
1965 
1970  MutableStorage()->removeMember("excludeTerms");
1971  }
1972 
1973 
1977  const StringPiece get_exclude_terms() const {
1978  const Json::Value& v = Storage("excludeTerms");
1979  if (v == Json::Value::null) return StringPiece("");
1980  return StringPiece(v.asCString());
1981  }
1982 
1991  void set_exclude_terms(const StringPiece& value) {
1992  *MutableStorage("excludeTerms") = value.data();
1993  }
1994 
2000  bool has_file_type() const {
2001  return Storage().isMember("fileType");
2002  }
2003 
2008  MutableStorage()->removeMember("fileType");
2009  }
2010 
2011 
2015  const StringPiece get_file_type() const {
2016  const Json::Value& v = Storage("fileType");
2017  if (v == Json::Value::null) return StringPiece("");
2018  return StringPiece(v.asCString());
2019  }
2020 
2060  void set_file_type(const StringPiece& value) {
2061  *MutableStorage("fileType") = value.data();
2062  }
2063 
2069  bool has_filter() const {
2070  return Storage().isMember("filter");
2071  }
2072 
2076  void clear_filter() {
2077  MutableStorage()->removeMember("filter");
2078  }
2079 
2080 
2084  const StringPiece get_filter() const {
2085  const Json::Value& v = Storage("filter");
2086  if (v == Json::Value::null) return StringPiece("");
2087  return StringPiece(v.asCString());
2088  }
2089 
2110  void set_filter(const StringPiece& value) {
2111  *MutableStorage("filter") = value.data();
2112  }
2113 
2119  bool has_gl() const {
2120  return Storage().isMember("gl");
2121  }
2122 
2126  void clear_gl() {
2127  MutableStorage()->removeMember("gl");
2128  }
2129 
2130 
2134  const StringPiece get_gl() const {
2135  const Json::Value& v = Storage("gl");
2136  if (v == Json::Value::null) return StringPiece("");
2137  return StringPiece(v.asCString());
2138  }
2139 
2158  void set_gl(const StringPiece& value) {
2159  *MutableStorage("gl") = value.data();
2160  }
2161 
2167  bool has_google_host() const {
2168  return Storage().isMember("googleHost");
2169  }
2170 
2175  MutableStorage()->removeMember("googleHost");
2176  }
2177 
2178 
2182  const StringPiece get_google_host() const {
2183  const Json::Value& v = Storage("googleHost");
2184  if (v == Json::Value::null) return StringPiece("");
2185  return StringPiece(v.asCString());
2186  }
2187 
2196  void set_google_host(const StringPiece& value) {
2197  *MutableStorage("googleHost") = value.data();
2198  }
2199 
2205  bool has_high_range() const {
2206  return Storage().isMember("highRange");
2207  }
2208 
2213  MutableStorage()->removeMember("highRange");
2214  }
2215 
2216 
2220  const StringPiece get_high_range() const {
2221  const Json::Value& v = Storage("highRange");
2222  if (v == Json::Value::null) return StringPiece("");
2223  return StringPiece(v.asCString());
2224  }
2225 
2235  void set_high_range(const StringPiece& value) {
2236  *MutableStorage("highRange") = value.data();
2237  }
2238 
2244  bool has_hl() const {
2245  return Storage().isMember("hl");
2246  }
2247 
2251  void clear_hl() {
2252  MutableStorage()->removeMember("hl");
2253  }
2254 
2255 
2259  const StringPiece get_hl() const {
2260  const Json::Value& v = Storage("hl");
2261  if (v == Json::Value::null) return StringPiece("");
2262  return StringPiece(v.asCString());
2263  }
2264 
2286  void set_hl(const StringPiece& value) {
2287  *MutableStorage("hl") = value.data();
2288  }
2289 
2295  bool has_hq() const {
2296  return Storage().isMember("hq");
2297  }
2298 
2302  void clear_hq() {
2303  MutableStorage()->removeMember("hq");
2304  }
2305 
2306 
2310  const StringPiece get_hq() const {
2311  const Json::Value& v = Storage("hq");
2312  if (v == Json::Value::null) return StringPiece("");
2313  return StringPiece(v.asCString());
2314  }
2315 
2325  void set_hq(const StringPiece& value) {
2326  *MutableStorage("hq") = value.data();
2327  }
2328 
2334  bool has_img_color_type() const {
2335  return Storage().isMember("imgColorType");
2336  }
2337 
2342  MutableStorage()->removeMember("imgColorType");
2343  }
2344 
2345 
2349  const StringPiece get_img_color_type() const {
2350  const Json::Value& v = Storage("imgColorType");
2351  if (v == Json::Value::null) return StringPiece("");
2352  return StringPiece(v.asCString());
2353  }
2354 
2369  void set_img_color_type(const StringPiece& value) {
2370  *MutableStorage("imgColorType") = value.data();
2371  }
2372 
2378  bool has_img_dominant_color() const {
2379  return Storage().isMember("imgDominantColor");
2380  }
2381 
2386  MutableStorage()->removeMember("imgDominantColor");
2387  }
2388 
2389 
2393  const StringPiece get_img_dominant_color() const {
2394  const Json::Value& v = Storage("imgDominantColor");
2395  if (v == Json::Value::null) return StringPiece("");
2396  return StringPiece(v.asCString());
2397  }
2398 
2431  void set_img_dominant_color(const StringPiece& value) {
2432  *MutableStorage("imgDominantColor") = value.data();
2433  }
2434 
2440  bool has_img_size() const {
2441  return Storage().isMember("imgSize");
2442  }
2443 
2448  MutableStorage()->removeMember("imgSize");
2449  }
2450 
2451 
2455  const StringPiece get_img_size() const {
2456  const Json::Value& v = Storage("imgSize");
2457  if (v == Json::Value::null) return StringPiece("");
2458  return StringPiece(v.asCString());
2459  }
2460 
2476  void set_img_size(const StringPiece& value) {
2477  *MutableStorage("imgSize") = value.data();
2478  }
2479 
2485  bool has_img_type() const {
2486  return Storage().isMember("imgType");
2487  }
2488 
2493  MutableStorage()->removeMember("imgType");
2494  }
2495 
2496 
2500  const StringPiece get_img_type() const {
2501  const Json::Value& v = Storage("imgType");
2502  if (v == Json::Value::null) return StringPiece("");
2503  return StringPiece(v.asCString());
2504  }
2505 
2525  void set_img_type(const StringPiece& value) {
2526  *MutableStorage("imgType") = value.data();
2527  }
2528 
2534  bool has_input_encoding() const {
2535  return Storage().isMember("inputEncoding");
2536  }
2537 
2542  MutableStorage()->removeMember("inputEncoding");
2543  }
2544 
2545 
2549  const StringPiece get_input_encoding() const {
2550  const Json::Value& v = Storage("inputEncoding");
2551  if (v == Json::Value::null) return StringPiece("");
2552  return StringPiece(v.asCString());
2553  }
2554 
2562  void set_input_encoding(const StringPiece& value) {
2563  *MutableStorage("inputEncoding") = value.data();
2564  }
2565 
2571  bool has_language() const {
2572  return Storage().isMember("language");
2573  }
2574 
2579  MutableStorage()->removeMember("language");
2580  }
2581 
2582 
2586  const StringPiece get_language() const {
2587  const Json::Value& v = Storage("language");
2588  if (v == Json::Value::null) return StringPiece("");
2589  return StringPiece(v.asCString());
2590  }
2591 
2599  void set_language(const StringPiece& value) {
2600  *MutableStorage("language") = value.data();
2601  }
2602 
2608  bool has_link_site() const {
2609  return Storage().isMember("linkSite");
2610  }
2611 
2616  MutableStorage()->removeMember("linkSite");
2617  }
2618 
2619 
2623  const StringPiece get_link_site() const {
2624  const Json::Value& v = Storage("linkSite");
2625  if (v == Json::Value::null) return StringPiece("");
2626  return StringPiece(v.asCString());
2627  }
2628 
2636  void set_link_site(const StringPiece& value) {
2637  *MutableStorage("linkSite") = value.data();
2638  }
2639 
2645  bool has_low_range() const {
2646  return Storage().isMember("lowRange");
2647  }
2648 
2653  MutableStorage()->removeMember("lowRange");
2654  }
2655 
2656 
2660  const StringPiece get_low_range() const {
2661  const Json::Value& v = Storage("lowRange");
2662  if (v == Json::Value::null) return StringPiece("");
2663  return StringPiece(v.asCString());
2664  }
2665 
2675  void set_low_range(const StringPiece& value) {
2676  *MutableStorage("lowRange") = value.data();
2677  }
2678 
2684  bool has_or_terms() const {
2685  return Storage().isMember("orTerms");
2686  }
2687 
2692  MutableStorage()->removeMember("orTerms");
2693  }
2694 
2695 
2699  const StringPiece get_or_terms() const {
2700  const Json::Value& v = Storage("orTerms");
2701  if (v == Json::Value::null) return StringPiece("");
2702  return StringPiece(v.asCString());
2703  }
2704 
2717  void set_or_terms(const StringPiece& value) {
2718  *MutableStorage("orTerms") = value.data();
2719  }
2720 
2726  bool has_output_encoding() const {
2727  return Storage().isMember("outputEncoding");
2728  }
2729 
2734  MutableStorage()->removeMember("outputEncoding");
2735  }
2736 
2737 
2741  const StringPiece get_output_encoding() const {
2742  const Json::Value& v = Storage("outputEncoding");
2743  if (v == Json::Value::null) return StringPiece("");
2744  return StringPiece(v.asCString());
2745  }
2746 
2754  void set_output_encoding(const StringPiece& value) {
2755  *MutableStorage("outputEncoding") = value.data();
2756  }
2757 
2763  bool has_related_site() const {
2764  return Storage().isMember("relatedSite");
2765  }
2766 
2771  MutableStorage()->removeMember("relatedSite");
2772  }
2773 
2774 
2778  const StringPiece get_related_site() const {
2779  const Json::Value& v = Storage("relatedSite");
2780  if (v == Json::Value::null) return StringPiece("");
2781  return StringPiece(v.asCString());
2782  }
2783 
2793  void set_related_site(const StringPiece& value) {
2794  *MutableStorage("relatedSite") = value.data();
2795  }
2796 
2802  bool has_rights() const {
2803  return Storage().isMember("rights");
2804  }
2805 
2809  void clear_rights() {
2810  MutableStorage()->removeMember("rights");
2811  }
2812 
2813 
2817  const StringPiece get_rights() const {
2818  const Json::Value& v = Storage("rights");
2819  if (v == Json::Value::null) return StringPiece("");
2820  return StringPiece(v.asCString());
2821  }
2822 
2840  void set_rights(const StringPiece& value) {
2841  *MutableStorage("rights") = value.data();
2842  }
2843 
2849  bool has_safe() const {
2850  return Storage().isMember("safe");
2851  }
2852 
2856  void clear_safe() {
2857  MutableStorage()->removeMember("safe");
2858  }
2859 
2860 
2864  const StringPiece get_safe() const {
2865  const Json::Value& v = Storage("safe");
2866  if (v == Json::Value::null) return StringPiece("");
2867  return StringPiece(v.asCString());
2868  }
2869 
2887  void set_safe(const StringPiece& value) {
2888  *MutableStorage("safe") = value.data();
2889  }
2890 
2896  bool has_search_terms() const {
2897  return Storage().isMember("searchTerms");
2898  }
2899 
2904  MutableStorage()->removeMember("searchTerms");
2905  }
2906 
2907 
2911  const StringPiece get_search_terms() const {
2912  const Json::Value& v = Storage("searchTerms");
2913  if (v == Json::Value::null) return StringPiece("");
2914  return StringPiece(v.asCString());
2915  }
2916 
2924  void set_search_terms(const StringPiece& value) {
2925  *MutableStorage("searchTerms") = value.data();
2926  }
2927 
2933  bool has_search_type() const {
2934  return Storage().isMember("searchType");
2935  }
2936 
2941  MutableStorage()->removeMember("searchType");
2942  }
2943 
2944 
2948  const StringPiece get_search_type() const {
2949  const Json::Value& v = Storage("searchType");
2950  if (v == Json::Value::null) return StringPiece("");
2951  return StringPiece(v.asCString());
2952  }
2953 
2963  void set_search_type(const StringPiece& value) {
2964  *MutableStorage("searchType") = value.data();
2965  }
2966 
2972  bool has_site_search() const {
2973  return Storage().isMember("siteSearch");
2974  }
2975 
2980  MutableStorage()->removeMember("siteSearch");
2981  }
2982 
2983 
2987  const StringPiece get_site_search() const {
2988  const Json::Value& v = Storage("siteSearch");
2989  if (v == Json::Value::null) return StringPiece("");
2990  return StringPiece(v.asCString());
2991  }
2992 
3000  void set_site_search(const StringPiece& value) {
3001  *MutableStorage("siteSearch") = value.data();
3002  }
3003 
3009  bool has_site_search_filter() const {
3010  return Storage().isMember("siteSearchFilter");
3011  }
3012 
3017  MutableStorage()->removeMember("siteSearchFilter");
3018  }
3019 
3020 
3024  const StringPiece get_site_search_filter() const {
3025  const Json::Value& v = Storage("siteSearchFilter");
3026  if (v == Json::Value::null) return StringPiece("");
3027  return StringPiece(v.asCString());
3028  }
3029 
3042  void set_site_search_filter(const StringPiece& value) {
3043  *MutableStorage("siteSearchFilter") = value.data();
3044  }
3045 
3051  bool has_sort() const {
3052  return Storage().isMember("sort");
3053  }
3054 
3058  void clear_sort() {
3059  MutableStorage()->removeMember("sort");
3060  }
3061 
3062 
3066  const StringPiece get_sort() const {
3067  const Json::Value& v = Storage("sort");
3068  if (v == Json::Value::null) return StringPiece("");
3069  return StringPiece(v.asCString());
3070  }
3071 
3080  void set_sort(const StringPiece& value) {
3081  *MutableStorage("sort") = value.data();
3082  }
3083 
3089  bool has_start_index() const {
3090  return Storage().isMember("startIndex");
3091  }
3092 
3097  MutableStorage()->removeMember("startIndex");
3098  }
3099 
3100 
3104  int32 get_start_index() const {
3105  const Json::Value& storage = Storage("startIndex");
3106  return client::JsonValueToCppValueHelper<int32 >(storage);
3107  }
3108 
3117  void set_start_index(int32 value) {
3118  client::SetJsonValueFromCppValueHelper<int32 >(
3119  value, MutableStorage("startIndex"));
3120  }
3121 
3127  bool has_start_page() const {
3128  return Storage().isMember("startPage");
3129  }
3130 
3135  MutableStorage()->removeMember("startPage");
3136  }
3137 
3138 
3142  int32 get_start_page() const {
3143  const Json::Value& storage = Storage("startPage");
3144  return client::JsonValueToCppValueHelper<int32 >(storage);
3145  }
3146 
3155  void set_start_page(int32 value) {
3156  client::SetJsonValueFromCppValueHelper<int32 >(
3157  value, MutableStorage("startPage"));
3158  }
3159 
3165  bool has_title() const {
3166  return Storage().isMember("title");
3167  }
3168 
3172  void clear_title() {
3173  MutableStorage()->removeMember("title");
3174  }
3175 
3176 
3180  const StringPiece get_title() const {
3181  const Json::Value& v = Storage("title");
3182  if (v == Json::Value::null) return StringPiece("");
3183  return StringPiece(v.asCString());
3184  }
3185 
3193  void set_title(const StringPiece& value) {
3194  *MutableStorage("title") = value.data();
3195  }
3196 
3202  bool has_total_results() const {
3203  return Storage().isMember("totalResults");
3204  }
3205 
3210  MutableStorage()->removeMember("totalResults");
3211  }
3212 
3213 
3217  int64 get_total_results() const {
3218  const Json::Value& storage = Storage("totalResults");
3219  return client::JsonValueToCppValueHelper<int64 >(storage);
3220  }
3221 
3229  void set_total_results(int64 value) {
3230  client::SetJsonValueFromCppValueHelper<int64 >(
3231  value, MutableStorage("totalResults"));
3232  }
3233 
3234  private:
3235  void operator=(const SearchQueriesPreviousPage&);
3236  }; // SearchQueriesPreviousPage
3242  class SearchQueriesRequest : public client::JsonCppData {
3243  public:
3249  static SearchQueriesRequest* New();
3250 
3256  explicit SearchQueriesRequest(const Json::Value& storage);
3257 
3263  explicit SearchQueriesRequest(Json::Value* storage);
3264 
3268  virtual ~SearchQueriesRequest();
3269 
3275  const StringPiece GetTypeName() const {
3276  return StringPiece("google_customsearch_api::SearchQueriesRequest");
3277  }
3278 
3284  bool has_count() const {
3285  return Storage().isMember("count");
3286  }
3287 
3291  void clear_count() {
3292  MutableStorage()->removeMember("count");
3293  }
3294 
3295 
3299  int32 get_count() const {
3300  const Json::Value& storage = Storage("count");
3301  return client::JsonValueToCppValueHelper<int32 >(storage);
3302  }
3303 
3311  void set_count(int32 value) {
3312  client::SetJsonValueFromCppValueHelper<int32 >(
3313  value, MutableStorage("count"));
3314  }
3315 
3321  bool has_cr() const {
3322  return Storage().isMember("cr");
3323  }
3324 
3328  void clear_cr() {
3329  MutableStorage()->removeMember("cr");
3330  }
3331 
3332 
3336  const StringPiece get_cr() const {
3337  const Json::Value& v = Storage("cr");
3338  if (v == Json::Value::null) return StringPiece("");
3339  return StringPiece(v.asCString());
3340  }
3341 
3365  void set_cr(const StringPiece& value) {
3366  *MutableStorage("cr") = value.data();
3367  }
3368 
3374  bool has_cx() const {
3375  return Storage().isMember("cx");
3376  }
3377 
3381  void clear_cx() {
3382  MutableStorage()->removeMember("cx");
3383  }
3384 
3385 
3389  const StringPiece get_cx() const {
3390  const Json::Value& v = Storage("cx");
3391  if (v == Json::Value::null) return StringPiece("");
3392  return StringPiece(v.asCString());
3393  }
3394 
3405  void set_cx(const StringPiece& value) {
3406  *MutableStorage("cx") = value.data();
3407  }
3408 
3414  bool has_date_restrict() const {
3415  return Storage().isMember("dateRestrict");
3416  }
3417 
3422  MutableStorage()->removeMember("dateRestrict");
3423  }
3424 
3425 
3429  const StringPiece get_date_restrict() const {
3430  const Json::Value& v = Storage("dateRestrict");
3431  if (v == Json::Value::null) return StringPiece("");
3432  return StringPiece(v.asCString());
3433  }
3434 
3453  void set_date_restrict(const StringPiece& value) {
3454  *MutableStorage("dateRestrict") = value.data();
3455  }
3456 
3465  return Storage().isMember("disableCnTwTranslation");
3466  }
3467 
3472  MutableStorage()->removeMember("disableCnTwTranslation");
3473  }
3474 
3475 
3479  const StringPiece get_disable_cn_tw_translation() const {
3480  const Json::Value& v = Storage("disableCnTwTranslation");
3481  if (v == Json::Value::null) return StringPiece("");
3482  return StringPiece(v.asCString());
3483  }
3484 
3502  void set_disable_cn_tw_translation(const StringPiece& value) {
3503  *MutableStorage("disableCnTwTranslation") = value.data();
3504  }
3505 
3511  bool has_exact_terms() const {
3512  return Storage().isMember("exactTerms");
3513  }
3514 
3519  MutableStorage()->removeMember("exactTerms");
3520  }
3521 
3522 
3526  const StringPiece get_exact_terms() const {
3527  const Json::Value& v = Storage("exactTerms");
3528  if (v == Json::Value::null) return StringPiece("");
3529  return StringPiece(v.asCString());
3530  }
3531 
3540  void set_exact_terms(const StringPiece& value) {
3541  *MutableStorage("exactTerms") = value.data();
3542  }
3543 
3549  bool has_exclude_terms() const {
3550  return Storage().isMember("excludeTerms");
3551  }
3552 
3557  MutableStorage()->removeMember("excludeTerms");
3558  }
3559 
3560 
3564  const StringPiece get_exclude_terms() const {
3565  const Json::Value& v = Storage("excludeTerms");
3566  if (v == Json::Value::null) return StringPiece("");
3567  return StringPiece(v.asCString());
3568  }
3569 
3578  void set_exclude_terms(const StringPiece& value) {
3579  *MutableStorage("excludeTerms") = value.data();
3580  }
3581 
3587  bool has_file_type() const {
3588  return Storage().isMember("fileType");
3589  }
3590 
3595  MutableStorage()->removeMember("fileType");
3596  }
3597 
3598 
3602  const StringPiece get_file_type() const {
3603  const Json::Value& v = Storage("fileType");
3604  if (v == Json::Value::null) return StringPiece("");
3605  return StringPiece(v.asCString());
3606  }
3607 
3647  void set_file_type(const StringPiece& value) {
3648  *MutableStorage("fileType") = value.data();
3649  }
3650 
3656  bool has_filter() const {
3657  return Storage().isMember("filter");
3658  }
3659 
3663  void clear_filter() {
3664  MutableStorage()->removeMember("filter");
3665  }
3666 
3667 
3671  const StringPiece get_filter() const {
3672  const Json::Value& v = Storage("filter");
3673  if (v == Json::Value::null) return StringPiece("");
3674  return StringPiece(v.asCString());
3675  }
3676 
3697  void set_filter(const StringPiece& value) {
3698  *MutableStorage("filter") = value.data();
3699  }
3700 
3706  bool has_gl() const {
3707  return Storage().isMember("gl");
3708  }
3709 
3713  void clear_gl() {
3714  MutableStorage()->removeMember("gl");
3715  }
3716 
3717 
3721  const StringPiece get_gl() const {
3722  const Json::Value& v = Storage("gl");
3723  if (v == Json::Value::null) return StringPiece("");
3724  return StringPiece(v.asCString());
3725  }
3726 
3745  void set_gl(const StringPiece& value) {
3746  *MutableStorage("gl") = value.data();
3747  }
3748 
3754  bool has_google_host() const {
3755  return Storage().isMember("googleHost");
3756  }
3757 
3762  MutableStorage()->removeMember("googleHost");
3763  }
3764 
3765 
3769  const StringPiece get_google_host() const {
3770  const Json::Value& v = Storage("googleHost");
3771  if (v == Json::Value::null) return StringPiece("");
3772  return StringPiece(v.asCString());
3773  }
3774 
3783  void set_google_host(const StringPiece& value) {
3784  *MutableStorage("googleHost") = value.data();
3785  }
3786 
3792  bool has_high_range() const {
3793  return Storage().isMember("highRange");
3794  }
3795 
3800  MutableStorage()->removeMember("highRange");
3801  }
3802 
3803 
3807  const StringPiece get_high_range() const {
3808  const Json::Value& v = Storage("highRange");
3809  if (v == Json::Value::null) return StringPiece("");
3810  return StringPiece(v.asCString());
3811  }
3812 
3822  void set_high_range(const StringPiece& value) {
3823  *MutableStorage("highRange") = value.data();
3824  }
3825 
3831  bool has_hl() const {
3832  return Storage().isMember("hl");
3833  }
3834 
3838  void clear_hl() {
3839  MutableStorage()->removeMember("hl");
3840  }
3841 
3842 
3846  const StringPiece get_hl() const {
3847  const Json::Value& v = Storage("hl");
3848  if (v == Json::Value::null) return StringPiece("");
3849  return StringPiece(v.asCString());
3850  }
3851 
3873  void set_hl(const StringPiece& value) {
3874  *MutableStorage("hl") = value.data();
3875  }
3876 
3882  bool has_hq() const {
3883  return Storage().isMember("hq");
3884  }
3885 
3889  void clear_hq() {
3890  MutableStorage()->removeMember("hq");
3891  }
3892 
3893 
3897  const StringPiece get_hq() const {
3898  const Json::Value& v = Storage("hq");
3899  if (v == Json::Value::null) return StringPiece("");
3900  return StringPiece(v.asCString());
3901  }
3902 
3912  void set_hq(const StringPiece& value) {
3913  *MutableStorage("hq") = value.data();
3914  }
3915 
3921  bool has_img_color_type() const {
3922  return Storage().isMember("imgColorType");
3923  }
3924 
3929  MutableStorage()->removeMember("imgColorType");
3930  }
3931 
3932 
3936  const StringPiece get_img_color_type() const {
3937  const Json::Value& v = Storage("imgColorType");
3938  if (v == Json::Value::null) return StringPiece("");
3939  return StringPiece(v.asCString());
3940  }
3941 
3956  void set_img_color_type(const StringPiece& value) {
3957  *MutableStorage("imgColorType") = value.data();
3958  }
3959 
3965  bool has_img_dominant_color() const {
3966  return Storage().isMember("imgDominantColor");
3967  }
3968 
3973  MutableStorage()->removeMember("imgDominantColor");
3974  }
3975 
3976 
3980  const StringPiece get_img_dominant_color() const {
3981  const Json::Value& v = Storage("imgDominantColor");
3982  if (v == Json::Value::null) return StringPiece("");
3983  return StringPiece(v.asCString());
3984  }
3985 
4018  void set_img_dominant_color(const StringPiece& value) {
4019  *MutableStorage("imgDominantColor") = value.data();
4020  }
4021 
4027  bool has_img_size() const {
4028  return Storage().isMember("imgSize");
4029  }
4030 
4035  MutableStorage()->removeMember("imgSize");
4036  }
4037 
4038 
4042  const StringPiece get_img_size() const {
4043  const Json::Value& v = Storage("imgSize");
4044  if (v == Json::Value::null) return StringPiece("");
4045  return StringPiece(v.asCString());
4046  }
4047 
4063  void set_img_size(const StringPiece& value) {
4064  *MutableStorage("imgSize") = value.data();
4065  }
4066 
4072  bool has_img_type() const {
4073  return Storage().isMember("imgType");
4074  }
4075 
4080  MutableStorage()->removeMember("imgType");
4081  }
4082 
4083 
4087  const StringPiece get_img_type() const {
4088  const Json::Value& v = Storage("imgType");
4089  if (v == Json::Value::null) return StringPiece("");
4090  return StringPiece(v.asCString());
4091  }
4092 
4112  void set_img_type(const StringPiece& value) {
4113  *MutableStorage("imgType") = value.data();
4114  }
4115 
4121  bool has_input_encoding() const {
4122  return Storage().isMember("inputEncoding");
4123  }
4124 
4129  MutableStorage()->removeMember("inputEncoding");
4130  }
4131 
4132 
4136  const StringPiece get_input_encoding() const {
4137  const Json::Value& v = Storage("inputEncoding");
4138  if (v == Json::Value::null) return StringPiece("");
4139  return StringPiece(v.asCString());
4140  }
4141 
4149  void set_input_encoding(const StringPiece& value) {
4150  *MutableStorage("inputEncoding") = value.data();
4151  }
4152 
4158  bool has_language() const {
4159  return Storage().isMember("language");
4160  }
4161 
4166  MutableStorage()->removeMember("language");
4167  }
4168 
4169 
4173  const StringPiece get_language() const {
4174  const Json::Value& v = Storage("language");
4175  if (v == Json::Value::null) return StringPiece("");
4176  return StringPiece(v.asCString());
4177  }
4178 
4186  void set_language(const StringPiece& value) {
4187  *MutableStorage("language") = value.data();
4188  }
4189 
4195  bool has_link_site() const {
4196  return Storage().isMember("linkSite");
4197  }
4198 
4203  MutableStorage()->removeMember("linkSite");
4204  }
4205 
4206 
4210  const StringPiece get_link_site() const {
4211  const Json::Value& v = Storage("linkSite");
4212  if (v == Json::Value::null) return StringPiece("");
4213  return StringPiece(v.asCString());
4214  }
4215 
4223  void set_link_site(const StringPiece& value) {
4224  *MutableStorage("linkSite") = value.data();
4225  }
4226 
4232  bool has_low_range() const {
4233  return Storage().isMember("lowRange");
4234  }
4235 
4240  MutableStorage()->removeMember("lowRange");
4241  }
4242 
4243 
4247  const StringPiece get_low_range() const {
4248  const Json::Value& v = Storage("lowRange");
4249  if (v == Json::Value::null) return StringPiece("");
4250  return StringPiece(v.asCString());
4251  }
4252 
4262  void set_low_range(const StringPiece& value) {
4263  *MutableStorage("lowRange") = value.data();
4264  }
4265 
4271  bool has_or_terms() const {
4272  return Storage().isMember("orTerms");
4273  }
4274 
4279  MutableStorage()->removeMember("orTerms");
4280  }
4281 
4282 
4286  const StringPiece get_or_terms() const {
4287  const Json::Value& v = Storage("orTerms");
4288  if (v == Json::Value::null) return StringPiece("");
4289  return StringPiece(v.asCString());
4290  }
4291 
4304  void set_or_terms(const StringPiece& value) {
4305  *MutableStorage("orTerms") = value.data();
4306  }
4307 
4313  bool has_output_encoding() const {
4314  return Storage().isMember("outputEncoding");
4315  }
4316 
4321  MutableStorage()->removeMember("outputEncoding");
4322  }
4323 
4324 
4328  const StringPiece get_output_encoding() const {
4329  const Json::Value& v = Storage("outputEncoding");
4330  if (v == Json::Value::null) return StringPiece("");
4331  return StringPiece(v.asCString());
4332  }
4333 
4341  void set_output_encoding(const StringPiece& value) {
4342  *MutableStorage("outputEncoding") = value.data();
4343  }
4344 
4350  bool has_related_site() const {
4351  return Storage().isMember("relatedSite");
4352  }
4353 
4358  MutableStorage()->removeMember("relatedSite");
4359  }
4360 
4361 
4365  const StringPiece get_related_site() const {
4366  const Json::Value& v = Storage("relatedSite");
4367  if (v == Json::Value::null) return StringPiece("");
4368  return StringPiece(v.asCString());
4369  }
4370 
4380  void set_related_site(const StringPiece& value) {
4381  *MutableStorage("relatedSite") = value.data();
4382  }
4383 
4389  bool has_rights() const {
4390  return Storage().isMember("rights");
4391  }
4392 
4396  void clear_rights() {
4397  MutableStorage()->removeMember("rights");
4398  }
4399 
4400 
4404  const StringPiece get_rights() const {
4405  const Json::Value& v = Storage("rights");
4406  if (v == Json::Value::null) return StringPiece("");
4407  return StringPiece(v.asCString());
4408  }
4409 
4427  void set_rights(const StringPiece& value) {
4428  *MutableStorage("rights") = value.data();
4429  }
4430 
4436  bool has_safe() const {
4437  return Storage().isMember("safe");
4438  }
4439 
4443  void clear_safe() {
4444  MutableStorage()->removeMember("safe");
4445  }
4446 
4447 
4451  const StringPiece get_safe() const {
4452  const Json::Value& v = Storage("safe");
4453  if (v == Json::Value::null) return StringPiece("");
4454  return StringPiece(v.asCString());
4455  }
4456 
4474  void set_safe(const StringPiece& value) {
4475  *MutableStorage("safe") = value.data();
4476  }
4477 
4483  bool has_search_terms() const {
4484  return Storage().isMember("searchTerms");
4485  }
4486 
4491  MutableStorage()->removeMember("searchTerms");
4492  }
4493 
4494 
4498  const StringPiece get_search_terms() const {
4499  const Json::Value& v = Storage("searchTerms");
4500  if (v == Json::Value::null) return StringPiece("");
4501  return StringPiece(v.asCString());
4502  }
4503 
4511  void set_search_terms(const StringPiece& value) {
4512  *MutableStorage("searchTerms") = value.data();
4513  }
4514 
4520  bool has_search_type() const {
4521  return Storage().isMember("searchType");
4522  }
4523 
4528  MutableStorage()->removeMember("searchType");
4529  }
4530 
4531 
4535  const StringPiece get_search_type() const {
4536  const Json::Value& v = Storage("searchType");
4537  if (v == Json::Value::null) return StringPiece("");
4538  return StringPiece(v.asCString());
4539  }
4540 
4550  void set_search_type(const StringPiece& value) {
4551  *MutableStorage("searchType") = value.data();
4552  }
4553 
4559  bool has_site_search() const {
4560  return Storage().isMember("siteSearch");
4561  }
4562 
4567  MutableStorage()->removeMember("siteSearch");
4568  }
4569 
4570 
4574  const StringPiece get_site_search() const {
4575  const Json::Value& v = Storage("siteSearch");
4576  if (v == Json::Value::null) return StringPiece("");
4577  return StringPiece(v.asCString());
4578  }
4579 
4587  void set_site_search(const StringPiece& value) {
4588  *MutableStorage("siteSearch") = value.data();
4589  }
4590 
4596  bool has_site_search_filter() const {
4597  return Storage().isMember("siteSearchFilter");
4598  }
4599 
4604  MutableStorage()->removeMember("siteSearchFilter");
4605  }
4606 
4607 
4611  const StringPiece get_site_search_filter() const {
4612  const Json::Value& v = Storage("siteSearchFilter");
4613  if (v == Json::Value::null) return StringPiece("");
4614  return StringPiece(v.asCString());
4615  }
4616 
4629  void set_site_search_filter(const StringPiece& value) {
4630  *MutableStorage("siteSearchFilter") = value.data();
4631  }
4632 
4638  bool has_sort() const {
4639  return Storage().isMember("sort");
4640  }
4641 
4645  void clear_sort() {
4646  MutableStorage()->removeMember("sort");
4647  }
4648 
4649 
4653  const StringPiece get_sort() const {
4654  const Json::Value& v = Storage("sort");
4655  if (v == Json::Value::null) return StringPiece("");
4656  return StringPiece(v.asCString());
4657  }
4658 
4667  void set_sort(const StringPiece& value) {
4668  *MutableStorage("sort") = value.data();
4669  }
4670 
4676  bool has_start_index() const {
4677  return Storage().isMember("startIndex");
4678  }
4679 
4684  MutableStorage()->removeMember("startIndex");
4685  }
4686 
4687 
4691  int32 get_start_index() const {
4692  const Json::Value& storage = Storage("startIndex");
4693  return client::JsonValueToCppValueHelper<int32 >(storage);
4694  }
4695 
4704  void set_start_index(int32 value) {
4705  client::SetJsonValueFromCppValueHelper<int32 >(
4706  value, MutableStorage("startIndex"));
4707  }
4708 
4714  bool has_start_page() const {
4715  return Storage().isMember("startPage");
4716  }
4717 
4722  MutableStorage()->removeMember("startPage");
4723  }
4724 
4725 
4729  int32 get_start_page() const {
4730  const Json::Value& storage = Storage("startPage");
4731  return client::JsonValueToCppValueHelper<int32 >(storage);
4732  }
4733 
4742  void set_start_page(int32 value) {
4743  client::SetJsonValueFromCppValueHelper<int32 >(
4744  value, MutableStorage("startPage"));
4745  }
4746 
4752  bool has_title() const {
4753  return Storage().isMember("title");
4754  }
4755 
4759  void clear_title() {
4760  MutableStorage()->removeMember("title");
4761  }
4762 
4763 
4767  const StringPiece get_title() const {
4768  const Json::Value& v = Storage("title");
4769  if (v == Json::Value::null) return StringPiece("");
4770  return StringPiece(v.asCString());
4771  }
4772 
4780  void set_title(const StringPiece& value) {
4781  *MutableStorage("title") = value.data();
4782  }
4783 
4789  bool has_total_results() const {
4790  return Storage().isMember("totalResults");
4791  }
4792 
4797  MutableStorage()->removeMember("totalResults");
4798  }
4799 
4800 
4804  int64 get_total_results() const {
4805  const Json::Value& storage = Storage("totalResults");
4806  return client::JsonValueToCppValueHelper<int64 >(storage);
4807  }
4808 
4816  void set_total_results(int64 value) {
4817  client::SetJsonValueFromCppValueHelper<int64 >(
4818  value, MutableStorage("totalResults"));
4819  }
4820 
4821  private:
4822  void operator=(const SearchQueriesRequest&);
4823  }; // SearchQueriesRequest
4829  static SearchQueries* New();
4830 
4836  explicit SearchQueries(const Json::Value& storage);
4837 
4843  explicit SearchQueries(Json::Value* storage);
4844 
4848  virtual ~SearchQueries();
4849 
4855  const StringPiece GetTypeName() const {
4856  return StringPiece("google_customsearch_api::SearchQueries");
4857  }
4858 
4864  bool has_next_page() const {
4865  return Storage().isMember("nextPage");
4866  }
4867 
4872  MutableStorage()->removeMember("nextPage");
4873  }
4874 
4875 
4879  const client::JsonCppArray<SearchQueriesNextPage > get_next_page() const {
4880  const Json::Value& storage = Storage("nextPage");
4881  return client::JsonValueToCppValueHelper<client::JsonCppArray<SearchQueriesNextPage > >(storage);
4882  }
4883 
4892  client::JsonCppArray<SearchQueriesNextPage > mutable_nextPage() {
4893  Json::Value* storage = MutableStorage("nextPage");
4894  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<SearchQueriesNextPage > >(storage);
4895  }
4896 
4902  bool has_previous_page() const {
4903  return Storage().isMember("previousPage");
4904  }
4905 
4910  MutableStorage()->removeMember("previousPage");
4911  }
4912 
4913 
4918  const client::JsonCppArray<SearchQueriesPreviousPage > get_previous_page() const {
4919  const Json::Value& storage = Storage("previousPage");
4920  return client::JsonValueToCppValueHelper<client::JsonCppArray<SearchQueriesPreviousPage > >(storage);
4921  }
4922 
4931  client::JsonCppArray<SearchQueriesPreviousPage > mutable_previousPage() {
4932  Json::Value* storage = MutableStorage("previousPage");
4933  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<SearchQueriesPreviousPage > >(storage);
4934  }
4935 
4941  bool has_request() const {
4942  return Storage().isMember("request");
4943  }
4944 
4948  void clear_request() {
4949  MutableStorage()->removeMember("request");
4950  }
4951 
4952 
4956  const client::JsonCppArray<SearchQueriesRequest > get_request() const {
4957  const Json::Value& storage = Storage("request");
4958  return client::JsonValueToCppValueHelper<client::JsonCppArray<SearchQueriesRequest > >(storage);
4959  }
4960 
4969  client::JsonCppArray<SearchQueriesRequest > mutable_request() {
4970  Json::Value* storage = MutableStorage("request");
4971  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<SearchQueriesRequest > >(storage);
4972  }
4973 
4974  private:
4975  void operator=(const SearchQueries&);
4976  }; // SearchQueries
4982  class SearchSearchInformation : public client::JsonCppData {
4983  public:
4989  static SearchSearchInformation* New();
4990 
4996  explicit SearchSearchInformation(const Json::Value& storage);
4997 
5003  explicit SearchSearchInformation(Json::Value* storage);
5004 
5008  virtual ~SearchSearchInformation();
5009 
5015  const StringPiece GetTypeName() const {
5016  return StringPiece("google_customsearch_api::SearchSearchInformation");
5017  }
5018 
5025  return Storage().isMember("formattedSearchTime");
5026  }
5027 
5032  MutableStorage()->removeMember("formattedSearchTime");
5033  }
5034 
5035 
5039  const StringPiece get_formatted_search_time() const {
5040  const Json::Value& v = Storage("formattedSearchTime");
5041  if (v == Json::Value::null) return StringPiece("");
5042  return StringPiece(v.asCString());
5043  }
5044 
5053  void set_formatted_search_time(const StringPiece& value) {
5054  *MutableStorage("formattedSearchTime") = value.data();
5055  }
5056 
5064  return Storage().isMember("formattedTotalResults");
5065  }
5066 
5071  MutableStorage()->removeMember("formattedTotalResults");
5072  }
5073 
5074 
5078  const StringPiece get_formatted_total_results() const {
5079  const Json::Value& v = Storage("formattedTotalResults");
5080  if (v == Json::Value::null) return StringPiece("");
5081  return StringPiece(v.asCString());
5082  }
5083 
5091  void set_formatted_total_results(const StringPiece& value) {
5092  *MutableStorage("formattedTotalResults") = value.data();
5093  }
5094 
5100  bool has_search_time() const {
5101  return Storage().isMember("searchTime");
5102  }
5103 
5108  MutableStorage()->removeMember("searchTime");
5109  }
5110 
5111 
5115  double get_search_time() const {
5116  const Json::Value& storage = Storage("searchTime");
5117  return client::JsonValueToCppValueHelper<double >(storage);
5118  }
5119 
5127  void set_search_time(double value) {
5128  client::SetJsonValueFromCppValueHelper<double >(
5129  value, MutableStorage("searchTime"));
5130  }
5131 
5137  bool has_total_results() const {
5138  return Storage().isMember("totalResults");
5139  }
5140 
5145  MutableStorage()->removeMember("totalResults");
5146  }
5147 
5148 
5152  const StringPiece get_total_results() const {
5153  const Json::Value& v = Storage("totalResults");
5154  if (v == Json::Value::null) return StringPiece("");
5155  return StringPiece(v.asCString());
5156  }
5157 
5165  void set_total_results(const StringPiece& value) {
5166  *MutableStorage("totalResults") = value.data();
5167  }
5168 
5169  private:
5170  void operator=(const SearchSearchInformation&);
5171  }; // SearchSearchInformation
5177  class SearchSpelling : public client::JsonCppData {
5178  public:
5184  static SearchSpelling* New();
5185 
5191  explicit SearchSpelling(const Json::Value& storage);
5192 
5198  explicit SearchSpelling(Json::Value* storage);
5199 
5203  virtual ~SearchSpelling();
5204 
5210  const StringPiece GetTypeName() const {
5211  return StringPiece("google_customsearch_api::SearchSpelling");
5212  }
5213 
5219  bool has_corrected_query() const {
5220  return Storage().isMember("correctedQuery");
5221  }
5222 
5227  MutableStorage()->removeMember("correctedQuery");
5228  }
5229 
5230 
5234  const StringPiece get_corrected_query() const {
5235  const Json::Value& v = Storage("correctedQuery");
5236  if (v == Json::Value::null) return StringPiece("");
5237  return StringPiece(v.asCString());
5238  }
5239 
5247  void set_corrected_query(const StringPiece& value) {
5248  *MutableStorage("correctedQuery") = value.data();
5249  }
5250 
5257  return Storage().isMember("htmlCorrectedQuery");
5258  }
5259 
5264  MutableStorage()->removeMember("htmlCorrectedQuery");
5265  }
5266 
5267 
5271  const StringPiece get_html_corrected_query() const {
5272  const Json::Value& v = Storage("htmlCorrectedQuery");
5273  if (v == Json::Value::null) return StringPiece("");
5274  return StringPiece(v.asCString());
5275  }
5276 
5284  void set_html_corrected_query(const StringPiece& value) {
5285  *MutableStorage("htmlCorrectedQuery") = value.data();
5286  }
5287 
5288  private:
5289  void operator=(const SearchSpelling&);
5290  }; // SearchSpelling
5296  class SearchUrl : public client::JsonCppData {
5297  public:
5303  static SearchUrl* New();
5304 
5310  explicit SearchUrl(const Json::Value& storage);
5311 
5317  explicit SearchUrl(Json::Value* storage);
5318 
5322  virtual ~SearchUrl();
5323 
5329  const StringPiece GetTypeName() const {
5330  return StringPiece("google_customsearch_api::SearchUrl");
5331  }
5332 
5338  bool has_template() const {
5339  return Storage().isMember("template");
5340  }
5341 
5346  MutableStorage()->removeMember("template");
5347  }
5348 
5349 
5353  const StringPiece get_template() const {
5354  const Json::Value& v = Storage("template");
5355  if (v == Json::Value::null) return StringPiece("");
5356  return StringPiece(v.asCString());
5357  }
5358 
5369  void set_template(const StringPiece& value) {
5370  *MutableStorage("template") = value.data();
5371  }
5372 
5378  bool has_type() const {
5379  return Storage().isMember("type");
5380  }
5381 
5385  void clear_type() {
5386  MutableStorage()->removeMember("type");
5387  }
5388 
5389 
5393  const StringPiece get_type() const {
5394  const Json::Value& v = Storage("type");
5395  if (v == Json::Value::null) return StringPiece("");
5396  return StringPiece(v.asCString());
5397  }
5398 
5406  void set_type(const StringPiece& value) {
5407  *MutableStorage("type") = value.data();
5408  }
5409 
5410  private:
5411  void operator=(const SearchUrl&);
5412  }; // SearchUrl
5418  static Search* New();
5419 
5425  explicit Search(const Json::Value& storage);
5426 
5432  explicit Search(Json::Value* storage);
5433 
5437  virtual ~Search();
5438 
5444  const StringPiece GetTypeName() const {
5445  return StringPiece("google_customsearch_api::Search");
5446  }
5447 
5453  bool has_context() const {
5454  return Storage().isMember("context");
5455  }
5456 
5460  void clear_context() {
5461  MutableStorage()->removeMember("context");
5462  }
5463 
5464 
5468  const client::JsonCppAssociativeArray<client::JsonCppData > get_context() const {
5469  const Json::Value& storage = Storage("context");
5470  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
5471  }
5472 
5488  client::JsonCppAssociativeArray<client::JsonCppData > mutable_context() {
5489  Json::Value* storage = MutableStorage("context");
5490  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<client::JsonCppData > >(storage);
5491  }
5492 
5498  bool has_items() const {
5499  return Storage().isMember("items");
5500  }
5501 
5505  void clear_items() {
5506  MutableStorage()->removeMember("items");
5507  }
5508 
5509 
5513  const client::JsonCppArray<Result > get_items() const;
5514 
5522  client::JsonCppArray<Result > mutable_items();
5523 
5529  bool has_kind() const {
5530  return Storage().isMember("kind");
5531  }
5532 
5536  void clear_kind() {
5537  MutableStorage()->removeMember("kind");
5538  }
5539 
5540 
5544  const StringPiece get_kind() const {
5545  const Json::Value& v = Storage("kind");
5546  if (v == Json::Value::null) return StringPiece("");
5547  return StringPiece(v.asCString());
5548  }
5549 
5558  void set_kind(const StringPiece& value) {
5559  *MutableStorage("kind") = value.data();
5560  }
5561 
5567  bool has_promotions() const {
5568  return Storage().isMember("promotions");
5569  }
5570 
5575  MutableStorage()->removeMember("promotions");
5576  }
5577 
5578 
5582  const client::JsonCppArray<Promotion > get_promotions() const;
5583 
5595  client::JsonCppArray<Promotion > mutable_promotions();
5596 
5602  bool has_queries() const {
5603  return Storage().isMember("queries");
5604  }
5605 
5609  void clear_queries() {
5610  MutableStorage()->removeMember("queries");
5611  }
5612 
5613 
5617  const SearchQueries get_queries() const {
5618  const Json::Value& storage = Storage("queries");
5619  return client::JsonValueToCppValueHelper<SearchQueries >(storage);
5620  }
5621 
5630  Json::Value* storage = MutableStorage("queries");
5631  return client::JsonValueToMutableCppValueHelper<SearchQueries >(storage);
5632  }
5633 
5639  bool has_search_information() const {
5640  return Storage().isMember("searchInformation");
5641  }
5642 
5647  MutableStorage()->removeMember("searchInformation");
5648  }
5649 
5650 
5656  const Json::Value& storage = Storage("searchInformation");
5657  return client::JsonValueToCppValueHelper<SearchSearchInformation >(storage);
5658  }
5659 
5669  Json::Value* storage = MutableStorage("searchInformation");
5670  return client::JsonValueToMutableCppValueHelper<SearchSearchInformation >(storage);
5671  }
5672 
5678  bool has_spelling() const {
5679  return Storage().isMember("spelling");
5680  }
5681 
5686  MutableStorage()->removeMember("spelling");
5687  }
5688 
5689 
5694  const Json::Value& storage = Storage("spelling");
5695  return client::JsonValueToCppValueHelper<SearchSpelling >(storage);
5696  }
5697 
5707  Json::Value* storage = MutableStorage("spelling");
5708  return client::JsonValueToMutableCppValueHelper<SearchSpelling >(storage);
5709  }
5710 
5716  bool has_url() const {
5717  return Storage().isMember("url");
5718  }
5719 
5723  void clear_url() {
5724  MutableStorage()->removeMember("url");
5725  }
5726 
5727 
5731  const SearchUrl get_url() const {
5732  const Json::Value& storage = Storage("url");
5733  return client::JsonValueToCppValueHelper<SearchUrl >(storage);
5734  }
5735 
5744  Json::Value* storage = MutableStorage("url");
5745  return client::JsonValueToMutableCppValueHelper<SearchUrl >(storage);
5746  }
5747 
5748  private:
5749  void operator=(const Search&);
5750 }; // Search
5751 } // namespace google_customsearch_api
5752 #endif // GOOGLE_CUSTOMSEARCH_API_SEARCH_H_
const StringPiece get_exact_terms() const
Definition: search.h:1939
void set_start_index(int32 value)
Definition: search.h:1530
const StringPiece get_rights() const
Definition: search.h:1230
void set_title(const StringPiece &value)
Definition: search.h:4780
void set_sort(const StringPiece &value)
Definition: search.h:3080
void set_total_results(int64 value)
Definition: search.h:4816
const StringPiece get_cr() const
Definition: search.h:1749
const StringPiece get_input_encoding() const
Definition: search.h:4136
void set_low_range(const StringPiece &value)
Definition: search.h:2675
const StringPiece get_img_color_type() const
Definition: search.h:2349
bool has_search_information() const
Definition: search.h:5639
const StringPiece get_low_range() const
Definition: search.h:4247
void set_start_page(int32 value)
Definition: search.h:1568
const StringPiece get_exclude_terms() const
Definition: search.h:1977
const StringPiece get_file_type() const
Definition: search.h:3602
void set_high_range(const StringPiece &value)
Definition: search.h:2235
void clear_items()
Definition: search.h:5505
void set_or_terms(const StringPiece &value)
Definition: search.h:4304
void set_hq(const StringPiece &value)
Definition: search.h:3912
SearchQueries mutable_queries()
Definition: search.h:5629
void set_input_encoding(const StringPiece &value)
Definition: search.h:975
void clear_next_page()
Definition: search.h:4871
const StringPiece get_search_terms() const
Definition: search.h:4498
void set_google_host(const StringPiece &value)
Definition: search.h:2196
void set_rights(const StringPiece &value)
Definition: search.h:1253
const SearchUrl get_url() const
Definition: search.h:5731
const StringPiece get_language() const
Definition: search.h:999
void clear_formatted_search_time()
Definition: search.h:5031
const StringPiece get_site_search() const
Definition: search.h:4574
const StringPiece get_hq() const
Definition: search.h:723
void set_search_time(double value)
Definition: search.h:5127
const StringPiece get_title() const
Definition: search.h:3180
void set_site_search_filter(const StringPiece &value)
Definition: search.h:4629
bool has_html_corrected_query() const
Definition: search.h:5256
const StringPiece get_high_range() const
Definition: search.h:633
const StringPiece get_or_terms() const
Definition: search.h:4286
bool has_previous_page() const
Definition: search.h:4902
const StringPiece get_safe() const
Definition: search.h:1277
void set_search_type(const StringPiece &value)
Definition: search.h:4550
const StringPiece get_sort() const
Definition: search.h:3066
bool has_corrected_query() const
Definition: search.h:5219
const StringPiece get_rights() const
Definition: search.h:4404
void set_output_encoding(const StringPiece &value)
Definition: search.h:1167
void set_start_page(int32 value)
Definition: search.h:4742
const StringPiece get_cr() const
Definition: search.h:162
const StringPiece get_google_host() const
Definition: search.h:2182
Definition: customsearch_service.cc:40
void set_sort(const StringPiece &value)
Definition: search.h:4667
const StringPiece get_output_encoding() const
Definition: search.h:2741
void set_search_terms(const StringPiece &value)
Definition: search.h:4511
const SearchSearchInformation get_search_information() const
Definition: search.h:5655
void set_search_type(const StringPiece &value)
Definition: search.h:1376
void set_disable_cn_tw_translation(const StringPiece &value)
Definition: search.h:328
void set_img_size(const StringPiece &value)
Definition: search.h:4063
const StringPiece get_input_encoding() const
Definition: search.h:962
const StringPiece get_filter() const
Definition: search.h:497
void set_cr(const StringPiece &value)
Definition: search.h:1778
bool has_context() const
Definition: search.h:5453
void clear_html_corrected_query()
Definition: search.h:5263
void set_file_type(const StringPiece &value)
Definition: search.h:473
const StringPiece get_img_color_type() const
Definition: search.h:762
void set_low_range(const StringPiece &value)
Definition: search.h:1088
const StringPiece get_img_color_type() const
Definition: search.h:3936
void set_rights(const StringPiece &value)
Definition: search.h:4427
void set_high_range(const StringPiece &value)
Definition: search.h:3822
void set_gl(const StringPiece &value)
Definition: search.h:2158
bool has_total_results() const
Definition: search.h:5137
const StringPiece get_cr() const
Definition: search.h:3336
const StringPiece get_exclude_terms() const
Definition: search.h:390
void set_date_restrict(const StringPiece &value)
Definition: search.h:3453
const StringPiece GetTypeName() const
Definition: search.h:5329
bool has_formatted_search_time() const
Definition: search.h:5024
void set_exact_terms(const StringPiece &value)
Definition: search.h:1953
void set_link_site(const StringPiece &value)
Definition: search.h:1049
const StringPiece GetTypeName() const
Definition: search.h:101
void set_html_corrected_query(const StringPiece &value)
Definition: search.h:5284
const StringPiece get_related_site() const
Definition: search.h:1191
void set_language(const StringPiece &value)
Definition: search.h:1012
const StringPiece get_disable_cn_tw_translation() const
Definition: search.h:1892
const StringPiece get_search_terms() const
Definition: search.h:2911
const StringPiece get_low_range() const
Definition: search.h:2660
const StringPiece get_output_encoding() const
Definition: search.h:4328
const StringPiece get_search_type() const
Definition: search.h:1361
void set_exact_terms(const StringPiece &value)
Definition: search.h:366
void set_language(const StringPiece &value)
Definition: search.h:2599
const StringPiece get_sort() const
Definition: search.h:4653
void set_related_site(const StringPiece &value)
Definition: search.h:2793
bool has_kind() const
Definition: search.h:5529
void set_link_site(const StringPiece &value)
Definition: search.h:2636
const StringPiece GetTypeName() const
Definition: search.h:4855
const StringPiece get_filter() const
Definition: search.h:2084
const StringPiece get_img_size() const
Definition: search.h:868
const StringPiece get_disable_cn_tw_translation() const
Definition: search.h:3479
const StringPiece get_img_type() const
Definition: search.h:2500
void clear_search_information()
Definition: search.h:5646
const StringPiece get_date_restrict() const
Definition: search.h:3429
void clear_formatted_total_results()
Definition: search.h:5070
void clear_context()
Definition: search.h:5460
void set_hq(const StringPiece &value)
Definition: search.h:738
void set_img_size(const StringPiece &value)
Definition: search.h:889
const StringPiece GetTypeName() const
Definition: search.h:5015
void set_filter(const StringPiece &value)
Definition: search.h:3697
void set_filter(const StringPiece &value)
Definition: search.h:2110
void set_or_terms(const StringPiece &value)
Definition: search.h:1130
const StringPiece get_img_dominant_color() const
Definition: search.h:806
bool has_next_page() const
Definition: search.h:4864
void clear_template()
Definition: search.h:5345
void set_formatted_search_time(const StringPiece &value)
Definition: search.h:5053
const StringPiece get_search_terms() const
Definition: search.h:1324
const StringPiece get_title() const
Definition: search.h:1593
bool has_request() const
Definition: search.h:4941
const StringPiece get_high_range() const
Definition: search.h:3807
const StringPiece get_disable_cn_tw_translation() const
Definition: search.h:305
void set_cx(const StringPiece &value)
Definition: search.h:231
const StringPiece get_hq() const
Definition: search.h:3897
const StringPiece get_img_dominant_color() const
Definition: search.h:2393
const SearchSpelling get_spelling() const
Definition: search.h:5693
const StringPiece get_file_type() const
Definition: search.h:428
void set_google_host(const StringPiece &value)
Definition: search.h:3783
void set_safe(const StringPiece &value)
Definition: search.h:1300
void set_rights(const StringPiece &value)
Definition: search.h:2840
const StringPiece get_hl() const
Definition: search.h:672
void set_sort(const StringPiece &value)
Definition: search.h:1493
const StringPiece get_link_site() const
Definition: search.h:1036
void set_cx(const StringPiece &value)
Definition: search.h:3405
void set_img_dominant_color(const StringPiece &value)
Definition: search.h:4018
const StringPiece GetTypeName() const
Definition: search.h:1688
void clear_queries()
Definition: search.h:5609
void set_search_type(const StringPiece &value)
Definition: search.h:2963
client::JsonCppArray< SearchQueriesPreviousPage > mutable_previousPage()
Definition: search.h:4931
const StringPiece get_hl() const
Definition: search.h:3846
void set_img_color_type(const StringPiece &value)
Definition: search.h:3956
void set_img_size(const StringPiece &value)
Definition: search.h:2476
const StringPiece get_output_encoding() const
Definition: search.h:1154
void set_title(const StringPiece &value)
Definition: search.h:3193
void set_cx(const StringPiece &value)
Definition: search.h:1818
void set_img_type(const StringPiece &value)
Definition: search.h:2525
bool has_template() const
Definition: search.h:5338
void set_exclude_terms(const StringPiece &value)
Definition: search.h:404
void set_related_site(const StringPiece &value)
Definition: search.h:1206
const StringPiece get_gl() const
Definition: search.h:3721
bool has_spelling() const
Definition: search.h:5678
void set_date_restrict(const StringPiece &value)
Definition: search.h:1866
void set_img_type(const StringPiece &value)
Definition: search.h:938
void set_start_index(int32 value)
Definition: search.h:4704
void set_total_results(const StringPiece &value)
Definition: search.h:5165
void clear_previous_page()
Definition: search.h:4909
const StringPiece get_corrected_query() const
Definition: search.h:5234
const StringPiece get_gl() const
Definition: search.h:547
void set_cr(const StringPiece &value)
Definition: search.h:3365
void set_safe(const StringPiece &value)
Definition: search.h:4474
const StringPiece get_related_site() const
Definition: search.h:4365
void set_hq(const StringPiece &value)
Definition: search.h:2325
void clear_kind()
Definition: search.h:5536
const client::JsonCppArray< SearchQueriesPreviousPage > get_previous_page() const
Definition: search.h:4918
const StringPiece get_or_terms() const
Definition: search.h:2699
const StringPiece GetTypeName() const
Definition: search.h:3275
void set_date_restrict(const StringPiece &value)
Definition: search.h:279
const StringPiece get_exact_terms() const
Definition: search.h:3526
void set_site_search(const StringPiece &value)
Definition: search.h:4587
void set_high_range(const StringPiece &value)
Definition: search.h:648
const StringPiece get_site_search_filter() const
Definition: search.h:4611
void set_img_color_type(const StringPiece &value)
Definition: search.h:782
Definition: promotion.h:39
const StringPiece get_type() const
Definition: search.h:5393
const StringPiece get_low_range() const
Definition: search.h:1073
const StringPiece GetTypeName() const
Definition: search.h:5444
const StringPiece get_site_search() const
Definition: search.h:1400
const StringPiece get_cx() const
Definition: search.h:3389
void set_output_encoding(const StringPiece &value)
Definition: search.h:4341
const StringPiece get_kind() const
Definition: search.h:5544
void set_hl(const StringPiece &value)
Definition: search.h:3873
void clear_url()
Definition: search.h:5723
void set_gl(const StringPiece &value)
Definition: search.h:3745
void clear_request()
Definition: search.h:4948
void set_filter(const StringPiece &value)
Definition: search.h:523
void set_site_search(const StringPiece &value)
Definition: search.h:1413
const StringPiece get_date_restrict() const
Definition: search.h:255
const StringPiece get_filter() const
Definition: search.h:3671
void set_exact_terms(const StringPiece &value)
Definition: search.h:3540
void set_total_results(int64 value)
Definition: search.h:1642
const StringPiece get_img_size() const
Definition: search.h:4042
const StringPiece get_file_type() const
Definition: search.h:2015
void set_exclude_terms(const StringPiece &value)
Definition: search.h:3578
client::JsonCppArray< SearchQueriesNextPage > mutable_nextPage()
Definition: search.h:4892
const StringPiece get_link_site() const
Definition: search.h:4210
const StringPiece get_site_search_filter() const
Definition: search.h:1437
const StringPiece get_formatted_search_time() const
Definition: search.h:5039
Definition: search.h:54
const client::JsonCppArray< SearchQueriesNextPage > get_next_page() const
Definition: search.h:4879
const StringPiece get_html_corrected_query() const
Definition: search.h:5271
void set_img_type(const StringPiece &value)
Definition: search.h:4112
void set_related_site(const StringPiece &value)
Definition: search.h:4380
const StringPiece get_language() const
Definition: search.h:4173
void set_output_encoding(const StringPiece &value)
Definition: search.h:2754
void set_gl(const StringPiece &value)
Definition: search.h:571
const StringPiece get_formatted_total_results() const
Definition: search.h:5078
const StringPiece get_or_terms() const
Definition: search.h:1112
void set_search_terms(const StringPiece &value)
Definition: search.h:2924
const StringPiece get_gl() const
Definition: search.h:2134
const StringPiece get_google_host() const
Definition: search.h:3769
void set_site_search(const StringPiece &value)
Definition: search.h:3000
SearchSearchInformation mutable_searchInformation()
Definition: search.h:5668
void set_cr(const StringPiece &value)
Definition: search.h:191
void set_hl(const StringPiece &value)
Definition: search.h:2286
bool has_search_time() const
Definition: search.h:5100
void set_or_terms(const StringPiece &value)
Definition: search.h:2717
const StringPiece get_google_host() const
Definition: search.h:595
const StringPiece get_exclude_terms() const
Definition: search.h:3564
void set_safe(const StringPiece &value)
Definition: search.h:2887
const StringPiece get_search_type() const
Definition: search.h:4535
const client::JsonCppArray< SearchQueriesRequest > get_request() const
Definition: search.h:4956
const StringPiece get_cx() const
Definition: search.h:215
const StringPiece get_total_results() const
Definition: search.h:5152
void set_disable_cn_tw_translation(const StringPiece &value)
Definition: search.h:1915
void set_title(const StringPiece &value)
Definition: search.h:1606
void set_low_range(const StringPiece &value)
Definition: search.h:4262
const StringPiece get_exact_terms() const
Definition: search.h:352
void set_file_type(const StringPiece &value)
Definition: search.h:2060
bool has_url() const
Definition: search.h:5716
void set_exclude_terms(const StringPiece &value)
Definition: search.h:1991
void clear_corrected_query()
Definition: search.h:5226
bool has_items() const
Definition: search.h:5498
const StringPiece get_template() const
Definition: search.h:5353
void set_file_type(const StringPiece &value)
Definition: search.h:3647
client::JsonCppArray< SearchQueriesRequest > mutable_request()
Definition: search.h:4969
const client::JsonCppAssociativeArray< client::JsonCppData > get_context() const
Definition: search.h:5468
void set_disable_cn_tw_translation(const StringPiece &value)
Definition: search.h:3502
const StringPiece get_sort() const
Definition: search.h:1479
const StringPiece get_high_range() const
Definition: search.h:2220
void set_input_encoding(const StringPiece &value)
Definition: search.h:2562
void set_img_color_type(const StringPiece &value)
Definition: search.h:2369
const StringPiece get_img_dominant_color() const
Definition: search.h:3980
void set_search_terms(const StringPiece &value)
Definition: search.h:1337
void clear_type()
Definition: search.h:5385
void set_kind(const StringPiece &value)
Definition: search.h:5558
void set_img_dominant_color(const StringPiece &value)
Definition: search.h:2431
const StringPiece get_cx() const
Definition: search.h:1802
const SearchQueries get_queries() const
Definition: search.h:5617
const StringPiece GetTypeName() const
Definition: search.h:5210
const StringPiece get_img_size() const
Definition: search.h:2455
void clear_spelling()
Definition: search.h:5685
SearchUrl mutable_url()
Definition: search.h:5743
void set_hl(const StringPiece &value)
Definition: search.h:699
const StringPiece get_safe() const
Definition: search.h:2864
const StringPiece get_site_search() const
Definition: search.h:2987
double get_search_time() const
Definition: search.h:5115
const StringPiece get_link_site() const
Definition: search.h:2623
const StringPiece get_site_search_filter() const
Definition: search.h:3024
const StringPiece get_related_site() const
Definition: search.h:2778
const StringPiece get_rights() const
Definition: search.h:2817
const StringPiece get_title() const
Definition: search.h:4767
const StringPiece get_img_type() const
Definition: search.h:913
void clear_promotions()
Definition: search.h:5574
void set_site_search_filter(const StringPiece &value)
Definition: search.h:3042
const StringPiece get_search_type() const
Definition: search.h:2948
bool has_type() const
Definition: search.h:5378
void set_img_dominant_color(const StringPiece &value)
Definition: search.h:844
bool has_queries() const
Definition: search.h:5602
void set_google_host(const StringPiece &value)
Definition: search.h:609
bool has_promotions() const
Definition: search.h:5567
const StringPiece get_date_restrict() const
Definition: search.h:1842
const StringPiece get_safe() const
Definition: search.h:4451
void set_type(const StringPiece &value)
Definition: search.h:5406
client::JsonCppAssociativeArray< client::JsonCppData > mutable_context()
Definition: search.h:5488
bool has_disable_cn_tw_translation() const
Definition: search.h:3464
void set_site_search_filter(const StringPiece &value)
Definition: search.h:1455
void set_corrected_query(const StringPiece &value)
Definition: search.h:5247
const StringPiece get_language() const
Definition: search.h:2586
void set_formatted_total_results(const StringPiece &value)
Definition: search.h:5091
const StringPiece get_input_encoding() const
Definition: search.h:2549
void set_template(const StringPiece &value)
Definition: search.h:5369
bool has_formatted_total_results() const
Definition: search.h:5063
void set_input_encoding(const StringPiece &value)
Definition: search.h:4149
void set_link_site(const StringPiece &value)
Definition: search.h:4223
void set_language(const StringPiece &value)
Definition: search.h:4186
const StringPiece get_img_type() const
Definition: search.h:4087
const StringPiece get_hl() const
Definition: search.h:2259
const StringPiece get_hq() const
Definition: search.h:2310
SearchSpelling mutable_spelling()
Definition: search.h:5706