analytics  v3
webproperty.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-01-30, 05:27:32 UTC
18 // C++ generator version: 0.1.4
19 
20 // ----------------------------------------------------------------------------
21 // NOTE: This file is generated from Google APIs Discovery Service.
22 // Service:
23 // Google Analytics API (analytics/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 169
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_ANALYTICS_API_WEBPROPERTY_H_
31 #define GOOGLE_ANALYTICS_API_WEBPROPERTY_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_analytics_api {
45 using namespace googleapis;
46 
52 class Webproperty : public client::JsonCppData {
53  public:
60  class WebpropertyChildLink : public client::JsonCppData {
61  public:
67  static WebpropertyChildLink* New();
68 
74  explicit WebpropertyChildLink(const Json::Value& storage);
75 
81  explicit WebpropertyChildLink(Json::Value* storage);
82 
86  virtual ~WebpropertyChildLink();
87 
93  const StringPiece GetTypeName() const {
94  return StringPiece("google_analytics_api::WebpropertyChildLink");
95  }
96 
102  bool has_href() const {
103  return Storage().isMember("href");
104  }
105 
109  void clear_href() {
110  MutableStorage()->removeMember("href");
111  }
112 
113 
117  const StringPiece get_href() const {
118  const Json::Value& v = Storage("href");
119  if (v == Json::Value::null) return StringPiece("");
120  return StringPiece(v.asCString());
121  }
122 
130  void set_href(const StringPiece& value) {
131  *MutableStorage("href") = value.data();
132  }
133 
139  bool has_type() const {
140  return Storage().isMember("type");
141  }
142 
146  void clear_type() {
147  MutableStorage()->removeMember("type");
148  }
149 
150 
154  const StringPiece get_type() const {
155  const Json::Value& v = Storage("type");
156  if (v == Json::Value::null) return StringPiece("");
157  return StringPiece(v.asCString());
158  }
159 
167  void set_type(const StringPiece& value) {
168  *MutableStorage("type") = value.data();
169  }
170 
171  private:
172  void operator=(const WebpropertyChildLink&);
173  }; // WebpropertyChildLink
180  class WebpropertyParentLink : public client::JsonCppData {
181  public:
187  static WebpropertyParentLink* New();
188 
194  explicit WebpropertyParentLink(const Json::Value& storage);
195 
201  explicit WebpropertyParentLink(Json::Value* storage);
202 
206  virtual ~WebpropertyParentLink();
207 
213  const StringPiece GetTypeName() const {
214  return StringPiece("google_analytics_api::WebpropertyParentLink");
215  }
216 
222  bool has_href() const {
223  return Storage().isMember("href");
224  }
225 
229  void clear_href() {
230  MutableStorage()->removeMember("href");
231  }
232 
233 
237  const StringPiece get_href() const {
238  const Json::Value& v = Storage("href");
239  if (v == Json::Value::null) return StringPiece("");
240  return StringPiece(v.asCString());
241  }
242 
250  void set_href(const StringPiece& value) {
251  *MutableStorage("href") = value.data();
252  }
253 
259  bool has_type() const {
260  return Storage().isMember("type");
261  }
262 
266  void clear_type() {
267  MutableStorage()->removeMember("type");
268  }
269 
270 
274  const StringPiece get_type() const {
275  const Json::Value& v = Storage("type");
276  if (v == Json::Value::null) return StringPiece("");
277  return StringPiece(v.asCString());
278  }
279 
287  void set_type(const StringPiece& value) {
288  *MutableStorage("type") = value.data();
289  }
290 
291  private:
292  void operator=(const WebpropertyParentLink&);
293  }; // WebpropertyParentLink
299  class WebpropertyPermissions : public client::JsonCppData {
300  public:
306  static WebpropertyPermissions* New();
307 
313  explicit WebpropertyPermissions(const Json::Value& storage);
314 
320  explicit WebpropertyPermissions(Json::Value* storage);
321 
325  virtual ~WebpropertyPermissions();
326 
332  const StringPiece GetTypeName() const {
333  return StringPiece("google_analytics_api::WebpropertyPermissions");
334  }
335 
341  bool has_effective() const {
342  return Storage().isMember("effective");
343  }
344 
349  MutableStorage()->removeMember("effective");
350  }
351 
352 
356  const client::JsonCppArray<string > get_effective() const {
357  const Json::Value& storage = Storage("effective");
358  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
359  }
360 
371  client::JsonCppArray<string > mutable_effective() {
372  Json::Value* storage = MutableStorage("effective");
373  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
374  }
375 
376  private:
377  void operator=(const WebpropertyPermissions&);
378  }; // WebpropertyPermissions
384  static Webproperty* New();
385 
391  explicit Webproperty(const Json::Value& storage);
392 
398  explicit Webproperty(Json::Value* storage);
399 
403  virtual ~Webproperty();
404 
410  const StringPiece GetTypeName() const {
411  return StringPiece("google_analytics_api::Webproperty");
412  }
413 
419  bool has_account_id() const {
420  return Storage().isMember("accountId");
421  }
422 
427  MutableStorage()->removeMember("accountId");
428  }
429 
430 
434  const StringPiece get_account_id() const {
435  const Json::Value& v = Storage("accountId");
436  if (v == Json::Value::null) return StringPiece("");
437  return StringPiece(v.asCString());
438  }
439 
447  void set_account_id(const StringPiece& value) {
448  *MutableStorage("accountId") = value.data();
449  }
450 
456  bool has_child_link() const {
457  return Storage().isMember("childLink");
458  }
459 
464  MutableStorage()->removeMember("childLink");
465  }
466 
467 
472  const Json::Value& storage = Storage("childLink");
473  return client::JsonValueToCppValueHelper<WebpropertyChildLink >(storage);
474  }
475 
486  Json::Value* storage = MutableStorage("childLink");
487  return client::JsonValueToMutableCppValueHelper<WebpropertyChildLink >(storage);
488  }
489 
495  bool has_created() const {
496  return Storage().isMember("created");
497  }
498 
502  void clear_created() {
503  MutableStorage()->removeMember("created");
504  }
505 
506 
510  client::DateTime get_created() const {
511  const Json::Value& storage = Storage("created");
512  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
513  }
514 
522  void set_created(client::DateTime value) {
523  client::SetJsonValueFromCppValueHelper<client::DateTime >(
524  value, MutableStorage("created"));
525  }
526 
535  return Storage().isMember("dataRetentionResetOnNewActivity");
536  }
537 
542  MutableStorage()->removeMember("dataRetentionResetOnNewActivity");
543  }
544 
545 
551  const Json::Value& storage = Storage("dataRetentionResetOnNewActivity");
552  return client::JsonValueToCppValueHelper<bool >(storage);
553  }
554 
568  client::SetJsonValueFromCppValueHelper<bool >(
569  value, MutableStorage("dataRetentionResetOnNewActivity"));
570  }
571 
577  bool has_data_retention_ttl() const {
578  return Storage().isMember("dataRetentionTtl");
579  }
580 
585  MutableStorage()->removeMember("dataRetentionTtl");
586  }
587 
588 
592  const StringPiece get_data_retention_ttl() const {
593  const Json::Value& v = Storage("dataRetentionTtl");
594  if (v == Json::Value::null) return StringPiece("");
595  return StringPiece(v.asCString());
596  }
597 
606  void set_data_retention_ttl(const StringPiece& value) {
607  *MutableStorage("dataRetentionTtl") = value.data();
608  }
609 
615  bool has_default_profile_id() const {
616  return Storage().isMember("defaultProfileId");
617  }
618 
623  MutableStorage()->removeMember("defaultProfileId");
624  }
625 
626 
630  int64 get_default_profile_id() const {
631  const Json::Value& storage = Storage("defaultProfileId");
632  return client::JsonValueToCppValueHelper<int64 >(storage);
633  }
634 
642  void set_default_profile_id(int64 value) {
643  client::SetJsonValueFromCppValueHelper<int64 >(
644  value, MutableStorage("defaultProfileId"));
645  }
646 
652  bool has_id() const {
653  return Storage().isMember("id");
654  }
655 
659  void clear_id() {
660  MutableStorage()->removeMember("id");
661  }
662 
663 
667  const StringPiece get_id() const {
668  const Json::Value& v = Storage("id");
669  if (v == Json::Value::null) return StringPiece("");
670  return StringPiece(v.asCString());
671  }
672 
680  void set_id(const StringPiece& value) {
681  *MutableStorage("id") = value.data();
682  }
683 
689  bool has_industry_vertical() const {
690  return Storage().isMember("industryVertical");
691  }
692 
697  MutableStorage()->removeMember("industryVertical");
698  }
699 
700 
704  const StringPiece get_industry_vertical() const {
705  const Json::Value& v = Storage("industryVertical");
706  if (v == Json::Value::null) return StringPiece("");
707  return StringPiece(v.asCString());
708  }
709 
717  void set_industry_vertical(const StringPiece& value) {
718  *MutableStorage("industryVertical") = value.data();
719  }
720 
727  return Storage().isMember("internalWebPropertyId");
728  }
729 
734  MutableStorage()->removeMember("internalWebPropertyId");
735  }
736 
737 
741  const StringPiece get_internal_web_property_id() const {
742  const Json::Value& v = Storage("internalWebPropertyId");
743  if (v == Json::Value::null) return StringPiece("");
744  return StringPiece(v.asCString());
745  }
746 
754  void set_internal_web_property_id(const StringPiece& value) {
755  *MutableStorage("internalWebPropertyId") = value.data();
756  }
757 
763  bool has_kind() const {
764  return Storage().isMember("kind");
765  }
766 
770  void clear_kind() {
771  MutableStorage()->removeMember("kind");
772  }
773 
774 
778  const StringPiece get_kind() const {
779  const Json::Value& v = Storage("kind");
780  if (v == Json::Value::null) return StringPiece("");
781  return StringPiece(v.asCString());
782  }
783 
791  void set_kind(const StringPiece& value) {
792  *MutableStorage("kind") = value.data();
793  }
794 
800  bool has_level() const {
801  return Storage().isMember("level");
802  }
803 
807  void clear_level() {
808  MutableStorage()->removeMember("level");
809  }
810 
811 
815  const StringPiece get_level() const {
816  const Json::Value& v = Storage("level");
817  if (v == Json::Value::null) return StringPiece("");
818  return StringPiece(v.asCString());
819  }
820 
828  void set_level(const StringPiece& value) {
829  *MutableStorage("level") = value.data();
830  }
831 
837  bool has_name() const {
838  return Storage().isMember("name");
839  }
840 
844  void clear_name() {
845  MutableStorage()->removeMember("name");
846  }
847 
848 
852  const StringPiece get_name() const {
853  const Json::Value& v = Storage("name");
854  if (v == Json::Value::null) return StringPiece("");
855  return StringPiece(v.asCString());
856  }
857 
865  void set_name(const StringPiece& value) {
866  *MutableStorage("name") = value.data();
867  }
868 
874  bool has_parent_link() const {
875  return Storage().isMember("parentLink");
876  }
877 
882  MutableStorage()->removeMember("parentLink");
883  }
884 
885 
890  const Json::Value& storage = Storage("parentLink");
891  return client::JsonValueToCppValueHelper<WebpropertyParentLink >(storage);
892  }
893 
904  Json::Value* storage = MutableStorage("parentLink");
905  return client::JsonValueToMutableCppValueHelper<WebpropertyParentLink >(storage);
906  }
907 
913  bool has_permissions() const {
914  return Storage().isMember("permissions");
915  }
916 
921  MutableStorage()->removeMember("permissions");
922  }
923 
924 
929  const Json::Value& storage = Storage("permissions");
930  return client::JsonValueToCppValueHelper<WebpropertyPermissions >(storage);
931  }
932 
942  Json::Value* storage = MutableStorage("permissions");
943  return client::JsonValueToMutableCppValueHelper<WebpropertyPermissions >(storage);
944  }
945 
951  bool has_profile_count() const {
952  return Storage().isMember("profileCount");
953  }
954 
959  MutableStorage()->removeMember("profileCount");
960  }
961 
962 
966  int32 get_profile_count() const {
967  const Json::Value& storage = Storage("profileCount");
968  return client::JsonValueToCppValueHelper<int32 >(storage);
969  }
970 
978  void set_profile_count(int32 value) {
979  client::SetJsonValueFromCppValueHelper<int32 >(
980  value, MutableStorage("profileCount"));
981  }
982 
988  bool has_self_link() const {
989  return Storage().isMember("selfLink");
990  }
991 
996  MutableStorage()->removeMember("selfLink");
997  }
998 
999 
1003  const StringPiece get_self_link() const {
1004  const Json::Value& v = Storage("selfLink");
1005  if (v == Json::Value::null) return StringPiece("");
1006  return StringPiece(v.asCString());
1007  }
1008 
1016  void set_self_link(const StringPiece& value) {
1017  *MutableStorage("selfLink") = value.data();
1018  }
1019 
1025  bool has_starred() const {
1026  return Storage().isMember("starred");
1027  }
1028 
1032  void clear_starred() {
1033  MutableStorage()->removeMember("starred");
1034  }
1035 
1036 
1040  bool get_starred() const {
1041  const Json::Value& storage = Storage("starred");
1042  return client::JsonValueToCppValueHelper<bool >(storage);
1043  }
1044 
1052  void set_starred(bool value) {
1053  client::SetJsonValueFromCppValueHelper<bool >(
1054  value, MutableStorage("starred"));
1055  }
1056 
1062  bool has_updated() const {
1063  return Storage().isMember("updated");
1064  }
1065 
1069  void clear_updated() {
1070  MutableStorage()->removeMember("updated");
1071  }
1072 
1073 
1077  client::DateTime get_updated() const {
1078  const Json::Value& storage = Storage("updated");
1079  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1080  }
1081 
1089  void set_updated(client::DateTime value) {
1090  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1091  value, MutableStorage("updated"));
1092  }
1093 
1099  bool has_website_url() const {
1100  return Storage().isMember("websiteUrl");
1101  }
1102 
1107  MutableStorage()->removeMember("websiteUrl");
1108  }
1109 
1110 
1114  const StringPiece get_website_url() const {
1115  const Json::Value& v = Storage("websiteUrl");
1116  if (v == Json::Value::null) return StringPiece("");
1117  return StringPiece(v.asCString());
1118  }
1119 
1127  void set_website_url(const StringPiece& value) {
1128  *MutableStorage("websiteUrl") = value.data();
1129  }
1130 
1131  private:
1132  void operator=(const Webproperty&);
1133 }; // Webproperty
1134 } // namespace google_analytics_api
1135 #endif // GOOGLE_ANALYTICS_API_WEBPROPERTY_H_
const WebpropertyChildLink get_child_link() const
Definition: webproperty.h:471
void set_starred(bool value)
Definition: webproperty.h:1052
void clear_name()
Definition: webproperty.h:844
void clear_account_id()
Definition: webproperty.h:426
bool has_website_url() const
Definition: webproperty.h:1099
bool has_data_retention_reset_on_new_activity() const
Definition: webproperty.h:534
const StringPiece get_internal_web_property_id() const
Definition: webproperty.h:741
bool has_level() const
Definition: webproperty.h:800
void clear_id()
Definition: webproperty.h:659
void set_updated(client::DateTime value)
Definition: webproperty.h:1089
client::JsonCppArray< string > mutable_effective()
Definition: webproperty.h:371
const WebpropertyPermissions get_permissions() const
Definition: webproperty.h:928
void set_kind(const StringPiece &value)
Definition: webproperty.h:791
bool has_kind() const
Definition: webproperty.h:763
const client::JsonCppArray< string > get_effective() const
Definition: webproperty.h:356
bool has_name() const
Definition: webproperty.h:837
bool has_parent_link() const
Definition: webproperty.h:874
void clear_default_profile_id()
Definition: webproperty.h:622
void set_self_link(const StringPiece &value)
Definition: webproperty.h:1016
Definition: webproperty.h:52
void set_website_url(const StringPiece &value)
Definition: webproperty.h:1127
bool has_data_retention_ttl() const
Definition: webproperty.h:577
const StringPiece get_industry_vertical() const
Definition: webproperty.h:704
bool has_effective() const
Definition: webproperty.h:341
void clear_website_url()
Definition: webproperty.h:1106
void clear_kind()
Definition: webproperty.h:770
bool has_updated() const
Definition: webproperty.h:1062
WebpropertyPermissions mutable_permissions()
Definition: webproperty.h:941
void clear_industry_vertical()
Definition: webproperty.h:696
void set_profile_count(int32 value)
Definition: webproperty.h:978
int32 get_profile_count() const
Definition: webproperty.h:966
void set_created(client::DateTime value)
Definition: webproperty.h:522
bool has_account_id() const
Definition: webproperty.h:419
const StringPiece get_data_retention_ttl() const
Definition: webproperty.h:592
bool has_industry_vertical() const
Definition: webproperty.h:689
void clear_created()
Definition: webproperty.h:502
bool get_data_retention_reset_on_new_activity() const
Definition: webproperty.h:550
bool has_child_link() const
Definition: webproperty.h:456
bool has_created() const
Definition: webproperty.h:495
const StringPiece GetTypeName() const
Definition: webproperty.h:410
void set_industry_vertical(const StringPiece &value)
Definition: webproperty.h:717
WebpropertyChildLink mutable_childLink()
Definition: webproperty.h:485
const StringPiece get_account_id() const
Definition: webproperty.h:434
void clear_child_link()
Definition: webproperty.h:463
const StringPiece get_id() const
Definition: webproperty.h:667
Definition: account.h:39
const StringPiece GetTypeName() const
Definition: webproperty.h:332
bool has_profile_count() const
Definition: webproperty.h:951
void clear_internal_web_property_id()
Definition: webproperty.h:733
Definition: account.cc:41
bool get_starred() const
Definition: webproperty.h:1040
void set_level(const StringPiece &value)
Definition: webproperty.h:828
void set_account_id(const StringPiece &value)
Definition: webproperty.h:447
void clear_data_retention_ttl()
Definition: webproperty.h:584
void set_id(const StringPiece &value)
Definition: webproperty.h:680
void clear_effective()
Definition: webproperty.h:348
int64 get_default_profile_id() const
Definition: webproperty.h:630
void clear_permissions()
Definition: webproperty.h:920
void set_name(const StringPiece &value)
Definition: webproperty.h:865
bool has_default_profile_id() const
Definition: webproperty.h:615
client::DateTime get_updated() const
Definition: webproperty.h:1077
bool has_self_link() const
Definition: webproperty.h:988
void clear_starred()
Definition: webproperty.h:1032
void clear_data_retention_reset_on_new_activity()
Definition: webproperty.h:541
void set_data_retention_reset_on_new_activity(bool value)
Definition: webproperty.h:567
client::DateTime get_created() const
Definition: webproperty.h:510
void clear_parent_link()
Definition: webproperty.h:881
void set_internal_web_property_id(const StringPiece &value)
Definition: webproperty.h:754
void set_data_retention_ttl(const StringPiece &value)
Definition: webproperty.h:606
void clear_level()
Definition: webproperty.h:807
const StringPiece get_kind() const
Definition: webproperty.h:778
const WebpropertyParentLink get_parent_link() const
Definition: webproperty.h:889
WebpropertyParentLink mutable_parentLink()
Definition: webproperty.h:903
void clear_profile_count()
Definition: webproperty.h:958
bool has_permissions() const
Definition: webproperty.h:913
bool has_internal_web_property_id() const
Definition: webproperty.h:726
const StringPiece get_self_link() const
Definition: webproperty.h:1003
void clear_updated()
Definition: webproperty.h:1069
bool has_id() const
Definition: webproperty.h:652
void set_default_profile_id(int64 value)
Definition: webproperty.h:642
const StringPiece get_level() const
Definition: webproperty.h:815
bool has_starred() const
Definition: webproperty.h:1025
void clear_self_link()
Definition: webproperty.h:995
const StringPiece get_name() const
Definition: webproperty.h:852
const StringPiece get_website_url() const
Definition: webproperty.h:1114