books  v1
discoveryclusters.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_DISCOVERYCLUSTERS_H_
31 #define GOOGLE_BOOKS_API_DISCOVERYCLUSTERS_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/strings/stringpiece.h"
38 
39 #include "google/books_api/volume.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_books_api {
46 using namespace googleapis;
47 
53 class Discoveryclusters : public client::JsonCppData {
54  public:
60  class DiscoveryclustersClusters : public client::JsonCppData {
61  public:
67  class DiscoveryclustersClustersBannerWithContentContainer : public client::JsonCppData {
68  public:
75 
81  explicit DiscoveryclustersClustersBannerWithContentContainer(const Json::Value& storage);
82 
88  explicit DiscoveryclustersClustersBannerWithContentContainer(Json::Value* storage);
89 
94 
101  const StringPiece GetTypeName() const {
102  return StringPiece("google_books_api::DiscoveryclustersClustersBannerWithContentContainer");
103  }
104 
110  bool has_fill_color_argb() const {
111  return Storage().isMember("fillColorArgb");
112  }
113 
118  MutableStorage()->removeMember("fillColorArgb");
119  }
120 
121 
125  const StringPiece get_fill_color_argb() const {
126  const Json::Value& v = Storage("fillColorArgb");
127  if (v == Json::Value::null) return StringPiece("");
128  return StringPiece(v.asCString());
129  }
130 
135  void set_fill_color_argb(const StringPiece& value) {
136  *MutableStorage("fillColorArgb") = value.data();
137  }
138 
144  bool has_image_url() const {
145  return Storage().isMember("imageUrl");
146  }
147 
152  MutableStorage()->removeMember("imageUrl");
153  }
154 
155 
159  const StringPiece get_image_url() const {
160  const Json::Value& v = Storage("imageUrl");
161  if (v == Json::Value::null) return StringPiece("");
162  return StringPiece(v.asCString());
163  }
164 
169  void set_image_url(const StringPiece& value) {
170  *MutableStorage("imageUrl") = value.data();
171  }
172 
178  bool has_mask_color_argb() const {
179  return Storage().isMember("maskColorArgb");
180  }
181 
186  MutableStorage()->removeMember("maskColorArgb");
187  }
188 
189 
193  const StringPiece get_mask_color_argb() const {
194  const Json::Value& v = Storage("maskColorArgb");
195  if (v == Json::Value::null) return StringPiece("");
196  return StringPiece(v.asCString());
197  }
198 
203  void set_mask_color_argb(const StringPiece& value) {
204  *MutableStorage("maskColorArgb") = value.data();
205  }
206 
212  bool has_more_button_text() const {
213  return Storage().isMember("moreButtonText");
214  }
215 
220  MutableStorage()->removeMember("moreButtonText");
221  }
222 
223 
227  const StringPiece get_more_button_text() const {
228  const Json::Value& v = Storage("moreButtonText");
229  if (v == Json::Value::null) return StringPiece("");
230  return StringPiece(v.asCString());
231  }
232 
237  void set_more_button_text(const StringPiece& value) {
238  *MutableStorage("moreButtonText") = value.data();
239  }
240 
246  bool has_more_button_url() const {
247  return Storage().isMember("moreButtonUrl");
248  }
249 
254  MutableStorage()->removeMember("moreButtonUrl");
255  }
256 
257 
261  const StringPiece get_more_button_url() const {
262  const Json::Value& v = Storage("moreButtonUrl");
263  if (v == Json::Value::null) return StringPiece("");
264  return StringPiece(v.asCString());
265  }
266 
271  void set_more_button_url(const StringPiece& value) {
272  *MutableStorage("moreButtonUrl") = value.data();
273  }
274 
280  bool has_text_color_argb() const {
281  return Storage().isMember("textColorArgb");
282  }
283 
288  MutableStorage()->removeMember("textColorArgb");
289  }
290 
291 
295  const StringPiece get_text_color_argb() const {
296  const Json::Value& v = Storage("textColorArgb");
297  if (v == Json::Value::null) return StringPiece("");
298  return StringPiece(v.asCString());
299  }
300 
305  void set_text_color_argb(const StringPiece& value) {
306  *MutableStorage("textColorArgb") = value.data();
307  }
308 
309  private:
311  }; // DiscoveryclustersClustersBannerWithContentContainer
317  static DiscoveryclustersClusters* New();
318 
324  explicit DiscoveryclustersClusters(const Json::Value& storage);
325 
331  explicit DiscoveryclustersClusters(Json::Value* storage);
332 
336  virtual ~DiscoveryclustersClusters();
337 
343  const StringPiece GetTypeName() const {
344  return StringPiece("google_books_api::DiscoveryclustersClusters");
345  }
346 
355  return Storage().isMember("banner_with_content_container");
356  }
357 
362  MutableStorage()->removeMember("banner_with_content_container");
363  }
364 
365 
371  const Json::Value& storage = Storage("banner_with_content_container");
372  return client::JsonValueToCppValueHelper<DiscoveryclustersClustersBannerWithContentContainer >(storage);
373  }
374 
381  Json::Value* storage = MutableStorage("banner_with_content_container");
382  return client::JsonValueToMutableCppValueHelper<DiscoveryclustersClustersBannerWithContentContainer >(storage);
383  }
384 
390  bool has_sub_title() const {
391  return Storage().isMember("subTitle");
392  }
393 
398  MutableStorage()->removeMember("subTitle");
399  }
400 
401 
405  const StringPiece get_sub_title() const {
406  const Json::Value& v = Storage("subTitle");
407  if (v == Json::Value::null) return StringPiece("");
408  return StringPiece(v.asCString());
409  }
410 
415  void set_sub_title(const StringPiece& value) {
416  *MutableStorage("subTitle") = value.data();
417  }
418 
424  bool has_title() const {
425  return Storage().isMember("title");
426  }
427 
431  void clear_title() {
432  MutableStorage()->removeMember("title");
433  }
434 
435 
439  const StringPiece get_title() const {
440  const Json::Value& v = Storage("title");
441  if (v == Json::Value::null) return StringPiece("");
442  return StringPiece(v.asCString());
443  }
444 
449  void set_title(const StringPiece& value) {
450  *MutableStorage("title") = value.data();
451  }
452 
458  bool has_total_volumes() const {
459  return Storage().isMember("totalVolumes");
460  }
461 
466  MutableStorage()->removeMember("totalVolumes");
467  }
468 
469 
473  int32 get_total_volumes() const {
474  const Json::Value& storage = Storage("totalVolumes");
475  return client::JsonValueToCppValueHelper<int32 >(storage);
476  }
477 
482  void set_total_volumes(int32 value) {
483  client::SetJsonValueFromCppValueHelper<int32 >(
484  value, MutableStorage("totalVolumes"));
485  }
486 
492  bool has_uid() const {
493  return Storage().isMember("uid");
494  }
495 
499  void clear_uid() {
500  MutableStorage()->removeMember("uid");
501  }
502 
503 
507  const StringPiece get_uid() const {
508  const Json::Value& v = Storage("uid");
509  if (v == Json::Value::null) return StringPiece("");
510  return StringPiece(v.asCString());
511  }
512 
517  void set_uid(const StringPiece& value) {
518  *MutableStorage("uid") = value.data();
519  }
520 
526  bool has_volumes() const {
527  return Storage().isMember("volumes");
528  }
529 
533  void clear_volumes() {
534  MutableStorage()->removeMember("volumes");
535  }
536 
537 
541  const client::JsonCppArray<Volume > get_volumes() const;
542 
548  client::JsonCppArray<Volume > mutable_volumes();
549 
550  private:
551  void operator=(const DiscoveryclustersClusters&);
552  }; // DiscoveryclustersClusters
558  static Discoveryclusters* New();
559 
565  explicit Discoveryclusters(const Json::Value& storage);
566 
572  explicit Discoveryclusters(Json::Value* storage);
573 
577  virtual ~Discoveryclusters();
578 
584  const StringPiece GetTypeName() const {
585  return StringPiece("google_books_api::Discoveryclusters");
586  }
587 
593  bool has_clusters() const {
594  return Storage().isMember("clusters");
595  }
596 
600  void clear_clusters() {
601  MutableStorage()->removeMember("clusters");
602  }
603 
604 
608  const client::JsonCppArray<DiscoveryclustersClusters > get_clusters() const {
609  const Json::Value& storage = Storage("clusters");
610  return client::JsonValueToCppValueHelper<client::JsonCppArray<DiscoveryclustersClusters > >(storage);
611  }
612 
618  client::JsonCppArray<DiscoveryclustersClusters > mutable_clusters() {
619  Json::Value* storage = MutableStorage("clusters");
620  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<DiscoveryclustersClusters > >(storage);
621  }
622 
628  bool has_kind() const {
629  return Storage().isMember("kind");
630  }
631 
635  void clear_kind() {
636  MutableStorage()->removeMember("kind");
637  }
638 
639 
643  const StringPiece get_kind() const {
644  const Json::Value& v = Storage("kind");
645  if (v == Json::Value::null) return StringPiece("");
646  return StringPiece(v.asCString());
647  }
648 
656  void set_kind(const StringPiece& value) {
657  *MutableStorage("kind") = value.data();
658  }
659 
665  bool has_total_clusters() const {
666  return Storage().isMember("totalClusters");
667  }
668 
673  MutableStorage()->removeMember("totalClusters");
674  }
675 
676 
680  int32 get_total_clusters() const {
681  const Json::Value& storage = Storage("totalClusters");
682  return client::JsonValueToCppValueHelper<int32 >(storage);
683  }
684 
689  void set_total_clusters(int32 value) {
690  client::SetJsonValueFromCppValueHelper<int32 >(
691  value, MutableStorage("totalClusters"));
692  }
693 
694  private:
695  void operator=(const Discoveryclusters&);
696 }; // Discoveryclusters
697 } // namespace google_books_api
698 #endif // GOOGLE_BOOKS_API_DISCOVERYCLUSTERS_H_
int32 get_total_volumes() const
Definition: discoveryclusters.h:473
bool has_clusters() const
Definition: discoveryclusters.h:593
void clear_kind()
Definition: discoveryclusters.h:635
bool has_volumes() const
Definition: discoveryclusters.h:526
bool has_title() const
Definition: discoveryclusters.h:424
bool has_banner_with_content_container() const
Definition: discoveryclusters.h:354
void set_kind(const StringPiece &value)
Definition: discoveryclusters.h:656
void set_title(const StringPiece &value)
Definition: discoveryclusters.h:449
void clear_title()
Definition: discoveryclusters.h:431
void set_total_clusters(int32 value)
Definition: discoveryclusters.h:689
bool has_uid() const
Definition: discoveryclusters.h:492
const client::JsonCppArray< DiscoveryclustersClusters > get_clusters() const
Definition: discoveryclusters.h:608
bool has_kind() const
Definition: discoveryclusters.h:628
client::JsonCppArray< DiscoveryclustersClusters > mutable_clusters()
Definition: discoveryclusters.h:618
const StringPiece get_sub_title() const
Definition: discoveryclusters.h:405
void clear_total_clusters()
Definition: discoveryclusters.h:672
const StringPiece get_uid() const
Definition: discoveryclusters.h:507
void set_sub_title(const StringPiece &value)
Definition: discoveryclusters.h:415
Definition: annotation.h:42
void set_uid(const StringPiece &value)
Definition: discoveryclusters.h:517
const DiscoveryclustersClustersBannerWithContentContainer get_banner_with_content_container() const
Definition: discoveryclusters.h:370
void clear_total_volumes()
Definition: discoveryclusters.h:465
int32 get_total_clusters() const
Definition: discoveryclusters.h:680
Definition: annotation.cc:44
void clear_clusters()
Definition: discoveryclusters.h:600
bool has_sub_title() const
Definition: discoveryclusters.h:390
void clear_uid()
Definition: discoveryclusters.h:499
const StringPiece get_title() const
Definition: discoveryclusters.h:439
const StringPiece GetTypeName() const
Definition: discoveryclusters.h:584
void clear_sub_title()
Definition: discoveryclusters.h:397
void clear_banner_with_content_container()
Definition: discoveryclusters.h:361
bool has_total_volumes() const
Definition: discoveryclusters.h:458
bool has_total_clusters() const
Definition: discoveryclusters.h:665
DiscoveryclustersClustersBannerWithContentContainer mutable_banner_with_content_container()
Definition: discoveryclusters.h:380
void set_total_volumes(int32 value)
Definition: discoveryclusters.h:482
const StringPiece get_kind() const
Definition: discoveryclusters.h:643
const StringPiece GetTypeName() const
Definition: discoveryclusters.h:343
void clear_volumes()
Definition: discoveryclusters.h:533
Definition: discoveryclusters.h:53