analytics  v3
unsampled_report.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_UNSAMPLED_REPORT_H_
31 #define GOOGLE_ANALYTICS_API_UNSAMPLED_REPORT_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/client/util/date_time.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_analytics_api {
44 using namespace googleapis;
45 
51 class UnsampledReport : public client::JsonCppData {
52  public:
58  class UnsampledReportCloudStorageDownloadDetails : public client::JsonCppData {
59  public:
66 
72  explicit UnsampledReportCloudStorageDownloadDetails(const Json::Value& storage);
73 
79  explicit UnsampledReportCloudStorageDownloadDetails(Json::Value* storage);
80 
85 
92  const StringPiece GetTypeName() const {
93  return StringPiece("google_analytics_api::UnsampledReportCloudStorageDownloadDetails");
94  }
95 
101  bool has_bucket_id() const {
102  return Storage().isMember("bucketId");
103  }
104 
109  MutableStorage()->removeMember("bucketId");
110  }
111 
112 
116  const StringPiece get_bucket_id() const {
117  const Json::Value& v = Storage("bucketId");
118  if (v == Json::Value::null) return StringPiece("");
119  return StringPiece(v.asCString());
120  }
121 
129  void set_bucket_id(const StringPiece& value) {
130  *MutableStorage("bucketId") = value.data();
131  }
132 
138  bool has_object_id() const {
139  return Storage().isMember("objectId");
140  }
141 
146  MutableStorage()->removeMember("objectId");
147  }
148 
149 
153  const StringPiece get_object_id() const {
154  const Json::Value& v = Storage("objectId");
155  if (v == Json::Value::null) return StringPiece("");
156  return StringPiece(v.asCString());
157  }
158 
166  void set_object_id(const StringPiece& value) {
167  *MutableStorage("objectId") = value.data();
168  }
169 
170  private:
171  void operator=(const UnsampledReportCloudStorageDownloadDetails&);
172  }; // UnsampledReportCloudStorageDownloadDetails
178  class UnsampledReportDriveDownloadDetails : public client::JsonCppData {
179  public:
186 
192  explicit UnsampledReportDriveDownloadDetails(const Json::Value& storage);
193 
199  explicit UnsampledReportDriveDownloadDetails(Json::Value* storage);
200 
205 
212  const StringPiece GetTypeName() const {
213  return StringPiece("google_analytics_api::UnsampledReportDriveDownloadDetails");
214  }
215 
221  bool has_document_id() const {
222  return Storage().isMember("documentId");
223  }
224 
229  MutableStorage()->removeMember("documentId");
230  }
231 
232 
236  const StringPiece get_document_id() const {
237  const Json::Value& v = Storage("documentId");
238  if (v == Json::Value::null) return StringPiece("");
239  return StringPiece(v.asCString());
240  }
241 
249  void set_document_id(const StringPiece& value) {
250  *MutableStorage("documentId") = value.data();
251  }
252 
253  private:
254  void operator=(const UnsampledReportDriveDownloadDetails&);
255  }; // UnsampledReportDriveDownloadDetails
261  static UnsampledReport* New();
262 
268  explicit UnsampledReport(const Json::Value& storage);
269 
275  explicit UnsampledReport(Json::Value* storage);
276 
280  virtual ~UnsampledReport();
281 
287  const StringPiece GetTypeName() const {
288  return StringPiece("google_analytics_api::UnsampledReport");
289  }
290 
296  bool has_account_id() const {
297  return Storage().isMember("accountId");
298  }
299 
304  MutableStorage()->removeMember("accountId");
305  }
306 
307 
311  const StringPiece get_account_id() const {
312  const Json::Value& v = Storage("accountId");
313  if (v == Json::Value::null) return StringPiece("");
314  return StringPiece(v.asCString());
315  }
316 
324  void set_account_id(const StringPiece& value) {
325  *MutableStorage("accountId") = value.data();
326  }
327 
336  return Storage().isMember("cloudStorageDownloadDetails");
337  }
338 
343  MutableStorage()->removeMember("cloudStorageDownloadDetails");
344  }
345 
346 
352  const Json::Value& storage = Storage("cloudStorageDownloadDetails");
353  return client::JsonValueToCppValueHelper<UnsampledReportCloudStorageDownloadDetails >(storage);
354  }
355 
365  Json::Value* storage = MutableStorage("cloudStorageDownloadDetails");
366  return client::JsonValueToMutableCppValueHelper<UnsampledReportCloudStorageDownloadDetails >(storage);
367  }
368 
374  bool has_created() const {
375  return Storage().isMember("created");
376  }
377 
381  void clear_created() {
382  MutableStorage()->removeMember("created");
383  }
384 
385 
389  client::DateTime get_created() const {
390  const Json::Value& storage = Storage("created");
391  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
392  }
393 
401  void set_created(client::DateTime value) {
402  client::SetJsonValueFromCppValueHelper<client::DateTime >(
403  value, MutableStorage("created"));
404  }
405 
411  bool has_dimensions() const {
412  return Storage().isMember("dimensions");
413  }
414 
419  MutableStorage()->removeMember("dimensions");
420  }
421 
422 
426  const StringPiece get_dimensions() const {
427  const Json::Value& v = Storage("dimensions");
428  if (v == Json::Value::null) return StringPiece("");
429  return StringPiece(v.asCString());
430  }
431 
439  void set_dimensions(const StringPiece& value) {
440  *MutableStorage("dimensions") = value.data();
441  }
442 
448  bool has_download_type() const {
449  return Storage().isMember("downloadType");
450  }
451 
456  MutableStorage()->removeMember("downloadType");
457  }
458 
459 
463  const StringPiece get_download_type() const {
464  const Json::Value& v = Storage("downloadType");
465  if (v == Json::Value::null) return StringPiece("");
466  return StringPiece(v.asCString());
467  }
468 
479  void set_download_type(const StringPiece& value) {
480  *MutableStorage("downloadType") = value.data();
481  }
482 
489  return Storage().isMember("driveDownloadDetails");
490  }
491 
496  MutableStorage()->removeMember("driveDownloadDetails");
497  }
498 
499 
505  const Json::Value& storage = Storage("driveDownloadDetails");
506  return client::JsonValueToCppValueHelper<UnsampledReportDriveDownloadDetails >(storage);
507  }
508 
518  Json::Value* storage = MutableStorage("driveDownloadDetails");
519  return client::JsonValueToMutableCppValueHelper<UnsampledReportDriveDownloadDetails >(storage);
520  }
521 
527  bool has_end_date() const {
528  return Storage().isMember("end-date");
529  }
530 
534  void clear_end_date() {
535  MutableStorage()->removeMember("end-date");
536  }
537 
538 
542  const StringPiece get_end_date() const {
543  const Json::Value& v = Storage("end-date");
544  if (v == Json::Value::null) return StringPiece("");
545  return StringPiece(v.asCString());
546  }
547 
555  void set_end_date(const StringPiece& value) {
556  *MutableStorage("end-date") = value.data();
557  }
558 
564  bool has_filters() const {
565  return Storage().isMember("filters");
566  }
567 
571  void clear_filters() {
572  MutableStorage()->removeMember("filters");
573  }
574 
575 
579  const StringPiece get_filters() const {
580  const Json::Value& v = Storage("filters");
581  if (v == Json::Value::null) return StringPiece("");
582  return StringPiece(v.asCString());
583  }
584 
592  void set_filters(const StringPiece& value) {
593  *MutableStorage("filters") = value.data();
594  }
595 
601  bool has_id() const {
602  return Storage().isMember("id");
603  }
604 
608  void clear_id() {
609  MutableStorage()->removeMember("id");
610  }
611 
612 
616  const StringPiece get_id() const {
617  const Json::Value& v = Storage("id");
618  if (v == Json::Value::null) return StringPiece("");
619  return StringPiece(v.asCString());
620  }
621 
629  void set_id(const StringPiece& value) {
630  *MutableStorage("id") = value.data();
631  }
632 
638  bool has_kind() const {
639  return Storage().isMember("kind");
640  }
641 
645  void clear_kind() {
646  MutableStorage()->removeMember("kind");
647  }
648 
649 
653  const StringPiece get_kind() const {
654  const Json::Value& v = Storage("kind");
655  if (v == Json::Value::null) return StringPiece("");
656  return StringPiece(v.asCString());
657  }
658 
666  void set_kind(const StringPiece& value) {
667  *MutableStorage("kind") = value.data();
668  }
669 
675  bool has_metrics() const {
676  return Storage().isMember("metrics");
677  }
678 
682  void clear_metrics() {
683  MutableStorage()->removeMember("metrics");
684  }
685 
686 
690  const StringPiece get_metrics() const {
691  const Json::Value& v = Storage("metrics");
692  if (v == Json::Value::null) return StringPiece("");
693  return StringPiece(v.asCString());
694  }
695 
703  void set_metrics(const StringPiece& value) {
704  *MutableStorage("metrics") = value.data();
705  }
706 
712  bool has_profile_id() const {
713  return Storage().isMember("profileId");
714  }
715 
720  MutableStorage()->removeMember("profileId");
721  }
722 
723 
727  const StringPiece get_profile_id() const {
728  const Json::Value& v = Storage("profileId");
729  if (v == Json::Value::null) return StringPiece("");
730  return StringPiece(v.asCString());
731  }
732 
740  void set_profile_id(const StringPiece& value) {
741  *MutableStorage("profileId") = value.data();
742  }
743 
749  bool has_segment() const {
750  return Storage().isMember("segment");
751  }
752 
756  void clear_segment() {
757  MutableStorage()->removeMember("segment");
758  }
759 
760 
764  const StringPiece get_segment() const {
765  const Json::Value& v = Storage("segment");
766  if (v == Json::Value::null) return StringPiece("");
767  return StringPiece(v.asCString());
768  }
769 
777  void set_segment(const StringPiece& value) {
778  *MutableStorage("segment") = value.data();
779  }
780 
786  bool has_self_link() const {
787  return Storage().isMember("selfLink");
788  }
789 
794  MutableStorage()->removeMember("selfLink");
795  }
796 
797 
801  const StringPiece get_self_link() const {
802  const Json::Value& v = Storage("selfLink");
803  if (v == Json::Value::null) return StringPiece("");
804  return StringPiece(v.asCString());
805  }
806 
814  void set_self_link(const StringPiece& value) {
815  *MutableStorage("selfLink") = value.data();
816  }
817 
823  bool has_start_date() const {
824  return Storage().isMember("start-date");
825  }
826 
831  MutableStorage()->removeMember("start-date");
832  }
833 
834 
838  const StringPiece get_start_date() const {
839  const Json::Value& v = Storage("start-date");
840  if (v == Json::Value::null) return StringPiece("");
841  return StringPiece(v.asCString());
842  }
843 
851  void set_start_date(const StringPiece& value) {
852  *MutableStorage("start-date") = value.data();
853  }
854 
860  bool has_status() const {
861  return Storage().isMember("status");
862  }
863 
867  void clear_status() {
868  MutableStorage()->removeMember("status");
869  }
870 
871 
875  const StringPiece get_status() const {
876  const Json::Value& v = Storage("status");
877  if (v == Json::Value::null) return StringPiece("");
878  return StringPiece(v.asCString());
879  }
880 
889  void set_status(const StringPiece& value) {
890  *MutableStorage("status") = value.data();
891  }
892 
898  bool has_title() const {
899  return Storage().isMember("title");
900  }
901 
905  void clear_title() {
906  MutableStorage()->removeMember("title");
907  }
908 
909 
913  const StringPiece get_title() const {
914  const Json::Value& v = Storage("title");
915  if (v == Json::Value::null) return StringPiece("");
916  return StringPiece(v.asCString());
917  }
918 
926  void set_title(const StringPiece& value) {
927  *MutableStorage("title") = value.data();
928  }
929 
935  bool has_updated() const {
936  return Storage().isMember("updated");
937  }
938 
942  void clear_updated() {
943  MutableStorage()->removeMember("updated");
944  }
945 
946 
950  client::DateTime get_updated() const {
951  const Json::Value& storage = Storage("updated");
952  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
953  }
954 
962  void set_updated(client::DateTime value) {
963  client::SetJsonValueFromCppValueHelper<client::DateTime >(
964  value, MutableStorage("updated"));
965  }
966 
972  bool has_web_property_id() const {
973  return Storage().isMember("webPropertyId");
974  }
975 
980  MutableStorage()->removeMember("webPropertyId");
981  }
982 
983 
987  const StringPiece get_web_property_id() const {
988  const Json::Value& v = Storage("webPropertyId");
989  if (v == Json::Value::null) return StringPiece("");
990  return StringPiece(v.asCString());
991  }
992 
1001  void set_web_property_id(const StringPiece& value) {
1002  *MutableStorage("webPropertyId") = value.data();
1003  }
1004 
1005  private:
1006  void operator=(const UnsampledReport&);
1007 }; // UnsampledReport
1008 } // namespace google_analytics_api
1009 #endif // GOOGLE_ANALYTICS_API_UNSAMPLED_REPORT_H_
client::DateTime get_created() const
Definition: unsampled_report.h:389
bool has_download_type() const
Definition: unsampled_report.h:448
const StringPiece get_object_id() const
Definition: unsampled_report.h:153
void set_bucket_id(const StringPiece &value)
Definition: unsampled_report.h:129
void set_object_id(const StringPiece &value)
Definition: unsampled_report.h:166
bool has_title() const
Definition: unsampled_report.h:898
void set_kind(const StringPiece &value)
Definition: unsampled_report.h:666
UnsampledReportDriveDownloadDetails mutable_driveDownloadDetails()
Definition: unsampled_report.h:517
bool has_segment() const
Definition: unsampled_report.h:749
const UnsampledReportCloudStorageDownloadDetails get_cloud_storage_download_details() const
Definition: unsampled_report.h:351
const StringPiece get_end_date() const
Definition: unsampled_report.h:542
const StringPiece get_download_type() const
Definition: unsampled_report.h:463
const StringPiece get_title() const
Definition: unsampled_report.h:913
void clear_drive_download_details()
Definition: unsampled_report.h:495
void clear_end_date()
Definition: unsampled_report.h:534
bool has_start_date() const
Definition: unsampled_report.h:823
void clear_cloud_storage_download_details()
Definition: unsampled_report.h:342
void clear_updated()
Definition: unsampled_report.h:942
bool has_created() const
Definition: unsampled_report.h:374
bool has_profile_id() const
Definition: unsampled_report.h:712
void clear_created()
Definition: unsampled_report.h:381
const StringPiece get_status() const
Definition: unsampled_report.h:875
bool has_drive_download_details() const
Definition: unsampled_report.h:488
void set_dimensions(const StringPiece &value)
Definition: unsampled_report.h:439
const StringPiece get_document_id() const
Definition: unsampled_report.h:236
void set_metrics(const StringPiece &value)
Definition: unsampled_report.h:703
bool has_account_id() const
Definition: unsampled_report.h:296
Definition: unsampled_report.h:51
const StringPiece get_profile_id() const
Definition: unsampled_report.h:727
bool has_cloud_storage_download_details() const
Definition: unsampled_report.h:335
const StringPiece GetTypeName() const
Definition: unsampled_report.h:212
bool has_id() const
Definition: unsampled_report.h:601
bool has_status() const
Definition: unsampled_report.h:860
const StringPiece get_web_property_id() const
Definition: unsampled_report.h:987
bool has_metrics() const
Definition: unsampled_report.h:675
bool has_document_id() const
Definition: unsampled_report.h:221
UnsampledReportCloudStorageDownloadDetails mutable_cloudStorageDownloadDetails()
Definition: unsampled_report.h:364
void set_profile_id(const StringPiece &value)
Definition: unsampled_report.h:740
void clear_web_property_id()
Definition: unsampled_report.h:979
const StringPiece GetTypeName() const
Definition: unsampled_report.h:92
void set_updated(client::DateTime value)
Definition: unsampled_report.h:962
void clear_account_id()
Definition: unsampled_report.h:303
bool has_end_date() const
Definition: unsampled_report.h:527
void set_filters(const StringPiece &value)
Definition: unsampled_report.h:592
void set_self_link(const StringPiece &value)
Definition: unsampled_report.h:814
void clear_dimensions()
Definition: unsampled_report.h:418
client::DateTime get_updated() const
Definition: unsampled_report.h:950
void set_web_property_id(const StringPiece &value)
Definition: unsampled_report.h:1001
Definition: account.h:39
void set_end_date(const StringPiece &value)
Definition: unsampled_report.h:555
bool has_updated() const
Definition: unsampled_report.h:935
Definition: account.cc:41
void clear_start_date()
Definition: unsampled_report.h:830
void set_created(client::DateTime value)
Definition: unsampled_report.h:401
const UnsampledReportDriveDownloadDetails get_drive_download_details() const
Definition: unsampled_report.h:504
const StringPiece get_bucket_id() const
Definition: unsampled_report.h:116
const StringPiece get_dimensions() const
Definition: unsampled_report.h:426
void set_title(const StringPiece &value)
Definition: unsampled_report.h:926
const StringPiece get_segment() const
Definition: unsampled_report.h:764
bool has_self_link() const
Definition: unsampled_report.h:786
void set_id(const StringPiece &value)
Definition: unsampled_report.h:629
void set_start_date(const StringPiece &value)
Definition: unsampled_report.h:851
void set_segment(const StringPiece &value)
Definition: unsampled_report.h:777
void clear_id()
Definition: unsampled_report.h:608
bool has_filters() const
Definition: unsampled_report.h:564
const StringPiece get_kind() const
Definition: unsampled_report.h:653
bool has_dimensions() const
Definition: unsampled_report.h:411
const StringPiece get_self_link() const
Definition: unsampled_report.h:801
const StringPiece get_metrics() const
Definition: unsampled_report.h:690
const StringPiece get_filters() const
Definition: unsampled_report.h:579
void set_download_type(const StringPiece &value)
Definition: unsampled_report.h:479
const StringPiece get_id() const
Definition: unsampled_report.h:616
void clear_filters()
Definition: unsampled_report.h:571
void clear_metrics()
Definition: unsampled_report.h:682
void clear_kind()
Definition: unsampled_report.h:645
void clear_profile_id()
Definition: unsampled_report.h:719
void set_account_id(const StringPiece &value)
Definition: unsampled_report.h:324
bool has_web_property_id() const
Definition: unsampled_report.h:972
void clear_status()
Definition: unsampled_report.h:867
bool has_kind() const
Definition: unsampled_report.h:638
void set_status(const StringPiece &value)
Definition: unsampled_report.h:889
void set_document_id(const StringPiece &value)
Definition: unsampled_report.h:249
const StringPiece GetTypeName() const
Definition: unsampled_report.h:287
const StringPiece get_account_id() const
Definition: unsampled_report.h:311
void clear_title()
Definition: unsampled_report.h:905
void clear_self_link()
Definition: unsampled_report.h:793
const StringPiece get_start_date() const
Definition: unsampled_report.h:838
void clear_segment()
Definition: unsampled_report.h:756
void clear_download_type()
Definition: unsampled_report.h:455