30 #ifndef GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINK_H_ 31 #define GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_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/ad_words_account.h" 39 #include "google/analytics_api/web_property_ref.h" 94 return StringPiece(
"google_analytics_api::EntityAdWordsLinkEntity");
103 return Storage().isMember(
"webPropertyRef");
110 MutableStorage()->removeMember(
"webPropertyRef");
162 return StringPiece(
"google_analytics_api::EntityAdWordsLink");
171 return Storage().isMember(
"adWordsAccounts");
178 MutableStorage()->removeMember(
"adWordsAccounts");
186 const client::JsonCppArray<AdWordsAccount > get_ad_words_accounts()
const;
197 client::JsonCppArray<AdWordsAccount > mutable_adWordsAccounts();
205 return Storage().isMember(
"entity");
212 MutableStorage()->removeMember(
"entity");
220 const Json::Value& storage = Storage(
"entity");
221 return client::JsonValueToCppValueHelper<EntityAdWordsLinkEntity >(storage);
232 Json::Value* storage = MutableStorage(
"entity");
233 return client::JsonValueToMutableCppValueHelper<EntityAdWordsLinkEntity >(storage);
242 return Storage().isMember(
"id");
249 MutableStorage()->removeMember(
"id");
257 const Json::Value& v = Storage(
"id");
258 if (v == Json::Value::null)
return StringPiece(
"");
259 return StringPiece(v.asCString());
270 *MutableStorage(
"id") = value.data();
279 return Storage().isMember(
"kind");
286 MutableStorage()->removeMember(
"kind");
294 const Json::Value& v = Storage(
"kind");
295 if (v == Json::Value::null)
return StringPiece(
"");
296 return StringPiece(v.asCString());
307 *MutableStorage(
"kind") = value.data();
316 return Storage().isMember(
"name");
323 MutableStorage()->removeMember(
"name");
331 const Json::Value& v = Storage(
"name");
332 if (v == Json::Value::null)
return StringPiece(
"");
333 return StringPiece(v.asCString());
344 *MutableStorage(
"name") = value.data();
353 return Storage().isMember(
"profileIds");
360 MutableStorage()->removeMember(
"profileIds");
368 const Json::Value& storage = Storage(
"profileIds");
369 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
381 Json::Value* storage = MutableStorage(
"profileIds");
382 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
391 return Storage().isMember(
"selfLink");
398 MutableStorage()->removeMember(
"selfLink");
406 const Json::Value& v = Storage(
"selfLink");
407 if (v == Json::Value::null)
return StringPiece(
"");
408 return StringPiece(v.asCString());
419 *MutableStorage(
"selfLink") = value.data();
426 #endif // GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINK_H_ const EntityAdWordsLinkEntity get_entity() const
Definition: entity_ad_words_link.h:219
EntityAdWordsLinkEntity mutable_entity()
Definition: entity_ad_words_link.h:231
const StringPiece GetTypeName() const
Definition: entity_ad_words_link.h:93
bool has_id() const
Definition: entity_ad_words_link.h:241
const client::JsonCppArray< string > get_profile_ids() const
Definition: entity_ad_words_link.h:367
const StringPiece get_id() const
Definition: entity_ad_words_link.h:256
bool has_profile_ids() const
Definition: entity_ad_words_link.h:352
bool has_name() const
Definition: entity_ad_words_link.h:315
const StringPiece get_name() const
Definition: entity_ad_words_link.h:330
bool has_ad_words_accounts() const
Definition: entity_ad_words_link.h:170
client::JsonCppArray< string > mutable_profileIds()
Definition: entity_ad_words_link.h:380
void set_kind(const StringPiece &value)
Definition: entity_ad_words_link.h:306
void clear_kind()
Definition: entity_ad_words_link.h:285
Definition: web_property_ref.h:50
bool has_kind() const
Definition: entity_ad_words_link.h:278
bool has_entity() const
Definition: entity_ad_words_link.h:204
const StringPiece get_kind() const
Definition: entity_ad_words_link.h:293
void set_id(const StringPiece &value)
Definition: entity_ad_words_link.h:269
Definition: account.cc:41
void clear_name()
Definition: entity_ad_words_link.h:322
void clear_profile_ids()
Definition: entity_ad_words_link.h:359
bool has_web_property_ref() const
Definition: entity_ad_words_link.h:102
bool has_self_link() const
Definition: entity_ad_words_link.h:390
Definition: entity_ad_words_link.h:53
void clear_id()
Definition: entity_ad_words_link.h:248
const StringPiece GetTypeName() const
Definition: entity_ad_words_link.h:161
void clear_entity()
Definition: entity_ad_words_link.h:211
void clear_self_link()
Definition: entity_ad_words_link.h:397
Definition: entity_ad_words_link.h:60
void clear_ad_words_accounts()
Definition: entity_ad_words_link.h:177
void set_name(const StringPiece &value)
Definition: entity_ad_words_link.h:343
void set_self_link(const StringPiece &value)
Definition: entity_ad_words_link.h:418
void clear_web_property_ref()
Definition: entity_ad_words_link.h:109
const StringPiece get_self_link() const
Definition: entity_ad_words_link.h:405