30 #ifndef GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINKS_H_ 31 #define GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINKS_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/analytics_api/entity_ad_words_link.h" 88 return StringPiece(
"google_analytics_api::EntityAdWordsLinks");
97 return Storage().isMember(
"items");
104 MutableStorage()->removeMember(
"items");
111 const client::JsonCppArray<EntityAdWordsLink > get_items()
const;
120 client::JsonCppArray<EntityAdWordsLink > mutable_items();
128 return Storage().isMember(
"itemsPerPage");
135 MutableStorage()->removeMember(
"itemsPerPage");
143 const Json::Value& storage = Storage(
"itemsPerPage");
144 return client::JsonValueToCppValueHelper<int32 >(storage);
158 client::SetJsonValueFromCppValueHelper<int32 >(
159 value, MutableStorage(
"itemsPerPage"));
168 return Storage().isMember(
"kind");
175 MutableStorage()->removeMember(
"kind");
183 const Json::Value& v = Storage(
"kind");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
196 *MutableStorage(
"kind") = value.data();
205 return Storage().isMember(
"nextLink");
212 MutableStorage()->removeMember(
"nextLink");
220 const Json::Value& v = Storage(
"nextLink");
221 if (v == Json::Value::null)
return StringPiece(
"");
222 return StringPiece(v.asCString());
233 *MutableStorage(
"nextLink") = value.data();
242 return Storage().isMember(
"previousLink");
249 MutableStorage()->removeMember(
"previousLink");
257 const Json::Value& v = Storage(
"previousLink");
258 if (v == Json::Value::null)
return StringPiece(
"");
259 return StringPiece(v.asCString());
270 *MutableStorage(
"previousLink") = value.data();
279 return Storage().isMember(
"startIndex");
286 MutableStorage()->removeMember(
"startIndex");
294 const Json::Value& storage = Storage(
"startIndex");
295 return client::JsonValueToCppValueHelper<int32 >(storage);
307 client::SetJsonValueFromCppValueHelper<int32 >(
308 value, MutableStorage(
"startIndex"));
317 return Storage().isMember(
"totalResults");
324 MutableStorage()->removeMember(
"totalResults");
332 const Json::Value& storage = Storage(
"totalResults");
333 return client::JsonValueToCppValueHelper<int32 >(storage);
345 client::SetJsonValueFromCppValueHelper<int32 >(
346 value, MutableStorage(
"totalResults"));
353 #endif // GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINKS_H_ bool has_items_per_page() const
Definition: entity_ad_words_links.h:127
void clear_total_results()
Definition: entity_ad_words_links.h:323
void clear_kind()
Definition: entity_ad_words_links.h:174
void clear_next_link()
Definition: entity_ad_words_links.h:211
bool has_start_index() const
Definition: entity_ad_words_links.h:278
const StringPiece get_next_link() const
Definition: entity_ad_words_links.h:219
void set_total_results(int32 value)
Definition: entity_ad_words_links.h:344
bool has_items() const
Definition: entity_ad_words_links.h:96
void set_start_index(int32 value)
Definition: entity_ad_words_links.h:306
const StringPiece GetTypeName() const
Definition: entity_ad_words_links.h:87
void set_previous_link(const StringPiece &value)
Definition: entity_ad_words_links.h:269
bool has_previous_link() const
Definition: entity_ad_words_links.h:241
int32 get_total_results() const
Definition: entity_ad_words_links.h:331
bool has_next_link() const
Definition: entity_ad_words_links.h:204
void set_items_per_page(int32 value)
Definition: entity_ad_words_links.h:157
int32 get_start_index() const
Definition: entity_ad_words_links.h:293
const StringPiece get_kind() const
Definition: entity_ad_words_links.h:182
void clear_start_index()
Definition: entity_ad_words_links.h:285
void set_next_link(const StringPiece &value)
Definition: entity_ad_words_links.h:232
Definition: account.cc:41
int32 get_items_per_page() const
Definition: entity_ad_words_links.h:142
bool has_kind() const
Definition: entity_ad_words_links.h:167
void clear_items()
Definition: entity_ad_words_links.h:103
bool has_total_results() const
Definition: entity_ad_words_links.h:316
const StringPiece get_previous_link() const
Definition: entity_ad_words_links.h:256
void set_kind(const StringPiece &value)
Definition: entity_ad_words_links.h:195
void clear_items_per_page()
Definition: entity_ad_words_links.h:134
Definition: entity_ad_words_links.h:54
void clear_previous_link()
Definition: entity_ad_words_links.h:248