30 #ifndef GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PROMOTED_ITEM_H_ 31 #define GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PROMOTED_ITEM_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 84 return StringPiece(
"google_youtube_api::ActivityContentDetailsPromotedItem");
93 return Storage().isMember(
"adTag");
100 MutableStorage()->removeMember(
"adTag");
108 const Json::Value& v = Storage(
"adTag");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"adTag") = value.data();
130 return Storage().isMember(
"clickTrackingUrl");
137 MutableStorage()->removeMember(
"clickTrackingUrl");
145 const Json::Value& v = Storage(
"clickTrackingUrl");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
159 *MutableStorage(
"clickTrackingUrl") = value.data();
168 return Storage().isMember(
"creativeViewUrl");
175 MutableStorage()->removeMember(
"creativeViewUrl");
183 const Json::Value& v = Storage(
"creativeViewUrl");
184 if (v == Json::Value::null)
return StringPiece(
"");
185 return StringPiece(v.asCString());
197 *MutableStorage(
"creativeViewUrl") = value.data();
206 return Storage().isMember(
"ctaType");
213 MutableStorage()->removeMember(
"ctaType");
221 const Json::Value& v = Storage(
"ctaType");
222 if (v == Json::Value::null)
return StringPiece(
"");
223 return StringPiece(v.asCString());
235 *MutableStorage(
"ctaType") = value.data();
244 return Storage().isMember(
"customCtaButtonText");
251 MutableStorage()->removeMember(
"customCtaButtonText");
259 const Json::Value& v = Storage(
"customCtaButtonText");
260 if (v == Json::Value::null)
return StringPiece(
"");
261 return StringPiece(v.asCString());
273 *MutableStorage(
"customCtaButtonText") = value.data();
282 return Storage().isMember(
"descriptionText");
289 MutableStorage()->removeMember(
"descriptionText");
297 const Json::Value& v = Storage(
"descriptionText");
298 if (v == Json::Value::null)
return StringPiece(
"");
299 return StringPiece(v.asCString());
310 *MutableStorage(
"descriptionText") = value.data();
319 return Storage().isMember(
"destinationUrl");
326 MutableStorage()->removeMember(
"destinationUrl");
334 const Json::Value& v = Storage(
"destinationUrl");
335 if (v == Json::Value::null)
return StringPiece(
"");
336 return StringPiece(v.asCString());
348 *MutableStorage(
"destinationUrl") = value.data();
357 return Storage().isMember(
"forecastingUrl");
364 MutableStorage()->removeMember(
"forecastingUrl");
373 const Json::Value& storage = Storage(
"forecastingUrl");
374 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
388 Json::Value* storage = MutableStorage(
"forecastingUrl");
389 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
398 return Storage().isMember(
"impressionUrl");
405 MutableStorage()->removeMember(
"impressionUrl");
413 const Json::Value& storage = Storage(
"impressionUrl");
414 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
427 Json::Value* storage = MutableStorage(
"impressionUrl");
428 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
437 return Storage().isMember(
"videoId");
444 MutableStorage()->removeMember(
"videoId");
452 const Json::Value& v = Storage(
"videoId");
453 if (v == Json::Value::null)
return StringPiece(
"");
454 return StringPiece(v.asCString());
465 *MutableStorage(
"videoId") = value.data();
472 #endif // GOOGLE_YOUTUBE_API_ACTIVITY_CONTENT_DETAILS_PROMOTED_ITEM_H_ const StringPiece get_ad_tag() const
Definition: activity_content_details_promoted_item.h:107
Definition: access_policy.cc:40
const StringPiece get_cta_type() const
Definition: activity_content_details_promoted_item.h:220
const StringPiece get_destination_url() const
Definition: activity_content_details_promoted_item.h:333
void clear_creative_view_url()
Definition: activity_content_details_promoted_item.h:174
const StringPiece get_creative_view_url() const
Definition: activity_content_details_promoted_item.h:182
void clear_custom_cta_button_text()
Definition: activity_content_details_promoted_item.h:250
void set_cta_type(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:234
const StringPiece GetTypeName() const
Definition: activity_content_details_promoted_item.h:83
void set_destination_url(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:347
bool has_impression_url() const
Definition: activity_content_details_promoted_item.h:397
void clear_destination_url()
Definition: activity_content_details_promoted_item.h:325
bool has_forecasting_url() const
Definition: activity_content_details_promoted_item.h:356
void set_creative_view_url(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:196
void clear_forecasting_url()
Definition: activity_content_details_promoted_item.h:363
void clear_description_text()
Definition: activity_content_details_promoted_item.h:288
void set_description_text(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:309
Definition: activity_content_details_promoted_item.h:50
void set_ad_tag(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:120
const StringPiece get_custom_cta_button_text() const
Definition: activity_content_details_promoted_item.h:258
const StringPiece get_click_tracking_url() const
Definition: activity_content_details_promoted_item.h:144
void clear_ad_tag()
Definition: activity_content_details_promoted_item.h:99
Definition: access_policy.h:38
void set_click_tracking_url(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:158
bool has_cta_type() const
Definition: activity_content_details_promoted_item.h:205
void clear_click_tracking_url()
Definition: activity_content_details_promoted_item.h:136
void clear_cta_type()
Definition: activity_content_details_promoted_item.h:212
bool has_description_text() const
Definition: activity_content_details_promoted_item.h:281
bool has_ad_tag() const
Definition: activity_content_details_promoted_item.h:92
void clear_video_id()
Definition: activity_content_details_promoted_item.h:443
void set_video_id(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:464
client::JsonCppArray< string > mutable_impressionUrl()
Definition: activity_content_details_promoted_item.h:426
void clear_impression_url()
Definition: activity_content_details_promoted_item.h:404
bool has_custom_cta_button_text() const
Definition: activity_content_details_promoted_item.h:243
const StringPiece get_description_text() const
Definition: activity_content_details_promoted_item.h:296
bool has_click_tracking_url() const
Definition: activity_content_details_promoted_item.h:129
client::JsonCppArray< string > mutable_forecastingUrl()
Definition: activity_content_details_promoted_item.h:387
bool has_video_id() const
Definition: activity_content_details_promoted_item.h:436
bool has_destination_url() const
Definition: activity_content_details_promoted_item.h:318
const StringPiece get_video_id() const
Definition: activity_content_details_promoted_item.h:451
const client::JsonCppArray< string > get_impression_url() const
Definition: activity_content_details_promoted_item.h:412
const client::JsonCppArray< string > get_forecasting_url() const
Definition: activity_content_details_promoted_item.h:372
void set_custom_cta_button_text(const StringPiece &value)
Definition: activity_content_details_promoted_item.h:272
bool has_creative_view_url() const
Definition: activity_content_details_promoted_item.h:167