analytics  v3
profile_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_PROFILE_SUMMARY_H_
31 #define GOOGLE_ANALYTICS_API_PROFILE_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 namespace Json {
39 class Value;
40 } // namespace Json
41 
42 namespace google_analytics_api {
43 using namespace googleapis;
44 
51 class ProfileSummary : public client::JsonCppData {
52  public:
58  static ProfileSummary* New();
59 
65  explicit ProfileSummary(const Json::Value& storage);
66 
72  explicit ProfileSummary(Json::Value* storage);
73 
77  virtual ~ProfileSummary();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_analytics_api::ProfileSummary");
86  }
87 
93  bool has_id() const {
94  return Storage().isMember("id");
95  }
96 
100  void clear_id() {
101  MutableStorage()->removeMember("id");
102  }
103 
104 
108  const StringPiece get_id() const {
109  const Json::Value& v = Storage("id");
110  if (v == Json::Value::null) return StringPiece("");
111  return StringPiece(v.asCString());
112  }
113 
121  void set_id(const StringPiece& value) {
122  *MutableStorage("id") = value.data();
123  }
124 
130  bool has_kind() const {
131  return Storage().isMember("kind");
132  }
133 
137  void clear_kind() {
138  MutableStorage()->removeMember("kind");
139  }
140 
141 
145  const StringPiece get_kind() const {
146  const Json::Value& v = Storage("kind");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
158  void set_kind(const StringPiece& value) {
159  *MutableStorage("kind") = value.data();
160  }
161 
167  bool has_name() const {
168  return Storage().isMember("name");
169  }
170 
174  void clear_name() {
175  MutableStorage()->removeMember("name");
176  }
177 
178 
182  const StringPiece get_name() const {
183  const Json::Value& v = Storage("name");
184  if (v == Json::Value::null) return StringPiece("");
185  return StringPiece(v.asCString());
186  }
187 
195  void set_name(const StringPiece& value) {
196  *MutableStorage("name") = value.data();
197  }
198 
204  bool has_starred() const {
205  return Storage().isMember("starred");
206  }
207 
211  void clear_starred() {
212  MutableStorage()->removeMember("starred");
213  }
214 
215 
219  bool get_starred() const {
220  const Json::Value& storage = Storage("starred");
221  return client::JsonValueToCppValueHelper<bool >(storage);
222  }
223 
231  void set_starred(bool value) {
232  client::SetJsonValueFromCppValueHelper<bool >(
233  value, MutableStorage("starred"));
234  }
235 
241  bool has_type() const {
242  return Storage().isMember("type");
243  }
244 
248  void clear_type() {
249  MutableStorage()->removeMember("type");
250  }
251 
252 
256  const StringPiece get_type() const {
257  const Json::Value& v = Storage("type");
258  if (v == Json::Value::null) return StringPiece("");
259  return StringPiece(v.asCString());
260  }
261 
269  void set_type(const StringPiece& value) {
270  *MutableStorage("type") = value.data();
271  }
272 
273  private:
274  void operator=(const ProfileSummary&);
275 }; // ProfileSummary
276 } // namespace google_analytics_api
277 #endif // GOOGLE_ANALYTICS_API_PROFILE_SUMMARY_H_
void clear_name()
Definition: profile_summary.h:174
void set_id(const StringPiece &value)
Definition: profile_summary.h:121
const StringPiece get_name() const
Definition: profile_summary.h:182
void clear_type()
Definition: profile_summary.h:248
bool has_starred() const
Definition: profile_summary.h:204
void clear_kind()
Definition: profile_summary.h:137
void set_starred(bool value)
Definition: profile_summary.h:231
void clear_id()
Definition: profile_summary.h:100
bool has_id() const
Definition: profile_summary.h:93
bool get_starred() const
Definition: profile_summary.h:219
const StringPiece get_id() const
Definition: profile_summary.h:108
const StringPiece get_type() const
Definition: profile_summary.h:256
bool has_name() const
Definition: profile_summary.h:167
void set_kind(const StringPiece &value)
Definition: profile_summary.h:158
const StringPiece GetTypeName() const
Definition: profile_summary.h:84
void set_name(const StringPiece &value)
Definition: profile_summary.h:195
Definition: account.h:39
Definition: account.cc:41
bool has_type() const
Definition: profile_summary.h:241
void clear_starred()
Definition: profile_summary.h:211
void set_type(const StringPiece &value)
Definition: profile_summary.h:269
Definition: profile_summary.h:51
bool has_kind() const
Definition: profile_summary.h:130
const StringPiece get_kind() const
Definition: profile_summary.h:145