analytics  v3
account_summary.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_ACCOUNT_SUMMARY_H_
31 #define GOOGLE_ANALYTICS_API_ACCOUNT_SUMMARY_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/analytics_api/web_property_summary.h"
39 
40 namespace Json {
41 class Value;
42 } // namespace Json
43 
44 namespace google_analytics_api {
45 using namespace googleapis;
46 
53 class AccountSummary : public client::JsonCppData {
54  public:
60  static AccountSummary* New();
61 
67  explicit AccountSummary(const Json::Value& storage);
68 
74  explicit AccountSummary(Json::Value* storage);
75 
79  virtual ~AccountSummary();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_analytics_api::AccountSummary");
88  }
89 
95  bool has_id() const {
96  return Storage().isMember("id");
97  }
98 
102  void clear_id() {
103  MutableStorage()->removeMember("id");
104  }
105 
106 
110  const StringPiece get_id() const {
111  const Json::Value& v = Storage("id");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
123  void set_id(const StringPiece& value) {
124  *MutableStorage("id") = value.data();
125  }
126 
132  bool has_kind() const {
133  return Storage().isMember("kind");
134  }
135 
139  void clear_kind() {
140  MutableStorage()->removeMember("kind");
141  }
142 
143 
147  const StringPiece get_kind() const {
148  const Json::Value& v = Storage("kind");
149  if (v == Json::Value::null) return StringPiece("");
150  return StringPiece(v.asCString());
151  }
152 
160  void set_kind(const StringPiece& value) {
161  *MutableStorage("kind") = value.data();
162  }
163 
169  bool has_name() const {
170  return Storage().isMember("name");
171  }
172 
176  void clear_name() {
177  MutableStorage()->removeMember("name");
178  }
179 
180 
184  const StringPiece get_name() const {
185  const Json::Value& v = Storage("name");
186  if (v == Json::Value::null) return StringPiece("");
187  return StringPiece(v.asCString());
188  }
189 
197  void set_name(const StringPiece& value) {
198  *MutableStorage("name") = value.data();
199  }
200 
206  bool has_starred() const {
207  return Storage().isMember("starred");
208  }
209 
213  void clear_starred() {
214  MutableStorage()->removeMember("starred");
215  }
216 
217 
221  bool get_starred() const {
222  const Json::Value& storage = Storage("starred");
223  return client::JsonValueToCppValueHelper<bool >(storage);
224  }
225 
233  void set_starred(bool value) {
234  client::SetJsonValueFromCppValueHelper<bool >(
235  value, MutableStorage("starred"));
236  }
237 
243  bool has_web_properties() const {
244  return Storage().isMember("webProperties");
245  }
246 
251  MutableStorage()->removeMember("webProperties");
252  }
253 
254 
258  const client::JsonCppArray<WebPropertySummary > get_web_properties() const;
259 
268  client::JsonCppArray<WebPropertySummary > mutable_webProperties();
269 
270  private:
271  void operator=(const AccountSummary&);
272 }; // AccountSummary
273 } // namespace google_analytics_api
274 #endif // GOOGLE_ANALYTICS_API_ACCOUNT_SUMMARY_H_
void clear_id()
Definition: account_summary.h:102
bool get_starred() const
Definition: account_summary.h:221
void clear_starred()
Definition: account_summary.h:213
void set_starred(bool value)
Definition: account_summary.h:233
void clear_name()
Definition: account_summary.h:176
bool has_id() const
Definition: account_summary.h:95
void clear_web_properties()
Definition: account_summary.h:250
const StringPiece get_id() const
Definition: account_summary.h:110
bool has_kind() const
Definition: account_summary.h:132
void set_id(const StringPiece &value)
Definition: account_summary.h:123
void set_name(const StringPiece &value)
Definition: account_summary.h:197
const StringPiece get_kind() const
Definition: account_summary.h:147
void clear_kind()
Definition: account_summary.h:139
Definition: account.h:39
bool has_web_properties() const
Definition: account_summary.h:243
Definition: account.cc:41
bool has_name() const
Definition: account_summary.h:169
bool has_starred() const
Definition: account_summary.h:206
const StringPiece GetTypeName() const
Definition: account_summary.h:86
void set_kind(const StringPiece &value)
Definition: account_summary.h:160
const StringPiece get_name() const
Definition: account_summary.h:184
Definition: account_summary.h:53