blogger  v2
page.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-04-13, 16:03:23 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Blogger API v3 (blogger/v2)
24 // Generated from:
25 // Version: v2
26 // Revision: 77
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_BLOGGER_API_PAGE_H_
31 #define GOOGLE_BLOGGER_API_PAGE_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_blogger_api {
43 using namespace googleapis;
44 
50 class Page : public client::JsonCppData {
51  public:
57  class PageAuthor : public client::JsonCppData {
58  public:
64  class PageAuthorImage : public client::JsonCppData {
65  public:
71  static PageAuthorImage* New();
72 
78  explicit PageAuthorImage(const Json::Value& storage);
79 
85  explicit PageAuthorImage(Json::Value* storage);
86 
90  virtual ~PageAuthorImage();
91 
97  const StringPiece GetTypeName() const {
98  return StringPiece("google_blogger_api::PageAuthorImage");
99  }
100 
106  bool has_url() const {
107  return Storage().isMember("url");
108  }
109 
113  void clear_url() {
114  MutableStorage()->removeMember("url");
115  }
116 
117 
121  const StringPiece get_url() const {
122  const Json::Value& v = Storage("url");
123  if (v == Json::Value::null) return StringPiece("");
124  return StringPiece(v.asCString());
125  }
126 
134  void set_url(const StringPiece& value) {
135  *MutableStorage("url") = value.data();
136  }
137 
138  private:
139  void operator=(const PageAuthorImage&);
140  }; // PageAuthorImage
146  static PageAuthor* New();
147 
153  explicit PageAuthor(const Json::Value& storage);
154 
160  explicit PageAuthor(Json::Value* storage);
161 
165  virtual ~PageAuthor();
166 
172  const StringPiece GetTypeName() const {
173  return StringPiece("google_blogger_api::PageAuthor");
174  }
175 
181  bool has_display_name() const {
182  return Storage().isMember("displayName");
183  }
184 
189  MutableStorage()->removeMember("displayName");
190  }
191 
192 
196  const StringPiece get_display_name() const {
197  const Json::Value& v = Storage("displayName");
198  if (v == Json::Value::null) return StringPiece("");
199  return StringPiece(v.asCString());
200  }
201 
209  void set_display_name(const StringPiece& value) {
210  *MutableStorage("displayName") = value.data();
211  }
212 
218  bool has_id() const {
219  return Storage().isMember("id");
220  }
221 
225  void clear_id() {
226  MutableStorage()->removeMember("id");
227  }
228 
229 
233  const StringPiece get_id() const {
234  const Json::Value& v = Storage("id");
235  if (v == Json::Value::null) return StringPiece("");
236  return StringPiece(v.asCString());
237  }
238 
246  void set_id(const StringPiece& value) {
247  *MutableStorage("id") = value.data();
248  }
249 
255  bool has_image() const {
256  return Storage().isMember("image");
257  }
258 
262  void clear_image() {
263  MutableStorage()->removeMember("image");
264  }
265 
266 
270  const PageAuthorImage get_image() const {
271  const Json::Value& storage = Storage("image");
272  return client::JsonValueToCppValueHelper<PageAuthorImage >(storage);
273  }
274 
283  Json::Value* storage = MutableStorage("image");
284  return client::JsonValueToMutableCppValueHelper<PageAuthorImage >(storage);
285  }
286 
292  bool has_url() const {
293  return Storage().isMember("url");
294  }
295 
299  void clear_url() {
300  MutableStorage()->removeMember("url");
301  }
302 
303 
307  const StringPiece get_url() const {
308  const Json::Value& v = Storage("url");
309  if (v == Json::Value::null) return StringPiece("");
310  return StringPiece(v.asCString());
311  }
312 
320  void set_url(const StringPiece& value) {
321  *MutableStorage("url") = value.data();
322  }
323 
324  private:
325  void operator=(const PageAuthor&);
326  }; // PageAuthor
332  class PageBlog : public client::JsonCppData {
333  public:
339  static PageBlog* New();
340 
346  explicit PageBlog(const Json::Value& storage);
347 
353  explicit PageBlog(Json::Value* storage);
354 
358  virtual ~PageBlog();
359 
365  const StringPiece GetTypeName() const {
366  return StringPiece("google_blogger_api::PageBlog");
367  }
368 
374  bool has_id() const {
375  return Storage().isMember("id");
376  }
377 
381  void clear_id() {
382  MutableStorage()->removeMember("id");
383  }
384 
385 
389  const StringPiece get_id() const {
390  const Json::Value& v = Storage("id");
391  if (v == Json::Value::null) return StringPiece("");
392  return StringPiece(v.asCString());
393  }
394 
402  void set_id(const StringPiece& value) {
403  *MutableStorage("id") = value.data();
404  }
405 
406  private:
407  void operator=(const PageBlog&);
408  }; // PageBlog
414  static Page* New();
415 
421  explicit Page(const Json::Value& storage);
422 
428  explicit Page(Json::Value* storage);
429 
433  virtual ~Page();
434 
440  const StringPiece GetTypeName() const {
441  return StringPiece("google_blogger_api::Page");
442  }
443 
449  bool has_author() const {
450  return Storage().isMember("author");
451  }
452 
456  void clear_author() {
457  MutableStorage()->removeMember("author");
458  }
459 
460 
464  const PageAuthor get_author() const {
465  const Json::Value& storage = Storage("author");
466  return client::JsonValueToCppValueHelper<PageAuthor >(storage);
467  }
468 
477  Json::Value* storage = MutableStorage("author");
478  return client::JsonValueToMutableCppValueHelper<PageAuthor >(storage);
479  }
480 
486  bool has_blog() const {
487  return Storage().isMember("blog");
488  }
489 
493  void clear_blog() {
494  MutableStorage()->removeMember("blog");
495  }
496 
497 
501  const PageBlog get_blog() const {
502  const Json::Value& storage = Storage("blog");
503  return client::JsonValueToCppValueHelper<PageBlog >(storage);
504  }
505 
514  Json::Value* storage = MutableStorage("blog");
515  return client::JsonValueToMutableCppValueHelper<PageBlog >(storage);
516  }
517 
523  bool has_content() const {
524  return Storage().isMember("content");
525  }
526 
530  void clear_content() {
531  MutableStorage()->removeMember("content");
532  }
533 
534 
538  const StringPiece get_content() const {
539  const Json::Value& v = Storage("content");
540  if (v == Json::Value::null) return StringPiece("");
541  return StringPiece(v.asCString());
542  }
543 
551  void set_content(const StringPiece& value) {
552  *MutableStorage("content") = value.data();
553  }
554 
560  bool has_etag() const {
561  return Storage().isMember("etag");
562  }
563 
567  void clear_etag() {
568  MutableStorage()->removeMember("etag");
569  }
570 
571 
575  const StringPiece get_etag() const {
576  const Json::Value& v = Storage("etag");
577  if (v == Json::Value::null) return StringPiece("");
578  return StringPiece(v.asCString());
579  }
580 
588  void set_etag(const StringPiece& value) {
589  *MutableStorage("etag") = value.data();
590  }
591 
597  bool has_id() const {
598  return Storage().isMember("id");
599  }
600 
604  void clear_id() {
605  MutableStorage()->removeMember("id");
606  }
607 
608 
612  const StringPiece get_id() const {
613  const Json::Value& v = Storage("id");
614  if (v == Json::Value::null) return StringPiece("");
615  return StringPiece(v.asCString());
616  }
617 
625  void set_id(const StringPiece& value) {
626  *MutableStorage("id") = value.data();
627  }
628 
634  bool has_kind() const {
635  return Storage().isMember("kind");
636  }
637 
641  void clear_kind() {
642  MutableStorage()->removeMember("kind");
643  }
644 
645 
649  const StringPiece get_kind() const {
650  const Json::Value& v = Storage("kind");
651  if (v == Json::Value::null) return StringPiece("");
652  return StringPiece(v.asCString());
653  }
654 
662  void set_kind(const StringPiece& value) {
663  *MutableStorage("kind") = value.data();
664  }
665 
671  bool has_published() const {
672  return Storage().isMember("published");
673  }
674 
679  MutableStorage()->removeMember("published");
680  }
681 
682 
686  const StringPiece get_published() const {
687  const Json::Value& v = Storage("published");
688  if (v == Json::Value::null) return StringPiece("");
689  return StringPiece(v.asCString());
690  }
691 
699  void set_published(const StringPiece& value) {
700  *MutableStorage("published") = value.data();
701  }
702 
708  bool has_self_link() const {
709  return Storage().isMember("selfLink");
710  }
711 
716  MutableStorage()->removeMember("selfLink");
717  }
718 
719 
723  const StringPiece get_self_link() const {
724  const Json::Value& v = Storage("selfLink");
725  if (v == Json::Value::null) return StringPiece("");
726  return StringPiece(v.asCString());
727  }
728 
736  void set_self_link(const StringPiece& value) {
737  *MutableStorage("selfLink") = value.data();
738  }
739 
745  bool has_status() const {
746  return Storage().isMember("status");
747  }
748 
752  void clear_status() {
753  MutableStorage()->removeMember("status");
754  }
755 
756 
760  const StringPiece get_status() const {
761  const Json::Value& v = Storage("status");
762  if (v == Json::Value::null) return StringPiece("");
763  return StringPiece(v.asCString());
764  }
765 
773  void set_status(const StringPiece& value) {
774  *MutableStorage("status") = value.data();
775  }
776 
782  bool has_title() const {
783  return Storage().isMember("title");
784  }
785 
789  void clear_title() {
790  MutableStorage()->removeMember("title");
791  }
792 
793 
797  const StringPiece get_title() const {
798  const Json::Value& v = Storage("title");
799  if (v == Json::Value::null) return StringPiece("");
800  return StringPiece(v.asCString());
801  }
802 
811  void set_title(const StringPiece& value) {
812  *MutableStorage("title") = value.data();
813  }
814 
820  bool has_updated() const {
821  return Storage().isMember("updated");
822  }
823 
827  void clear_updated() {
828  MutableStorage()->removeMember("updated");
829  }
830 
831 
835  const StringPiece get_updated() const {
836  const Json::Value& v = Storage("updated");
837  if (v == Json::Value::null) return StringPiece("");
838  return StringPiece(v.asCString());
839  }
840 
848  void set_updated(const StringPiece& value) {
849  *MutableStorage("updated") = value.data();
850  }
851 
857  bool has_url() const {
858  return Storage().isMember("url");
859  }
860 
864  void clear_url() {
865  MutableStorage()->removeMember("url");
866  }
867 
868 
872  const StringPiece get_url() const {
873  const Json::Value& v = Storage("url");
874  if (v == Json::Value::null) return StringPiece("");
875  return StringPiece(v.asCString());
876  }
877 
885  void set_url(const StringPiece& value) {
886  *MutableStorage("url") = value.data();
887  }
888 
889  private:
890  void operator=(const Page&);
891 }; // Page
892 } // namespace google_blogger_api
893 #endif // GOOGLE_BLOGGER_API_PAGE_H_
PageBlog mutable_blog()
Definition: page.h:513
const StringPiece get_id() const
Definition: page.h:389
bool has_id() const
Definition: page.h:597
const StringPiece get_id() const
Definition: page.h:233
void set_id(const StringPiece &value)
Definition: page.h:625
bool has_url() const
Definition: page.h:106
const StringPiece GetTypeName() const
Definition: page.h:97
const StringPiece get_title() const
Definition: page.h:797
bool has_self_link() const
Definition: page.h:708
void clear_display_name()
Definition: page.h:188
const StringPiece get_published() const
Definition: page.h:686
const StringPiece get_updated() const
Definition: page.h:835
void clear_image()
Definition: page.h:262
void set_published(const StringPiece &value)
Definition: page.h:699
bool has_etag() const
Definition: page.h:560
const StringPiece get_etag() const
Definition: page.h:575
const StringPiece get_url() const
Definition: page.h:872
void clear_blog()
Definition: page.h:493
void clear_title()
Definition: page.h:789
const StringPiece GetTypeName() const
Definition: page.h:440
void clear_updated()
Definition: page.h:827
PageAuthor mutable_author()
Definition: page.h:476
void clear_status()
Definition: page.h:752
bool has_author() const
Definition: page.h:449
Definition: page.h:50
bool has_blog() const
Definition: page.h:486
void clear_author()
Definition: page.h:456
void set_updated(const StringPiece &value)
Definition: page.h:848
bool has_content() const
Definition: page.h:523
void set_title(const StringPiece &value)
Definition: page.h:811
const StringPiece get_url() const
Definition: page.h:307
void clear_id()
Definition: page.h:225
const PageAuthor get_author() const
Definition: page.h:464
bool has_updated() const
Definition: page.h:820
bool has_status() const
Definition: page.h:745
const StringPiece get_id() const
Definition: page.h:612
void set_url(const StringPiece &value)
Definition: page.h:134
const StringPiece GetTypeName() const
Definition: page.h:172
void set_self_link(const StringPiece &value)
Definition: page.h:736
void set_id(const StringPiece &value)
Definition: page.h:402
void clear_url()
Definition: page.h:299
void clear_id()
Definition: page.h:381
const StringPiece get_self_link() const
Definition: page.h:723
void set_content(const StringPiece &value)
Definition: page.h:551
void clear_etag()
Definition: page.h:567
const StringPiece get_kind() const
Definition: page.h:649
const StringPiece GetTypeName() const
Definition: page.h:365
Definition: blog.cc:44
void clear_published()
Definition: page.h:678
bool has_title() const
Definition: page.h:782
bool has_image() const
Definition: page.h:255
const PageAuthorImage get_image() const
Definition: page.h:270
void clear_kind()
Definition: page.h:641
Definition: blog.h:41
bool has_display_name() const
Definition: page.h:181
void clear_url()
Definition: page.h:864
bool has_id() const
Definition: page.h:218
void clear_self_link()
Definition: page.h:715
bool has_url() const
Definition: page.h:857
const PageBlog get_blog() const
Definition: page.h:501
bool has_kind() const
Definition: page.h:634
bool has_published() const
Definition: page.h:671
PageAuthorImage mutable_image()
Definition: page.h:282
const StringPiece get_content() const
Definition: page.h:538
void set_status(const StringPiece &value)
Definition: page.h:773
const StringPiece get_status() const
Definition: page.h:760
void set_display_name(const StringPiece &value)
Definition: page.h:209
void clear_content()
Definition: page.h:530
const StringPiece get_display_name() const
Definition: page.h:196
void set_etag(const StringPiece &value)
Definition: page.h:588
void set_id(const StringPiece &value)
Definition: page.h:246
const StringPiece get_url() const
Definition: page.h:121
void clear_id()
Definition: page.h:604
bool has_url() const
Definition: page.h:292
void set_url(const StringPiece &value)
Definition: page.h:885
bool has_id() const
Definition: page.h:374
void set_url(const StringPiece &value)
Definition: page.h:320
void set_kind(const StringPiece &value)
Definition: page.h:662