tasks  v1
tasks_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-02-15, 11:16:04 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_TASKS_API_TASKS_SERVICE_H_
25 #define GOOGLE_TASKS_API_TASKS_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/service/service_request_pager.h"
32 #include "googleapis/client/util/status.h"
33 #include "googleapis/client/util/uri_template.h"
34 
35 #include "google/tasks_api/task.h"
36 #include "google/tasks_api/task_list.h"
37 #include "google/tasks_api/task_lists.h"
38 #include "google/tasks_api/tasks.h"
39 
40 
41 namespace google_tasks_api {
42 using namespace googleapis;
73 class TasksService;
74 
83  : public client::ClientServiceRequest {
84  public:
107  const client::ClientService* service,
108  client::AuthorizationCredential* credential,
109  client::HttpRequest::HttpMethod method,
110  const StringPiece& uri_template);
111 
115  virtual ~TasksServiceBaseRequest();
116 
117 
121  void clear_alt() {
122  _have_alt_ = false;
123  client::ClearCppValueHelper(&alt_);
124  }
125 
126 
132  const string& get_alt() const { return alt_; }
133 
139  string* mutable_alt() {
140  _have_alt_ = true;
141  return &alt_;
142  }
143 
144 
150  void set_alt(const string& value) {
151  _have_alt_ = true;
152  alt_ = value;
153  }
154 
155 
156 
160  void clear_fields() {
161  _have_fields_ = false;
162  client::ClearCppValueHelper(&fields_);
163  }
164 
165 
171  const string& get_fields() const { return fields_; }
172 
178  string* mutable_fields() {
179  _have_fields_ = true;
180  return &fields_;
181  }
182 
183 
190  void set_fields(const string& value) {
191  _have_fields_ = true;
192  fields_ = value;
193  }
194 
195 
196 
200  void clear_key() {
201  _have_key_ = false;
202  client::ClearCppValueHelper(&key_);
203  }
204 
205 
211  const string& get_key() const { return key_; }
212 
218  string* mutable_key() {
219  _have_key_ = true;
220  return &key_;
221  }
222 
223 
231  void set_key(const string& value) {
232  _have_key_ = true;
233  key_ = value;
234  }
235 
236 
237 
242  _have_oauth_token_ = false;
243  client::ClearCppValueHelper(&oauth_token_);
244  }
245 
246 
252  const string& get_oauth_token() const { return oauth_token_; }
253 
260  string* mutable_oauthToken() {
261  _have_oauth_token_ = true;
262  return &oauth_token_;
263  }
264 
265 
271  void set_oauth_token(const string& value) {
272  _have_oauth_token_ = true;
273  oauth_token_ = value;
274  }
275 
276 
277 
282  _have_pretty_print_ = false;
283  client::ClearCppValueHelper(&pretty_print_);
284  }
285 
286 
292  bool get_pretty_print() const { return pretty_print_; }
293 
299  void set_pretty_print(bool value) {
300  _have_pretty_print_ = true;
301  pretty_print_ = value;
302  }
303 
308  _have_quota_user_ = false;
309  client::ClearCppValueHelper(&quota_user_);
310  }
311 
312 
318  const string& get_quota_user() const { return quota_user_; }
319 
326  string* mutable_quotaUser() {
327  _have_quota_user_ = true;
328  return &quota_user_;
329  }
330 
331 
338  void set_quota_user(const string& value) {
339  _have_quota_user_ = true;
340  quota_user_ = value;
341  }
342 
343 
344 
348  void clear_user_ip() {
349  _have_user_ip_ = false;
350  client::ClearCppValueHelper(&user_ip_);
351  }
352 
353 
359  const string& get_user_ip() const { return user_ip_; }
360 
366  string* mutable_userIp() {
367  _have_user_ip_ = true;
368  return &user_ip_;
369  }
370 
371 
378  void set_user_ip(const string& value) {
379  _have_user_ip_ = true;
380  user_ip_ = value;
381  }
382 
393  virtual util::Status AppendVariable(
394  const StringPiece& variable_name,
395  const client::UriTemplateConfig& config,
396  string* target);
397 
403  virtual util::Status AppendOptionalQueryParameters(string* target);
404 
405 
406  protected:
412  void AddJsonContentToRequest(const client::JsonCppData *content);
413 
414  private:
415  string alt_;
416  string fields_;
417  string key_;
418  string oauth_token_;
419  bool pretty_print_;
420  string quota_user_;
421  string user_ip_;
422  bool _have_alt_ : 1;
423  bool _have_fields_ : 1;
424  bool _have_key_ : 1;
425  bool _have_oauth_token_ : 1;
426  bool _have_pretty_print_ : 1;
427  bool _have_quota_user_ : 1;
428  bool _have_user_ip_ : 1;
429 
430  DISALLOW_COPY_AND_ASSIGN(TasksServiceBaseRequest);
431 };
432 
433 
434 
448  public:
458  const TasksService* _service_,
459  client::AuthorizationCredential* _credential_,
460  const absl::string_view& tasklist);
461 
466 
467 
477  virtual util::Status AppendVariable(
478  const StringPiece& variable_name,
479  const client::UriTemplateConfig& config,
480  string* target);
481 
482 
483  private:
484  string tasklist_;
485  DISALLOW_COPY_AND_ASSIGN(TasklistsResource_DeleteMethod);
486 };
487 
502  public:
512  const TasksService* _service_,
513  client::AuthorizationCredential* _credential_,
514  const absl::string_view& tasklist);
515 
519  virtual ~TasklistsResource_GetMethod();
520 
521 
531  virtual util::Status AppendVariable(
532  const StringPiece& variable_name,
533  const client::UriTemplateConfig& config,
534  string* target);
535 
536 
548  TaskList* data) {
549  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
550  }
551 
552  private:
553  string tasklist_;
554  DISALLOW_COPY_AND_ASSIGN(TasklistsResource_GetMethod);
555 };
556 
570  public:
580  const TasksService* _service_,
581  client::AuthorizationCredential* _credential_,
582  const TaskList& _content_);
583 
588 
600  TaskList* data) {
601  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
602  }
603 
604  private:
605  string _content_;
606  DISALLOW_COPY_AND_ASSIGN(TasklistsResource_InsertMethod);
607 };
608 
623  public:
632  const TasksService* _service_,
633  client::AuthorizationCredential* _credential_);
634 
638  virtual ~TasklistsResource_ListMethod();
639 
640 
645  _have_max_results_ = false;
646  client::ClearCppValueHelper(&max_results_);
647  }
648 
649 
655  int64 get_max_results() const { return max_results_; }
656 
663  void set_max_results(int64 value) {
664  _have_max_results_ = true;
665  max_results_ = value;
666  }
667 
672  _have_page_token_ = false;
673  client::ClearCppValueHelper(&page_token_);
674  }
675 
676 
682  const string& get_page_token() const { return page_token_; }
683 
690  string* mutable_pageToken() {
691  _have_page_token_ = true;
692  return &page_token_;
693  }
694 
695 
701  void set_page_token(const string& value) {
702  _have_page_token_ = true;
703  page_token_ = value;
704  }
705 
715  virtual util::Status AppendVariable(
716  const StringPiece& variable_name,
717  const client::UriTemplateConfig& config,
718  string* target);
719 
725  virtual util::Status AppendOptionalQueryParameters(string* target);
726 
727 
739  TaskLists* data) {
740  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
741  }
742 
743  private:
744  int64 max_results_;
745  string page_token_;
746  bool _have_max_results_ : 1;
747  bool _have_page_token_ : 1;
748  DISALLOW_COPY_AND_ASSIGN(TasklistsResource_ListMethod);
749 };
750 
751 typedef client::ServiceRequestPager<
753  TaskLists>
754  TasklistsResource_ListMethodPager;
755 
769  public:
780  const TasksService* _service_,
781  client::AuthorizationCredential* _credential_,
782  const absl::string_view& tasklist,
783  const TaskList& _content_);
784 
789 
790 
800  virtual util::Status AppendVariable(
801  const StringPiece& variable_name,
802  const client::UriTemplateConfig& config,
803  string* target);
804 
805 
817  TaskList* data) {
818  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
819  }
820 
821  private:
822  string tasklist_; string _content_;
823  DISALLOW_COPY_AND_ASSIGN(TasklistsResource_PatchMethod);
824 };
825 
839  public:
850  const TasksService* _service_,
851  client::AuthorizationCredential* _credential_,
852  const absl::string_view& tasklist,
853  const TaskList& _content_);
854 
859 
860 
870  virtual util::Status AppendVariable(
871  const StringPiece& variable_name,
872  const client::UriTemplateConfig& config,
873  string* target);
874 
875 
887  TaskList* data) {
888  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
889  }
890 
891  private:
892  string tasklist_; string _content_;
893  DISALLOW_COPY_AND_ASSIGN(TasklistsResource_UpdateMethod);
894 };
895 
896 
897 
911  public:
921  const TasksService* _service_,
922  client::AuthorizationCredential* _credential_,
923  const absl::string_view& tasklist);
924 
928  virtual ~TasksResource_ClearMethod();
929 
930 
940  virtual util::Status AppendVariable(
941  const StringPiece& variable_name,
942  const client::UriTemplateConfig& config,
943  string* target);
944 
945 
946  private:
947  string tasklist_;
948  DISALLOW_COPY_AND_ASSIGN(TasksResource_ClearMethod);
949 };
950 
964  public:
975  const TasksService* _service_,
976  client::AuthorizationCredential* _credential_,
977  const absl::string_view& tasklist,
978  const absl::string_view& task);
979 
983  virtual ~TasksResource_DeleteMethod();
984 
985 
995  virtual util::Status AppendVariable(
996  const StringPiece& variable_name,
997  const client::UriTemplateConfig& config,
998  string* target);
999 
1000 
1001  private:
1002  string tasklist_;
1003  string task_;
1004  DISALLOW_COPY_AND_ASSIGN(TasksResource_DeleteMethod);
1005 };
1006 
1021  public:
1032  const TasksService* _service_,
1033  client::AuthorizationCredential* _credential_,
1034  const absl::string_view& tasklist,
1035  const absl::string_view& task);
1036 
1040  virtual ~TasksResource_GetMethod();
1041 
1042 
1052  virtual util::Status AppendVariable(
1053  const StringPiece& variable_name,
1054  const client::UriTemplateConfig& config,
1055  string* target);
1056 
1057 
1069  Task* data) {
1070  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1071  }
1072 
1073  private:
1074  string tasklist_;
1075  string task_;
1076  DISALLOW_COPY_AND_ASSIGN(TasksResource_GetMethod);
1077 };
1078 
1092  public:
1103  const TasksService* _service_,
1104  client::AuthorizationCredential* _credential_,
1105  const absl::string_view& tasklist,
1106  const Task& _content_);
1107 
1111  virtual ~TasksResource_InsertMethod();
1112 
1113 
1117  void clear_parent() {
1118  _have_parent_ = false;
1119  client::ClearCppValueHelper(&parent_);
1120  }
1121 
1122 
1128  const string& get_parent() const { return parent_; }
1129 
1135  string* mutable_parent() {
1136  _have_parent_ = true;
1137  return &parent_;
1138  }
1139 
1140 
1147  void set_parent(const string& value) {
1148  _have_parent_ = true;
1149  parent_ = value;
1150  }
1151 
1152 
1153 
1158  _have_previous_ = false;
1159  client::ClearCppValueHelper(&previous_);
1160  }
1161 
1162 
1168  const string& get_previous() const { return previous_; }
1169 
1176  string* mutable_previous() {
1177  _have_previous_ = true;
1178  return &previous_;
1179  }
1180 
1181 
1189  void set_previous(const string& value) {
1190  _have_previous_ = true;
1191  previous_ = value;
1192  }
1193 
1203  virtual util::Status AppendVariable(
1204  const StringPiece& variable_name,
1205  const client::UriTemplateConfig& config,
1206  string* target);
1207 
1213  virtual util::Status AppendOptionalQueryParameters(string* target);
1214 
1215 
1227  Task* data) {
1228  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1229  }
1230 
1231  private:
1232  string tasklist_;
1233  string parent_;
1234  string previous_;
1235  bool _have_parent_ : 1;
1236  bool _have_previous_ : 1; string _content_;
1237  DISALLOW_COPY_AND_ASSIGN(TasksResource_InsertMethod);
1238 };
1239 
1254  public:
1264  const TasksService* _service_,
1265  client::AuthorizationCredential* _credential_,
1266  const absl::string_view& tasklist);
1267 
1271  virtual ~TasksResource_ListMethod();
1272 
1273 
1278  _have_completed_max_ = false;
1279  client::ClearCppValueHelper(&completed_max_);
1280  }
1281 
1282 
1288  const string& get_completed_max() const { return completed_max_; }
1289 
1297  _have_completed_max_ = true;
1298  return &completed_max_;
1299  }
1300 
1301 
1309  void set_completed_max(const string& value) {
1310  _have_completed_max_ = true;
1311  completed_max_ = value;
1312  }
1313 
1314 
1315 
1320  _have_completed_min_ = false;
1321  client::ClearCppValueHelper(&completed_min_);
1322  }
1323 
1324 
1330  const string& get_completed_min() const { return completed_min_; }
1331 
1339  _have_completed_min_ = true;
1340  return &completed_min_;
1341  }
1342 
1343 
1351  void set_completed_min(const string& value) {
1352  _have_completed_min_ = true;
1353  completed_min_ = value;
1354  }
1355 
1356 
1357 
1361  void clear_due_max() {
1362  _have_due_max_ = false;
1363  client::ClearCppValueHelper(&due_max_);
1364  }
1365 
1366 
1372  const string& get_due_max() const { return due_max_; }
1373 
1379  string* mutable_dueMax() {
1380  _have_due_max_ = true;
1381  return &due_max_;
1382  }
1383 
1384 
1392  void set_due_max(const string& value) {
1393  _have_due_max_ = true;
1394  due_max_ = value;
1395  }
1396 
1397 
1398 
1402  void clear_due_min() {
1403  _have_due_min_ = false;
1404  client::ClearCppValueHelper(&due_min_);
1405  }
1406 
1407 
1413  const string& get_due_min() const { return due_min_; }
1414 
1420  string* mutable_dueMin() {
1421  _have_due_min_ = true;
1422  return &due_min_;
1423  }
1424 
1425 
1433  void set_due_min(const string& value) {
1434  _have_due_min_ = true;
1435  due_min_ = value;
1436  }
1437 
1438 
1439 
1444  _have_max_results_ = false;
1445  client::ClearCppValueHelper(&max_results_);
1446  }
1447 
1448 
1454  int64 get_max_results() const { return max_results_; }
1455 
1462  void set_max_results(int64 value) {
1463  _have_max_results_ = true;
1464  max_results_ = value;
1465  }
1466 
1471  _have_page_token_ = false;
1472  client::ClearCppValueHelper(&page_token_);
1473  }
1474 
1475 
1481  const string& get_page_token() const { return page_token_; }
1482 
1489  string* mutable_pageToken() {
1490  _have_page_token_ = true;
1491  return &page_token_;
1492  }
1493 
1494 
1500  void set_page_token(const string& value) {
1501  _have_page_token_ = true;
1502  page_token_ = value;
1503  }
1504 
1505 
1506 
1511  _have_show_completed_ = false;
1512  client::ClearCppValueHelper(&show_completed_);
1513  }
1514 
1515 
1521  bool get_show_completed() const { return show_completed_; }
1522 
1529  void set_show_completed(bool value) {
1530  _have_show_completed_ = true;
1531  show_completed_ = value;
1532  }
1533 
1538  _have_show_deleted_ = false;
1539  client::ClearCppValueHelper(&show_deleted_);
1540  }
1541 
1542 
1548  bool get_show_deleted() const { return show_deleted_; }
1549 
1556  void set_show_deleted(bool value) {
1557  _have_show_deleted_ = true;
1558  show_deleted_ = value;
1559  }
1560 
1565  _have_show_hidden_ = false;
1566  client::ClearCppValueHelper(&show_hidden_);
1567  }
1568 
1569 
1575  bool get_show_hidden() const { return show_hidden_; }
1576 
1583  void set_show_hidden(bool value) {
1584  _have_show_hidden_ = true;
1585  show_hidden_ = value;
1586  }
1587 
1592  _have_updated_min_ = false;
1593  client::ClearCppValueHelper(&updated_min_);
1594  }
1595 
1596 
1602  const string& get_updated_min() const { return updated_min_; }
1603 
1611  _have_updated_min_ = true;
1612  return &updated_min_;
1613  }
1614 
1615 
1623  void set_updated_min(const string& value) {
1624  _have_updated_min_ = true;
1625  updated_min_ = value;
1626  }
1627 
1637  virtual util::Status AppendVariable(
1638  const StringPiece& variable_name,
1639  const client::UriTemplateConfig& config,
1640  string* target);
1641 
1647  virtual util::Status AppendOptionalQueryParameters(string* target);
1648 
1649 
1661  Tasks* data) {
1662  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1663  }
1664 
1665  private:
1666  string tasklist_;
1667  string completed_max_;
1668  string completed_min_;
1669  string due_max_;
1670  string due_min_;
1671  int64 max_results_;
1672  string page_token_;
1673  bool show_completed_;
1674  bool show_deleted_;
1675  bool show_hidden_;
1676  string updated_min_;
1677  bool _have_completed_max_ : 1;
1678  bool _have_completed_min_ : 1;
1679  bool _have_due_max_ : 1;
1680  bool _have_due_min_ : 1;
1681  bool _have_max_results_ : 1;
1682  bool _have_page_token_ : 1;
1683  bool _have_show_completed_ : 1;
1684  bool _have_show_deleted_ : 1;
1685  bool _have_show_hidden_ : 1;
1686  bool _have_updated_min_ : 1;
1687  DISALLOW_COPY_AND_ASSIGN(TasksResource_ListMethod);
1688 };
1689 
1690 typedef client::ServiceRequestPager<
1692  Tasks>
1693  TasksResource_ListMethodPager;
1694 
1708  public:
1719  const TasksService* _service_,
1720  client::AuthorizationCredential* _credential_,
1721  const absl::string_view& tasklist,
1722  const absl::string_view& task);
1723 
1727  virtual ~TasksResource_MoveMethod();
1728 
1729 
1733  void clear_parent() {
1734  _have_parent_ = false;
1735  client::ClearCppValueHelper(&parent_);
1736  }
1737 
1738 
1744  const string& get_parent() const { return parent_; }
1745 
1751  string* mutable_parent() {
1752  _have_parent_ = true;
1753  return &parent_;
1754  }
1755 
1756 
1763  void set_parent(const string& value) {
1764  _have_parent_ = true;
1765  parent_ = value;
1766  }
1767 
1768 
1769 
1774  _have_previous_ = false;
1775  client::ClearCppValueHelper(&previous_);
1776  }
1777 
1778 
1784  const string& get_previous() const { return previous_; }
1785 
1792  string* mutable_previous() {
1793  _have_previous_ = true;
1794  return &previous_;
1795  }
1796 
1797 
1805  void set_previous(const string& value) {
1806  _have_previous_ = true;
1807  previous_ = value;
1808  }
1809 
1819  virtual util::Status AppendVariable(
1820  const StringPiece& variable_name,
1821  const client::UriTemplateConfig& config,
1822  string* target);
1823 
1829  virtual util::Status AppendOptionalQueryParameters(string* target);
1830 
1831 
1843  Task* data) {
1844  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1845  }
1846 
1847  private:
1848  string tasklist_;
1849  string task_;
1850  string parent_;
1851  string previous_;
1852  bool _have_parent_ : 1;
1853  bool _have_previous_ : 1;
1854  DISALLOW_COPY_AND_ASSIGN(TasksResource_MoveMethod);
1855 };
1856 
1870  public:
1882  const TasksService* _service_,
1883  client::AuthorizationCredential* _credential_,
1884  const absl::string_view& tasklist,
1885  const absl::string_view& task,
1886  const Task& _content_);
1887 
1891  virtual ~TasksResource_PatchMethod();
1892 
1893 
1903  virtual util::Status AppendVariable(
1904  const StringPiece& variable_name,
1905  const client::UriTemplateConfig& config,
1906  string* target);
1907 
1908 
1920  Task* data) {
1921  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1922  }
1923 
1924  private:
1925  string tasklist_;
1926  string task_; string _content_;
1927  DISALLOW_COPY_AND_ASSIGN(TasksResource_PatchMethod);
1928 };
1929 
1943  public:
1955  const TasksService* _service_,
1956  client::AuthorizationCredential* _credential_,
1957  const absl::string_view& tasklist,
1958  const absl::string_view& task,
1959  const Task& _content_);
1960 
1964  virtual ~TasksResource_UpdateMethod();
1965 
1966 
1976  virtual util::Status AppendVariable(
1977  const StringPiece& variable_name,
1978  const client::UriTemplateConfig& config,
1979  string* target);
1980 
1981 
1993  Task* data) {
1994  return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1995  }
1996 
1997  private:
1998  string tasklist_;
1999  string task_; string _content_;
2000  DISALLOW_COPY_AND_ASSIGN(TasksResource_UpdateMethod);
2001 };
2002 
2003 
2004 
2013 class TasksService : public client::ClientService {
2014  public:
2018  static const char googleapis_API_NAME[];
2019 
2023  static const char googleapis_API_VERSION[];
2024 
2028  static const char googleapis_API_GENERATOR[];
2029 
2030 
2037  public:
2045  explicit TasklistsResource(TasksService* service);
2046 
2051 
2052 
2062  TasklistsResource_DeleteMethod* NewDeleteMethod(
2063  client::AuthorizationCredential* _credential_,
2064  const absl::string_view& tasklist) const;
2065 
2075  TasklistsResource_GetMethod* NewGetMethod(
2076  client::AuthorizationCredential* _credential_,
2077  const absl::string_view& tasklist) const;
2078 
2088  TasklistsResource_InsertMethod* NewInsertMethod(
2089  client::AuthorizationCredential* _credential_,
2090  const TaskList& _content_) const;
2091 
2100  TasklistsResource_ListMethod* NewListMethod(
2101  client::AuthorizationCredential* _credential_) const;
2102 
2109  TasklistsResource_ListMethodPager* NewListMethodPager(
2110  client::AuthorizationCredential* _credential_) const;
2111 
2122  TasklistsResource_PatchMethod* NewPatchMethod(
2123  client::AuthorizationCredential* _credential_,
2124  const absl::string_view& tasklist,
2125  const TaskList& _content_) const;
2126 
2137  TasklistsResource_UpdateMethod* NewUpdateMethod(
2138  client::AuthorizationCredential* _credential_,
2139  const absl::string_view& tasklist,
2140  const TaskList& _content_) const;
2141 
2142  private:
2143  TasksService* service_;
2144 
2145  DISALLOW_COPY_AND_ASSIGN(TasklistsResource);
2146  };
2147 
2154  public:
2162  explicit TasksResource(TasksService* service);
2163 
2168 
2169 
2179  TasksResource_ClearMethod* NewClearMethod(
2180  client::AuthorizationCredential* _credential_,
2181  const absl::string_view& tasklist) const;
2182 
2193  TasksResource_DeleteMethod* NewDeleteMethod(
2194  client::AuthorizationCredential* _credential_,
2195  const absl::string_view& tasklist,
2196  const absl::string_view& task) const;
2197 
2208  TasksResource_GetMethod* NewGetMethod(
2209  client::AuthorizationCredential* _credential_,
2210  const absl::string_view& tasklist,
2211  const absl::string_view& task) const;
2212 
2223  TasksResource_InsertMethod* NewInsertMethod(
2224  client::AuthorizationCredential* _credential_,
2225  const absl::string_view& tasklist,
2226  const Task& _content_) const;
2227 
2237  TasksResource_ListMethod* NewListMethod(
2238  client::AuthorizationCredential* _credential_,
2239  const absl::string_view& tasklist) const;
2240 
2249  TasksResource_ListMethodPager* NewListMethodPager(
2250  client::AuthorizationCredential* _credential_,
2251  const absl::string_view& tasklist) const;
2252 
2263  TasksResource_MoveMethod* NewMoveMethod(
2264  client::AuthorizationCredential* _credential_,
2265  const absl::string_view& tasklist,
2266  const absl::string_view& task) const;
2267 
2279  TasksResource_PatchMethod* NewPatchMethod(
2280  client::AuthorizationCredential* _credential_,
2281  const absl::string_view& tasklist,
2282  const absl::string_view& task,
2283  const Task& _content_) const;
2284 
2296  TasksResource_UpdateMethod* NewUpdateMethod(
2297  client::AuthorizationCredential* _credential_,
2298  const absl::string_view& tasklist,
2299  const absl::string_view& task,
2300  const Task& _content_) const;
2301 
2302  private:
2303  TasksService* service_;
2304 
2305  DISALLOW_COPY_AND_ASSIGN(TasksResource);
2306  };
2307 
2308 
2309 
2316  explicit TasksService(client::HttpTransport* transport);
2317 
2321  virtual ~TasksService();
2322 
2329  return tasklists_;
2330  }
2331 
2332 
2338  const TasksResource& get_tasks() const {
2339  return tasks_;
2340  }
2341 
2348  class SCOPES {
2349  public:
2353  static const char TASKS[];
2354 
2358  static const char TASKS_READONLY[];
2359 
2360  private:
2361  SCOPES(); // Never instantiated.
2362  ~SCOPES(); // Never instantiated.
2363  };
2364 
2365  private:
2366  TasklistsResource tasklists_;
2367  TasksResource tasks_;
2368 
2369  DISALLOW_COPY_AND_ASSIGN(TasksService);
2370 };
2371 
2372 
2403 } // namespace google_tasks_api
2404 #endif // GOOGLE_TASKS_API_TASKS_SERVICE_H_
void clear_user_ip()
Definition: tasks_service.h:348
bool get_show_hidden() const
Definition: tasks_service.h:1575
const string & get_completed_max() const
Definition: tasks_service.h:1288
Definition: tasks.h:52
void set_page_token(const string &value)
Definition: tasks_service.h:1500
Definition: tasks_service.h:2153
void clear_due_min()
Definition: tasks_service.h:1402
Definition: tasks_service.h:622
void clear_max_results()
Definition: tasks_service.h:644
const string & get_alt() const
Definition: tasks_service.h:132
string * mutable_quotaUser()
Definition: tasks_service.h:326
string * mutable_fields()
Definition: tasks_service.h:178
string * mutable_updatedMin()
Definition: tasks_service.h:1610
string * mutable_previous()
Definition: tasks_service.h:1176
const string & get_previous() const
Definition: tasks_service.h:1168
Definition: tasks_service.h:910
void set_user_ip(const string &value)
Definition: tasks_service.h:378
Definition: tasks_service.h:1091
void set_show_hidden(bool value)
Definition: tasks_service.h:1583
string * mutable_alt()
Definition: tasks_service.h:139
string * mutable_userIp()
Definition: tasks_service.h:366
const string & get_quota_user() const
Definition: tasks_service.h:318
void clear_previous()
Definition: tasks_service.h:1773
const string & get_user_ip() const
Definition: tasks_service.h:359
void set_quota_user(const string &value)
Definition: tasks_service.h:338
string * mutable_pageToken()
Definition: tasks_service.h:690
void set_parent(const string &value)
Definition: tasks_service.h:1763
void clear_previous()
Definition: tasks_service.h:1157
void clear_show_deleted()
Definition: tasks_service.h:1537
string * mutable_parent()
Definition: tasks_service.h:1751
int64 get_max_results() const
Definition: tasks_service.h:1454
const string & get_page_token() const
Definition: tasks_service.h:682
Definition: task_lists.h:52
void clear_completed_min()
Definition: tasks_service.h:1319
void clear_page_token()
Definition: tasks_service.h:671
void set_fields(const string &value)
Definition: tasks_service.h:190
const TasksResource & get_tasks() const
Definition: tasks_service.h:2338
Definition: tasks_service.h:2013
const string & get_oauth_token() const
Definition: tasks_service.h:252
void set_show_completed(bool value)
Definition: tasks_service.h:1529
const string & get_completed_min() const
Definition: tasks_service.h:1330
void clear_show_completed()
Definition: tasks_service.h:1510
void clear_show_hidden()
Definition: tasks_service.h:1564
void clear_alt()
Definition: tasks_service.h:121
util::Status ExecuteAndParseResponse(TaskList *data)
Definition: tasks_service.h:599
~TasksResource()
Definition: tasks_service.h:2167
void set_show_deleted(bool value)
Definition: tasks_service.h:1556
void set_alt(const string &value)
Definition: tasks_service.h:150
util::Status ExecuteAndParseResponse(Tasks *data)
Definition: tasks_service.h:1660
void set_updated_min(const string &value)
Definition: tasks_service.h:1623
void set_completed_min(const string &value)
Definition: tasks_service.h:1351
bool get_show_deleted() const
Definition: tasks_service.h:1548
void clear_completed_max()
Definition: tasks_service.h:1277
int64 get_max_results() const
Definition: tasks_service.h:655
string * mutable_dueMax()
Definition: tasks_service.h:1379
string * mutable_completedMax()
Definition: tasks_service.h:1296
const string & get_parent() const
Definition: tasks_service.h:1128
void clear_quota_user()
Definition: tasks_service.h:307
void clear_key()
Definition: tasks_service.h:200
void clear_due_max()
Definition: tasks_service.h:1361
void set_pretty_print(bool value)
Definition: tasks_service.h:299
const string & get_page_token() const
Definition: tasks_service.h:1481
void clear_parent()
Definition: tasks_service.h:1117
void set_key(const string &value)
Definition: tasks_service.h:231
bool get_show_completed() const
Definition: tasks_service.h:1521
Definition: tasks_service.h:1253
void clear_oauth_token()
Definition: tasks_service.h:241
string * mutable_oauthToken()
Definition: tasks_service.h:260
void clear_parent()
Definition: tasks_service.h:1733
const string & get_due_min() const
Definition: tasks_service.h:1413
Definition: task_list.h:51
void clear_page_token()
Definition: tasks_service.h:1470
bool get_pretty_print() const
Definition: tasks_service.h:292
void set_max_results(int64 value)
Definition: tasks_service.h:1462
const string & get_parent() const
Definition: tasks_service.h:1744
util::Status ExecuteAndParseResponse(TaskList *data)
Definition: tasks_service.h:886
const string & get_key() const
Definition: tasks_service.h:211
util::Status ExecuteAndParseResponse(Task *data)
Definition: tasks_service.h:1842
Definition: tasks_service.h:1942
util::Status ExecuteAndParseResponse(TaskList *data)
Definition: tasks_service.h:816
string * mutable_dueMin()
Definition: tasks_service.h:1420
Definition: tasks_service.h:2348
void clear_updated_min()
Definition: tasks_service.h:1591
void set_completed_max(const string &value)
Definition: tasks_service.h:1309
Definition: tasks_service.h:1020
void set_page_token(const string &value)
Definition: tasks_service.h:701
util::Status ExecuteAndParseResponse(Task *data)
Definition: tasks_service.h:1919
string * mutable_key()
Definition: tasks_service.h:218
string * mutable_parent()
Definition: tasks_service.h:1135
void set_previous(const string &value)
Definition: tasks_service.h:1805
util::Status ExecuteAndParseResponse(TaskLists *data)
Definition: tasks_service.h:738
const string & get_updated_min() const
Definition: tasks_service.h:1602
util::Status ExecuteAndParseResponse(Task *data)
Definition: tasks_service.h:1226
Definition: tasks_service.h:963
Definition: task.cc:41
util::Status ExecuteAndParseResponse(TaskList *data)
Definition: tasks_service.h:547
void set_due_max(const string &value)
Definition: tasks_service.h:1392
util::Status ExecuteAndParseResponse(Task *data)
Definition: tasks_service.h:1992
void set_max_results(int64 value)
Definition: tasks_service.h:663
string * mutable_previous()
Definition: tasks_service.h:1792
void set_parent(const string &value)
Definition: tasks_service.h:1147
const string & get_previous() const
Definition: tasks_service.h:1784
string * mutable_pageToken()
Definition: tasks_service.h:1489
void set_oauth_token(const string &value)
Definition: tasks_service.h:271
Definition: tasks_service.h:501
void clear_max_results()
Definition: tasks_service.h:1443
Definition: tasks_service.h:1707
util::Status ExecuteAndParseResponse(Task *data)
Definition: tasks_service.h:1068
Definition: tasks_service.h:1869
string * mutable_completedMin()
Definition: tasks_service.h:1338
const string & get_fields() const
Definition: tasks_service.h:171
Definition: task.h:51
const string & get_due_max() const
Definition: tasks_service.h:1372
~TasklistsResource()
Definition: tasks_service.h:2050
void clear_fields()
Definition: tasks_service.h:160
const TasklistsResource & get_tasklists() const
Definition: tasks_service.h:2328
void set_due_min(const string &value)
Definition: tasks_service.h:1433
void clear_pretty_print()
Definition: tasks_service.h:281
Definition: tasks_service.h:82
void set_previous(const string &value)
Definition: tasks_service.h:1189