calendar  v3
event.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-03-19, 04:06:47 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Calendar API (calendar/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 411
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_CALENDAR_API_EVENT_H_
31 #define GOOGLE_CALENDAR_API_EVENT_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/client/util/date_time.h"
38 #include "googleapis/strings/stringpiece.h"
39 
40 #include "google/calendar_api/conference_data.h"
41 #include "google/calendar_api/event_attachment.h"
42 #include "google/calendar_api/event_attendee.h"
43 #include "google/calendar_api/event_date_time.h"
44 #include "google/calendar_api/event_reminder.h"
45 
46 namespace Json {
47 class Value;
48 } // namespace Json
49 
50 namespace google_calendar_api {
51 using namespace googleapis;
52 
58 class Event : public client::JsonCppData {
59  public:
65  class EventCreator : public client::JsonCppData {
66  public:
72  static EventCreator* New();
73 
79  explicit EventCreator(const Json::Value& storage);
80 
86  explicit EventCreator(Json::Value* storage);
87 
91  virtual ~EventCreator();
92 
98  const StringPiece GetTypeName() const {
99  return StringPiece("google_calendar_api::EventCreator");
100  }
101 
107  bool has_display_name() const {
108  return Storage().isMember("displayName");
109  }
110 
115  MutableStorage()->removeMember("displayName");
116  }
117 
118 
122  const StringPiece get_display_name() const {
123  const Json::Value& v = Storage("displayName");
124  if (v == Json::Value::null) return StringPiece("");
125  return StringPiece(v.asCString());
126  }
127 
135  void set_display_name(const StringPiece& value) {
136  *MutableStorage("displayName") = value.data();
137  }
138 
144  bool has_email() const {
145  return Storage().isMember("email");
146  }
147 
151  void clear_email() {
152  MutableStorage()->removeMember("email");
153  }
154 
155 
159  const StringPiece get_email() const {
160  const Json::Value& v = Storage("email");
161  if (v == Json::Value::null) return StringPiece("");
162  return StringPiece(v.asCString());
163  }
164 
172  void set_email(const StringPiece& value) {
173  *MutableStorage("email") = value.data();
174  }
175 
181  bool has_id() const {
182  return Storage().isMember("id");
183  }
184 
188  void clear_id() {
189  MutableStorage()->removeMember("id");
190  }
191 
192 
196  const StringPiece get_id() const {
197  const Json::Value& v = Storage("id");
198  if (v == Json::Value::null) return StringPiece("");
199  return StringPiece(v.asCString());
200  }
201 
210  void set_id(const StringPiece& value) {
211  *MutableStorage("id") = value.data();
212  }
213 
219  bool has_self() const {
220  return Storage().isMember("self");
221  }
222 
226  void clear_self() {
227  MutableStorage()->removeMember("self");
228  }
229 
230 
234  bool get_self() const {
235  const Json::Value& storage = Storage("self");
236  return client::JsonValueToCppValueHelper<bool >(storage);
237  }
238 
247  void set_self(bool value) {
248  client::SetJsonValueFromCppValueHelper<bool >(
249  value, MutableStorage("self"));
250  }
251 
252  private:
253  void operator=(const EventCreator&);
254  }; // EventCreator
260  class EventExtendedProperties : public client::JsonCppData {
261  public:
267  static EventExtendedProperties* New();
268 
274  explicit EventExtendedProperties(const Json::Value& storage);
275 
281  explicit EventExtendedProperties(Json::Value* storage);
282 
286  virtual ~EventExtendedProperties();
287 
293  const StringPiece GetTypeName() const {
294  return StringPiece("google_calendar_api::EventExtendedProperties");
295  }
296 
302  bool has_private() const {
303  return Storage().isMember("private");
304  }
305 
309  void clear_private() {
310  MutableStorage()->removeMember("private");
311  }
312 
313 
317  const client::JsonCppAssociativeArray<string > get_private() const {
318  const Json::Value& storage = Storage("private");
319  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
320  }
321 
331  client::JsonCppAssociativeArray<string > mutable_private() {
332  Json::Value* storage = MutableStorage("private");
333  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
334  }
335 
341  bool has_shared() const {
342  return Storage().isMember("shared");
343  }
344 
348  void clear_shared() {
349  MutableStorage()->removeMember("shared");
350  }
351 
352 
356  const client::JsonCppAssociativeArray<string > get_shared() const {
357  const Json::Value& storage = Storage("shared");
358  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
359  }
360 
370  client::JsonCppAssociativeArray<string > mutable_shared() {
371  Json::Value* storage = MutableStorage("shared");
372  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
373  }
374 
375  private:
376  void operator=(const EventExtendedProperties&);
377  }; // EventExtendedProperties
383  class EventGadget : public client::JsonCppData {
384  public:
390  static EventGadget* New();
391 
397  explicit EventGadget(const Json::Value& storage);
398 
404  explicit EventGadget(Json::Value* storage);
405 
409  virtual ~EventGadget();
410 
416  const StringPiece GetTypeName() const {
417  return StringPiece("google_calendar_api::EventGadget");
418  }
419 
425  bool has_display() const {
426  return Storage().isMember("display");
427  }
428 
432  void clear_display() {
433  MutableStorage()->removeMember("display");
434  }
435 
436 
440  const StringPiece get_display() const {
441  const Json::Value& v = Storage("display");
442  if (v == Json::Value::null) return StringPiece("");
443  return StringPiece(v.asCString());
444  }
445 
460  void set_display(const StringPiece& value) {
461  *MutableStorage("display") = value.data();
462  }
463 
469  bool has_height() const {
470  return Storage().isMember("height");
471  }
472 
476  void clear_height() {
477  MutableStorage()->removeMember("height");
478  }
479 
480 
484  int32 get_height() const {
485  const Json::Value& storage = Storage("height");
486  return client::JsonValueToCppValueHelper<int32 >(storage);
487  }
488 
497  void set_height(int32 value) {
498  client::SetJsonValueFromCppValueHelper<int32 >(
499  value, MutableStorage("height"));
500  }
501 
507  bool has_icon_link() const {
508  return Storage().isMember("iconLink");
509  }
510 
515  MutableStorage()->removeMember("iconLink");
516  }
517 
518 
522  const StringPiece get_icon_link() const {
523  const Json::Value& v = Storage("iconLink");
524  if (v == Json::Value::null) return StringPiece("");
525  return StringPiece(v.asCString());
526  }
527 
535  void set_icon_link(const StringPiece& value) {
536  *MutableStorage("iconLink") = value.data();
537  }
538 
544  bool has_link() const {
545  return Storage().isMember("link");
546  }
547 
551  void clear_link() {
552  MutableStorage()->removeMember("link");
553  }
554 
555 
559  const StringPiece get_link() const {
560  const Json::Value& v = Storage("link");
561  if (v == Json::Value::null) return StringPiece("");
562  return StringPiece(v.asCString());
563  }
564 
572  void set_link(const StringPiece& value) {
573  *MutableStorage("link") = value.data();
574  }
575 
581  bool has_preferences() const {
582  return Storage().isMember("preferences");
583  }
584 
589  MutableStorage()->removeMember("preferences");
590  }
591 
592 
596  const client::JsonCppAssociativeArray<string > get_preferences() const {
597  const Json::Value& storage = Storage("preferences");
598  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
599  }
600 
609  client::JsonCppAssociativeArray<string > mutable_preferences() {
610  Json::Value* storage = MutableStorage("preferences");
611  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
612  }
613 
619  bool has_title() const {
620  return Storage().isMember("title");
621  }
622 
626  void clear_title() {
627  MutableStorage()->removeMember("title");
628  }
629 
630 
634  const StringPiece get_title() const {
635  const Json::Value& v = Storage("title");
636  if (v == Json::Value::null) return StringPiece("");
637  return StringPiece(v.asCString());
638  }
639 
647  void set_title(const StringPiece& value) {
648  *MutableStorage("title") = value.data();
649  }
650 
656  bool has_type() const {
657  return Storage().isMember("type");
658  }
659 
663  void clear_type() {
664  MutableStorage()->removeMember("type");
665  }
666 
667 
671  const StringPiece get_type() const {
672  const Json::Value& v = Storage("type");
673  if (v == Json::Value::null) return StringPiece("");
674  return StringPiece(v.asCString());
675  }
676 
684  void set_type(const StringPiece& value) {
685  *MutableStorage("type") = value.data();
686  }
687 
693  bool has_width() const {
694  return Storage().isMember("width");
695  }
696 
700  void clear_width() {
701  MutableStorage()->removeMember("width");
702  }
703 
704 
708  int32 get_width() const {
709  const Json::Value& storage = Storage("width");
710  return client::JsonValueToCppValueHelper<int32 >(storage);
711  }
712 
721  void set_width(int32 value) {
722  client::SetJsonValueFromCppValueHelper<int32 >(
723  value, MutableStorage("width"));
724  }
725 
726  private:
727  void operator=(const EventGadget&);
728  }; // EventGadget
737  class EventOrganizer : public client::JsonCppData {
738  public:
744  static EventOrganizer* New();
745 
751  explicit EventOrganizer(const Json::Value& storage);
752 
758  explicit EventOrganizer(Json::Value* storage);
759 
763  virtual ~EventOrganizer();
764 
770  const StringPiece GetTypeName() const {
771  return StringPiece("google_calendar_api::EventOrganizer");
772  }
773 
779  bool has_display_name() const {
780  return Storage().isMember("displayName");
781  }
782 
787  MutableStorage()->removeMember("displayName");
788  }
789 
790 
794  const StringPiece get_display_name() const {
795  const Json::Value& v = Storage("displayName");
796  if (v == Json::Value::null) return StringPiece("");
797  return StringPiece(v.asCString());
798  }
799 
807  void set_display_name(const StringPiece& value) {
808  *MutableStorage("displayName") = value.data();
809  }
810 
816  bool has_email() const {
817  return Storage().isMember("email");
818  }
819 
823  void clear_email() {
824  MutableStorage()->removeMember("email");
825  }
826 
827 
831  const StringPiece get_email() const {
832  const Json::Value& v = Storage("email");
833  if (v == Json::Value::null) return StringPiece("");
834  return StringPiece(v.asCString());
835  }
836 
845  void set_email(const StringPiece& value) {
846  *MutableStorage("email") = value.data();
847  }
848 
854  bool has_id() const {
855  return Storage().isMember("id");
856  }
857 
861  void clear_id() {
862  MutableStorage()->removeMember("id");
863  }
864 
865 
869  const StringPiece get_id() const {
870  const Json::Value& v = Storage("id");
871  if (v == Json::Value::null) return StringPiece("");
872  return StringPiece(v.asCString());
873  }
874 
883  void set_id(const StringPiece& value) {
884  *MutableStorage("id") = value.data();
885  }
886 
892  bool has_self() const {
893  return Storage().isMember("self");
894  }
895 
899  void clear_self() {
900  MutableStorage()->removeMember("self");
901  }
902 
903 
907  bool get_self() const {
908  const Json::Value& storage = Storage("self");
909  return client::JsonValueToCppValueHelper<bool >(storage);
910  }
911 
920  void set_self(bool value) {
921  client::SetJsonValueFromCppValueHelper<bool >(
922  value, MutableStorage("self"));
923  }
924 
925  private:
926  void operator=(const EventOrganizer&);
927  }; // EventOrganizer
933  class EventReminders : public client::JsonCppData {
934  public:
940  static EventReminders* New();
941 
947  explicit EventReminders(const Json::Value& storage);
948 
954  explicit EventReminders(Json::Value* storage);
955 
959  virtual ~EventReminders();
960 
966  const StringPiece GetTypeName() const {
967  return StringPiece("google_calendar_api::EventReminders");
968  }
969 
975  bool has_overrides() const {
976  return Storage().isMember("overrides");
977  }
978 
983  MutableStorage()->removeMember("overrides");
984  }
985 
986 
990  const client::JsonCppArray<EventReminder > get_overrides() const;
991 
1002  client::JsonCppArray<EventReminder > mutable_overrides();
1003 
1009  bool has_use_default() const {
1010  return Storage().isMember("useDefault");
1011  }
1012 
1017  MutableStorage()->removeMember("useDefault");
1018  }
1019 
1020 
1024  bool get_use_default() const {
1025  const Json::Value& storage = Storage("useDefault");
1026  return client::JsonValueToCppValueHelper<bool >(storage);
1027  }
1028 
1036  void set_use_default(bool value) {
1037  client::SetJsonValueFromCppValueHelper<bool >(
1038  value, MutableStorage("useDefault"));
1039  }
1040 
1041  private:
1042  void operator=(const EventReminders&);
1043  }; // EventReminders
1051  class EventSource : public client::JsonCppData {
1052  public:
1058  static EventSource* New();
1059 
1065  explicit EventSource(const Json::Value& storage);
1066 
1072  explicit EventSource(Json::Value* storage);
1073 
1077  virtual ~EventSource();
1078 
1084  const StringPiece GetTypeName() const {
1085  return StringPiece("google_calendar_api::EventSource");
1086  }
1087 
1093  bool has_title() const {
1094  return Storage().isMember("title");
1095  }
1096 
1100  void clear_title() {
1101  MutableStorage()->removeMember("title");
1102  }
1103 
1104 
1108  const StringPiece get_title() const {
1109  const Json::Value& v = Storage("title");
1110  if (v == Json::Value::null) return StringPiece("");
1111  return StringPiece(v.asCString());
1112  }
1113 
1122  void set_title(const StringPiece& value) {
1123  *MutableStorage("title") = value.data();
1124  }
1125 
1131  bool has_url() const {
1132  return Storage().isMember("url");
1133  }
1134 
1138  void clear_url() {
1139  MutableStorage()->removeMember("url");
1140  }
1141 
1142 
1146  const StringPiece get_url() const {
1147  const Json::Value& v = Storage("url");
1148  if (v == Json::Value::null) return StringPiece("");
1149  return StringPiece(v.asCString());
1150  }
1151 
1160  void set_url(const StringPiece& value) {
1161  *MutableStorage("url") = value.data();
1162  }
1163 
1164  private:
1165  void operator=(const EventSource&);
1166  }; // EventSource
1172  static Event* New();
1173 
1179  explicit Event(const Json::Value& storage);
1180 
1186  explicit Event(Json::Value* storage);
1187 
1191  virtual ~Event();
1192 
1198  const StringPiece GetTypeName() const {
1199  return StringPiece("google_calendar_api::Event");
1200  }
1201 
1208  return Storage().isMember("anyoneCanAddSelf");
1209  }
1210 
1215  MutableStorage()->removeMember("anyoneCanAddSelf");
1216  }
1217 
1218 
1223  const Json::Value& storage = Storage("anyoneCanAddSelf");
1224  return client::JsonValueToCppValueHelper<bool >(storage);
1225  }
1226 
1235  void set_anyone_can_add_self(bool value) {
1236  client::SetJsonValueFromCppValueHelper<bool >(
1237  value, MutableStorage("anyoneCanAddSelf"));
1238  }
1239 
1245  bool has_attachments() const {
1246  return Storage().isMember("attachments");
1247  }
1248 
1253  MutableStorage()->removeMember("attachments");
1254  }
1255 
1256 
1260  const client::JsonCppArray<EventAttachment > get_attachments() const;
1261 
1274  client::JsonCppArray<EventAttachment > mutable_attachments();
1275 
1281  bool has_attendees() const {
1282  return Storage().isMember("attendees");
1283  }
1284 
1289  MutableStorage()->removeMember("attendees");
1290  }
1291 
1292 
1296  const client::JsonCppArray<EventAttendee > get_attendees() const;
1297 
1307  client::JsonCppArray<EventAttendee > mutable_attendees();
1308 
1314  bool has_attendees_omitted() const {
1315  return Storage().isMember("attendeesOmitted");
1316  }
1317 
1322  MutableStorage()->removeMember("attendeesOmitted");
1323  }
1324 
1325 
1329  bool get_attendees_omitted() const {
1330  const Json::Value& storage = Storage("attendeesOmitted");
1331  return client::JsonValueToCppValueHelper<bool >(storage);
1332  }
1333 
1344  void set_attendees_omitted(bool value) {
1345  client::SetJsonValueFromCppValueHelper<bool >(
1346  value, MutableStorage("attendeesOmitted"));
1347  }
1348 
1354  bool has_color_id() const {
1355  return Storage().isMember("colorId");
1356  }
1357 
1362  MutableStorage()->removeMember("colorId");
1363  }
1364 
1365 
1369  const StringPiece get_color_id() const {
1370  const Json::Value& v = Storage("colorId");
1371  if (v == Json::Value::null) return StringPiece("");
1372  return StringPiece(v.asCString());
1373  }
1374 
1383  void set_color_id(const StringPiece& value) {
1384  *MutableStorage("colorId") = value.data();
1385  }
1386 
1392  bool has_conference_data() const {
1393  return Storage().isMember("conferenceData");
1394  }
1395 
1400  MutableStorage()->removeMember("conferenceData");
1401  }
1402 
1403 
1408  const ConferenceData get_conference_data() const;
1409 
1421  ConferenceData mutable_conferenceData();
1422 
1428  bool has_created() const {
1429  return Storage().isMember("created");
1430  }
1431 
1435  void clear_created() {
1436  MutableStorage()->removeMember("created");
1437  }
1438 
1439 
1443  client::DateTime get_created() const {
1444  const Json::Value& storage = Storage("created");
1445  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1446  }
1447 
1455  void set_created(client::DateTime value) {
1456  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1457  value, MutableStorage("created"));
1458  }
1459 
1465  bool has_creator() const {
1466  return Storage().isMember("creator");
1467  }
1468 
1472  void clear_creator() {
1473  MutableStorage()->removeMember("creator");
1474  }
1475 
1476 
1480  const EventCreator get_creator() const {
1481  const Json::Value& storage = Storage("creator");
1482  return client::JsonValueToCppValueHelper<EventCreator >(storage);
1483  }
1484 
1493  Json::Value* storage = MutableStorage("creator");
1494  return client::JsonValueToMutableCppValueHelper<EventCreator >(storage);
1495  }
1496 
1502  bool has_description() const {
1503  return Storage().isMember("description");
1504  }
1505 
1510  MutableStorage()->removeMember("description");
1511  }
1512 
1513 
1517  const StringPiece get_description() const {
1518  const Json::Value& v = Storage("description");
1519  if (v == Json::Value::null) return StringPiece("");
1520  return StringPiece(v.asCString());
1521  }
1522 
1530  void set_description(const StringPiece& value) {
1531  *MutableStorage("description") = value.data();
1532  }
1533 
1539  bool has_end() const {
1540  return Storage().isMember("end");
1541  }
1542 
1546  void clear_end() {
1547  MutableStorage()->removeMember("end");
1548  }
1549 
1550 
1554  const EventDateTime get_end() const;
1555 
1564  EventDateTime mutable_end();
1565 
1572  return Storage().isMember("endTimeUnspecified");
1573  }
1574 
1579  MutableStorage()->removeMember("endTimeUnspecified");
1580  }
1581 
1582 
1587  const Json::Value& storage = Storage("endTimeUnspecified");
1588  return client::JsonValueToCppValueHelper<bool >(storage);
1589  }
1590 
1600  void set_end_time_unspecified(bool value) {
1601  client::SetJsonValueFromCppValueHelper<bool >(
1602  value, MutableStorage("endTimeUnspecified"));
1603  }
1604 
1610  bool has_etag() const {
1611  return Storage().isMember("etag");
1612  }
1613 
1617  void clear_etag() {
1618  MutableStorage()->removeMember("etag");
1619  }
1620 
1621 
1625  const StringPiece get_etag() const {
1626  const Json::Value& v = Storage("etag");
1627  if (v == Json::Value::null) return StringPiece("");
1628  return StringPiece(v.asCString());
1629  }
1630 
1638  void set_etag(const StringPiece& value) {
1639  *MutableStorage("etag") = value.data();
1640  }
1641 
1648  return Storage().isMember("extendedProperties");
1649  }
1650 
1655  MutableStorage()->removeMember("extendedProperties");
1656  }
1657 
1658 
1664  const Json::Value& storage = Storage("extendedProperties");
1665  return client::JsonValueToCppValueHelper<EventExtendedProperties >(storage);
1666  }
1667 
1677  Json::Value* storage = MutableStorage("extendedProperties");
1678  return client::JsonValueToMutableCppValueHelper<EventExtendedProperties >(storage);
1679  }
1680 
1686  bool has_gadget() const {
1687  return Storage().isMember("gadget");
1688  }
1689 
1693  void clear_gadget() {
1694  MutableStorage()->removeMember("gadget");
1695  }
1696 
1697 
1701  const EventGadget get_gadget() const {
1702  const Json::Value& storage = Storage("gadget");
1703  return client::JsonValueToCppValueHelper<EventGadget >(storage);
1704  }
1705 
1714  Json::Value* storage = MutableStorage("gadget");
1715  return client::JsonValueToMutableCppValueHelper<EventGadget >(storage);
1716  }
1717 
1724  return Storage().isMember("guestsCanInviteOthers");
1725  }
1726 
1731  MutableStorage()->removeMember("guestsCanInviteOthers");
1732  }
1733 
1734 
1739  const Json::Value& storage = Storage("guestsCanInviteOthers");
1740  return client::JsonValueToCppValueHelper<bool >(storage);
1741  }
1742 
1751  void set_guests_can_invite_others(bool value) {
1752  client::SetJsonValueFromCppValueHelper<bool >(
1753  value, MutableStorage("guestsCanInviteOthers"));
1754  }
1755 
1761  bool has_guests_can_modify() const {
1762  return Storage().isMember("guestsCanModify");
1763  }
1764 
1769  MutableStorage()->removeMember("guestsCanModify");
1770  }
1771 
1772 
1776  bool get_guests_can_modify() const {
1777  const Json::Value& storage = Storage("guestsCanModify");
1778  return client::JsonValueToCppValueHelper<bool >(storage);
1779  }
1780 
1789  void set_guests_can_modify(bool value) {
1790  client::SetJsonValueFromCppValueHelper<bool >(
1791  value, MutableStorage("guestsCanModify"));
1792  }
1793 
1801  return Storage().isMember("guestsCanSeeOtherGuests");
1802  }
1803 
1808  MutableStorage()->removeMember("guestsCanSeeOtherGuests");
1809  }
1810 
1811 
1816  const Json::Value& storage = Storage("guestsCanSeeOtherGuests");
1817  return client::JsonValueToCppValueHelper<bool >(storage);
1818  }
1819 
1829  client::SetJsonValueFromCppValueHelper<bool >(
1830  value, MutableStorage("guestsCanSeeOtherGuests"));
1831  }
1832 
1838  bool has_hangout_link() const {
1839  return Storage().isMember("hangoutLink");
1840  }
1841 
1846  MutableStorage()->removeMember("hangoutLink");
1847  }
1848 
1849 
1853  const StringPiece get_hangout_link() const {
1854  const Json::Value& v = Storage("hangoutLink");
1855  if (v == Json::Value::null) return StringPiece("");
1856  return StringPiece(v.asCString());
1857  }
1858 
1867  void set_hangout_link(const StringPiece& value) {
1868  *MutableStorage("hangoutLink") = value.data();
1869  }
1870 
1876  bool has_html_link() const {
1877  return Storage().isMember("htmlLink");
1878  }
1879 
1884  MutableStorage()->removeMember("htmlLink");
1885  }
1886 
1887 
1891  const StringPiece get_html_link() const {
1892  const Json::Value& v = Storage("htmlLink");
1893  if (v == Json::Value::null) return StringPiece("");
1894  return StringPiece(v.asCString());
1895  }
1896 
1904  void set_html_link(const StringPiece& value) {
1905  *MutableStorage("htmlLink") = value.data();
1906  }
1907 
1913  bool has_i_cal_uid() const {
1914  return Storage().isMember("iCalUID");
1915  }
1916 
1921  MutableStorage()->removeMember("iCalUID");
1922  }
1923 
1924 
1928  const StringPiece get_i_cal_uid() const {
1929  const Json::Value& v = Storage("iCalUID");
1930  if (v == Json::Value::null) return StringPiece("");
1931  return StringPiece(v.asCString());
1932  }
1933 
1947  void set_i_cal_uid(const StringPiece& value) {
1948  *MutableStorage("iCalUID") = value.data();
1949  }
1950 
1956  bool has_id() const {
1957  return Storage().isMember("id");
1958  }
1959 
1963  void clear_id() {
1964  MutableStorage()->removeMember("id");
1965  }
1966 
1967 
1971  const StringPiece get_id() const {
1972  const Json::Value& v = Storage("id");
1973  if (v == Json::Value::null) return StringPiece("");
1974  return StringPiece(v.asCString());
1975  }
1976 
1999  void set_id(const StringPiece& value) {
2000  *MutableStorage("id") = value.data();
2001  }
2002 
2008  bool has_kind() const {
2009  return Storage().isMember("kind");
2010  }
2011 
2015  void clear_kind() {
2016  MutableStorage()->removeMember("kind");
2017  }
2018 
2019 
2023  const StringPiece get_kind() const {
2024  const Json::Value& v = Storage("kind");
2025  if (v == Json::Value::null) return StringPiece("");
2026  return StringPiece(v.asCString());
2027  }
2028 
2036  void set_kind(const StringPiece& value) {
2037  *MutableStorage("kind") = value.data();
2038  }
2039 
2045  bool has_location() const {
2046  return Storage().isMember("location");
2047  }
2048 
2053  MutableStorage()->removeMember("location");
2054  }
2055 
2056 
2060  const StringPiece get_location() const {
2061  const Json::Value& v = Storage("location");
2062  if (v == Json::Value::null) return StringPiece("");
2063  return StringPiece(v.asCString());
2064  }
2065 
2073  void set_location(const StringPiece& value) {
2074  *MutableStorage("location") = value.data();
2075  }
2076 
2082  bool has_locked() const {
2083  return Storage().isMember("locked");
2084  }
2085 
2089  void clear_locked() {
2090  MutableStorage()->removeMember("locked");
2091  }
2092 
2093 
2097  bool get_locked() const {
2098  const Json::Value& storage = Storage("locked");
2099  return client::JsonValueToCppValueHelper<bool >(storage);
2100  }
2101 
2111  void set_locked(bool value) {
2112  client::SetJsonValueFromCppValueHelper<bool >(
2113  value, MutableStorage("locked"));
2114  }
2115 
2121  bool has_organizer() const {
2122  return Storage().isMember("organizer");
2123  }
2124 
2129  MutableStorage()->removeMember("organizer");
2130  }
2131 
2132 
2137  const Json::Value& storage = Storage("organizer");
2138  return client::JsonValueToCppValueHelper<EventOrganizer >(storage);
2139  }
2140 
2153  Json::Value* storage = MutableStorage("organizer");
2154  return client::JsonValueToMutableCppValueHelper<EventOrganizer >(storage);
2155  }
2156 
2163  return Storage().isMember("originalStartTime");
2164  }
2165 
2170  MutableStorage()->removeMember("originalStartTime");
2171  }
2172 
2173 
2178  const EventDateTime get_original_start_time() const;
2179 
2192  EventDateTime mutable_originalStartTime();
2193 
2199  bool has_private_copy() const {
2200  return Storage().isMember("privateCopy");
2201  }
2202 
2207  MutableStorage()->removeMember("privateCopy");
2208  }
2209 
2210 
2214  bool get_private_copy() const {
2215  const Json::Value& storage = Storage("privateCopy");
2216  return client::JsonValueToCppValueHelper<bool >(storage);
2217  }
2218 
2228  void set_private_copy(bool value) {
2229  client::SetJsonValueFromCppValueHelper<bool >(
2230  value, MutableStorage("privateCopy"));
2231  }
2232 
2238  bool has_recurrence() const {
2239  return Storage().isMember("recurrence");
2240  }
2241 
2246  MutableStorage()->removeMember("recurrence");
2247  }
2248 
2249 
2253  const client::JsonCppArray<string > get_recurrence() const {
2254  const Json::Value& storage = Storage("recurrence");
2255  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
2256  }
2257 
2270  client::JsonCppArray<string > mutable_recurrence() {
2271  Json::Value* storage = MutableStorage("recurrence");
2272  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
2273  }
2274 
2280  bool has_recurring_event_id() const {
2281  return Storage().isMember("recurringEventId");
2282  }
2283 
2288  MutableStorage()->removeMember("recurringEventId");
2289  }
2290 
2291 
2295  const StringPiece get_recurring_event_id() const {
2296  const Json::Value& v = Storage("recurringEventId");
2297  if (v == Json::Value::null) return StringPiece("");
2298  return StringPiece(v.asCString());
2299  }
2300 
2309  void set_recurring_event_id(const StringPiece& value) {
2310  *MutableStorage("recurringEventId") = value.data();
2311  }
2312 
2318  bool has_reminders() const {
2319  return Storage().isMember("reminders");
2320  }
2321 
2326  MutableStorage()->removeMember("reminders");
2327  }
2328 
2329 
2334  const Json::Value& storage = Storage("reminders");
2335  return client::JsonValueToCppValueHelper<EventReminders >(storage);
2336  }
2337 
2347  Json::Value* storage = MutableStorage("reminders");
2348  return client::JsonValueToMutableCppValueHelper<EventReminders >(storage);
2349  }
2350 
2356  bool has_sequence() const {
2357  return Storage().isMember("sequence");
2358  }
2359 
2364  MutableStorage()->removeMember("sequence");
2365  }
2366 
2367 
2371  int32 get_sequence() const {
2372  const Json::Value& storage = Storage("sequence");
2373  return client::JsonValueToCppValueHelper<int32 >(storage);
2374  }
2375 
2383  void set_sequence(int32 value) {
2384  client::SetJsonValueFromCppValueHelper<int32 >(
2385  value, MutableStorage("sequence"));
2386  }
2387 
2393  bool has_source() const {
2394  return Storage().isMember("source");
2395  }
2396 
2400  void clear_source() {
2401  MutableStorage()->removeMember("source");
2402  }
2403 
2404 
2408  const EventSource get_source() const {
2409  const Json::Value& storage = Storage("source");
2410  return client::JsonValueToCppValueHelper<EventSource >(storage);
2411  }
2412 
2423  Json::Value* storage = MutableStorage("source");
2424  return client::JsonValueToMutableCppValueHelper<EventSource >(storage);
2425  }
2426 
2432  bool has_start() const {
2433  return Storage().isMember("start");
2434  }
2435 
2439  void clear_start() {
2440  MutableStorage()->removeMember("start");
2441  }
2442 
2443 
2447  const EventDateTime get_start() const;
2448 
2457  EventDateTime mutable_start();
2458 
2464  bool has_status() const {
2465  return Storage().isMember("status");
2466  }
2467 
2471  void clear_status() {
2472  MutableStorage()->removeMember("status");
2473  }
2474 
2475 
2479  const StringPiece get_status() const {
2480  const Json::Value& v = Storage("status");
2481  if (v == Json::Value::null) return StringPiece("");
2482  return StringPiece(v.asCString());
2483  }
2484 
2513  void set_status(const StringPiece& value) {
2514  *MutableStorage("status") = value.data();
2515  }
2516 
2522  bool has_summary() const {
2523  return Storage().isMember("summary");
2524  }
2525 
2529  void clear_summary() {
2530  MutableStorage()->removeMember("summary");
2531  }
2532 
2533 
2537  const StringPiece get_summary() const {
2538  const Json::Value& v = Storage("summary");
2539  if (v == Json::Value::null) return StringPiece("");
2540  return StringPiece(v.asCString());
2541  }
2542 
2550  void set_summary(const StringPiece& value) {
2551  *MutableStorage("summary") = value.data();
2552  }
2553 
2559  bool has_transparency() const {
2560  return Storage().isMember("transparency");
2561  }
2562 
2567  MutableStorage()->removeMember("transparency");
2568  }
2569 
2570 
2574  const StringPiece get_transparency() const {
2575  const Json::Value& v = Storage("transparency");
2576  if (v == Json::Value::null) return StringPiece("");
2577  return StringPiece(v.asCString());
2578  }
2579 
2597  void set_transparency(const StringPiece& value) {
2598  *MutableStorage("transparency") = value.data();
2599  }
2600 
2606  bool has_updated() const {
2607  return Storage().isMember("updated");
2608  }
2609 
2613  void clear_updated() {
2614  MutableStorage()->removeMember("updated");
2615  }
2616 
2617 
2621  client::DateTime get_updated() const {
2622  const Json::Value& storage = Storage("updated");
2623  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
2624  }
2625 
2633  void set_updated(client::DateTime value) {
2634  client::SetJsonValueFromCppValueHelper<client::DateTime >(
2635  value, MutableStorage("updated"));
2636  }
2637 
2643  bool has_visibility() const {
2644  return Storage().isMember("visibility");
2645  }
2646 
2651  MutableStorage()->removeMember("visibility");
2652  }
2653 
2654 
2658  const StringPiece get_visibility() const {
2659  const Json::Value& v = Storage("visibility");
2660  if (v == Json::Value::null) return StringPiece("");
2661  return StringPiece(v.asCString());
2662  }
2663 
2684  void set_visibility(const StringPiece& value) {
2685  *MutableStorage("visibility") = value.data();
2686  }
2687 
2688  private:
2689  void operator=(const Event&);
2690 }; // Event
2691 } // namespace google_calendar_api
2692 #endif // GOOGLE_CALENDAR_API_EVENT_H_
void set_id(const StringPiece &value)
Definition: event.h:883
void clear_id()
Definition: event.h:861
const StringPiece GetTypeName() const
Definition: event.h:1198
void clear_height()
Definition: event.h:476
void clear_icon_link()
Definition: event.h:514
void clear_creator()
Definition: event.h:1472
void clear_link()
Definition: event.h:551
const EventOrganizer get_organizer() const
Definition: event.h:2136
const StringPiece get_email() const
Definition: event.h:159
bool has_icon_link() const
Definition: event.h:507
void clear_start()
Definition: event.h:2439
void set_height(int32 value)
Definition: event.h:497
bool has_shared() const
Definition: event.h:341
void set_summary(const StringPiece &value)
Definition: event.h:2550
void clear_title()
Definition: event.h:626
const StringPiece get_url() const
Definition: event.h:1146
void set_private_copy(bool value)
Definition: event.h:2228
bool has_extended_properties() const
Definition: event.h:1647
bool has_use_default() const
Definition: event.h:1009
bool has_visibility() const
Definition: event.h:2643
bool has_color_id() const
Definition: event.h:1354
bool has_display_name() const
Definition: event.h:779
bool has_etag() const
Definition: event.h:1610
bool has_kind() const
Definition: event.h:2008
void clear_guests_can_see_other_guests()
Definition: event.h:1807
void clear_source()
Definition: event.h:2400
bool has_id() const
Definition: event.h:181
void clear_gadget()
Definition: event.h:1693
bool has_reminders() const
Definition: event.h:2318
client::DateTime get_updated() const
Definition: event.h:2621
void set_email(const StringPiece &value)
Definition: event.h:845
bool has_html_link() const
Definition: event.h:1876
void clear_guests_can_invite_others()
Definition: event.h:1730
void clear_updated()
Definition: event.h:2613
bool get_locked() const
Definition: event.h:2097
EventReminders mutable_reminders()
Definition: event.h:2346
bool has_sequence() const
Definition: event.h:2356
void set_transparency(const StringPiece &value)
Definition: event.h:2597
const client::JsonCppAssociativeArray< string > get_preferences() const
Definition: event.h:596
void clear_organizer()
Definition: event.h:2128
void set_use_default(bool value)
Definition: event.h:1036
bool has_title() const
Definition: event.h:1093
const client::JsonCppAssociativeArray< string > get_shared() const
Definition: event.h:356
bool has_self() const
Definition: event.h:219
const StringPiece get_hangout_link() const
Definition: event.h:1853
const StringPiece get_visibility() const
Definition: event.h:2658
void set_email(const StringPiece &value)
Definition: event.h:172
void set_visibility(const StringPiece &value)
Definition: event.h:2684
const StringPiece get_kind() const
Definition: event.h:2023
bool has_conference_data() const
Definition: event.h:1392
void clear_attendees()
Definition: event.h:1288
void clear_end_time_unspecified()
Definition: event.h:1578
void set_display_name(const StringPiece &value)
Definition: event.h:135
bool has_guests_can_see_other_guests() const
Definition: event.h:1800
void clear_recurring_event_id()
Definition: event.h:2287
bool has_hangout_link() const
Definition: event.h:1838
bool has_creator() const
Definition: event.h:1465
void clear_end()
Definition: event.h:1546
void clear_type()
Definition: event.h:663
bool get_anyone_can_add_self() const
Definition: event.h:1222
bool has_attendees_omitted() const
Definition: event.h:1314
bool get_guests_can_modify() const
Definition: event.h:1776
client::DateTime get_created() const
Definition: event.h:1443
const StringPiece get_html_link() const
Definition: event.h:1891
bool has_email() const
Definition: event.h:816
void clear_recurrence()
Definition: event.h:2245
void set_location(const StringPiece &value)
Definition: event.h:2073
bool has_title() const
Definition: event.h:619
const StringPiece GetTypeName() const
Definition: event.h:770
bool has_recurrence() const
Definition: event.h:2238
void clear_extended_properties()
Definition: event.h:1654
bool has_link() const
Definition: event.h:544
void clear_etag()
Definition: event.h:1617
void set_attendees_omitted(bool value)
Definition: event.h:1344
void set_i_cal_uid(const StringPiece &value)
Definition: event.h:1947
void clear_attachments()
Definition: event.h:1252
EventOrganizer mutable_organizer()
Definition: event.h:2152
bool has_url() const
Definition: event.h:1131
void set_status(const StringPiece &value)
Definition: event.h:2513
void set_end_time_unspecified(bool value)
Definition: event.h:1600
bool get_end_time_unspecified() const
Definition: event.h:1586
void set_guests_can_see_other_guests(bool value)
Definition: event.h:1828
void set_kind(const StringPiece &value)
Definition: event.h:2036
void set_icon_link(const StringPiece &value)
Definition: event.h:535
void clear_title()
Definition: event.h:1100
client::JsonCppAssociativeArray< string > mutable_preferences()
Definition: event.h:609
bool has_width() const
Definition: event.h:693
void set_self(bool value)
Definition: event.h:920
bool has_locked() const
Definition: event.h:2082
void clear_transparency()
Definition: event.h:2566
bool has_guests_can_modify() const
Definition: event.h:1761
void clear_preferences()
Definition: event.h:588
void clear_url()
Definition: event.h:1138
const StringPiece GetTypeName() const
Definition: event.h:966
void set_display(const StringPiece &value)
Definition: event.h:460
void clear_display_name()
Definition: event.h:786
void set_guests_can_modify(bool value)
Definition: event.h:1789
const StringPiece get_summary() const
Definition: event.h:2537
bool get_self() const
Definition: event.h:234
const StringPiece get_status() const
Definition: event.h:2479
const StringPiece get_display() const
Definition: event.h:440
Definition: event_date_time.h:51
void clear_summary()
Definition: event.h:2529
void set_html_link(const StringPiece &value)
Definition: event.h:1904
const EventGadget get_gadget() const
Definition: event.h:1701
client::JsonCppAssociativeArray< string > mutable_private()
Definition: event.h:331
bool has_gadget() const
Definition: event.h:1686
bool has_id() const
Definition: event.h:1956
bool get_attendees_omitted() const
Definition: event.h:1329
const EventSource get_source() const
Definition: event.h:2408
void set_locked(bool value)
Definition: event.h:2111
bool has_start() const
Definition: event.h:2432
void clear_i_cal_uid()
Definition: event.h:1920
bool has_organizer() const
Definition: event.h:2121
const StringPiece get_email() const
Definition: event.h:831
void set_title(const StringPiece &value)
Definition: event.h:647
bool get_self() const
Definition: event.h:907
client::JsonCppArray< string > mutable_recurrence()
Definition: event.h:2270
void set_id(const StringPiece &value)
Definition: event.h:1999
bool has_i_cal_uid() const
Definition: event.h:1913
void set_color_id(const StringPiece &value)
Definition: event.h:1383
void clear_display_name()
Definition: event.h:114
void set_sequence(int32 value)
Definition: event.h:2383
const StringPiece get_etag() const
Definition: event.h:1625
void clear_width()
Definition: event.h:700
void set_self(bool value)
Definition: event.h:247
EventExtendedProperties mutable_extendedProperties()
Definition: event.h:1676
const StringPiece get_link() const
Definition: event.h:559
bool has_original_start_time() const
Definition: event.h:2162
void clear_id()
Definition: event.h:188
const StringPiece GetTypeName() const
Definition: event.h:1084
bool has_id() const
Definition: event.h:854
const StringPiece get_icon_link() const
Definition: event.h:522
Definition: acl.h:40
const StringPiece get_display_name() const
Definition: event.h:794
const StringPiece GetTypeName() const
Definition: event.h:98
void clear_email()
Definition: event.h:151
bool get_use_default() const
Definition: event.h:1024
const StringPiece get_display_name() const
Definition: event.h:122
EventGadget mutable_gadget()
Definition: event.h:1713
void clear_reminders()
Definition: event.h:2325
bool has_email() const
Definition: event.h:144
void set_created(client::DateTime value)
Definition: event.h:1455
bool has_anyone_can_add_self() const
Definition: event.h:1207
void clear_private_copy()
Definition: event.h:2206
EventCreator mutable_creator()
Definition: event.h:1492
bool has_recurring_event_id() const
Definition: event.h:2280
void set_updated(client::DateTime value)
Definition: event.h:2633
bool has_attachments() const
Definition: event.h:1245
const StringPiece get_description() const
Definition: event.h:1517
void set_etag(const StringPiece &value)
Definition: event.h:1638
const StringPiece get_recurring_event_id() const
Definition: event.h:2295
const StringPiece get_title() const
Definition: event.h:634
void clear_self()
Definition: event.h:899
bool has_created() const
Definition: event.h:1428
bool has_height() const
Definition: event.h:469
void set_width(int32 value)
Definition: event.h:721
int32 get_width() const
Definition: event.h:708
Definition: event.h:58
const client::JsonCppAssociativeArray< string > get_private() const
Definition: event.h:317
bool has_private_copy() const
Definition: event.h:2199
void clear_original_start_time()
Definition: event.h:2169
void set_description(const StringPiece &value)
Definition: event.h:1530
bool has_updated() const
Definition: event.h:2606
bool get_private_copy() const
Definition: event.h:2214
bool has_transparency() const
Definition: event.h:2559
void clear_created()
Definition: event.h:1435
Definition: acl.cc:42
bool get_guests_can_invite_others() const
Definition: event.h:1738
const StringPiece get_i_cal_uid() const
Definition: event.h:1928
void clear_visibility()
Definition: event.h:2650
void clear_status()
Definition: event.h:2471
void clear_locked()
Definition: event.h:2089
void clear_attendees_omitted()
Definition: event.h:1321
void clear_id()
Definition: event.h:1963
const StringPiece get_transparency() const
Definition: event.h:2574
void set_id(const StringPiece &value)
Definition: event.h:210
bool has_private() const
Definition: event.h:302
void clear_html_link()
Definition: event.h:1883
const EventExtendedProperties get_extended_properties() const
Definition: event.h:1663
const StringPiece GetTypeName() const
Definition: event.h:416
bool has_end() const
Definition: event.h:1539
const StringPiece get_id() const
Definition: event.h:196
bool has_display_name() const
Definition: event.h:107
void set_display_name(const StringPiece &value)
Definition: event.h:807
void set_url(const StringPiece &value)
Definition: event.h:1160
void clear_location()
Definition: event.h:2052
void clear_sequence()
Definition: event.h:2363
void clear_anyone_can_add_self()
Definition: event.h:1214
int32 get_sequence() const
Definition: event.h:2371
bool has_guests_can_invite_others() const
Definition: event.h:1723
bool has_status() const
Definition: event.h:2464
const client::JsonCppArray< string > get_recurrence() const
Definition: event.h:2253
bool has_summary() const
Definition: event.h:2522
void clear_hangout_link()
Definition: event.h:1845
void set_recurring_event_id(const StringPiece &value)
Definition: event.h:2309
const StringPiece get_type() const
Definition: event.h:671
const StringPiece get_id() const
Definition: event.h:869
const StringPiece get_location() const
Definition: event.h:2060
const StringPiece GetTypeName() const
Definition: event.h:293
bool has_description() const
Definition: event.h:1502
const EventReminders get_reminders() const
Definition: event.h:2333
bool has_type() const
Definition: event.h:656
void clear_color_id()
Definition: event.h:1361
int32 get_height() const
Definition: event.h:484
Definition: conference_data.h:55
void clear_description()
Definition: event.h:1509
bool has_attendees() const
Definition: event.h:1281
void clear_self()
Definition: event.h:226
void clear_kind()
Definition: event.h:2015
void set_link(const StringPiece &value)
Definition: event.h:572
bool has_overrides() const
Definition: event.h:975
void set_anyone_can_add_self(bool value)
Definition: event.h:1235
bool has_self() const
Definition: event.h:892
void clear_guests_can_modify()
Definition: event.h:1768
bool has_end_time_unspecified() const
Definition: event.h:1571
client::JsonCppAssociativeArray< string > mutable_shared()
Definition: event.h:370
bool has_location() const
Definition: event.h:2045
void clear_display()
Definition: event.h:432
const StringPiece get_color_id() const
Definition: event.h:1369
bool has_preferences() const
Definition: event.h:581
void clear_email()
Definition: event.h:823
const StringPiece get_title() const
Definition: event.h:1108
bool get_guests_can_see_other_guests() const
Definition: event.h:1815
EventSource mutable_source()
Definition: event.h:2422
void clear_overrides()
Definition: event.h:982
const StringPiece get_id() const
Definition: event.h:1971
bool has_source() const
Definition: event.h:2393
const EventCreator get_creator() const
Definition: event.h:1480
void set_title(const StringPiece &value)
Definition: event.h:1122
void set_guests_can_invite_others(bool value)
Definition: event.h:1751
void clear_use_default()
Definition: event.h:1016
void set_type(const StringPiece &value)
Definition: event.h:684
void clear_conference_data()
Definition: event.h:1399
bool has_display() const
Definition: event.h:425
void set_hangout_link(const StringPiece &value)
Definition: event.h:1867