30 #ifndef GOOGLE_YOUTUBE_API_I18N_REGION_SNIPPET_H_ 31 #define GOOGLE_YOUTUBE_API_I18N_REGION_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::I18nRegionSnippet");
94 return Storage().isMember(
"gl");
101 MutableStorage()->removeMember(
"gl");
109 const Json::Value& v = Storage(
"gl");
110 if (v == Json::Value::null)
return StringPiece(
"");
111 return StringPiece(v.asCString());
122 *MutableStorage(
"gl") = 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_REGION_SNIPPET_H_ Definition: access_policy.cc:40
const StringPiece get_name() const
Definition: i18n_region_snippet.h:145
void clear_name()
Definition: i18n_region_snippet.h:137
const StringPiece GetTypeName() const
Definition: i18n_region_snippet.h:84
void clear_gl()
Definition: i18n_region_snippet.h:100
Definition: access_policy.h:38
bool has_gl() const
Definition: i18n_region_snippet.h:93
bool has_name() const
Definition: i18n_region_snippet.h:130
const StringPiece get_gl() const
Definition: i18n_region_snippet.h:108
Definition: i18n_region_snippet.h:51
void set_gl(const StringPiece &value)
Definition: i18n_region_snippet.h:121
void set_name(const StringPiece &value)
Definition: i18n_region_snippet.h:158