analytics  v3
ga_data.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_GA_DATA_H_
31 #define GOOGLE_ANALYTICS_API_GA_DATA_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 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_analytics_api {
44 using namespace googleapis;
45 
51 class GaData : public client::JsonCppData {
52  public:
58  class GaDataColumnHeaders : public client::JsonCppData {
59  public:
65  static GaDataColumnHeaders* New();
66 
72  explicit GaDataColumnHeaders(const Json::Value& storage);
73 
79  explicit GaDataColumnHeaders(Json::Value* storage);
80 
84  virtual ~GaDataColumnHeaders();
85 
91  const StringPiece GetTypeName() const {
92  return StringPiece("google_analytics_api::GaDataColumnHeaders");
93  }
94 
100  bool has_column_type() const {
101  return Storage().isMember("columnType");
102  }
103 
108  MutableStorage()->removeMember("columnType");
109  }
110 
111 
115  const StringPiece get_column_type() const {
116  const Json::Value& v = Storage("columnType");
117  if (v == Json::Value::null) return StringPiece("");
118  return StringPiece(v.asCString());
119  }
120 
128  void set_column_type(const StringPiece& value) {
129  *MutableStorage("columnType") = value.data();
130  }
131 
137  bool has_data_type() const {
138  return Storage().isMember("dataType");
139  }
140 
145  MutableStorage()->removeMember("dataType");
146  }
147 
148 
152  const StringPiece get_data_type() const {
153  const Json::Value& v = Storage("dataType");
154  if (v == Json::Value::null) return StringPiece("");
155  return StringPiece(v.asCString());
156  }
157 
167  void set_data_type(const StringPiece& value) {
168  *MutableStorage("dataType") = value.data();
169  }
170 
176  bool has_name() const {
177  return Storage().isMember("name");
178  }
179 
183  void clear_name() {
184  MutableStorage()->removeMember("name");
185  }
186 
187 
191  const StringPiece get_name() const {
192  const Json::Value& v = Storage("name");
193  if (v == Json::Value::null) return StringPiece("");
194  return StringPiece(v.asCString());
195  }
196 
204  void set_name(const StringPiece& value) {
205  *MutableStorage("name") = value.data();
206  }
207 
208  private:
209  void operator=(const GaDataColumnHeaders&);
210  }; // GaDataColumnHeaders
216  class GaDataDataTable : public client::JsonCppData {
217  public:
223  class GaDataDataTableCols : public client::JsonCppData {
224  public:
230  static GaDataDataTableCols* New();
231 
237  explicit GaDataDataTableCols(const Json::Value& storage);
238 
244  explicit GaDataDataTableCols(Json::Value* storage);
245 
249  virtual ~GaDataDataTableCols();
250 
256  const StringPiece GetTypeName() const {
257  return StringPiece("google_analytics_api::GaDataDataTableCols");
258  }
259 
265  bool has_id() const {
266  return Storage().isMember("id");
267  }
268 
272  void clear_id() {
273  MutableStorage()->removeMember("id");
274  }
275 
276 
280  const StringPiece get_id() const {
281  const Json::Value& v = Storage("id");
282  if (v == Json::Value::null) return StringPiece("");
283  return StringPiece(v.asCString());
284  }
285 
290  void set_id(const StringPiece& value) {
291  *MutableStorage("id") = value.data();
292  }
293 
299  bool has_label() const {
300  return Storage().isMember("label");
301  }
302 
306  void clear_label() {
307  MutableStorage()->removeMember("label");
308  }
309 
310 
314  const StringPiece get_label() const {
315  const Json::Value& v = Storage("label");
316  if (v == Json::Value::null) return StringPiece("");
317  return StringPiece(v.asCString());
318  }
319 
324  void set_label(const StringPiece& value) {
325  *MutableStorage("label") = value.data();
326  }
327 
333  bool has_type() const {
334  return Storage().isMember("type");
335  }
336 
340  void clear_type() {
341  MutableStorage()->removeMember("type");
342  }
343 
344 
348  const StringPiece get_type() const {
349  const Json::Value& v = Storage("type");
350  if (v == Json::Value::null) return StringPiece("");
351  return StringPiece(v.asCString());
352  }
353 
358  void set_type(const StringPiece& value) {
359  *MutableStorage("type") = value.data();
360  }
361 
362  private:
363  void operator=(const GaDataDataTableCols&);
364  }; // GaDataDataTableCols
370  class GaDataDataTableRows : public client::JsonCppData {
371  public:
377  class GaDataDataTableRowsC : public client::JsonCppData {
378  public:
384  static GaDataDataTableRowsC* New();
385 
391  explicit GaDataDataTableRowsC(const Json::Value& storage);
392 
398  explicit GaDataDataTableRowsC(Json::Value* storage);
399 
403  virtual ~GaDataDataTableRowsC();
404 
410  const StringPiece GetTypeName() const {
411  return StringPiece("google_analytics_api::GaDataDataTableRowsC");
412  }
413 
419  bool has_v() const {
420  return Storage().isMember("v");
421  }
422 
426  void clear_v() {
427  MutableStorage()->removeMember("v");
428  }
429 
430 
434  const StringPiece get_v() const {
435  const Json::Value& v = Storage("v");
436  if (v == Json::Value::null) return StringPiece("");
437  return StringPiece(v.asCString());
438  }
439 
444  void set_v(const StringPiece& value) {
445  *MutableStorage("v") = value.data();
446  }
447 
448  private:
449  void operator=(const GaDataDataTableRowsC&);
450  }; // GaDataDataTableRowsC
456  static GaDataDataTableRows* New();
457 
463  explicit GaDataDataTableRows(const Json::Value& storage);
464 
470  explicit GaDataDataTableRows(Json::Value* storage);
471 
475  virtual ~GaDataDataTableRows();
476 
482  const StringPiece GetTypeName() const {
483  return StringPiece("google_analytics_api::GaDataDataTableRows");
484  }
485 
491  bool has_c() const {
492  return Storage().isMember("c");
493  }
494 
498  void clear_c() {
499  MutableStorage()->removeMember("c");
500  }
501 
502 
506  const client::JsonCppArray<GaDataDataTableRowsC > get_c() const {
507  const Json::Value& storage = Storage("c");
508  return client::JsonValueToCppValueHelper<client::JsonCppArray<GaDataDataTableRowsC > >(storage);
509  }
510 
515  client::JsonCppArray<GaDataDataTableRowsC > mutable_c() {
516  Json::Value* storage = MutableStorage("c");
517  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<GaDataDataTableRowsC > >(storage);
518  }
519 
520  private:
521  void operator=(const GaDataDataTableRows&);
522  }; // GaDataDataTableRows
528  static GaDataDataTable* New();
529 
535  explicit GaDataDataTable(const Json::Value& storage);
536 
542  explicit GaDataDataTable(Json::Value* storage);
543 
547  virtual ~GaDataDataTable();
548 
554  const StringPiece GetTypeName() const {
555  return StringPiece("google_analytics_api::GaDataDataTable");
556  }
557 
563  bool has_cols() const {
564  return Storage().isMember("cols");
565  }
566 
570  void clear_cols() {
571  MutableStorage()->removeMember("cols");
572  }
573 
574 
578  const client::JsonCppArray<GaDataDataTableCols > get_cols() const {
579  const Json::Value& storage = Storage("cols");
580  return client::JsonValueToCppValueHelper<client::JsonCppArray<GaDataDataTableCols > >(storage);
581  }
582 
587  client::JsonCppArray<GaDataDataTableCols > mutable_cols() {
588  Json::Value* storage = MutableStorage("cols");
589  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<GaDataDataTableCols > >(storage);
590  }
591 
597  bool has_rows() const {
598  return Storage().isMember("rows");
599  }
600 
604  void clear_rows() {
605  MutableStorage()->removeMember("rows");
606  }
607 
608 
612  const client::JsonCppArray<GaDataDataTableRows > get_rows() const {
613  const Json::Value& storage = Storage("rows");
614  return client::JsonValueToCppValueHelper<client::JsonCppArray<GaDataDataTableRows > >(storage);
615  }
616 
621  client::JsonCppArray<GaDataDataTableRows > mutable_rows() {
622  Json::Value* storage = MutableStorage("rows");
623  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<GaDataDataTableRows > >(storage);
624  }
625 
626  private:
627  void operator=(const GaDataDataTable&);
628  }; // GaDataDataTable
635  class GaDataProfileInfo : public client::JsonCppData {
636  public:
642  static GaDataProfileInfo* New();
643 
649  explicit GaDataProfileInfo(const Json::Value& storage);
650 
656  explicit GaDataProfileInfo(Json::Value* storage);
657 
661  virtual ~GaDataProfileInfo();
662 
668  const StringPiece GetTypeName() const {
669  return StringPiece("google_analytics_api::GaDataProfileInfo");
670  }
671 
677  bool has_account_id() const {
678  return Storage().isMember("accountId");
679  }
680 
685  MutableStorage()->removeMember("accountId");
686  }
687 
688 
692  const StringPiece get_account_id() const {
693  const Json::Value& v = Storage("accountId");
694  if (v == Json::Value::null) return StringPiece("");
695  return StringPiece(v.asCString());
696  }
697 
705  void set_account_id(const StringPiece& value) {
706  *MutableStorage("accountId") = value.data();
707  }
708 
716  return Storage().isMember("internalWebPropertyId");
717  }
718 
723  MutableStorage()->removeMember("internalWebPropertyId");
724  }
725 
726 
730  const StringPiece get_internal_web_property_id() const {
731  const Json::Value& v = Storage("internalWebPropertyId");
732  if (v == Json::Value::null) return StringPiece("");
733  return StringPiece(v.asCString());
734  }
735 
743  void set_internal_web_property_id(const StringPiece& value) {
744  *MutableStorage("internalWebPropertyId") = value.data();
745  }
746 
752  bool has_profile_id() const {
753  return Storage().isMember("profileId");
754  }
755 
760  MutableStorage()->removeMember("profileId");
761  }
762 
763 
767  const StringPiece get_profile_id() const {
768  const Json::Value& v = Storage("profileId");
769  if (v == Json::Value::null) return StringPiece("");
770  return StringPiece(v.asCString());
771  }
772 
780  void set_profile_id(const StringPiece& value) {
781  *MutableStorage("profileId") = value.data();
782  }
783 
789  bool has_profile_name() const {
790  return Storage().isMember("profileName");
791  }
792 
797  MutableStorage()->removeMember("profileName");
798  }
799 
800 
804  const StringPiece get_profile_name() const {
805  const Json::Value& v = Storage("profileName");
806  if (v == Json::Value::null) return StringPiece("");
807  return StringPiece(v.asCString());
808  }
809 
817  void set_profile_name(const StringPiece& value) {
818  *MutableStorage("profileName") = value.data();
819  }
820 
826  bool has_table_id() const {
827  return Storage().isMember("tableId");
828  }
829 
833  void clear_table_id() {
834  MutableStorage()->removeMember("tableId");
835  }
836 
837 
841  const StringPiece get_table_id() const {
842  const Json::Value& v = Storage("tableId");
843  if (v == Json::Value::null) return StringPiece("");
844  return StringPiece(v.asCString());
845  }
846 
854  void set_table_id(const StringPiece& value) {
855  *MutableStorage("tableId") = value.data();
856  }
857 
863  bool has_web_property_id() const {
864  return Storage().isMember("webPropertyId");
865  }
866 
871  MutableStorage()->removeMember("webPropertyId");
872  }
873 
874 
878  const StringPiece get_web_property_id() const {
879  const Json::Value& v = Storage("webPropertyId");
880  if (v == Json::Value::null) return StringPiece("");
881  return StringPiece(v.asCString());
882  }
883 
891  void set_web_property_id(const StringPiece& value) {
892  *MutableStorage("webPropertyId") = value.data();
893  }
894 
895  private:
896  void operator=(const GaDataProfileInfo&);
897  }; // GaDataProfileInfo
903  class GaDataQuery : public client::JsonCppData {
904  public:
910  static GaDataQuery* New();
911 
917  explicit GaDataQuery(const Json::Value& storage);
918 
924  explicit GaDataQuery(Json::Value* storage);
925 
929  virtual ~GaDataQuery();
930 
936  const StringPiece GetTypeName() const {
937  return StringPiece("google_analytics_api::GaDataQuery");
938  }
939 
945  bool has_dimensions() const {
946  return Storage().isMember("dimensions");
947  }
948 
953  MutableStorage()->removeMember("dimensions");
954  }
955 
956 
960  const StringPiece get_dimensions() const {
961  const Json::Value& v = Storage("dimensions");
962  if (v == Json::Value::null) return StringPiece("");
963  return StringPiece(v.asCString());
964  }
965 
973  void set_dimensions(const StringPiece& value) {
974  *MutableStorage("dimensions") = value.data();
975  }
976 
982  bool has_end_date() const {
983  return Storage().isMember("end-date");
984  }
985 
989  void clear_end_date() {
990  MutableStorage()->removeMember("end-date");
991  }
992 
993 
997  const StringPiece get_end_date() const {
998  const Json::Value& v = Storage("end-date");
999  if (v == Json::Value::null) return StringPiece("");
1000  return StringPiece(v.asCString());
1001  }
1002 
1010  void set_end_date(const StringPiece& value) {
1011  *MutableStorage("end-date") = value.data();
1012  }
1013 
1019  bool has_filters() const {
1020  return Storage().isMember("filters");
1021  }
1022 
1026  void clear_filters() {
1027  MutableStorage()->removeMember("filters");
1028  }
1029 
1030 
1034  const StringPiece get_filters() const {
1035  const Json::Value& v = Storage("filters");
1036  if (v == Json::Value::null) return StringPiece("");
1037  return StringPiece(v.asCString());
1038  }
1039 
1047  void set_filters(const StringPiece& value) {
1048  *MutableStorage("filters") = value.data();
1049  }
1050 
1056  bool has_ids() const {
1057  return Storage().isMember("ids");
1058  }
1059 
1063  void clear_ids() {
1064  MutableStorage()->removeMember("ids");
1065  }
1066 
1067 
1071  const StringPiece get_ids() const {
1072  const Json::Value& v = Storage("ids");
1073  if (v == Json::Value::null) return StringPiece("");
1074  return StringPiece(v.asCString());
1075  }
1076 
1084  void set_ids(const StringPiece& value) {
1085  *MutableStorage("ids") = value.data();
1086  }
1087 
1093  bool has_max_results() const {
1094  return Storage().isMember("max-results");
1095  }
1096 
1101  MutableStorage()->removeMember("max-results");
1102  }
1103 
1104 
1108  int32 get_max_results() const {
1109  const Json::Value& storage = Storage("max-results");
1110  return client::JsonValueToCppValueHelper<int32 >(storage);
1111  }
1112 
1120  void set_max_results(int32 value) {
1121  client::SetJsonValueFromCppValueHelper<int32 >(
1122  value, MutableStorage("max-results"));
1123  }
1124 
1130  bool has_metrics() const {
1131  return Storage().isMember("metrics");
1132  }
1133 
1137  void clear_metrics() {
1138  MutableStorage()->removeMember("metrics");
1139  }
1140 
1141 
1145  const client::JsonCppArray<string > get_metrics() const {
1146  const Json::Value& storage = Storage("metrics");
1147  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
1148  }
1149 
1158  client::JsonCppArray<string > mutable_metrics() {
1159  Json::Value* storage = MutableStorage("metrics");
1160  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
1161  }
1162 
1168  bool has_sampling_level() const {
1169  return Storage().isMember("samplingLevel");
1170  }
1171 
1176  MutableStorage()->removeMember("samplingLevel");
1177  }
1178 
1179 
1183  const StringPiece get_sampling_level() const {
1184  const Json::Value& v = Storage("samplingLevel");
1185  if (v == Json::Value::null) return StringPiece("");
1186  return StringPiece(v.asCString());
1187  }
1188 
1196  void set_sampling_level(const StringPiece& value) {
1197  *MutableStorage("samplingLevel") = value.data();
1198  }
1199 
1205  bool has_segment() const {
1206  return Storage().isMember("segment");
1207  }
1208 
1212  void clear_segment() {
1213  MutableStorage()->removeMember("segment");
1214  }
1215 
1216 
1220  const StringPiece get_segment() const {
1221  const Json::Value& v = Storage("segment");
1222  if (v == Json::Value::null) return StringPiece("");
1223  return StringPiece(v.asCString());
1224  }
1225 
1233  void set_segment(const StringPiece& value) {
1234  *MutableStorage("segment") = value.data();
1235  }
1236 
1242  bool has_sort() const {
1243  return Storage().isMember("sort");
1244  }
1245 
1249  void clear_sort() {
1250  MutableStorage()->removeMember("sort");
1251  }
1252 
1253 
1257  const client::JsonCppArray<string > get_sort() const {
1258  const Json::Value& storage = Storage("sort");
1259  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
1260  }
1261 
1269  client::JsonCppArray<string > mutable_sort() {
1270  Json::Value* storage = MutableStorage("sort");
1271  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
1272  }
1273 
1279  bool has_start_date() const {
1280  return Storage().isMember("start-date");
1281  }
1282 
1287  MutableStorage()->removeMember("start-date");
1288  }
1289 
1290 
1294  const StringPiece get_start_date() const {
1295  const Json::Value& v = Storage("start-date");
1296  if (v == Json::Value::null) return StringPiece("");
1297  return StringPiece(v.asCString());
1298  }
1299 
1307  void set_start_date(const StringPiece& value) {
1308  *MutableStorage("start-date") = value.data();
1309  }
1310 
1316  bool has_start_index() const {
1317  return Storage().isMember("start-index");
1318  }
1319 
1324  MutableStorage()->removeMember("start-index");
1325  }
1326 
1327 
1331  int32 get_start_index() const {
1332  const Json::Value& storage = Storage("start-index");
1333  return client::JsonValueToCppValueHelper<int32 >(storage);
1334  }
1335 
1343  void set_start_index(int32 value) {
1344  client::SetJsonValueFromCppValueHelper<int32 >(
1345  value, MutableStorage("start-index"));
1346  }
1347 
1348  private:
1349  void operator=(const GaDataQuery&);
1350  }; // GaDataQuery
1356  static GaData* New();
1357 
1363  explicit GaData(const Json::Value& storage);
1364 
1370  explicit GaData(Json::Value* storage);
1371 
1375  virtual ~GaData();
1376 
1382  const StringPiece GetTypeName() const {
1383  return StringPiece("google_analytics_api::GaData");
1384  }
1385 
1391  bool has_column_headers() const {
1392  return Storage().isMember("columnHeaders");
1393  }
1394 
1399  MutableStorage()->removeMember("columnHeaders");
1400  }
1401 
1402 
1406  const client::JsonCppArray<GaDataColumnHeaders > get_column_headers() const {
1407  const Json::Value& storage = Storage("columnHeaders");
1408  return client::JsonValueToCppValueHelper<client::JsonCppArray<GaDataColumnHeaders > >(storage);
1409  }
1410 
1420  client::JsonCppArray<GaDataColumnHeaders > mutable_columnHeaders() {
1421  Json::Value* storage = MutableStorage("columnHeaders");
1422  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<GaDataColumnHeaders > >(storage);
1423  }
1424 
1431  return Storage().isMember("containsSampledData");
1432  }
1433 
1438  MutableStorage()->removeMember("containsSampledData");
1439  }
1440 
1441 
1446  const Json::Value& storage = Storage("containsSampledData");
1447  return client::JsonValueToCppValueHelper<bool >(storage);
1448  }
1449 
1457  void set_contains_sampled_data(bool value) {
1458  client::SetJsonValueFromCppValueHelper<bool >(
1459  value, MutableStorage("containsSampledData"));
1460  }
1461 
1468  return Storage().isMember("dataLastRefreshed");
1469  }
1470 
1475  MutableStorage()->removeMember("dataLastRefreshed");
1476  }
1477 
1478 
1482  int64 get_data_last_refreshed() const {
1483  const Json::Value& storage = Storage("dataLastRefreshed");
1484  return client::JsonValueToCppValueHelper<int64 >(storage);
1485  }
1486 
1494  void set_data_last_refreshed(int64 value) {
1495  client::SetJsonValueFromCppValueHelper<int64 >(
1496  value, MutableStorage("dataLastRefreshed"));
1497  }
1498 
1504  bool has_data_table() const {
1505  return Storage().isMember("dataTable");
1506  }
1507 
1512  MutableStorage()->removeMember("dataTable");
1513  }
1514 
1515 
1520  const Json::Value& storage = Storage("dataTable");
1521  return client::JsonValueToCppValueHelper<GaDataDataTable >(storage);
1522  }
1523 
1530  Json::Value* storage = MutableStorage("dataTable");
1531  return client::JsonValueToMutableCppValueHelper<GaDataDataTable >(storage);
1532  }
1533 
1539  bool has_id() const {
1540  return Storage().isMember("id");
1541  }
1542 
1546  void clear_id() {
1547  MutableStorage()->removeMember("id");
1548  }
1549 
1550 
1554  const StringPiece get_id() const {
1555  const Json::Value& v = Storage("id");
1556  if (v == Json::Value::null) return StringPiece("");
1557  return StringPiece(v.asCString());
1558  }
1559 
1567  void set_id(const StringPiece& value) {
1568  *MutableStorage("id") = value.data();
1569  }
1570 
1576  bool has_items_per_page() const {
1577  return Storage().isMember("itemsPerPage");
1578  }
1579 
1584  MutableStorage()->removeMember("itemsPerPage");
1585  }
1586 
1587 
1591  int32 get_items_per_page() const {
1592  const Json::Value& storage = Storage("itemsPerPage");
1593  return client::JsonValueToCppValueHelper<int32 >(storage);
1594  }
1595 
1606  void set_items_per_page(int32 value) {
1607  client::SetJsonValueFromCppValueHelper<int32 >(
1608  value, MutableStorage("itemsPerPage"));
1609  }
1610 
1616  bool has_kind() const {
1617  return Storage().isMember("kind");
1618  }
1619 
1623  void clear_kind() {
1624  MutableStorage()->removeMember("kind");
1625  }
1626 
1627 
1631  const StringPiece get_kind() const {
1632  const Json::Value& v = Storage("kind");
1633  if (v == Json::Value::null) return StringPiece("");
1634  return StringPiece(v.asCString());
1635  }
1636 
1644  void set_kind(const StringPiece& value) {
1645  *MutableStorage("kind") = value.data();
1646  }
1647 
1653  bool has_next_link() const {
1654  return Storage().isMember("nextLink");
1655  }
1656 
1661  MutableStorage()->removeMember("nextLink");
1662  }
1663 
1664 
1668  const StringPiece get_next_link() const {
1669  const Json::Value& v = Storage("nextLink");
1670  if (v == Json::Value::null) return StringPiece("");
1671  return StringPiece(v.asCString());
1672  }
1673 
1681  void set_next_link(const StringPiece& value) {
1682  *MutableStorage("nextLink") = value.data();
1683  }
1684 
1690  bool has_previous_link() const {
1691  return Storage().isMember("previousLink");
1692  }
1693 
1698  MutableStorage()->removeMember("previousLink");
1699  }
1700 
1701 
1705  const StringPiece get_previous_link() const {
1706  const Json::Value& v = Storage("previousLink");
1707  if (v == Json::Value::null) return StringPiece("");
1708  return StringPiece(v.asCString());
1709  }
1710 
1718  void set_previous_link(const StringPiece& value) {
1719  *MutableStorage("previousLink") = value.data();
1720  }
1721 
1727  bool has_profile_info() const {
1728  return Storage().isMember("profileInfo");
1729  }
1730 
1735  MutableStorage()->removeMember("profileInfo");
1736  }
1737 
1738 
1743  const Json::Value& storage = Storage("profileInfo");
1744  return client::JsonValueToCppValueHelper<GaDataProfileInfo >(storage);
1745  }
1746 
1757  Json::Value* storage = MutableStorage("profileInfo");
1758  return client::JsonValueToMutableCppValueHelper<GaDataProfileInfo >(storage);
1759  }
1760 
1766  bool has_query() const {
1767  return Storage().isMember("query");
1768  }
1769 
1773  void clear_query() {
1774  MutableStorage()->removeMember("query");
1775  }
1776 
1777 
1781  const GaDataQuery get_query() const {
1782  const Json::Value& storage = Storage("query");
1783  return client::JsonValueToCppValueHelper<GaDataQuery >(storage);
1784  }
1785 
1794  Json::Value* storage = MutableStorage("query");
1795  return client::JsonValueToMutableCppValueHelper<GaDataQuery >(storage);
1796  }
1797 
1803  bool has_rows() const {
1804  return Storage().isMember("rows");
1805  }
1806 
1810  void clear_rows() {
1811  MutableStorage()->removeMember("rows");
1812  }
1813 
1814 
1818  const client::JsonCppArray<client::JsonCppArray<string > > get_rows() const {
1819  const Json::Value& storage = Storage("rows");
1820  return client::JsonValueToCppValueHelper<client::JsonCppArray<client::JsonCppArray<string > > >(storage);
1821  }
1822 
1832  client::JsonCppArray<client::JsonCppArray<string > > mutable_rows() {
1833  Json::Value* storage = MutableStorage("rows");
1834  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<client::JsonCppArray<string > > >(storage);
1835  }
1836 
1842  bool has_sample_size() const {
1843  return Storage().isMember("sampleSize");
1844  }
1845 
1850  MutableStorage()->removeMember("sampleSize");
1851  }
1852 
1853 
1857  int64 get_sample_size() const {
1858  const Json::Value& storage = Storage("sampleSize");
1859  return client::JsonValueToCppValueHelper<int64 >(storage);
1860  }
1861 
1869  void set_sample_size(int64 value) {
1870  client::SetJsonValueFromCppValueHelper<int64 >(
1871  value, MutableStorage("sampleSize"));
1872  }
1873 
1879  bool has_sample_space() const {
1880  return Storage().isMember("sampleSpace");
1881  }
1882 
1887  MutableStorage()->removeMember("sampleSpace");
1888  }
1889 
1890 
1894  int64 get_sample_space() const {
1895  const Json::Value& storage = Storage("sampleSpace");
1896  return client::JsonValueToCppValueHelper<int64 >(storage);
1897  }
1898 
1906  void set_sample_space(int64 value) {
1907  client::SetJsonValueFromCppValueHelper<int64 >(
1908  value, MutableStorage("sampleSpace"));
1909  }
1910 
1916  bool has_self_link() const {
1917  return Storage().isMember("selfLink");
1918  }
1919 
1924  MutableStorage()->removeMember("selfLink");
1925  }
1926 
1927 
1931  const StringPiece get_self_link() const {
1932  const Json::Value& v = Storage("selfLink");
1933  if (v == Json::Value::null) return StringPiece("");
1934  return StringPiece(v.asCString());
1935  }
1936 
1944  void set_self_link(const StringPiece& value) {
1945  *MutableStorage("selfLink") = value.data();
1946  }
1947 
1953  bool has_total_results() const {
1954  return Storage().isMember("totalResults");
1955  }
1956 
1961  MutableStorage()->removeMember("totalResults");
1962  }
1963 
1964 
1968  int32 get_total_results() const {
1969  const Json::Value& storage = Storage("totalResults");
1970  return client::JsonValueToCppValueHelper<int32 >(storage);
1971  }
1972 
1981  void set_total_results(int32 value) {
1982  client::SetJsonValueFromCppValueHelper<int32 >(
1983  value, MutableStorage("totalResults"));
1984  }
1985 
1992  return Storage().isMember("totalsForAllResults");
1993  }
1994 
1999  MutableStorage()->removeMember("totalsForAllResults");
2000  }
2001 
2002 
2007  const client::JsonCppAssociativeArray<string > get_totals_for_all_results() const {
2008  const Json::Value& storage = Storage("totalsForAllResults");
2009  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
2010  }
2011 
2022  client::JsonCppAssociativeArray<string > mutable_totalsForAllResults() {
2023  Json::Value* storage = MutableStorage("totalsForAllResults");
2024  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
2025  }
2026 
2027  private:
2028  void operator=(const GaData&);
2029 }; // GaData
2030 } // namespace google_analytics_api
2031 #endif // GOOGLE_ANALYTICS_API_GA_DATA_H_
void set_internal_web_property_id(const StringPiece &value)
Definition: ga_data.h:743
void set_start_index(int32 value)
Definition: ga_data.h:1343
const StringPiece GetTypeName() const
Definition: ga_data.h:554
const StringPiece get_end_date() const
Definition: ga_data.h:997
client::JsonCppArray< string > mutable_sort()
Definition: ga_data.h:1269
bool has_profile_name() const
Definition: ga_data.h:789
const StringPiece get_start_date() const
Definition: ga_data.h:1294
void clear_end_date()
Definition: ga_data.h:989
bool has_start_date() const
Definition: ga_data.h:1279
bool has_profile_info() const
Definition: ga_data.h:1727
bool has_end_date() const
Definition: ga_data.h:982
const StringPiece get_profile_id() const
Definition: ga_data.h:767
bool has_sort() const
Definition: ga_data.h:1242
client::JsonCppArray< GaDataDataTableRowsC > mutable_c()
Definition: ga_data.h:515
GaDataProfileInfo mutable_profileInfo()
Definition: ga_data.h:1756
void clear_id()
Definition: ga_data.h:1546
const GaDataDataTable get_data_table() const
Definition: ga_data.h:1519
const StringPiece get_type() const
Definition: ga_data.h:348
const StringPiece get_name() const
Definition: ga_data.h:191
bool has_previous_link() const
Definition: ga_data.h:1690
bool has_dimensions() const
Definition: ga_data.h:945
void set_id(const StringPiece &value)
Definition: ga_data.h:290
bool has_next_link() const
Definition: ga_data.h:1653
void set_segment(const StringPiece &value)
Definition: ga_data.h:1233
bool has_kind() const
Definition: ga_data.h:1616
const client::JsonCppArray< string > get_sort() const
Definition: ga_data.h:1257
void set_previous_link(const StringPiece &value)
Definition: ga_data.h:1718
const StringPiece get_web_property_id() const
Definition: ga_data.h:878
const client::JsonCppArray< GaDataDataTableRows > get_rows() const
Definition: ga_data.h:612
const StringPiece get_segment() const
Definition: ga_data.h:1220
GaDataDataTable mutable_dataTable()
Definition: ga_data.h:1529
const client::JsonCppArray< GaDataColumnHeaders > get_column_headers() const
Definition: ga_data.h:1406
void clear_total_results()
Definition: ga_data.h:1960
bool has_filters() const
Definition: ga_data.h:1019
void clear_data_last_refreshed()
Definition: ga_data.h:1474
bool has_max_results() const
Definition: ga_data.h:1093
void set_dimensions(const StringPiece &value)
Definition: ga_data.h:973
void clear_table_id()
Definition: ga_data.h:833
void set_next_link(const StringPiece &value)
Definition: ga_data.h:1681
const GaDataQuery get_query() const
Definition: ga_data.h:1781
void clear_metrics()
Definition: ga_data.h:1137
void set_table_id(const StringPiece &value)
Definition: ga_data.h:854
void clear_sort()
Definition: ga_data.h:1249
bool has_items_per_page() const
Definition: ga_data.h:1576
bool has_metrics() const
Definition: ga_data.h:1130
void set_end_date(const StringPiece &value)
Definition: ga_data.h:1010
void set_name(const StringPiece &value)
Definition: ga_data.h:204
void clear_profile_name()
Definition: ga_data.h:796
const StringPiece get_filters() const
Definition: ga_data.h:1034
void clear_self_link()
Definition: ga_data.h:1923
bool has_internal_web_property_id() const
Definition: ga_data.h:715
int32 get_start_index() const
Definition: ga_data.h:1331
void set_self_link(const StringPiece &value)
Definition: ga_data.h:1944
const StringPiece get_column_type() const
Definition: ga_data.h:115
bool has_web_property_id() const
Definition: ga_data.h:863
const StringPiece GetTypeName() const
Definition: ga_data.h:256
bool has_name() const
Definition: ga_data.h:176
void clear_account_id()
Definition: ga_data.h:684
void clear_profile_info()
Definition: ga_data.h:1734
bool has_sample_size() const
Definition: ga_data.h:1842
void clear_start_index()
Definition: ga_data.h:1323
void set_profile_name(const StringPiece &value)
Definition: ga_data.h:817
void clear_kind()
Definition: ga_data.h:1623
GaDataQuery mutable_query()
Definition: ga_data.h:1793
const StringPiece GetTypeName() const
Definition: ga_data.h:482
void clear_cols()
Definition: ga_data.h:570
client::JsonCppArray< GaDataDataTableRows > mutable_rows()
Definition: ga_data.h:621
const StringPiece get_next_link() const
Definition: ga_data.h:1668
void clear_items_per_page()
Definition: ga_data.h:1583
void clear_dimensions()
Definition: ga_data.h:952
void set_filters(const StringPiece &value)
Definition: ga_data.h:1047
void set_ids(const StringPiece &value)
Definition: ga_data.h:1084
const StringPiece get_account_id() const
Definition: ga_data.h:692
int64 get_data_last_refreshed() const
Definition: ga_data.h:1482
bool has_sample_space() const
Definition: ga_data.h:1879
bool has_account_id() const
Definition: ga_data.h:677
void clear_start_date()
Definition: ga_data.h:1286
void set_account_id(const StringPiece &value)
Definition: ga_data.h:705
void clear_segment()
Definition: ga_data.h:1212
bool has_rows() const
Definition: ga_data.h:1803
const StringPiece get_profile_name() const
Definition: ga_data.h:804
void set_start_date(const StringPiece &value)
Definition: ga_data.h:1307
void set_web_property_id(const StringPiece &value)
Definition: ga_data.h:891
void clear_name()
Definition: ga_data.h:183
int32 get_max_results() const
Definition: ga_data.h:1108
void set_max_results(int32 value)
Definition: ga_data.h:1120
void clear_rows()
Definition: ga_data.h:1810
bool has_total_results() const
Definition: ga_data.h:1953
bool has_rows() const
Definition: ga_data.h:597
void clear_next_link()
Definition: ga_data.h:1660
const StringPiece GetTypeName() const
Definition: ga_data.h:936
const StringPiece get_id() const
Definition: ga_data.h:280
void clear_query()
Definition: ga_data.h:1773
const StringPiece get_previous_link() const
Definition: ga_data.h:1705
client::JsonCppArray< client::JsonCppArray< string > > mutable_rows()
Definition: ga_data.h:1832
bool has_query() const
Definition: ga_data.h:1766
Definition: account.h:39
void clear_web_property_id()
Definition: ga_data.h:870
void set_profile_id(const StringPiece &value)
Definition: ga_data.h:780
void clear_sample_space()
Definition: ga_data.h:1886
void clear_rows()
Definition: ga_data.h:604
bool has_totals_for_all_results() const
Definition: ga_data.h:1991
const StringPiece GetTypeName() const
Definition: ga_data.h:668
Definition: account.cc:41
bool get_contains_sampled_data() const
Definition: ga_data.h:1445
const StringPiece get_self_link() const
Definition: ga_data.h:1931
bool has_data_type() const
Definition: ga_data.h:137
void set_kind(const StringPiece &value)
Definition: ga_data.h:1644
void clear_totals_for_all_results()
Definition: ga_data.h:1998
void clear_max_results()
Definition: ga_data.h:1100
const StringPiece get_ids() const
Definition: ga_data.h:1071
const StringPiece get_data_type() const
Definition: ga_data.h:152
const client::JsonCppArray< string > get_metrics() const
Definition: ga_data.h:1145
bool has_cols() const
Definition: ga_data.h:563
void clear_data_type()
Definition: ga_data.h:144
void clear_internal_web_property_id()
Definition: ga_data.h:722
int64 get_sample_space() const
Definition: ga_data.h:1894
bool has_id() const
Definition: ga_data.h:1539
void clear_sampling_level()
Definition: ga_data.h:1175
bool has_column_headers() const
Definition: ga_data.h:1391
void clear_data_table()
Definition: ga_data.h:1511
bool has_segment() const
Definition: ga_data.h:1205
const StringPiece get_sampling_level() const
Definition: ga_data.h:1183
client::JsonCppArray< GaDataColumnHeaders > mutable_columnHeaders()
Definition: ga_data.h:1420
void set_sample_size(int64 value)
Definition: ga_data.h:1869
bool has_data_last_refreshed() const
Definition: ga_data.h:1467
void set_type(const StringPiece &value)
Definition: ga_data.h:358
bool has_start_index() const
Definition: ga_data.h:1316
void clear_profile_id()
Definition: ga_data.h:759
bool has_sampling_level() const
Definition: ga_data.h:1168
bool has_column_type() const
Definition: ga_data.h:100
bool has_self_link() const
Definition: ga_data.h:1916
const StringPiece GetTypeName() const
Definition: ga_data.h:91
bool has_data_table() const
Definition: ga_data.h:1504
const StringPiece get_kind() const
Definition: ga_data.h:1631
void clear_ids()
Definition: ga_data.h:1063
const StringPiece get_label() const
Definition: ga_data.h:314
client::JsonCppAssociativeArray< string > mutable_totalsForAllResults()
Definition: ga_data.h:2022
bool has_contains_sampled_data() const
Definition: ga_data.h:1430
const StringPiece get_table_id() const
Definition: ga_data.h:841
void set_sample_space(int64 value)
Definition: ga_data.h:1906
const StringPiece GetTypeName() const
Definition: ga_data.h:1382
const client::JsonCppArray< GaDataDataTableCols > get_cols() const
Definition: ga_data.h:578
int64 get_sample_size() const
Definition: ga_data.h:1857
void set_total_results(int32 value)
Definition: ga_data.h:1981
const StringPiece get_internal_web_property_id() const
Definition: ga_data.h:730
client::JsonCppArray< GaDataDataTableCols > mutable_cols()
Definition: ga_data.h:587
const client::JsonCppAssociativeArray< string > get_totals_for_all_results() const
Definition: ga_data.h:2007
client::JsonCppArray< string > mutable_metrics()
Definition: ga_data.h:1158
void set_column_type(const StringPiece &value)
Definition: ga_data.h:128
bool has_ids() const
Definition: ga_data.h:1056
void set_contains_sampled_data(bool value)
Definition: ga_data.h:1457
void clear_sample_size()
Definition: ga_data.h:1849
Definition: ga_data.h:51
const GaDataProfileInfo get_profile_info() const
Definition: ga_data.h:1742
void set_data_last_refreshed(int64 value)
Definition: ga_data.h:1494
void set_label(const StringPiece &value)
Definition: ga_data.h:324
void set_items_per_page(int32 value)
Definition: ga_data.h:1606
void clear_column_type()
Definition: ga_data.h:107
void clear_filters()
Definition: ga_data.h:1026
void clear_column_headers()
Definition: ga_data.h:1398
const StringPiece get_id() const
Definition: ga_data.h:1554
int32 get_total_results() const
Definition: ga_data.h:1968
void set_sampling_level(const StringPiece &value)
Definition: ga_data.h:1196
void clear_previous_link()
Definition: ga_data.h:1697
const client::JsonCppArray< GaDataDataTableRowsC > get_c() const
Definition: ga_data.h:506
bool has_profile_id() const
Definition: ga_data.h:752
const client::JsonCppArray< client::JsonCppArray< string > > get_rows() const
Definition: ga_data.h:1818
bool has_table_id() const
Definition: ga_data.h:826
const StringPiece get_dimensions() const
Definition: ga_data.h:960
void clear_contains_sampled_data()
Definition: ga_data.h:1437
int32 get_items_per_page() const
Definition: ga_data.h:1591
void set_id(const StringPiece &value)
Definition: ga_data.h:1567
void set_data_type(const StringPiece &value)
Definition: ga_data.h:167