storage  v1
object.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-14, 18:33:41 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Cloud Storage JSON API (storage/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 171
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_STORAGE_API_OBJECT_H_
31 #define GOOGLE_STORAGE_API_OBJECT_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/client/util/date_time.h"
38 #include "googleapis/strings/stringpiece.h"
39 
40 #include "google/storage_api/object_access_control.h"
41 
42 namespace Json {
43 class Value;
44 } // namespace Json
45 
46 namespace google_storage_api {
47 using namespace googleapis;
48 
54 class Object : public client::JsonCppData {
55  public:
62  class ObjectCustomerEncryption : public client::JsonCppData {
63  public:
69  static ObjectCustomerEncryption* New();
70 
76  explicit ObjectCustomerEncryption(const Json::Value& storage);
77 
83  explicit ObjectCustomerEncryption(Json::Value* storage);
84 
88  virtual ~ObjectCustomerEncryption();
89 
95  const StringPiece GetTypeName() const {
96  return StringPiece("google_storage_api::ObjectCustomerEncryption");
97  }
98 
105  return Storage().isMember("encryptionAlgorithm");
106  }
107 
112  MutableStorage()->removeMember("encryptionAlgorithm");
113  }
114 
115 
119  const StringPiece get_encryption_algorithm() const {
120  const Json::Value& v = Storage("encryptionAlgorithm");
121  if (v == Json::Value::null) return StringPiece("");
122  return StringPiece(v.asCString());
123  }
124 
132  void set_encryption_algorithm(const StringPiece& value) {
133  *MutableStorage("encryptionAlgorithm") = value.data();
134  }
135 
141  bool has_key_sha256() const {
142  return Storage().isMember("keySha256");
143  }
144 
149  MutableStorage()->removeMember("keySha256");
150  }
151 
152 
156  const StringPiece get_key_sha256() const {
157  const Json::Value& v = Storage("keySha256");
158  if (v == Json::Value::null) return StringPiece("");
159  return StringPiece(v.asCString());
160  }
161 
169  void set_key_sha256(const StringPiece& value) {
170  *MutableStorage("keySha256") = value.data();
171  }
172 
173  private:
174  void operator=(const ObjectCustomerEncryption&);
175  }; // ObjectCustomerEncryption
181  class ObjectOwner : public client::JsonCppData {
182  public:
188  static ObjectOwner* New();
189 
195  explicit ObjectOwner(const Json::Value& storage);
196 
202  explicit ObjectOwner(Json::Value* storage);
203 
207  virtual ~ObjectOwner();
208 
214  const StringPiece GetTypeName() const {
215  return StringPiece("google_storage_api::ObjectOwner");
216  }
217 
223  bool has_entity() const {
224  return Storage().isMember("entity");
225  }
226 
230  void clear_entity() {
231  MutableStorage()->removeMember("entity");
232  }
233 
234 
238  const StringPiece get_entity() const {
239  const Json::Value& v = Storage("entity");
240  if (v == Json::Value::null) return StringPiece("");
241  return StringPiece(v.asCString());
242  }
243 
251  void set_entity(const StringPiece& value) {
252  *MutableStorage("entity") = value.data();
253  }
254 
260  bool has_entity_id() const {
261  return Storage().isMember("entityId");
262  }
263 
268  MutableStorage()->removeMember("entityId");
269  }
270 
271 
275  const StringPiece get_entity_id() const {
276  const Json::Value& v = Storage("entityId");
277  if (v == Json::Value::null) return StringPiece("");
278  return StringPiece(v.asCString());
279  }
280 
288  void set_entity_id(const StringPiece& value) {
289  *MutableStorage("entityId") = value.data();
290  }
291 
292  private:
293  void operator=(const ObjectOwner&);
294  }; // ObjectOwner
300  static Object* New();
301 
307  explicit Object(const Json::Value& storage);
308 
314  explicit Object(Json::Value* storage);
315 
319  virtual ~Object();
320 
326  const StringPiece GetTypeName() const {
327  return StringPiece("google_storage_api::Object");
328  }
329 
335  bool has_acl() const {
336  return Storage().isMember("acl");
337  }
338 
342  void clear_acl() {
343  MutableStorage()->removeMember("acl");
344  }
345 
346 
350  const client::JsonCppArray<ObjectAccessControl > get_acl() const;
351 
359  client::JsonCppArray<ObjectAccessControl > mutable_acl();
360 
366  bool has_bucket() const {
367  return Storage().isMember("bucket");
368  }
369 
373  void clear_bucket() {
374  MutableStorage()->removeMember("bucket");
375  }
376 
377 
381  const StringPiece get_bucket() const {
382  const Json::Value& v = Storage("bucket");
383  if (v == Json::Value::null) return StringPiece("");
384  return StringPiece(v.asCString());
385  }
386 
394  void set_bucket(const StringPiece& value) {
395  *MutableStorage("bucket") = value.data();
396  }
397 
403  bool has_cache_control() const {
404  return Storage().isMember("cacheControl");
405  }
406 
411  MutableStorage()->removeMember("cacheControl");
412  }
413 
414 
418  const StringPiece get_cache_control() const {
419  const Json::Value& v = Storage("cacheControl");
420  if (v == Json::Value::null) return StringPiece("");
421  return StringPiece(v.asCString());
422  }
423 
433  void set_cache_control(const StringPiece& value) {
434  *MutableStorage("cacheControl") = value.data();
435  }
436 
442  bool has_component_count() const {
443  return Storage().isMember("componentCount");
444  }
445 
450  MutableStorage()->removeMember("componentCount");
451  }
452 
453 
457  int32 get_component_count() const {
458  const Json::Value& storage = Storage("componentCount");
459  return client::JsonValueToCppValueHelper<int32 >(storage);
460  }
461 
470  void set_component_count(int32 value) {
471  client::SetJsonValueFromCppValueHelper<int32 >(
472  value, MutableStorage("componentCount"));
473  }
474 
480  bool has_content_disposition() const {
481  return Storage().isMember("contentDisposition");
482  }
483 
488  MutableStorage()->removeMember("contentDisposition");
489  }
490 
491 
495  const StringPiece get_content_disposition() const {
496  const Json::Value& v = Storage("contentDisposition");
497  if (v == Json::Value::null) return StringPiece("");
498  return StringPiece(v.asCString());
499  }
500 
508  void set_content_disposition(const StringPiece& value) {
509  *MutableStorage("contentDisposition") = value.data();
510  }
511 
517  bool has_content_encoding() const {
518  return Storage().isMember("contentEncoding");
519  }
520 
525  MutableStorage()->removeMember("contentEncoding");
526  }
527 
528 
532  const StringPiece get_content_encoding() const {
533  const Json::Value& v = Storage("contentEncoding");
534  if (v == Json::Value::null) return StringPiece("");
535  return StringPiece(v.asCString());
536  }
537 
545  void set_content_encoding(const StringPiece& value) {
546  *MutableStorage("contentEncoding") = value.data();
547  }
548 
554  bool has_content_language() const {
555  return Storage().isMember("contentLanguage");
556  }
557 
562  MutableStorage()->removeMember("contentLanguage");
563  }
564 
565 
569  const StringPiece get_content_language() const {
570  const Json::Value& v = Storage("contentLanguage");
571  if (v == Json::Value::null) return StringPiece("");
572  return StringPiece(v.asCString());
573  }
574 
582  void set_content_language(const StringPiece& value) {
583  *MutableStorage("contentLanguage") = value.data();
584  }
585 
591  bool has_content_type() const {
592  return Storage().isMember("contentType");
593  }
594 
599  MutableStorage()->removeMember("contentType");
600  }
601 
602 
606  const StringPiece get_content_type() const {
607  const Json::Value& v = Storage("contentType");
608  if (v == Json::Value::null) return StringPiece("");
609  return StringPiece(v.asCString());
610  }
611 
620  void set_content_type(const StringPiece& value) {
621  *MutableStorage("contentType") = value.data();
622  }
623 
629  bool has_crc32c() const {
630  return Storage().isMember("crc32c");
631  }
632 
636  void clear_crc32c() {
637  MutableStorage()->removeMember("crc32c");
638  }
639 
640 
644  const StringPiece get_crc32c() const {
645  const Json::Value& v = Storage("crc32c");
646  if (v == Json::Value::null) return StringPiece("");
647  return StringPiece(v.asCString());
648  }
649 
659  void set_crc32c(const StringPiece& value) {
660  *MutableStorage("crc32c") = value.data();
661  }
662 
668  bool has_customer_encryption() const {
669  return Storage().isMember("customerEncryption");
670  }
671 
676  MutableStorage()->removeMember("customerEncryption");
677  }
678 
679 
685  const Json::Value& storage = Storage("customerEncryption");
686  return client::JsonValueToCppValueHelper<ObjectCustomerEncryption >(storage);
687  }
688 
699  Json::Value* storage = MutableStorage("customerEncryption");
700  return client::JsonValueToMutableCppValueHelper<ObjectCustomerEncryption >(storage);
701  }
702 
708  bool has_etag() const {
709  return Storage().isMember("etag");
710  }
711 
715  void clear_etag() {
716  MutableStorage()->removeMember("etag");
717  }
718 
719 
723  const StringPiece get_etag() const {
724  const Json::Value& v = Storage("etag");
725  if (v == Json::Value::null) return StringPiece("");
726  return StringPiece(v.asCString());
727  }
728 
736  void set_etag(const StringPiece& value) {
737  *MutableStorage("etag") = value.data();
738  }
739 
745  bool has_event_based_hold() const {
746  return Storage().isMember("eventBasedHold");
747  }
748 
753  MutableStorage()->removeMember("eventBasedHold");
754  }
755 
756 
760  bool get_event_based_hold() const {
761  const Json::Value& storage = Storage("eventBasedHold");
762  return client::JsonValueToCppValueHelper<bool >(storage);
763  }
764 
782  void set_event_based_hold(bool value) {
783  client::SetJsonValueFromCppValueHelper<bool >(
784  value, MutableStorage("eventBasedHold"));
785  }
786 
792  bool has_generation() const {
793  return Storage().isMember("generation");
794  }
795 
800  MutableStorage()->removeMember("generation");
801  }
802 
803 
807  int64 get_generation() const {
808  const Json::Value& storage = Storage("generation");
809  return client::JsonValueToCppValueHelper<int64 >(storage);
810  }
811 
819  void set_generation(int64 value) {
820  client::SetJsonValueFromCppValueHelper<int64 >(
821  value, MutableStorage("generation"));
822  }
823 
829  bool has_id() const {
830  return Storage().isMember("id");
831  }
832 
836  void clear_id() {
837  MutableStorage()->removeMember("id");
838  }
839 
840 
844  const StringPiece get_id() const {
845  const Json::Value& v = Storage("id");
846  if (v == Json::Value::null) return StringPiece("");
847  return StringPiece(v.asCString());
848  }
849 
858  void set_id(const StringPiece& value) {
859  *MutableStorage("id") = value.data();
860  }
861 
867  bool has_kind() const {
868  return Storage().isMember("kind");
869  }
870 
874  void clear_kind() {
875  MutableStorage()->removeMember("kind");
876  }
877 
878 
882  const StringPiece get_kind() const {
883  const Json::Value& v = Storage("kind");
884  if (v == Json::Value::null) return StringPiece("");
885  return StringPiece(v.asCString());
886  }
887 
895  void set_kind(const StringPiece& value) {
896  *MutableStorage("kind") = value.data();
897  }
898 
904  bool has_kms_key_name() const {
905  return Storage().isMember("kmsKeyName");
906  }
907 
912  MutableStorage()->removeMember("kmsKeyName");
913  }
914 
915 
919  const StringPiece get_kms_key_name() const {
920  const Json::Value& v = Storage("kmsKeyName");
921  if (v == Json::Value::null) return StringPiece("");
922  return StringPiece(v.asCString());
923  }
924 
933  void set_kms_key_name(const StringPiece& value) {
934  *MutableStorage("kmsKeyName") = value.data();
935  }
936 
942  bool has_md5_hash() const {
943  return Storage().isMember("md5Hash");
944  }
945 
949  void clear_md5_hash() {
950  MutableStorage()->removeMember("md5Hash");
951  }
952 
953 
957  const StringPiece get_md5_hash() const {
958  const Json::Value& v = Storage("md5Hash");
959  if (v == Json::Value::null) return StringPiece("");
960  return StringPiece(v.asCString());
961  }
962 
971  void set_md5_hash(const StringPiece& value) {
972  *MutableStorage("md5Hash") = value.data();
973  }
974 
980  bool has_media_link() const {
981  return Storage().isMember("mediaLink");
982  }
983 
988  MutableStorage()->removeMember("mediaLink");
989  }
990 
991 
995  const StringPiece get_media_link() const {
996  const Json::Value& v = Storage("mediaLink");
997  if (v == Json::Value::null) return StringPiece("");
998  return StringPiece(v.asCString());
999  }
1000 
1008  void set_media_link(const StringPiece& value) {
1009  *MutableStorage("mediaLink") = value.data();
1010  }
1011 
1017  bool has_metadata() const {
1018  return Storage().isMember("metadata");
1019  }
1020 
1025  MutableStorage()->removeMember("metadata");
1026  }
1027 
1028 
1032  const client::JsonCppAssociativeArray<string > get_metadata() const {
1033  const Json::Value& storage = Storage("metadata");
1034  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
1035  }
1036 
1045  client::JsonCppAssociativeArray<string > mutable_metadata() {
1046  Json::Value* storage = MutableStorage("metadata");
1047  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
1048  }
1049 
1055  bool has_metageneration() const {
1056  return Storage().isMember("metageneration");
1057  }
1058 
1063  MutableStorage()->removeMember("metageneration");
1064  }
1065 
1066 
1070  int64 get_metageneration() const {
1071  const Json::Value& storage = Storage("metageneration");
1072  return client::JsonValueToCppValueHelper<int64 >(storage);
1073  }
1074 
1085  void set_metageneration(int64 value) {
1086  client::SetJsonValueFromCppValueHelper<int64 >(
1087  value, MutableStorage("metageneration"));
1088  }
1089 
1095  bool has_name() const {
1096  return Storage().isMember("name");
1097  }
1098 
1102  void clear_name() {
1103  MutableStorage()->removeMember("name");
1104  }
1105 
1106 
1110  const StringPiece get_name() const {
1111  const Json::Value& v = Storage("name");
1112  if (v == Json::Value::null) return StringPiece("");
1113  return StringPiece(v.asCString());
1114  }
1115 
1123  void set_name(const StringPiece& value) {
1124  *MutableStorage("name") = value.data();
1125  }
1126 
1132  bool has_owner() const {
1133  return Storage().isMember("owner");
1134  }
1135 
1139  void clear_owner() {
1140  MutableStorage()->removeMember("owner");
1141  }
1142 
1143 
1147  const ObjectOwner get_owner() const {
1148  const Json::Value& storage = Storage("owner");
1149  return client::JsonValueToCppValueHelper<ObjectOwner >(storage);
1150  }
1151 
1160  Json::Value* storage = MutableStorage("owner");
1161  return client::JsonValueToMutableCppValueHelper<ObjectOwner >(storage);
1162  }
1163 
1171  return Storage().isMember("retentionExpirationTime");
1172  }
1173 
1178  MutableStorage()->removeMember("retentionExpirationTime");
1179  }
1180 
1181 
1185  client::DateTime get_retention_expiration_time() const {
1186  const Json::Value& storage = Storage("retentionExpirationTime");
1187  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1188  }
1189 
1203  void set_retention_expiration_time(client::DateTime value) {
1204  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1205  value, MutableStorage("retentionExpirationTime"));
1206  }
1207 
1213  bool has_self_link() const {
1214  return Storage().isMember("selfLink");
1215  }
1216 
1221  MutableStorage()->removeMember("selfLink");
1222  }
1223 
1224 
1228  const StringPiece get_self_link() const {
1229  const Json::Value& v = Storage("selfLink");
1230  if (v == Json::Value::null) return StringPiece("");
1231  return StringPiece(v.asCString());
1232  }
1233 
1241  void set_self_link(const StringPiece& value) {
1242  *MutableStorage("selfLink") = value.data();
1243  }
1244 
1250  bool has_size() const {
1251  return Storage().isMember("size");
1252  }
1253 
1257  void clear_size() {
1258  MutableStorage()->removeMember("size");
1259  }
1260 
1261 
1265  uint64 get_size() const {
1266  const Json::Value& storage = Storage("size");
1267  return client::JsonValueToCppValueHelper<uint64 >(storage);
1268  }
1269 
1277  void set_size(uint64 value) {
1278  client::SetJsonValueFromCppValueHelper<uint64 >(
1279  value, MutableStorage("size"));
1280  }
1281 
1287  bool has_storage_class() const {
1288  return Storage().isMember("storageClass");
1289  }
1290 
1295  MutableStorage()->removeMember("storageClass");
1296  }
1297 
1298 
1302  const StringPiece get_storage_class() const {
1303  const Json::Value& v = Storage("storageClass");
1304  if (v == Json::Value::null) return StringPiece("");
1305  return StringPiece(v.asCString());
1306  }
1307 
1315  void set_storage_class(const StringPiece& value) {
1316  *MutableStorage("storageClass") = value.data();
1317  }
1318 
1324  bool has_temporary_hold() const {
1325  return Storage().isMember("temporaryHold");
1326  }
1327 
1332  MutableStorage()->removeMember("temporaryHold");
1333  }
1334 
1335 
1339  bool get_temporary_hold() const {
1340  const Json::Value& storage = Storage("temporaryHold");
1341  return client::JsonValueToCppValueHelper<bool >(storage);
1342  }
1343 
1355  void set_temporary_hold(bool value) {
1356  client::SetJsonValueFromCppValueHelper<bool >(
1357  value, MutableStorage("temporaryHold"));
1358  }
1359 
1365  bool has_time_created() const {
1366  return Storage().isMember("timeCreated");
1367  }
1368 
1373  MutableStorage()->removeMember("timeCreated");
1374  }
1375 
1376 
1380  client::DateTime get_time_created() const {
1381  const Json::Value& storage = Storage("timeCreated");
1382  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1383  }
1384 
1392  void set_time_created(client::DateTime value) {
1393  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1394  value, MutableStorage("timeCreated"));
1395  }
1396 
1402  bool has_time_deleted() const {
1403  return Storage().isMember("timeDeleted");
1404  }
1405 
1410  MutableStorage()->removeMember("timeDeleted");
1411  }
1412 
1413 
1417  client::DateTime get_time_deleted() const {
1418  const Json::Value& storage = Storage("timeDeleted");
1419  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1420  }
1421 
1430  void set_time_deleted(client::DateTime value) {
1431  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1432  value, MutableStorage("timeDeleted"));
1433  }
1434 
1442  return Storage().isMember("timeStorageClassUpdated");
1443  }
1444 
1449  MutableStorage()->removeMember("timeStorageClassUpdated");
1450  }
1451 
1452 
1456  client::DateTime get_time_storage_class_updated() const {
1457  const Json::Value& storage = Storage("timeStorageClassUpdated");
1458  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1459  }
1460 
1469  void set_time_storage_class_updated(client::DateTime value) {
1470  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1471  value, MutableStorage("timeStorageClassUpdated"));
1472  }
1473 
1479  bool has_updated() const {
1480  return Storage().isMember("updated");
1481  }
1482 
1486  void clear_updated() {
1487  MutableStorage()->removeMember("updated");
1488  }
1489 
1490 
1494  client::DateTime get_updated() const {
1495  const Json::Value& storage = Storage("updated");
1496  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1497  }
1498 
1506  void set_updated(client::DateTime value) {
1507  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1508  value, MutableStorage("updated"));
1509  }
1510 
1511  private:
1512  void operator=(const Object&);
1513 }; // Object
1514 } // namespace google_storage_api
1515 #endif // GOOGLE_STORAGE_API_OBJECT_H_
const StringPiece get_crc32c() const
Definition: object.h:644
bool has_retention_expiration_time() const
Definition: object.h:1170
const StringPiece get_entity() const
Definition: object.h:238
bool has_name() const
Definition: object.h:1095
bool has_self_link() const
Definition: object.h:1213
client::JsonCppAssociativeArray< string > mutable_metadata()
Definition: object.h:1045
void clear_content_language()
Definition: object.h:561
void clear_entity()
Definition: object.h:230
void clear_bucket()
Definition: object.h:373
bool has_metageneration() const
Definition: object.h:1055
void set_key_sha256(const StringPiece &value)
Definition: object.h:169
void clear_owner()
Definition: object.h:1139
void set_self_link(const StringPiece &value)
Definition: object.h:1241
void clear_name()
Definition: object.h:1102
const StringPiece get_content_disposition() const
Definition: object.h:495
client::DateTime get_retention_expiration_time() const
Definition: object.h:1185
Definition: object.h:54
int32 get_component_count() const
Definition: object.h:457
void clear_content_type()
Definition: object.h:598
void set_metageneration(int64 value)
Definition: object.h:1085
void clear_encryption_algorithm()
Definition: object.h:111
const StringPiece get_md5_hash() const
Definition: object.h:957
void clear_content_encoding()
Definition: object.h:524
const StringPiece get_name() const
Definition: object.h:1110
void clear_event_based_hold()
Definition: object.h:752
bool has_size() const
Definition: object.h:1250
const StringPiece GetTypeName() const
Definition: object.h:95
void clear_customer_encryption()
Definition: object.h:675
const StringPiece get_kms_key_name() const
Definition: object.h:919
bool has_media_link() const
Definition: object.h:980
bool has_component_count() const
Definition: object.h:442
void set_cache_control(const StringPiece &value)
Definition: object.h:433
void clear_temporary_hold()
Definition: object.h:1331
const StringPiece get_content_encoding() const
Definition: object.h:532
void clear_time_deleted()
Definition: object.h:1409
bool has_storage_class() const
Definition: object.h:1287
int64 get_metageneration() const
Definition: object.h:1070
void set_crc32c(const StringPiece &value)
Definition: object.h:659
const StringPiece GetTypeName() const
Definition: object.h:326
void set_entity_id(const StringPiece &value)
Definition: object.h:288
void clear_entity_id()
Definition: object.h:267
void clear_cache_control()
Definition: object.h:410
void set_bucket(const StringPiece &value)
Definition: object.h:394
void set_content_type(const StringPiece &value)
Definition: object.h:620
void set_component_count(int32 value)
Definition: object.h:470
bool has_acl() const
Definition: object.h:335
const StringPiece get_encryption_algorithm() const
Definition: object.h:119
void set_media_link(const StringPiece &value)
Definition: object.h:1008
void set_id(const StringPiece &value)
Definition: object.h:858
bool has_entity_id() const
Definition: object.h:260
const StringPiece get_kind() const
Definition: object.h:882
void set_content_disposition(const StringPiece &value)
Definition: object.h:508
bool has_time_created() const
Definition: object.h:1365
bool has_entity() const
Definition: object.h:223
void set_updated(client::DateTime value)
Definition: object.h:1506
void clear_retention_expiration_time()
Definition: object.h:1177
client::DateTime get_time_deleted() const
Definition: object.h:1417
void clear_etag()
Definition: object.h:715
void set_md5_hash(const StringPiece &value)
Definition: object.h:971
bool has_owner() const
Definition: object.h:1132
void clear_content_disposition()
Definition: object.h:487
bool has_md5_hash() const
Definition: object.h:942
bool get_temporary_hold() const
Definition: object.h:1339
bool has_content_language() const
Definition: object.h:554
bool has_customer_encryption() const
Definition: object.h:668
void clear_updated()
Definition: object.h:1486
uint64 get_size() const
Definition: object.h:1265
void clear_metageneration()
Definition: object.h:1062
client::DateTime get_time_created() const
Definition: object.h:1380
void clear_generation()
Definition: object.h:799
const StringPiece get_bucket() const
Definition: object.h:381
const ObjectCustomerEncryption get_customer_encryption() const
Definition: object.h:684
void clear_size()
Definition: object.h:1257
bool has_bucket() const
Definition: object.h:366
bool has_crc32c() const
Definition: object.h:629
client::DateTime get_time_storage_class_updated() const
Definition: object.h:1456
void set_time_created(client::DateTime value)
Definition: object.h:1392
const StringPiece get_id() const
Definition: object.h:844
bool has_etag() const
Definition: object.h:708
Definition: bucket.h:43
ObjectCustomerEncryption mutable_customerEncryption()
Definition: object.h:698
bool has_content_type() const
Definition: object.h:591
void clear_md5_hash()
Definition: object.h:949
bool get_event_based_hold() const
Definition: object.h:760
void set_generation(int64 value)
Definition: object.h:819
const StringPiece GetTypeName() const
Definition: object.h:214
const StringPiece get_etag() const
Definition: object.h:723
const StringPiece get_entity_id() const
Definition: object.h:275
void set_name(const StringPiece &value)
Definition: object.h:1123
const StringPiece get_cache_control() const
Definition: object.h:418
void set_storage_class(const StringPiece &value)
Definition: object.h:1315
const StringPiece get_storage_class() const
Definition: object.h:1302
void clear_acl()
Definition: object.h:342
bool has_content_encoding() const
Definition: object.h:517
bool has_updated() const
Definition: object.h:1479
bool has_key_sha256() const
Definition: object.h:141
void set_etag(const StringPiece &value)
Definition: object.h:736
void set_content_language(const StringPiece &value)
Definition: object.h:582
bool has_kind() const
Definition: object.h:867
void clear_metadata()
Definition: object.h:1024
const StringPiece get_key_sha256() const
Definition: object.h:156
void clear_time_created()
Definition: object.h:1372
void clear_self_link()
Definition: object.h:1220
const StringPiece get_self_link() const
Definition: object.h:1228
client::DateTime get_updated() const
Definition: object.h:1494
void clear_media_link()
Definition: object.h:987
void clear_kind()
Definition: object.h:874
bool has_temporary_hold() const
Definition: object.h:1324
void set_time_deleted(client::DateTime value)
Definition: object.h:1430
bool has_generation() const
Definition: object.h:792
const StringPiece get_media_link() const
Definition: object.h:995
bool has_event_based_hold() const
Definition: object.h:745
void set_time_storage_class_updated(client::DateTime value)
Definition: object.h:1469
void clear_key_sha256()
Definition: object.h:148
const StringPiece get_content_language() const
Definition: object.h:569
void set_kms_key_name(const StringPiece &value)
Definition: object.h:933
bool has_kms_key_name() const
Definition: object.h:904
bool has_encryption_algorithm() const
Definition: object.h:104
void clear_storage_class()
Definition: object.h:1294
Definition: bucket.cc:45
void set_kind(const StringPiece &value)
Definition: object.h:895
void set_entity(const StringPiece &value)
Definition: object.h:251
int64 get_generation() const
Definition: object.h:807
void set_encryption_algorithm(const StringPiece &value)
Definition: object.h:132
bool has_id() const
Definition: object.h:829
void set_event_based_hold(bool value)
Definition: object.h:782
void clear_crc32c()
Definition: object.h:636
bool has_time_storage_class_updated() const
Definition: object.h:1441
bool has_content_disposition() const
Definition: object.h:480
void clear_time_storage_class_updated()
Definition: object.h:1448
bool has_cache_control() const
Definition: object.h:403
void set_content_encoding(const StringPiece &value)
Definition: object.h:545
void clear_id()
Definition: object.h:836
const ObjectOwner get_owner() const
Definition: object.h:1147
ObjectOwner mutable_owner()
Definition: object.h:1159
void set_temporary_hold(bool value)
Definition: object.h:1355
bool has_time_deleted() const
Definition: object.h:1402
void set_size(uint64 value)
Definition: object.h:1277
void set_retention_expiration_time(client::DateTime value)
Definition: object.h:1203
bool has_metadata() const
Definition: object.h:1017
void clear_kms_key_name()
Definition: object.h:911
void clear_component_count()
Definition: object.h:449
const client::JsonCppAssociativeArray< string > get_metadata() const
Definition: object.h:1032
const StringPiece get_content_type() const
Definition: object.h:606