analytics  v3
goal.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_GOAL_H_
31 #define GOOGLE_ANALYTICS_API_GOAL_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 Goal : public client::JsonCppData {
53  public:
59  class GoalEventDetails : public client::JsonCppData {
60  public:
66  class GoalEventDetailsEventConditions : public client::JsonCppData {
67  public:
73  static GoalEventDetailsEventConditions* New();
74 
80  explicit GoalEventDetailsEventConditions(const Json::Value& storage);
81 
87  explicit GoalEventDetailsEventConditions(Json::Value* storage);
88 
93 
100  const StringPiece GetTypeName() const {
101  return StringPiece("google_analytics_api::GoalEventDetailsEventConditions");
102  }
103 
109  bool has_comparison_type() const {
110  return Storage().isMember("comparisonType");
111  }
112 
117  MutableStorage()->removeMember("comparisonType");
118  }
119 
120 
124  const StringPiece get_comparison_type() const {
125  const Json::Value& v = Storage("comparisonType");
126  if (v == Json::Value::null) return StringPiece("");
127  return StringPiece(v.asCString());
128  }
129 
138  void set_comparison_type(const StringPiece& value) {
139  *MutableStorage("comparisonType") = value.data();
140  }
141 
147  bool has_comparison_value() const {
148  return Storage().isMember("comparisonValue");
149  }
150 
155  MutableStorage()->removeMember("comparisonValue");
156  }
157 
158 
162  int64 get_comparison_value() const {
163  const Json::Value& storage = Storage("comparisonValue");
164  return client::JsonValueToCppValueHelper<int64 >(storage);
165  }
166 
174  void set_comparison_value(int64 value) {
175  client::SetJsonValueFromCppValueHelper<int64 >(
176  value, MutableStorage("comparisonValue"));
177  }
178 
184  bool has_expression() const {
185  return Storage().isMember("expression");
186  }
187 
192  MutableStorage()->removeMember("expression");
193  }
194 
195 
199  const StringPiece get_expression() const {
200  const Json::Value& v = Storage("expression");
201  if (v == Json::Value::null) return StringPiece("");
202  return StringPiece(v.asCString());
203  }
204 
212  void set_expression(const StringPiece& value) {
213  *MutableStorage("expression") = value.data();
214  }
215 
221  bool has_match_type() const {
222  return Storage().isMember("matchType");
223  }
224 
229  MutableStorage()->removeMember("matchType");
230  }
231 
232 
236  const StringPiece get_match_type() const {
237  const Json::Value& v = Storage("matchType");
238  if (v == Json::Value::null) return StringPiece("");
239  return StringPiece(v.asCString());
240  }
241 
250  void set_match_type(const StringPiece& value) {
251  *MutableStorage("matchType") = 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 
288  void set_type(const StringPiece& value) {
289  *MutableStorage("type") = value.data();
290  }
291 
292  private:
293  void operator=(const GoalEventDetailsEventConditions&);
294  }; // GoalEventDetailsEventConditions
300  static GoalEventDetails* New();
301 
307  explicit GoalEventDetails(const Json::Value& storage);
308 
314  explicit GoalEventDetails(Json::Value* storage);
315 
319  virtual ~GoalEventDetails();
320 
326  const StringPiece GetTypeName() const {
327  return StringPiece("google_analytics_api::GoalEventDetails");
328  }
329 
335  bool has_event_conditions() const {
336  return Storage().isMember("eventConditions");
337  }
338 
343  MutableStorage()->removeMember("eventConditions");
344  }
345 
346 
351  const client::JsonCppArray<GoalEventDetailsEventConditions > get_event_conditions() const {
352  const Json::Value& storage = Storage("eventConditions");
353  return client::JsonValueToCppValueHelper<client::JsonCppArray<GoalEventDetailsEventConditions > >(storage);
354  }
355 
364  client::JsonCppArray<GoalEventDetailsEventConditions > mutable_eventConditions() {
365  Json::Value* storage = MutableStorage("eventConditions");
366  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<GoalEventDetailsEventConditions > >(storage);
367  }
368 
374  bool has_use_event_value() const {
375  return Storage().isMember("useEventValue");
376  }
377 
382  MutableStorage()->removeMember("useEventValue");
383  }
384 
385 
389  bool get_use_event_value() const {
390  const Json::Value& storage = Storage("useEventValue");
391  return client::JsonValueToCppValueHelper<bool >(storage);
392  }
393 
401  void set_use_event_value(bool value) {
402  client::SetJsonValueFromCppValueHelper<bool >(
403  value, MutableStorage("useEventValue"));
404  }
405 
406  private:
407  void operator=(const GoalEventDetails&);
408  }; // GoalEventDetails
415  class GoalParentLink : public client::JsonCppData {
416  public:
422  static GoalParentLink* New();
423 
429  explicit GoalParentLink(const Json::Value& storage);
430 
436  explicit GoalParentLink(Json::Value* storage);
437 
441  virtual ~GoalParentLink();
442 
448  const StringPiece GetTypeName() const {
449  return StringPiece("google_analytics_api::GoalParentLink");
450  }
451 
457  bool has_href() const {
458  return Storage().isMember("href");
459  }
460 
464  void clear_href() {
465  MutableStorage()->removeMember("href");
466  }
467 
468 
472  const StringPiece get_href() const {
473  const Json::Value& v = Storage("href");
474  if (v == Json::Value::null) return StringPiece("");
475  return StringPiece(v.asCString());
476  }
477 
485  void set_href(const StringPiece& value) {
486  *MutableStorage("href") = value.data();
487  }
488 
494  bool has_type() const {
495  return Storage().isMember("type");
496  }
497 
501  void clear_type() {
502  MutableStorage()->removeMember("type");
503  }
504 
505 
509  const StringPiece get_type() const {
510  const Json::Value& v = Storage("type");
511  if (v == Json::Value::null) return StringPiece("");
512  return StringPiece(v.asCString());
513  }
514 
522  void set_type(const StringPiece& value) {
523  *MutableStorage("type") = value.data();
524  }
525 
526  private:
527  void operator=(const GoalParentLink&);
528  }; // GoalParentLink
534  class GoalUrlDestinationDetails : public client::JsonCppData {
535  public:
541  class GoalUrlDestinationDetailsSteps : public client::JsonCppData {
542  public:
548  static GoalUrlDestinationDetailsSteps* New();
549 
555  explicit GoalUrlDestinationDetailsSteps(const Json::Value& storage);
556 
562  explicit GoalUrlDestinationDetailsSteps(Json::Value* storage);
563 
568 
575  const StringPiece GetTypeName() const {
576  return StringPiece("google_analytics_api::GoalUrlDestinationDetailsSteps");
577  }
578 
584  bool has_name() const {
585  return Storage().isMember("name");
586  }
587 
591  void clear_name() {
592  MutableStorage()->removeMember("name");
593  }
594 
595 
599  const StringPiece get_name() const {
600  const Json::Value& v = Storage("name");
601  if (v == Json::Value::null) return StringPiece("");
602  return StringPiece(v.asCString());
603  }
604 
612  void set_name(const StringPiece& value) {
613  *MutableStorage("name") = value.data();
614  }
615 
621  bool has_number() const {
622  return Storage().isMember("number");
623  }
624 
628  void clear_number() {
629  MutableStorage()->removeMember("number");
630  }
631 
632 
636  int32 get_number() const {
637  const Json::Value& storage = Storage("number");
638  return client::JsonValueToCppValueHelper<int32 >(storage);
639  }
640 
648  void set_number(int32 value) {
649  client::SetJsonValueFromCppValueHelper<int32 >(
650  value, MutableStorage("number"));
651  }
652 
658  bool has_url() const {
659  return Storage().isMember("url");
660  }
661 
665  void clear_url() {
666  MutableStorage()->removeMember("url");
667  }
668 
669 
673  const StringPiece get_url() const {
674  const Json::Value& v = Storage("url");
675  if (v == Json::Value::null) return StringPiece("");
676  return StringPiece(v.asCString());
677  }
678 
686  void set_url(const StringPiece& value) {
687  *MutableStorage("url") = value.data();
688  }
689 
690  private:
691  void operator=(const GoalUrlDestinationDetailsSteps&);
692  }; // GoalUrlDestinationDetailsSteps
698  static GoalUrlDestinationDetails* New();
699 
705  explicit GoalUrlDestinationDetails(const Json::Value& storage);
706 
712  explicit GoalUrlDestinationDetails(Json::Value* storage);
713 
717  virtual ~GoalUrlDestinationDetails();
718 
724  const StringPiece GetTypeName() const {
725  return StringPiece("google_analytics_api::GoalUrlDestinationDetails");
726  }
727 
733  bool has_case_sensitive() const {
734  return Storage().isMember("caseSensitive");
735  }
736 
741  MutableStorage()->removeMember("caseSensitive");
742  }
743 
744 
748  bool get_case_sensitive() const {
749  const Json::Value& storage = Storage("caseSensitive");
750  return client::JsonValueToCppValueHelper<bool >(storage);
751  }
752 
761  void set_case_sensitive(bool value) {
762  client::SetJsonValueFromCppValueHelper<bool >(
763  value, MutableStorage("caseSensitive"));
764  }
765 
771  bool has_first_step_required() const {
772  return Storage().isMember("firstStepRequired");
773  }
774 
779  MutableStorage()->removeMember("firstStepRequired");
780  }
781 
782 
786  bool get_first_step_required() const {
787  const Json::Value& storage = Storage("firstStepRequired");
788  return client::JsonValueToCppValueHelper<bool >(storage);
789  }
790 
798  void set_first_step_required(bool value) {
799  client::SetJsonValueFromCppValueHelper<bool >(
800  value, MutableStorage("firstStepRequired"));
801  }
802 
808  bool has_match_type() const {
809  return Storage().isMember("matchType");
810  }
811 
816  MutableStorage()->removeMember("matchType");
817  }
818 
819 
823  const StringPiece get_match_type() const {
824  const Json::Value& v = Storage("matchType");
825  if (v == Json::Value::null) return StringPiece("");
826  return StringPiece(v.asCString());
827  }
828 
836  void set_match_type(const StringPiece& value) {
837  *MutableStorage("matchType") = value.data();
838  }
839 
845  bool has_steps() const {
846  return Storage().isMember("steps");
847  }
848 
852  void clear_steps() {
853  MutableStorage()->removeMember("steps");
854  }
855 
856 
860  const client::JsonCppArray<GoalUrlDestinationDetailsSteps > get_steps() const {
861  const Json::Value& storage = Storage("steps");
862  return client::JsonValueToCppValueHelper<client::JsonCppArray<GoalUrlDestinationDetailsSteps > >(storage);
863  }
864 
872  client::JsonCppArray<GoalUrlDestinationDetailsSteps > mutable_steps() {
873  Json::Value* storage = MutableStorage("steps");
874  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<GoalUrlDestinationDetailsSteps > >(storage);
875  }
876 
882  bool has_url() const {
883  return Storage().isMember("url");
884  }
885 
889  void clear_url() {
890  MutableStorage()->removeMember("url");
891  }
892 
893 
897  const StringPiece get_url() const {
898  const Json::Value& v = Storage("url");
899  if (v == Json::Value::null) return StringPiece("");
900  return StringPiece(v.asCString());
901  }
902 
910  void set_url(const StringPiece& value) {
911  *MutableStorage("url") = value.data();
912  }
913 
914  private:
915  void operator=(const GoalUrlDestinationDetails&);
916  }; // GoalUrlDestinationDetails
922  class GoalVisitNumPagesDetails : public client::JsonCppData {
923  public:
929  static GoalVisitNumPagesDetails* New();
930 
936  explicit GoalVisitNumPagesDetails(const Json::Value& storage);
937 
943  explicit GoalVisitNumPagesDetails(Json::Value* storage);
944 
948  virtual ~GoalVisitNumPagesDetails();
949 
955  const StringPiece GetTypeName() const {
956  return StringPiece("google_analytics_api::GoalVisitNumPagesDetails");
957  }
958 
964  bool has_comparison_type() const {
965  return Storage().isMember("comparisonType");
966  }
967 
972  MutableStorage()->removeMember("comparisonType");
973  }
974 
975 
979  const StringPiece get_comparison_type() const {
980  const Json::Value& v = Storage("comparisonType");
981  if (v == Json::Value::null) return StringPiece("");
982  return StringPiece(v.asCString());
983  }
984 
993  void set_comparison_type(const StringPiece& value) {
994  *MutableStorage("comparisonType") = value.data();
995  }
996 
1002  bool has_comparison_value() const {
1003  return Storage().isMember("comparisonValue");
1004  }
1005 
1010  MutableStorage()->removeMember("comparisonValue");
1011  }
1012 
1013 
1017  int64 get_comparison_value() const {
1018  const Json::Value& storage = Storage("comparisonValue");
1019  return client::JsonValueToCppValueHelper<int64 >(storage);
1020  }
1021 
1029  void set_comparison_value(int64 value) {
1030  client::SetJsonValueFromCppValueHelper<int64 >(
1031  value, MutableStorage("comparisonValue"));
1032  }
1033 
1034  private:
1035  void operator=(const GoalVisitNumPagesDetails&);
1036  }; // GoalVisitNumPagesDetails
1042  class GoalVisitTimeOnSiteDetails : public client::JsonCppData {
1043  public:
1049  static GoalVisitTimeOnSiteDetails* New();
1050 
1056  explicit GoalVisitTimeOnSiteDetails(const Json::Value& storage);
1057 
1063  explicit GoalVisitTimeOnSiteDetails(Json::Value* storage);
1064 
1068  virtual ~GoalVisitTimeOnSiteDetails();
1069 
1075  const StringPiece GetTypeName() const {
1076  return StringPiece("google_analytics_api::GoalVisitTimeOnSiteDetails");
1077  }
1078 
1084  bool has_comparison_type() const {
1085  return Storage().isMember("comparisonType");
1086  }
1087 
1092  MutableStorage()->removeMember("comparisonType");
1093  }
1094 
1095 
1099  const StringPiece get_comparison_type() const {
1100  const Json::Value& v = Storage("comparisonType");
1101  if (v == Json::Value::null) return StringPiece("");
1102  return StringPiece(v.asCString());
1103  }
1104 
1112  void set_comparison_type(const StringPiece& value) {
1113  *MutableStorage("comparisonType") = value.data();
1114  }
1115 
1121  bool has_comparison_value() const {
1122  return Storage().isMember("comparisonValue");
1123  }
1124 
1129  MutableStorage()->removeMember("comparisonValue");
1130  }
1131 
1132 
1136  int64 get_comparison_value() const {
1137  const Json::Value& storage = Storage("comparisonValue");
1138  return client::JsonValueToCppValueHelper<int64 >(storage);
1139  }
1140 
1148  void set_comparison_value(int64 value) {
1149  client::SetJsonValueFromCppValueHelper<int64 >(
1150  value, MutableStorage("comparisonValue"));
1151  }
1152 
1153  private:
1154  void operator=(const GoalVisitTimeOnSiteDetails&);
1155  }; // GoalVisitTimeOnSiteDetails
1161  static Goal* New();
1162 
1168  explicit Goal(const Json::Value& storage);
1169 
1175  explicit Goal(Json::Value* storage);
1176 
1180  virtual ~Goal();
1181 
1187  const StringPiece GetTypeName() const {
1188  return StringPiece("google_analytics_api::Goal");
1189  }
1190 
1196  bool has_account_id() const {
1197  return Storage().isMember("accountId");
1198  }
1199 
1204  MutableStorage()->removeMember("accountId");
1205  }
1206 
1207 
1211  const StringPiece get_account_id() const {
1212  const Json::Value& v = Storage("accountId");
1213  if (v == Json::Value::null) return StringPiece("");
1214  return StringPiece(v.asCString());
1215  }
1216 
1224  void set_account_id(const StringPiece& value) {
1225  *MutableStorage("accountId") = value.data();
1226  }
1227 
1233  bool has_active() const {
1234  return Storage().isMember("active");
1235  }
1236 
1240  void clear_active() {
1241  MutableStorage()->removeMember("active");
1242  }
1243 
1244 
1248  bool get_active() const {
1249  const Json::Value& storage = Storage("active");
1250  return client::JsonValueToCppValueHelper<bool >(storage);
1251  }
1252 
1260  void set_active(bool value) {
1261  client::SetJsonValueFromCppValueHelper<bool >(
1262  value, MutableStorage("active"));
1263  }
1264 
1270  bool has_created() const {
1271  return Storage().isMember("created");
1272  }
1273 
1277  void clear_created() {
1278  MutableStorage()->removeMember("created");
1279  }
1280 
1281 
1285  client::DateTime get_created() const {
1286  const Json::Value& storage = Storage("created");
1287  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1288  }
1289 
1297  void set_created(client::DateTime value) {
1298  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1299  value, MutableStorage("created"));
1300  }
1301 
1307  bool has_event_details() const {
1308  return Storage().isMember("eventDetails");
1309  }
1310 
1315  MutableStorage()->removeMember("eventDetails");
1316  }
1317 
1318 
1323  const Json::Value& storage = Storage("eventDetails");
1324  return client::JsonValueToCppValueHelper<GoalEventDetails >(storage);
1325  }
1326 
1336  Json::Value* storage = MutableStorage("eventDetails");
1337  return client::JsonValueToMutableCppValueHelper<GoalEventDetails >(storage);
1338  }
1339 
1345  bool has_id() const {
1346  return Storage().isMember("id");
1347  }
1348 
1352  void clear_id() {
1353  MutableStorage()->removeMember("id");
1354  }
1355 
1356 
1360  const StringPiece get_id() const {
1361  const Json::Value& v = Storage("id");
1362  if (v == Json::Value::null) return StringPiece("");
1363  return StringPiece(v.asCString());
1364  }
1365 
1373  void set_id(const StringPiece& value) {
1374  *MutableStorage("id") = value.data();
1375  }
1376 
1383  return Storage().isMember("internalWebPropertyId");
1384  }
1385 
1390  MutableStorage()->removeMember("internalWebPropertyId");
1391  }
1392 
1393 
1397  const StringPiece get_internal_web_property_id() const {
1398  const Json::Value& v = Storage("internalWebPropertyId");
1399  if (v == Json::Value::null) return StringPiece("");
1400  return StringPiece(v.asCString());
1401  }
1402 
1410  void set_internal_web_property_id(const StringPiece& value) {
1411  *MutableStorage("internalWebPropertyId") = value.data();
1412  }
1413 
1419  bool has_kind() const {
1420  return Storage().isMember("kind");
1421  }
1422 
1426  void clear_kind() {
1427  MutableStorage()->removeMember("kind");
1428  }
1429 
1430 
1434  const StringPiece get_kind() const {
1435  const Json::Value& v = Storage("kind");
1436  if (v == Json::Value::null) return StringPiece("");
1437  return StringPiece(v.asCString());
1438  }
1439 
1447  void set_kind(const StringPiece& value) {
1448  *MutableStorage("kind") = value.data();
1449  }
1450 
1456  bool has_name() const {
1457  return Storage().isMember("name");
1458  }
1459 
1463  void clear_name() {
1464  MutableStorage()->removeMember("name");
1465  }
1466 
1467 
1471  const StringPiece get_name() const {
1472  const Json::Value& v = Storage("name");
1473  if (v == Json::Value::null) return StringPiece("");
1474  return StringPiece(v.asCString());
1475  }
1476 
1484  void set_name(const StringPiece& value) {
1485  *MutableStorage("name") = value.data();
1486  }
1487 
1493  bool has_parent_link() const {
1494  return Storage().isMember("parentLink");
1495  }
1496 
1501  MutableStorage()->removeMember("parentLink");
1502  }
1503 
1504 
1509  const Json::Value& storage = Storage("parentLink");
1510  return client::JsonValueToCppValueHelper<GoalParentLink >(storage);
1511  }
1512 
1523  Json::Value* storage = MutableStorage("parentLink");
1524  return client::JsonValueToMutableCppValueHelper<GoalParentLink >(storage);
1525  }
1526 
1532  bool has_profile_id() const {
1533  return Storage().isMember("profileId");
1534  }
1535 
1540  MutableStorage()->removeMember("profileId");
1541  }
1542 
1543 
1547  const StringPiece get_profile_id() const {
1548  const Json::Value& v = Storage("profileId");
1549  if (v == Json::Value::null) return StringPiece("");
1550  return StringPiece(v.asCString());
1551  }
1552 
1560  void set_profile_id(const StringPiece& value) {
1561  *MutableStorage("profileId") = value.data();
1562  }
1563 
1569  bool has_self_link() const {
1570  return Storage().isMember("selfLink");
1571  }
1572 
1577  MutableStorage()->removeMember("selfLink");
1578  }
1579 
1580 
1584  const StringPiece get_self_link() const {
1585  const Json::Value& v = Storage("selfLink");
1586  if (v == Json::Value::null) return StringPiece("");
1587  return StringPiece(v.asCString());
1588  }
1589 
1597  void set_self_link(const StringPiece& value) {
1598  *MutableStorage("selfLink") = value.data();
1599  }
1600 
1606  bool has_type() const {
1607  return Storage().isMember("type");
1608  }
1609 
1613  void clear_type() {
1614  MutableStorage()->removeMember("type");
1615  }
1616 
1617 
1621  const StringPiece get_type() const {
1622  const Json::Value& v = Storage("type");
1623  if (v == Json::Value::null) return StringPiece("");
1624  return StringPiece(v.asCString());
1625  }
1626 
1635  void set_type(const StringPiece& value) {
1636  *MutableStorage("type") = value.data();
1637  }
1638 
1644  bool has_updated() const {
1645  return Storage().isMember("updated");
1646  }
1647 
1651  void clear_updated() {
1652  MutableStorage()->removeMember("updated");
1653  }
1654 
1655 
1659  client::DateTime get_updated() const {
1660  const Json::Value& storage = Storage("updated");
1661  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
1662  }
1663 
1671  void set_updated(client::DateTime value) {
1672  client::SetJsonValueFromCppValueHelper<client::DateTime >(
1673  value, MutableStorage("updated"));
1674  }
1675 
1682  return Storage().isMember("urlDestinationDetails");
1683  }
1684 
1689  MutableStorage()->removeMember("urlDestinationDetails");
1690  }
1691 
1692 
1698  const Json::Value& storage = Storage("urlDestinationDetails");
1699  return client::JsonValueToCppValueHelper<GoalUrlDestinationDetails >(storage);
1700  }
1701 
1711  Json::Value* storage = MutableStorage("urlDestinationDetails");
1712  return client::JsonValueToMutableCppValueHelper<GoalUrlDestinationDetails >(storage);
1713  }
1714 
1720  bool has_value() const {
1721  return Storage().isMember("value");
1722  }
1723 
1727  void clear_value() {
1728  MutableStorage()->removeMember("value");
1729  }
1730 
1731 
1735  float get_value() const {
1736  const Json::Value& storage = Storage("value");
1737  return client::JsonValueToCppValueHelper<float >(storage);
1738  }
1739 
1747  void set_value(float value) {
1748  client::SetJsonValueFromCppValueHelper<float >(
1749  value, MutableStorage("value"));
1750  }
1751 
1758  return Storage().isMember("visitNumPagesDetails");
1759  }
1760 
1765  MutableStorage()->removeMember("visitNumPagesDetails");
1766  }
1767 
1768 
1774  const Json::Value& storage = Storage("visitNumPagesDetails");
1775  return client::JsonValueToCppValueHelper<GoalVisitNumPagesDetails >(storage);
1776  }
1777 
1787  Json::Value* storage = MutableStorage("visitNumPagesDetails");
1788  return client::JsonValueToMutableCppValueHelper<GoalVisitNumPagesDetails >(storage);
1789  }
1790 
1798  return Storage().isMember("visitTimeOnSiteDetails");
1799  }
1800 
1805  MutableStorage()->removeMember("visitTimeOnSiteDetails");
1806  }
1807 
1808 
1814  const Json::Value& storage = Storage("visitTimeOnSiteDetails");
1815  return client::JsonValueToCppValueHelper<GoalVisitTimeOnSiteDetails >(storage);
1816  }
1817 
1827  Json::Value* storage = MutableStorage("visitTimeOnSiteDetails");
1828  return client::JsonValueToMutableCppValueHelper<GoalVisitTimeOnSiteDetails >(storage);
1829  }
1830 
1836  bool has_web_property_id() const {
1837  return Storage().isMember("webPropertyId");
1838  }
1839 
1844  MutableStorage()->removeMember("webPropertyId");
1845  }
1846 
1847 
1851  const StringPiece get_web_property_id() const {
1852  const Json::Value& v = Storage("webPropertyId");
1853  if (v == Json::Value::null) return StringPiece("");
1854  return StringPiece(v.asCString());
1855  }
1856 
1865  void set_web_property_id(const StringPiece& value) {
1866  *MutableStorage("webPropertyId") = value.data();
1867  }
1868 
1869  private:
1870  void operator=(const Goal&);
1871 }; // Goal
1872 } // namespace google_analytics_api
1873 #endif // GOOGLE_ANALYTICS_API_GOAL_H_
void clear_comparison_value()
Definition: goal.h:1009
void set_comparison_value(int64 value)
Definition: goal.h:1029
bool get_first_step_required() const
Definition: goal.h:786
GoalVisitNumPagesDetails mutable_visitNumPagesDetails()
Definition: goal.h:1786
void set_active(bool value)
Definition: goal.h:1260
const StringPiece GetTypeName() const
Definition: goal.h:326
void set_comparison_type(const StringPiece &value)
Definition: goal.h:993
void set_profile_id(const StringPiece &value)
Definition: goal.h:1560
void clear_use_event_value()
Definition: goal.h:381
const StringPiece get_match_type() const
Definition: goal.h:823
const StringPiece GetTypeName() const
Definition: goal.h:724
void set_match_type(const StringPiece &value)
Definition: goal.h:250
int64 get_comparison_value() const
Definition: goal.h:1136
bool has_created() const
Definition: goal.h:1270
void set_case_sensitive(bool value)
Definition: goal.h:761
bool get_active() const
Definition: goal.h:1248
const StringPiece get_comparison_type() const
Definition: goal.h:1099
const GoalVisitTimeOnSiteDetails get_visit_time_on_site_details() const
Definition: goal.h:1813
Definition: goal.h:52
void set_comparison_value(int64 value)
Definition: goal.h:1148
void clear_type()
Definition: goal.h:1613
bool get_use_event_value() const
Definition: goal.h:389
const StringPiece get_match_type() const
Definition: goal.h:236
bool has_use_event_value() const
Definition: goal.h:374
void set_expression(const StringPiece &value)
Definition: goal.h:212
void set_web_property_id(const StringPiece &value)
Definition: goal.h:1865
bool has_profile_id() const
Definition: goal.h:1532
void clear_comparison_type()
Definition: goal.h:971
bool has_parent_link() const
Definition: goal.h:1493
const StringPiece get_profile_id() const
Definition: goal.h:1547
bool has_self_link() const
Definition: goal.h:1569
void clear_account_id()
Definition: goal.h:1203
client::DateTime get_created() const
Definition: goal.h:1285
void set_updated(client::DateTime value)
Definition: goal.h:1671
void clear_event_details()
Definition: goal.h:1314
void set_account_id(const StringPiece &value)
Definition: goal.h:1224
void clear_value()
Definition: goal.h:1727
bool has_web_property_id() const
Definition: goal.h:1836
bool has_event_conditions() const
Definition: goal.h:335
client::JsonCppArray< GoalUrlDestinationDetailsSteps > mutable_steps()
Definition: goal.h:872
bool has_kind() const
Definition: goal.h:1419
void set_internal_web_property_id(const StringPiece &value)
Definition: goal.h:1410
const GoalVisitNumPagesDetails get_visit_num_pages_details() const
Definition: goal.h:1773
void clear_first_step_required()
Definition: goal.h:778
const StringPiece get_comparison_type() const
Definition: goal.h:124
const StringPiece GetTypeName() const
Definition: goal.h:1075
void set_first_step_required(bool value)
Definition: goal.h:798
bool has_comparison_value() const
Definition: goal.h:1002
void set_url(const StringPiece &value)
Definition: goal.h:910
const StringPiece get_comparison_type() const
Definition: goal.h:979
const client::JsonCppArray< GoalUrlDestinationDetailsSteps > get_steps() const
Definition: goal.h:860
void clear_kind()
Definition: goal.h:1426
client::DateTime get_updated() const
Definition: goal.h:1659
void clear_created()
Definition: goal.h:1277
void set_comparison_type(const StringPiece &value)
Definition: goal.h:1112
const StringPiece get_id() const
Definition: goal.h:1360
bool has_account_id() const
Definition: goal.h:1196
void clear_active()
Definition: goal.h:1240
void set_id(const StringPiece &value)
Definition: goal.h:1373
bool has_url_destination_details() const
Definition: goal.h:1681
bool has_type() const
Definition: goal.h:1606
void set_match_type(const StringPiece &value)
Definition: goal.h:836
void set_name(const StringPiece &value)
Definition: goal.h:1484
GoalUrlDestinationDetails mutable_urlDestinationDetails()
Definition: goal.h:1710
void clear_profile_id()
Definition: goal.h:1539
void set_type(const StringPiece &value)
Definition: goal.h:288
const StringPiece GetTypeName() const
Definition: goal.h:955
void clear_internal_web_property_id()
Definition: goal.h:1389
const StringPiece get_type() const
Definition: goal.h:1621
Definition: account.h:39
bool has_internal_web_property_id() const
Definition: goal.h:1382
const StringPiece get_web_property_id() const
Definition: goal.h:1851
const client::JsonCppArray< GoalEventDetailsEventConditions > get_event_conditions() const
Definition: goal.h:351
bool has_comparison_type() const
Definition: goal.h:964
void clear_parent_link()
Definition: goal.h:1500
GoalEventDetails mutable_eventDetails()
Definition: goal.h:1335
Definition: account.cc:41
const StringPiece GetTypeName() const
Definition: goal.h:1187
void set_created(client::DateTime value)
Definition: goal.h:1297
int64 get_comparison_value() const
Definition: goal.h:1017
bool has_name() const
Definition: goal.h:1456
const GoalParentLink get_parent_link() const
Definition: goal.h:1508
void set_type(const StringPiece &value)
Definition: goal.h:1635
bool has_visit_num_pages_details() const
Definition: goal.h:1757
const StringPiece get_url() const
Definition: goal.h:897
void clear_web_property_id()
Definition: goal.h:1843
bool has_active() const
Definition: goal.h:1233
GoalParentLink mutable_parentLink()
Definition: goal.h:1522
void clear_visit_time_on_site_details()
Definition: goal.h:1804
const StringPiece get_self_link() const
Definition: goal.h:1584
void clear_event_conditions()
Definition: goal.h:342
bool has_updated() const
Definition: goal.h:1644
void set_value(float value)
Definition: goal.h:1747
bool has_comparison_type() const
Definition: goal.h:1084
const GoalEventDetails get_event_details() const
Definition: goal.h:1322
GoalVisitTimeOnSiteDetails mutable_visitTimeOnSiteDetails()
Definition: goal.h:1826
bool has_comparison_value() const
Definition: goal.h:1121
void clear_self_link()
Definition: goal.h:1576
bool has_case_sensitive() const
Definition: goal.h:733
void set_self_link(const StringPiece &value)
Definition: goal.h:1597
const GoalUrlDestinationDetails get_url_destination_details() const
Definition: goal.h:1697
bool has_first_step_required() const
Definition: goal.h:771
bool has_id() const
Definition: goal.h:1345
void clear_updated()
Definition: goal.h:1651
void set_use_event_value(bool value)
Definition: goal.h:401
client::JsonCppArray< GoalEventDetailsEventConditions > mutable_eventConditions()
Definition: goal.h:364
bool has_match_type() const
Definition: goal.h:808
void clear_name()
Definition: goal.h:1463
bool has_value() const
Definition: goal.h:1720
void clear_comparison_value()
Definition: goal.h:1128
const StringPiece get_internal_web_property_id() const
Definition: goal.h:1397
bool has_visit_time_on_site_details() const
Definition: goal.h:1797
bool has_url() const
Definition: goal.h:882
float get_value() const
Definition: goal.h:1735
bool get_case_sensitive() const
Definition: goal.h:748
void set_kind(const StringPiece &value)
Definition: goal.h:1447
bool has_steps() const
Definition: goal.h:845
void set_comparison_type(const StringPiece &value)
Definition: goal.h:138
void clear_visit_num_pages_details()
Definition: goal.h:1764
const StringPiece get_name() const
Definition: goal.h:1471
void clear_id()
Definition: goal.h:1352
void clear_url_destination_details()
Definition: goal.h:1688
bool has_event_details() const
Definition: goal.h:1307
const StringPiece get_expression() const
Definition: goal.h:199
const StringPiece get_kind() const
Definition: goal.h:1434
const StringPiece get_account_id() const
Definition: goal.h:1211