30 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_H_ 31 #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/youtube_api/channel_section_content_details.h" 39 #include "google/youtube_api/channel_section_localization.h" 40 #include "google/youtube_api/channel_section_snippet.h" 41 #include "google/youtube_api/channel_section_targeting.h" 89 return StringPiece(
"google_youtube_api::ChannelSection");
98 return Storage().isMember(
"contentDetails");
105 MutableStorage()->removeMember(
"contentDetails");
132 return Storage().isMember(
"etag");
139 MutableStorage()->removeMember(
"etag");
147 const Json::Value& v = Storage(
"etag");
148 if (v == Json::Value::null)
return StringPiece(
"");
149 return StringPiece(v.asCString());
160 *MutableStorage(
"etag") = value.data();
169 return Storage().isMember(
"id");
176 MutableStorage()->removeMember(
"id");
184 const Json::Value& v = Storage(
"id");
185 if (v == Json::Value::null)
return StringPiece(
"");
186 return StringPiece(v.asCString());
197 *MutableStorage(
"id") = value.data();
206 return Storage().isMember(
"kind");
213 MutableStorage()->removeMember(
"kind");
221 const Json::Value& v = Storage(
"kind");
222 if (v == Json::Value::null)
return StringPiece(
"");
223 return StringPiece(v.asCString());
235 *MutableStorage(
"kind") = value.data();
244 return Storage().isMember(
"localizations");
251 MutableStorage()->removeMember(
"localizations");
258 const client::JsonCppAssociativeArray<ChannelSectionLocalization > get_localizations()
const;
268 client::JsonCppAssociativeArray<ChannelSectionLocalization > mutable_localizations();
276 return Storage().isMember(
"snippet");
283 MutableStorage()->removeMember(
"snippet");
308 return Storage().isMember(
"targeting");
315 MutableStorage()->removeMember(
"targeting");
339 #endif // GOOGLE_YOUTUBE_API_CHANNEL_SECTION_H_ Definition: channel_section_content_details.h:50
void set_kind(const StringPiece &value)
Definition: channel_section.h:234
Definition: access_policy.cc:40
bool has_targeting() const
Definition: channel_section.h:307
bool has_localizations() const
Definition: channel_section.h:243
Definition: channel_section.h:55
const StringPiece GetTypeName() const
Definition: channel_section.h:88
bool has_etag() const
Definition: channel_section.h:131
Definition: channel_section_snippet.h:53
void set_etag(const StringPiece &value)
Definition: channel_section.h:159
const StringPiece get_kind() const
Definition: channel_section.h:220
bool has_id() const
Definition: channel_section.h:168
void clear_targeting()
Definition: channel_section.h:314
void clear_content_details()
Definition: channel_section.h:104
void clear_snippet()
Definition: channel_section.h:282
Definition: access_policy.h:38
bool has_kind() const
Definition: channel_section.h:205
bool has_content_details() const
Definition: channel_section.h:97
void clear_id()
Definition: channel_section.h:175
void clear_etag()
Definition: channel_section.h:138
Definition: channel_section_targeting.h:50
void clear_localizations()
Definition: channel_section.h:250
const StringPiece get_etag() const
Definition: channel_section.h:146
const StringPiece get_id() const
Definition: channel_section.h:183
void clear_kind()
Definition: channel_section.h:212
bool has_snippet() const
Definition: channel_section.h:275
void set_id(const StringPiece &value)
Definition: channel_section.h:196