24 #ifndef GOOGLE_TASKS_API_TASKS_SERVICE_H_ 25 #define GOOGLE_TASKS_API_TASKS_SERVICE_H_ 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" 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" 83 :
public client::ClientServiceRequest {
107 const client::ClientService* service,
108 client::AuthorizationCredential* credential,
109 client::HttpRequest::HttpMethod method,
110 const StringPiece& uri_template);
123 client::ClearCppValueHelper(&alt_);
132 const string&
get_alt()
const {
return alt_; }
161 _have_fields_ =
false;
162 client::ClearCppValueHelper(&fields_);
179 _have_fields_ =
true;
191 _have_fields_ =
true;
202 client::ClearCppValueHelper(&key_);
211 const string&
get_key()
const {
return key_; }
242 _have_oauth_token_ =
false;
243 client::ClearCppValueHelper(&oauth_token_);
261 _have_oauth_token_ =
true;
262 return &oauth_token_;
272 _have_oauth_token_ =
true;
273 oauth_token_ = value;
282 _have_pretty_print_ =
false;
283 client::ClearCppValueHelper(&pretty_print_);
300 _have_pretty_print_ =
true;
301 pretty_print_ = value;
308 _have_quota_user_ =
false;
309 client::ClearCppValueHelper("a_user_);
327 _have_quota_user_ =
true;
339 _have_quota_user_ =
true;
349 _have_user_ip_ =
false;
350 client::ClearCppValueHelper(&user_ip_);
367 _have_user_ip_ =
true;
379 _have_user_ip_ =
true;
393 virtual util::Status AppendVariable(
394 const StringPiece& variable_name,
395 const client::UriTemplateConfig& config,
403 virtual util::Status AppendOptionalQueryParameters(
string* target);
412 void AddJsonContentToRequest(
const client::JsonCppData *content);
423 bool _have_fields_ : 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;
459 client::AuthorizationCredential* _credential_,
460 const absl::string_view& tasklist);
477 virtual util::Status AppendVariable(
478 const StringPiece& variable_name,
479 const client::UriTemplateConfig& config,
513 client::AuthorizationCredential* _credential_,
514 const absl::string_view& tasklist);
531 virtual util::Status AppendVariable(
532 const StringPiece& variable_name,
533 const client::UriTemplateConfig& config,
549 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
581 client::AuthorizationCredential* _credential_,
601 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
633 client::AuthorizationCredential* _credential_);
645 _have_max_results_ =
false;
646 client::ClearCppValueHelper(&max_results_);
664 _have_max_results_ =
true;
665 max_results_ = value;
672 _have_page_token_ =
false;
673 client::ClearCppValueHelper(&page_token_);
691 _have_page_token_ =
true;
702 _have_page_token_ =
true;
715 virtual util::Status AppendVariable(
716 const StringPiece& variable_name,
717 const client::UriTemplateConfig& config,
725 virtual util::Status AppendOptionalQueryParameters(
string* target);
740 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
746 bool _have_max_results_ : 1;
747 bool _have_page_token_ : 1;
751 typedef client::ServiceRequestPager<
754 TasklistsResource_ListMethodPager;
781 client::AuthorizationCredential* _credential_,
782 const absl::string_view& tasklist,
800 virtual util::Status AppendVariable(
801 const StringPiece& variable_name,
802 const client::UriTemplateConfig& config,
818 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
822 string tasklist_;
string _content_;
851 client::AuthorizationCredential* _credential_,
852 const absl::string_view& tasklist,
870 virtual util::Status AppendVariable(
871 const StringPiece& variable_name,
872 const client::UriTemplateConfig& config,
888 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
892 string tasklist_;
string _content_;
922 client::AuthorizationCredential* _credential_,
923 const absl::string_view& tasklist);
940 virtual util::Status AppendVariable(
941 const StringPiece& variable_name,
942 const client::UriTemplateConfig& config,
976 client::AuthorizationCredential* _credential_,
977 const absl::string_view& tasklist,
978 const absl::string_view& task);
995 virtual util::Status AppendVariable(
996 const StringPiece& variable_name,
997 const client::UriTemplateConfig& config,
1033 client::AuthorizationCredential* _credential_,
1034 const absl::string_view& tasklist,
1035 const absl::string_view& task);
1052 virtual util::Status AppendVariable(
1053 const StringPiece& variable_name,
1054 const client::UriTemplateConfig& config,
1070 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1104 client::AuthorizationCredential* _credential_,
1105 const absl::string_view& tasklist,
1106 const Task& _content_);
1118 _have_parent_ =
false;
1119 client::ClearCppValueHelper(&parent_);
1136 _have_parent_ =
true;
1148 _have_parent_ =
true;
1158 _have_previous_ =
false;
1159 client::ClearCppValueHelper(&previous_);
1177 _have_previous_ =
true;
1190 _have_previous_ =
true;
1203 virtual util::Status AppendVariable(
1204 const StringPiece& variable_name,
1205 const client::UriTemplateConfig& config,
1213 virtual util::Status AppendOptionalQueryParameters(
string* target);
1228 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1235 bool _have_parent_ : 1;
1236 bool _have_previous_ : 1;
string _content_;
1265 client::AuthorizationCredential* _credential_,
1266 const absl::string_view& tasklist);
1278 _have_completed_max_ =
false;
1279 client::ClearCppValueHelper(&completed_max_);
1297 _have_completed_max_ =
true;
1298 return &completed_max_;
1310 _have_completed_max_ =
true;
1311 completed_max_ = value;
1320 _have_completed_min_ =
false;
1321 client::ClearCppValueHelper(&completed_min_);
1339 _have_completed_min_ =
true;
1340 return &completed_min_;
1352 _have_completed_min_ =
true;
1353 completed_min_ = value;
1362 _have_due_max_ =
false;
1363 client::ClearCppValueHelper(&due_max_);
1380 _have_due_max_ =
true;
1393 _have_due_max_ =
true;
1403 _have_due_min_ =
false;
1404 client::ClearCppValueHelper(&due_min_);
1421 _have_due_min_ =
true;
1434 _have_due_min_ =
true;
1444 _have_max_results_ =
false;
1445 client::ClearCppValueHelper(&max_results_);
1463 _have_max_results_ =
true;
1464 max_results_ = value;
1471 _have_page_token_ =
false;
1472 client::ClearCppValueHelper(&page_token_);
1490 _have_page_token_ =
true;
1491 return &page_token_;
1501 _have_page_token_ =
true;
1502 page_token_ = value;
1511 _have_show_completed_ =
false;
1512 client::ClearCppValueHelper(&show_completed_);
1530 _have_show_completed_ =
true;
1531 show_completed_ = value;
1538 _have_show_deleted_ =
false;
1539 client::ClearCppValueHelper(&show_deleted_);
1557 _have_show_deleted_ =
true;
1558 show_deleted_ = value;
1565 _have_show_hidden_ =
false;
1566 client::ClearCppValueHelper(&show_hidden_);
1584 _have_show_hidden_ =
true;
1585 show_hidden_ = value;
1592 _have_updated_min_ =
false;
1593 client::ClearCppValueHelper(&updated_min_);
1611 _have_updated_min_ =
true;
1612 return &updated_min_;
1624 _have_updated_min_ =
true;
1625 updated_min_ = value;
1637 virtual util::Status AppendVariable(
1638 const StringPiece& variable_name,
1639 const client::UriTemplateConfig& config,
1647 virtual util::Status AppendOptionalQueryParameters(
string* target);
1662 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1667 string completed_max_;
1668 string completed_min_;
1673 bool show_completed_;
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;
1690 typedef client::ServiceRequestPager<
1693 TasksResource_ListMethodPager;
1720 client::AuthorizationCredential* _credential_,
1721 const absl::string_view& tasklist,
1722 const absl::string_view& task);
1734 _have_parent_ =
false;
1735 client::ClearCppValueHelper(&parent_);
1752 _have_parent_ =
true;
1764 _have_parent_ =
true;
1774 _have_previous_ =
false;
1775 client::ClearCppValueHelper(&previous_);
1793 _have_previous_ =
true;
1806 _have_previous_ =
true;
1819 virtual util::Status AppendVariable(
1820 const StringPiece& variable_name,
1821 const client::UriTemplateConfig& config,
1829 virtual util::Status AppendOptionalQueryParameters(
string* target);
1844 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1852 bool _have_parent_ : 1;
1853 bool _have_previous_ : 1;
1883 client::AuthorizationCredential* _credential_,
1884 const absl::string_view& tasklist,
1885 const absl::string_view& task,
1886 const Task& _content_);
1903 virtual util::Status AppendVariable(
1904 const StringPiece& variable_name,
1905 const client::UriTemplateConfig& config,
1921 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1926 string task_;
string _content_;
1956 client::AuthorizationCredential* _credential_,
1957 const absl::string_view& tasklist,
1958 const absl::string_view& task,
1959 const Task& _content_);
1976 virtual util::Status AppendVariable(
1977 const StringPiece& variable_name,
1978 const client::UriTemplateConfig& config,
1994 return TasksServiceBaseRequest::ExecuteAndParseResponse(data);
1999 string task_;
string _content_;
2018 static const char googleapis_API_NAME[];
2023 static const char googleapis_API_VERSION[];
2028 static const char googleapis_API_GENERATOR[];
2063 client::AuthorizationCredential* _credential_,
2064 const absl::string_view& tasklist)
const;
2076 client::AuthorizationCredential* _credential_,
2077 const absl::string_view& tasklist)
const;
2089 client::AuthorizationCredential* _credential_,
2100 TasklistsResource_ListMethod* NewListMethod(
2101 client::AuthorizationCredential* _credential_)
const;
2109 TasklistsResource_ListMethodPager* NewListMethodPager(
2110 client::AuthorizationCredential* _credential_)
const;
2123 client::AuthorizationCredential* _credential_,
2124 const absl::string_view& tasklist,
2138 client::AuthorizationCredential* _credential_,
2139 const absl::string_view& tasklist,
2180 client::AuthorizationCredential* _credential_,
2181 const absl::string_view& tasklist)
const;
2194 client::AuthorizationCredential* _credential_,
2195 const absl::string_view& tasklist,
2196 const absl::string_view& task)
const;
2209 client::AuthorizationCredential* _credential_,
2210 const absl::string_view& tasklist,
2211 const absl::string_view& task)
const;
2224 client::AuthorizationCredential* _credential_,
2225 const absl::string_view& tasklist,
2226 const Task& _content_)
const;
2237 TasksResource_ListMethod* NewListMethod(
2238 client::AuthorizationCredential* _credential_,
2239 const absl::string_view& tasklist)
const;
2249 TasksResource_ListMethodPager* NewListMethodPager(
2250 client::AuthorizationCredential* _credential_,
2251 const absl::string_view& tasklist)
const;
2264 client::AuthorizationCredential* _credential_,
2265 const absl::string_view& tasklist,
2266 const absl::string_view& task)
const;
2280 client::AuthorizationCredential* _credential_,
2281 const absl::string_view& tasklist,
2282 const absl::string_view& task,
2283 const Task& _content_)
const;
2297 client::AuthorizationCredential* _credential_,
2298 const absl::string_view& tasklist,
2299 const absl::string_view& task,
2300 const Task& _content_)
const;
2316 explicit TasksService(client::HttpTransport* transport);
2353 static const char TASKS[];
2358 static const char TASKS_READONLY[];
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_service.h:838
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
Definition: tasks_service.h:2036
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
Definition: tasks_service.h:447
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
Definition: tasks_service.h:569
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: tasks_service.h:768
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
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