30 #ifndef GOOGLE_YOUTUBE_API_LOCALIZED_PROPERTY_H_ 31 #define GOOGLE_YOUTUBE_API_LOCALIZED_PROPERTY_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/language_tag.h" 39 #include "google/youtube_api/localized_string.h" 87 return StringPiece(
"google_youtube_api::LocalizedProperty");
96 return Storage().isMember(
"default");
103 MutableStorage()->removeMember(
"default");
111 const Json::Value& v = Storage(
"default");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
121 *MutableStorage(
"default") = value.data();
130 return Storage().isMember(
"defaultLanguage");
137 MutableStorage()->removeMember(
"defaultLanguage");
163 return Storage().isMember(
"localized");
170 MutableStorage()->removeMember(
"localized");
177 const client::JsonCppArray<LocalizedString > get_localized()
const;
184 client::JsonCppArray<LocalizedString > mutable_localized();
190 #endif // GOOGLE_YOUTUBE_API_LOCALIZED_PROPERTY_H_ Definition: access_policy.cc:40
void set_default(const StringPiece &value)
Definition: localized_property.h:120
const StringPiece GetTypeName() const
Definition: localized_property.h:86
void clear_default_language()
Definition: localized_property.h:136
bool has_default_language() const
Definition: localized_property.h:129
Definition: localized_property.h:53
bool has_localized() const
Definition: localized_property.h:162
Definition: access_policy.h:38
Definition: language_tag.h:50
void clear_localized()
Definition: localized_property.h:169
const StringPiece get_default() const
Definition: localized_property.h:110
void clear_default()
Definition: localized_property.h:102
bool has_default() const
Definition: localized_property.h:95