drive  v2
about.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, 05:24:40 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Drive API (drive/v2)
24 // Generated from:
25 // Version: v2
26 // Revision: 393
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_DRIVE_API_ABOUT_H_
31 #define GOOGLE_DRIVE_API_ABOUT_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 #include "google/drive_api/user.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_drive_api {
46 using namespace googleapis;
47 
53 class About : public client::JsonCppData {
54  public:
60  class AboutAdditionalRoleInfo : public client::JsonCppData {
61  public:
67  class AboutAdditionalRoleInfoRoleSets : public client::JsonCppData {
68  public:
74  static AboutAdditionalRoleInfoRoleSets* New();
75 
81  explicit AboutAdditionalRoleInfoRoleSets(const Json::Value& storage);
82 
88  explicit AboutAdditionalRoleInfoRoleSets(Json::Value* storage);
89 
94 
100  const StringPiece GetTypeName() const {
101  return StringPiece("google_drive_api::AboutAdditionalRoleInfoRoleSets");
102  }
103 
109  bool has_additional_roles() const {
110  return Storage().isMember("additionalRoles");
111  }
112 
117  MutableStorage()->removeMember("additionalRoles");
118  }
119 
120 
125  const client::JsonCppArray<string > get_additional_roles() const {
126  const Json::Value& storage = Storage("additionalRoles");
127  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
128  }
129 
138  client::JsonCppArray<string > mutable_additionalRoles() {
139  Json::Value* storage = MutableStorage("additionalRoles");
140  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
141  }
142 
148  bool has_primary_role() const {
149  return Storage().isMember("primaryRole");
150  }
151 
156  MutableStorage()->removeMember("primaryRole");
157  }
158 
159 
163  const StringPiece get_primary_role() const {
164  const Json::Value& v = Storage("primaryRole");
165  if (v == Json::Value::null) return StringPiece("");
166  return StringPiece(v.asCString());
167  }
168 
176  void set_primary_role(const StringPiece& value) {
177  *MutableStorage("primaryRole") = value.data();
178  }
179 
180  private:
181  void operator=(const AboutAdditionalRoleInfoRoleSets&);
182  }; // AboutAdditionalRoleInfoRoleSets
188  static AboutAdditionalRoleInfo* New();
189 
195  explicit AboutAdditionalRoleInfo(const Json::Value& storage);
196 
202  explicit AboutAdditionalRoleInfo(Json::Value* storage);
203 
207  virtual ~AboutAdditionalRoleInfo();
208 
214  const StringPiece GetTypeName() const {
215  return StringPiece("google_drive_api::AboutAdditionalRoleInfo");
216  }
217 
223  bool has_role_sets() const {
224  return Storage().isMember("roleSets");
225  }
226 
231  MutableStorage()->removeMember("roleSets");
232  }
233 
234 
238  const client::JsonCppArray<AboutAdditionalRoleInfoRoleSets > get_role_sets() const {
239  const Json::Value& storage = Storage("roleSets");
240  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutAdditionalRoleInfoRoleSets > >(storage);
241  }
242 
251  client::JsonCppArray<AboutAdditionalRoleInfoRoleSets > mutable_roleSets() {
252  Json::Value* storage = MutableStorage("roleSets");
253  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutAdditionalRoleInfoRoleSets > >(storage);
254  }
255 
261  bool has_type() const {
262  return Storage().isMember("type");
263  }
264 
268  void clear_type() {
269  MutableStorage()->removeMember("type");
270  }
271 
272 
276  const StringPiece get_type() const {
277  const Json::Value& v = Storage("type");
278  if (v == Json::Value::null) return StringPiece("");
279  return StringPiece(v.asCString());
280  }
281 
289  void set_type(const StringPiece& value) {
290  *MutableStorage("type") = value.data();
291  }
292 
293  private:
294  void operator=(const AboutAdditionalRoleInfo&);
295  }; // AboutAdditionalRoleInfo
301  class AboutDriveThemes : public client::JsonCppData {
302  public:
308  static AboutDriveThemes* New();
309 
315  explicit AboutDriveThemes(const Json::Value& storage);
316 
322  explicit AboutDriveThemes(Json::Value* storage);
323 
327  virtual ~AboutDriveThemes();
328 
334  const StringPiece GetTypeName() const {
335  return StringPiece("google_drive_api::AboutDriveThemes");
336  }
337 
344  return Storage().isMember("backgroundImageLink");
345  }
346 
351  MutableStorage()->removeMember("backgroundImageLink");
352  }
353 
354 
358  const StringPiece get_background_image_link() const {
359  const Json::Value& v = Storage("backgroundImageLink");
360  if (v == Json::Value::null) return StringPiece("");
361  return StringPiece(v.asCString());
362  }
363 
371  void set_background_image_link(const StringPiece& value) {
372  *MutableStorage("backgroundImageLink") = value.data();
373  }
374 
380  bool has_color_rgb() const {
381  return Storage().isMember("colorRgb");
382  }
383 
388  MutableStorage()->removeMember("colorRgb");
389  }
390 
391 
395  const StringPiece get_color_rgb() const {
396  const Json::Value& v = Storage("colorRgb");
397  if (v == Json::Value::null) return StringPiece("");
398  return StringPiece(v.asCString());
399  }
400 
408  void set_color_rgb(const StringPiece& value) {
409  *MutableStorage("colorRgb") = value.data();
410  }
411 
417  bool has_id() const {
418  return Storage().isMember("id");
419  }
420 
424  void clear_id() {
425  MutableStorage()->removeMember("id");
426  }
427 
428 
432  const StringPiece get_id() const {
433  const Json::Value& v = Storage("id");
434  if (v == Json::Value::null) return StringPiece("");
435  return StringPiece(v.asCString());
436  }
437 
445  void set_id(const StringPiece& value) {
446  *MutableStorage("id") = value.data();
447  }
448 
449  private:
450  void operator=(const AboutDriveThemes&);
451  }; // AboutDriveThemes
457  class AboutExportFormats : public client::JsonCppData {
458  public:
464  static AboutExportFormats* New();
465 
471  explicit AboutExportFormats(const Json::Value& storage);
472 
478  explicit AboutExportFormats(Json::Value* storage);
479 
483  virtual ~AboutExportFormats();
484 
490  const StringPiece GetTypeName() const {
491  return StringPiece("google_drive_api::AboutExportFormats");
492  }
493 
499  bool has_source() const {
500  return Storage().isMember("source");
501  }
502 
506  void clear_source() {
507  MutableStorage()->removeMember("source");
508  }
509 
510 
514  const StringPiece get_source() const {
515  const Json::Value& v = Storage("source");
516  if (v == Json::Value::null) return StringPiece("");
517  return StringPiece(v.asCString());
518  }
519 
527  void set_source(const StringPiece& value) {
528  *MutableStorage("source") = value.data();
529  }
530 
536  bool has_targets() const {
537  return Storage().isMember("targets");
538  }
539 
543  void clear_targets() {
544  MutableStorage()->removeMember("targets");
545  }
546 
547 
551  const client::JsonCppArray<string > get_targets() const {
552  const Json::Value& storage = Storage("targets");
553  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
554  }
555 
564  client::JsonCppArray<string > mutable_targets() {
565  Json::Value* storage = MutableStorage("targets");
566  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
567  }
568 
569  private:
570  void operator=(const AboutExportFormats&);
571  }; // AboutExportFormats
577  class AboutFeatures : public client::JsonCppData {
578  public:
584  static AboutFeatures* New();
585 
591  explicit AboutFeatures(const Json::Value& storage);
592 
598  explicit AboutFeatures(Json::Value* storage);
599 
603  virtual ~AboutFeatures();
604 
610  const StringPiece GetTypeName() const {
611  return StringPiece("google_drive_api::AboutFeatures");
612  }
613 
619  bool has_feature_name() const {
620  return Storage().isMember("featureName");
621  }
622 
627  MutableStorage()->removeMember("featureName");
628  }
629 
630 
634  const StringPiece get_feature_name() const {
635  const Json::Value& v = Storage("featureName");
636  if (v == Json::Value::null) return StringPiece("");
637  return StringPiece(v.asCString());
638  }
639 
647  void set_feature_name(const StringPiece& value) {
648  *MutableStorage("featureName") = value.data();
649  }
650 
656  bool has_feature_rate() const {
657  return Storage().isMember("featureRate");
658  }
659 
664  MutableStorage()->removeMember("featureRate");
665  }
666 
667 
671  double get_feature_rate() const {
672  const Json::Value& storage = Storage("featureRate");
673  return client::JsonValueToCppValueHelper<double >(storage);
674  }
675 
683  void set_feature_rate(double value) {
684  client::SetJsonValueFromCppValueHelper<double >(
685  value, MutableStorage("featureRate"));
686  }
687 
688  private:
689  void operator=(const AboutFeatures&);
690  }; // AboutFeatures
696  class AboutImportFormats : public client::JsonCppData {
697  public:
703  static AboutImportFormats* New();
704 
710  explicit AboutImportFormats(const Json::Value& storage);
711 
717  explicit AboutImportFormats(Json::Value* storage);
718 
722  virtual ~AboutImportFormats();
723 
729  const StringPiece GetTypeName() const {
730  return StringPiece("google_drive_api::AboutImportFormats");
731  }
732 
738  bool has_source() const {
739  return Storage().isMember("source");
740  }
741 
745  void clear_source() {
746  MutableStorage()->removeMember("source");
747  }
748 
749 
753  const StringPiece get_source() const {
754  const Json::Value& v = Storage("source");
755  if (v == Json::Value::null) return StringPiece("");
756  return StringPiece(v.asCString());
757  }
758 
766  void set_source(const StringPiece& value) {
767  *MutableStorage("source") = value.data();
768  }
769 
775  bool has_targets() const {
776  return Storage().isMember("targets");
777  }
778 
782  void clear_targets() {
783  MutableStorage()->removeMember("targets");
784  }
785 
786 
790  const client::JsonCppArray<string > get_targets() const {
791  const Json::Value& storage = Storage("targets");
792  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
793  }
794 
803  client::JsonCppArray<string > mutable_targets() {
804  Json::Value* storage = MutableStorage("targets");
805  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
806  }
807 
808  private:
809  void operator=(const AboutImportFormats&);
810  }; // AboutImportFormats
816  class AboutMaxUploadSizes : public client::JsonCppData {
817  public:
823  static AboutMaxUploadSizes* New();
824 
830  explicit AboutMaxUploadSizes(const Json::Value& storage);
831 
837  explicit AboutMaxUploadSizes(Json::Value* storage);
838 
842  virtual ~AboutMaxUploadSizes();
843 
849  const StringPiece GetTypeName() const {
850  return StringPiece("google_drive_api::AboutMaxUploadSizes");
851  }
852 
858  bool has_size() const {
859  return Storage().isMember("size");
860  }
861 
865  void clear_size() {
866  MutableStorage()->removeMember("size");
867  }
868 
869 
873  int64 get_size() const {
874  const Json::Value& storage = Storage("size");
875  return client::JsonValueToCppValueHelper<int64 >(storage);
876  }
877 
885  void set_size(int64 value) {
886  client::SetJsonValueFromCppValueHelper<int64 >(
887  value, MutableStorage("size"));
888  }
889 
895  bool has_type() const {
896  return Storage().isMember("type");
897  }
898 
902  void clear_type() {
903  MutableStorage()->removeMember("type");
904  }
905 
906 
910  const StringPiece get_type() const {
911  const Json::Value& v = Storage("type");
912  if (v == Json::Value::null) return StringPiece("");
913  return StringPiece(v.asCString());
914  }
915 
923  void set_type(const StringPiece& value) {
924  *MutableStorage("type") = value.data();
925  }
926 
927  private:
928  void operator=(const AboutMaxUploadSizes&);
929  }; // AboutMaxUploadSizes
935  class AboutQuotaBytesByService : public client::JsonCppData {
936  public:
942  static AboutQuotaBytesByService* New();
943 
949  explicit AboutQuotaBytesByService(const Json::Value& storage);
950 
956  explicit AboutQuotaBytesByService(Json::Value* storage);
957 
961  virtual ~AboutQuotaBytesByService();
962 
968  const StringPiece GetTypeName() const {
969  return StringPiece("google_drive_api::AboutQuotaBytesByService");
970  }
971 
977  bool has_bytes_used() const {
978  return Storage().isMember("bytesUsed");
979  }
980 
985  MutableStorage()->removeMember("bytesUsed");
986  }
987 
988 
992  int64 get_bytes_used() const {
993  const Json::Value& storage = Storage("bytesUsed");
994  return client::JsonValueToCppValueHelper<int64 >(storage);
995  }
996 
1004  void set_bytes_used(int64 value) {
1005  client::SetJsonValueFromCppValueHelper<int64 >(
1006  value, MutableStorage("bytesUsed"));
1007  }
1008 
1014  bool has_service_name() const {
1015  return Storage().isMember("serviceName");
1016  }
1017 
1022  MutableStorage()->removeMember("serviceName");
1023  }
1024 
1025 
1029  const StringPiece get_service_name() const {
1030  const Json::Value& v = Storage("serviceName");
1031  if (v == Json::Value::null) return StringPiece("");
1032  return StringPiece(v.asCString());
1033  }
1034 
1042  void set_service_name(const StringPiece& value) {
1043  *MutableStorage("serviceName") = value.data();
1044  }
1045 
1046  private:
1047  void operator=(const AboutQuotaBytesByService&);
1048  }; // AboutQuotaBytesByService
1054  class AboutTeamDriveThemes : public client::JsonCppData {
1055  public:
1061  static AboutTeamDriveThemes* New();
1062 
1068  explicit AboutTeamDriveThemes(const Json::Value& storage);
1069 
1075  explicit AboutTeamDriveThemes(Json::Value* storage);
1076 
1080  virtual ~AboutTeamDriveThemes();
1081 
1087  const StringPiece GetTypeName() const {
1088  return StringPiece("google_drive_api::AboutTeamDriveThemes");
1089  }
1090 
1097  return Storage().isMember("backgroundImageLink");
1098  }
1099 
1104  MutableStorage()->removeMember("backgroundImageLink");
1105  }
1106 
1107 
1111  const StringPiece get_background_image_link() const {
1112  const Json::Value& v = Storage("backgroundImageLink");
1113  if (v == Json::Value::null) return StringPiece("");
1114  return StringPiece(v.asCString());
1115  }
1116 
1126  void set_background_image_link(const StringPiece& value) {
1127  *MutableStorage("backgroundImageLink") = value.data();
1128  }
1129 
1135  bool has_color_rgb() const {
1136  return Storage().isMember("colorRgb");
1137  }
1138 
1143  MutableStorage()->removeMember("colorRgb");
1144  }
1145 
1146 
1150  const StringPiece get_color_rgb() const {
1151  const Json::Value& v = Storage("colorRgb");
1152  if (v == Json::Value::null) return StringPiece("");
1153  return StringPiece(v.asCString());
1154  }
1155 
1165  void set_color_rgb(const StringPiece& value) {
1166  *MutableStorage("colorRgb") = value.data();
1167  }
1168 
1174  bool has_id() const {
1175  return Storage().isMember("id");
1176  }
1177 
1181  void clear_id() {
1182  MutableStorage()->removeMember("id");
1183  }
1184 
1185 
1189  const StringPiece get_id() const {
1190  const Json::Value& v = Storage("id");
1191  if (v == Json::Value::null) return StringPiece("");
1192  return StringPiece(v.asCString());
1193  }
1194 
1204  void set_id(const StringPiece& value) {
1205  *MutableStorage("id") = value.data();
1206  }
1207 
1208  private:
1209  void operator=(const AboutTeamDriveThemes&);
1210  }; // AboutTeamDriveThemes
1216  static About* New();
1217 
1223  explicit About(const Json::Value& storage);
1224 
1230  explicit About(Json::Value* storage);
1231 
1235  virtual ~About();
1236 
1242  const StringPiece GetTypeName() const {
1243  return StringPiece("google_drive_api::About");
1244  }
1245 
1252  return Storage().isMember("additionalRoleInfo");
1253  }
1254 
1259  MutableStorage()->removeMember("additionalRoleInfo");
1260  }
1261 
1262 
1267  const client::JsonCppArray<AboutAdditionalRoleInfo > get_additional_role_info() const {
1268  const Json::Value& storage = Storage("additionalRoleInfo");
1269  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutAdditionalRoleInfo > >(storage);
1270  }
1271 
1281  client::JsonCppArray<AboutAdditionalRoleInfo > mutable_additionalRoleInfo() {
1282  Json::Value* storage = MutableStorage("additionalRoleInfo");
1283  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutAdditionalRoleInfo > >(storage);
1284  }
1285 
1291  bool has_can_create_drives() const {
1292  return Storage().isMember("canCreateDrives");
1293  }
1294 
1299  MutableStorage()->removeMember("canCreateDrives");
1300  }
1301 
1302 
1306  bool get_can_create_drives() const {
1307  const Json::Value& storage = Storage("canCreateDrives");
1308  return client::JsonValueToCppValueHelper<bool >(storage);
1309  }
1310 
1318  void set_can_create_drives(bool value) {
1319  client::SetJsonValueFromCppValueHelper<bool >(
1320  value, MutableStorage("canCreateDrives"));
1321  }
1322 
1329  return Storage().isMember("canCreateTeamDrives");
1330  }
1331 
1336  MutableStorage()->removeMember("canCreateTeamDrives");
1337  }
1338 
1339 
1344  const Json::Value& storage = Storage("canCreateTeamDrives");
1345  return client::JsonValueToCppValueHelper<bool >(storage);
1346  }
1347 
1357  void set_can_create_team_drives(bool value) {
1358  client::SetJsonValueFromCppValueHelper<bool >(
1359  value, MutableStorage("canCreateTeamDrives"));
1360  }
1361 
1368  return Storage().isMember("domainSharingPolicy");
1369  }
1370 
1375  MutableStorage()->removeMember("domainSharingPolicy");
1376  }
1377 
1378 
1382  const StringPiece get_domain_sharing_policy() const {
1383  const Json::Value& v = Storage("domainSharingPolicy");
1384  if (v == Json::Value::null) return StringPiece("");
1385  return StringPiece(v.asCString());
1386  }
1387 
1399  void set_domain_sharing_policy(const StringPiece& value) {
1400  *MutableStorage("domainSharingPolicy") = value.data();
1401  }
1402 
1408  bool has_drive_themes() const {
1409  return Storage().isMember("driveThemes");
1410  }
1411 
1416  MutableStorage()->removeMember("driveThemes");
1417  }
1418 
1419 
1423  const client::JsonCppArray<AboutDriveThemes > get_drive_themes() const {
1424  const Json::Value& storage = Storage("driveThemes");
1425  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutDriveThemes > >(storage);
1426  }
1427 
1436  client::JsonCppArray<AboutDriveThemes > mutable_driveThemes() {
1437  Json::Value* storage = MutableStorage("driveThemes");
1438  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutDriveThemes > >(storage);
1439  }
1440 
1446  bool has_etag() const {
1447  return Storage().isMember("etag");
1448  }
1449 
1453  void clear_etag() {
1454  MutableStorage()->removeMember("etag");
1455  }
1456 
1457 
1461  const StringPiece get_etag() const {
1462  const Json::Value& v = Storage("etag");
1463  if (v == Json::Value::null) return StringPiece("");
1464  return StringPiece(v.asCString());
1465  }
1466 
1474  void set_etag(const StringPiece& value) {
1475  *MutableStorage("etag") = value.data();
1476  }
1477 
1483  bool has_export_formats() const {
1484  return Storage().isMember("exportFormats");
1485  }
1486 
1491  MutableStorage()->removeMember("exportFormats");
1492  }
1493 
1494 
1498  const client::JsonCppArray<AboutExportFormats > get_export_formats() const {
1499  const Json::Value& storage = Storage("exportFormats");
1500  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutExportFormats > >(storage);
1501  }
1502 
1511  client::JsonCppArray<AboutExportFormats > mutable_exportFormats() {
1512  Json::Value* storage = MutableStorage("exportFormats");
1513  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutExportFormats > >(storage);
1514  }
1515 
1521  bool has_features() const {
1522  return Storage().isMember("features");
1523  }
1524 
1529  MutableStorage()->removeMember("features");
1530  }
1531 
1532 
1536  const client::JsonCppArray<AboutFeatures > get_features() const {
1537  const Json::Value& storage = Storage("features");
1538  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutFeatures > >(storage);
1539  }
1540 
1549  client::JsonCppArray<AboutFeatures > mutable_features() {
1550  Json::Value* storage = MutableStorage("features");
1551  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutFeatures > >(storage);
1552  }
1553 
1560  return Storage().isMember("folderColorPalette");
1561  }
1562 
1567  MutableStorage()->removeMember("folderColorPalette");
1568  }
1569 
1570 
1575  const client::JsonCppArray<string > get_folder_color_palette() const {
1576  const Json::Value& storage = Storage("folderColorPalette");
1577  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
1578  }
1579 
1588  client::JsonCppArray<string > mutable_folderColorPalette() {
1589  Json::Value* storage = MutableStorage("folderColorPalette");
1590  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
1591  }
1592 
1598  bool has_import_formats() const {
1599  return Storage().isMember("importFormats");
1600  }
1601 
1606  MutableStorage()->removeMember("importFormats");
1607  }
1608 
1609 
1613  const client::JsonCppArray<AboutImportFormats > get_import_formats() const {
1614  const Json::Value& storage = Storage("importFormats");
1615  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutImportFormats > >(storage);
1616  }
1617 
1626  client::JsonCppArray<AboutImportFormats > mutable_importFormats() {
1627  Json::Value* storage = MutableStorage("importFormats");
1628  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutImportFormats > >(storage);
1629  }
1630 
1637  return Storage().isMember("isCurrentAppInstalled");
1638  }
1639 
1644  MutableStorage()->removeMember("isCurrentAppInstalled");
1645  }
1646 
1647 
1652  const Json::Value& storage = Storage("isCurrentAppInstalled");
1653  return client::JsonValueToCppValueHelper<bool >(storage);
1654  }
1655 
1664  void set_is_current_app_installed(bool value) {
1665  client::SetJsonValueFromCppValueHelper<bool >(
1666  value, MutableStorage("isCurrentAppInstalled"));
1667  }
1668 
1674  bool has_kind() const {
1675  return Storage().isMember("kind");
1676  }
1677 
1681  void clear_kind() {
1682  MutableStorage()->removeMember("kind");
1683  }
1684 
1685 
1689  const StringPiece get_kind() const {
1690  const Json::Value& v = Storage("kind");
1691  if (v == Json::Value::null) return StringPiece("");
1692  return StringPiece(v.asCString());
1693  }
1694 
1702  void set_kind(const StringPiece& value) {
1703  *MutableStorage("kind") = value.data();
1704  }
1705 
1711  bool has_language_code() const {
1712  return Storage().isMember("languageCode");
1713  }
1714 
1719  MutableStorage()->removeMember("languageCode");
1720  }
1721 
1722 
1726  const StringPiece get_language_code() const {
1727  const Json::Value& v = Storage("languageCode");
1728  if (v == Json::Value::null) return StringPiece("");
1729  return StringPiece(v.asCString());
1730  }
1731 
1741  void set_language_code(const StringPiece& value) {
1742  *MutableStorage("languageCode") = value.data();
1743  }
1744 
1750  bool has_largest_change_id() const {
1751  return Storage().isMember("largestChangeId");
1752  }
1753 
1758  MutableStorage()->removeMember("largestChangeId");
1759  }
1760 
1761 
1765  int64 get_largest_change_id() const {
1766  const Json::Value& storage = Storage("largestChangeId");
1767  return client::JsonValueToCppValueHelper<int64 >(storage);
1768  }
1769 
1777  void set_largest_change_id(int64 value) {
1778  client::SetJsonValueFromCppValueHelper<int64 >(
1779  value, MutableStorage("largestChangeId"));
1780  }
1781 
1787  bool has_max_upload_sizes() const {
1788  return Storage().isMember("maxUploadSizes");
1789  }
1790 
1795  MutableStorage()->removeMember("maxUploadSizes");
1796  }
1797 
1798 
1803  const client::JsonCppArray<AboutMaxUploadSizes > get_max_upload_sizes() const {
1804  const Json::Value& storage = Storage("maxUploadSizes");
1805  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutMaxUploadSizes > >(storage);
1806  }
1807 
1817  client::JsonCppArray<AboutMaxUploadSizes > mutable_maxUploadSizes() {
1818  Json::Value* storage = MutableStorage("maxUploadSizes");
1819  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutMaxUploadSizes > >(storage);
1820  }
1821 
1827  bool has_name() const {
1828  return Storage().isMember("name");
1829  }
1830 
1834  void clear_name() {
1835  MutableStorage()->removeMember("name");
1836  }
1837 
1838 
1842  const StringPiece get_name() const {
1843  const Json::Value& v = Storage("name");
1844  if (v == Json::Value::null) return StringPiece("");
1845  return StringPiece(v.asCString());
1846  }
1847 
1855  void set_name(const StringPiece& value) {
1856  *MutableStorage("name") = value.data();
1857  }
1858 
1864  bool has_permission_id() const {
1865  return Storage().isMember("permissionId");
1866  }
1867 
1872  MutableStorage()->removeMember("permissionId");
1873  }
1874 
1875 
1879  const StringPiece get_permission_id() const {
1880  const Json::Value& v = Storage("permissionId");
1881  if (v == Json::Value::null) return StringPiece("");
1882  return StringPiece(v.asCString());
1883  }
1884 
1892  void set_permission_id(const StringPiece& value) {
1893  *MutableStorage("permissionId") = value.data();
1894  }
1895 
1902  return Storage().isMember("quotaBytesByService");
1903  }
1904 
1909  MutableStorage()->removeMember("quotaBytesByService");
1910  }
1911 
1912 
1917  const client::JsonCppArray<AboutQuotaBytesByService > get_quota_bytes_by_service() const {
1918  const Json::Value& storage = Storage("quotaBytesByService");
1919  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutQuotaBytesByService > >(storage);
1920  }
1921 
1930  client::JsonCppArray<AboutQuotaBytesByService > mutable_quotaBytesByService() {
1931  Json::Value* storage = MutableStorage("quotaBytesByService");
1932  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutQuotaBytesByService > >(storage);
1933  }
1934 
1940  bool has_quota_bytes_total() const {
1941  return Storage().isMember("quotaBytesTotal");
1942  }
1943 
1948  MutableStorage()->removeMember("quotaBytesTotal");
1949  }
1950 
1951 
1955  int64 get_quota_bytes_total() const {
1956  const Json::Value& storage = Storage("quotaBytesTotal");
1957  return client::JsonValueToCppValueHelper<int64 >(storage);
1958  }
1959 
1968  void set_quota_bytes_total(int64 value) {
1969  client::SetJsonValueFromCppValueHelper<int64 >(
1970  value, MutableStorage("quotaBytesTotal"));
1971  }
1972 
1978  bool has_quota_bytes_used() const {
1979  return Storage().isMember("quotaBytesUsed");
1980  }
1981 
1986  MutableStorage()->removeMember("quotaBytesUsed");
1987  }
1988 
1989 
1993  int64 get_quota_bytes_used() const {
1994  const Json::Value& storage = Storage("quotaBytesUsed");
1995  return client::JsonValueToCppValueHelper<int64 >(storage);
1996  }
1997 
2005  void set_quota_bytes_used(int64 value) {
2006  client::SetJsonValueFromCppValueHelper<int64 >(
2007  value, MutableStorage("quotaBytesUsed"));
2008  }
2009 
2017  return Storage().isMember("quotaBytesUsedAggregate");
2018  }
2019 
2024  MutableStorage()->removeMember("quotaBytesUsedAggregate");
2025  }
2026 
2027 
2032  const Json::Value& storage = Storage("quotaBytesUsedAggregate");
2033  return client::JsonValueToCppValueHelper<int64 >(storage);
2034  }
2035 
2044  client::SetJsonValueFromCppValueHelper<int64 >(
2045  value, MutableStorage("quotaBytesUsedAggregate"));
2046  }
2047 
2054  return Storage().isMember("quotaBytesUsedInTrash");
2055  }
2056 
2061  MutableStorage()->removeMember("quotaBytesUsedInTrash");
2062  }
2063 
2064 
2069  const Json::Value& storage = Storage("quotaBytesUsedInTrash");
2070  return client::JsonValueToCppValueHelper<int64 >(storage);
2071  }
2072 
2080  void set_quota_bytes_used_in_trash(int64 value) {
2081  client::SetJsonValueFromCppValueHelper<int64 >(
2082  value, MutableStorage("quotaBytesUsedInTrash"));
2083  }
2084 
2090  bool has_quota_type() const {
2091  return Storage().isMember("quotaType");
2092  }
2093 
2098  MutableStorage()->removeMember("quotaType");
2099  }
2100 
2101 
2105  const StringPiece get_quota_type() const {
2106  const Json::Value& v = Storage("quotaType");
2107  if (v == Json::Value::null) return StringPiece("");
2108  return StringPiece(v.asCString());
2109  }
2110 
2120  void set_quota_type(const StringPiece& value) {
2121  *MutableStorage("quotaType") = value.data();
2122  }
2123 
2130  return Storage().isMember("remainingChangeIds");
2131  }
2132 
2137  MutableStorage()->removeMember("remainingChangeIds");
2138  }
2139 
2140 
2145  const Json::Value& storage = Storage("remainingChangeIds");
2146  return client::JsonValueToCppValueHelper<int64 >(storage);
2147  }
2148 
2156  void set_remaining_change_ids(int64 value) {
2157  client::SetJsonValueFromCppValueHelper<int64 >(
2158  value, MutableStorage("remainingChangeIds"));
2159  }
2160 
2166  bool has_root_folder_id() const {
2167  return Storage().isMember("rootFolderId");
2168  }
2169 
2174  MutableStorage()->removeMember("rootFolderId");
2175  }
2176 
2177 
2181  const StringPiece get_root_folder_id() const {
2182  const Json::Value& v = Storage("rootFolderId");
2183  if (v == Json::Value::null) return StringPiece("");
2184  return StringPiece(v.asCString());
2185  }
2186 
2194  void set_root_folder_id(const StringPiece& value) {
2195  *MutableStorage("rootFolderId") = value.data();
2196  }
2197 
2203  bool has_self_link() const {
2204  return Storage().isMember("selfLink");
2205  }
2206 
2211  MutableStorage()->removeMember("selfLink");
2212  }
2213 
2214 
2218  const StringPiece get_self_link() const {
2219  const Json::Value& v = Storage("selfLink");
2220  if (v == Json::Value::null) return StringPiece("");
2221  return StringPiece(v.asCString());
2222  }
2223 
2231  void set_self_link(const StringPiece& value) {
2232  *MutableStorage("selfLink") = value.data();
2233  }
2234 
2240  bool has_team_drive_themes() const {
2241  return Storage().isMember("teamDriveThemes");
2242  }
2243 
2248  MutableStorage()->removeMember("teamDriveThemes");
2249  }
2250 
2251 
2256  const client::JsonCppArray<AboutTeamDriveThemes > get_team_drive_themes() const {
2257  const Json::Value& storage = Storage("teamDriveThemes");
2258  return client::JsonValueToCppValueHelper<client::JsonCppArray<AboutTeamDriveThemes > >(storage);
2259  }
2260 
2271  client::JsonCppArray<AboutTeamDriveThemes > mutable_teamDriveThemes() {
2272  Json::Value* storage = MutableStorage("teamDriveThemes");
2273  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AboutTeamDriveThemes > >(storage);
2274  }
2275 
2281  bool has_user() const {
2282  return Storage().isMember("user");
2283  }
2284 
2288  void clear_user() {
2289  MutableStorage()->removeMember("user");
2290  }
2291 
2292 
2296  const User get_user() const;
2297 
2305  User mutable_user();
2306 
2307  private:
2308  void operator=(const About&);
2309 }; // About
2310 } // namespace google_drive_api
2311 #endif // GOOGLE_DRIVE_API_ABOUT_H_
bool has_quota_bytes_used() const
Definition: about.h:1978
bool has_can_create_team_drives() const
Definition: about.h:1328
bool has_quota_type() const
Definition: about.h:2090
int64 get_remaining_change_ids() const
Definition: about.h:2144
const StringPiece GetTypeName() const
Definition: about.h:729
bool has_etag() const
Definition: about.h:1446
bool has_id() const
Definition: about.h:1174
void set_is_current_app_installed(bool value)
Definition: about.h:1664
void set_root_folder_id(const StringPiece &value)
Definition: about.h:2194
bool has_kind() const
Definition: about.h:1674
const StringPiece get_self_link() const
Definition: about.h:2218
void set_id(const StringPiece &value)
Definition: about.h:1204
void set_feature_name(const StringPiece &value)
Definition: about.h:647
void clear_bytes_used()
Definition: about.h:984
void clear_id()
Definition: about.h:424
void set_can_create_team_drives(bool value)
Definition: about.h:1357
const StringPiece GetTypeName() const
Definition: about.h:849
const StringPiece get_id() const
Definition: about.h:1189
const StringPiece get_background_image_link() const
Definition: about.h:1111
bool has_import_formats() const
Definition: about.h:1598
const StringPiece get_type() const
Definition: about.h:276
void set_remaining_change_ids(int64 value)
Definition: about.h:2156
void clear_name()
Definition: about.h:1834
bool has_bytes_used() const
Definition: about.h:977
const client::JsonCppArray< string > get_targets() const
Definition: about.h:551
client::JsonCppArray< string > mutable_folderColorPalette()
Definition: about.h:1588
void set_self_link(const StringPiece &value)
Definition: about.h:2231
const StringPiece get_domain_sharing_policy() const
Definition: about.h:1382
int64 get_largest_change_id() const
Definition: about.h:1765
const client::JsonCppArray< AboutAdditionalRoleInfoRoleSets > get_role_sets() const
Definition: about.h:238
void clear_color_rgb()
Definition: about.h:1142
client::JsonCppArray< AboutAdditionalRoleInfoRoleSets > mutable_roleSets()
Definition: about.h:251
void clear_service_name()
Definition: about.h:1021
void set_quota_type(const StringPiece &value)
Definition: about.h:2120
const StringPiece GetTypeName() const
Definition: about.h:610
bool has_can_create_drives() const
Definition: about.h:1291
void clear_feature_rate()
Definition: about.h:663
void clear_quota_bytes_used()
Definition: about.h:1985
bool has_root_folder_id() const
Definition: about.h:2166
void clear_type()
Definition: about.h:268
client::JsonCppArray< string > mutable_targets()
Definition: about.h:803
bool has_feature_rate() const
Definition: about.h:656
bool get_is_current_app_installed() const
Definition: about.h:1651
bool has_color_rgb() const
Definition: about.h:380
void clear_id()
Definition: about.h:1181
void clear_can_create_drives()
Definition: about.h:1298
bool has_quota_bytes_by_service() const
Definition: about.h:1901
const StringPiece get_source() const
Definition: about.h:514
void set_etag(const StringPiece &value)
Definition: about.h:1474
void clear_root_folder_id()
Definition: about.h:2173
void clear_largest_change_id()
Definition: about.h:1757
client::JsonCppArray< AboutMaxUploadSizes > mutable_maxUploadSizes()
Definition: about.h:1817
Definition: user.h:50
int64 get_bytes_used() const
Definition: about.h:992
void set_can_create_drives(bool value)
Definition: about.h:1318
void set_source(const StringPiece &value)
Definition: about.h:527
const client::JsonCppArray< AboutFeatures > get_features() const
Definition: about.h:1536
bool has_self_link() const
Definition: about.h:2203
void set_color_rgb(const StringPiece &value)
Definition: about.h:408
void set_kind(const StringPiece &value)
Definition: about.h:1702
const StringPiece get_type() const
Definition: about.h:910
const client::JsonCppArray< AboutImportFormats > get_import_formats() const
Definition: about.h:1613
const StringPiece get_source() const
Definition: about.h:753
void set_type(const StringPiece &value)
Definition: about.h:289
void set_quota_bytes_used_in_trash(int64 value)
Definition: about.h:2080
void clear_max_upload_sizes()
Definition: about.h:1794
bool get_can_create_team_drives() const
Definition: about.h:1343
bool has_background_image_link() const
Definition: about.h:343
bool has_max_upload_sizes() const
Definition: about.h:1787
void set_background_image_link(const StringPiece &value)
Definition: about.h:371
const StringPiece get_permission_id() const
Definition: about.h:1879
void clear_targets()
Definition: about.h:782
void set_quota_bytes_used_aggregate(int64 value)
Definition: about.h:2043
bool get_can_create_drives() const
Definition: about.h:1306
const client::JsonCppArray< AboutQuotaBytesByService > get_quota_bytes_by_service() const
Definition: about.h:1917
void set_quota_bytes_total(int64 value)
Definition: about.h:1968
const StringPiece get_color_rgb() const
Definition: about.h:1150
void clear_background_image_link()
Definition: about.h:1103
void clear_export_formats()
Definition: about.h:1490
void clear_quota_bytes_used_in_trash()
Definition: about.h:2060
void set_background_image_link(const StringPiece &value)
Definition: about.h:1126
const client::JsonCppArray< AboutDriveThemes > get_drive_themes() const
Definition: about.h:1423
bool has_source() const
Definition: about.h:738
void set_name(const StringPiece &value)
Definition: about.h:1855
const StringPiece get_etag() const
Definition: about.h:1461
const StringPiece get_language_code() const
Definition: about.h:1726
const client::JsonCppArray< string > get_additional_roles() const
Definition: about.h:125
const StringPiece get_quota_type() const
Definition: about.h:2105
bool has_background_image_link() const
Definition: about.h:1096
bool has_drive_themes() const
Definition: about.h:1408
int64 get_quota_bytes_total() const
Definition: about.h:1955
Definition: about.h:53
bool has_export_formats() const
Definition: about.h:1483
bool has_language_code() const
Definition: about.h:1711
const client::JsonCppArray< AboutMaxUploadSizes > get_max_upload_sizes() const
Definition: about.h:1803
const client::JsonCppArray< string > get_targets() const
Definition: about.h:790
bool has_quota_bytes_used_aggregate() const
Definition: about.h:2016
bool has_is_current_app_installed() const
Definition: about.h:1636
const StringPiece get_name() const
Definition: about.h:1842
void clear_team_drive_themes()
Definition: about.h:2247
void clear_permission_id()
Definition: about.h:1871
void clear_size()
Definition: about.h:865
bool has_additional_role_info() const
Definition: about.h:1251
Definition: about.h:41
int64 get_quota_bytes_used_aggregate() const
Definition: about.h:2031
bool has_features() const
Definition: about.h:1521
bool has_permission_id() const
Definition: about.h:1864
void clear_folder_color_palette()
Definition: about.h:1566
bool has_domain_sharing_policy() const
Definition: about.h:1367
void clear_quota_type()
Definition: about.h:2097
void set_id(const StringPiece &value)
Definition: about.h:445
void clear_type()
Definition: about.h:902
void clear_etag()
Definition: about.h:1453
void clear_quota_bytes_by_service()
Definition: about.h:1908
bool has_service_name() const
Definition: about.h:1014
void set_service_name(const StringPiece &value)
Definition: about.h:1042
void clear_remaining_change_ids()
Definition: about.h:2136
void set_primary_role(const StringPiece &value)
Definition: about.h:176
const StringPiece get_background_image_link() const
Definition: about.h:358
bool has_quota_bytes_used_in_trash() const
Definition: about.h:2053
void set_bytes_used(int64 value)
Definition: about.h:1004
void set_source(const StringPiece &value)
Definition: about.h:766
const StringPiece get_service_name() const
Definition: about.h:1029
client::JsonCppArray< AboutImportFormats > mutable_importFormats()
Definition: about.h:1626
void clear_drive_themes()
Definition: about.h:1415
void clear_user()
Definition: about.h:2288
void clear_targets()
Definition: about.h:543
client::JsonCppArray< AboutDriveThemes > mutable_driveThemes()
Definition: about.h:1436
void clear_kind()
Definition: about.h:1681
const StringPiece GetTypeName() const
Definition: about.h:214
const StringPiece GetTypeName() const
Definition: about.h:1087
void clear_quota_bytes_total()
Definition: about.h:1947
const StringPiece GetTypeName() const
Definition: about.h:1242
void clear_role_sets()
Definition: about.h:230
void clear_additional_role_info()
Definition: about.h:1258
void clear_source()
Definition: about.h:745
const client::JsonCppArray< string > get_folder_color_palette() const
Definition: about.h:1575
void clear_background_image_link()
Definition: about.h:350
client::JsonCppArray< string > mutable_additionalRoles()
Definition: about.h:138
bool has_name() const
Definition: about.h:1827
void clear_self_link()
Definition: about.h:2210
int64 get_quota_bytes_used_in_trash() const
Definition: about.h:2068
const StringPiece get_feature_name() const
Definition: about.h:634
void clear_is_current_app_installed()
Definition: about.h:1643
void clear_can_create_team_drives()
Definition: about.h:1335
bool has_source() const
Definition: about.h:499
int64 get_size() const
Definition: about.h:873
bool has_color_rgb() const
Definition: about.h:1135
void clear_features()
Definition: about.h:1528
double get_feature_rate() const
Definition: about.h:671
bool has_user() const
Definition: about.h:2281
void clear_quota_bytes_used_aggregate()
Definition: about.h:2023
client::JsonCppArray< AboutTeamDriveThemes > mutable_teamDriveThemes()
Definition: about.h:2271
bool has_role_sets() const
Definition: about.h:223
bool has_targets() const
Definition: about.h:775
void clear_feature_name()
Definition: about.h:626
client::JsonCppArray< AboutQuotaBytesByService > mutable_quotaBytesByService()
Definition: about.h:1930
client::JsonCppArray< AboutAdditionalRoleInfo > mutable_additionalRoleInfo()
Definition: about.h:1281
bool has_feature_name() const
Definition: about.h:619
client::JsonCppArray< AboutExportFormats > mutable_exportFormats()
Definition: about.h:1511
client::JsonCppArray< AboutFeatures > mutable_features()
Definition: about.h:1549
const StringPiece get_id() const
Definition: about.h:432
bool has_team_drive_themes() const
Definition: about.h:2240
const StringPiece get_kind() const
Definition: about.h:1689
void set_color_rgb(const StringPiece &value)
Definition: about.h:1165
bool has_type() const
Definition: about.h:261
void set_type(const StringPiece &value)
Definition: about.h:923
void set_largest_change_id(int64 value)
Definition: about.h:1777
bool has_id() const
Definition: about.h:417
void clear_domain_sharing_policy()
Definition: about.h:1374
void set_quota_bytes_used(int64 value)
Definition: about.h:2005
void set_domain_sharing_policy(const StringPiece &value)
Definition: about.h:1399
bool has_targets() const
Definition: about.h:536
void set_language_code(const StringPiece &value)
Definition: about.h:1741
client::JsonCppArray< string > mutable_targets()
Definition: about.h:564
void set_size(int64 value)
Definition: about.h:885
void clear_color_rgb()
Definition: about.h:387
bool has_size() const
Definition: about.h:858
void clear_source()
Definition: about.h:506
const StringPiece get_color_rgb() const
Definition: about.h:395
const StringPiece GetTypeName() const
Definition: about.h:968
bool has_type() const
Definition: about.h:895
const StringPiece GetTypeName() const
Definition: about.h:490
void clear_import_formats()
Definition: about.h:1605
bool has_largest_change_id() const
Definition: about.h:1750
void set_feature_rate(double value)
Definition: about.h:683
bool has_folder_color_palette() const
Definition: about.h:1559
Definition: about.cc:43
void clear_language_code()
Definition: about.h:1718
void set_permission_id(const StringPiece &value)
Definition: about.h:1892
const StringPiece get_root_folder_id() const
Definition: about.h:2181
const client::JsonCppArray< AboutTeamDriveThemes > get_team_drive_themes() const
Definition: about.h:2256
const client::JsonCppArray< AboutExportFormats > get_export_formats() const
Definition: about.h:1498
bool has_quota_bytes_total() const
Definition: about.h:1940
bool has_remaining_change_ids() const
Definition: about.h:2129
const StringPiece GetTypeName() const
Definition: about.h:334
const client::JsonCppArray< AboutAdditionalRoleInfo > get_additional_role_info() const
Definition: about.h:1267
int64 get_quota_bytes_used() const
Definition: about.h:1993