30 #ifndef GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_H_ 31 #define GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_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/super_chat_event_snippet.h" 87 return StringPiece(
"google_youtube_api::SuperChatEvent");
96 return Storage().isMember(
"etag");
103 MutableStorage()->removeMember(
"etag");
111 const Json::Value& v = Storage(
"etag");
112 if (v == Json::Value::null)
return StringPiece(
"");
113 return StringPiece(v.asCString());
124 *MutableStorage(
"etag") = value.data();
133 return Storage().isMember(
"id");
140 MutableStorage()->removeMember(
"id");
148 const Json::Value& v = Storage(
"id");
149 if (v == Json::Value::null)
return StringPiece(
"");
150 return StringPiece(v.asCString());
161 *MutableStorage(
"id") = value.data();
170 return Storage().isMember(
"kind");
177 MutableStorage()->removeMember(
"kind");
185 const Json::Value& v = Storage(
"kind");
186 if (v == Json::Value::null)
return StringPiece(
"");
187 return StringPiece(v.asCString());
199 *MutableStorage(
"kind") = value.data();
208 return Storage().isMember(
"snippet");
215 MutableStorage()->removeMember(
"snippet");
237 #endif // GOOGLE_YOUTUBE_API_SUPER_CHAT_EVENT_H_ void set_etag(const StringPiece &value)
Definition: super_chat_event.h:123
void set_id(const StringPiece &value)
Definition: super_chat_event.h:160
Definition: access_policy.cc:40
const StringPiece get_etag() const
Definition: super_chat_event.h:110
void set_kind(const StringPiece &value)
Definition: super_chat_event.h:198
Definition: super_chat_event.h:53
Definition: super_chat_event_snippet.h:56
bool has_kind() const
Definition: super_chat_event.h:169
void clear_etag()
Definition: super_chat_event.h:102
void clear_kind()
Definition: super_chat_event.h:176
Definition: access_policy.h:38
void clear_id()
Definition: super_chat_event.h:139
const StringPiece get_id() const
Definition: super_chat_event.h:147
bool has_etag() const
Definition: super_chat_event.h:95
const StringPiece get_kind() const
Definition: super_chat_event.h:184
void clear_snippet()
Definition: super_chat_event.h:214
bool has_id() const
Definition: super_chat_event.h:132
const StringPiece GetTypeName() const
Definition: super_chat_event.h:86
bool has_snippet() const
Definition: super_chat_event.h:207