customsearch  v1
customsearch_service.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 //------------------------------------------------------------------------------
16 // This code was generated by google-apis-code-generator 1.5.1
17 // Build date: 2018-10-08 17:45:39 UTC
18 // on: 2020-04-13, 18:20:31 UTC
19 // C++ generator version: 0.1.4
20 //
21 // Changes to this file may cause incorrect behavior and will be lost if
22 // the code is regenerated.
23 //------------------------------------------------------------------------------
24 #ifndef GOOGLE_CUSTOMSEARCH_API_CUSTOMSEARCH_SERVICE_H_
25 #define GOOGLE_CUSTOMSEARCH_API_CUSTOMSEARCH_SERVICE_H_
26 
27 #include <string>
28 #include "googleapis/base/integral_types.h"
29 #include "googleapis/base/macros.h"
30 #include "googleapis/client/service/client_service.h"
31 #include "googleapis/client/util/status.h"
32 #include "googleapis/client/util/uri_template.h"
33 
34 #include "google/customsearch_api/search.h"
35 
36 
37 namespace google_customsearch_api {
38 using namespace googleapis;
69 class CustomsearchService;
70 
79  : public client::ClientServiceRequest {
80  public:
103  const client::ClientService* service,
104  client::AuthorizationCredential* credential,
105  client::HttpRequest::HttpMethod method,
106  const StringPiece& uri_template);
107 
112 
113 
117  void clear_xgafv() {
118  _have_xgafv_ = false;
119  client::ClearCppValueHelper(&xgafv_);
120  }
121 
122 
128  const string& get_xgafv() const { return xgafv_; }
129 
135  string* mutable_$Xgafv() {
136  _have_xgafv_ = true;
137  return &xgafv_;
138  }
139 
140 
146  void set_xgafv(const string& value) {
147  _have_xgafv_ = true;
148  xgafv_ = value;
149  }
150 
151 
152 
157  _have_access_token_ = false;
158  client::ClearCppValueHelper(&access_token_);
159  }
160 
161 
167  const string& get_access_token() const { return access_token_; }
168 
176  _have_access_token_ = true;
177  return &access_token_;
178  }
179 
180 
186  void set_access_token(const string& value) {
187  _have_access_token_ = true;
188  access_token_ = value;
189  }
190 
191 
192 
196  void clear_alt() {
197  _have_alt_ = false;
198  client::ClearCppValueHelper(&alt_);
199  }
200 
201 
207  const string& get_alt() const { return alt_; }
208 
214  string* mutable_alt() {
215  _have_alt_ = true;
216  return &alt_;
217  }
218 
219 
225  void set_alt(const string& value) {
226  _have_alt_ = true;
227  alt_ = value;
228  }
229 
230 
231 
235  void clear_callback() {
236  _have_callback_ = false;
237  client::ClearCppValueHelper(&callback_);
238  }
239 
240 
246  const string& get_callback() const { return callback_; }
247 
253  string* mutable_callback() {
254  _have_callback_ = true;
255  return &callback_;
256  }
257 
258 
264  void set_callback(const string& value) {
265  _have_callback_ = true;
266  callback_ = value;
267  }
268 
269 
270 
274  void clear_fields() {
275  _have_fields_ = false;
276  client::ClearCppValueHelper(&fields_);
277  }
278 
279 
285  const string& get_fields() const { return fields_; }
286 
292  string* mutable_fields() {
293  _have_fields_ = true;
294  return &fields_;
295  }
296 
297 
304  void set_fields(const string& value) {
305  _have_fields_ = true;
306  fields_ = value;
307  }
308 
309 
310 
314  void clear_key() {
315  _have_key_ = false;
316  client::ClearCppValueHelper(&key_);
317  }
318 
319 
325  const string& get_key() const { return key_; }
326 
332  string* mutable_key() {
333  _have_key_ = true;
334  return &key_;
335  }
336 
337 
345  void set_key(const string& value) {
346  _have_key_ = true;
347  key_ = value;
348  }
349 
350 
351 
356  _have_oauth_token_ = false;
357  client::ClearCppValueHelper(&oauth_token_);
358  }
359 
360 
366  const string& get_oauth_token() const { return oauth_token_; }
367 
374  string* mutable_oauthToken() {
375  _have_oauth_token_ = true;
376  return &oauth_token_;
377  }
378 
379 
385  void set_oauth_token(const string& value) {
386  _have_oauth_token_ = true;
387  oauth_token_ = value;
388  }
389 
390 
391 
396  _have_pretty_print_ = false;
397  client::ClearCppValueHelper(&pretty_print_);
398  }
399 
400 
406  bool get_pretty_print() const { return pretty_print_; }
407 
413  void set_pretty_print(bool value) {
414  _have_pretty_print_ = true;
415  pretty_print_ = value;
416  }
417 
422  _have_quota_user_ = false;
423  client::ClearCppValueHelper(&quota_user_);
424  }
425 
426 
432  const string& get_quota_user() const { return quota_user_; }
433 
440  string* mutable_quotaUser() {
441  _have_quota_user_ = true;
442  return &quota_user_;
443  }
444 
445 
453  void set_quota_user(const string& value) {
454  _have_quota_user_ = true;
455  quota_user_ = value;
456  }
457 
458 
459 
464  _have_upload_type_ = false;
465  client::ClearCppValueHelper(&upload_type_);
466  }
467 
468 
474  const string& get_upload_type() const { return upload_type_; }
475 
482  string* mutable_uploadType() {
483  _have_upload_type_ = true;
484  return &upload_type_;
485  }
486 
487 
494  void set_upload_type(const string& value) {
495  _have_upload_type_ = true;
496  upload_type_ = value;
497  }
498 
499 
500 
505  _have_upload_protocol_ = false;
506  client::ClearCppValueHelper(&upload_protocol_);
507  }
508 
509 
515  const string& get_upload_protocol() const { return upload_protocol_; }
516 
524  _have_upload_protocol_ = true;
525  return &upload_protocol_;
526  }
527 
528 
534  void set_upload_protocol(const string& value) {
535  _have_upload_protocol_ = true;
536  upload_protocol_ = value;
537  }
538 
549  virtual util::Status AppendVariable(
550  const StringPiece& variable_name,
551  const client::UriTemplateConfig& config,
552  string* target);
553 
559  virtual util::Status AppendOptionalQueryParameters(string* target);
560 
561 
562  protected:
568  void AddJsonContentToRequest(const client::JsonCppData *content);
569 
570  private:
571  string xgafv_;
572  string access_token_;
573  string alt_;
574  string callback_;
575  string fields_;
576  string key_;
577  string oauth_token_;
578  bool pretty_print_;
579  string quota_user_;
580  string upload_type_;
581  string upload_protocol_;
582  bool _have_xgafv_ : 1;
583  bool _have_access_token_ : 1;
584  bool _have_alt_ : 1;
585  bool _have_callback_ : 1;
586  bool _have_fields_ : 1;
587  bool _have_key_ : 1;
588  bool _have_oauth_token_ : 1;
589  bool _have_pretty_print_ : 1;
590  bool _have_quota_user_ : 1;
591  bool _have_upload_type_ : 1;
592  bool _have_upload_protocol_ : 1;
593 
594  DISALLOW_COPY_AND_ASSIGN(CustomsearchServiceBaseRequest);
595 };
596 
597 
598 
611  public:
620  const CustomsearchService* _service_,
621  client::AuthorizationCredential* _credential_);
622 
626  virtual ~CseResource_ListMethod();
627 
628 
632  void clear_sort() {
633  _have_sort_ = false;
634  client::ClearCppValueHelper(&sort_);
635  }
636 
637 
643  const string& get_sort() const { return sort_; }
644 
650  string* mutable_sort() {
651  _have_sort_ = true;
652  return &sort_;
653  }
654 
655 
661  void set_sort(const string& value) {
662  _have_sort_ = true;
663  sort_ = value;
664  }
665 
666 
667 
672  _have_link_site_ = false;
673  client::ClearCppValueHelper(&link_site_);
674  }
675 
676 
682  const string& get_link_site() const { return link_site_; }
683 
690  string* mutable_linkSite() {
691  _have_link_site_ = true;
692  return &link_site_;
693  }
694 
695 
703  void set_link_site(const string& value) {
704  _have_link_site_ = true;
705  link_site_ = value;
706  }
707 
708 
709 
713  void clear_hq() {
714  _have_hq_ = false;
715  client::ClearCppValueHelper(&hq_);
716  }
717 
718 
724  const string& get_hq() const { return hq_; }
725 
731  string* mutable_hq() {
732  _have_hq_ = true;
733  return &hq_;
734  }
735 
736 
744  void set_hq(const string& value) {
745  _have_hq_ = true;
746  hq_ = value;
747  }
748 
749 
750 
755  _have_search_type_ = false;
756  client::ClearCppValueHelper(&search_type_);
757  }
758 
759 
765  const string& get_search_type() const { return search_type_; }
766 
773  string* mutable_searchType() {
774  _have_search_type_ = true;
775  return &search_type_;
776  }
777 
778 
790  void set_search_type(const string& value) {
791  _have_search_type_ = true;
792  search_type_ = value;
793  }
794 
795 
796 
801  _have_file_type_ = false;
802  client::ClearCppValueHelper(&file_type_);
803  }
804 
805 
811  const string& get_file_type() const { return file_type_; }
812 
819  string* mutable_fileType() {
820  _have_file_type_ = true;
821  return &file_type_;
822  }
823 
824 
833  void set_file_type(const string& value) {
834  _have_file_type_ = true;
835  file_type_ = value;
836  }
837 
838 
839 
844  _have_related_site_ = false;
845  client::ClearCppValueHelper(&related_site_);
846  }
847 
848 
854  const string& get_related_site() const { return related_site_; }
855 
863  _have_related_site_ = true;
864  return &related_site_;
865  }
866 
867 
875  void set_related_site(const string& value) {
876  _have_related_site_ = true;
877  related_site_ = value;
878  }
879 
880 
881 
886  _have_site_search_ = false;
887  client::ClearCppValueHelper(&site_search_);
888  }
889 
890 
896  const string& get_site_search() const { return site_search_; }
897 
904  string* mutable_siteSearch() {
905  _have_site_search_ = true;
906  return &site_search_;
907  }
908 
909 
917  void set_site_search(const string& value) {
918  _have_site_search_ = true;
919  site_search_ = value;
920  }
921 
922 
923 
928  _have_exclude_terms_ = false;
929  client::ClearCppValueHelper(&exclude_terms_);
930  }
931 
932 
938  const string& get_exclude_terms() const { return exclude_terms_; }
939 
947  _have_exclude_terms_ = true;
948  return &exclude_terms_;
949  }
950 
951 
959  void set_exclude_terms(const string& value) {
960  _have_exclude_terms_ = true;
961  exclude_terms_ = value;
962  }
963 
964 
965 
970  _have_exact_terms_ = false;
971  client::ClearCppValueHelper(&exact_terms_);
972  }
973 
974 
980  const string& get_exact_terms() const { return exact_terms_; }
981 
988  string* mutable_exactTerms() {
989  _have_exact_terms_ = true;
990  return &exact_terms_;
991  }
992 
993 
1000  void set_exact_terms(const string& value) {
1001  _have_exact_terms_ = true;
1002  exact_terms_ = value;
1003  }
1004 
1005 
1006 
1010  void clear_num() {
1011  _have_num_ = false;
1012  client::ClearCppValueHelper(&num_);
1013  }
1014 
1015 
1021  int32 get_num() const { return num_; }
1022 
1030  void set_num(int32 value) {
1031  _have_num_ = true;
1032  num_ = value;
1033  }
1034 
1039  _have_img_type_ = false;
1040  client::ClearCppValueHelper(&img_type_);
1041  }
1042 
1043 
1049  const string& get_img_type() const { return img_type_; }
1050 
1057  string* mutable_imgType() {
1058  _have_img_type_ = true;
1059  return &img_type_;
1060  }
1061 
1062 
1080  void set_img_type(const string& value) {
1081  _have_img_type_ = true;
1082  img_type_ = value;
1083  }
1084 
1085 
1086 
1090  void clear_c2coff() {
1091  _have_c2coff_ = false;
1092  client::ClearCppValueHelper(&c2coff_);
1093  }
1094 
1095 
1101  const string& get_c2coff() const { return c2coff_; }
1102 
1108  string* mutable_c2coff() {
1109  _have_c2coff_ = true;
1110  return &c2coff_;
1111  }
1112 
1113 
1129  void set_c2coff(const string& value) {
1130  _have_c2coff_ = true;
1131  c2coff_ = value;
1132  }
1133 
1134 
1135 
1139  void clear_filter() {
1140  _have_filter_ = false;
1141  client::ClearCppValueHelper(&filter_);
1142  }
1143 
1144 
1150  const string& get_filter() const { return filter_; }
1151 
1157  string* mutable_filter() {
1158  _have_filter_ = true;
1159  return &filter_;
1160  }
1161 
1162 
1182  void set_filter(const string& value) {
1183  _have_filter_ = true;
1184  filter_ = value;
1185  }
1186 
1187 
1188 
1193  _have_high_range_ = false;
1194  client::ClearCppValueHelper(&high_range_);
1195  }
1196 
1197 
1203  const string& get_high_range() const { return high_range_; }
1204 
1211  string* mutable_highRange() {
1212  _have_high_range_ = true;
1213  return &high_range_;
1214  }
1215 
1216 
1225  void set_high_range(const string& value) {
1226  _have_high_range_ = true;
1227  high_range_ = value;
1228  }
1229 
1230 
1231 
1235  void clear_hl() {
1236  _have_hl_ = false;
1237  client::ClearCppValueHelper(&hl_);
1238  }
1239 
1240 
1246  const string& get_hl() const { return hl_; }
1247 
1253  string* mutable_hl() {
1254  _have_hl_ = true;
1255  return &hl_;
1256  }
1257 
1258 
1278  void set_hl(const string& value) {
1279  _have_hl_ = true;
1280  hl_ = value;
1281  }
1282 
1283 
1284 
1288  void clear_gl() {
1289  _have_gl_ = false;
1290  client::ClearCppValueHelper(&gl_);
1291  }
1292 
1293 
1299  const string& get_gl() const { return gl_; }
1300 
1306  string* mutable_gl() {
1307  _have_gl_ = true;
1308  return &gl_;
1309  }
1310 
1311 
1332  void set_gl(const string& value) {
1333  _have_gl_ = true;
1334  gl_ = value;
1335  }
1336 
1337 
1338 
1343  _have_googlehost_ = false;
1344  client::ClearCppValueHelper(&googlehost_);
1345  }
1346 
1347 
1353  const string& get_googlehost() const { return googlehost_; }
1354 
1362  _have_googlehost_ = true;
1363  return &googlehost_;
1364  }
1365 
1366 
1376  void set_googlehost(const string& value) {
1377  _have_googlehost_ = true;
1378  googlehost_ = value;
1379  }
1380 
1381 
1382 
1387  _have_img_size_ = false;
1388  client::ClearCppValueHelper(&img_size_);
1389  }
1390 
1391 
1397  const string& get_img_size() const { return img_size_; }
1398 
1405  string* mutable_imgSize() {
1406  _have_img_size_ = true;
1407  return &img_size_;
1408  }
1409 
1410 
1431  void set_img_size(const string& value) {
1432  _have_img_size_ = true;
1433  img_size_ = value;
1434  }
1435 
1436 
1437 
1441  void clear_cr() {
1442  _have_cr_ = false;
1443  client::ClearCppValueHelper(&cr_);
1444  }
1445 
1446 
1452  const string& get_cr() const { return cr_; }
1453 
1459  string* mutable_cr() {
1460  _have_cr_ = true;
1461  return &cr_;
1462  }
1463 
1464 
1487  void set_cr(const string& value) {
1488  _have_cr_ = true;
1489  cr_ = value;
1490  }
1491 
1492 
1493 
1498  _have_or_terms_ = false;
1499  client::ClearCppValueHelper(&or_terms_);
1500  }
1501 
1502 
1508  const string& get_or_terms() const { return or_terms_; }
1509 
1516  string* mutable_orTerms() {
1517  _have_or_terms_ = true;
1518  return &or_terms_;
1519  }
1520 
1521 
1531  void set_or_terms(const string& value) {
1532  _have_or_terms_ = true;
1533  or_terms_ = value;
1534  }
1535 
1536 
1537 
1542  _have_date_restrict_ = false;
1543  client::ClearCppValueHelper(&date_restrict_);
1544  }
1545 
1546 
1552  const string& get_date_restrict() const { return date_restrict_; }
1553 
1561  _have_date_restrict_ = true;
1562  return &date_restrict_;
1563  }
1564 
1565 
1580  void set_date_restrict(const string& value) {
1581  _have_date_restrict_ = true;
1582  date_restrict_ = value;
1583  }
1584 
1585 
1586 
1590  void clear_rights() {
1591  _have_rights_ = false;
1592  client::ClearCppValueHelper(&rights_);
1593  }
1594 
1595 
1601  const string& get_rights() const { return rights_; }
1602 
1608  string* mutable_rights() {
1609  _have_rights_ = true;
1610  return &rights_;
1611  }
1612 
1613 
1624  void set_rights(const string& value) {
1625  _have_rights_ = true;
1626  rights_ = value;
1627  }
1628 
1629 
1630 
1634  void clear_q() {
1635  _have_q_ = false;
1636  client::ClearCppValueHelper(&q_);
1637  }
1638 
1639 
1645  const string& get_q() const { return q_; }
1646 
1652  string* mutable_q() {
1653  _have_q_ = true;
1654  return &q_;
1655  }
1656 
1657 
1663  void set_q(const string& value) {
1664  _have_q_ = true;
1665  q_ = value;
1666  }
1667 
1668 
1669 
1673  void clear_cx() {
1674  _have_cx_ = false;
1675  client::ClearCppValueHelper(&cx_);
1676  }
1677 
1678 
1684  const string& get_cx() const { return cx_; }
1685 
1691  string* mutable_cx() {
1692  _have_cx_ = true;
1693  return &cx_;
1694  }
1695 
1696 
1702  void set_cx(const string& value) {
1703  _have_cx_ = true;
1704  cx_ = value;
1705  }
1706 
1707 
1708 
1713  _have_low_range_ = false;
1714  client::ClearCppValueHelper(&low_range_);
1715  }
1716 
1717 
1723  const string& get_low_range() const { return low_range_; }
1724 
1731  string* mutable_lowRange() {
1732  _have_low_range_ = true;
1733  return &low_range_;
1734  }
1735 
1736 
1745  void set_low_range(const string& value) {
1746  _have_low_range_ = true;
1747  low_range_ = value;
1748  }
1749 
1750 
1751 
1755  void clear_lr() {
1756  _have_lr_ = false;
1757  client::ClearCppValueHelper(&lr_);
1758  }
1759 
1760 
1766  const string& get_lr() const { return lr_; }
1767 
1773  string* mutable_lr() {
1774  _have_lr_ = true;
1775  return &lr_;
1776  }
1777 
1778 
1858  void set_lr(const string& value) {
1859  _have_lr_ = true;
1860  lr_ = value;
1861  }
1862 
1863 
1864 
1870  _have_img_dominant_color_ = false;
1871  client::ClearCppValueHelper(&img_dominant_color_);
1872  }
1873 
1874 
1880  const string& get_img_dominant_color() const { return img_dominant_color_; }
1881 
1889  _have_img_dominant_color_ = true;
1890  return &img_dominant_color_;
1891  }
1892 
1893 
1924  void set_img_dominant_color(const string& value) {
1925  _have_img_dominant_color_ = true;
1926  img_dominant_color_ = value;
1927  }
1928 
1929 
1930 
1935  _have_img_color_type_ = false;
1936  client::ClearCppValueHelper(&img_color_type_);
1937  }
1938 
1939 
1945  const string& get_img_color_type() const { return img_color_type_; }
1946 
1954  _have_img_color_type_ = true;
1955  return &img_color_type_;
1956  }
1957 
1958 
1974  void set_img_color_type(const string& value) {
1975  _have_img_color_type_ = true;
1976  img_color_type_ = value;
1977  }
1978 
1979 
1980 
1984  void clear_safe() {
1985  _have_safe_ = false;
1986  client::ClearCppValueHelper(&safe_);
1987  }
1988 
1989 
1995  const string& get_safe() const { return safe_; }
1996 
2002  string* mutable_safe() {
2003  _have_safe_ = true;
2004  return &safe_;
2005  }
2006 
2007 
2017  void set_safe(const string& value) {
2018  _have_safe_ = true;
2019  safe_ = value;
2020  }
2021 
2022 
2023 
2029  _have_site_search_filter_ = false;
2030  client::ClearCppValueHelper(&site_search_filter_);
2031  }
2032 
2033 
2039  const string& get_site_search_filter() const { return site_search_filter_; }
2040 
2048  _have_site_search_filter_ = true;
2049  return &site_search_filter_;
2050  }
2051 
2052 
2066  void set_site_search_filter(const string& value) {
2067  _have_site_search_filter_ = true;
2068  site_search_filter_ = value;
2069  }
2070 
2071 
2072 
2076  void clear_start() {
2077  _have_start_ = false;
2078  client::ClearCppValueHelper(&start_);
2079  }
2080 
2081 
2087  uint32 get_start() const { return start_; }
2088 
2101  void set_start(uint32 value) {
2102  _have_start_ = true;
2103  start_ = value;
2104  }
2105 
2115  virtual util::Status AppendVariable(
2116  const StringPiece& variable_name,
2117  const client::UriTemplateConfig& config,
2118  string* target);
2119 
2125  virtual util::Status AppendOptionalQueryParameters(string* target);
2126 
2127 
2139  Search* data) {
2140  return CustomsearchServiceBaseRequest::ExecuteAndParseResponse(data);
2141  }
2142 
2143  private:
2144  string sort_;
2145  string link_site_;
2146  string hq_;
2147  string search_type_;
2148  string file_type_;
2149  string related_site_;
2150  string site_search_;
2151  string exclude_terms_;
2152  string exact_terms_;
2153  int32 num_;
2154  string img_type_;
2155  string c2coff_;
2156  string filter_;
2157  string high_range_;
2158  string hl_;
2159  string gl_;
2160  string googlehost_;
2161  string img_size_;
2162  string cr_;
2163  string or_terms_;
2164  string date_restrict_;
2165  string rights_;
2166  string q_;
2167  string cx_;
2168  string low_range_;
2169  string lr_;
2170  string img_dominant_color_;
2171  string img_color_type_;
2172  string safe_;
2173  string site_search_filter_;
2174  uint32 start_;
2175  bool _have_sort_ : 1;
2176  bool _have_link_site_ : 1;
2177  bool _have_hq_ : 1;
2178  bool _have_search_type_ : 1;
2179  bool _have_file_type_ : 1;
2180  bool _have_related_site_ : 1;
2181  bool _have_site_search_ : 1;
2182  bool _have_exclude_terms_ : 1;
2183  bool _have_exact_terms_ : 1;
2184  bool _have_num_ : 1;
2185  bool _have_img_type_ : 1;
2186  bool _have_c2coff_ : 1;
2187  bool _have_filter_ : 1;
2188  bool _have_high_range_ : 1;
2189  bool _have_hl_ : 1;
2190  bool _have_gl_ : 1;
2191  bool _have_googlehost_ : 1;
2192  bool _have_img_size_ : 1;
2193  bool _have_cr_ : 1;
2194  bool _have_or_terms_ : 1;
2195  bool _have_date_restrict_ : 1;
2196  bool _have_rights_ : 1;
2197  bool _have_q_ : 1;
2198  bool _have_cx_ : 1;
2199  bool _have_low_range_ : 1;
2200  bool _have_lr_ : 1;
2201  bool _have_img_dominant_color_ : 1;
2202  bool _have_img_color_type_ : 1;
2203  bool _have_safe_ : 1;
2204  bool _have_site_search_filter_ : 1;
2205  bool _have_start_ : 1;
2206  DISALLOW_COPY_AND_ASSIGN(CseResource_ListMethod);
2207 };
2208 
2209 
2210 
2223  public:
2232  const CustomsearchService* _service_,
2233  client::AuthorizationCredential* _credential_);
2234 
2239 
2240 
2244  void clear_cx() {
2245  _have_cx_ = false;
2246  client::ClearCppValueHelper(&cx_);
2247  }
2248 
2249 
2255  const string& get_cx() const { return cx_; }
2256 
2262  string* mutable_cx() {
2263  _have_cx_ = true;
2264  return &cx_;
2265  }
2266 
2267 
2273  void set_cx(const string& value) {
2274  _have_cx_ = true;
2275  cx_ = value;
2276  }
2277 
2278 
2279 
2284  _have_low_range_ = false;
2285  client::ClearCppValueHelper(&low_range_);
2286  }
2287 
2288 
2294  const string& get_low_range() const { return low_range_; }
2295 
2302  string* mutable_lowRange() {
2303  _have_low_range_ = true;
2304  return &low_range_;
2305  }
2306 
2307 
2316  void set_low_range(const string& value) {
2317  _have_low_range_ = true;
2318  low_range_ = value;
2319  }
2320 
2321 
2322 
2326  void clear_lr() {
2327  _have_lr_ = false;
2328  client::ClearCppValueHelper(&lr_);
2329  }
2330 
2331 
2337  const string& get_lr() const { return lr_; }
2338 
2344  string* mutable_lr() {
2345  _have_lr_ = true;
2346  return &lr_;
2347  }
2348 
2349 
2429  void set_lr(const string& value) {
2430  _have_lr_ = true;
2431  lr_ = value;
2432  }
2433 
2434 
2435 
2440  _have_img_color_type_ = false;
2441  client::ClearCppValueHelper(&img_color_type_);
2442  }
2443 
2444 
2450  const string& get_img_color_type() const { return img_color_type_; }
2451 
2459  _have_img_color_type_ = true;
2460  return &img_color_type_;
2461  }
2462 
2463 
2479  void set_img_color_type(const string& value) {
2480  _have_img_color_type_ = true;
2481  img_color_type_ = value;
2482  }
2483 
2484 
2485 
2491  _have_img_dominant_color_ = false;
2492  client::ClearCppValueHelper(&img_dominant_color_);
2493  }
2494 
2495 
2501  const string& get_img_dominant_color() const { return img_dominant_color_; }
2502 
2510  _have_img_dominant_color_ = true;
2511  return &img_dominant_color_;
2512  }
2513 
2514 
2545  void set_img_dominant_color(const string& value) {
2546  _have_img_dominant_color_ = true;
2547  img_dominant_color_ = value;
2548  }
2549 
2550 
2551 
2555  void clear_safe() {
2556  _have_safe_ = false;
2557  client::ClearCppValueHelper(&safe_);
2558  }
2559 
2560 
2566  const string& get_safe() const { return safe_; }
2567 
2573  string* mutable_safe() {
2574  _have_safe_ = true;
2575  return &safe_;
2576  }
2577 
2578 
2588  void set_safe(const string& value) {
2589  _have_safe_ = true;
2590  safe_ = value;
2591  }
2592 
2593 
2594 
2600  _have_site_search_filter_ = false;
2601  client::ClearCppValueHelper(&site_search_filter_);
2602  }
2603 
2604 
2610  const string& get_site_search_filter() const { return site_search_filter_; }
2611 
2619  _have_site_search_filter_ = true;
2620  return &site_search_filter_;
2621  }
2622 
2623 
2637  void set_site_search_filter(const string& value) {
2638  _have_site_search_filter_ = true;
2639  site_search_filter_ = value;
2640  }
2641 
2642 
2643 
2647  void clear_start() {
2648  _have_start_ = false;
2649  client::ClearCppValueHelper(&start_);
2650  }
2651 
2652 
2658  uint32 get_start() const { return start_; }
2659 
2672  void set_start(uint32 value) {
2673  _have_start_ = true;
2674  start_ = value;
2675  }
2676 
2680  void clear_sort() {
2681  _have_sort_ = false;
2682  client::ClearCppValueHelper(&sort_);
2683  }
2684 
2685 
2691  const string& get_sort() const { return sort_; }
2692 
2698  string* mutable_sort() {
2699  _have_sort_ = true;
2700  return &sort_;
2701  }
2702 
2703 
2709  void set_sort(const string& value) {
2710  _have_sort_ = true;
2711  sort_ = value;
2712  }
2713 
2714 
2715 
2720  _have_link_site_ = false;
2721  client::ClearCppValueHelper(&link_site_);
2722  }
2723 
2724 
2730  const string& get_link_site() const { return link_site_; }
2731 
2738  string* mutable_linkSite() {
2739  _have_link_site_ = true;
2740  return &link_site_;
2741  }
2742 
2743 
2751  void set_link_site(const string& value) {
2752  _have_link_site_ = true;
2753  link_site_ = value;
2754  }
2755 
2756 
2757 
2761  void clear_hq() {
2762  _have_hq_ = false;
2763  client::ClearCppValueHelper(&hq_);
2764  }
2765 
2766 
2772  const string& get_hq() const { return hq_; }
2773 
2779  string* mutable_hq() {
2780  _have_hq_ = true;
2781  return &hq_;
2782  }
2783 
2784 
2792  void set_hq(const string& value) {
2793  _have_hq_ = true;
2794  hq_ = value;
2795  }
2796 
2797 
2798 
2803  _have_search_type_ = false;
2804  client::ClearCppValueHelper(&search_type_);
2805  }
2806 
2807 
2813  const string& get_search_type() const { return search_type_; }
2814 
2822  _have_search_type_ = true;
2823  return &search_type_;
2824  }
2825 
2826 
2838  void set_search_type(const string& value) {
2839  _have_search_type_ = true;
2840  search_type_ = value;
2841  }
2842 
2843 
2844 
2849  _have_file_type_ = false;
2850  client::ClearCppValueHelper(&file_type_);
2851  }
2852 
2853 
2859  const string& get_file_type() const { return file_type_; }
2860 
2867  string* mutable_fileType() {
2868  _have_file_type_ = true;
2869  return &file_type_;
2870  }
2871 
2872 
2881  void set_file_type(const string& value) {
2882  _have_file_type_ = true;
2883  file_type_ = value;
2884  }
2885 
2886 
2887 
2892  _have_related_site_ = false;
2893  client::ClearCppValueHelper(&related_site_);
2894  }
2895 
2896 
2902  const string& get_related_site() const { return related_site_; }
2903 
2911  _have_related_site_ = true;
2912  return &related_site_;
2913  }
2914 
2915 
2923  void set_related_site(const string& value) {
2924  _have_related_site_ = true;
2925  related_site_ = value;
2926  }
2927 
2928 
2929 
2934  _have_site_search_ = false;
2935  client::ClearCppValueHelper(&site_search_);
2936  }
2937 
2938 
2944  const string& get_site_search() const { return site_search_; }
2945 
2953  _have_site_search_ = true;
2954  return &site_search_;
2955  }
2956 
2957 
2965  void set_site_search(const string& value) {
2966  _have_site_search_ = true;
2967  site_search_ = value;
2968  }
2969 
2970 
2971 
2976  _have_exclude_terms_ = false;
2977  client::ClearCppValueHelper(&exclude_terms_);
2978  }
2979 
2980 
2986  const string& get_exclude_terms() const { return exclude_terms_; }
2987 
2995  _have_exclude_terms_ = true;
2996  return &exclude_terms_;
2997  }
2998 
2999 
3007  void set_exclude_terms(const string& value) {
3008  _have_exclude_terms_ = true;
3009  exclude_terms_ = value;
3010  }
3011 
3012 
3013 
3018  _have_exact_terms_ = false;
3019  client::ClearCppValueHelper(&exact_terms_);
3020  }
3021 
3022 
3028  const string& get_exact_terms() const { return exact_terms_; }
3029 
3037  _have_exact_terms_ = true;
3038  return &exact_terms_;
3039  }
3040 
3041 
3048  void set_exact_terms(const string& value) {
3049  _have_exact_terms_ = true;
3050  exact_terms_ = value;
3051  }
3052 
3053 
3054 
3058  void clear_num() {
3059  _have_num_ = false;
3060  client::ClearCppValueHelper(&num_);
3061  }
3062 
3063 
3069  int32 get_num() const { return num_; }
3070 
3078  void set_num(int32 value) {
3079  _have_num_ = true;
3080  num_ = value;
3081  }
3082 
3086  void clear_c2coff() {
3087  _have_c2coff_ = false;
3088  client::ClearCppValueHelper(&c2coff_);
3089  }
3090 
3091 
3097  const string& get_c2coff() const { return c2coff_; }
3098 
3104  string* mutable_c2coff() {
3105  _have_c2coff_ = true;
3106  return &c2coff_;
3107  }
3108 
3109 
3125  void set_c2coff(const string& value) {
3126  _have_c2coff_ = true;
3127  c2coff_ = value;
3128  }
3129 
3130 
3131 
3136  _have_img_type_ = false;
3137  client::ClearCppValueHelper(&img_type_);
3138  }
3139 
3140 
3146  const string& get_img_type() const { return img_type_; }
3147 
3154  string* mutable_imgType() {
3155  _have_img_type_ = true;
3156  return &img_type_;
3157  }
3158 
3159 
3177  void set_img_type(const string& value) {
3178  _have_img_type_ = true;
3179  img_type_ = value;
3180  }
3181 
3182 
3183 
3187  void clear_filter() {
3188  _have_filter_ = false;
3189  client::ClearCppValueHelper(&filter_);
3190  }
3191 
3192 
3198  const string& get_filter() const { return filter_; }
3199 
3205  string* mutable_filter() {
3206  _have_filter_ = true;
3207  return &filter_;
3208  }
3209 
3210 
3230  void set_filter(const string& value) {
3231  _have_filter_ = true;
3232  filter_ = value;
3233  }
3234 
3235 
3236 
3241  _have_high_range_ = false;
3242  client::ClearCppValueHelper(&high_range_);
3243  }
3244 
3245 
3251  const string& get_high_range() const { return high_range_; }
3252 
3259  string* mutable_highRange() {
3260  _have_high_range_ = true;
3261  return &high_range_;
3262  }
3263 
3264 
3273  void set_high_range(const string& value) {
3274  _have_high_range_ = true;
3275  high_range_ = value;
3276  }
3277 
3278 
3279 
3283  void clear_gl() {
3284  _have_gl_ = false;
3285  client::ClearCppValueHelper(&gl_);
3286  }
3287 
3288 
3294  const string& get_gl() const { return gl_; }
3295 
3301  string* mutable_gl() {
3302  _have_gl_ = true;
3303  return &gl_;
3304  }
3305 
3306 
3327  void set_gl(const string& value) {
3328  _have_gl_ = true;
3329  gl_ = value;
3330  }
3331 
3332 
3333 
3337  void clear_hl() {
3338  _have_hl_ = false;
3339  client::ClearCppValueHelper(&hl_);
3340  }
3341 
3342 
3348  const string& get_hl() const { return hl_; }
3349 
3355  string* mutable_hl() {
3356  _have_hl_ = true;
3357  return &hl_;
3358  }
3359 
3360 
3380  void set_hl(const string& value) {
3381  _have_hl_ = true;
3382  hl_ = value;
3383  }
3384 
3385 
3386 
3391  _have_googlehost_ = false;
3392  client::ClearCppValueHelper(&googlehost_);
3393  }
3394 
3395 
3401  const string& get_googlehost() const { return googlehost_; }
3402 
3410  _have_googlehost_ = true;
3411  return &googlehost_;
3412  }
3413 
3414 
3424  void set_googlehost(const string& value) {
3425  _have_googlehost_ = true;
3426  googlehost_ = value;
3427  }
3428 
3429 
3430 
3435  _have_img_size_ = false;
3436  client::ClearCppValueHelper(&img_size_);
3437  }
3438 
3439 
3445  const string& get_img_size() const { return img_size_; }
3446 
3453  string* mutable_imgSize() {
3454  _have_img_size_ = true;
3455  return &img_size_;
3456  }
3457 
3458 
3479  void set_img_size(const string& value) {
3480  _have_img_size_ = true;
3481  img_size_ = value;
3482  }
3483 
3484 
3485 
3489  void clear_cr() {
3490  _have_cr_ = false;
3491  client::ClearCppValueHelper(&cr_);
3492  }
3493 
3494 
3500  const string& get_cr() const { return cr_; }
3501 
3507  string* mutable_cr() {
3508  _have_cr_ = true;
3509  return &cr_;
3510  }
3511 
3512 
3535  void set_cr(const string& value) {
3536  _have_cr_ = true;
3537  cr_ = value;
3538  }
3539 
3540 
3541 
3546  _have_or_terms_ = false;
3547  client::ClearCppValueHelper(&or_terms_);
3548  }
3549 
3550 
3556  const string& get_or_terms() const { return or_terms_; }
3557 
3564  string* mutable_orTerms() {
3565  _have_or_terms_ = true;
3566  return &or_terms_;
3567  }
3568 
3569 
3579  void set_or_terms(const string& value) {
3580  _have_or_terms_ = true;
3581  or_terms_ = value;
3582  }
3583 
3584 
3585 
3590  _have_date_restrict_ = false;
3591  client::ClearCppValueHelper(&date_restrict_);
3592  }
3593 
3594 
3600  const string& get_date_restrict() const { return date_restrict_; }
3601 
3609  _have_date_restrict_ = true;
3610  return &date_restrict_;
3611  }
3612 
3613 
3628  void set_date_restrict(const string& value) {
3629  _have_date_restrict_ = true;
3630  date_restrict_ = value;
3631  }
3632 
3633 
3634 
3638  void clear_q() {
3639  _have_q_ = false;
3640  client::ClearCppValueHelper(&q_);
3641  }
3642 
3643 
3649  const string& get_q() const { return q_; }
3650 
3656  string* mutable_q() {
3657  _have_q_ = true;
3658  return &q_;
3659  }
3660 
3661 
3667  void set_q(const string& value) {
3668  _have_q_ = true;
3669  q_ = value;
3670  }
3671 
3672 
3673 
3677  void clear_rights() {
3678  _have_rights_ = false;
3679  client::ClearCppValueHelper(&rights_);
3680  }
3681 
3682 
3688  const string& get_rights() const { return rights_; }
3689 
3695  string* mutable_rights() {
3696  _have_rights_ = true;
3697  return &rights_;
3698  }
3699 
3700 
3711  void set_rights(const string& value) {
3712  _have_rights_ = true;
3713  rights_ = value;
3714  }
3715 
3725  virtual util::Status AppendVariable(
3726  const StringPiece& variable_name,
3727  const client::UriTemplateConfig& config,
3728  string* target);
3729 
3735  virtual util::Status AppendOptionalQueryParameters(string* target);
3736 
3737 
3749  Search* data) {
3750  return CustomsearchServiceBaseRequest::ExecuteAndParseResponse(data);
3751  }
3752 
3753  private:
3754  string cx_;
3755  string low_range_;
3756  string lr_;
3757  string img_color_type_;
3758  string img_dominant_color_;
3759  string safe_;
3760  string site_search_filter_;
3761  uint32 start_;
3762  string sort_;
3763  string link_site_;
3764  string hq_;
3765  string search_type_;
3766  string file_type_;
3767  string related_site_;
3768  string site_search_;
3769  string exclude_terms_;
3770  string exact_terms_;
3771  int32 num_;
3772  string c2coff_;
3773  string img_type_;
3774  string filter_;
3775  string high_range_;
3776  string gl_;
3777  string hl_;
3778  string googlehost_;
3779  string img_size_;
3780  string cr_;
3781  string or_terms_;
3782  string date_restrict_;
3783  string q_;
3784  string rights_;
3785  bool _have_cx_ : 1;
3786  bool _have_low_range_ : 1;
3787  bool _have_lr_ : 1;
3788  bool _have_img_color_type_ : 1;
3789  bool _have_img_dominant_color_ : 1;
3790  bool _have_safe_ : 1;
3791  bool _have_site_search_filter_ : 1;
3792  bool _have_start_ : 1;
3793  bool _have_sort_ : 1;
3794  bool _have_link_site_ : 1;
3795  bool _have_hq_ : 1;
3796  bool _have_search_type_ : 1;
3797  bool _have_file_type_ : 1;
3798  bool _have_related_site_ : 1;
3799  bool _have_site_search_ : 1;
3800  bool _have_exclude_terms_ : 1;
3801  bool _have_exact_terms_ : 1;
3802  bool _have_num_ : 1;
3803  bool _have_c2coff_ : 1;
3804  bool _have_img_type_ : 1;
3805  bool _have_filter_ : 1;
3806  bool _have_high_range_ : 1;
3807  bool _have_gl_ : 1;
3808  bool _have_hl_ : 1;
3809  bool _have_googlehost_ : 1;
3810  bool _have_img_size_ : 1;
3811  bool _have_cr_ : 1;
3812  bool _have_or_terms_ : 1;
3813  bool _have_date_restrict_ : 1;
3814  bool _have_q_ : 1;
3815  bool _have_rights_ : 1;
3816  DISALLOW_COPY_AND_ASSIGN(SiterestrictResource_ListMethod);
3817 };
3818 
3819 
3820 
3829 class CustomsearchService : public client::ClientService {
3830  public:
3834  static const char googleapis_API_NAME[];
3835 
3839  static const char googleapis_API_VERSION[];
3840 
3844  static const char googleapis_API_GENERATOR[];
3845 
3846 
3852  class CseResource {
3853  public:
3861  explicit CseResource(CustomsearchService* service);
3862 
3867 
3868 
3877  CseResource_ListMethod* NewListMethod(
3878  client::AuthorizationCredential* _credential_) const;
3879 
3880  private:
3881  CustomsearchService* service_;
3882 
3883  DISALLOW_COPY_AND_ASSIGN(CseResource);
3884  };
3885 
3892  public:
3900  explicit SiterestrictResource(CustomsearchService* service);
3901 
3906 
3907 
3916  SiterestrictResource_ListMethod* NewListMethod(
3917  client::AuthorizationCredential* _credential_) const;
3918 
3919  private:
3920  CustomsearchService* service_;
3921 
3922  DISALLOW_COPY_AND_ASSIGN(SiterestrictResource);
3923  };
3924 
3925 
3926 
3933  explicit CustomsearchService(client::HttpTransport* transport);
3934 
3938  virtual ~CustomsearchService();
3939 
3945  const CseResource& get_cse() const {
3946  return cse_;
3947  }
3948 
3949 
3956  return siterestrict_;
3957  }
3958 
3959 
3960 
3961  private:
3962  CseResource cse_;
3963  SiterestrictResource siterestrict_;
3964 
3965  DISALLOW_COPY_AND_ASSIGN(CustomsearchService);
3966 };
3967 
3968 
3999 } // namespace google_customsearch_api
4000 #endif // GOOGLE_CUSTOMSEARCH_API_CUSTOMSEARCH_SERVICE_H_
void set_hq(const string &value)
Definition: customsearch_service.h:744
string * mutable_siteSearch()
Definition: customsearch_service.h:2952
const SiterestrictResource & get_siterestrict() const
Definition: customsearch_service.h:3955
void clear_hl()
Definition: customsearch_service.h:1235
void clear_fields()
Definition: customsearch_service.h:274
void set_sort(const string &value)
Definition: customsearch_service.h:2709
const string & get_site_search() const
Definition: customsearch_service.h:2944
const string & get_filter() const
Definition: customsearch_service.h:1150
string * mutable_uploadProtocol()
Definition: customsearch_service.h:523
void set_exclude_terms(const string &value)
Definition: customsearch_service.h:3007
const string & get_high_range() const
Definition: customsearch_service.h:3251
string * mutable_sort()
Definition: customsearch_service.h:2698
void clear_low_range()
Definition: customsearch_service.h:2283
void set_site_search(const string &value)
Definition: customsearch_service.h:917
string * mutable_c2coff()
Definition: customsearch_service.h:1108
void clear_key()
Definition: customsearch_service.h:314
void clear_site_search()
Definition: customsearch_service.h:2933
void set_callback(const string &value)
Definition: customsearch_service.h:264
void set_upload_type(const string &value)
Definition: customsearch_service.h:494
const string & get_cx() const
Definition: customsearch_service.h:1684
void clear_related_site()
Definition: customsearch_service.h:2891
string * mutable_rights()
Definition: customsearch_service.h:3695
void clear_site_search_filter()
Definition: customsearch_service.h:2599
string * mutable_imgDominantColor()
Definition: customsearch_service.h:2509
void clear_low_range()
Definition: customsearch_service.h:1712
void set_img_dominant_color(const string &value)
Definition: customsearch_service.h:1924
string * mutable_siteSearchFilter()
Definition: customsearch_service.h:2047
void set_low_range(const string &value)
Definition: customsearch_service.h:1745
string * mutable_imgSize()
Definition: customsearch_service.h:3453
const string & get_file_type() const
Definition: customsearch_service.h:2859
string * mutable_alt()
Definition: customsearch_service.h:214
const string & get_sort() const
Definition: customsearch_service.h:2691
void clear_pretty_print()
Definition: customsearch_service.h:395
void set_num(int32 value)
Definition: customsearch_service.h:3078
string * mutable_dateRestrict()
Definition: customsearch_service.h:1560
void set_high_range(const string &value)
Definition: customsearch_service.h:3273
string * mutable_cx()
Definition: customsearch_service.h:1691
~CseResource()
Definition: customsearch_service.h:3866
const string & get_upload_protocol() const
Definition: customsearch_service.h:515
void set_gl(const string &value)
Definition: customsearch_service.h:1332
void clear_date_restrict()
Definition: customsearch_service.h:1541
void set_hl(const string &value)
Definition: customsearch_service.h:3380
Definition: customsearch_service.cc:40
int32 get_num() const
Definition: customsearch_service.h:1021
void set_xgafv(const string &value)
Definition: customsearch_service.h:146
const string & get_site_search_filter() const
Definition: customsearch_service.h:2039
string * mutable_searchType()
Definition: customsearch_service.h:773
string * mutable_fields()
Definition: customsearch_service.h:292
void clear_c2coff()
Definition: customsearch_service.h:3086
void set_filter(const string &value)
Definition: customsearch_service.h:1182
void clear_search_type()
Definition: customsearch_service.h:2802
void clear_file_type()
Definition: customsearch_service.h:2848
string * mutable_lr()
Definition: customsearch_service.h:2344
const string & get_img_color_type() const
Definition: customsearch_service.h:2450
string * mutable_filter()
Definition: customsearch_service.h:3205
string * mutable_imgColorType()
Definition: customsearch_service.h:1953
void clear_rights()
Definition: customsearch_service.h:3677
void clear_alt()
Definition: customsearch_service.h:196
string * mutable_cr()
Definition: customsearch_service.h:3507
void clear_googlehost()
Definition: customsearch_service.h:3390
const string & get_hl() const
Definition: customsearch_service.h:1246
void clear_googlehost()
Definition: customsearch_service.h:1342
Definition: customsearch_service.h:3829
const string & get_upload_type() const
Definition: customsearch_service.h:474
void clear_q()
Definition: customsearch_service.h:3638
void set_link_site(const string &value)
Definition: customsearch_service.h:703
void clear_hq()
Definition: customsearch_service.h:2761
string * mutable_highRange()
Definition: customsearch_service.h:3259
const string & get_lr() const
Definition: customsearch_service.h:1766
const string & get_lr() const
Definition: customsearch_service.h:2337
void set_q(const string &value)
Definition: customsearch_service.h:1663
void clear_site_search_filter()
Definition: customsearch_service.h:2028
void clear_or_terms()
Definition: customsearch_service.h:3545
const string & get_key() const
Definition: customsearch_service.h:325
string * mutable_linkSite()
Definition: customsearch_service.h:2738
void clear_sort()
Definition: customsearch_service.h:2680
string * mutable_hl()
Definition: customsearch_service.h:1253
void set_file_type(const string &value)
Definition: customsearch_service.h:833
const CseResource & get_cse() const
Definition: customsearch_service.h:3945
void set_site_search_filter(const string &value)
Definition: customsearch_service.h:2066
const string & get_hl() const
Definition: customsearch_service.h:3348
void clear_img_size()
Definition: customsearch_service.h:3434
const string & get_low_range() const
Definition: customsearch_service.h:1723
void clear_high_range()
Definition: customsearch_service.h:3240
string * mutable_rights()
Definition: customsearch_service.h:1608
void clear_oauth_token()
Definition: customsearch_service.h:355
void clear_num()
Definition: customsearch_service.h:1010
util::Status ExecuteAndParseResponse(Search *data)
Definition: customsearch_service.h:2138
const string & get_img_size() const
Definition: customsearch_service.h:1397
string * mutable_imgDominantColor()
Definition: customsearch_service.h:1888
string * mutable_siteSearch()
Definition: customsearch_service.h:904
const string & get_low_range() const
Definition: customsearch_service.h:2294
void set_exclude_terms(const string &value)
Definition: customsearch_service.h:959
void set_img_type(const string &value)
Definition: customsearch_service.h:3177
const string & get_c2coff() const
Definition: customsearch_service.h:1101
Definition: customsearch_service.h:610
string * mutable_filter()
Definition: customsearch_service.h:1157
string * mutable_imgColorType()
Definition: customsearch_service.h:2458
const string & get_sort() const
Definition: customsearch_service.h:643
string * mutable_callback()
Definition: customsearch_service.h:253
string * mutable_oauthToken()
Definition: customsearch_service.h:374
void clear_gl()
Definition: customsearch_service.h:3283
void set_img_type(const string &value)
Definition: customsearch_service.h:1080
void set_date_restrict(const string &value)
Definition: customsearch_service.h:3628
void set_pretty_print(bool value)
Definition: customsearch_service.h:413
void clear_start()
Definition: customsearch_service.h:2076
string * mutable_safe()
Definition: customsearch_service.h:2573
void clear_exact_terms()
Definition: customsearch_service.h:969
string * mutable_searchType()
Definition: customsearch_service.h:2821
const string & get_date_restrict() const
Definition: customsearch_service.h:3600
void set_fields(const string &value)
Definition: customsearch_service.h:304
void clear_cr()
Definition: customsearch_service.h:3489
string * mutable_cr()
Definition: customsearch_service.h:1459
const string & get_c2coff() const
Definition: customsearch_service.h:3097
const string & get_hq() const
Definition: customsearch_service.h:2772
void clear_high_range()
Definition: customsearch_service.h:1192
void set_cx(const string &value)
Definition: customsearch_service.h:2273
const string & get_q() const
Definition: customsearch_service.h:1645
string * mutable_key()
Definition: customsearch_service.h:332
const string & get_img_color_type() const
Definition: customsearch_service.h:1945
void set_c2coff(const string &value)
Definition: customsearch_service.h:1129
string * mutable_lr()
Definition: customsearch_service.h:1773
const string & get_cx() const
Definition: customsearch_service.h:2255
void clear_img_type()
Definition: customsearch_service.h:1038
void clear_img_type()
Definition: customsearch_service.h:3135
void set_high_range(const string &value)
Definition: customsearch_service.h:1225
void set_alt(const string &value)
Definition: customsearch_service.h:225
void set_exact_terms(const string &value)
Definition: customsearch_service.h:3048
string * mutable_googlehost()
Definition: customsearch_service.h:1361
string * mutable_orTerms()
Definition: customsearch_service.h:3564
util::Status ExecuteAndParseResponse(Search *data)
Definition: customsearch_service.h:3748
void clear_xgafv()
Definition: customsearch_service.h:117
void set_related_site(const string &value)
Definition: customsearch_service.h:875
const string & get_related_site() const
Definition: customsearch_service.h:2902
void set_safe(const string &value)
Definition: customsearch_service.h:2588
void clear_file_type()
Definition: customsearch_service.h:800
void set_site_search(const string &value)
Definition: customsearch_service.h:2965
const string & get_hq() const
Definition: customsearch_service.h:724
void set_img_size(const string &value)
Definition: customsearch_service.h:3479
const string & get_search_type() const
Definition: customsearch_service.h:765
void set_c2coff(const string &value)
Definition: customsearch_service.h:3125
void set_gl(const string &value)
Definition: customsearch_service.h:3327
Definition: customsearch_service.h:2222
void clear_filter()
Definition: customsearch_service.h:3187
void clear_safe()
Definition: customsearch_service.h:1984
void clear_img_color_type()
Definition: customsearch_service.h:1934
const string & get_cr() const
Definition: customsearch_service.h:3500
void set_lr(const string &value)
Definition: customsearch_service.h:2429
const string & get_quota_user() const
Definition: customsearch_service.h:432
void clear_exclude_terms()
Definition: customsearch_service.h:2975
void set_lr(const string &value)
Definition: customsearch_service.h:1858
void set_q(const string &value)
Definition: customsearch_service.h:3667
void clear_upload_type()
Definition: customsearch_service.h:463
~SiterestrictResource()
Definition: customsearch_service.h:3905
void clear_filter()
Definition: customsearch_service.h:1139
void clear_upload_protocol()
Definition: customsearch_service.h:504
const string & get_safe() const
Definition: customsearch_service.h:2566
string * mutable_imgType()
Definition: customsearch_service.h:3154
string * mutable_cx()
Definition: customsearch_service.h:2262
void set_key(const string &value)
Definition: customsearch_service.h:345
void set_date_restrict(const string &value)
Definition: customsearch_service.h:1580
const string & get_access_token() const
Definition: customsearch_service.h:167
void set_hq(const string &value)
Definition: customsearch_service.h:2792
const string & get_img_size() const
Definition: customsearch_service.h:3445
void set_exact_terms(const string &value)
Definition: customsearch_service.h:1000
void set_start(uint32 value)
Definition: customsearch_service.h:2672
const string & get_googlehost() const
Definition: customsearch_service.h:3401
const string & get_gl() const
Definition: customsearch_service.h:1299
void set_cr(const string &value)
Definition: customsearch_service.h:3535
void clear_q()
Definition: customsearch_service.h:1634
string * mutable_relatedSite()
Definition: customsearch_service.h:2910
void clear_or_terms()
Definition: customsearch_service.h:1497
void clear_gl()
Definition: customsearch_service.h:1288
const string & get_link_site() const
Definition: customsearch_service.h:682
uint32 get_start() const
Definition: customsearch_service.h:2658
const string & get_safe() const
Definition: customsearch_service.h:1995
void clear_img_size()
Definition: customsearch_service.h:1386
const string & get_gl() const
Definition: customsearch_service.h:3294
void clear_hl()
Definition: customsearch_service.h:3337
string * mutable_safe()
Definition: customsearch_service.h:2002
const string & get_img_type() const
Definition: customsearch_service.h:3146
const string & get_img_dominant_color() const
Definition: customsearch_service.h:2501
void clear_c2coff()
Definition: customsearch_service.h:1090
const string & get_oauth_token() const
Definition: customsearch_service.h:366
void set_quota_user(const string &value)
Definition: customsearch_service.h:453
const string & get_rights() const
Definition: customsearch_service.h:1601
void set_cx(const string &value)
Definition: customsearch_service.h:1702
void set_googlehost(const string &value)
Definition: customsearch_service.h:3424
void clear_cr()
Definition: customsearch_service.h:1441
string * mutable_linkSite()
Definition: customsearch_service.h:690
const string & get_img_type() const
Definition: customsearch_service.h:1049
const string & get_search_type() const
Definition: customsearch_service.h:2813
const string & get_xgafv() const
Definition: customsearch_service.h:128
void clear_num()
Definition: customsearch_service.h:3058
string * mutable_imgSize()
Definition: customsearch_service.h:1405
const string & get_or_terms() const
Definition: customsearch_service.h:3556
Definition: search.h:54
const string & get_related_site() const
Definition: customsearch_service.h:854
string * mutable_googlehost()
Definition: customsearch_service.h:3409
string *mutable_ $Xgafv()
Definition: customsearch_service.h:135
void clear_img_dominant_color()
Definition: customsearch_service.h:1869
void clear_callback()
Definition: customsearch_service.h:235
const string & get_rights() const
Definition: customsearch_service.h:3688
string * mutable_gl()
Definition: customsearch_service.h:3301
string * mutable_excludeTerms()
Definition: customsearch_service.h:2994
string * mutable_siteSearchFilter()
Definition: customsearch_service.h:2618
string * mutable_hq()
Definition: customsearch_service.h:2779
const string & get_link_site() const
Definition: customsearch_service.h:2730
void set_related_site(const string &value)
Definition: customsearch_service.h:2923
void set_img_size(const string &value)
Definition: customsearch_service.h:1431
string * mutable_hl()
Definition: customsearch_service.h:3355
string * mutable_excludeTerms()
Definition: customsearch_service.h:946
const string & get_fields() const
Definition: customsearch_service.h:285
string * mutable_dateRestrict()
Definition: customsearch_service.h:3608
string * mutable_gl()
Definition: customsearch_service.h:1306
void set_low_range(const string &value)
Definition: customsearch_service.h:2316
const string & get_img_dominant_color() const
Definition: customsearch_service.h:1880
void clear_link_site()
Definition: customsearch_service.h:671
string * mutable_exactTerms()
Definition: customsearch_service.h:3036
string * mutable_q()
Definition: customsearch_service.h:1652
void clear_start()
Definition: customsearch_service.h:2647
void clear_cx()
Definition: customsearch_service.h:1673
string * mutable_lowRange()
Definition: customsearch_service.h:2302
string * mutable_fileType()
Definition: customsearch_service.h:2867
string * mutable_uploadType()
Definition: customsearch_service.h:482
void clear_lr()
Definition: customsearch_service.h:1755
string * mutable_orTerms()
Definition: customsearch_service.h:1516
void set_search_type(const string &value)
Definition: customsearch_service.h:2838
void set_link_site(const string &value)
Definition: customsearch_service.h:2751
string * mutable_sort()
Definition: customsearch_service.h:650
void set_search_type(const string &value)
Definition: customsearch_service.h:790
void set_img_dominant_color(const string &value)
Definition: customsearch_service.h:2545
void set_start(uint32 value)
Definition: customsearch_service.h:2101
const string & get_site_search_filter() const
Definition: customsearch_service.h:2610
Definition: customsearch_service.h:3852
string * mutable_fileType()
Definition: customsearch_service.h:819
void clear_exclude_terms()
Definition: customsearch_service.h:927
const string & get_date_restrict() const
Definition: customsearch_service.h:1552
const string & get_cr() const
Definition: customsearch_service.h:1452
void set_file_type(const string &value)
Definition: customsearch_service.h:2881
const string & get_googlehost() const
Definition: customsearch_service.h:1353
void set_safe(const string &value)
Definition: customsearch_service.h:2017
void set_cr(const string &value)
Definition: customsearch_service.h:1487
const string & get_site_search() const
Definition: customsearch_service.h:896
void clear_link_site()
Definition: customsearch_service.h:2719
void set_img_color_type(const string &value)
Definition: customsearch_service.h:1974
const string & get_callback() const
Definition: customsearch_service.h:246
bool get_pretty_print() const
Definition: customsearch_service.h:406
void set_rights(const string &value)
Definition: customsearch_service.h:1624
const string & get_alt() const
Definition: customsearch_service.h:207
void clear_exact_terms()
Definition: customsearch_service.h:3017
void set_upload_protocol(const string &value)
Definition: customsearch_service.h:534
string * mutable_highRange()
Definition: customsearch_service.h:1211
Definition: customsearch_service.h:78
void clear_site_search()
Definition: customsearch_service.h:885
void set_img_color_type(const string &value)
Definition: customsearch_service.h:2479
const string & get_high_range() const
Definition: customsearch_service.h:1203
void clear_safe()
Definition: customsearch_service.h:2555
const string & get_exclude_terms() const
Definition: customsearch_service.h:938
void set_oauth_token(const string &value)
Definition: customsearch_service.h:385
string * mutable_relatedSite()
Definition: customsearch_service.h:862
void set_googlehost(const string &value)
Definition: customsearch_service.h:1376
const string & get_file_type() const
Definition: customsearch_service.h:811
void set_rights(const string &value)
Definition: customsearch_service.h:3711
string * mutable_imgType()
Definition: customsearch_service.h:1057
void set_sort(const string &value)
Definition: customsearch_service.h:661
const string & get_filter() const
Definition: customsearch_service.h:3198
string * mutable_c2coff()
Definition: customsearch_service.h:3104
void clear_hq()
Definition: customsearch_service.h:713
void clear_rights()
Definition: customsearch_service.h:1590
void set_access_token(const string &value)
Definition: customsearch_service.h:186
void clear_related_site()
Definition: customsearch_service.h:843
void clear_quota_user()
Definition: customsearch_service.h:421
string * mutable_hq()
Definition: customsearch_service.h:731
void set_num(int32 value)
Definition: customsearch_service.h:1030
void clear_search_type()
Definition: customsearch_service.h:754
void clear_cx()
Definition: customsearch_service.h:2244
void clear_img_dominant_color()
Definition: customsearch_service.h:2490
const string & get_exclude_terms() const
Definition: customsearch_service.h:2986
void set_hl(const string &value)
Definition: customsearch_service.h:1278
int32 get_num() const
Definition: customsearch_service.h:3069
const string & get_exact_terms() const
Definition: customsearch_service.h:3028
void clear_lr()
Definition: customsearch_service.h:2326
string * mutable_exactTerms()
Definition: customsearch_service.h:988
void set_filter(const string &value)
Definition: customsearch_service.h:3230
const string & get_or_terms() const
Definition: customsearch_service.h:1508
string * mutable_q()
Definition: customsearch_service.h:3656
const string & get_q() const
Definition: customsearch_service.h:3649
string * mutable_lowRange()
Definition: customsearch_service.h:1731
void set_site_search_filter(const string &value)
Definition: customsearch_service.h:2637
string * mutable_accessToken()
Definition: customsearch_service.h:175
const string & get_exact_terms() const
Definition: customsearch_service.h:980
void clear_img_color_type()
Definition: customsearch_service.h:2439
void set_or_terms(const string &value)
Definition: customsearch_service.h:1531
uint32 get_start() const
Definition: customsearch_service.h:2087
void clear_date_restrict()
Definition: customsearch_service.h:3589
void clear_sort()
Definition: customsearch_service.h:632
void clear_access_token()
Definition: customsearch_service.h:156
void set_or_terms(const string &value)
Definition: customsearch_service.h:3579
string * mutable_quotaUser()
Definition: customsearch_service.h:440