analytics  v3
account_tree_request.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_TREE_REQUEST_H_
31 #define GOOGLE_ANALYTICS_API_ACCOUNT_TREE_REQUEST_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 
53 class AccountTreeRequest : public client::JsonCppData {
54  public:
60  static AccountTreeRequest* New();
61 
67  explicit AccountTreeRequest(const Json::Value& storage);
68 
74  explicit AccountTreeRequest(Json::Value* storage);
75 
79  virtual ~AccountTreeRequest();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_analytics_api::AccountTreeRequest");
88  }
89 
95  bool has_account_name() const {
96  return Storage().isMember("accountName");
97  }
98 
103  MutableStorage()->removeMember("accountName");
104  }
105 
106 
110  const StringPiece get_account_name() const {
111  const Json::Value& v = Storage("accountName");
112  if (v == Json::Value::null) return StringPiece("");
113  return StringPiece(v.asCString());
114  }
115 
120  void set_account_name(const StringPiece& value) {
121  *MutableStorage("accountName") = value.data();
122  }
123 
129  bool has_kind() const {
130  return Storage().isMember("kind");
131  }
132 
136  void clear_kind() {
137  MutableStorage()->removeMember("kind");
138  }
139 
140 
144  const StringPiece get_kind() const {
145  const Json::Value& v = Storage("kind");
146  if (v == Json::Value::null) return StringPiece("");
147  return StringPiece(v.asCString());
148  }
149 
157  void set_kind(const StringPiece& value) {
158  *MutableStorage("kind") = value.data();
159  }
160 
166  bool has_profile_name() const {
167  return Storage().isMember("profileName");
168  }
169 
174  MutableStorage()->removeMember("profileName");
175  }
176 
177 
181  const StringPiece get_profile_name() const {
182  const Json::Value& v = Storage("profileName");
183  if (v == Json::Value::null) return StringPiece("");
184  return StringPiece(v.asCString());
185  }
186 
191  void set_profile_name(const StringPiece& value) {
192  *MutableStorage("profileName") = value.data();
193  }
194 
200  bool has_timezone() const {
201  return Storage().isMember("timezone");
202  }
203 
207  void clear_timezone() {
208  MutableStorage()->removeMember("timezone");
209  }
210 
211 
215  const StringPiece get_timezone() const {
216  const Json::Value& v = Storage("timezone");
217  if (v == Json::Value::null) return StringPiece("");
218  return StringPiece(v.asCString());
219  }
220 
225  void set_timezone(const StringPiece& value) {
226  *MutableStorage("timezone") = value.data();
227  }
228 
234  bool has_webproperty_name() const {
235  return Storage().isMember("webpropertyName");
236  }
237 
242  MutableStorage()->removeMember("webpropertyName");
243  }
244 
245 
249  const StringPiece get_webproperty_name() const {
250  const Json::Value& v = Storage("webpropertyName");
251  if (v == Json::Value::null) return StringPiece("");
252  return StringPiece(v.asCString());
253  }
254 
259  void set_webproperty_name(const StringPiece& value) {
260  *MutableStorage("webpropertyName") = value.data();
261  }
262 
268  bool has_website_url() const {
269  return Storage().isMember("websiteUrl");
270  }
271 
276  MutableStorage()->removeMember("websiteUrl");
277  }
278 
279 
283  const StringPiece get_website_url() const {
284  const Json::Value& v = Storage("websiteUrl");
285  if (v == Json::Value::null) return StringPiece("");
286  return StringPiece(v.asCString());
287  }
288 
293  void set_website_url(const StringPiece& value) {
294  *MutableStorage("websiteUrl") = value.data();
295  }
296 
297  private:
298  void operator=(const AccountTreeRequest&);
299 }; // AccountTreeRequest
300 } // namespace google_analytics_api
301 #endif // GOOGLE_ANALYTICS_API_ACCOUNT_TREE_REQUEST_H_
const StringPiece get_timezone() const
Definition: account_tree_request.h:215
const StringPiece get_profile_name() const
Definition: account_tree_request.h:181
Definition: account_tree_request.h:53
void clear_profile_name()
Definition: account_tree_request.h:173
void set_profile_name(const StringPiece &value)
Definition: account_tree_request.h:191
void set_kind(const StringPiece &value)
Definition: account_tree_request.h:157
void set_timezone(const StringPiece &value)
Definition: account_tree_request.h:225
const StringPiece get_website_url() const
Definition: account_tree_request.h:283
bool has_kind() const
Definition: account_tree_request.h:129
bool has_profile_name() const
Definition: account_tree_request.h:166
void clear_account_name()
Definition: account_tree_request.h:102
bool has_webproperty_name() const
Definition: account_tree_request.h:234
const StringPiece GetTypeName() const
Definition: account_tree_request.h:86
bool has_timezone() const
Definition: account_tree_request.h:200
Definition: account.h:39
void clear_website_url()
Definition: account_tree_request.h:275
const StringPiece get_webproperty_name() const
Definition: account_tree_request.h:249
Definition: account.cc:41
void set_website_url(const StringPiece &value)
Definition: account_tree_request.h:293
void clear_timezone()
Definition: account_tree_request.h:207
const StringPiece get_kind() const
Definition: account_tree_request.h:144
const StringPiece get_account_name() const
Definition: account_tree_request.h:110
bool has_account_name() const
Definition: account_tree_request.h:95
void set_webproperty_name(const StringPiece &value)
Definition: account_tree_request.h:259
void set_account_name(const StringPiece &value)
Definition: account_tree_request.h:120
void clear_kind()
Definition: account_tree_request.h:136
bool has_website_url() const
Definition: account_tree_request.h:268
void clear_webproperty_name()
Definition: account_tree_request.h:241