30 #ifndef GOOGLE_ANALYTICS_API_WEB_PROPERTY_SUMMARY_H_ 31 #define GOOGLE_ANALYTICS_API_WEB_PROPERTY_SUMMARY_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/profile_summary.h" 87 return StringPiece(
"google_analytics_api::WebPropertySummary");
96 return Storage().isMember(
"id");
103 MutableStorage()->removeMember(
"id");
111 const Json::Value& v = Storage(
"id");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
124 *MutableStorage(
"id") = value.data();
133 return Storage().isMember(
"internalWebPropertyId");
140 MutableStorage()->removeMember(
"internalWebPropertyId");
148 const Json::Value& v = Storage(
"internalWebPropertyId");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
161 *MutableStorage(
"internalWebPropertyId") = value.data();
170 return Storage().isMember(
"kind");
177 MutableStorage()->removeMember(
"kind");
185 const Json::Value& v = Storage(
"kind");
186 if (v == Json::Value::null)
return StringPiece(
"");
187 return StringPiece(v.asCString());
198 *MutableStorage(
"kind") = value.data();
207 return Storage().isMember(
"level");
214 MutableStorage()->removeMember(
"level");
222 const Json::Value& v = Storage(
"level");
223 if (v == Json::Value::null)
return StringPiece(
"");
224 return StringPiece(v.asCString());
235 *MutableStorage(
"level") = value.data();
244 return Storage().isMember(
"name");
251 MutableStorage()->removeMember(
"name");
259 const Json::Value& v = Storage(
"name");
260 if (v == Json::Value::null)
return StringPiece(
"");
261 return StringPiece(v.asCString());
272 *MutableStorage(
"name") = value.data();
281 return Storage().isMember(
"profiles");
288 MutableStorage()->removeMember(
"profiles");
295 const client::JsonCppArray<ProfileSummary > get_profiles()
const;
305 client::JsonCppArray<ProfileSummary > mutable_profiles();
313 return Storage().isMember(
"starred");
320 MutableStorage()->removeMember(
"starred");
328 const Json::Value& storage = Storage(
"starred");
329 return client::JsonValueToCppValueHelper<bool >(storage);
340 client::SetJsonValueFromCppValueHelper<bool >(
341 value, MutableStorage(
"starred"));
350 return Storage().isMember(
"websiteUrl");
357 MutableStorage()->removeMember(
"websiteUrl");
365 const Json::Value& v = Storage(
"websiteUrl");
366 if (v == Json::Value::null)
return StringPiece(
"");
367 return StringPiece(v.asCString());
378 *MutableStorage(
"websiteUrl") = value.data();
385 #endif // GOOGLE_ANALYTICS_API_WEB_PROPERTY_SUMMARY_H_ bool has_name() const
Definition: web_property_summary.h:243
const StringPiece get_internal_web_property_id() const
Definition: web_property_summary.h:147
const StringPiece get_name() const
Definition: web_property_summary.h:258
const StringPiece get_id() const
Definition: web_property_summary.h:110
void clear_kind()
Definition: web_property_summary.h:176
void clear_profiles()
Definition: web_property_summary.h:287
Definition: web_property_summary.h:53
bool get_starred() const
Definition: web_property_summary.h:327
void clear_internal_web_property_id()
Definition: web_property_summary.h:139
const StringPiece GetTypeName() const
Definition: web_property_summary.h:86
void set_kind(const StringPiece &value)
Definition: web_property_summary.h:197
bool has_profiles() const
Definition: web_property_summary.h:280
void set_internal_web_property_id(const StringPiece &value)
Definition: web_property_summary.h:160
bool has_level() const
Definition: web_property_summary.h:206
bool has_internal_web_property_id() const
Definition: web_property_summary.h:132
bool has_kind() const
Definition: web_property_summary.h:169
const StringPiece get_level() const
Definition: web_property_summary.h:221
void set_level(const StringPiece &value)
Definition: web_property_summary.h:234
Definition: account.cc:41
void set_name(const StringPiece &value)
Definition: web_property_summary.h:271
bool has_website_url() const
Definition: web_property_summary.h:349
const StringPiece get_website_url() const
Definition: web_property_summary.h:364
bool has_id() const
Definition: web_property_summary.h:95
const StringPiece get_kind() const
Definition: web_property_summary.h:184
void clear_starred()
Definition: web_property_summary.h:319
void set_website_url(const StringPiece &value)
Definition: web_property_summary.h:377
void set_starred(bool value)
Definition: web_property_summary.h:339
void clear_level()
Definition: web_property_summary.h:213
bool has_starred() const
Definition: web_property_summary.h:312
void clear_id()
Definition: web_property_summary.h:102
void set_id(const StringPiece &value)
Definition: web_property_summary.h:123
void clear_name()
Definition: web_property_summary.h:250
void clear_website_url()
Definition: web_property_summary.h:356