30 #ifndef GOOGLE_STORAGE_API_NOTIFICATIONS_H_ 31 #define GOOGLE_STORAGE_API_NOTIFICATIONS_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/storage_api/notification.h" 86 return StringPiece(
"google_storage_api::Notifications");
95 return Storage().isMember(
"items");
102 MutableStorage()->removeMember(
"items");
109 const client::JsonCppArray<Notification > get_items()
const;
118 client::JsonCppArray<Notification > mutable_items();
126 return Storage().isMember(
"kind");
133 MutableStorage()->removeMember(
"kind");
141 const Json::Value& v = Storage(
"kind");
142 if (v == Json::Value::null)
return StringPiece(
"");
143 return StringPiece(v.asCString());
155 *MutableStorage(
"kind") = value.data();
162 #endif // GOOGLE_STORAGE_API_NOTIFICATIONS_H_ bool has_items() const
Definition: notifications.h:94
const StringPiece GetTypeName() const
Definition: notifications.h:85
bool has_kind() const
Definition: notifications.h:125
void clear_kind()
Definition: notifications.h:132
const StringPiece get_kind() const
Definition: notifications.h:140
void clear_items()
Definition: notifications.h:101
void set_kind(const StringPiece &value)
Definition: notifications.h:154
Definition: notifications.h:52