30 #ifndef GOOGLE_YOUTUBE_API_I18N_LANGUAGE_SNIPPET_H_ 31 #define GOOGLE_YOUTUBE_API_I18N_LANGUAGE_SNIPPET_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 85 return StringPiece(
"google_youtube_api::I18nLanguageSnippet");
94 return Storage().isMember(
"hl");
101 MutableStorage()->removeMember(
"hl");
109 const Json::Value& v = Storage(
"hl");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
122 *MutableStorage(
"hl") = value.data();
131 return Storage().isMember(
"name");
138 MutableStorage()->removeMember(
"name");
146 const Json::Value& v = Storage(
"name");
147 if (v == Json::Value::null)
return StringPiece(
"");
148 return StringPiece(v.asCString());
159 *MutableStorage(
"name") = value.data();
166 #endif // GOOGLE_YOUTUBE_API_I18N_LANGUAGE_SNIPPET_H_ Definition: i18n_language_snippet.h:51
Definition: access_policy.cc:40
void clear_hl()
Definition: i18n_language_snippet.h:100
const StringPiece get_name() const
Definition: i18n_language_snippet.h:145
void set_name(const StringPiece &value)
Definition: i18n_language_snippet.h:158
bool has_name() const
Definition: i18n_language_snippet.h:130
void set_hl(const StringPiece &value)
Definition: i18n_language_snippet.h:121
Definition: access_policy.h:38
void clear_name()
Definition: i18n_language_snippet.h:137
const StringPiece get_hl() const
Definition: i18n_language_snippet.h:108
bool has_hl() const
Definition: i18n_language_snippet.h:93
const StringPiece GetTypeName() const
Definition: i18n_language_snippet.h:84