storage  v1
bucket.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_BUCKET_H_
31 #define GOOGLE_STORAGE_API_BUCKET_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/bucket_access_control.h"
41 #include "google/storage_api/object_access_control.h"
42 
43 namespace Json {
44 class Value;
45 } // namespace Json
46 
47 namespace google_storage_api {
48 using namespace googleapis;
49 
55 class Bucket : public client::JsonCppData {
56  public:
62  class BucketBilling : public client::JsonCppData {
63  public:
69  static BucketBilling* New();
70 
76  explicit BucketBilling(const Json::Value& storage);
77 
83  explicit BucketBilling(Json::Value* storage);
84 
88  virtual ~BucketBilling();
89 
95  const StringPiece GetTypeName() const {
96  return StringPiece("google_storage_api::BucketBilling");
97  }
98 
104  bool has_requester_pays() const {
105  return Storage().isMember("requesterPays");
106  }
107 
112  MutableStorage()->removeMember("requesterPays");
113  }
114 
115 
119  bool get_requester_pays() const {
120  const Json::Value& storage = Storage("requesterPays");
121  return client::JsonValueToCppValueHelper<bool >(storage);
122  }
123 
131  void set_requester_pays(bool value) {
132  client::SetJsonValueFromCppValueHelper<bool >(
133  value, MutableStorage("requesterPays"));
134  }
135 
136  private:
137  void operator=(const BucketBilling&);
138  }; // BucketBilling
144  class BucketCors : public client::JsonCppData {
145  public:
151  static BucketCors* New();
152 
158  explicit BucketCors(const Json::Value& storage);
159 
165  explicit BucketCors(Json::Value* storage);
166 
170  virtual ~BucketCors();
171 
177  const StringPiece GetTypeName() const {
178  return StringPiece("google_storage_api::BucketCors");
179  }
180 
186  bool has_max_age_seconds() const {
187  return Storage().isMember("maxAgeSeconds");
188  }
189 
194  MutableStorage()->removeMember("maxAgeSeconds");
195  }
196 
197 
201  int32 get_max_age_seconds() const {
202  const Json::Value& storage = Storage("maxAgeSeconds");
203  return client::JsonValueToCppValueHelper<int32 >(storage);
204  }
205 
214  void set_max_age_seconds(int32 value) {
215  client::SetJsonValueFromCppValueHelper<int32 >(
216  value, MutableStorage("maxAgeSeconds"));
217  }
218 
224  bool has_method() const {
225  return Storage().isMember("method");
226  }
227 
231  void clear_method() {
232  MutableStorage()->removeMember("method");
233  }
234 
235 
239  const client::JsonCppArray<string > get_method() const {
240  const Json::Value& storage = Storage("method");
241  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
242  }
243 
254  client::JsonCppArray<string > mutable_method() {
255  Json::Value* storage = MutableStorage("method");
256  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
257  }
258 
264  bool has_origin() const {
265  return Storage().isMember("origin");
266  }
267 
271  void clear_origin() {
272  MutableStorage()->removeMember("origin");
273  }
274 
275 
279  const client::JsonCppArray<string > get_origin() const {
280  const Json::Value& storage = Storage("origin");
281  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
282  }
283 
293  client::JsonCppArray<string > mutable_origin() {
294  Json::Value* storage = MutableStorage("origin");
295  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
296  }
297 
303  bool has_response_header() const {
304  return Storage().isMember("responseHeader");
305  }
306 
311  MutableStorage()->removeMember("responseHeader");
312  }
313 
314 
319  const client::JsonCppArray<string > get_response_header() const {
320  const Json::Value& storage = Storage("responseHeader");
321  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
322  }
323 
333  client::JsonCppArray<string > mutable_responseHeader() {
334  Json::Value* storage = MutableStorage("responseHeader");
335  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
336  }
337 
338  private:
339  void operator=(const BucketCors&);
340  }; // BucketCors
346  class BucketEncryption : public client::JsonCppData {
347  public:
353  static BucketEncryption* New();
354 
360  explicit BucketEncryption(const Json::Value& storage);
361 
367  explicit BucketEncryption(Json::Value* storage);
368 
372  virtual ~BucketEncryption();
373 
379  const StringPiece GetTypeName() const {
380  return StringPiece("google_storage_api::BucketEncryption");
381  }
382 
389  return Storage().isMember("defaultKmsKeyName");
390  }
391 
396  MutableStorage()->removeMember("defaultKmsKeyName");
397  }
398 
399 
403  const StringPiece get_default_kms_key_name() const {
404  const Json::Value& v = Storage("defaultKmsKeyName");
405  if (v == Json::Value::null) return StringPiece("");
406  return StringPiece(v.asCString());
407  }
408 
417  void set_default_kms_key_name(const StringPiece& value) {
418  *MutableStorage("defaultKmsKeyName") = value.data();
419  }
420 
421  private:
422  void operator=(const BucketEncryption&);
423  }; // BucketEncryption
429  class BucketIamConfiguration : public client::JsonCppData {
430  public:
440  class BucketIamConfigurationBucketPolicyOnly : public client::JsonCppData {
441  public:
448 
454  explicit BucketIamConfigurationBucketPolicyOnly(const Json::Value& storage);
455 
461  explicit BucketIamConfigurationBucketPolicyOnly(Json::Value* storage);
462 
467 
474  const StringPiece GetTypeName() const {
475  return StringPiece("google_storage_api::BucketIamConfigurationBucketPolicyOnly");
476  }
477 
483  bool has_enabled() const {
484  return Storage().isMember("enabled");
485  }
486 
490  void clear_enabled() {
491  MutableStorage()->removeMember("enabled");
492  }
493 
494 
498  bool get_enabled() const {
499  const Json::Value& storage = Storage("enabled");
500  return client::JsonValueToCppValueHelper<bool >(storage);
501  }
502 
511  void set_enabled(bool value) {
512  client::SetJsonValueFromCppValueHelper<bool >(
513  value, MutableStorage("enabled"));
514  }
515 
521  bool has_locked_time() const {
522  return Storage().isMember("lockedTime");
523  }
524 
529  MutableStorage()->removeMember("lockedTime");
530  }
531 
532 
536  client::DateTime get_locked_time() const {
537  const Json::Value& storage = Storage("lockedTime");
538  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
539  }
540 
551  void set_locked_time(client::DateTime value) {
552  client::SetJsonValueFromCppValueHelper<client::DateTime >(
553  value, MutableStorage("lockedTime"));
554  }
555 
556  private:
557  void operator=(const BucketIamConfigurationBucketPolicyOnly&);
558  }; // BucketIamConfigurationBucketPolicyOnly
564  class BucketIamConfigurationUniformBucketLevelAccess : public client::JsonCppData {
565  public:
572 
578  explicit BucketIamConfigurationUniformBucketLevelAccess(const Json::Value& storage);
579 
585  explicit BucketIamConfigurationUniformBucketLevelAccess(Json::Value* storage);
586 
591 
598  const StringPiece GetTypeName() const {
599  return StringPiece("google_storage_api::BucketIamConfigurationUniformBucketLevelAccess");
600  }
601 
607  bool has_enabled() const {
608  return Storage().isMember("enabled");
609  }
610 
614  void clear_enabled() {
615  MutableStorage()->removeMember("enabled");
616  }
617 
618 
622  bool get_enabled() const {
623  const Json::Value& storage = Storage("enabled");
624  return client::JsonValueToCppValueHelper<bool >(storage);
625  }
626 
635  void set_enabled(bool value) {
636  client::SetJsonValueFromCppValueHelper<bool >(
637  value, MutableStorage("enabled"));
638  }
639 
645  bool has_locked_time() const {
646  return Storage().isMember("lockedTime");
647  }
648 
653  MutableStorage()->removeMember("lockedTime");
654  }
655 
656 
660  client::DateTime get_locked_time() const {
661  const Json::Value& storage = Storage("lockedTime");
662  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
663  }
664 
676  void set_locked_time(client::DateTime value) {
677  client::SetJsonValueFromCppValueHelper<client::DateTime >(
678  value, MutableStorage("lockedTime"));
679  }
680 
681  private:
682  void operator=(const BucketIamConfigurationUniformBucketLevelAccess&);
683  }; // BucketIamConfigurationUniformBucketLevelAccess
689  static BucketIamConfiguration* New();
690 
696  explicit BucketIamConfiguration(const Json::Value& storage);
697 
703  explicit BucketIamConfiguration(Json::Value* storage);
704 
708  virtual ~BucketIamConfiguration();
709 
715  const StringPiece GetTypeName() const {
716  return StringPiece("google_storage_api::BucketIamConfiguration");
717  }
718 
724  bool has_bucket_policy_only() const {
725  return Storage().isMember("bucketPolicyOnly");
726  }
727 
732  MutableStorage()->removeMember("bucketPolicyOnly");
733  }
734 
735 
741  const Json::Value& storage = Storage("bucketPolicyOnly");
742  return client::JsonValueToCppValueHelper<BucketIamConfigurationBucketPolicyOnly >(storage);
743  }
744 
758  Json::Value* storage = MutableStorage("bucketPolicyOnly");
759  return client::JsonValueToMutableCppValueHelper<BucketIamConfigurationBucketPolicyOnly >(storage);
760  }
761 
770  return Storage().isMember("uniformBucketLevelAccess");
771  }
772 
777  MutableStorage()->removeMember("uniformBucketLevelAccess");
778  }
779 
780 
786  const Json::Value& storage = Storage("uniformBucketLevelAccess");
787  return client::JsonValueToCppValueHelper<BucketIamConfigurationUniformBucketLevelAccess >(storage);
788  }
789 
799  Json::Value* storage = MutableStorage("uniformBucketLevelAccess");
800  return client::JsonValueToMutableCppValueHelper<BucketIamConfigurationUniformBucketLevelAccess >(storage);
801  }
802 
803  private:
804  void operator=(const BucketIamConfiguration&);
805  }; // BucketIamConfiguration
812  class BucketLifecycle : public client::JsonCppData {
813  public:
819  class BucketLifecycleRule : public client::JsonCppData {
820  public:
826  class BucketLifecycleRuleAction : public client::JsonCppData {
827  public:
833  static BucketLifecycleRuleAction* New();
834 
840  explicit BucketLifecycleRuleAction(const Json::Value& storage);
841 
847  explicit BucketLifecycleRuleAction(Json::Value* storage);
848 
852  virtual ~BucketLifecycleRuleAction();
853 
859  const StringPiece GetTypeName() const {
860  return StringPiece("google_storage_api::BucketLifecycleRuleAction");
861  }
862 
868  bool has_storage_class() const {
869  return Storage().isMember("storageClass");
870  }
871 
876  MutableStorage()->removeMember("storageClass");
877  }
878 
879 
883  const StringPiece get_storage_class() const {
884  const Json::Value& v = Storage("storageClass");
885  if (v == Json::Value::null) return StringPiece("");
886  return StringPiece(v.asCString());
887  }
888 
897  void set_storage_class(const StringPiece& value) {
898  *MutableStorage("storageClass") = value.data();
899  }
900 
906  bool has_type() const {
907  return Storage().isMember("type");
908  }
909 
913  void clear_type() {
914  MutableStorage()->removeMember("type");
915  }
916 
917 
921  const StringPiece get_type() const {
922  const Json::Value& v = Storage("type");
923  if (v == Json::Value::null) return StringPiece("");
924  return StringPiece(v.asCString());
925  }
926 
935  void set_type(const StringPiece& value) {
936  *MutableStorage("type") = value.data();
937  }
938 
939  private:
940  void operator=(const BucketLifecycleRuleAction&);
941  }; // BucketLifecycleRuleAction
947  class BucketLifecycleRuleCondition : public client::JsonCppData {
948  public:
954  static BucketLifecycleRuleCondition* New();
955 
961  explicit BucketLifecycleRuleCondition(const Json::Value& storage);
962 
968  explicit BucketLifecycleRuleCondition(Json::Value* storage);
969 
973  virtual ~BucketLifecycleRuleCondition();
974 
980  const StringPiece GetTypeName() const {
981  return StringPiece("google_storage_api::BucketLifecycleRuleCondition");
982  }
983 
989  bool has_age() const {
990  return Storage().isMember("age");
991  }
992 
996  void clear_age() {
997  MutableStorage()->removeMember("age");
998  }
999 
1000 
1004  int32 get_age() const {
1005  const Json::Value& storage = Storage("age");
1006  return client::JsonValueToCppValueHelper<int32 >(storage);
1007  }
1008 
1017  void set_age(int32 value) {
1018  client::SetJsonValueFromCppValueHelper<int32 >(
1019  value, MutableStorage("age"));
1020  }
1021 
1027  bool has_created_before() const {
1028  return Storage().isMember("createdBefore");
1029  }
1030 
1035  MutableStorage()->removeMember("createdBefore");
1036  }
1037 
1038 
1042  client::Date get_created_before() const {
1043  const Json::Value& storage = Storage("createdBefore");
1044  return client::JsonValueToCppValueHelper<client::Date >(storage);
1045  }
1046 
1056  void set_created_before(client::Date value) {
1057  client::SetJsonValueFromCppValueHelper<client::Date >(
1058  value, MutableStorage("createdBefore"));
1059  }
1060 
1066  bool has_is_live() const {
1067  return Storage().isMember("isLive");
1068  }
1069 
1073  void clear_is_live() {
1074  MutableStorage()->removeMember("isLive");
1075  }
1076 
1077 
1081  bool get_is_live() const {
1082  const Json::Value& storage = Storage("isLive");
1083  return client::JsonValueToCppValueHelper<bool >(storage);
1084  }
1085 
1095  void set_is_live(bool value) {
1096  client::SetJsonValueFromCppValueHelper<bool >(
1097  value, MutableStorage("isLive"));
1098  }
1099 
1105  bool has_matches_pattern() const {
1106  return Storage().isMember("matchesPattern");
1107  }
1108 
1113  MutableStorage()->removeMember("matchesPattern");
1114  }
1115 
1116 
1120  const StringPiece get_matches_pattern() const {
1121  const Json::Value& v = Storage("matchesPattern");
1122  if (v == Json::Value::null) return StringPiece("");
1123  return StringPiece(v.asCString());
1124  }
1125 
1138  void set_matches_pattern(const StringPiece& value) {
1139  *MutableStorage("matchesPattern") = value.data();
1140  }
1141 
1150  return Storage().isMember("matchesStorageClass");
1151  }
1152 
1157  MutableStorage()->removeMember("matchesStorageClass");
1158  }
1159 
1160 
1165  const client::JsonCppArray<string > get_matches_storage_class() const {
1166  const Json::Value& storage = Storage("matchesStorageClass");
1167  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
1168  }
1169 
1180  client::JsonCppArray<string > mutable_matchesStorageClass() {
1181  Json::Value* storage = MutableStorage("matchesStorageClass");
1182  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
1183  }
1184 
1191  bool has_num_newer_versions() const {
1192  return Storage().isMember("numNewerVersions");
1193  }
1194 
1199  MutableStorage()->removeMember("numNewerVersions");
1200  }
1201 
1202 
1206  int32 get_num_newer_versions() const {
1207  const Json::Value& storage = Storage("numNewerVersions");
1208  return client::JsonValueToCppValueHelper<int32 >(storage);
1209  }
1210 
1220  void set_num_newer_versions(int32 value) {
1221  client::SetJsonValueFromCppValueHelper<int32 >(
1222  value, MutableStorage("numNewerVersions"));
1223  }
1224 
1225  private:
1226  void operator=(const BucketLifecycleRuleCondition&);
1227  }; // BucketLifecycleRuleCondition
1233  static BucketLifecycleRule* New();
1234 
1240  explicit BucketLifecycleRule(const Json::Value& storage);
1241 
1247  explicit BucketLifecycleRule(Json::Value* storage);
1248 
1252  virtual ~BucketLifecycleRule();
1253 
1259  const StringPiece GetTypeName() const {
1260  return StringPiece("google_storage_api::BucketLifecycleRule");
1261  }
1262 
1268  bool has_action() const {
1269  return Storage().isMember("action");
1270  }
1271 
1275  void clear_action() {
1276  MutableStorage()->removeMember("action");
1277  }
1278 
1279 
1284  const Json::Value& storage = Storage("action");
1285  return client::JsonValueToCppValueHelper<BucketLifecycleRuleAction >(storage);
1286  }
1287 
1297  Json::Value* storage = MutableStorage("action");
1298  return client::JsonValueToMutableCppValueHelper<BucketLifecycleRuleAction >(storage);
1299  }
1300 
1306  bool has_condition() const {
1307  return Storage().isMember("condition");
1308  }
1309 
1314  MutableStorage()->removeMember("condition");
1315  }
1316 
1317 
1322  const Json::Value& storage = Storage("condition");
1323  return client::JsonValueToCppValueHelper<BucketLifecycleRuleCondition >(storage);
1324  }
1325 
1335  Json::Value* storage = MutableStorage("condition");
1336  return client::JsonValueToMutableCppValueHelper<BucketLifecycleRuleCondition >(storage);
1337  }
1338 
1339  private:
1340  void operator=(const BucketLifecycleRule&);
1341  }; // BucketLifecycleRule
1347  static BucketLifecycle* New();
1348 
1354  explicit BucketLifecycle(const Json::Value& storage);
1355 
1361  explicit BucketLifecycle(Json::Value* storage);
1362 
1366  virtual ~BucketLifecycle();
1367 
1373  const StringPiece GetTypeName() const {
1374  return StringPiece("google_storage_api::BucketLifecycle");
1375  }
1376 
1382  bool has_rule() const {
1383  return Storage().isMember("rule");
1384  }
1385 
1389  void clear_rule() {
1390  MutableStorage()->removeMember("rule");
1391  }
1392 
1393 
1397  const client::JsonCppArray<BucketLifecycleRule > get_rule() const {
1398  const Json::Value& storage = Storage("rule");
1399  return client::JsonValueToCppValueHelper<client::JsonCppArray<BucketLifecycleRule > >(storage);
1400  }
1401 
1410  client::JsonCppArray<BucketLifecycleRule > mutable_rule() {
1411  Json::Value* storage = MutableStorage("rule");
1412  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<BucketLifecycleRule > >(storage);
1413  }
1414 
1415  private:
1416  void operator=(const BucketLifecycle&);
1417  }; // BucketLifecycle
1424  class BucketLogging : public client::JsonCppData {
1425  public:
1431  static BucketLogging* New();
1432 
1438  explicit BucketLogging(const Json::Value& storage);
1439 
1445  explicit BucketLogging(Json::Value* storage);
1446 
1450  virtual ~BucketLogging();
1451 
1457  const StringPiece GetTypeName() const {
1458  return StringPiece("google_storage_api::BucketLogging");
1459  }
1460 
1466  bool has_log_bucket() const {
1467  return Storage().isMember("logBucket");
1468  }
1469 
1474  MutableStorage()->removeMember("logBucket");
1475  }
1476 
1477 
1481  const StringPiece get_log_bucket() const {
1482  const Json::Value& v = Storage("logBucket");
1483  if (v == Json::Value::null) return StringPiece("");
1484  return StringPiece(v.asCString());
1485  }
1486 
1494  void set_log_bucket(const StringPiece& value) {
1495  *MutableStorage("logBucket") = value.data();
1496  }
1497 
1503  bool has_log_object_prefix() const {
1504  return Storage().isMember("logObjectPrefix");
1505  }
1506 
1511  MutableStorage()->removeMember("logObjectPrefix");
1512  }
1513 
1514 
1518  const StringPiece get_log_object_prefix() const {
1519  const Json::Value& v = Storage("logObjectPrefix");
1520  if (v == Json::Value::null) return StringPiece("");
1521  return StringPiece(v.asCString());
1522  }
1523 
1531  void set_log_object_prefix(const StringPiece& value) {
1532  *MutableStorage("logObjectPrefix") = value.data();
1533  }
1534 
1535  private:
1536  void operator=(const BucketLogging&);
1537  }; // BucketLogging
1543  class BucketOwner : public client::JsonCppData {
1544  public:
1550  static BucketOwner* New();
1551 
1557  explicit BucketOwner(const Json::Value& storage);
1558 
1564  explicit BucketOwner(Json::Value* storage);
1565 
1569  virtual ~BucketOwner();
1570 
1576  const StringPiece GetTypeName() const {
1577  return StringPiece("google_storage_api::BucketOwner");
1578  }
1579 
1585  bool has_entity() const {
1586  return Storage().isMember("entity");
1587  }
1588 
1592  void clear_entity() {
1593  MutableStorage()->removeMember("entity");
1594  }
1595 
1596 
1600  const StringPiece get_entity() const {
1601  const Json::Value& v = Storage("entity");
1602  if (v == Json::Value::null) return StringPiece("");
1603  return StringPiece(v.asCString());
1604  }
1605 
1613  void set_entity(const StringPiece& value) {
1614  *MutableStorage("entity") = value.data();
1615  }
1616 
1622  bool has_entity_id() const {
1623  return Storage().isMember("entityId");
1624  }
1625 
1630  MutableStorage()->removeMember("entityId");
1631  }
1632 
1633 
1637  const StringPiece get_entity_id() const {
1638  const Json::Value& v = Storage("entityId");
1639  if (v == Json::Value::null) return StringPiece("");
1640  return StringPiece(v.asCString());
1641  }
1642 
1650  void set_entity_id(const StringPiece& value) {
1651  *MutableStorage("entityId") = value.data();
1652  }
1653 
1654  private:
1655  void operator=(const BucketOwner&);
1656  }; // BucketOwner
1670  class BucketRetentionPolicy : public client::JsonCppData {
1671  public:
1677  static BucketRetentionPolicy* New();
1678 
1684  explicit BucketRetentionPolicy(const Json::Value& storage);
1685 
1691  explicit BucketRetentionPolicy(Json::Value* storage);
1692 
1696  virtual ~BucketRetentionPolicy();
1697 
1703  const StringPiece GetTypeName() const {
1704  return StringPiece("google_storage_api::BucketRetentionPolicy");
1705  }
1706 
1712  bool has_effective_time() const {
1713  return Storage().isMember("effectiveTime");
1714  }
1715 
1720  MutableStorage()->removeMember("effectiveTime");
1721  }
1722 
1723 
1727  client::DateTime get_effective_time() const {
1728  const Json::Value& storage = Storage("effectiveTime");
1729  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1730  }
1731 
1740  void set_effective_time(client::DateTime value) {
1741  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1742  value, MutableStorage("effectiveTime"));
1743  }
1744 
1750  bool has_is_locked() const {
1751  return Storage().isMember("isLocked");
1752  }
1753 
1758  MutableStorage()->removeMember("isLocked");
1759  }
1760 
1761 
1765  bool get_is_locked() const {
1766  const Json::Value& storage = Storage("isLocked");
1767  return client::JsonValueToCppValueHelper<bool >(storage);
1768  }
1769 
1777  void set_is_locked(bool value) {
1778  client::SetJsonValueFromCppValueHelper<bool >(
1779  value, MutableStorage("isLocked"));
1780  }
1781 
1787  bool has_retention_period() const {
1788  return Storage().isMember("retentionPeriod");
1789  }
1790 
1795  MutableStorage()->removeMember("retentionPeriod");
1796  }
1797 
1798 
1802  int64 get_retention_period() const {
1803  const Json::Value& storage = Storage("retentionPeriod");
1804  return client::JsonValueToCppValueHelper<int64 >(storage);
1805  }
1806 
1817  void set_retention_period(int64 value) {
1818  client::SetJsonValueFromCppValueHelper<int64 >(
1819  value, MutableStorage("retentionPeriod"));
1820  }
1821 
1822  private:
1823  void operator=(const BucketRetentionPolicy&);
1824  }; // BucketRetentionPolicy
1830  class BucketVersioning : public client::JsonCppData {
1831  public:
1837  static BucketVersioning* New();
1838 
1844  explicit BucketVersioning(const Json::Value& storage);
1845 
1851  explicit BucketVersioning(Json::Value* storage);
1852 
1856  virtual ~BucketVersioning();
1857 
1863  const StringPiece GetTypeName() const {
1864  return StringPiece("google_storage_api::BucketVersioning");
1865  }
1866 
1872  bool has_enabled() const {
1873  return Storage().isMember("enabled");
1874  }
1875 
1879  void clear_enabled() {
1880  MutableStorage()->removeMember("enabled");
1881  }
1882 
1883 
1887  bool get_enabled() const {
1888  const Json::Value& storage = Storage("enabled");
1889  return client::JsonValueToCppValueHelper<bool >(storage);
1890  }
1891 
1899  void set_enabled(bool value) {
1900  client::SetJsonValueFromCppValueHelper<bool >(
1901  value, MutableStorage("enabled"));
1902  }
1903 
1904  private:
1905  void operator=(const BucketVersioning&);
1906  }; // BucketVersioning
1914  class BucketWebsite : public client::JsonCppData {
1915  public:
1921  static BucketWebsite* New();
1922 
1928  explicit BucketWebsite(const Json::Value& storage);
1929 
1935  explicit BucketWebsite(Json::Value* storage);
1936 
1940  virtual ~BucketWebsite();
1941 
1947  const StringPiece GetTypeName() const {
1948  return StringPiece("google_storage_api::BucketWebsite");
1949  }
1950 
1956  bool has_main_page_suffix() const {
1957  return Storage().isMember("mainPageSuffix");
1958  }
1959 
1964  MutableStorage()->removeMember("mainPageSuffix");
1965  }
1966 
1967 
1971  const StringPiece get_main_page_suffix() const {
1972  const Json::Value& v = Storage("mainPageSuffix");
1973  if (v == Json::Value::null) return StringPiece("");
1974  return StringPiece(v.asCString());
1975  }
1976 
1987  void set_main_page_suffix(const StringPiece& value) {
1988  *MutableStorage("mainPageSuffix") = value.data();
1989  }
1990 
1996  bool has_not_found_page() const {
1997  return Storage().isMember("notFoundPage");
1998  }
1999 
2004  MutableStorage()->removeMember("notFoundPage");
2005  }
2006 
2007 
2011  const StringPiece get_not_found_page() const {
2012  const Json::Value& v = Storage("notFoundPage");
2013  if (v == Json::Value::null) return StringPiece("");
2014  return StringPiece(v.asCString());
2015  }
2016 
2026  void set_not_found_page(const StringPiece& value) {
2027  *MutableStorage("notFoundPage") = value.data();
2028  }
2029 
2030  private:
2031  void operator=(const BucketWebsite&);
2032  }; // BucketWebsite
2038  static Bucket* New();
2039 
2045  explicit Bucket(const Json::Value& storage);
2046 
2052  explicit Bucket(Json::Value* storage);
2053 
2057  virtual ~Bucket();
2058 
2064  const StringPiece GetTypeName() const {
2065  return StringPiece("google_storage_api::Bucket");
2066  }
2067 
2073  bool has_acl() const {
2074  return Storage().isMember("acl");
2075  }
2076 
2080  void clear_acl() {
2081  MutableStorage()->removeMember("acl");
2082  }
2083 
2084 
2088  const client::JsonCppArray<BucketAccessControl > get_acl() const;
2089 
2097  client::JsonCppArray<BucketAccessControl > mutable_acl();
2098 
2104  bool has_billing() const {
2105  return Storage().isMember("billing");
2106  }
2107 
2111  void clear_billing() {
2112  MutableStorage()->removeMember("billing");
2113  }
2114 
2115 
2119  const BucketBilling get_billing() const {
2120  const Json::Value& storage = Storage("billing");
2121  return client::JsonValueToCppValueHelper<BucketBilling >(storage);
2122  }
2123 
2132  Json::Value* storage = MutableStorage("billing");
2133  return client::JsonValueToMutableCppValueHelper<BucketBilling >(storage);
2134  }
2135 
2141  bool has_cors() const {
2142  return Storage().isMember("cors");
2143  }
2144 
2148  void clear_cors() {
2149  MutableStorage()->removeMember("cors");
2150  }
2151 
2152 
2156  const client::JsonCppArray<BucketCors > get_cors() const {
2157  const Json::Value& storage = Storage("cors");
2158  return client::JsonValueToCppValueHelper<client::JsonCppArray<BucketCors > >(storage);
2159  }
2160 
2168  client::JsonCppArray<BucketCors > mutable_cors() {
2169  Json::Value* storage = MutableStorage("cors");
2170  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<BucketCors > >(storage);
2171  }
2172 
2179  return Storage().isMember("defaultEventBasedHold");
2180  }
2181 
2186  MutableStorage()->removeMember("defaultEventBasedHold");
2187  }
2188 
2189 
2194  const Json::Value& storage = Storage("defaultEventBasedHold");
2195  return client::JsonValueToCppValueHelper<bool >(storage);
2196  }
2197 
2216  void set_default_event_based_hold(bool value) {
2217  client::SetJsonValueFromCppValueHelper<bool >(
2218  value, MutableStorage("defaultEventBasedHold"));
2219  }
2220 
2226  bool has_default_object_acl() const {
2227  return Storage().isMember("defaultObjectAcl");
2228  }
2229 
2234  MutableStorage()->removeMember("defaultObjectAcl");
2235  }
2236 
2237 
2242  const client::JsonCppArray<ObjectAccessControl > get_default_object_acl() const;
2243 
2252  client::JsonCppArray<ObjectAccessControl > mutable_defaultObjectAcl();
2253 
2259  bool has_encryption() const {
2260  return Storage().isMember("encryption");
2261  }
2262 
2267  MutableStorage()->removeMember("encryption");
2268  }
2269 
2270 
2275  const Json::Value& storage = Storage("encryption");
2276  return client::JsonValueToCppValueHelper<BucketEncryption >(storage);
2277  }
2278 
2288  Json::Value* storage = MutableStorage("encryption");
2289  return client::JsonValueToMutableCppValueHelper<BucketEncryption >(storage);
2290  }
2291 
2297  bool has_etag() const {
2298  return Storage().isMember("etag");
2299  }
2300 
2304  void clear_etag() {
2305  MutableStorage()->removeMember("etag");
2306  }
2307 
2308 
2312  const StringPiece get_etag() const {
2313  const Json::Value& v = Storage("etag");
2314  if (v == Json::Value::null) return StringPiece("");
2315  return StringPiece(v.asCString());
2316  }
2317 
2325  void set_etag(const StringPiece& value) {
2326  *MutableStorage("etag") = value.data();
2327  }
2328 
2334  bool has_iam_configuration() const {
2335  return Storage().isMember("iamConfiguration");
2336  }
2337 
2342  MutableStorage()->removeMember("iamConfiguration");
2343  }
2344 
2345 
2351  const Json::Value& storage = Storage("iamConfiguration");
2352  return client::JsonValueToCppValueHelper<BucketIamConfiguration >(storage);
2353  }
2354 
2364  Json::Value* storage = MutableStorage("iamConfiguration");
2365  return client::JsonValueToMutableCppValueHelper<BucketIamConfiguration >(storage);
2366  }
2367 
2373  bool has_id() const {
2374  return Storage().isMember("id");
2375  }
2376 
2380  void clear_id() {
2381  MutableStorage()->removeMember("id");
2382  }
2383 
2384 
2388  const StringPiece get_id() const {
2389  const Json::Value& v = Storage("id");
2390  if (v == Json::Value::null) return StringPiece("");
2391  return StringPiece(v.asCString());
2392  }
2393 
2401  void set_id(const StringPiece& value) {
2402  *MutableStorage("id") = value.data();
2403  }
2404 
2410  bool has_kind() const {
2411  return Storage().isMember("kind");
2412  }
2413 
2417  void clear_kind() {
2418  MutableStorage()->removeMember("kind");
2419  }
2420 
2421 
2425  const StringPiece get_kind() const {
2426  const Json::Value& v = Storage("kind");
2427  if (v == Json::Value::null) return StringPiece("");
2428  return StringPiece(v.asCString());
2429  }
2430 
2438  void set_kind(const StringPiece& value) {
2439  *MutableStorage("kind") = value.data();
2440  }
2441 
2447  bool has_labels() const {
2448  return Storage().isMember("labels");
2449  }
2450 
2454  void clear_labels() {
2455  MutableStorage()->removeMember("labels");
2456  }
2457 
2458 
2462  const client::JsonCppAssociativeArray<string > get_labels() const {
2463  const Json::Value& storage = Storage("labels");
2464  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
2465  }
2466 
2474  client::JsonCppAssociativeArray<string > mutable_labels() {
2475  Json::Value* storage = MutableStorage("labels");
2476  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
2477  }
2478 
2484  bool has_lifecycle() const {
2485  return Storage().isMember("lifecycle");
2486  }
2487 
2492  MutableStorage()->removeMember("lifecycle");
2493  }
2494 
2495 
2500  const Json::Value& storage = Storage("lifecycle");
2501  return client::JsonValueToCppValueHelper<BucketLifecycle >(storage);
2502  }
2503 
2514  Json::Value* storage = MutableStorage("lifecycle");
2515  return client::JsonValueToMutableCppValueHelper<BucketLifecycle >(storage);
2516  }
2517 
2523  bool has_location() const {
2524  return Storage().isMember("location");
2525  }
2526 
2531  MutableStorage()->removeMember("location");
2532  }
2533 
2534 
2538  const StringPiece get_location() const {
2539  const Json::Value& v = Storage("location");
2540  if (v == Json::Value::null) return StringPiece("");
2541  return StringPiece(v.asCString());
2542  }
2543 
2553  void set_location(const StringPiece& value) {
2554  *MutableStorage("location") = value.data();
2555  }
2556 
2562  bool has_location_type() const {
2563  return Storage().isMember("locationType");
2564  }
2565 
2570  MutableStorage()->removeMember("locationType");
2571  }
2572 
2573 
2577  const StringPiece get_location_type() const {
2578  const Json::Value& v = Storage("locationType");
2579  if (v == Json::Value::null) return StringPiece("");
2580  return StringPiece(v.asCString());
2581  }
2582 
2590  void set_location_type(const StringPiece& value) {
2591  *MutableStorage("locationType") = value.data();
2592  }
2593 
2599  bool has_logging() const {
2600  return Storage().isMember("logging");
2601  }
2602 
2606  void clear_logging() {
2607  MutableStorage()->removeMember("logging");
2608  }
2609 
2610 
2614  const BucketLogging get_logging() const {
2615  const Json::Value& storage = Storage("logging");
2616  return client::JsonValueToCppValueHelper<BucketLogging >(storage);
2617  }
2618 
2628  Json::Value* storage = MutableStorage("logging");
2629  return client::JsonValueToMutableCppValueHelper<BucketLogging >(storage);
2630  }
2631 
2637  bool has_metageneration() const {
2638  return Storage().isMember("metageneration");
2639  }
2640 
2645  MutableStorage()->removeMember("metageneration");
2646  }
2647 
2648 
2652  int64 get_metageneration() const {
2653  const Json::Value& storage = Storage("metageneration");
2654  return client::JsonValueToCppValueHelper<int64 >(storage);
2655  }
2656 
2664  void set_metageneration(int64 value) {
2665  client::SetJsonValueFromCppValueHelper<int64 >(
2666  value, MutableStorage("metageneration"));
2667  }
2668 
2674  bool has_name() const {
2675  return Storage().isMember("name");
2676  }
2677 
2681  void clear_name() {
2682  MutableStorage()->removeMember("name");
2683  }
2684 
2685 
2689  const StringPiece get_name() const {
2690  const Json::Value& v = Storage("name");
2691  if (v == Json::Value::null) return StringPiece("");
2692  return StringPiece(v.asCString());
2693  }
2694 
2702  void set_name(const StringPiece& value) {
2703  *MutableStorage("name") = value.data();
2704  }
2705 
2711  bool has_owner() const {
2712  return Storage().isMember("owner");
2713  }
2714 
2718  void clear_owner() {
2719  MutableStorage()->removeMember("owner");
2720  }
2721 
2722 
2726  const BucketOwner get_owner() const {
2727  const Json::Value& storage = Storage("owner");
2728  return client::JsonValueToCppValueHelper<BucketOwner >(storage);
2729  }
2730 
2739  Json::Value* storage = MutableStorage("owner");
2740  return client::JsonValueToMutableCppValueHelper<BucketOwner >(storage);
2741  }
2742 
2748  bool has_project_number() const {
2749  return Storage().isMember("projectNumber");
2750  }
2751 
2756  MutableStorage()->removeMember("projectNumber");
2757  }
2758 
2759 
2763  uint64 get_project_number() const {
2764  const Json::Value& storage = Storage("projectNumber");
2765  return client::JsonValueToCppValueHelper<uint64 >(storage);
2766  }
2767 
2775  void set_project_number(uint64 value) {
2776  client::SetJsonValueFromCppValueHelper<uint64 >(
2777  value, MutableStorage("projectNumber"));
2778  }
2779 
2785  bool has_retention_policy() const {
2786  return Storage().isMember("retentionPolicy");
2787  }
2788 
2793  MutableStorage()->removeMember("retentionPolicy");
2794  }
2795 
2796 
2802  const Json::Value& storage = Storage("retentionPolicy");
2803  return client::JsonValueToCppValueHelper<BucketRetentionPolicy >(storage);
2804  }
2805 
2823  Json::Value* storage = MutableStorage("retentionPolicy");
2824  return client::JsonValueToMutableCppValueHelper<BucketRetentionPolicy >(storage);
2825  }
2826 
2832  bool has_self_link() const {
2833  return Storage().isMember("selfLink");
2834  }
2835 
2840  MutableStorage()->removeMember("selfLink");
2841  }
2842 
2843 
2847  const StringPiece get_self_link() const {
2848  const Json::Value& v = Storage("selfLink");
2849  if (v == Json::Value::null) return StringPiece("");
2850  return StringPiece(v.asCString());
2851  }
2852 
2860  void set_self_link(const StringPiece& value) {
2861  *MutableStorage("selfLink") = value.data();
2862  }
2863 
2869  bool has_storage_class() const {
2870  return Storage().isMember("storageClass");
2871  }
2872 
2877  MutableStorage()->removeMember("storageClass");
2878  }
2879 
2880 
2884  const StringPiece get_storage_class() const {
2885  const Json::Value& v = Storage("storageClass");
2886  if (v == Json::Value::null) return StringPiece("");
2887  return StringPiece(v.asCString());
2888  }
2889 
2903  void set_storage_class(const StringPiece& value) {
2904  *MutableStorage("storageClass") = value.data();
2905  }
2906 
2912  bool has_time_created() const {
2913  return Storage().isMember("timeCreated");
2914  }
2915 
2920  MutableStorage()->removeMember("timeCreated");
2921  }
2922 
2923 
2927  client::DateTime get_time_created() const {
2928  const Json::Value& storage = Storage("timeCreated");
2929  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
2930  }
2931 
2939  void set_time_created(client::DateTime value) {
2940  client::SetJsonValueFromCppValueHelper<client::DateTime >(
2941  value, MutableStorage("timeCreated"));
2942  }
2943 
2949  bool has_updated() const {
2950  return Storage().isMember("updated");
2951  }
2952 
2956  void clear_updated() {
2957  MutableStorage()->removeMember("updated");
2958  }
2959 
2960 
2964  client::DateTime get_updated() const {
2965  const Json::Value& storage = Storage("updated");
2966  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
2967  }
2968 
2976  void set_updated(client::DateTime value) {
2977  client::SetJsonValueFromCppValueHelper<client::DateTime >(
2978  value, MutableStorage("updated"));
2979  }
2980 
2986  bool has_versioning() const {
2987  return Storage().isMember("versioning");
2988  }
2989 
2994  MutableStorage()->removeMember("versioning");
2995  }
2996 
2997 
3002  const Json::Value& storage = Storage("versioning");
3003  return client::JsonValueToCppValueHelper<BucketVersioning >(storage);
3004  }
3005 
3015  Json::Value* storage = MutableStorage("versioning");
3016  return client::JsonValueToMutableCppValueHelper<BucketVersioning >(storage);
3017  }
3018 
3024  bool has_website() const {
3025  return Storage().isMember("website");
3026  }
3027 
3031  void clear_website() {
3032  MutableStorage()->removeMember("website");
3033  }
3034 
3035 
3039  const BucketWebsite get_website() const {
3040  const Json::Value& storage = Storage("website");
3041  return client::JsonValueToCppValueHelper<BucketWebsite >(storage);
3042  }
3043 
3054  Json::Value* storage = MutableStorage("website");
3055  return client::JsonValueToMutableCppValueHelper<BucketWebsite >(storage);
3056  }
3057 
3063  bool has_zone_affinity() const {
3064  return Storage().isMember("zone_affinity");
3065  }
3066 
3071  MutableStorage()->removeMember("zone_affinity");
3072  }
3073 
3074 
3078  const client::JsonCppArray<string > get_zone_affinity() const {
3079  const Json::Value& storage = Storage("zone_affinity");
3080  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
3081  }
3082 
3095  client::JsonCppArray<string > mutable_zone_affinity() {
3096  Json::Value* storage = MutableStorage("zone_affinity");
3097  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
3098  }
3099 
3100  private:
3101  void operator=(const Bucket&);
3102 }; // Bucket
3103 } // namespace google_storage_api
3104 #endif // GOOGLE_STORAGE_API_BUCKET_H_
void set_requester_pays(bool value)
Definition: bucket.h:131
void set_default_event_based_hold(bool value)
Definition: bucket.h:2216
void clear_response_header()
Definition: bucket.h:310
void clear_retention_period()
Definition: bucket.h:1794
void set_location_type(const StringPiece &value)
Definition: bucket.h:2590
const StringPiece get_entity() const
Definition: bucket.h:1600
void clear_log_object_prefix()
Definition: bucket.h:1510
void set_metageneration(int64 value)
Definition: bucket.h:2664
void clear_name()
Definition: bucket.h:2681
bool has_default_event_based_hold() const
Definition: bucket.h:2178
bool has_origin() const
Definition: bucket.h:264
const StringPiece get_entity_id() const
Definition: bucket.h:1637
BucketVersioning mutable_versioning()
Definition: bucket.h:3014
void clear_method()
Definition: bucket.h:231
bool has_log_object_prefix() const
Definition: bucket.h:1503
bool has_location_type() const
Definition: bucket.h:2562
BucketIamConfiguration mutable_iamConfiguration()
Definition: bucket.h:2363
bool has_method() const
Definition: bucket.h:224
const BucketIamConfigurationBucketPolicyOnly get_bucket_policy_only() const
Definition: bucket.h:740
const client::JsonCppArray< string > get_response_header() const
Definition: bucket.h:319
bool has_metageneration() const
Definition: bucket.h:2637
BucketEncryption mutable_encryption()
Definition: bucket.h:2287
const StringPiece get_etag() const
Definition: bucket.h:2312
bool has_is_locked() const
Definition: bucket.h:1750
client::JsonCppAssociativeArray< string > mutable_labels()
Definition: bucket.h:2474
const client::JsonCppArray< string > get_zone_affinity() const
Definition: bucket.h:3078
bool has_name() const
Definition: bucket.h:2674
bool has_encryption() const
Definition: bucket.h:2259
client::JsonCppArray< string > mutable_method()
Definition: bucket.h:254
bool has_labels() const
Definition: bucket.h:2447
void set_self_link(const StringPiece &value)
Definition: bucket.h:2860
void clear_lifecycle()
Definition: bucket.h:2491
void set_kind(const StringPiece &value)
Definition: bucket.h:2438
const StringPiece get_location() const
Definition: bucket.h:2538
const BucketLifecycleRuleAction get_action() const
Definition: bucket.h:1283
void clear_default_object_acl()
Definition: bucket.h:2233
bool get_is_locked() const
Definition: bucket.h:1765
void clear_time_created()
Definition: bucket.h:2919
bool has_bucket_policy_only() const
Definition: bucket.h:724
const StringPiece GetTypeName() const
Definition: bucket.h:177
bool has_logging() const
Definition: bucket.h:2599
bool has_enabled() const
Definition: bucket.h:1872
bool has_billing() const
Definition: bucket.h:2104
bool has_owner() const
Definition: bucket.h:2711
const BucketBilling get_billing() const
Definition: bucket.h:2119
void clear_is_locked()
Definition: bucket.h:1757
void clear_iam_configuration()
Definition: bucket.h:2341
bool has_etag() const
Definition: bucket.h:2297
void clear_metageneration()
Definition: bucket.h:2644
const StringPiece get_name() const
Definition: bucket.h:2689
BucketBilling mutable_billing()
Definition: bucket.h:2131
client::JsonCppArray< BucketLifecycleRule > mutable_rule()
Definition: bucket.h:1410
bool has_requester_pays() const
Definition: bucket.h:104
void clear_log_bucket()
Definition: bucket.h:1473
void clear_effective_time()
Definition: bucket.h:1719
void clear_self_link()
Definition: bucket.h:2839
const BucketWebsite get_website() const
Definition: bucket.h:3039
BucketLifecycleRuleCondition mutable_condition()
Definition: bucket.h:1334
void clear_cors()
Definition: bucket.h:2148
void set_name(const StringPiece &value)
Definition: bucket.h:2702
const StringPiece GetTypeName() const
Definition: bucket.h:1457
bool has_time_created() const
Definition: bucket.h:2912
bool has_website() const
Definition: bucket.h:3024
bool has_main_page_suffix() const
Definition: bucket.h:1956
int64 get_retention_period() const
Definition: bucket.h:1802
int64 get_metageneration() const
Definition: bucket.h:2652
const BucketIamConfiguration get_iam_configuration() const
Definition: bucket.h:2350
bool has_id() const
Definition: bucket.h:2373
bool has_acl() const
Definition: bucket.h:2073
void clear_billing()
Definition: bucket.h:2111
bool get_requester_pays() const
Definition: bucket.h:119
void set_effective_time(client::DateTime value)
Definition: bucket.h:1740
void clear_updated()
Definition: bucket.h:2956
bool has_versioning() const
Definition: bucket.h:2986
void set_is_locked(bool value)
Definition: bucket.h:1777
BucketWebsite mutable_website()
Definition: bucket.h:3053
void set_default_kms_key_name(const StringPiece &value)
Definition: bucket.h:417
void set_entity(const StringPiece &value)
Definition: bucket.h:1613
void clear_versioning()
Definition: bucket.h:2993
BucketOwner mutable_owner()
Definition: bucket.h:2738
bool has_lifecycle() const
Definition: bucket.h:2484
const BucketEncryption get_encryption() const
Definition: bucket.h:2274
void set_id(const StringPiece &value)
Definition: bucket.h:2401
BucketLogging mutable_logging()
Definition: bucket.h:2627
bool has_entity_id() const
Definition: bucket.h:1622
void set_log_bucket(const StringPiece &value)
Definition: bucket.h:1494
bool has_project_number() const
Definition: bucket.h:2748
void clear_main_page_suffix()
Definition: bucket.h:1963
bool has_response_header() const
Definition: bucket.h:303
bool has_default_object_acl() const
Definition: bucket.h:2226
BucketLifecycleRuleAction mutable_action()
Definition: bucket.h:1296
bool has_rule() const
Definition: bucket.h:1382
int32 get_max_age_seconds() const
Definition: bucket.h:201
const StringPiece GetTypeName() const
Definition: bucket.h:95
void set_project_number(uint64 value)
Definition: bucket.h:2775
bool get_default_event_based_hold() const
Definition: bucket.h:2193
const StringPiece get_log_object_prefix() const
Definition: bucket.h:1518
const StringPiece GetTypeName() const
Definition: bucket.h:1373
const client::JsonCppArray< string > get_matches_storage_class() const
Definition: bucket.h:1165
void set_max_age_seconds(int32 value)
Definition: bucket.h:214
const BucketLifecycleRuleCondition get_condition() const
Definition: bucket.h:1321
void clear_website()
Definition: bucket.h:3031
void clear_location_type()
Definition: bucket.h:2569
bool has_log_bucket() const
Definition: bucket.h:1466
const StringPiece get_kind() const
Definition: bucket.h:2425
BucketIamConfigurationUniformBucketLevelAccess mutable_uniformBucketLevelAccess()
Definition: bucket.h:798
void clear_default_event_based_hold()
Definition: bucket.h:2185
bool has_iam_configuration() const
Definition: bucket.h:2334
const BucketRetentionPolicy get_retention_policy() const
Definition: bucket.h:2801
bool has_effective_time() const
Definition: bucket.h:1712
client::JsonCppArray< string > mutable_matchesStorageClass()
Definition: bucket.h:1180
void clear_encryption()
Definition: bucket.h:2266
bool has_default_kms_key_name() const
Definition: bucket.h:388
void clear_rule()
Definition: bucket.h:1389
void clear_not_found_page()
Definition: bucket.h:2003
bool has_kind() const
Definition: bucket.h:2410
client::DateTime get_effective_time() const
Definition: bucket.h:1727
Definition: bucket.h:43
void clear_labels()
Definition: bucket.h:2454
const StringPiece GetTypeName() const
Definition: bucket.h:1576
bool has_max_age_seconds() const
Definition: bucket.h:186
void clear_owner()
Definition: bucket.h:2718
bool has_uniform_bucket_level_access() const
Definition: bucket.h:769
void clear_location()
Definition: bucket.h:2530
client::JsonCppArray< BucketCors > mutable_cors()
Definition: bucket.h:2168
const StringPiece GetTypeName() const
Definition: bucket.h:2064
const StringPiece GetTypeName() const
Definition: bucket.h:1259
const StringPiece get_log_bucket() const
Definition: bucket.h:1481
void set_location(const StringPiece &value)
Definition: bucket.h:2553
void clear_id()
Definition: bucket.h:2380
void set_not_found_page(const StringPiece &value)
Definition: bucket.h:2026
void clear_max_age_seconds()
Definition: bucket.h:193
BucketRetentionPolicy mutable_retentionPolicy()
Definition: bucket.h:2822
client::JsonCppArray< string > mutable_origin()
Definition: bucket.h:293
void set_retention_period(int64 value)
Definition: bucket.h:1817
const StringPiece get_not_found_page() const
Definition: bucket.h:2011
client::JsonCppArray< string > mutable_responseHeader()
Definition: bucket.h:333
const BucketVersioning get_versioning() const
Definition: bucket.h:3001
void set_storage_class(const StringPiece &value)
Definition: bucket.h:2903
const client::JsonCppAssociativeArray< string > get_labels() const
Definition: bucket.h:2462
bool has_location() const
Definition: bucket.h:2523
void clear_kind()
Definition: bucket.h:2417
client::DateTime get_time_created() const
Definition: bucket.h:2927
void clear_entity_id()
Definition: bucket.h:1629
void clear_requester_pays()
Definition: bucket.h:111
void clear_default_kms_key_name()
Definition: bucket.h:395
void clear_zone_affinity()
Definition: bucket.h:3070
const client::JsonCppArray< string > get_method() const
Definition: bucket.h:239
void clear_logging()
Definition: bucket.h:2606
BucketLifecycle mutable_lifecycle()
Definition: bucket.h:2513
const StringPiece GetTypeName() const
Definition: bucket.h:715
void set_entity_id(const StringPiece &value)
Definition: bucket.h:1650
void clear_etag()
Definition: bucket.h:2304
const StringPiece get_self_link() const
Definition: bucket.h:2847
void set_log_object_prefix(const StringPiece &value)
Definition: bucket.h:1531
const StringPiece GetTypeName() const
Definition: bucket.h:1947
void clear_enabled()
Definition: bucket.h:1879
const BucketOwner get_owner() const
Definition: bucket.h:2726
const StringPiece get_storage_class() const
Definition: bucket.h:2884
const StringPiece get_id() const
Definition: bucket.h:2388
BucketIamConfigurationBucketPolicyOnly mutable_bucketPolicyOnly()
Definition: bucket.h:757
void clear_origin()
Definition: bucket.h:271
const client::JsonCppArray< string > get_origin() const
Definition: bucket.h:279
const StringPiece GetTypeName() const
Definition: bucket.h:1863
bool has_not_found_page() const
Definition: bucket.h:1996
const StringPiece get_main_page_suffix() const
Definition: bucket.h:1971
const BucketIamConfigurationUniformBucketLevelAccess get_uniform_bucket_level_access() const
Definition: bucket.h:785
const BucketLogging get_logging() const
Definition: bucket.h:2614
bool has_retention_period() const
Definition: bucket.h:1787
const StringPiece GetTypeName() const
Definition: bucket.h:1703
client::JsonCppArray< string > mutable_zone_affinity()
Definition: bucket.h:3095
void clear_acl()
Definition: bucket.h:2080
Definition: bucket.cc:45
void set_updated(client::DateTime value)
Definition: bucket.h:2976
const StringPiece GetTypeName() const
Definition: bucket.h:379
client::DateTime get_updated() const
Definition: bucket.h:2964
uint64 get_project_number() const
Definition: bucket.h:2763
const client::JsonCppArray< BucketLifecycleRule > get_rule() const
Definition: bucket.h:1397
void clear_project_number()
Definition: bucket.h:2755
Definition: bucket.h:55
void clear_retention_policy()
Definition: bucket.h:2792
const StringPiece get_default_kms_key_name() const
Definition: bucket.h:403
bool has_self_link() const
Definition: bucket.h:2832
const BucketLifecycle get_lifecycle() const
Definition: bucket.h:2499
bool has_cors() const
Definition: bucket.h:2141
const StringPiece get_location_type() const
Definition: bucket.h:2577
bool has_retention_policy() const
Definition: bucket.h:2785
bool has_zone_affinity() const
Definition: bucket.h:3063
void clear_uniform_bucket_level_access()
Definition: bucket.h:776
void set_enabled(bool value)
Definition: bucket.h:1899
void set_main_page_suffix(const StringPiece &value)
Definition: bucket.h:1987
void clear_bucket_policy_only()
Definition: bucket.h:731
bool has_updated() const
Definition: bucket.h:2949
void clear_storage_class()
Definition: bucket.h:2876
bool get_enabled() const
Definition: bucket.h:1887
void set_etag(const StringPiece &value)
Definition: bucket.h:2325
bool has_entity() const
Definition: bucket.h:1585
bool has_storage_class() const
Definition: bucket.h:2869
void set_time_created(client::DateTime value)
Definition: bucket.h:2939
void clear_entity()
Definition: bucket.h:1592
const client::JsonCppArray< BucketCors > get_cors() const
Definition: bucket.h:2156