30 #ifndef GOOGLE_ANALYTICS_API_ACCOUNT_TREE_RESPONSE_H_ 31 #define GOOGLE_ANALYTICS_API_ACCOUNT_TREE_RESPONSE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/analytics_api/account.h" 39 #include "google/analytics_api/profile.h" 40 #include "google/analytics_api/webproperty.h" 90 return StringPiece(
"google_analytics_api::AccountTreeResponse");
99 return Storage().isMember(
"account");
106 MutableStorage()->removeMember(
"account");
113 const Account get_account()
const;
130 return Storage().isMember(
"kind");
137 MutableStorage()->removeMember(
"kind");
145 const Json::Value& v = Storage(
"kind");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"kind") = value.data();
167 return Storage().isMember(
"profile");
174 MutableStorage()->removeMember(
"profile");
181 const Profile get_profile()
const;
198 return Storage().isMember(
"webproperty");
205 MutableStorage()->removeMember(
"webproperty");
228 #endif // GOOGLE_ANALYTICS_API_ACCOUNT_TREE_RESPONSE_H_ const StringPiece get_kind() const
Definition: account_tree_response.h:144
bool has_kind() const
Definition: account_tree_response.h:129
Definition: webproperty.h:52
void clear_webproperty()
Definition: account_tree_response.h:204
bool has_account() const
Definition: account_tree_response.h:98
void clear_account()
Definition: account_tree_response.h:105
Definition: account.cc:41
void clear_profile()
Definition: account_tree_response.h:173
bool has_webproperty() const
Definition: account_tree_response.h:197
void clear_kind()
Definition: account_tree_response.h:136
Definition: account_tree_response.h:56
void set_kind(const StringPiece &value)
Definition: account_tree_response.h:157
const StringPiece GetTypeName() const
Definition: account_tree_response.h:89
bool has_profile() const
Definition: account_tree_response.h:166