30 #ifndef GOOGLE_ANALYTICS_API_ENTITY_USER_LINK_H_ 31 #define GOOGLE_ANALYTICS_API_ENTITY_USER_LINK_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_ref.h" 39 #include "google/analytics_api/profile_ref.h" 40 #include "google/analytics_api/user_ref.h" 41 #include "google/analytics_api/web_property_ref.h" 98 return StringPiece(
"google_analytics_api::EntityUserLinkEntity");
107 return Storage().isMember(
"accountRef");
114 MutableStorage()->removeMember(
"accountRef");
139 return Storage().isMember(
"profileRef");
146 MutableStorage()->removeMember(
"profileRef");
171 return Storage().isMember(
"webPropertyRef");
178 MutableStorage()->removeMember(
"webPropertyRef");
240 return StringPiece(
"google_analytics_api::EntityUserLinkPermissions");
249 return Storage().isMember(
"effective");
256 MutableStorage()->removeMember(
"effective");
264 const Json::Value& storage = Storage(
"effective");
265 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
280 Json::Value* storage = MutableStorage(
"effective");
281 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
290 return Storage().isMember(
"local");
297 MutableStorage()->removeMember(
"local");
305 const Json::Value& storage = Storage(
"local");
306 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
319 Json::Value* storage = MutableStorage(
"local");
320 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
358 return StringPiece(
"google_analytics_api::EntityUserLink");
367 return Storage().isMember(
"entity");
374 MutableStorage()->removeMember(
"entity");
382 const Json::Value& storage = Storage(
"entity");
383 return client::JsonValueToCppValueHelper<EntityUserLinkEntity >(storage);
395 Json::Value* storage = MutableStorage(
"entity");
396 return client::JsonValueToMutableCppValueHelper<EntityUserLinkEntity >(storage);
405 return Storage().isMember(
"id");
412 MutableStorage()->removeMember(
"id");
420 const Json::Value& v = Storage(
"id");
421 if (v == Json::Value::null)
return StringPiece(
"");
422 return StringPiece(v.asCString());
433 *MutableStorage(
"id") = value.data();
442 return Storage().isMember(
"kind");
449 MutableStorage()->removeMember(
"kind");
457 const Json::Value& v = Storage(
"kind");
458 if (v == Json::Value::null)
return StringPiece(
"");
459 return StringPiece(v.asCString());
470 *MutableStorage(
"kind") = value.data();
479 return Storage().isMember(
"permissions");
486 MutableStorage()->removeMember(
"permissions");
494 const Json::Value& storage = Storage(
"permissions");
495 return client::JsonValueToCppValueHelper<EntityUserLinkPermissions >(storage);
507 Json::Value* storage = MutableStorage(
"permissions");
508 return client::JsonValueToMutableCppValueHelper<EntityUserLinkPermissions >(storage);
517 return Storage().isMember(
"selfLink");
524 MutableStorage()->removeMember(
"selfLink");
532 const Json::Value& v = Storage(
"selfLink");
533 if (v == Json::Value::null)
return StringPiece(
"");
534 return StringPiece(v.asCString());
545 *MutableStorage(
"selfLink") = value.data();
554 return Storage().isMember(
"userRef");
561 MutableStorage()->removeMember(
"userRef");
568 const UserRef get_user_ref()
const;
583 #endif // GOOGLE_ANALYTICS_API_ENTITY_USER_LINK_H_ EntityUserLinkPermissions mutable_permissions()
Definition: entity_user_link.h:506
Definition: entity_user_link.h:64
bool has_user_ref() const
Definition: entity_user_link.h:553
void clear_self_link()
Definition: entity_user_link.h:523
bool has_effective() const
Definition: entity_user_link.h:248
client::JsonCppArray< string > mutable_effective()
Definition: entity_user_link.h:279
Definition: entity_user_link.h:56
const client::JsonCppArray< string > get_effective() const
Definition: entity_user_link.h:263
void clear_effective()
Definition: entity_user_link.h:255
void set_kind(const StringPiece &value)
Definition: entity_user_link.h:469
bool has_permissions() const
Definition: entity_user_link.h:478
bool has_id() const
Definition: entity_user_link.h:404
void clear_id()
Definition: entity_user_link.h:411
bool has_kind() const
Definition: entity_user_link.h:441
void set_self_link(const StringPiece &value)
Definition: entity_user_link.h:544
bool has_profile_ref() const
Definition: entity_user_link.h:138
void clear_permissions()
Definition: entity_user_link.h:485
const StringPiece get_id() const
Definition: entity_user_link.h:419
Definition: web_property_ref.h:50
Definition: user_ref.h:50
const StringPiece get_self_link() const
Definition: entity_user_link.h:531
void clear_account_ref()
Definition: entity_user_link.h:113
const EntityUserLinkPermissions get_permissions() const
Definition: entity_user_link.h:493
void clear_profile_ref()
Definition: entity_user_link.h:145
Definition: account.cc:41
bool has_account_ref() const
Definition: entity_user_link.h:106
Definition: account_ref.h:50
void clear_web_property_ref()
Definition: entity_user_link.h:177
void clear_user_ref()
Definition: entity_user_link.h:560
void clear_kind()
Definition: entity_user_link.h:448
bool has_web_property_ref() const
Definition: entity_user_link.h:170
const client::JsonCppArray< string > get_local() const
Definition: entity_user_link.h:304
client::JsonCppArray< string > mutable_local()
Definition: entity_user_link.h:318
EntityUserLinkEntity mutable_entity()
Definition: entity_user_link.h:394
Definition: entity_user_link.h:206
void clear_entity()
Definition: entity_user_link.h:373
Definition: profile_ref.h:50
const StringPiece GetTypeName() const
Definition: entity_user_link.h:239
void clear_local()
Definition: entity_user_link.h:296
const StringPiece GetTypeName() const
Definition: entity_user_link.h:357
const EntityUserLinkEntity get_entity() const
Definition: entity_user_link.h:381
bool has_local() const
Definition: entity_user_link.h:289
bool has_self_link() const
Definition: entity_user_link.h:516
const StringPiece get_kind() const
Definition: entity_user_link.h:456
bool has_entity() const
Definition: entity_user_link.h:366
void set_id(const StringPiece &value)
Definition: entity_user_link.h:432
const StringPiece GetTypeName() const
Definition: entity_user_link.h:97