30 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_PROFILE_DETAILS_H_ 31 #define GOOGLE_YOUTUBE_API_CHANNEL_PROFILE_DETAILS_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::ChannelProfileDetails");
93 return Storage().isMember(
"channelId");
100 MutableStorage()->removeMember(
"channelId");
108 const Json::Value& v = Storage(
"channelId");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
121 *MutableStorage(
"channelId") = value.data();
130 return Storage().isMember(
"channelUrl");
137 MutableStorage()->removeMember(
"channelUrl");
145 const Json::Value& v = Storage(
"channelUrl");
146 if (v == Json::Value::null)
return StringPiece(
"");
147 return StringPiece(v.asCString());
158 *MutableStorage(
"channelUrl") = value.data();
167 return Storage().isMember(
"displayName");
174 MutableStorage()->removeMember(
"displayName");
182 const Json::Value& v = Storage(
"displayName");
183 if (v == Json::Value::null)
return StringPiece(
"");
184 return StringPiece(v.asCString());
195 *MutableStorage(
"displayName") = value.data();
204 return Storage().isMember(
"profileImageUrl");
211 MutableStorage()->removeMember(
"profileImageUrl");
219 const Json::Value& v = Storage(
"profileImageUrl");
220 if (v == Json::Value::null)
return StringPiece(
"");
221 return StringPiece(v.asCString());
232 *MutableStorage(
"profileImageUrl") = value.data();
239 #endif // GOOGLE_YOUTUBE_API_CHANNEL_PROFILE_DETAILS_H_ Definition: access_policy.cc:40
Definition: channel_profile_details.h:50
const StringPiece GetTypeName() const
Definition: channel_profile_details.h:83
void clear_display_name()
Definition: channel_profile_details.h:173
void set_channel_id(const StringPiece &value)
Definition: channel_profile_details.h:120
void set_channel_url(const StringPiece &value)
Definition: channel_profile_details.h:157
const StringPiece get_display_name() const
Definition: channel_profile_details.h:181
const StringPiece get_channel_id() const
Definition: channel_profile_details.h:107
Definition: access_policy.h:38
void set_profile_image_url(const StringPiece &value)
Definition: channel_profile_details.h:231
void clear_profile_image_url()
Definition: channel_profile_details.h:210
void set_display_name(const StringPiece &value)
Definition: channel_profile_details.h:194
bool has_display_name() const
Definition: channel_profile_details.h:166
const StringPiece get_channel_url() const
Definition: channel_profile_details.h:144
bool has_channel_id() const
Definition: channel_profile_details.h:92
void clear_channel_url()
Definition: channel_profile_details.h:136
bool has_channel_url() const
Definition: channel_profile_details.h:129
const StringPiece get_profile_image_url() const
Definition: channel_profile_details.h:218
void clear_channel_id()
Definition: channel_profile_details.h:99
bool has_profile_image_url() const
Definition: channel_profile_details.h:203