30 #ifndef GOOGLE_YOUTUBE_API_CHANNEL_SECTION_TARGETING_H_ 31 #define GOOGLE_YOUTUBE_API_CHANNEL_SECTION_TARGETING_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::ChannelSectionTargeting");
93 return Storage().isMember(
"countries");
100 MutableStorage()->removeMember(
"countries");
108 const Json::Value& storage = Storage(
"countries");
109 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
121 Json::Value* storage = MutableStorage(
"countries");
122 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
131 return Storage().isMember(
"languages");
138 MutableStorage()->removeMember(
"languages");
146 const Json::Value& storage = Storage(
"languages");
147 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
159 Json::Value* storage = MutableStorage(
"languages");
160 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
169 return Storage().isMember(
"regions");
176 MutableStorage()->removeMember(
"regions");
184 const Json::Value& storage = Storage(
"regions");
185 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
196 Json::Value* storage = MutableStorage(
"regions");
197 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
204 #endif // GOOGLE_YOUTUBE_API_CHANNEL_SECTION_TARGETING_H_ void clear_languages()
Definition: channel_section_targeting.h:137
const client::JsonCppArray< string > get_languages() const
Definition: channel_section_targeting.h:145
Definition: access_policy.cc:40
bool has_languages() const
Definition: channel_section_targeting.h:130
client::JsonCppArray< string > mutable_languages()
Definition: channel_section_targeting.h:158
void clear_regions()
Definition: channel_section_targeting.h:175
bool has_regions() const
Definition: channel_section_targeting.h:168
const client::JsonCppArray< string > get_regions() const
Definition: channel_section_targeting.h:183
Definition: access_policy.h:38
void clear_countries()
Definition: channel_section_targeting.h:99
client::JsonCppArray< string > mutable_countries()
Definition: channel_section_targeting.h:120
client::JsonCppArray< string > mutable_regions()
Definition: channel_section_targeting.h:195
const StringPiece GetTypeName() const
Definition: channel_section_targeting.h:83
const client::JsonCppArray< string > get_countries() const
Definition: channel_section_targeting.h:107
bool has_countries() const
Definition: channel_section_targeting.h:92
Definition: channel_section_targeting.h:50