blogger  v3
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-02-15, 10:57:39 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 (blogger/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 69
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/client/util/date_time.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_blogger_api {
44 using namespace googleapis;
45 
51 class Page : public client::JsonCppData {
52  public:
58  class PageAuthor : public client::JsonCppData {
59  public:
65  class PageAuthorImage : public client::JsonCppData {
66  public:
72  static PageAuthorImage* New();
73 
79  explicit PageAuthorImage(const Json::Value& storage);
80 
86  explicit PageAuthorImage(Json::Value* storage);
87 
91  virtual ~PageAuthorImage();
92 
98  const StringPiece GetTypeName() const {
99  return StringPiece("google_blogger_api::PageAuthorImage");
100  }
101 
107  bool has_url() const {
108  return Storage().isMember("url");
109  }
110 
114  void clear_url() {
115  MutableStorage()->removeMember("url");
116  }
117 
118 
122  const StringPiece get_url() const {
123  const Json::Value& v = Storage("url");
124  if (v == Json::Value::null) return StringPiece("");
125  return StringPiece(v.asCString());
126  }
127 
135  void set_url(const StringPiece& value) {
136  *MutableStorage("url") = value.data();
137  }
138 
139  private:
140  void operator=(const PageAuthorImage&);
141  }; // PageAuthorImage
147  static PageAuthor* New();
148 
154  explicit PageAuthor(const Json::Value& storage);
155 
161  explicit PageAuthor(Json::Value* storage);
162 
166  virtual ~PageAuthor();
167 
173  const StringPiece GetTypeName() const {
174  return StringPiece("google_blogger_api::PageAuthor");
175  }
176 
182  bool has_display_name() const {
183  return Storage().isMember("displayName");
184  }
185 
190  MutableStorage()->removeMember("displayName");
191  }
192 
193 
197  const StringPiece get_display_name() const {
198  const Json::Value& v = Storage("displayName");
199  if (v == Json::Value::null) return StringPiece("");
200  return StringPiece(v.asCString());
201  }
202 
210  void set_display_name(const StringPiece& value) {
211  *MutableStorage("displayName") = value.data();
212  }
213 
219  bool has_id() const {
220  return Storage().isMember("id");
221  }
222 
226  void clear_id() {
227  MutableStorage()->removeMember("id");
228  }
229 
230 
234  const StringPiece get_id() const {
235  const Json::Value& v = Storage("id");
236  if (v == Json::Value::null) return StringPiece("");
237  return StringPiece(v.asCString());
238  }
239 
247  void set_id(const StringPiece& value) {
248  *MutableStorage("id") = value.data();
249  }
250 
256  bool has_image() const {
257  return Storage().isMember("image");
258  }
259 
263  void clear_image() {
264  MutableStorage()->removeMember("image");
265  }
266 
267 
271  const PageAuthorImage get_image() const {
272  const Json::Value& storage = Storage("image");
273  return client::JsonValueToCppValueHelper<PageAuthorImage >(storage);
274  }
275 
284  Json::Value* storage = MutableStorage("image");
285  return client::JsonValueToMutableCppValueHelper<PageAuthorImage >(storage);
286  }
287 
293  bool has_url() const {
294  return Storage().isMember("url");
295  }
296 
300  void clear_url() {
301  MutableStorage()->removeMember("url");
302  }
303 
304 
308  const StringPiece get_url() const {
309  const Json::Value& v = Storage("url");
310  if (v == Json::Value::null) return StringPiece("");
311  return StringPiece(v.asCString());
312  }
313 
321  void set_url(const StringPiece& value) {
322  *MutableStorage("url") = value.data();
323  }
324 
325  private:
326  void operator=(const PageAuthor&);
327  }; // PageAuthor
333  class PageBlog : public client::JsonCppData {
334  public:
340  static PageBlog* New();
341 
347  explicit PageBlog(const Json::Value& storage);
348 
354  explicit PageBlog(Json::Value* storage);
355 
359  virtual ~PageBlog();
360 
366  const StringPiece GetTypeName() const {
367  return StringPiece("google_blogger_api::PageBlog");
368  }
369 
375  bool has_id() const {
376  return Storage().isMember("id");
377  }
378 
382  void clear_id() {
383  MutableStorage()->removeMember("id");
384  }
385 
386 
390  const StringPiece get_id() const {
391  const Json::Value& v = Storage("id");
392  if (v == Json::Value::null) return StringPiece("");
393  return StringPiece(v.asCString());
394  }
395 
403  void set_id(const StringPiece& value) {
404  *MutableStorage("id") = value.data();
405  }
406 
407  private:
408  void operator=(const PageBlog&);
409  }; // PageBlog
415  static Page* New();
416 
422  explicit Page(const Json::Value& storage);
423 
429  explicit Page(Json::Value* storage);
430 
434  virtual ~Page();
435 
441  const StringPiece GetTypeName() const {
442  return StringPiece("google_blogger_api::Page");
443  }
444 
450  bool has_author() const {
451  return Storage().isMember("author");
452  }
453 
457  void clear_author() {
458  MutableStorage()->removeMember("author");
459  }
460 
461 
465  const PageAuthor get_author() const {
466  const Json::Value& storage = Storage("author");
467  return client::JsonValueToCppValueHelper<PageAuthor >(storage);
468  }
469 
478  Json::Value* storage = MutableStorage("author");
479  return client::JsonValueToMutableCppValueHelper<PageAuthor >(storage);
480  }
481 
487  bool has_blog() const {
488  return Storage().isMember("blog");
489  }
490 
494  void clear_blog() {
495  MutableStorage()->removeMember("blog");
496  }
497 
498 
502  const PageBlog get_blog() const {
503  const Json::Value& storage = Storage("blog");
504  return client::JsonValueToCppValueHelper<PageBlog >(storage);
505  }
506 
515  Json::Value* storage = MutableStorage("blog");
516  return client::JsonValueToMutableCppValueHelper<PageBlog >(storage);
517  }
518 
524  bool has_content() const {
525  return Storage().isMember("content");
526  }
527 
531  void clear_content() {
532  MutableStorage()->removeMember("content");
533  }
534 
535 
539  const StringPiece get_content() const {
540  const Json::Value& v = Storage("content");
541  if (v == Json::Value::null) return StringPiece("");
542  return StringPiece(v.asCString());
543  }
544 
552  void set_content(const StringPiece& value) {
553  *MutableStorage("content") = value.data();
554  }
555 
561  bool has_etag() const {
562  return Storage().isMember("etag");
563  }
564 
568  void clear_etag() {
569  MutableStorage()->removeMember("etag");
570  }
571 
572 
576  const StringPiece get_etag() const {
577  const Json::Value& v = Storage("etag");
578  if (v == Json::Value::null) return StringPiece("");
579  return StringPiece(v.asCString());
580  }
581 
589  void set_etag(const StringPiece& value) {
590  *MutableStorage("etag") = value.data();
591  }
592 
598  bool has_id() const {
599  return Storage().isMember("id");
600  }
601 
605  void clear_id() {
606  MutableStorage()->removeMember("id");
607  }
608 
609 
613  const StringPiece get_id() const {
614  const Json::Value& v = Storage("id");
615  if (v == Json::Value::null) return StringPiece("");
616  return StringPiece(v.asCString());
617  }
618 
626  void set_id(const StringPiece& value) {
627  *MutableStorage("id") = value.data();
628  }
629 
635  bool has_kind() const {
636  return Storage().isMember("kind");
637  }
638 
642  void clear_kind() {
643  MutableStorage()->removeMember("kind");
644  }
645 
646 
650  const StringPiece get_kind() const {
651  const Json::Value& v = Storage("kind");
652  if (v == Json::Value::null) return StringPiece("");
653  return StringPiece(v.asCString());
654  }
655 
663  void set_kind(const StringPiece& value) {
664  *MutableStorage("kind") = value.data();
665  }
666 
672  bool has_published() const {
673  return Storage().isMember("published");
674  }
675 
680  MutableStorage()->removeMember("published");
681  }
682 
683 
687  client::DateTime get_published() const {
688  const Json::Value& storage = Storage("published");
689  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
690  }
691 
699  void set_published(client::DateTime value) {
700  client::SetJsonValueFromCppValueHelper<client::DateTime >(
701  value, MutableStorage("published"));
702  }
703 
709  bool has_self_link() const {
710  return Storage().isMember("selfLink");
711  }
712 
717  MutableStorage()->removeMember("selfLink");
718  }
719 
720 
724  const StringPiece get_self_link() const {
725  const Json::Value& v = Storage("selfLink");
726  if (v == Json::Value::null) return StringPiece("");
727  return StringPiece(v.asCString());
728  }
729 
737  void set_self_link(const StringPiece& value) {
738  *MutableStorage("selfLink") = value.data();
739  }
740 
746  bool has_status() const {
747  return Storage().isMember("status");
748  }
749 
753  void clear_status() {
754  MutableStorage()->removeMember("status");
755  }
756 
757 
761  const StringPiece get_status() const {
762  const Json::Value& v = Storage("status");
763  if (v == Json::Value::null) return StringPiece("");
764  return StringPiece(v.asCString());
765  }
766 
774  void set_status(const StringPiece& value) {
775  *MutableStorage("status") = value.data();
776  }
777 
783  bool has_title() const {
784  return Storage().isMember("title");
785  }
786 
790  void clear_title() {
791  MutableStorage()->removeMember("title");
792  }
793 
794 
798  const StringPiece get_title() const {
799  const Json::Value& v = Storage("title");
800  if (v == Json::Value::null) return StringPiece("");
801  return StringPiece(v.asCString());
802  }
803 
812  void set_title(const StringPiece& value) {
813  *MutableStorage("title") = value.data();
814  }
815 
821  bool has_updated() const {
822  return Storage().isMember("updated");
823  }
824 
828  void clear_updated() {
829  MutableStorage()->removeMember("updated");
830  }
831 
832 
836  client::DateTime get_updated() const {
837  const Json::Value& storage = Storage("updated");
838  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
839  }
840 
848  void set_updated(client::DateTime value) {
849  client::SetJsonValueFromCppValueHelper<client::DateTime >(
850  value, MutableStorage("updated"));
851  }
852 
858  bool has_url() const {
859  return Storage().isMember("url");
860  }
861 
865  void clear_url() {
866  MutableStorage()->removeMember("url");
867  }
868 
869 
873  const StringPiece get_url() const {
874  const Json::Value& v = Storage("url");
875  if (v == Json::Value::null) return StringPiece("");
876  return StringPiece(v.asCString());
877  }
878 
886  void set_url(const StringPiece& value) {
887  *MutableStorage("url") = value.data();
888  }
889 
890  private:
891  void operator=(const Page&);
892 }; // Page
893 } // namespace google_blogger_api
894 #endif // GOOGLE_BLOGGER_API_PAGE_H_
PageBlog mutable_blog()
Definition: page.h:514
const StringPiece get_id() const
Definition: page.h:390
bool has_id() const
Definition: page.h:598
const StringPiece get_id() const
Definition: page.h:234
void set_id(const StringPiece &value)
Definition: page.h:626
client::DateTime get_updated() const
Definition: page.h:836
bool has_url() const
Definition: page.h:107
const StringPiece GetTypeName() const
Definition: page.h:98
const StringPiece get_title() const
Definition: page.h:798
bool has_self_link() const
Definition: page.h:709
void clear_display_name()
Definition: page.h:189
void clear_image()
Definition: page.h:263
bool has_etag() const
Definition: page.h:561
const StringPiece get_etag() const
Definition: page.h:576
const StringPiece get_url() const
Definition: page.h:873
void clear_blog()
Definition: page.h:494
void clear_title()
Definition: page.h:790
const StringPiece GetTypeName() const
Definition: page.h:441
void clear_updated()
Definition: page.h:828
PageAuthor mutable_author()
Definition: page.h:477
void clear_status()
Definition: page.h:753
bool has_author() const
Definition: page.h:450
Definition: page.h:51
bool has_blog() const
Definition: page.h:487
void clear_author()
Definition: page.h:457
bool has_content() const
Definition: page.h:524
void set_title(const StringPiece &value)
Definition: page.h:812
void set_published(client::DateTime value)
Definition: page.h:699
const StringPiece get_url() const
Definition: page.h:308
void clear_id()
Definition: page.h:226
const PageAuthor get_author() const
Definition: page.h:465
bool has_updated() const
Definition: page.h:821
bool has_status() const
Definition: page.h:746
const StringPiece get_id() const
Definition: page.h:613
void set_updated(client::DateTime value)
Definition: page.h:848
void set_url(const StringPiece &value)
Definition: page.h:135
const StringPiece GetTypeName() const
Definition: page.h:173
void set_self_link(const StringPiece &value)
Definition: page.h:737
void set_id(const StringPiece &value)
Definition: page.h:403
void clear_url()
Definition: page.h:300
void clear_id()
Definition: page.h:382
const StringPiece get_self_link() const
Definition: page.h:724
void set_content(const StringPiece &value)
Definition: page.h:552
void clear_etag()
Definition: page.h:568
const StringPiece get_kind() const
Definition: page.h:650
const StringPiece GetTypeName() const
Definition: page.h:366
Definition: blog.cc:44
void clear_published()
Definition: page.h:679
bool has_title() const
Definition: page.h:783
bool has_image() const
Definition: page.h:256
const PageAuthorImage get_image() const
Definition: page.h:271
void clear_kind()
Definition: page.h:642
Definition: blog.h:42
bool has_display_name() const
Definition: page.h:182
void clear_url()
Definition: page.h:865
bool has_id() const
Definition: page.h:219
void clear_self_link()
Definition: page.h:716
bool has_url() const
Definition: page.h:858
const PageBlog get_blog() const
Definition: page.h:502
bool has_kind() const
Definition: page.h:635
bool has_published() const
Definition: page.h:672
PageAuthorImage mutable_image()
Definition: page.h:283
const StringPiece get_content() const
Definition: page.h:539
void set_status(const StringPiece &value)
Definition: page.h:774
const StringPiece get_status() const
Definition: page.h:761
void set_display_name(const StringPiece &value)
Definition: page.h:210
client::DateTime get_published() const
Definition: page.h:687
void clear_content()
Definition: page.h:531
const StringPiece get_display_name() const
Definition: page.h:197
void set_etag(const StringPiece &value)
Definition: page.h:589
void set_id(const StringPiece &value)
Definition: page.h:247
const StringPiece get_url() const
Definition: page.h:122
void clear_id()
Definition: page.h:605
bool has_url() const
Definition: page.h:293
void set_url(const StringPiece &value)
Definition: page.h:886
bool has_id() const
Definition: page.h:375
void set_url(const StringPiece &value)
Definition: page.h:321
void set_kind(const StringPiece &value)
Definition: page.h:663