30 #ifndef GOOGLE_DRIVE_API_FILE_H_ 31 #define GOOGLE_DRIVE_API_FILE_H_ 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" 40 #include "google/drive_api/parent_reference.h" 41 #include "google/drive_api/permission.h" 42 #include "google/drive_api/property.h" 43 #include "google/drive_api/user.h" 57 class File :
public client::JsonCppData {
99 return StringPiece(
"google_drive_api::FileCapabilities");
108 return Storage().isMember(
"canAddChildren");
115 MutableStorage()->removeMember(
"canAddChildren");
123 const Json::Value& storage = Storage(
"canAddChildren");
124 return client::JsonValueToCppValueHelper<bool >(storage);
136 client::SetJsonValueFromCppValueHelper<bool >(
137 value, MutableStorage(
"canAddChildren"));
146 return Storage().isMember(
"canAddMyDriveParent");
153 MutableStorage()->removeMember(
"canAddMyDriveParent");
161 const Json::Value& storage = Storage(
"canAddMyDriveParent");
162 return client::JsonValueToCppValueHelper<bool >(storage);
175 client::SetJsonValueFromCppValueHelper<bool >(
176 value, MutableStorage(
"canAddMyDriveParent"));
187 return Storage().isMember(
"canChangeCopyRequiresWriterPermission");
195 MutableStorage()->removeMember(
"canChangeCopyRequiresWriterPermission");
204 const Json::Value& storage = Storage(
"canChangeCopyRequiresWriterPermission");
205 return client::JsonValueToCppValueHelper<bool >(storage);
218 client::SetJsonValueFromCppValueHelper<bool >(
219 value, MutableStorage(
"canChangeCopyRequiresWriterPermission"));
230 return Storage().isMember(
"canChangeRestrictedDownload");
237 MutableStorage()->removeMember(
"canChangeRestrictedDownload");
246 const Json::Value& storage = Storage(
"canChangeRestrictedDownload");
247 return client::JsonValueToCppValueHelper<bool >(storage);
260 client::SetJsonValueFromCppValueHelper<bool >(
261 value, MutableStorage(
"canChangeRestrictedDownload"));
270 return Storage().isMember(
"canComment");
277 MutableStorage()->removeMember(
"canComment");
285 const Json::Value& storage = Storage(
"canComment");
286 return client::JsonValueToCppValueHelper<bool >(storage);
297 client::SetJsonValueFromCppValueHelper<bool >(
298 value, MutableStorage(
"canComment"));
307 return Storage().isMember(
"canCopy");
314 MutableStorage()->removeMember(
"canCopy");
322 const Json::Value& storage = Storage(
"canCopy");
323 return client::JsonValueToCppValueHelper<bool >(storage);
336 client::SetJsonValueFromCppValueHelper<bool >(
337 value, MutableStorage(
"canCopy"));
346 return Storage().isMember(
"canDelete");
353 MutableStorage()->removeMember(
"canDelete");
361 const Json::Value& storage = Storage(
"canDelete");
362 return client::JsonValueToCppValueHelper<bool >(storage);
373 client::SetJsonValueFromCppValueHelper<bool >(
374 value, MutableStorage(
"canDelete"));
383 return Storage().isMember(
"canDeleteChildren");
390 MutableStorage()->removeMember(
"canDeleteChildren");
398 const Json::Value& storage = Storage(
"canDeleteChildren");
399 return client::JsonValueToCppValueHelper<bool >(storage);
412 client::SetJsonValueFromCppValueHelper<bool >(
413 value, MutableStorage(
"canDeleteChildren"));
422 return Storage().isMember(
"canDownload");
429 MutableStorage()->removeMember(
"canDownload");
437 const Json::Value& storage = Storage(
"canDownload");
438 return client::JsonValueToCppValueHelper<bool >(storage);
449 client::SetJsonValueFromCppValueHelper<bool >(
450 value, MutableStorage(
"canDownload"));
459 return Storage().isMember(
"canEdit");
466 MutableStorage()->removeMember(
"canEdit");
474 const Json::Value& storage = Storage(
"canEdit");
475 return client::JsonValueToCppValueHelper<bool >(storage);
488 client::SetJsonValueFromCppValueHelper<bool >(
489 value, MutableStorage(
"canEdit"));
498 return Storage().isMember(
"canListChildren");
505 MutableStorage()->removeMember(
"canListChildren");
513 const Json::Value& storage = Storage(
"canListChildren");
514 return client::JsonValueToCppValueHelper<bool >(storage);
526 client::SetJsonValueFromCppValueHelper<bool >(
527 value, MutableStorage(
"canListChildren"));
536 return Storage().isMember(
"canModifyContent");
543 MutableStorage()->removeMember(
"canModifyContent");
551 const Json::Value& storage = Storage(
"canModifyContent");
552 return client::JsonValueToCppValueHelper<bool >(storage);
563 client::SetJsonValueFromCppValueHelper<bool >(
564 value, MutableStorage(
"canModifyContent"));
575 return Storage().isMember(
"canMoveChildrenOutOfDrive");
582 MutableStorage()->removeMember(
"canMoveChildrenOutOfDrive");
590 const Json::Value& storage = Storage(
"canMoveChildrenOutOfDrive");
591 return client::JsonValueToCppValueHelper<bool >(storage);
604 client::SetJsonValueFromCppValueHelper<bool >(
605 value, MutableStorage(
"canMoveChildrenOutOfDrive"));
616 return Storage().isMember(
"canMoveChildrenOutOfTeamDrive");
623 MutableStorage()->removeMember(
"canMoveChildrenOutOfTeamDrive");
632 const Json::Value& storage = Storage(
"canMoveChildrenOutOfTeamDrive");
633 return client::JsonValueToCppValueHelper<bool >(storage);
646 client::SetJsonValueFromCppValueHelper<bool >(
647 value, MutableStorage(
"canMoveChildrenOutOfTeamDrive"));
658 return Storage().isMember(
"canMoveChildrenWithinDrive");
665 MutableStorage()->removeMember(
"canMoveChildrenWithinDrive");
673 const Json::Value& storage = Storage(
"canMoveChildrenWithinDrive");
674 return client::JsonValueToCppValueHelper<bool >(storage);
687 client::SetJsonValueFromCppValueHelper<bool >(
688 value, MutableStorage(
"canMoveChildrenWithinDrive"));
699 return Storage().isMember(
"canMoveChildrenWithinTeamDrive");
706 MutableStorage()->removeMember(
"canMoveChildrenWithinTeamDrive");
715 const Json::Value& storage = Storage(
"canMoveChildrenWithinTeamDrive");
716 return client::JsonValueToCppValueHelper<bool >(storage);
729 client::SetJsonValueFromCppValueHelper<bool >(
730 value, MutableStorage(
"canMoveChildrenWithinTeamDrive"));
741 return Storage().isMember(
"canMoveItemIntoTeamDrive");
748 MutableStorage()->removeMember(
"canMoveItemIntoTeamDrive");
756 const Json::Value& storage = Storage(
"canMoveItemIntoTeamDrive");
757 return client::JsonValueToCppValueHelper<bool >(storage);
770 client::SetJsonValueFromCppValueHelper<bool >(
771 value, MutableStorage(
"canMoveItemIntoTeamDrive"));
781 return Storage().isMember(
"canMoveItemOutOfDrive");
788 MutableStorage()->removeMember(
"canMoveItemOutOfDrive");
796 const Json::Value& storage = Storage(
"canMoveItemOutOfDrive");
797 return client::JsonValueToCppValueHelper<bool >(storage);
810 client::SetJsonValueFromCppValueHelper<bool >(
811 value, MutableStorage(
"canMoveItemOutOfDrive"));
822 return Storage().isMember(
"canMoveItemOutOfTeamDrive");
829 MutableStorage()->removeMember(
"canMoveItemOutOfTeamDrive");
837 const Json::Value& storage = Storage(
"canMoveItemOutOfTeamDrive");
838 return client::JsonValueToCppValueHelper<bool >(storage);
851 client::SetJsonValueFromCppValueHelper<bool >(
852 value, MutableStorage(
"canMoveItemOutOfTeamDrive"));
862 return Storage().isMember(
"canMoveItemWithinDrive");
869 MutableStorage()->removeMember(
"canMoveItemWithinDrive");
877 const Json::Value& storage = Storage(
"canMoveItemWithinDrive");
878 return client::JsonValueToCppValueHelper<bool >(storage);
892 client::SetJsonValueFromCppValueHelper<bool >(
893 value, MutableStorage(
"canMoveItemWithinDrive"));
904 return Storage().isMember(
"canMoveItemWithinTeamDrive");
911 MutableStorage()->removeMember(
"canMoveItemWithinTeamDrive");
919 const Json::Value& storage = Storage(
"canMoveItemWithinTeamDrive");
920 return client::JsonValueToCppValueHelper<bool >(storage);
933 client::SetJsonValueFromCppValueHelper<bool >(
934 value, MutableStorage(
"canMoveItemWithinTeamDrive"));
944 return Storage().isMember(
"canMoveTeamDriveItem");
951 MutableStorage()->removeMember(
"canMoveTeamDriveItem");
959 const Json::Value& storage = Storage(
"canMoveTeamDriveItem");
960 return client::JsonValueToCppValueHelper<bool >(storage);
973 client::SetJsonValueFromCppValueHelper<bool >(
974 value, MutableStorage(
"canMoveTeamDriveItem"));
983 return Storage().isMember(
"canReadDrive");
990 MutableStorage()->removeMember(
"canReadDrive");
998 const Json::Value& storage = Storage(
"canReadDrive");
999 return client::JsonValueToCppValueHelper<bool >(storage);
1011 client::SetJsonValueFromCppValueHelper<bool >(
1012 value, MutableStorage(
"canReadDrive"));
1021 return Storage().isMember(
"canReadRevisions");
1028 MutableStorage()->removeMember(
"canReadRevisions");
1036 const Json::Value& storage = Storage(
"canReadRevisions");
1037 return client::JsonValueToCppValueHelper<bool >(storage);
1050 client::SetJsonValueFromCppValueHelper<bool >(
1051 value, MutableStorage(
"canReadRevisions"));
1060 return Storage().isMember(
"canReadTeamDrive");
1067 MutableStorage()->removeMember(
"canReadTeamDrive");
1075 const Json::Value& storage = Storage(
"canReadTeamDrive");
1076 return client::JsonValueToCppValueHelper<bool >(storage);
1089 client::SetJsonValueFromCppValueHelper<bool >(
1090 value, MutableStorage(
"canReadTeamDrive"));
1099 return Storage().isMember(
"canRemoveChildren");
1106 MutableStorage()->removeMember(
"canRemoveChildren");
1114 const Json::Value& storage = Storage(
"canRemoveChildren");
1115 return client::JsonValueToCppValueHelper<bool >(storage);
1128 client::SetJsonValueFromCppValueHelper<bool >(
1129 value, MutableStorage(
"canRemoveChildren"));
1139 return Storage().isMember(
"canRemoveMyDriveParent");
1146 MutableStorage()->removeMember(
"canRemoveMyDriveParent");
1154 const Json::Value& storage = Storage(
"canRemoveMyDriveParent");
1155 return client::JsonValueToCppValueHelper<bool >(storage);
1167 client::SetJsonValueFromCppValueHelper<bool >(
1168 value, MutableStorage(
"canRemoveMyDriveParent"));
1177 return Storage().isMember(
"canRename");
1184 MutableStorage()->removeMember(
"canRename");
1192 const Json::Value& storage = Storage(
"canRename");
1193 return client::JsonValueToCppValueHelper<bool >(storage);
1204 client::SetJsonValueFromCppValueHelper<bool >(
1205 value, MutableStorage(
"canRename"));
1214 return Storage().isMember(
"canShare");
1221 MutableStorage()->removeMember(
"canShare");
1229 const Json::Value& storage = Storage(
"canShare");
1230 return client::JsonValueToCppValueHelper<bool >(storage);
1241 client::SetJsonValueFromCppValueHelper<bool >(
1242 value, MutableStorage(
"canShare"));
1251 return Storage().isMember(
"canTrash");
1258 MutableStorage()->removeMember(
"canTrash");
1266 const Json::Value& storage = Storage(
"canTrash");
1267 return client::JsonValueToCppValueHelper<bool >(storage);
1278 client::SetJsonValueFromCppValueHelper<bool >(
1279 value, MutableStorage(
"canTrash"));
1288 return Storage().isMember(
"canTrashChildren");
1295 MutableStorage()->removeMember(
"canTrashChildren");
1303 const Json::Value& storage = Storage(
"canTrashChildren");
1304 return client::JsonValueToCppValueHelper<bool >(storage);
1316 client::SetJsonValueFromCppValueHelper<bool >(
1317 value, MutableStorage(
"canTrashChildren"));
1326 return Storage().isMember(
"canUntrash");
1333 MutableStorage()->removeMember(
"canUntrash");
1341 const Json::Value& storage = Storage(
"canUntrash");
1342 return client::JsonValueToCppValueHelper<bool >(storage);
1353 client::SetJsonValueFromCppValueHelper<bool >(
1354 value, MutableStorage(
"canUntrash"));
1407 return StringPiece(
"google_drive_api::FileImageMediaMetadataLocation");
1416 return Storage().isMember(
"altitude");
1423 MutableStorage()->removeMember(
"altitude");
1431 const Json::Value& storage = Storage(
"altitude");
1432 return client::JsonValueToCppValueHelper<double >(storage);
1443 client::SetJsonValueFromCppValueHelper<double >(
1444 value, MutableStorage(
"altitude"));
1453 return Storage().isMember(
"latitude");
1460 MutableStorage()->removeMember(
"latitude");
1468 const Json::Value& storage = Storage(
"latitude");
1469 return client::JsonValueToCppValueHelper<double >(storage);
1480 client::SetJsonValueFromCppValueHelper<double >(
1481 value, MutableStorage(
"latitude"));
1490 return Storage().isMember(
"longitude");
1497 MutableStorage()->removeMember(
"longitude");
1505 const Json::Value& storage = Storage(
"longitude");
1506 return client::JsonValueToCppValueHelper<double >(storage);
1517 client::SetJsonValueFromCppValueHelper<double >(
1518 value, MutableStorage(
"longitude"));
1556 return StringPiece(
"google_drive_api::FileImageMediaMetadata");
1565 return Storage().isMember(
"aperture");
1572 MutableStorage()->removeMember(
"aperture");
1580 const Json::Value& storage = Storage(
"aperture");
1581 return client::JsonValueToCppValueHelper<float >(storage);
1592 client::SetJsonValueFromCppValueHelper<float >(
1593 value, MutableStorage(
"aperture"));
1602 return Storage().isMember(
"cameraMake");
1609 MutableStorage()->removeMember(
"cameraMake");
1617 const Json::Value& v = Storage(
"cameraMake");
1618 if (v == Json::Value::null)
return StringPiece(
"");
1619 return StringPiece(v.asCString());
1630 *MutableStorage(
"cameraMake") = value.data();
1639 return Storage().isMember(
"cameraModel");
1646 MutableStorage()->removeMember(
"cameraModel");
1654 const Json::Value& v = Storage(
"cameraModel");
1655 if (v == Json::Value::null)
return StringPiece(
"");
1656 return StringPiece(v.asCString());
1667 *MutableStorage(
"cameraModel") = value.data();
1676 return Storage().isMember(
"colorSpace");
1683 MutableStorage()->removeMember(
"colorSpace");
1691 const Json::Value& v = Storage(
"colorSpace");
1692 if (v == Json::Value::null)
return StringPiece(
"");
1693 return StringPiece(v.asCString());
1704 *MutableStorage(
"colorSpace") = value.data();
1713 return Storage().isMember(
"date");
1720 MutableStorage()->removeMember(
"date");
1728 const Json::Value& v = Storage(
"date");
1729 if (v == Json::Value::null)
return StringPiece(
"");
1730 return StringPiece(v.asCString());
1741 *MutableStorage(
"date") = value.data();
1750 return Storage().isMember(
"exposureBias");
1757 MutableStorage()->removeMember(
"exposureBias");
1765 const Json::Value& storage = Storage(
"exposureBias");
1766 return client::JsonValueToCppValueHelper<float >(storage);
1777 client::SetJsonValueFromCppValueHelper<float >(
1778 value, MutableStorage(
"exposureBias"));
1787 return Storage().isMember(
"exposureMode");
1794 MutableStorage()->removeMember(
"exposureMode");
1802 const Json::Value& v = Storage(
"exposureMode");
1803 if (v == Json::Value::null)
return StringPiece(
"");
1804 return StringPiece(v.asCString());
1815 *MutableStorage(
"exposureMode") = value.data();
1824 return Storage().isMember(
"exposureTime");
1831 MutableStorage()->removeMember(
"exposureTime");
1839 const Json::Value& storage = Storage(
"exposureTime");
1840 return client::JsonValueToCppValueHelper<float >(storage);
1851 client::SetJsonValueFromCppValueHelper<float >(
1852 value, MutableStorage(
"exposureTime"));
1861 return Storage().isMember(
"flashUsed");
1868 MutableStorage()->removeMember(
"flashUsed");
1876 const Json::Value& storage = Storage(
"flashUsed");
1877 return client::JsonValueToCppValueHelper<bool >(storage);
1888 client::SetJsonValueFromCppValueHelper<bool >(
1889 value, MutableStorage(
"flashUsed"));
1898 return Storage().isMember(
"focalLength");
1905 MutableStorage()->removeMember(
"focalLength");
1913 const Json::Value& storage = Storage(
"focalLength");
1914 return client::JsonValueToCppValueHelper<float >(storage);
1925 client::SetJsonValueFromCppValueHelper<float >(
1926 value, MutableStorage(
"focalLength"));
1935 return Storage().isMember(
"height");
1942 MutableStorage()->removeMember(
"height");
1950 const Json::Value& storage = Storage(
"height");
1951 return client::JsonValueToCppValueHelper<int32 >(storage);
1962 client::SetJsonValueFromCppValueHelper<int32 >(
1963 value, MutableStorage(
"height"));
1972 return Storage().isMember(
"isoSpeed");
1979 MutableStorage()->removeMember(
"isoSpeed");
1987 const Json::Value& storage = Storage(
"isoSpeed");
1988 return client::JsonValueToCppValueHelper<int32 >(storage);
1999 client::SetJsonValueFromCppValueHelper<int32 >(
2000 value, MutableStorage(
"isoSpeed"));
2009 return Storage().isMember(
"lens");
2016 MutableStorage()->removeMember(
"lens");
2024 const Json::Value& v = Storage(
"lens");
2025 if (v == Json::Value::null)
return StringPiece(
"");
2026 return StringPiece(v.asCString());
2037 *MutableStorage(
"lens") = value.data();
2046 return Storage().isMember(
"location");
2053 MutableStorage()->removeMember(
"location");
2061 const Json::Value& storage = Storage(
"location");
2062 return client::JsonValueToCppValueHelper<FileImageMediaMetadataLocation >(storage);
2074 Json::Value* storage = MutableStorage(
"location");
2075 return client::JsonValueToMutableCppValueHelper<FileImageMediaMetadataLocation >(storage);
2084 return Storage().isMember(
"maxApertureValue");
2091 MutableStorage()->removeMember(
"maxApertureValue");
2099 const Json::Value& storage = Storage(
"maxApertureValue");
2100 return client::JsonValueToCppValueHelper<float >(storage);
2112 client::SetJsonValueFromCppValueHelper<float >(
2113 value, MutableStorage(
"maxApertureValue"));
2122 return Storage().isMember(
"meteringMode");
2129 MutableStorage()->removeMember(
"meteringMode");
2137 const Json::Value& v = Storage(
"meteringMode");
2138 if (v == Json::Value::null)
return StringPiece(
"");
2139 return StringPiece(v.asCString());
2150 *MutableStorage(
"meteringMode") = value.data();
2159 return Storage().isMember(
"rotation");
2166 MutableStorage()->removeMember(
"rotation");
2174 const Json::Value& storage = Storage(
"rotation");
2175 return client::JsonValueToCppValueHelper<int32 >(storage);
2186 client::SetJsonValueFromCppValueHelper<int32 >(
2187 value, MutableStorage(
"rotation"));
2196 return Storage().isMember(
"sensor");
2203 MutableStorage()->removeMember(
"sensor");
2211 const Json::Value& v = Storage(
"sensor");
2212 if (v == Json::Value::null)
return StringPiece(
"");
2213 return StringPiece(v.asCString());
2224 *MutableStorage(
"sensor") = value.data();
2233 return Storage().isMember(
"subjectDistance");
2240 MutableStorage()->removeMember(
"subjectDistance");
2248 const Json::Value& storage = Storage(
"subjectDistance");
2249 return client::JsonValueToCppValueHelper<int32 >(storage);
2260 client::SetJsonValueFromCppValueHelper<int32 >(
2261 value, MutableStorage(
"subjectDistance"));
2270 return Storage().isMember(
"whiteBalance");
2277 MutableStorage()->removeMember(
"whiteBalance");
2285 const Json::Value& v = Storage(
"whiteBalance");
2286 if (v == Json::Value::null)
return StringPiece(
"");
2287 return StringPiece(v.asCString());
2298 *MutableStorage(
"whiteBalance") = value.data();
2307 return Storage().isMember(
"width");
2314 MutableStorage()->removeMember(
"width");
2322 const Json::Value& storage = Storage(
"width");
2323 return client::JsonValueToCppValueHelper<int32 >(storage);
2334 client::SetJsonValueFromCppValueHelper<int32 >(
2335 value, MutableStorage(
"width"));
2380 return StringPiece(
"google_drive_api::FileIndexableText");
2389 return Storage().isMember(
"text");
2396 MutableStorage()->removeMember(
"text");
2404 const Json::Value& v = Storage(
"text");
2405 if (v == Json::Value::null)
return StringPiece(
"");
2406 return StringPiece(v.asCString());
2417 *MutableStorage(
"text") = value.data();
2442 explicit FileLabels(
const Json::Value& storage);
2462 return StringPiece(
"google_drive_api::FileLabels");
2471 return Storage().isMember(
"hidden");
2478 MutableStorage()->removeMember(
"hidden");
2486 const Json::Value& storage = Storage(
"hidden");
2487 return client::JsonValueToCppValueHelper<bool >(storage);
2500 client::SetJsonValueFromCppValueHelper<bool >(
2501 value, MutableStorage(
"hidden"));
2510 return Storage().isMember(
"modified");
2517 MutableStorage()->removeMember(
"modified");
2525 const Json::Value& storage = Storage(
"modified");
2526 return client::JsonValueToCppValueHelper<bool >(storage);
2537 client::SetJsonValueFromCppValueHelper<bool >(
2538 value, MutableStorage(
"modified"));
2547 return Storage().isMember(
"restricted");
2554 MutableStorage()->removeMember(
"restricted");
2562 const Json::Value& storage = Storage(
"restricted");
2563 return client::JsonValueToCppValueHelper<bool >(storage);
2576 client::SetJsonValueFromCppValueHelper<bool >(
2577 value, MutableStorage(
"restricted"));
2586 return Storage().isMember(
"starred");
2593 MutableStorage()->removeMember(
"starred");
2601 const Json::Value& storage = Storage(
"starred");
2602 return client::JsonValueToCppValueHelper<bool >(storage);
2613 client::SetJsonValueFromCppValueHelper<bool >(
2614 value, MutableStorage(
"starred"));
2623 return Storage().isMember(
"trashed");
2630 MutableStorage()->removeMember(
"trashed");
2638 const Json::Value& storage = Storage(
"trashed");
2639 return client::JsonValueToCppValueHelper<bool >(storage);
2652 client::SetJsonValueFromCppValueHelper<bool >(
2653 value, MutableStorage(
"trashed"));
2662 return Storage().isMember(
"viewed");
2669 MutableStorage()->removeMember(
"viewed");
2677 const Json::Value& storage = Storage(
"viewed");
2678 return client::JsonValueToCppValueHelper<bool >(storage);
2689 client::SetJsonValueFromCppValueHelper<bool >(
2690 value, MutableStorage(
"viewed"));
2736 return StringPiece(
"google_drive_api::FileShortcutDetails");
2745 return Storage().isMember(
"targetId");
2752 MutableStorage()->removeMember(
"targetId");
2760 const Json::Value& v = Storage(
"targetId");
2761 if (v == Json::Value::null)
return StringPiece(
"");
2762 return StringPiece(v.asCString());
2773 *MutableStorage(
"targetId") = value.data();
2782 return Storage().isMember(
"targetMimeType");
2789 MutableStorage()->removeMember(
"targetMimeType");
2797 const Json::Value& v = Storage(
"targetMimeType");
2798 if (v == Json::Value::null)
return StringPiece(
"");
2799 return StringPiece(v.asCString());
2812 *MutableStorage(
"targetMimeType") = value.data();
2858 return StringPiece(
"google_drive_api::FileThumbnail");
2867 return Storage().isMember(
"image");
2874 MutableStorage()->removeMember(
"image");
2882 const Json::Value& v = Storage(
"image");
2883 if (v == Json::Value::null)
return StringPiece(
"");
2884 return StringPiece(v.asCString());
2896 *MutableStorage(
"image") = value.data();
2905 return Storage().isMember(
"mimeType");
2912 MutableStorage()->removeMember(
"mimeType");
2920 const Json::Value& v = Storage(
"mimeType");
2921 if (v == Json::Value::null)
return StringPiece(
"");
2922 return StringPiece(v.asCString());
2933 *MutableStorage(
"mimeType") = value.data();
2978 return StringPiece(
"google_drive_api::FileVideoMediaMetadata");
2987 return Storage().isMember(
"durationMillis");
2994 MutableStorage()->removeMember(
"durationMillis");
3002 const Json::Value& storage = Storage(
"durationMillis");
3003 return client::JsonValueToCppValueHelper<int64 >(storage);
3014 client::SetJsonValueFromCppValueHelper<int64 >(
3015 value, MutableStorage(
"durationMillis"));
3024 return Storage().isMember(
"height");
3031 MutableStorage()->removeMember(
"height");
3039 const Json::Value& storage = Storage(
"height");
3040 return client::JsonValueToCppValueHelper<int32 >(storage);
3051 client::SetJsonValueFromCppValueHelper<int32 >(
3052 value, MutableStorage(
"height"));
3061 return Storage().isMember(
"width");
3068 MutableStorage()->removeMember(
"width");
3076 const Json::Value& storage = Storage(
"width");
3077 return client::JsonValueToCppValueHelper<int32 >(storage);
3088 client::SetJsonValueFromCppValueHelper<int32 >(
3089 value, MutableStorage(
"width"));
3107 explicit File(
const Json::Value& storage);
3114 explicit File(Json::Value* storage);
3127 return StringPiece(
"google_drive_api::File");
3136 return Storage().isMember(
"alternateLink");
3143 MutableStorage()->removeMember(
"alternateLink");
3151 const Json::Value& v = Storage(
"alternateLink");
3152 if (v == Json::Value::null)
return StringPiece(
"");
3153 return StringPiece(v.asCString());
3164 *MutableStorage(
"alternateLink") = value.data();
3173 return Storage().isMember(
"appDataContents");
3180 MutableStorage()->removeMember(
"appDataContents");
3188 const Json::Value& storage = Storage(
"appDataContents");
3189 return client::JsonValueToCppValueHelper<bool >(storage);
3200 client::SetJsonValueFromCppValueHelper<bool >(
3201 value, MutableStorage(
"appDataContents"));
3210 return Storage().isMember(
"canComment");
3217 MutableStorage()->removeMember(
"canComment");
3225 const Json::Value& storage = Storage(
"canComment");
3226 return client::JsonValueToCppValueHelper<bool >(storage);
3239 client::SetJsonValueFromCppValueHelper<bool >(
3240 value, MutableStorage(
"canComment"));
3249 return Storage().isMember(
"canReadRevisions");
3256 MutableStorage()->removeMember(
"canReadRevisions");
3264 const Json::Value& storage = Storage(
"canReadRevisions");
3265 return client::JsonValueToCppValueHelper<bool >(storage);
3278 client::SetJsonValueFromCppValueHelper<bool >(
3279 value, MutableStorage(
"canReadRevisions"));
3288 return Storage().isMember(
"capabilities");
3295 MutableStorage()->removeMember(
"capabilities");
3303 const Json::Value& storage = Storage(
"capabilities");
3304 return client::JsonValueToCppValueHelper<FileCapabilities >(storage);
3317 Json::Value* storage = MutableStorage(
"capabilities");
3318 return client::JsonValueToMutableCppValueHelper<FileCapabilities >(storage);
3329 return Storage().isMember(
"copyRequiresWriterPermission");
3336 MutableStorage()->removeMember(
"copyRequiresWriterPermission");
3344 const Json::Value& storage = Storage(
"copyRequiresWriterPermission");
3345 return client::JsonValueToCppValueHelper<bool >(storage);
3357 client::SetJsonValueFromCppValueHelper<bool >(
3358 value, MutableStorage(
"copyRequiresWriterPermission"));
3367 return Storage().isMember(
"copyable");
3374 MutableStorage()->removeMember(
"copyable");
3382 const Json::Value& storage = Storage(
"copyable");
3383 return client::JsonValueToCppValueHelper<bool >(storage);
3396 client::SetJsonValueFromCppValueHelper<bool >(
3397 value, MutableStorage(
"copyable"));
3406 return Storage().isMember(
"createdDate");
3413 MutableStorage()->removeMember(
"createdDate");
3421 const Json::Value& storage = Storage(
"createdDate");
3422 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
3433 client::SetJsonValueFromCppValueHelper<client::DateTime >(
3434 value, MutableStorage(
"createdDate"));
3443 return Storage().isMember(
"defaultOpenWithLink");
3450 MutableStorage()->removeMember(
"defaultOpenWithLink");
3458 const Json::Value& v = Storage(
"defaultOpenWithLink");
3459 if (v == Json::Value::null)
return StringPiece(
"");
3460 return StringPiece(v.asCString());
3472 *MutableStorage(
"defaultOpenWithLink") = value.data();
3481 return Storage().isMember(
"description");
3488 MutableStorage()->removeMember(
"description");
3496 const Json::Value& v = Storage(
"description");
3497 if (v == Json::Value::null)
return StringPiece(
"");
3498 return StringPiece(v.asCString());
3509 *MutableStorage(
"description") = value.data();
3518 return Storage().isMember(
"downloadUrl");
3525 MutableStorage()->removeMember(
"downloadUrl");
3533 const Json::Value& v = Storage(
"downloadUrl");
3534 if (v == Json::Value::null)
return StringPiece(
"");
3535 return StringPiece(v.asCString());
3548 *MutableStorage(
"downloadUrl") = value.data();
3557 return Storage().isMember(
"driveId");
3564 MutableStorage()->removeMember(
"driveId");
3572 const Json::Value& v = Storage(
"driveId");
3573 if (v == Json::Value::null)
return StringPiece(
"");
3574 return StringPiece(v.asCString());
3586 *MutableStorage(
"driveId") = value.data();
3595 return Storage().isMember(
"editable");
3602 MutableStorage()->removeMember(
"editable");
3610 const Json::Value& storage = Storage(
"editable");
3611 return client::JsonValueToCppValueHelper<bool >(storage);
3624 client::SetJsonValueFromCppValueHelper<bool >(
3625 value, MutableStorage(
"editable"));
3634 return Storage().isMember(
"embedLink");
3641 MutableStorage()->removeMember(
"embedLink");
3649 const Json::Value& v = Storage(
"embedLink");
3650 if (v == Json::Value::null)
return StringPiece(
"");
3651 return StringPiece(v.asCString());
3662 *MutableStorage(
"embedLink") = value.data();
3671 return Storage().isMember(
"etag");
3678 MutableStorage()->removeMember(
"etag");
3686 const Json::Value& v = Storage(
"etag");
3687 if (v == Json::Value::null)
return StringPiece(
"");
3688 return StringPiece(v.asCString());
3699 *MutableStorage(
"etag") = value.data();
3708 return Storage().isMember(
"explicitlyTrashed");
3715 MutableStorage()->removeMember(
"explicitlyTrashed");
3723 const Json::Value& storage = Storage(
"explicitlyTrashed");
3724 return client::JsonValueToCppValueHelper<bool >(storage);
3736 client::SetJsonValueFromCppValueHelper<bool >(
3737 value, MutableStorage(
"explicitlyTrashed"));
3746 return Storage().isMember(
"exportLinks");
3753 MutableStorage()->removeMember(
"exportLinks");
3761 const Json::Value& storage = Storage(
"exportLinks");
3762 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
3774 Json::Value* storage = MutableStorage(
"exportLinks");
3775 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
3784 return Storage().isMember(
"fileExtension");
3791 MutableStorage()->removeMember(
"fileExtension");
3799 const Json::Value& v = Storage(
"fileExtension");
3800 if (v == Json::Value::null)
return StringPiece(
"");
3801 return StringPiece(v.asCString());
3815 *MutableStorage(
"fileExtension") = value.data();
3824 return Storage().isMember(
"fileSize");
3831 MutableStorage()->removeMember(
"fileSize");
3839 const Json::Value& storage = Storage(
"fileSize");
3840 return client::JsonValueToCppValueHelper<int64 >(storage);
3853 client::SetJsonValueFromCppValueHelper<int64 >(
3854 value, MutableStorage(
"fileSize"));
3863 return Storage().isMember(
"folderColorRgb");
3870 MutableStorage()->removeMember(
"folderColorRgb");
3878 const Json::Value& v = Storage(
"folderColorRgb");
3879 if (v == Json::Value::null)
return StringPiece(
"");
3880 return StringPiece(v.asCString());
3894 *MutableStorage(
"folderColorRgb") = value.data();
3903 return Storage().isMember(
"fullFileExtension");
3910 MutableStorage()->removeMember(
"fullFileExtension");
3918 const Json::Value& v = Storage(
"fullFileExtension");
3919 if (v == Json::Value::null)
return StringPiece(
"");
3920 return StringPiece(v.asCString());
3936 *MutableStorage(
"fullFileExtension") = value.data();
3946 return Storage().isMember(
"hasAugmentedPermissions");
3953 MutableStorage()->removeMember(
"hasAugmentedPermissions");
3961 const Json::Value& storage = Storage(
"hasAugmentedPermissions");
3962 return client::JsonValueToCppValueHelper<bool >(storage);
3974 client::SetJsonValueFromCppValueHelper<bool >(
3975 value, MutableStorage(
"hasAugmentedPermissions"));
3984 return Storage().isMember(
"hasThumbnail");
3991 MutableStorage()->removeMember(
"hasThumbnail");
3999 const Json::Value& storage = Storage(
"hasThumbnail");
4000 return client::JsonValueToCppValueHelper<bool >(storage);
4013 client::SetJsonValueFromCppValueHelper<bool >(
4014 value, MutableStorage(
"hasThumbnail"));
4023 return Storage().isMember(
"headRevisionId");
4030 MutableStorage()->removeMember(
"headRevisionId");
4038 const Json::Value& v = Storage(
"headRevisionId");
4039 if (v == Json::Value::null)
return StringPiece(
"");
4040 return StringPiece(v.asCString());
4053 *MutableStorage(
"headRevisionId") = value.data();
4062 return Storage().isMember(
"iconLink");
4069 MutableStorage()->removeMember(
"iconLink");
4077 const Json::Value& v = Storage(
"iconLink");
4078 if (v == Json::Value::null)
return StringPiece(
"");
4079 return StringPiece(v.asCString());
4090 *MutableStorage(
"iconLink") = value.data();
4099 return Storage().isMember(
"id");
4106 MutableStorage()->removeMember(
"id");
4114 const Json::Value& v = Storage(
"id");
4115 if (v == Json::Value::null)
return StringPiece(
"");
4116 return StringPiece(v.asCString());
4127 *MutableStorage(
"id") = value.data();
4136 return Storage().isMember(
"imageMediaMetadata");
4143 MutableStorage()->removeMember(
"imageMediaMetadata");
4152 const Json::Value& storage = Storage(
"imageMediaMetadata");
4153 return client::JsonValueToCppValueHelper<FileImageMediaMetadata >(storage);
4166 Json::Value* storage = MutableStorage(
"imageMediaMetadata");
4167 return client::JsonValueToMutableCppValueHelper<FileImageMediaMetadata >(storage);
4176 return Storage().isMember(
"indexableText");
4183 MutableStorage()->removeMember(
"indexableText");
4191 const Json::Value& storage = Storage(
"indexableText");
4192 return client::JsonValueToCppValueHelper<FileIndexableText >(storage);
4204 Json::Value* storage = MutableStorage(
"indexableText");
4205 return client::JsonValueToMutableCppValueHelper<FileIndexableText >(storage);
4214 return Storage().isMember(
"isAppAuthorized");
4221 MutableStorage()->removeMember(
"isAppAuthorized");
4229 const Json::Value& storage = Storage(
"isAppAuthorized");
4230 return client::JsonValueToCppValueHelper<bool >(storage);
4241 client::SetJsonValueFromCppValueHelper<bool >(
4242 value, MutableStorage(
"isAppAuthorized"));
4251 return Storage().isMember(
"kind");
4258 MutableStorage()->removeMember(
"kind");
4266 const Json::Value& v = Storage(
"kind");
4267 if (v == Json::Value::null)
return StringPiece(
"");
4268 return StringPiece(v.asCString());
4279 *MutableStorage(
"kind") = value.data();
4288 return Storage().isMember(
"labels");
4295 MutableStorage()->removeMember(
"labels");
4303 const Json::Value& storage = Storage(
"labels");
4304 return client::JsonValueToCppValueHelper<FileLabels >(storage);
4315 Json::Value* storage = MutableStorage(
"labels");
4316 return client::JsonValueToMutableCppValueHelper<FileLabels >(storage);
4325 return Storage().isMember(
"lastModifyingUser");
4332 MutableStorage()->removeMember(
"lastModifyingUser");
4340 const User get_last_modifying_user()
const;
4350 User mutable_lastModifyingUser();
4358 return Storage().isMember(
"lastModifyingUserName");
4365 MutableStorage()->removeMember(
"lastModifyingUserName");
4373 const Json::Value& v = Storage(
"lastModifyingUserName");
4374 if (v == Json::Value::null)
return StringPiece(
"");
4375 return StringPiece(v.asCString());
4386 *MutableStorage(
"lastModifyingUserName") = value.data();
4395 return Storage().isMember(
"lastViewedByMeDate");
4402 MutableStorage()->removeMember(
"lastViewedByMeDate");
4410 const Json::Value& storage = Storage(
"lastViewedByMeDate");
4411 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
4422 client::SetJsonValueFromCppValueHelper<client::DateTime >(
4423 value, MutableStorage(
"lastViewedByMeDate"));
4432 return Storage().isMember(
"markedViewedByMeDate");
4439 MutableStorage()->removeMember(
"markedViewedByMeDate");
4447 const Json::Value& storage = Storage(
"markedViewedByMeDate");
4448 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
4461 client::SetJsonValueFromCppValueHelper<client::DateTime >(
4462 value, MutableStorage(
"markedViewedByMeDate"));
4471 return Storage().isMember(
"md5Checksum");
4478 MutableStorage()->removeMember(
"md5Checksum");
4486 const Json::Value& v = Storage(
"md5Checksum");
4487 if (v == Json::Value::null)
return StringPiece(
"");
4488 return StringPiece(v.asCString());
4501 *MutableStorage(
"md5Checksum") = value.data();
4510 return Storage().isMember(
"mimeType");
4517 MutableStorage()->removeMember(
"mimeType");
4525 const Json::Value& v = Storage(
"mimeType");
4526 if (v == Json::Value::null)
return StringPiece(
"");
4527 return StringPiece(v.asCString());
4540 *MutableStorage(
"mimeType") = value.data();
4549 return Storage().isMember(
"modifiedByMeDate");
4556 MutableStorage()->removeMember(
"modifiedByMeDate");
4564 const Json::Value& storage = Storage(
"modifiedByMeDate");
4565 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
4578 client::SetJsonValueFromCppValueHelper<client::DateTime >(
4579 value, MutableStorage(
"modifiedByMeDate"));
4588 return Storage().isMember(
"modifiedDate");
4595 MutableStorage()->removeMember(
"modifiedDate");
4603 const Json::Value& storage = Storage(
"modifiedDate");
4604 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
4616 client::SetJsonValueFromCppValueHelper<client::DateTime >(
4617 value, MutableStorage(
"modifiedDate"));
4626 return Storage().isMember(
"openWithLinks");
4633 MutableStorage()->removeMember(
"openWithLinks");
4641 const Json::Value& storage = Storage(
"openWithLinks");
4642 return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
4655 Json::Value* storage = MutableStorage(
"openWithLinks");
4656 return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
4665 return Storage().isMember(
"originalFilename");
4672 MutableStorage()->removeMember(
"originalFilename");
4680 const Json::Value& v = Storage(
"originalFilename");
4681 if (v == Json::Value::null)
return StringPiece(
"");
4682 return StringPiece(v.asCString());
4695 *MutableStorage(
"originalFilename") = value.data();
4704 return Storage().isMember(
"ownedByMe");
4711 MutableStorage()->removeMember(
"ownedByMe");
4719 const Json::Value& storage = Storage(
"ownedByMe");
4720 return client::JsonValueToCppValueHelper<bool >(storage);
4732 client::SetJsonValueFromCppValueHelper<bool >(
4733 value, MutableStorage(
"ownedByMe"));
4742 return Storage().isMember(
"ownerNames");
4749 MutableStorage()->removeMember(
"ownerNames");
4757 const Json::Value& storage = Storage(
"ownerNames");
4758 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
4771 Json::Value* storage = MutableStorage(
"ownerNames");
4772 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
4781 return Storage().isMember(
"owners");
4788 MutableStorage()->removeMember(
"owners");
4795 const client::JsonCppArray<User > get_owners()
const;
4804 client::JsonCppArray<User > mutable_owners();
4812 return Storage().isMember(
"parents");
4819 MutableStorage()->removeMember(
"parents");
4826 const client::JsonCppArray<ParentReference > get_parents()
const;
4840 client::JsonCppArray<ParentReference > mutable_parents();
4848 return Storage().isMember(
"permissionIds");
4855 MutableStorage()->removeMember(
"permissionIds");
4863 const Json::Value& storage = Storage(
"permissionIds");
4864 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
4876 Json::Value* storage = MutableStorage(
"permissionIds");
4877 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
4886 return Storage().isMember(
"permissions");
4893 MutableStorage()->removeMember(
"permissions");
4900 const client::JsonCppArray<Permission > get_permissions()
const;
4911 client::JsonCppArray<Permission > mutable_permissions();
4919 return Storage().isMember(
"properties");
4926 MutableStorage()->removeMember(
"properties");
4933 const client::JsonCppArray<Property > get_properties()
const;
4943 client::JsonCppArray<Property > mutable_properties();
4951 return Storage().isMember(
"quotaBytesUsed");
4958 MutableStorage()->removeMember(
"quotaBytesUsed");
4966 const Json::Value& storage = Storage(
"quotaBytesUsed");
4967 return client::JsonValueToCppValueHelper<int64 >(storage);
4978 client::SetJsonValueFromCppValueHelper<int64 >(
4979 value, MutableStorage(
"quotaBytesUsed"));
4988 return Storage().isMember(
"selfLink");
4995 MutableStorage()->removeMember(
"selfLink");
5003 const Json::Value& v = Storage(
"selfLink");
5004 if (v == Json::Value::null)
return StringPiece(
"");
5005 return StringPiece(v.asCString());
5016 *MutableStorage(
"selfLink") = value.data();
5025 return Storage().isMember(
"shareable");
5032 MutableStorage()->removeMember(
"shareable");
5040 const Json::Value& storage = Storage(
"shareable");
5041 return client::JsonValueToCppValueHelper<bool >(storage);
5054 client::SetJsonValueFromCppValueHelper<bool >(
5055 value, MutableStorage(
"shareable"));
5064 return Storage().isMember(
"shared");
5071 MutableStorage()->removeMember(
"shared");
5079 const Json::Value& storage = Storage(
"shared");
5080 return client::JsonValueToCppValueHelper<bool >(storage);
5091 client::SetJsonValueFromCppValueHelper<bool >(
5092 value, MutableStorage(
"shared"));
5101 return Storage().isMember(
"sharedWithMeDate");
5108 MutableStorage()->removeMember(
"sharedWithMeDate");
5116 const Json::Value& storage = Storage(
"sharedWithMeDate");
5117 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
5129 client::SetJsonValueFromCppValueHelper<client::DateTime >(
5130 value, MutableStorage(
"sharedWithMeDate"));
5139 return Storage().isMember(
"sharingUser");
5146 MutableStorage()->removeMember(
"sharingUser");
5153 const User get_sharing_user()
const;
5163 User mutable_sharingUser();
5171 return Storage().isMember(
"shortcutDetails");
5178 MutableStorage()->removeMember(
"shortcutDetails");
5187 const Json::Value& storage = Storage(
"shortcutDetails");
5188 return client::JsonValueToCppValueHelper<FileShortcutDetails >(storage);
5201 Json::Value* storage = MutableStorage(
"shortcutDetails");
5202 return client::JsonValueToMutableCppValueHelper<FileShortcutDetails >(storage);
5211 return Storage().isMember(
"spaces");
5218 MutableStorage()->removeMember(
"spaces");
5226 const Json::Value& storage = Storage(
"spaces");
5227 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
5239 Json::Value* storage = MutableStorage(
"spaces");
5240 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
5249 return Storage().isMember(
"teamDriveId");
5256 MutableStorage()->removeMember(
"teamDriveId");
5264 const Json::Value& v = Storage(
"teamDriveId");
5265 if (v == Json::Value::null)
return StringPiece(
"");
5266 return StringPiece(v.asCString());
5279 *MutableStorage(
"teamDriveId") = value.data();
5288 return Storage().isMember(
"thumbnail");
5295 MutableStorage()->removeMember(
"thumbnail");
5303 const Json::Value& storage = Storage(
"thumbnail");
5304 return client::JsonValueToCppValueHelper<FileThumbnail >(storage);
5317 Json::Value* storage = MutableStorage(
"thumbnail");
5318 return client::JsonValueToMutableCppValueHelper<FileThumbnail >(storage);
5327 return Storage().isMember(
"thumbnailLink");
5334 MutableStorage()->removeMember(
"thumbnailLink");
5342 const Json::Value& v = Storage(
"thumbnailLink");
5343 if (v == Json::Value::null)
return StringPiece(
"");
5344 return StringPiece(v.asCString());
5357 *MutableStorage(
"thumbnailLink") = value.data();
5366 return Storage().isMember(
"thumbnailVersion");
5373 MutableStorage()->removeMember(
"thumbnailVersion");
5381 const Json::Value& storage = Storage(
"thumbnailVersion");
5382 return client::JsonValueToCppValueHelper<int64 >(storage);
5393 client::SetJsonValueFromCppValueHelper<int64 >(
5394 value, MutableStorage(
"thumbnailVersion"));
5403 return Storage().isMember(
"title");
5410 MutableStorage()->removeMember(
"title");
5418 const Json::Value& v = Storage(
"title");
5419 if (v == Json::Value::null)
return StringPiece(
"");
5420 return StringPiece(v.asCString());
5433 *MutableStorage(
"title") = value.data();
5442 return Storage().isMember(
"trashedDate");
5449 MutableStorage()->removeMember(
"trashedDate");
5457 const Json::Value& storage = Storage(
"trashedDate");
5458 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
5470 client::SetJsonValueFromCppValueHelper<client::DateTime >(
5471 value, MutableStorage(
"trashedDate"));
5480 return Storage().isMember(
"trashingUser");
5487 MutableStorage()->removeMember(
"trashingUser");
5494 const User get_trashing_user()
const;
5505 User mutable_trashingUser();
5513 return Storage().isMember(
"userPermission");
5520 MutableStorage()->removeMember(
"userPermission");
5528 const Permission get_user_permission()
const;
5546 return Storage().isMember(
"version");
5553 MutableStorage()->removeMember(
"version");
5561 const Json::Value& storage = Storage(
"version");
5562 return client::JsonValueToCppValueHelper<int64 >(storage);
5575 client::SetJsonValueFromCppValueHelper<int64 >(
5576 value, MutableStorage(
"version"));
5585 return Storage().isMember(
"videoMediaMetadata");
5592 MutableStorage()->removeMember(
"videoMediaMetadata");
5601 const Json::Value& storage = Storage(
"videoMediaMetadata");
5602 return client::JsonValueToCppValueHelper<FileVideoMediaMetadata >(storage);
5614 Json::Value* storage = MutableStorage(
"videoMediaMetadata");
5615 return client::JsonValueToMutableCppValueHelper<FileVideoMediaMetadata >(storage);
5624 return Storage().isMember(
"webContentLink");
5631 MutableStorage()->removeMember(
"webContentLink");
5639 const Json::Value& v = Storage(
"webContentLink");
5640 if (v == Json::Value::null)
return StringPiece(
"");
5641 return StringPiece(v.asCString());
5654 *MutableStorage(
"webContentLink") = value.data();
5663 return Storage().isMember(
"webViewLink");
5670 MutableStorage()->removeMember(
"webViewLink");
5678 const Json::Value& v = Storage(
"webViewLink");
5679 if (v == Json::Value::null)
return StringPiece(
"");
5680 return StringPiece(v.asCString());
5692 *MutableStorage(
"webViewLink") = value.data();
5701 return Storage().isMember(
"writersCanShare");
5708 MutableStorage()->removeMember(
"writersCanShare");
5716 const Json::Value& storage = Storage(
"writersCanShare");
5717 return client::JsonValueToCppValueHelper<bool >(storage);
5729 client::SetJsonValueFromCppValueHelper<bool >(
5730 value, MutableStorage(
"writersCanShare"));
5734 void operator=(
const File&);
5737 #endif // GOOGLE_DRIVE_API_FILE_H_ void clear_can_comment()
Definition: file.h:3216
bool has_shortcut_details() const
Definition: file.h:5170
void clear_embed_link()
Definition: file.h:3640
bool get_can_copy() const
Definition: file.h:321
void clear_can_add_my_drive_parent()
Definition: file.h:152
void clear_original_filename()
Definition: file.h:4671
bool get_can_move_children_out_of_team_drive() const
Definition: file.h:631
bool has_can_read_team_drive() const
Definition: file.h:1059
void clear_quota_bytes_used()
Definition: file.h:4957
FileShortcutDetails mutable_shortcutDetails()
Definition: file.h:5200
void clear_title()
Definition: file.h:5409
const FileShortcutDetails get_shortcut_details() const
Definition: file.h:5186
void clear_target_mime_type()
Definition: file.h:2788
void clear_folder_color_rgb()
Definition: file.h:3869
bool has_sharing_user() const
Definition: file.h:5138
bool has_can_download() const
Definition: file.h:421
bool has_shared_with_me_date() const
Definition: file.h:5100
void set_last_viewed_by_me_date(client::DateTime value)
Definition: file.h:4421
bool has_has_augmented_permissions() const
Definition: file.h:3945
const StringPiece get_text() const
Definition: file.h:2403
Definition: permission.h:51
bool has_web_view_link() const
Definition: file.h:5662
bool has_last_viewed_by_me_date() const
Definition: file.h:4394
void clear_copyable()
Definition: file.h:3373
const client::JsonCppAssociativeArray< string > get_open_with_links() const
Definition: file.h:4640
void clear_id()
Definition: file.h:4105
void set_owned_by_me(bool value)
Definition: file.h:4731
void set_can_change_restricted_download(bool value)
Definition: file.h:259
void clear_can_trash()
Definition: file.h:1257
bool has_description() const
Definition: file.h:3480
const FileVideoMediaMetadata get_video_media_metadata() const
Definition: file.h:5600
const StringPiece get_download_url() const
Definition: file.h:3532
const StringPiece get_team_drive_id() const
Definition: file.h:5263
void set_trashed(bool value)
Definition: file.h:2651
bool has_modified() const
Definition: file.h:2509
bool get_can_remove_my_drive_parent() const
Definition: file.h:1153
void clear_explicitly_trashed()
Definition: file.h:3714
void set_icon_link(const StringPiece &value)
Definition: file.h:4089
bool has_hidden() const
Definition: file.h:2470
void clear_export_links()
Definition: file.h:3752
bool get_can_list_children() const
Definition: file.h:512
const StringPiece GetTypeName() const
Definition: file.h:2461
bool get_copy_requires_writer_permission() const
Definition: file.h:3343
bool has_head_revision_id() const
Definition: file.h:4022
const StringPiece get_original_filename() const
Definition: file.h:4679
void set_can_comment(bool value)
Definition: file.h:3238
bool has_can_move_children_within_team_drive() const
Definition: file.h:698
void clear_web_content_link()
Definition: file.h:5630
void clear_owners()
Definition: file.h:4787
int64 get_version() const
Definition: file.h:5560
void set_can_remove_my_drive_parent(bool value)
Definition: file.h:1166
bool get_can_modify_content() const
Definition: file.h:550
void set_kind(const StringPiece &value)
Definition: file.h:4278
bool get_is_app_authorized() const
Definition: file.h:4228
const FileLabels get_labels() const
Definition: file.h:4302
const StringPiece get_target_id() const
Definition: file.h:2759
bool has_target_mime_type() const
Definition: file.h:2781
bool has_is_app_authorized() const
Definition: file.h:4213
void set_created_date(client::DateTime value)
Definition: file.h:3432
void set_thumbnail_link(const StringPiece &value)
Definition: file.h:5356
void set_viewed(bool value)
Definition: file.h:2688
bool has_file_extension() const
Definition: file.h:3783
void clear_marked_viewed_by_me_date()
Definition: file.h:4438
void clear_image()
Definition: file.h:2873
void clear_can_move_item_out_of_team_drive()
Definition: file.h:828
void clear_trashed()
Definition: file.h:2629
bool has_last_modifying_user_name() const
Definition: file.h:4357
bool get_can_remove_children() const
Definition: file.h:1113
const FileIndexableText get_indexable_text() const
Definition: file.h:4190
void set_web_content_link(const StringPiece &value)
Definition: file.h:5653
void clear_can_remove_children()
Definition: file.h:1105
bool has_full_file_extension() const
Definition: file.h:3902
bool get_can_change_restricted_download() const
Definition: file.h:245
bool has_thumbnail_link() const
Definition: file.h:5326
bool has_original_filename() const
Definition: file.h:4664
bool has_can_read_revisions() const
Definition: file.h:3248
bool has_restricted() const
Definition: file.h:2546
bool get_can_move_children_within_team_drive() const
Definition: file.h:714
void set_can_move_children_within_team_drive(bool value)
Definition: file.h:728
void set_thumbnail_version(int64 value)
Definition: file.h:5392
void clear_file_extension()
Definition: file.h:3790
void set_modified(bool value)
Definition: file.h:2536
bool get_can_move_item_into_team_drive() const
Definition: file.h:755
void clear_can_read_revisions()
Definition: file.h:1027
void clear_app_data_contents()
Definition: file.h:3179
bool has_marked_viewed_by_me_date() const
Definition: file.h:4431
void clear_web_view_link()
Definition: file.h:5669
const StringPiece GetTypeName() const
Definition: file.h:2379
const StringPiece get_folder_color_rgb() const
Definition: file.h:3877
bool get_can_move_children_within_drive() const
Definition: file.h:672
void clear_can_copy()
Definition: file.h:313
bool has_can_move_team_drive_item() const
Definition: file.h:943
void clear_parents()
Definition: file.h:4818
bool has_image() const
Definition: file.h:2866
void set_can_edit(bool value)
Definition: file.h:487
bool has_can_read_revisions() const
Definition: file.h:1020
void clear_can_edit()
Definition: file.h:465
const StringPiece get_title() const
Definition: file.h:5417
void set_md5_checksum(const StringPiece &value)
Definition: file.h:4500
bool has_can_move_children_within_drive() const
Definition: file.h:657
void set_can_untrash(bool value)
Definition: file.h:1352
void clear_last_modifying_user_name()
Definition: file.h:4364
const client::JsonCppArray< string > get_owner_names() const
Definition: file.h:4756
bool get_can_read_revisions() const
Definition: file.h:1035
bool get_has_thumbnail() const
Definition: file.h:3998
void clear_text()
Definition: file.h:2395
bool has_kind() const
Definition: file.h:4250
const StringPiece get_alternate_link() const
Definition: file.h:3150
bool has_icon_link() const
Definition: file.h:4061
bool get_starred() const
Definition: file.h:2600
bool get_owned_by_me() const
Definition: file.h:4718
void clear_viewed()
Definition: file.h:2668
void clear_modified_date()
Definition: file.h:4594
void set_can_move_item_out_of_team_drive(bool value)
Definition: file.h:850
void set_can_move_children_out_of_team_drive(bool value)
Definition: file.h:645
FileLabels mutable_labels()
Definition: file.h:4314
void set_can_remove_children(bool value)
Definition: file.h:1127
void set_can_delete(bool value)
Definition: file.h:372
void clear_can_move_children_out_of_drive()
Definition: file.h:581
const StringPiece get_icon_link() const
Definition: file.h:4076
void set_file_extension(const StringPiece &value)
Definition: file.h:3814
void clear_created_date()
Definition: file.h:3412
void clear_shared_with_me_date()
Definition: file.h:5107
void set_trashed_date(client::DateTime value)
Definition: file.h:5469
bool has_can_list_children() const
Definition: file.h:497
void set_can_trash_children(bool value)
Definition: file.h:1315
void set_copy_requires_writer_permission(bool value)
Definition: file.h:3356
bool has_can_move_item_out_of_team_drive() const
Definition: file.h:821
const StringPiece get_last_modifying_user_name() const
Definition: file.h:4372
void clear_can_read_revisions()
Definition: file.h:3255
void clear_has_augmented_permissions()
Definition: file.h:3952
bool has_can_move_children_out_of_team_drive() const
Definition: file.h:615
const StringPiece get_description() const
Definition: file.h:3495
void set_title(const StringPiece &value)
Definition: file.h:5432
void set_has_augmented_permissions(bool value)
Definition: file.h:3973
bool get_can_move_item_within_team_drive() const
Definition: file.h:918
void clear_modified()
Definition: file.h:2516
void clear_team_drive_id()
Definition: file.h:5255
bool has_target_id() const
Definition: file.h:2744
bool get_can_trash_children() const
Definition: file.h:1302
bool has_can_read_drive() const
Definition: file.h:982
void set_can_share(bool value)
Definition: file.h:1240
bool get_can_comment() const
Definition: file.h:284
void clear_alternate_link()
Definition: file.h:3142
bool get_can_move_item_within_drive() const
Definition: file.h:876
void clear_thumbnail_link()
Definition: file.h:5333
void clear_can_move_item_out_of_drive()
Definition: file.h:787
bool has_can_change_restricted_download() const
Definition: file.h:229
bool get_can_read_drive() const
Definition: file.h:997
bool get_can_download() const
Definition: file.h:436
void clear_permissions()
Definition: file.h:4892
bool has_owned_by_me() const
Definition: file.h:4703
void set_alternate_link(const StringPiece &value)
Definition: file.h:3163
void clear_writers_can_share()
Definition: file.h:5707
bool get_can_move_item_out_of_drive() const
Definition: file.h:795
const StringPiece get_thumbnail_link() const
Definition: file.h:5341
void clear_open_with_links()
Definition: file.h:4632
bool has_web_content_link() const
Definition: file.h:5623
void set_mime_type(const StringPiece &value)
Definition: file.h:4539
void set_explicitly_trashed(bool value)
Definition: file.h:3735
void set_can_move_children_out_of_drive(bool value)
Definition: file.h:603
void clear_file_size()
Definition: file.h:3830
bool get_can_move_item_out_of_team_drive() const
Definition: file.h:836
bool get_has_augmented_permissions() const
Definition: file.h:3960
bool has_can_untrash() const
Definition: file.h:1325
bool has_starred() const
Definition: file.h:2585
void set_restricted(bool value)
Definition: file.h:2575
bool has_default_open_with_link() const
Definition: file.h:3442
client::DateTime get_modified_by_me_date() const
Definition: file.h:4563
bool has_can_delete() const
Definition: file.h:345
client::DateTime get_trashed_date() const
Definition: file.h:5456
bool has_copy_requires_writer_permission() const
Definition: file.h:3328
void set_app_data_contents(bool value)
Definition: file.h:3199
void set_text(const StringPiece &value)
Definition: file.h:2416
FileCapabilities mutable_capabilities()
Definition: file.h:3316
void clear_can_change_restricted_download()
Definition: file.h:236
void clear_labels()
Definition: file.h:4294
bool has_explicitly_trashed() const
Definition: file.h:3707
void clear_can_move_item_within_drive()
Definition: file.h:868
void set_shareable(bool value)
Definition: file.h:5053
void set_shared_with_me_date(client::DateTime value)
Definition: file.h:5128
bool has_title() const
Definition: file.h:5402
int64 get_thumbnail_version() const
Definition: file.h:5380
void clear_owned_by_me()
Definition: file.h:4710
bool has_owners() const
Definition: file.h:4780
void set_target_mime_type(const StringPiece &value)
Definition: file.h:2811
void clear_owner_names()
Definition: file.h:4748
bool has_writers_can_share() const
Definition: file.h:5700
const StringPiece get_image() const
Definition: file.h:2881
bool has_can_rename() const
Definition: file.h:1176
void set_has_thumbnail(bool value)
Definition: file.h:4012
void set_default_open_with_link(const StringPiece &value)
Definition: file.h:3471
bool has_can_comment() const
Definition: file.h:269
void set_full_file_extension(const StringPiece &value)
Definition: file.h:3935
bool has_can_change_copy_requires_writer_permission() const
Definition: file.h:186
bool has_user_permission() const
Definition: file.h:5512
bool has_can_delete_children() const
Definition: file.h:382
bool get_restricted() const
Definition: file.h:2561
void clear_can_delete()
Definition: file.h:352
void clear_sharing_user()
Definition: file.h:5145
bool get_modified() const
Definition: file.h:2524
const StringPiece get_mime_type() const
Definition: file.h:2919
void set_self_link(const StringPiece &value)
Definition: file.h:5015
void set_can_read_team_drive(bool value)
Definition: file.h:1088
bool has_shareable() const
Definition: file.h:5024
void clear_icon_link()
Definition: file.h:4068
void set_image(const StringPiece &value)
Definition: file.h:2895
bool get_can_delete_children() const
Definition: file.h:397
void set_version(int64 value)
Definition: file.h:5574
const FileImageMediaMetadata get_image_media_metadata() const
Definition: file.h:4151
void clear_properties()
Definition: file.h:4925
client::JsonCppArray< string > mutable_permissionIds()
Definition: file.h:4875
bool has_mime_type() const
Definition: file.h:4509
void clear_can_untrash()
Definition: file.h:1332
client::DateTime get_modified_date() const
Definition: file.h:4602
bool has_modified_date() const
Definition: file.h:4587
bool get_shareable() const
Definition: file.h:5039
void clear_target_id()
Definition: file.h:2751
void set_head_revision_id(const StringPiece &value)
Definition: file.h:4052
bool get_can_add_children() const
Definition: file.h:122
bool get_explicitly_trashed() const
Definition: file.h:3722
void set_file_size(int64 value)
Definition: file.h:3852
bool get_trashed() const
Definition: file.h:2637
const StringPiece get_md5_checksum() const
Definition: file.h:4485
void clear_can_comment()
Definition: file.h:276
void clear_trashing_user()
Definition: file.h:5486
void set_can_move_item_into_team_drive(bool value)
Definition: file.h:769
bool get_can_untrash() const
Definition: file.h:1340
void set_can_add_children(bool value)
Definition: file.h:135
void set_can_download(bool value)
Definition: file.h:448
void set_embed_link(const StringPiece &value)
Definition: file.h:3661
bool has_thumbnail_version() const
Definition: file.h:5365
bool get_editable() const
Definition: file.h:3609
const FileCapabilities get_capabilities() const
Definition: file.h:3302
void set_editable(bool value)
Definition: file.h:3623
client::JsonCppAssociativeArray< string > mutable_exportLinks()
Definition: file.h:3773
const StringPiece get_file_extension() const
Definition: file.h:3798
void set_can_move_children_within_drive(bool value)
Definition: file.h:686
const StringPiece get_target_mime_type() const
Definition: file.h:2796
const StringPiece GetTypeName() const
Definition: file.h:2735
void clear_video_media_metadata()
Definition: file.h:5591
bool get_writers_can_share() const
Definition: file.h:5715
client::JsonCppAssociativeArray< string > mutable_openWithLinks()
Definition: file.h:4654
FileThumbnail mutable_thumbnail()
Definition: file.h:5316
void clear_can_modify_content()
Definition: file.h:542
bool get_can_comment() const
Definition: file.h:3224
void clear_shared()
Definition: file.h:5070
void clear_can_change_copy_requires_writer_permission()
Definition: file.h:194
void clear_restricted()
Definition: file.h:2553
void set_can_delete_children(bool value)
Definition: file.h:411
const StringPiece get_embed_link() const
Definition: file.h:3648
client::JsonCppArray< string > mutable_ownerNames()
Definition: file.h:4770
bool has_copyable() const
Definition: file.h:3366
bool has_trashing_user() const
Definition: file.h:5479
void set_last_modifying_user_name(const StringPiece &value)
Definition: file.h:4385
bool has_modified_by_me_date() const
Definition: file.h:4548
void clear_shareable()
Definition: file.h:5031
bool has_labels() const
Definition: file.h:4287
void set_can_move_item_within_team_drive(bool value)
Definition: file.h:932
void set_id(const StringPiece &value)
Definition: file.h:4126
bool has_permission_ids() const
Definition: file.h:4847
void set_can_list_children(bool value)
Definition: file.h:525
bool has_spaces() const
Definition: file.h:5210
bool has_drive_id() const
Definition: file.h:3556
void clear_is_app_authorized()
Definition: file.h:4220
void set_shared(bool value)
Definition: file.h:5090
bool has_self_link() const
Definition: file.h:4987
client::JsonCppArray< string > mutable_spaces()
Definition: file.h:5238
void clear_editable()
Definition: file.h:3601
void set_can_move_team_drive_item(bool value)
Definition: file.h:972
bool has_can_copy() const
Definition: file.h:306
void clear_modified_by_me_date()
Definition: file.h:4555
const client::JsonCppAssociativeArray< string > get_export_links() const
Definition: file.h:3760
void clear_can_rename()
Definition: file.h:1183
bool has_owner_names() const
Definition: file.h:4741
bool has_video_media_metadata() const
Definition: file.h:5584
void set_mime_type(const StringPiece &value)
Definition: file.h:2932
void set_can_read_drive(bool value)
Definition: file.h:1010
void clear_can_delete_children()
Definition: file.h:389
bool has_can_move_item_within_team_drive() const
Definition: file.h:903
void clear_last_modifying_user()
Definition: file.h:4331
void clear_full_file_extension()
Definition: file.h:3909
const StringPiece GetTypeName() const
Definition: file.h:3126
bool get_can_edit() const
Definition: file.h:473
bool get_can_read_team_drive() const
Definition: file.h:1074
client::DateTime get_last_viewed_by_me_date() const
Definition: file.h:4409
bool get_can_move_children_out_of_drive() const
Definition: file.h:589
void clear_image_media_metadata()
Definition: file.h:4142
bool has_has_thumbnail() const
Definition: file.h:3983
bool has_quota_bytes_used() const
Definition: file.h:4950
bool has_open_with_links() const
Definition: file.h:4625
void clear_user_permission()
Definition: file.h:5519
bool has_can_modify_content() const
Definition: file.h:535
void set_can_move_item_out_of_drive(bool value)
Definition: file.h:809
void clear_hidden()
Definition: file.h:2477
void set_can_copy(bool value)
Definition: file.h:335
void clear_can_move_item_into_team_drive()
Definition: file.h:747
void set_hidden(bool value)
Definition: file.h:2499
void clear_permission_ids()
Definition: file.h:4854
void clear_copy_requires_writer_permission()
Definition: file.h:3335
const StringPiece get_kind() const
Definition: file.h:4265
void clear_shortcut_details()
Definition: file.h:5177
void clear_can_add_children()
Definition: file.h:114
bool has_can_edit() const
Definition: file.h:458
bool get_app_data_contents() const
Definition: file.h:3187
bool get_can_move_team_drive_item() const
Definition: file.h:958
bool has_can_remove_children() const
Definition: file.h:1098
void clear_indexable_text()
Definition: file.h:4182
bool has_created_date() const
Definition: file.h:3405
const StringPiece get_full_file_extension() const
Definition: file.h:3917
void clear_can_trash_children()
Definition: file.h:1294
void set_original_filename(const StringPiece &value)
Definition: file.h:4694
const FileThumbnail get_thumbnail() const
Definition: file.h:5302
bool get_can_change_copy_requires_writer_permission() const
Definition: file.h:203
bool has_image_media_metadata() const
Definition: file.h:4135
bool get_shared() const
Definition: file.h:5078
bool get_copyable() const
Definition: file.h:3381
bool has_version() const
Definition: file.h:5545
void clear_md5_checksum()
Definition: file.h:4477
bool has_id() const
Definition: file.h:4098
bool has_mime_type() const
Definition: file.h:2904
bool has_can_trash() const
Definition: file.h:1250
int64 get_quota_bytes_used() const
Definition: file.h:4965
void clear_etag()
Definition: file.h:3677
bool has_viewed() const
Definition: file.h:2661
void set_can_trash(bool value)
Definition: file.h:1277
void set_modified_by_me_date(client::DateTime value)
Definition: file.h:4577
bool has_embed_link() const
Definition: file.h:3633
void set_can_move_item_within_drive(bool value)
Definition: file.h:891
void set_team_drive_id(const StringPiece &value)
Definition: file.h:5278
client::DateTime get_shared_with_me_date() const
Definition: file.h:5115
bool has_can_share() const
Definition: file.h:1213
bool has_can_remove_my_drive_parent() const
Definition: file.h:1138
const StringPiece get_id() const
Definition: file.h:4113
void set_copyable(bool value)
Definition: file.h:3395
bool has_can_comment() const
Definition: file.h:3209
bool has_thumbnail() const
Definition: file.h:5287
bool has_team_drive_id() const
Definition: file.h:5248
void set_can_add_my_drive_parent(bool value)
Definition: file.h:174
void set_download_url(const StringPiece &value)
Definition: file.h:3547
void clear_description()
Definition: file.h:3487
bool has_can_move_item_within_drive() const
Definition: file.h:861
client::DateTime get_marked_viewed_by_me_date() const
Definition: file.h:4446
void set_drive_id(const StringPiece &value)
Definition: file.h:3585
void set_can_read_revisions(bool value)
Definition: file.h:1049
const StringPiece get_etag() const
Definition: file.h:3685
void clear_kind()
Definition: file.h:4257
bool get_hidden() const
Definition: file.h:2485
bool has_trashed() const
Definition: file.h:2622
void set_can_rename(bool value)
Definition: file.h:1203
bool has_last_modifying_user() const
Definition: file.h:4324
void clear_can_download()
Definition: file.h:428
int64 get_file_size() const
Definition: file.h:3838
const StringPiece get_mime_type() const
Definition: file.h:4524
bool has_folder_color_rgb() const
Definition: file.h:3862
const client::JsonCppArray< string > get_spaces() const
Definition: file.h:5225
void set_can_read_revisions(bool value)
Definition: file.h:3277
void set_writers_can_share(bool value)
Definition: file.h:5728
bool has_capabilities() const
Definition: file.h:3287
bool has_download_url() const
Definition: file.h:3517
void clear_self_link()
Definition: file.h:4994
FileIndexableText mutable_indexableText()
Definition: file.h:4203
void clear_can_share()
Definition: file.h:1220
void set_description(const StringPiece &value)
Definition: file.h:3508
bool has_md5_checksum() const
Definition: file.h:4470
void clear_spaces()
Definition: file.h:5217
bool get_can_trash() const
Definition: file.h:1265
void clear_download_url()
Definition: file.h:3524
bool has_properties() const
Definition: file.h:4918
bool get_can_rename() const
Definition: file.h:1191
const client::JsonCppArray< string > get_permission_ids() const
Definition: file.h:4862
bool has_can_move_item_into_team_drive() const
Definition: file.h:740
bool has_shared() const
Definition: file.h:5063
void set_can_change_copy_requires_writer_permission(bool value)
Definition: file.h:217
void clear_thumbnail_version()
Definition: file.h:5372
bool has_can_move_children_out_of_drive() const
Definition: file.h:574
void clear_can_move_children_out_of_team_drive()
Definition: file.h:622
void clear_can_move_item_within_team_drive()
Definition: file.h:910
bool has_can_trash_children() const
Definition: file.h:1287
const StringPiece get_default_open_with_link() const
Definition: file.h:3457
void clear_can_move_team_drive_item()
Definition: file.h:950
void set_can_modify_content(bool value)
Definition: file.h:562
const StringPiece get_self_link() const
Definition: file.h:5002
void clear_mime_type()
Definition: file.h:2911
void set_etag(const StringPiece &value)
Definition: file.h:3698
void clear_capabilities()
Definition: file.h:3294
bool get_viewed() const
Definition: file.h:2676
bool has_can_add_my_drive_parent() const
Definition: file.h:145
bool has_indexable_text() const
Definition: file.h:4175
bool has_etag() const
Definition: file.h:3670
void clear_starred()
Definition: file.h:2592
void set_marked_viewed_by_me_date(client::DateTime value)
Definition: file.h:4460
bool has_can_move_item_out_of_drive() const
Definition: file.h:780
void clear_can_list_children()
Definition: file.h:504
client::DateTime get_created_date() const
Definition: file.h:3420
bool has_file_size() const
Definition: file.h:3823
bool get_can_delete() const
Definition: file.h:360
void clear_can_move_children_within_drive()
Definition: file.h:664
bool has_can_add_children() const
Definition: file.h:107
FileImageMediaMetadata mutable_imageMediaMetadata()
Definition: file.h:4165
bool get_can_share() const
Definition: file.h:1228
const StringPiece get_web_content_link() const
Definition: file.h:5638
bool has_permissions() const
Definition: file.h:4885
const StringPiece get_head_revision_id() const
Definition: file.h:4037
bool get_can_read_revisions() const
Definition: file.h:3263
void set_target_id(const StringPiece &value)
Definition: file.h:2772
void set_is_app_authorized(bool value)
Definition: file.h:4240
bool has_parents() const
Definition: file.h:4811
void clear_has_thumbnail()
Definition: file.h:3990
void clear_can_remove_my_drive_parent()
Definition: file.h:1145
void clear_thumbnail()
Definition: file.h:5294
const StringPiece GetTypeName() const
Definition: file.h:98
void clear_trashed_date()
Definition: file.h:5448
void clear_can_read_drive()
Definition: file.h:989
bool has_text() const
Definition: file.h:2388
void clear_can_read_team_drive()
Definition: file.h:1066
void set_modified_date(client::DateTime value)
Definition: file.h:4615
void clear_drive_id()
Definition: file.h:3563
const StringPiece get_drive_id() const
Definition: file.h:3571
void set_starred(bool value)
Definition: file.h:2612
void clear_mime_type()
Definition: file.h:4516
bool get_can_add_my_drive_parent() const
Definition: file.h:160
void clear_head_revision_id()
Definition: file.h:4029
FileVideoMediaMetadata mutable_videoMediaMetadata()
Definition: file.h:5613
void clear_version()
Definition: file.h:5552
bool has_editable() const
Definition: file.h:3594
bool has_export_links() const
Definition: file.h:3745
void set_web_view_link(const StringPiece &value)
Definition: file.h:5691
void set_can_comment(bool value)
Definition: file.h:296
void clear_last_viewed_by_me_date()
Definition: file.h:4401
const StringPiece get_web_view_link() const
Definition: file.h:5677
bool has_trashed_date() const
Definition: file.h:5441
void set_quota_bytes_used(int64 value)
Definition: file.h:4977
const StringPiece GetTypeName() const
Definition: file.h:2857
bool has_app_data_contents() const
Definition: file.h:3172
void set_folder_color_rgb(const StringPiece &value)
Definition: file.h:3893
void clear_default_open_with_link()
Definition: file.h:3449
void clear_can_move_children_within_team_drive()
Definition: file.h:705
bool has_alternate_link() const
Definition: file.h:3135