30 #ifndef GOOGLE_BOOKS_API_ANNOTATIONSDATA_H_ 31 #define GOOGLE_BOOKS_API_ANNOTATIONSDATA_H_ 34 #include "googleapis/base/integral_types.h" 35 #include "googleapis/base/macros.h" 36 #include "googleapis/client/data/jsoncpp_data.h" 37 #include "googleapis/strings/stringpiece.h" 39 #include "google/books_api/annotationdata.h" 87 return StringPiece(
"google_books_api::Annotationsdata");
96 return Storage().isMember(
"items");
103 MutableStorage()->removeMember(
"items");
110 const client::JsonCppArray<Annotationdata > get_items()
const;
119 client::JsonCppArray<Annotationdata > mutable_items();
127 return Storage().isMember(
"kind");
134 MutableStorage()->removeMember(
"kind");
142 const Json::Value& v = Storage(
"kind");
143 if (v == Json::Value::null)
return StringPiece(
"");
144 return StringPiece(v.asCString());
155 *MutableStorage(
"kind") = value.data();
164 return Storage().isMember(
"nextPageToken");
171 MutableStorage()->removeMember(
"nextPageToken");
179 const Json::Value& v = Storage(
"nextPageToken");
180 if (v == Json::Value::null)
return StringPiece(
"");
181 return StringPiece(v.asCString());
193 *MutableStorage(
"nextPageToken") = value.data();
202 return Storage().isMember(
"totalItems");
209 MutableStorage()->removeMember(
"totalItems");
217 const Json::Value& storage = Storage(
"totalItems");
218 return client::JsonValueToCppValueHelper<int32 >(storage);
229 client::SetJsonValueFromCppValueHelper<int32 >(
230 value, MutableStorage(
"totalItems"));
237 #endif // GOOGLE_BOOKS_API_ANNOTATIONSDATA_H_ bool has_kind() const
Definition: annotationsdata.h:126
void set_next_page_token(const StringPiece &value)
Definition: annotationsdata.h:192
Definition: annotationsdata.h:53
const StringPiece GetTypeName() const
Definition: annotationsdata.h:86
const StringPiece get_next_page_token() const
Definition: annotationsdata.h:178
bool has_next_page_token() const
Definition: annotationsdata.h:163
void clear_items()
Definition: annotationsdata.h:102
void clear_total_items()
Definition: annotationsdata.h:208
const StringPiece get_kind() const
Definition: annotationsdata.h:141
Definition: annotation.h:42
void set_total_items(int32 value)
Definition: annotationsdata.h:228
int32 get_total_items() const
Definition: annotationsdata.h:216
void set_kind(const StringPiece &value)
Definition: annotationsdata.h:154
Definition: annotation.cc:44
void clear_kind()
Definition: annotationsdata.h:133
bool has_total_items() const
Definition: annotationsdata.h:201
bool has_items() const
Definition: annotationsdata.h:95
void clear_next_page_token()
Definition: annotationsdata.h:170