30 #ifndef GOOGLE_YOUTUBE_API_NONPROFIT_ID_H_ 31 #define GOOGLE_YOUTUBE_API_NONPROFIT_ID_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::NonprofitId");
93 return Storage().isMember(
"value");
100 MutableStorage()->removeMember(
"value");
108 const Json::Value& v = Storage(
"value");
109 if (v == Json::Value::null)
return StringPiece(
"");
110 return StringPiece(v.asCString());
118 *MutableStorage(
"value") = value.data();
125 #endif // GOOGLE_YOUTUBE_API_NONPROFIT_ID_H_ Definition: access_policy.cc:40
void set_value(const StringPiece &value)
Definition: nonprofit_id.h:117
const StringPiece get_value() const
Definition: nonprofit_id.h:107
Definition: access_policy.h:38
Definition: nonprofit_id.h:50
const StringPiece GetTypeName() const
Definition: nonprofit_id.h:83
bool has_value() const
Definition: nonprofit_id.h:92
void clear_value()
Definition: nonprofit_id.h:99