30 #ifndef GOOGLE_YOUTUBE_API_NONPROFIT_H_ 31 #define GOOGLE_YOUTUBE_API_NONPROFIT_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/nonprofit_id.h" 66 explicit Nonprofit(
const Json::Value& storage);
86 return StringPiece(
"google_youtube_api::Nonprofit");
95 return Storage().isMember(
"nonprofitId");
102 MutableStorage()->removeMember(
"nonprofitId");
127 return Storage().isMember(
"nonprofitLegalName");
134 MutableStorage()->removeMember(
"nonprofitLegalName");
142 const Json::Value& v = Storage(
"nonprofitLegalName");
143 if (v == Json::Value::null)
return StringPiece(
"");
144 return StringPiece(v.asCString());
155 *MutableStorage(
"nonprofitLegalName") = value.data();
162 #endif // GOOGLE_YOUTUBE_API_NONPROFIT_H_ Definition: access_policy.cc:40
void set_nonprofit_legal_name(const StringPiece &value)
Definition: nonprofit.h:154
Definition: nonprofit.h:52
const StringPiece GetTypeName() const
Definition: nonprofit.h:85
bool has_nonprofit_id() const
Definition: nonprofit.h:94
Definition: access_policy.h:38
const StringPiece get_nonprofit_legal_name() const
Definition: nonprofit.h:141
void clear_nonprofit_id()
Definition: nonprofit.h:101
void clear_nonprofit_legal_name()
Definition: nonprofit.h:133
Definition: nonprofit_id.h:50
bool has_nonprofit_legal_name() const
Definition: nonprofit.h:126