30 #ifndef GOOGLE_BOOKS_API_ANNOTATIONS_SUMMARY_H_ 31 #define GOOGLE_BOOKS_API_ANNOTATIONS_SUMMARY_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/client/util/date_time.h" 38 #include "googleapis/strings/stringpiece.h" 93 return StringPiece(
"google_books_api::AnnotationsSummaryLayers");
103 return Storage().isMember(
"allowedCharacterCount");
110 MutableStorage()->removeMember(
"allowedCharacterCount");
118 const Json::Value& storage = Storage(
"allowedCharacterCount");
119 return client::JsonValueToCppValueHelper<int32 >(storage);
127 client::SetJsonValueFromCppValueHelper<int32 >(
128 value, MutableStorage(
"allowedCharacterCount"));
137 return Storage().isMember(
"layerId");
144 MutableStorage()->removeMember(
"layerId");
152 const Json::Value& v = Storage(
"layerId");
153 if (v == Json::Value::null)
return StringPiece(
"");
154 return StringPiece(v.asCString());
162 *MutableStorage(
"layerId") = value.data();
171 return Storage().isMember(
"limitType");
178 MutableStorage()->removeMember(
"limitType");
186 const Json::Value& v = Storage(
"limitType");
187 if (v == Json::Value::null)
return StringPiece(
"");
188 return StringPiece(v.asCString());
196 *MutableStorage(
"limitType") = value.data();
207 return Storage().isMember(
"remainingCharacterCount");
214 MutableStorage()->removeMember(
"remainingCharacterCount");
222 const Json::Value& storage = Storage(
"remainingCharacterCount");
223 return client::JsonValueToCppValueHelper<int32 >(storage);
231 client::SetJsonValueFromCppValueHelper<int32 >(
232 value, MutableStorage(
"remainingCharacterCount"));
241 return Storage().isMember(
"updated");
248 MutableStorage()->removeMember(
"updated");
256 const Json::Value& storage = Storage(
"updated");
257 return client::JsonValueToCppValueHelper<client::DateTime >(storage);
265 client::SetJsonValueFromCppValueHelper<client::DateTime >(
266 value, MutableStorage(
"updated"));
304 return StringPiece(
"google_books_api::AnnotationsSummary");
313 return Storage().isMember(
"kind");
320 MutableStorage()->removeMember(
"kind");
328 const Json::Value& v = Storage(
"kind");
329 if (v == Json::Value::null)
return StringPiece(
"");
330 return StringPiece(v.asCString());
338 *MutableStorage(
"kind") = value.data();
347 return Storage().isMember(
"layers");
354 MutableStorage()->removeMember(
"layers");
361 const client::JsonCppArray<AnnotationsSummaryLayers >
get_layers()
const {
362 const Json::Value& storage = Storage(
"layers");
363 return client::JsonValueToCppValueHelper<client::JsonCppArray<AnnotationsSummaryLayers > >(storage);
371 Json::Value* storage = MutableStorage(
"layers");
372 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<AnnotationsSummaryLayers > >(storage);
379 #endif // GOOGLE_BOOKS_API_ANNOTATIONS_SUMMARY_H_ void set_allowed_character_count(int32 value)
Definition: annotations_summary.h:126
bool has_allowed_character_count() const
Definition: annotations_summary.h:102
const StringPiece GetTypeName() const
Definition: annotations_summary.h:303
Definition: annotations_summary.h:59
int32 get_remaining_character_count() const
Definition: annotations_summary.h:221
const StringPiece get_kind() const
Definition: annotations_summary.h:327
void clear_limit_type()
Definition: annotations_summary.h:177
bool has_remaining_character_count() const
Definition: annotations_summary.h:206
void clear_allowed_character_count()
Definition: annotations_summary.h:109
void set_kind(const StringPiece &value)
Definition: annotations_summary.h:337
bool has_layer_id() const
Definition: annotations_summary.h:136
const StringPiece get_limit_type() const
Definition: annotations_summary.h:185
const client::JsonCppArray< AnnotationsSummaryLayers > get_layers() const
Definition: annotations_summary.h:361
void set_updated(client::DateTime value)
Definition: annotations_summary.h:264
int32 get_allowed_character_count() const
Definition: annotations_summary.h:117
void clear_remaining_character_count()
Definition: annotations_summary.h:213
void clear_kind()
Definition: annotations_summary.h:319
bool has_limit_type() const
Definition: annotations_summary.h:170
void set_remaining_character_count(int32 value)
Definition: annotations_summary.h:230
const StringPiece GetTypeName() const
Definition: annotations_summary.h:92
Definition: annotation.h:42
Definition: annotations_summary.h:52
bool has_updated() const
Definition: annotations_summary.h:240
void clear_layer_id()
Definition: annotations_summary.h:143
Definition: annotation.cc:44
bool has_kind() const
Definition: annotations_summary.h:312
void set_layer_id(const StringPiece &value)
Definition: annotations_summary.h:161
bool has_layers() const
Definition: annotations_summary.h:346
client::JsonCppArray< AnnotationsSummaryLayers > mutable_layers()
Definition: annotations_summary.h:370
const StringPiece get_layer_id() const
Definition: annotations_summary.h:151
void clear_updated()
Definition: annotations_summary.h:247
client::DateTime get_updated() const
Definition: annotations_summary.h:255
void set_limit_type(const StringPiece &value)
Definition: annotations_summary.h:195
void clear_layers()
Definition: annotations_summary.h:353