books  v1
layersummary.h
1 // Copyright 2010 Google Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); you may not
4 // use this file except in compliance with the License. You may obtain a copy of
5 // the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
11 // WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
12 // License for the specific language governing permissions and limitations under
13 // the License.
14 
15 // This code was generated by google-apis-code-generator 1.5.1
16 // Build date: 2018-10-08 17:45:39 UTC
17 // on: 2020-03-14, 18:51:48 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Books API (books/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 114
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_BOOKS_API_LAYERSUMMARY_H_
31 #define GOOGLE_BOOKS_API_LAYERSUMMARY_H_
32 
33 #include <string>
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"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_books_api {
45 using namespace googleapis;
46 
52 class Layersummary : public client::JsonCppData {
53  public:
59  static Layersummary* New();
60 
66  explicit Layersummary(const Json::Value& storage);
67 
73  explicit Layersummary(Json::Value* storage);
74 
78  virtual ~Layersummary();
79 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_books_api::Layersummary");
87  }
88 
94  bool has_annotation_count() const {
95  return Storage().isMember("annotationCount");
96  }
97 
102  MutableStorage()->removeMember("annotationCount");
103  }
104 
105 
109  int32 get_annotation_count() const {
110  const Json::Value& storage = Storage("annotationCount");
111  return client::JsonValueToCppValueHelper<int32 >(storage);
112  }
113 
121  void set_annotation_count(int32 value) {
122  client::SetJsonValueFromCppValueHelper<int32 >(
123  value, MutableStorage("annotationCount"));
124  }
125 
131  bool has_annotation_types() const {
132  return Storage().isMember("annotationTypes");
133  }
134 
139  MutableStorage()->removeMember("annotationTypes");
140  }
141 
142 
147  const client::JsonCppArray<string > get_annotation_types() const {
148  const Json::Value& storage = Storage("annotationTypes");
149  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
150  }
151 
160  client::JsonCppArray<string > mutable_annotationTypes() {
161  Json::Value* storage = MutableStorage("annotationTypes");
162  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
163  }
164 
171  return Storage().isMember("annotationsDataLink");
172  }
173 
178  MutableStorage()->removeMember("annotationsDataLink");
179  }
180 
181 
185  const StringPiece get_annotations_data_link() const {
186  const Json::Value& v = Storage("annotationsDataLink");
187  if (v == Json::Value::null) return StringPiece("");
188  return StringPiece(v.asCString());
189  }
190 
198  void set_annotations_data_link(const StringPiece& value) {
199  *MutableStorage("annotationsDataLink") = value.data();
200  }
201 
207  bool has_annotations_link() const {
208  return Storage().isMember("annotationsLink");
209  }
210 
215  MutableStorage()->removeMember("annotationsLink");
216  }
217 
218 
222  const StringPiece get_annotations_link() const {
223  const Json::Value& v = Storage("annotationsLink");
224  if (v == Json::Value::null) return StringPiece("");
225  return StringPiece(v.asCString());
226  }
227 
235  void set_annotations_link(const StringPiece& value) {
236  *MutableStorage("annotationsLink") = value.data();
237  }
238 
244  bool has_content_version() const {
245  return Storage().isMember("contentVersion");
246  }
247 
252  MutableStorage()->removeMember("contentVersion");
253  }
254 
255 
259  const StringPiece get_content_version() const {
260  const Json::Value& v = Storage("contentVersion");
261  if (v == Json::Value::null) return StringPiece("");
262  return StringPiece(v.asCString());
263  }
264 
272  void set_content_version(const StringPiece& value) {
273  *MutableStorage("contentVersion") = value.data();
274  }
275 
281  bool has_data_count() const {
282  return Storage().isMember("dataCount");
283  }
284 
289  MutableStorage()->removeMember("dataCount");
290  }
291 
292 
296  int32 get_data_count() const {
297  const Json::Value& storage = Storage("dataCount");
298  return client::JsonValueToCppValueHelper<int32 >(storage);
299  }
300 
308  void set_data_count(int32 value) {
309  client::SetJsonValueFromCppValueHelper<int32 >(
310  value, MutableStorage("dataCount"));
311  }
312 
318  bool has_id() const {
319  return Storage().isMember("id");
320  }
321 
325  void clear_id() {
326  MutableStorage()->removeMember("id");
327  }
328 
329 
333  const StringPiece get_id() const {
334  const Json::Value& v = Storage("id");
335  if (v == Json::Value::null) return StringPiece("");
336  return StringPiece(v.asCString());
337  }
338 
346  void set_id(const StringPiece& value) {
347  *MutableStorage("id") = value.data();
348  }
349 
355  bool has_kind() const {
356  return Storage().isMember("kind");
357  }
358 
362  void clear_kind() {
363  MutableStorage()->removeMember("kind");
364  }
365 
366 
370  const StringPiece get_kind() const {
371  const Json::Value& v = Storage("kind");
372  if (v == Json::Value::null) return StringPiece("");
373  return StringPiece(v.asCString());
374  }
375 
383  void set_kind(const StringPiece& value) {
384  *MutableStorage("kind") = value.data();
385  }
386 
392  bool has_layer_id() const {
393  return Storage().isMember("layerId");
394  }
395 
399  void clear_layer_id() {
400  MutableStorage()->removeMember("layerId");
401  }
402 
403 
407  const StringPiece get_layer_id() const {
408  const Json::Value& v = Storage("layerId");
409  if (v == Json::Value::null) return StringPiece("");
410  return StringPiece(v.asCString());
411  }
412 
420  void set_layer_id(const StringPiece& value) {
421  *MutableStorage("layerId") = value.data();
422  }
423 
429  bool has_self_link() const {
430  return Storage().isMember("selfLink");
431  }
432 
437  MutableStorage()->removeMember("selfLink");
438  }
439 
440 
444  const StringPiece get_self_link() const {
445  const Json::Value& v = Storage("selfLink");
446  if (v == Json::Value::null) return StringPiece("");
447  return StringPiece(v.asCString());
448  }
449 
457  void set_self_link(const StringPiece& value) {
458  *MutableStorage("selfLink") = value.data();
459  }
460 
466  bool has_updated() const {
467  return Storage().isMember("updated");
468  }
469 
473  void clear_updated() {
474  MutableStorage()->removeMember("updated");
475  }
476 
477 
481  client::DateTime get_updated() const {
482  const Json::Value& storage = Storage("updated");
483  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
484  }
485 
494  void set_updated(client::DateTime value) {
495  client::SetJsonValueFromCppValueHelper<client::DateTime >(
496  value, MutableStorage("updated"));
497  }
498 
506  return Storage().isMember("volumeAnnotationsVersion");
507  }
508 
513  MutableStorage()->removeMember("volumeAnnotationsVersion");
514  }
515 
516 
520  const StringPiece get_volume_annotations_version() const {
521  const Json::Value& v = Storage("volumeAnnotationsVersion");
522  if (v == Json::Value::null) return StringPiece("");
523  return StringPiece(v.asCString());
524  }
525 
535  void set_volume_annotations_version(const StringPiece& value) {
536  *MutableStorage("volumeAnnotationsVersion") = value.data();
537  }
538 
544  bool has_volume_id() const {
545  return Storage().isMember("volumeId");
546  }
547 
552  MutableStorage()->removeMember("volumeId");
553  }
554 
555 
559  const StringPiece get_volume_id() const {
560  const Json::Value& v = Storage("volumeId");
561  if (v == Json::Value::null) return StringPiece("");
562  return StringPiece(v.asCString());
563  }
564 
572  void set_volume_id(const StringPiece& value) {
573  *MutableStorage("volumeId") = value.data();
574  }
575 
576  private:
577  void operator=(const Layersummary&);
578 }; // Layersummary
579 } // namespace google_books_api
580 #endif // GOOGLE_BOOKS_API_LAYERSUMMARY_H_
bool has_updated() const
Definition: layersummary.h:466
void set_data_count(int32 value)
Definition: layersummary.h:308
void clear_content_version()
Definition: layersummary.h:251
const StringPiece get_volume_id() const
Definition: layersummary.h:559
bool has_annotations_data_link() const
Definition: layersummary.h:170
const StringPiece get_kind() const
Definition: layersummary.h:370
void clear_updated()
Definition: layersummary.h:473
bool has_volume_annotations_version() const
Definition: layersummary.h:505
const StringPiece get_self_link() const
Definition: layersummary.h:444
void clear_annotations_data_link()
Definition: layersummary.h:177
void set_layer_id(const StringPiece &value)
Definition: layersummary.h:420
const StringPiece get_id() const
Definition: layersummary.h:333
void clear_layer_id()
Definition: layersummary.h:399
int32 get_annotation_count() const
Definition: layersummary.h:109
void set_kind(const StringPiece &value)
Definition: layersummary.h:383
void set_annotations_data_link(const StringPiece &value)
Definition: layersummary.h:198
const client::JsonCppArray< string > get_annotation_types() const
Definition: layersummary.h:147
client::JsonCppArray< string > mutable_annotationTypes()
Definition: layersummary.h:160
const StringPiece get_annotations_data_link() const
Definition: layersummary.h:185
bool has_annotation_types() const
Definition: layersummary.h:131
void set_content_version(const StringPiece &value)
Definition: layersummary.h:272
bool has_annotation_count() const
Definition: layersummary.h:94
void clear_self_link()
Definition: layersummary.h:436
void clear_annotations_link()
Definition: layersummary.h:214
int32 get_data_count() const
Definition: layersummary.h:296
void set_self_link(const StringPiece &value)
Definition: layersummary.h:457
const StringPiece get_annotations_link() const
Definition: layersummary.h:222
void set_updated(client::DateTime value)
Definition: layersummary.h:494
void set_annotation_count(int32 value)
Definition: layersummary.h:121
void clear_id()
Definition: layersummary.h:325
bool has_data_count() const
Definition: layersummary.h:281
void set_id(const StringPiece &value)
Definition: layersummary.h:346
Definition: layersummary.h:52
const StringPiece get_layer_id() const
Definition: layersummary.h:407
Definition: annotation.h:42
const StringPiece get_volume_annotations_version() const
Definition: layersummary.h:520
bool has_content_version() const
Definition: layersummary.h:244
void clear_volume_id()
Definition: layersummary.h:551
void set_volume_annotations_version(const StringPiece &value)
Definition: layersummary.h:535
Definition: annotation.cc:44
void clear_annotation_types()
Definition: layersummary.h:138
void clear_annotation_count()
Definition: layersummary.h:101
bool has_layer_id() const
Definition: layersummary.h:392
void set_volume_id(const StringPiece &value)
Definition: layersummary.h:572
void set_annotations_link(const StringPiece &value)
Definition: layersummary.h:235
void clear_kind()
Definition: layersummary.h:362
void clear_volume_annotations_version()
Definition: layersummary.h:512
bool has_self_link() const
Definition: layersummary.h:429
bool has_id() const
Definition: layersummary.h:318
client::DateTime get_updated() const
Definition: layersummary.h:481
bool has_annotations_link() const
Definition: layersummary.h:207
const StringPiece GetTypeName() const
Definition: layersummary.h:85
bool has_volume_id() const
Definition: layersummary.h:544
bool has_kind() const
Definition: layersummary.h:355
const StringPiece get_content_version() const
Definition: layersummary.h:259
void clear_data_count()
Definition: layersummary.h:288