30 #ifndef GOOGLE_ANALYTICS_API_WEBPROPERTY_H_ 31 #define GOOGLE_ANALYTICS_API_WEBPROPERTY_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" 94 return StringPiece(
"google_analytics_api::WebpropertyChildLink");
103 return Storage().isMember(
"href");
110 MutableStorage()->removeMember(
"href");
118 const Json::Value& v = Storage(
"href");
119 if (v == Json::Value::null)
return StringPiece(
"");
120 return StringPiece(v.asCString());
131 *MutableStorage(
"href") = value.data();
140 return Storage().isMember(
"type");
147 MutableStorage()->removeMember(
"type");
155 const Json::Value& v = Storage(
"type");
156 if (v == Json::Value::null)
return StringPiece(
"");
157 return StringPiece(v.asCString());
168 *MutableStorage(
"type") = value.data();
214 return StringPiece(
"google_analytics_api::WebpropertyParentLink");
223 return Storage().isMember(
"href");
230 MutableStorage()->removeMember(
"href");
238 const Json::Value& v = Storage(
"href");
239 if (v == Json::Value::null)
return StringPiece(
"");
240 return StringPiece(v.asCString());
251 *MutableStorage(
"href") = value.data();
260 return Storage().isMember(
"type");
267 MutableStorage()->removeMember(
"type");
275 const Json::Value& v = Storage(
"type");
276 if (v == Json::Value::null)
return StringPiece(
"");
277 return StringPiece(v.asCString());
288 *MutableStorage(
"type") = value.data();
333 return StringPiece(
"google_analytics_api::WebpropertyPermissions");
342 return Storage().isMember(
"effective");
349 MutableStorage()->removeMember(
"effective");
357 const Json::Value& storage = Storage(
"effective");
358 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
372 Json::Value* storage = MutableStorage(
"effective");
373 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
411 return StringPiece(
"google_analytics_api::Webproperty");
420 return Storage().isMember(
"accountId");
427 MutableStorage()->removeMember(
"accountId");
435 const Json::Value& v = Storage(
"accountId");
436 if (v == Json::Value::null)
return StringPiece(
"");
437 return StringPiece(v.asCString());
448 *MutableStorage(
"accountId") = value.data();
457 return Storage().isMember(
"childLink");
464 MutableStorage()->removeMember(
"childLink");
472 const Json::Value& storage = Storage(
"childLink");
473 return client::JsonValueToCppValueHelper<WebpropertyChildLink >(storage);
486 Json::Value* storage = MutableStorage(
"childLink");
487 return client::JsonValueToMutableCppValueHelper<WebpropertyChildLink >(storage);
496 return Storage().isMember(
"created");
503 MutableStorage()->removeMember(
"created");
511 const Json::Value& storage = Storage(
"created");
512 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
523 client::SetJsonValueFromCppValueHelper<client::DateTime >(
524 value, MutableStorage(
"created"));
535 return Storage().isMember(
"dataRetentionResetOnNewActivity");
542 MutableStorage()->removeMember(
"dataRetentionResetOnNewActivity");
551 const Json::Value& storage = Storage(
"dataRetentionResetOnNewActivity");
552 return client::JsonValueToCppValueHelper<bool >(storage);
568 client::SetJsonValueFromCppValueHelper<bool >(
569 value, MutableStorage(
"dataRetentionResetOnNewActivity"));
578 return Storage().isMember(
"dataRetentionTtl");
585 MutableStorage()->removeMember(
"dataRetentionTtl");
593 const Json::Value& v = Storage(
"dataRetentionTtl");
594 if (v == Json::Value::null)
return StringPiece(
"");
595 return StringPiece(v.asCString());
607 *MutableStorage(
"dataRetentionTtl") = value.data();
616 return Storage().isMember(
"defaultProfileId");
623 MutableStorage()->removeMember(
"defaultProfileId");
631 const Json::Value& storage = Storage(
"defaultProfileId");
632 return client::JsonValueToCppValueHelper<int64 >(storage);
643 client::SetJsonValueFromCppValueHelper<int64 >(
644 value, MutableStorage(
"defaultProfileId"));
653 return Storage().isMember(
"id");
660 MutableStorage()->removeMember(
"id");
668 const Json::Value& v = Storage(
"id");
669 if (v == Json::Value::null)
return StringPiece(
"");
670 return StringPiece(v.asCString());
681 *MutableStorage(
"id") = value.data();
690 return Storage().isMember(
"industryVertical");
697 MutableStorage()->removeMember(
"industryVertical");
705 const Json::Value& v = Storage(
"industryVertical");
706 if (v == Json::Value::null)
return StringPiece(
"");
707 return StringPiece(v.asCString());
718 *MutableStorage(
"industryVertical") = value.data();
727 return Storage().isMember(
"internalWebPropertyId");
734 MutableStorage()->removeMember(
"internalWebPropertyId");
742 const Json::Value& v = Storage(
"internalWebPropertyId");
743 if (v == Json::Value::null)
return StringPiece(
"");
744 return StringPiece(v.asCString());
755 *MutableStorage(
"internalWebPropertyId") = value.data();
764 return Storage().isMember(
"kind");
771 MutableStorage()->removeMember(
"kind");
779 const Json::Value& v = Storage(
"kind");
780 if (v == Json::Value::null)
return StringPiece(
"");
781 return StringPiece(v.asCString());
792 *MutableStorage(
"kind") = value.data();
801 return Storage().isMember(
"level");
808 MutableStorage()->removeMember(
"level");
816 const Json::Value& v = Storage(
"level");
817 if (v == Json::Value::null)
return StringPiece(
"");
818 return StringPiece(v.asCString());
829 *MutableStorage(
"level") = value.data();
838 return Storage().isMember(
"name");
845 MutableStorage()->removeMember(
"name");
853 const Json::Value& v = Storage(
"name");
854 if (v == Json::Value::null)
return StringPiece(
"");
855 return StringPiece(v.asCString());
866 *MutableStorage(
"name") = value.data();
875 return Storage().isMember(
"parentLink");
882 MutableStorage()->removeMember(
"parentLink");
890 const Json::Value& storage = Storage(
"parentLink");
891 return client::JsonValueToCppValueHelper<WebpropertyParentLink >(storage);
904 Json::Value* storage = MutableStorage(
"parentLink");
905 return client::JsonValueToMutableCppValueHelper<WebpropertyParentLink >(storage);
914 return Storage().isMember(
"permissions");
921 MutableStorage()->removeMember(
"permissions");
929 const Json::Value& storage = Storage(
"permissions");
930 return client::JsonValueToCppValueHelper<WebpropertyPermissions >(storage);
942 Json::Value* storage = MutableStorage(
"permissions");
943 return client::JsonValueToMutableCppValueHelper<WebpropertyPermissions >(storage);
952 return Storage().isMember(
"profileCount");
959 MutableStorage()->removeMember(
"profileCount");
967 const Json::Value& storage = Storage(
"profileCount");
968 return client::JsonValueToCppValueHelper<int32 >(storage);
979 client::SetJsonValueFromCppValueHelper<int32 >(
980 value, MutableStorage(
"profileCount"));
989 return Storage().isMember(
"selfLink");
996 MutableStorage()->removeMember(
"selfLink");
1004 const Json::Value& v = Storage(
"selfLink");
1005 if (v == Json::Value::null)
return StringPiece(
"");
1006 return StringPiece(v.asCString());
1017 *MutableStorage(
"selfLink") = value.data();
1026 return Storage().isMember(
"starred");
1033 MutableStorage()->removeMember(
"starred");
1041 const Json::Value& storage = Storage(
"starred");
1042 return client::JsonValueToCppValueHelper<bool >(storage);
1053 client::SetJsonValueFromCppValueHelper<bool >(
1054 value, MutableStorage(
"starred"));
1063 return Storage().isMember(
"updated");
1070 MutableStorage()->removeMember(
"updated");
1078 const Json::Value& storage = Storage(
"updated");
1079 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1090 client::SetJsonValueFromCppValueHelper<client::DateTime >(
1091 value, MutableStorage(
"updated"));
1100 return Storage().isMember(
"websiteUrl");
1107 MutableStorage()->removeMember(
"websiteUrl");
1115 const Json::Value& v = Storage(
"websiteUrl");
1116 if (v == Json::Value::null)
return StringPiece(
"");
1117 return StringPiece(v.asCString());
1128 *MutableStorage(
"websiteUrl") = value.data();
1135 #endif // GOOGLE_ANALYTICS_API_WEBPROPERTY_H_ const WebpropertyChildLink get_child_link() const
Definition: webproperty.h:471
void set_starred(bool value)
Definition: webproperty.h:1052
void clear_name()
Definition: webproperty.h:844
void clear_account_id()
Definition: webproperty.h:426
bool has_website_url() const
Definition: webproperty.h:1099
bool has_data_retention_reset_on_new_activity() const
Definition: webproperty.h:534
bool has_type() const
Definition: webproperty.h:139
const StringPiece get_internal_web_property_id() const
Definition: webproperty.h:741
bool has_href() const
Definition: webproperty.h:102
bool has_level() const
Definition: webproperty.h:800
void clear_id()
Definition: webproperty.h:659
void set_updated(client::DateTime value)
Definition: webproperty.h:1089
client::JsonCppArray< string > mutable_effective()
Definition: webproperty.h:371
const WebpropertyPermissions get_permissions() const
Definition: webproperty.h:928
void set_kind(const StringPiece &value)
Definition: webproperty.h:791
bool has_kind() const
Definition: webproperty.h:763
const client::JsonCppArray< string > get_effective() const
Definition: webproperty.h:356
bool has_name() const
Definition: webproperty.h:837
bool has_parent_link() const
Definition: webproperty.h:874
void clear_default_profile_id()
Definition: webproperty.h:622
void clear_type()
Definition: webproperty.h:146
void set_self_link(const StringPiece &value)
Definition: webproperty.h:1016
Definition: webproperty.h:52
void set_website_url(const StringPiece &value)
Definition: webproperty.h:1127
bool has_data_retention_ttl() const
Definition: webproperty.h:577
const StringPiece get_industry_vertical() const
Definition: webproperty.h:704
bool has_effective() const
Definition: webproperty.h:341
void set_type(const StringPiece &value)
Definition: webproperty.h:287
void clear_website_url()
Definition: webproperty.h:1106
void clear_kind()
Definition: webproperty.h:770
bool has_updated() const
Definition: webproperty.h:1062
WebpropertyPermissions mutable_permissions()
Definition: webproperty.h:941
void clear_industry_vertical()
Definition: webproperty.h:696
void set_profile_count(int32 value)
Definition: webproperty.h:978
int32 get_profile_count() const
Definition: webproperty.h:966
void set_created(client::DateTime value)
Definition: webproperty.h:522
bool has_account_id() const
Definition: webproperty.h:419
const StringPiece get_data_retention_ttl() const
Definition: webproperty.h:592
bool has_industry_vertical() const
Definition: webproperty.h:689
void clear_type()
Definition: webproperty.h:266
void clear_created()
Definition: webproperty.h:502
bool get_data_retention_reset_on_new_activity() const
Definition: webproperty.h:550
bool has_child_link() const
Definition: webproperty.h:456
bool has_created() const
Definition: webproperty.h:495
const StringPiece GetTypeName() const
Definition: webproperty.h:93
void set_type(const StringPiece &value)
Definition: webproperty.h:167
bool has_href() const
Definition: webproperty.h:222
const StringPiece GetTypeName() const
Definition: webproperty.h:410
void clear_href()
Definition: webproperty.h:229
const StringPiece get_href() const
Definition: webproperty.h:117
void set_industry_vertical(const StringPiece &value)
Definition: webproperty.h:717
WebpropertyChildLink mutable_childLink()
Definition: webproperty.h:485
const StringPiece get_account_id() const
Definition: webproperty.h:434
void clear_child_link()
Definition: webproperty.h:463
const StringPiece get_id() const
Definition: webproperty.h:667
bool has_type() const
Definition: webproperty.h:259
Definition: webproperty.h:60
Definition: webproperty.h:180
const StringPiece get_type() const
Definition: webproperty.h:154
const StringPiece GetTypeName() const
Definition: webproperty.h:332
bool has_profile_count() const
Definition: webproperty.h:951
void clear_internal_web_property_id()
Definition: webproperty.h:733
Definition: account.cc:41
bool get_starred() const
Definition: webproperty.h:1040
void set_level(const StringPiece &value)
Definition: webproperty.h:828
const StringPiece GetTypeName() const
Definition: webproperty.h:213
void set_account_id(const StringPiece &value)
Definition: webproperty.h:447
const StringPiece get_href() const
Definition: webproperty.h:237
void clear_data_retention_ttl()
Definition: webproperty.h:584
void set_id(const StringPiece &value)
Definition: webproperty.h:680
void clear_effective()
Definition: webproperty.h:348
int64 get_default_profile_id() const
Definition: webproperty.h:630
void clear_permissions()
Definition: webproperty.h:920
void set_name(const StringPiece &value)
Definition: webproperty.h:865
bool has_default_profile_id() const
Definition: webproperty.h:615
client::DateTime get_updated() const
Definition: webproperty.h:1077
bool has_self_link() const
Definition: webproperty.h:988
void clear_starred()
Definition: webproperty.h:1032
void clear_href()
Definition: webproperty.h:109
void clear_data_retention_reset_on_new_activity()
Definition: webproperty.h:541
void set_data_retention_reset_on_new_activity(bool value)
Definition: webproperty.h:567
client::DateTime get_created() const
Definition: webproperty.h:510
void clear_parent_link()
Definition: webproperty.h:881
void set_href(const StringPiece &value)
Definition: webproperty.h:130
const StringPiece get_type() const
Definition: webproperty.h:274
void set_internal_web_property_id(const StringPiece &value)
Definition: webproperty.h:754
void set_data_retention_ttl(const StringPiece &value)
Definition: webproperty.h:606
void clear_level()
Definition: webproperty.h:807
const StringPiece get_kind() const
Definition: webproperty.h:778
void set_href(const StringPiece &value)
Definition: webproperty.h:250
const WebpropertyParentLink get_parent_link() const
Definition: webproperty.h:889
WebpropertyParentLink mutable_parentLink()
Definition: webproperty.h:903
void clear_profile_count()
Definition: webproperty.h:958
Definition: webproperty.h:299
bool has_permissions() const
Definition: webproperty.h:913
bool has_internal_web_property_id() const
Definition: webproperty.h:726
const StringPiece get_self_link() const
Definition: webproperty.h:1003
void clear_updated()
Definition: webproperty.h:1069
bool has_id() const
Definition: webproperty.h:652
void set_default_profile_id(int64 value)
Definition: webproperty.h:642
const StringPiece get_level() const
Definition: webproperty.h:815
bool has_starred() const
Definition: webproperty.h:1025
void clear_self_link()
Definition: webproperty.h:995
const StringPiece get_name() const
Definition: webproperty.h:852
const StringPiece get_website_url() const
Definition: webproperty.h:1114