30 #ifndef GOOGLE_BOOKS_API_BOOKSHELVES_H_ 31 #define GOOGLE_BOOKS_API_BOOKSHELVES_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/books_api/bookshelf.h" 86 return StringPiece(
"google_books_api::Bookshelves");
95 return Storage().isMember(
"items");
102 MutableStorage()->removeMember(
"items");
109 const client::JsonCppArray<Bookshelf > get_items()
const;
118 client::JsonCppArray<Bookshelf > 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());
154 *MutableStorage(
"kind") = value.data();
161 #endif // GOOGLE_BOOKS_API_BOOKSHELVES_H_ void clear_items()
Definition: bookshelves.h:101
const StringPiece GetTypeName() const
Definition: bookshelves.h:85
bool has_kind() const
Definition: bookshelves.h:125
bool has_items() const
Definition: bookshelves.h:94
Definition: annotation.h:42
void clear_kind()
Definition: bookshelves.h:132
Definition: annotation.cc:44
const StringPiece get_kind() const
Definition: bookshelves.h:140
Definition: bookshelves.h:52
void set_kind(const StringPiece &value)
Definition: bookshelves.h:153