30 #ifndef GOOGLE_ANALYTICS_API_PROFILE_SUMMARY_H_ 31 #define GOOGLE_ANALYTICS_API_PROFILE_SUMMARY_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_analytics_api::ProfileSummary");
94 return Storage().isMember(
"id");
101 MutableStorage()->removeMember(
"id");
109 const Json::Value& v = Storage(
"id");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
122 *MutableStorage(
"id") = value.data();
131 return Storage().isMember(
"kind");
138 MutableStorage()->removeMember(
"kind");
146 const Json::Value& v = Storage(
"kind");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
159 *MutableStorage(
"kind") = value.data();
168 return Storage().isMember(
"name");
175 MutableStorage()->removeMember(
"name");
183 const Json::Value& v = Storage(
"name");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
196 *MutableStorage(
"name") = value.data();
205 return Storage().isMember(
"starred");
212 MutableStorage()->removeMember(
"starred");
220 const Json::Value& storage = Storage(
"starred");
221 return client::JsonValueToCppValueHelper<bool >(storage);
232 client::SetJsonValueFromCppValueHelper<bool >(
233 value, MutableStorage(
"starred"));
242 return Storage().isMember(
"type");
249 MutableStorage()->removeMember(
"type");
257 const Json::Value& v = Storage(
"type");
258 if (v == Json::Value::null)
return StringPiece(
"");
259 return StringPiece(v.asCString());
270 *MutableStorage(
"type") = value.data();
277 #endif // GOOGLE_ANALYTICS_API_PROFILE_SUMMARY_H_ void clear_name()
Definition: profile_summary.h:174
void set_id(const StringPiece &value)
Definition: profile_summary.h:121
const StringPiece get_name() const
Definition: profile_summary.h:182
void clear_type()
Definition: profile_summary.h:248
bool has_starred() const
Definition: profile_summary.h:204
void clear_kind()
Definition: profile_summary.h:137
void set_starred(bool value)
Definition: profile_summary.h:231
void clear_id()
Definition: profile_summary.h:100
bool has_id() const
Definition: profile_summary.h:93
bool get_starred() const
Definition: profile_summary.h:219
const StringPiece get_id() const
Definition: profile_summary.h:108
const StringPiece get_type() const
Definition: profile_summary.h:256
bool has_name() const
Definition: profile_summary.h:167
void set_kind(const StringPiece &value)
Definition: profile_summary.h:158
const StringPiece GetTypeName() const
Definition: profile_summary.h:84
void set_name(const StringPiece &value)
Definition: profile_summary.h:195
Definition: account.cc:41
bool has_type() const
Definition: profile_summary.h:241
void clear_starred()
Definition: profile_summary.h:211
void set_type(const StringPiece &value)
Definition: profile_summary.h:269
Definition: profile_summary.h:51
bool has_kind() const
Definition: profile_summary.h:130
const StringPiece get_kind() const
Definition: profile_summary.h:145