analytics  v3
mcf_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_MCF_DATA_H_
31 #define GOOGLE_ANALYTICS_API_MCF_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 McfData : public client::JsonCppData {
52  public:
58  class McfDataColumnHeaders : public client::JsonCppData {
59  public:
65  static McfDataColumnHeaders* New();
66 
72  explicit McfDataColumnHeaders(const Json::Value& storage);
73 
79  explicit McfDataColumnHeaders(Json::Value* storage);
80 
84  virtual ~McfDataColumnHeaders();
85 
91  const StringPiece GetTypeName() const {
92  return StringPiece("google_analytics_api::McfDataColumnHeaders");
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 
166  void set_data_type(const StringPiece& value) {
167  *MutableStorage("dataType") = value.data();
168  }
169 
175  bool has_name() const {
176  return Storage().isMember("name");
177  }
178 
182  void clear_name() {
183  MutableStorage()->removeMember("name");
184  }
185 
186 
190  const StringPiece get_name() const {
191  const Json::Value& v = Storage("name");
192  if (v == Json::Value::null) return StringPiece("");
193  return StringPiece(v.asCString());
194  }
195 
203  void set_name(const StringPiece& value) {
204  *MutableStorage("name") = value.data();
205  }
206 
207  private:
208  void operator=(const McfDataColumnHeaders&);
209  }; // McfDataColumnHeaders
216  class McfDataProfileInfo : public client::JsonCppData {
217  public:
223  static McfDataProfileInfo* New();
224 
230  explicit McfDataProfileInfo(const Json::Value& storage);
231 
237  explicit McfDataProfileInfo(Json::Value* storage);
238 
242  virtual ~McfDataProfileInfo();
243 
249  const StringPiece GetTypeName() const {
250  return StringPiece("google_analytics_api::McfDataProfileInfo");
251  }
252 
258  bool has_account_id() const {
259  return Storage().isMember("accountId");
260  }
261 
266  MutableStorage()->removeMember("accountId");
267  }
268 
269 
273  const StringPiece get_account_id() const {
274  const Json::Value& v = Storage("accountId");
275  if (v == Json::Value::null) return StringPiece("");
276  return StringPiece(v.asCString());
277  }
278 
286  void set_account_id(const StringPiece& value) {
287  *MutableStorage("accountId") = value.data();
288  }
289 
297  return Storage().isMember("internalWebPropertyId");
298  }
299 
304  MutableStorage()->removeMember("internalWebPropertyId");
305  }
306 
307 
311  const StringPiece get_internal_web_property_id() const {
312  const Json::Value& v = Storage("internalWebPropertyId");
313  if (v == Json::Value::null) return StringPiece("");
314  return StringPiece(v.asCString());
315  }
316 
324  void set_internal_web_property_id(const StringPiece& value) {
325  *MutableStorage("internalWebPropertyId") = value.data();
326  }
327 
333  bool has_profile_id() const {
334  return Storage().isMember("profileId");
335  }
336 
341  MutableStorage()->removeMember("profileId");
342  }
343 
344 
348  const StringPiece get_profile_id() const {
349  const Json::Value& v = Storage("profileId");
350  if (v == Json::Value::null) return StringPiece("");
351  return StringPiece(v.asCString());
352  }
353 
361  void set_profile_id(const StringPiece& value) {
362  *MutableStorage("profileId") = value.data();
363  }
364 
370  bool has_profile_name() const {
371  return Storage().isMember("profileName");
372  }
373 
378  MutableStorage()->removeMember("profileName");
379  }
380 
381 
385  const StringPiece get_profile_name() const {
386  const Json::Value& v = Storage("profileName");
387  if (v == Json::Value::null) return StringPiece("");
388  return StringPiece(v.asCString());
389  }
390 
398  void set_profile_name(const StringPiece& value) {
399  *MutableStorage("profileName") = value.data();
400  }
401 
407  bool has_table_id() const {
408  return Storage().isMember("tableId");
409  }
410 
414  void clear_table_id() {
415  MutableStorage()->removeMember("tableId");
416  }
417 
418 
422  const StringPiece get_table_id() const {
423  const Json::Value& v = Storage("tableId");
424  if (v == Json::Value::null) return StringPiece("");
425  return StringPiece(v.asCString());
426  }
427 
435  void set_table_id(const StringPiece& value) {
436  *MutableStorage("tableId") = value.data();
437  }
438 
444  bool has_web_property_id() const {
445  return Storage().isMember("webPropertyId");
446  }
447 
452  MutableStorage()->removeMember("webPropertyId");
453  }
454 
455 
459  const StringPiece get_web_property_id() const {
460  const Json::Value& v = Storage("webPropertyId");
461  if (v == Json::Value::null) return StringPiece("");
462  return StringPiece(v.asCString());
463  }
464 
472  void set_web_property_id(const StringPiece& value) {
473  *MutableStorage("webPropertyId") = value.data();
474  }
475 
476  private:
477  void operator=(const McfDataProfileInfo&);
478  }; // McfDataProfileInfo
484  class McfDataQuery : public client::JsonCppData {
485  public:
491  static McfDataQuery* New();
492 
498  explicit McfDataQuery(const Json::Value& storage);
499 
505  explicit McfDataQuery(Json::Value* storage);
506 
510  virtual ~McfDataQuery();
511 
517  const StringPiece GetTypeName() const {
518  return StringPiece("google_analytics_api::McfDataQuery");
519  }
520 
526  bool has_dimensions() const {
527  return Storage().isMember("dimensions");
528  }
529 
534  MutableStorage()->removeMember("dimensions");
535  }
536 
537 
541  const StringPiece get_dimensions() const {
542  const Json::Value& v = Storage("dimensions");
543  if (v == Json::Value::null) return StringPiece("");
544  return StringPiece(v.asCString());
545  }
546 
554  void set_dimensions(const StringPiece& value) {
555  *MutableStorage("dimensions") = value.data();
556  }
557 
563  bool has_end_date() const {
564  return Storage().isMember("end-date");
565  }
566 
570  void clear_end_date() {
571  MutableStorage()->removeMember("end-date");
572  }
573 
574 
578  const StringPiece get_end_date() const {
579  const Json::Value& v = Storage("end-date");
580  if (v == Json::Value::null) return StringPiece("");
581  return StringPiece(v.asCString());
582  }
583 
591  void set_end_date(const StringPiece& value) {
592  *MutableStorage("end-date") = value.data();
593  }
594 
600  bool has_filters() const {
601  return Storage().isMember("filters");
602  }
603 
607  void clear_filters() {
608  MutableStorage()->removeMember("filters");
609  }
610 
611 
615  const StringPiece get_filters() const {
616  const Json::Value& v = Storage("filters");
617  if (v == Json::Value::null) return StringPiece("");
618  return StringPiece(v.asCString());
619  }
620 
628  void set_filters(const StringPiece& value) {
629  *MutableStorage("filters") = value.data();
630  }
631 
637  bool has_ids() const {
638  return Storage().isMember("ids");
639  }
640 
644  void clear_ids() {
645  MutableStorage()->removeMember("ids");
646  }
647 
648 
652  const StringPiece get_ids() const {
653  const Json::Value& v = Storage("ids");
654  if (v == Json::Value::null) return StringPiece("");
655  return StringPiece(v.asCString());
656  }
657 
665  void set_ids(const StringPiece& value) {
666  *MutableStorage("ids") = value.data();
667  }
668 
674  bool has_max_results() const {
675  return Storage().isMember("max-results");
676  }
677 
682  MutableStorage()->removeMember("max-results");
683  }
684 
685 
689  int32 get_max_results() const {
690  const Json::Value& storage = Storage("max-results");
691  return client::JsonValueToCppValueHelper<int32 >(storage);
692  }
693 
701  void set_max_results(int32 value) {
702  client::SetJsonValueFromCppValueHelper<int32 >(
703  value, MutableStorage("max-results"));
704  }
705 
711  bool has_metrics() const {
712  return Storage().isMember("metrics");
713  }
714 
718  void clear_metrics() {
719  MutableStorage()->removeMember("metrics");
720  }
721 
722 
726  const client::JsonCppArray<string > get_metrics() const {
727  const Json::Value& storage = Storage("metrics");
728  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
729  }
730 
739  client::JsonCppArray<string > mutable_metrics() {
740  Json::Value* storage = MutableStorage("metrics");
741  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
742  }
743 
749  bool has_sampling_level() const {
750  return Storage().isMember("samplingLevel");
751  }
752 
757  MutableStorage()->removeMember("samplingLevel");
758  }
759 
760 
764  const StringPiece get_sampling_level() const {
765  const Json::Value& v = Storage("samplingLevel");
766  if (v == Json::Value::null) return StringPiece("");
767  return StringPiece(v.asCString());
768  }
769 
777  void set_sampling_level(const StringPiece& value) {
778  *MutableStorage("samplingLevel") = value.data();
779  }
780 
786  bool has_segment() const {
787  return Storage().isMember("segment");
788  }
789 
793  void clear_segment() {
794  MutableStorage()->removeMember("segment");
795  }
796 
797 
801  const StringPiece get_segment() const {
802  const Json::Value& v = Storage("segment");
803  if (v == Json::Value::null) return StringPiece("");
804  return StringPiece(v.asCString());
805  }
806 
814  void set_segment(const StringPiece& value) {
815  *MutableStorage("segment") = value.data();
816  }
817 
823  bool has_sort() const {
824  return Storage().isMember("sort");
825  }
826 
830  void clear_sort() {
831  MutableStorage()->removeMember("sort");
832  }
833 
834 
838  const client::JsonCppArray<string > get_sort() const {
839  const Json::Value& storage = Storage("sort");
840  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
841  }
842 
850  client::JsonCppArray<string > mutable_sort() {
851  Json::Value* storage = MutableStorage("sort");
852  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
853  }
854 
860  bool has_start_date() const {
861  return Storage().isMember("start-date");
862  }
863 
868  MutableStorage()->removeMember("start-date");
869  }
870 
871 
875  const StringPiece get_start_date() const {
876  const Json::Value& v = Storage("start-date");
877  if (v == Json::Value::null) return StringPiece("");
878  return StringPiece(v.asCString());
879  }
880 
888  void set_start_date(const StringPiece& value) {
889  *MutableStorage("start-date") = value.data();
890  }
891 
897  bool has_start_index() const {
898  return Storage().isMember("start-index");
899  }
900 
905  MutableStorage()->removeMember("start-index");
906  }
907 
908 
912  int32 get_start_index() const {
913  const Json::Value& storage = Storage("start-index");
914  return client::JsonValueToCppValueHelper<int32 >(storage);
915  }
916 
924  void set_start_index(int32 value) {
925  client::SetJsonValueFromCppValueHelper<int32 >(
926  value, MutableStorage("start-index"));
927  }
928 
929  private:
930  void operator=(const McfDataQuery&);
931  }; // McfDataQuery
938  class McfDataRows : public client::JsonCppData {
939  public:
945  class McfDataRowsConversionPathValue : public client::JsonCppData {
946  public:
952  static McfDataRowsConversionPathValue* New();
953 
959  explicit McfDataRowsConversionPathValue(const Json::Value& storage);
960 
966  explicit McfDataRowsConversionPathValue(Json::Value* storage);
967 
972 
979  const StringPiece GetTypeName() const {
980  return StringPiece("google_analytics_api::McfDataRowsConversionPathValue");
981  }
982 
988  bool has_interaction_type() const {
989  return Storage().isMember("interactionType");
990  }
991 
996  MutableStorage()->removeMember("interactionType");
997  }
998 
999 
1003  const StringPiece get_interaction_type() const {
1004  const Json::Value& v = Storage("interactionType");
1005  if (v == Json::Value::null) return StringPiece("");
1006  return StringPiece(v.asCString());
1007  }
1008 
1017  void set_interaction_type(const StringPiece& value) {
1018  *MutableStorage("interactionType") = value.data();
1019  }
1020 
1026  bool has_node_value() const {
1027  return Storage().isMember("nodeValue");
1028  }
1029 
1034  MutableStorage()->removeMember("nodeValue");
1035  }
1036 
1037 
1041  const StringPiece get_node_value() const {
1042  const Json::Value& v = Storage("nodeValue");
1043  if (v == Json::Value::null) return StringPiece("");
1044  return StringPiece(v.asCString());
1045  }
1046 
1055  void set_node_value(const StringPiece& value) {
1056  *MutableStorage("nodeValue") = value.data();
1057  }
1058 
1059  private:
1060  void operator=(const McfDataRowsConversionPathValue&);
1061  }; // McfDataRowsConversionPathValue
1067  static McfDataRows* New();
1068 
1074  explicit McfDataRows(const Json::Value& storage);
1075 
1081  explicit McfDataRows(Json::Value* storage);
1082 
1086  virtual ~McfDataRows();
1087 
1093  const StringPiece GetTypeName() const {
1094  return StringPiece("google_analytics_api::McfDataRows");
1095  }
1096 
1103  return Storage().isMember("conversionPathValue");
1104  }
1105 
1110  MutableStorage()->removeMember("conversionPathValue");
1111  }
1112 
1113 
1118  const client::JsonCppArray<McfDataRowsConversionPathValue > get_conversion_path_value() const {
1119  const Json::Value& storage = Storage("conversionPathValue");
1120  return client::JsonValueToCppValueHelper<client::JsonCppArray<McfDataRowsConversionPathValue > >(storage);
1121  }
1122 
1132  client::JsonCppArray<McfDataRowsConversionPathValue > mutable_conversionPathValue() {
1133  Json::Value* storage = MutableStorage("conversionPathValue");
1134  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<McfDataRowsConversionPathValue > >(storage);
1135  }
1136 
1142  bool has_primitive_value() const {
1143  return Storage().isMember("primitiveValue");
1144  }
1145 
1150  MutableStorage()->removeMember("primitiveValue");
1151  }
1152 
1153 
1157  const StringPiece get_primitive_value() const {
1158  const Json::Value& v = Storage("primitiveValue");
1159  if (v == Json::Value::null) return StringPiece("");
1160  return StringPiece(v.asCString());
1161  }
1162 
1170  void set_primitive_value(const StringPiece& value) {
1171  *MutableStorage("primitiveValue") = value.data();
1172  }
1173 
1174  private:
1175  void operator=(const McfDataRows&);
1176  }; // McfDataRows
1182  static McfData* New();
1183 
1189  explicit McfData(const Json::Value& storage);
1190 
1196  explicit McfData(Json::Value* storage);
1197 
1201  virtual ~McfData();
1202 
1208  const StringPiece GetTypeName() const {
1209  return StringPiece("google_analytics_api::McfData");
1210  }
1211 
1217  bool has_column_headers() const {
1218  return Storage().isMember("columnHeaders");
1219  }
1220 
1225  MutableStorage()->removeMember("columnHeaders");
1226  }
1227 
1228 
1232  const client::JsonCppArray<McfDataColumnHeaders > get_column_headers() const {
1233  const Json::Value& storage = Storage("columnHeaders");
1234  return client::JsonValueToCppValueHelper<client::JsonCppArray<McfDataColumnHeaders > >(storage);
1235  }
1236 
1246  client::JsonCppArray<McfDataColumnHeaders > mutable_columnHeaders() {
1247  Json::Value* storage = MutableStorage("columnHeaders");
1248  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<McfDataColumnHeaders > >(storage);
1249  }
1250 
1257  return Storage().isMember("containsSampledData");
1258  }
1259 
1264  MutableStorage()->removeMember("containsSampledData");
1265  }
1266 
1267 
1272  const Json::Value& storage = Storage("containsSampledData");
1273  return client::JsonValueToCppValueHelper<bool >(storage);
1274  }
1275 
1283  void set_contains_sampled_data(bool value) {
1284  client::SetJsonValueFromCppValueHelper<bool >(
1285  value, MutableStorage("containsSampledData"));
1286  }
1287 
1293  bool has_id() const {
1294  return Storage().isMember("id");
1295  }
1296 
1300  void clear_id() {
1301  MutableStorage()->removeMember("id");
1302  }
1303 
1304 
1308  const StringPiece get_id() const {
1309  const Json::Value& v = Storage("id");
1310  if (v == Json::Value::null) return StringPiece("");
1311  return StringPiece(v.asCString());
1312  }
1313 
1321  void set_id(const StringPiece& value) {
1322  *MutableStorage("id") = value.data();
1323  }
1324 
1330  bool has_items_per_page() const {
1331  return Storage().isMember("itemsPerPage");
1332  }
1333 
1338  MutableStorage()->removeMember("itemsPerPage");
1339  }
1340 
1341 
1345  int32 get_items_per_page() const {
1346  const Json::Value& storage = Storage("itemsPerPage");
1347  return client::JsonValueToCppValueHelper<int32 >(storage);
1348  }
1349 
1360  void set_items_per_page(int32 value) {
1361  client::SetJsonValueFromCppValueHelper<int32 >(
1362  value, MutableStorage("itemsPerPage"));
1363  }
1364 
1370  bool has_kind() const {
1371  return Storage().isMember("kind");
1372  }
1373 
1377  void clear_kind() {
1378  MutableStorage()->removeMember("kind");
1379  }
1380 
1381 
1385  const StringPiece get_kind() const {
1386  const Json::Value& v = Storage("kind");
1387  if (v == Json::Value::null) return StringPiece("");
1388  return StringPiece(v.asCString());
1389  }
1390 
1398  void set_kind(const StringPiece& value) {
1399  *MutableStorage("kind") = value.data();
1400  }
1401 
1407  bool has_next_link() const {
1408  return Storage().isMember("nextLink");
1409  }
1410 
1415  MutableStorage()->removeMember("nextLink");
1416  }
1417 
1418 
1422  const StringPiece get_next_link() const {
1423  const Json::Value& v = Storage("nextLink");
1424  if (v == Json::Value::null) return StringPiece("");
1425  return StringPiece(v.asCString());
1426  }
1427 
1435  void set_next_link(const StringPiece& value) {
1436  *MutableStorage("nextLink") = value.data();
1437  }
1438 
1444  bool has_previous_link() const {
1445  return Storage().isMember("previousLink");
1446  }
1447 
1452  MutableStorage()->removeMember("previousLink");
1453  }
1454 
1455 
1459  const StringPiece get_previous_link() const {
1460  const Json::Value& v = Storage("previousLink");
1461  if (v == Json::Value::null) return StringPiece("");
1462  return StringPiece(v.asCString());
1463  }
1464 
1472  void set_previous_link(const StringPiece& value) {
1473  *MutableStorage("previousLink") = value.data();
1474  }
1475 
1481  bool has_profile_info() const {
1482  return Storage().isMember("profileInfo");
1483  }
1484 
1489  MutableStorage()->removeMember("profileInfo");
1490  }
1491 
1492 
1497  const Json::Value& storage = Storage("profileInfo");
1498  return client::JsonValueToCppValueHelper<McfDataProfileInfo >(storage);
1499  }
1500 
1511  Json::Value* storage = MutableStorage("profileInfo");
1512  return client::JsonValueToMutableCppValueHelper<McfDataProfileInfo >(storage);
1513  }
1514 
1520  bool has_query() const {
1521  return Storage().isMember("query");
1522  }
1523 
1527  void clear_query() {
1528  MutableStorage()->removeMember("query");
1529  }
1530 
1531 
1535  const McfDataQuery get_query() const {
1536  const Json::Value& storage = Storage("query");
1537  return client::JsonValueToCppValueHelper<McfDataQuery >(storage);
1538  }
1539 
1548  Json::Value* storage = MutableStorage("query");
1549  return client::JsonValueToMutableCppValueHelper<McfDataQuery >(storage);
1550  }
1551 
1557  bool has_rows() const {
1558  return Storage().isMember("rows");
1559  }
1560 
1564  void clear_rows() {
1565  MutableStorage()->removeMember("rows");
1566  }
1567 
1568 
1572  const client::JsonCppArray<client::JsonCppArray<McfDataRows > > get_rows() const {
1573  const Json::Value& storage = Storage("rows");
1574  return client::JsonValueToCppValueHelper<client::JsonCppArray<client::JsonCppArray<McfDataRows > > >(storage);
1575  }
1576 
1586  client::JsonCppArray<client::JsonCppArray<McfDataRows > > mutable_rows() {
1587  Json::Value* storage = MutableStorage("rows");
1588  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<client::JsonCppArray<McfDataRows > > >(storage);
1589  }
1590 
1596  bool has_sample_size() const {
1597  return Storage().isMember("sampleSize");
1598  }
1599 
1604  MutableStorage()->removeMember("sampleSize");
1605  }
1606 
1607 
1611  int64 get_sample_size() const {
1612  const Json::Value& storage = Storage("sampleSize");
1613  return client::JsonValueToCppValueHelper<int64 >(storage);
1614  }
1615 
1623  void set_sample_size(int64 value) {
1624  client::SetJsonValueFromCppValueHelper<int64 >(
1625  value, MutableStorage("sampleSize"));
1626  }
1627 
1633  bool has_sample_space() const {
1634  return Storage().isMember("sampleSpace");
1635  }
1636 
1641  MutableStorage()->removeMember("sampleSpace");
1642  }
1643 
1644 
1648  int64 get_sample_space() const {
1649  const Json::Value& storage = Storage("sampleSpace");
1650  return client::JsonValueToCppValueHelper<int64 >(storage);
1651  }
1652 
1660  void set_sample_space(int64 value) {
1661  client::SetJsonValueFromCppValueHelper<int64 >(
1662  value, MutableStorage("sampleSpace"));
1663  }
1664 
1670  bool has_self_link() const {
1671  return Storage().isMember("selfLink");
1672  }
1673 
1678  MutableStorage()->removeMember("selfLink");
1679  }
1680 
1681 
1685  const StringPiece get_self_link() const {
1686  const Json::Value& v = Storage("selfLink");
1687  if (v == Json::Value::null) return StringPiece("");
1688  return StringPiece(v.asCString());
1689  }
1690 
1698  void set_self_link(const StringPiece& value) {
1699  *MutableStorage("selfLink") = value.data();
1700  }
1701 
1707  bool has_total_results() const {
1708  return Storage().isMember("totalResults");
1709  }
1710 
1715  MutableStorage()->removeMember("totalResults");
1716  }
1717 
1718 
1722  int32 get_total_results() const {
1723  const Json::Value& storage = Storage("totalResults");
1724  return client::JsonValueToCppValueHelper<int32 >(storage);
1725  }
1726 
1735  void set_total_results(int32 value) {
1736  client::SetJsonValueFromCppValueHelper<int32 >(
1737  value, MutableStorage("totalResults"));
1738  }
1739 
1746  return Storage().isMember("totalsForAllResults");
1747  }
1748 
1753  MutableStorage()->removeMember("totalsForAllResults");
1754  }
1755 
1756 
1761  const client::JsonCppAssociativeArray<string > get_totals_for_all_results() const {
1762  const Json::Value& storage = Storage("totalsForAllResults");
1763  return client::JsonValueToCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
1764  }
1765 
1776  client::JsonCppAssociativeArray<string > mutable_totalsForAllResults() {
1777  Json::Value* storage = MutableStorage("totalsForAllResults");
1778  return client::JsonValueToMutableCppValueHelper<client::JsonCppAssociativeArray<string > >(storage);
1779  }
1780 
1781  private:
1782  void operator=(const McfData&);
1783 }; // McfData
1784 } // namespace google_analytics_api
1785 #endif // GOOGLE_ANALYTICS_API_MCF_DATA_H_
const StringPiece get_web_property_id() const
Definition: mcf_data.h:459
const client::JsonCppArray< string > get_sort() const
Definition: mcf_data.h:838
const StringPiece get_profile_name() const
Definition: mcf_data.h:385
void set_filters(const StringPiece &value)
Definition: mcf_data.h:628
void set_id(const StringPiece &value)
Definition: mcf_data.h:1321
bool has_self_link() const
Definition: mcf_data.h:1670
void set_max_results(int32 value)
Definition: mcf_data.h:701
int32 get_items_per_page() const
Definition: mcf_data.h:1345
void clear_conversion_path_value()
Definition: mcf_data.h:1109
void set_previous_link(const StringPiece &value)
Definition: mcf_data.h:1472
const StringPiece get_table_id() const
Definition: mcf_data.h:422
void clear_metrics()
Definition: mcf_data.h:718
void clear_web_property_id()
Definition: mcf_data.h:451
void set_internal_web_property_id(const StringPiece &value)
Definition: mcf_data.h:324
bool has_sample_size() const
Definition: mcf_data.h:1596
bool has_items_per_page() const
Definition: mcf_data.h:1330
void clear_total_results()
Definition: mcf_data.h:1714
const StringPiece get_self_link() const
Definition: mcf_data.h:1685
const StringPiece get_end_date() const
Definition: mcf_data.h:578
bool has_sampling_level() const
Definition: mcf_data.h:749
void clear_id()
Definition: mcf_data.h:1300
void clear_column_type()
Definition: mcf_data.h:107
void clear_sample_size()
Definition: mcf_data.h:1603
void clear_profile_info()
Definition: mcf_data.h:1488
void clear_account_id()
Definition: mcf_data.h:265
void clear_internal_web_property_id()
Definition: mcf_data.h:303
bool has_start_index() const
Definition: mcf_data.h:897
const StringPiece get_node_value() const
Definition: mcf_data.h:1041
void clear_end_date()
Definition: mcf_data.h:570
bool has_web_property_id() const
Definition: mcf_data.h:444
const StringPiece get_next_link() const
Definition: mcf_data.h:1422
void clear_data_type()
Definition: mcf_data.h:144
const StringPiece get_kind() const
Definition: mcf_data.h:1385
bool has_column_headers() const
Definition: mcf_data.h:1217
bool has_end_date() const
Definition: mcf_data.h:563
bool has_previous_link() const
Definition: mcf_data.h:1444
bool has_total_results() const
Definition: mcf_data.h:1707
bool has_next_link() const
Definition: mcf_data.h:1407
bool has_profile_name() const
Definition: mcf_data.h:370
Definition: mcf_data.h:51
void clear_profile_id()
Definition: mcf_data.h:340
void set_start_index(int32 value)
Definition: mcf_data.h:924
const StringPiece get_column_type() const
Definition: mcf_data.h:115
bool has_segment() const
Definition: mcf_data.h:786
bool has_profile_info() const
Definition: mcf_data.h:1481
void set_data_type(const StringPiece &value)
Definition: mcf_data.h:166
const StringPiece get_start_date() const
Definition: mcf_data.h:875
client::JsonCppArray< McfDataRowsConversionPathValue > mutable_conversionPathValue()
Definition: mcf_data.h:1132
bool has_internal_web_property_id() const
Definition: mcf_data.h:296
void set_contains_sampled_data(bool value)
Definition: mcf_data.h:1283
const McfDataProfileInfo get_profile_info() const
Definition: mcf_data.h:1496
McfDataQuery mutable_query()
Definition: mcf_data.h:1547
const StringPiece GetTypeName() const
Definition: mcf_data.h:1208
void clear_kind()
Definition: mcf_data.h:1377
bool has_id() const
Definition: mcf_data.h:1293
void set_segment(const StringPiece &value)
Definition: mcf_data.h:814
void set_next_link(const StringPiece &value)
Definition: mcf_data.h:1435
const StringPiece get_segment() const
Definition: mcf_data.h:801
void clear_sort()
Definition: mcf_data.h:830
bool has_profile_id() const
Definition: mcf_data.h:333
client::JsonCppArray< string > mutable_metrics()
Definition: mcf_data.h:739
void clear_start_index()
Definition: mcf_data.h:904
const StringPiece get_id() const
Definition: mcf_data.h:1308
int64 get_sample_space() const
Definition: mcf_data.h:1648
const StringPiece get_dimensions() const
Definition: mcf_data.h:541
void set_name(const StringPiece &value)
Definition: mcf_data.h:203
int64 get_sample_size() const
Definition: mcf_data.h:1611
const StringPiece get_sampling_level() const
Definition: mcf_data.h:764
void clear_filters()
Definition: mcf_data.h:607
void set_ids(const StringPiece &value)
Definition: mcf_data.h:665
void clear_previous_link()
Definition: mcf_data.h:1451
void clear_self_link()
Definition: mcf_data.h:1677
const StringPiece get_profile_id() const
Definition: mcf_data.h:348
const client::JsonCppAssociativeArray< string > get_totals_for_all_results() const
Definition: mcf_data.h:1761
const StringPiece get_ids() const
Definition: mcf_data.h:652
void set_column_type(const StringPiece &value)
Definition: mcf_data.h:128
const StringPiece get_interaction_type() const
Definition: mcf_data.h:1003
bool has_query() const
Definition: mcf_data.h:1520
void set_account_id(const StringPiece &value)
Definition: mcf_data.h:286
bool has_account_id() const
Definition: mcf_data.h:258
const StringPiece get_internal_web_property_id() const
Definition: mcf_data.h:311
bool has_kind() const
Definition: mcf_data.h:1370
void set_items_per_page(int32 value)
Definition: mcf_data.h:1360
client::JsonCppArray< McfDataColumnHeaders > mutable_columnHeaders()
Definition: mcf_data.h:1246
bool has_table_id() const
Definition: mcf_data.h:407
void clear_query()
Definition: mcf_data.h:1527
const StringPiece GetTypeName() const
Definition: mcf_data.h:517
int32 get_total_results() const
Definition: mcf_data.h:1722
int32 get_max_results() const
Definition: mcf_data.h:689
bool has_contains_sampled_data() const
Definition: mcf_data.h:1256
void clear_items_per_page()
Definition: mcf_data.h:1337
void clear_primitive_value()
Definition: mcf_data.h:1149
void clear_segment()
Definition: mcf_data.h:793
bool has_max_results() const
Definition: mcf_data.h:674
bool has_sort() const
Definition: mcf_data.h:823
bool get_contains_sampled_data() const
Definition: mcf_data.h:1271
client::JsonCppArray< string > mutable_sort()
Definition: mcf_data.h:850
void clear_max_results()
Definition: mcf_data.h:681
bool has_sample_space() const
Definition: mcf_data.h:1633
const StringPiece get_previous_link() const
Definition: mcf_data.h:1459
void clear_column_headers()
Definition: mcf_data.h:1224
const StringPiece GetTypeName() const
Definition: mcf_data.h:91
const StringPiece get_name() const
Definition: mcf_data.h:190
void set_profile_id(const StringPiece &value)
Definition: mcf_data.h:361
bool has_ids() const
Definition: mcf_data.h:637
Definition: account.h:39
bool has_column_type() const
Definition: mcf_data.h:100
void clear_table_id()
Definition: mcf_data.h:414
Definition: account.cc:41
bool has_metrics() const
Definition: mcf_data.h:711
const StringPiece GetTypeName() const
Definition: mcf_data.h:249
void set_total_results(int32 value)
Definition: mcf_data.h:1735
void clear_ids()
Definition: mcf_data.h:644
void set_dimensions(const StringPiece &value)
Definition: mcf_data.h:554
void set_end_date(const StringPiece &value)
Definition: mcf_data.h:591
void set_node_value(const StringPiece &value)
Definition: mcf_data.h:1055
const StringPiece get_data_type() const
Definition: mcf_data.h:152
void set_sampling_level(const StringPiece &value)
Definition: mcf_data.h:777
const McfDataQuery get_query() const
Definition: mcf_data.h:1535
bool has_totals_for_all_results() const
Definition: mcf_data.h:1745
void clear_dimensions()
Definition: mcf_data.h:533
bool has_dimensions() const
Definition: mcf_data.h:526
const StringPiece get_filters() const
Definition: mcf_data.h:615
bool has_data_type() const
Definition: mcf_data.h:137
void clear_sampling_level()
Definition: mcf_data.h:756
void set_interaction_type(const StringPiece &value)
Definition: mcf_data.h:1017
void set_kind(const StringPiece &value)
Definition: mcf_data.h:1398
bool has_filters() const
Definition: mcf_data.h:600
const StringPiece get_primitive_value() const
Definition: mcf_data.h:1157
void set_profile_name(const StringPiece &value)
Definition: mcf_data.h:398
void clear_contains_sampled_data()
Definition: mcf_data.h:1263
void set_web_property_id(const StringPiece &value)
Definition: mcf_data.h:472
void clear_totals_for_all_results()
Definition: mcf_data.h:1752
const StringPiece GetTypeName() const
Definition: mcf_data.h:979
void clear_rows()
Definition: mcf_data.h:1564
void set_self_link(const StringPiece &value)
Definition: mcf_data.h:1698
void clear_profile_name()
Definition: mcf_data.h:377
void set_table_id(const StringPiece &value)
Definition: mcf_data.h:435
const StringPiece get_account_id() const
Definition: mcf_data.h:273
bool has_conversion_path_value() const
Definition: mcf_data.h:1102
bool has_rows() const
Definition: mcf_data.h:1557
void clear_sample_space()
Definition: mcf_data.h:1640
client::JsonCppAssociativeArray< string > mutable_totalsForAllResults()
Definition: mcf_data.h:1776
const client::JsonCppArray< string > get_metrics() const
Definition: mcf_data.h:726
void set_sample_space(int64 value)
Definition: mcf_data.h:1660
client::JsonCppArray< client::JsonCppArray< McfDataRows > > mutable_rows()
Definition: mcf_data.h:1586
void set_primitive_value(const StringPiece &value)
Definition: mcf_data.h:1170
bool has_primitive_value() const
Definition: mcf_data.h:1142
bool has_name() const
Definition: mcf_data.h:175
bool has_start_date() const
Definition: mcf_data.h:860
void set_start_date(const StringPiece &value)
Definition: mcf_data.h:888
void clear_start_date()
Definition: mcf_data.h:867
void set_sample_size(int64 value)
Definition: mcf_data.h:1623
int32 get_start_index() const
Definition: mcf_data.h:912
McfDataProfileInfo mutable_profileInfo()
Definition: mcf_data.h:1510
void clear_next_link()
Definition: mcf_data.h:1414
const StringPiece GetTypeName() const
Definition: mcf_data.h:1093
const client::JsonCppArray< McfDataRowsConversionPathValue > get_conversion_path_value() const
Definition: mcf_data.h:1118
const client::JsonCppArray< client::JsonCppArray< McfDataRows > > get_rows() const
Definition: mcf_data.h:1572
void clear_name()
Definition: mcf_data.h:182
const client::JsonCppArray< McfDataColumnHeaders > get_column_headers() const
Definition: mcf_data.h:1232