analytics  v3
entity_ad_words_link.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_ENTITY_AD_WORDS_LINK_H_
31 #define GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINK_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/ad_words_account.h"
39 #include "google/analytics_api/web_property_ref.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_analytics_api {
46 using namespace googleapis;
47 
53 class EntityAdWordsLink : public client::JsonCppData {
54  public:
60  class EntityAdWordsLinkEntity : public client::JsonCppData {
61  public:
67  static EntityAdWordsLinkEntity* New();
68 
74  explicit EntityAdWordsLinkEntity(const Json::Value& storage);
75 
81  explicit EntityAdWordsLinkEntity(Json::Value* storage);
82 
86  virtual ~EntityAdWordsLinkEntity();
87 
93  const StringPiece GetTypeName() const {
94  return StringPiece("google_analytics_api::EntityAdWordsLinkEntity");
95  }
96 
102  bool has_web_property_ref() const {
103  return Storage().isMember("webPropertyRef");
104  }
105 
110  MutableStorage()->removeMember("webPropertyRef");
111  }
112 
113 
118  const WebPropertyRef get_web_property_ref() const;
119 
125  WebPropertyRef mutable_webPropertyRef();
126 
127  private:
128  void operator=(const EntityAdWordsLinkEntity&);
129  }; // EntityAdWordsLinkEntity
135  static EntityAdWordsLink* New();
136 
142  explicit EntityAdWordsLink(const Json::Value& storage);
143 
149  explicit EntityAdWordsLink(Json::Value* storage);
150 
154  virtual ~EntityAdWordsLink();
155 
161  const StringPiece GetTypeName() const {
162  return StringPiece("google_analytics_api::EntityAdWordsLink");
163  }
164 
170  bool has_ad_words_accounts() const {
171  return Storage().isMember("adWordsAccounts");
172  }
173 
178  MutableStorage()->removeMember("adWordsAccounts");
179  }
180 
181 
186  const client::JsonCppArray<AdWordsAccount > get_ad_words_accounts() const;
187 
197  client::JsonCppArray<AdWordsAccount > mutable_adWordsAccounts();
198 
204  bool has_entity() const {
205  return Storage().isMember("entity");
206  }
207 
211  void clear_entity() {
212  MutableStorage()->removeMember("entity");
213  }
214 
215 
220  const Json::Value& storage = Storage("entity");
221  return client::JsonValueToCppValueHelper<EntityAdWordsLinkEntity >(storage);
222  }
223 
232  Json::Value* storage = MutableStorage("entity");
233  return client::JsonValueToMutableCppValueHelper<EntityAdWordsLinkEntity >(storage);
234  }
235 
241  bool has_id() const {
242  return Storage().isMember("id");
243  }
244 
248  void clear_id() {
249  MutableStorage()->removeMember("id");
250  }
251 
252 
256  const StringPiece get_id() const {
257  const Json::Value& v = Storage("id");
258  if (v == Json::Value::null) return StringPiece("");
259  return StringPiece(v.asCString());
260  }
261 
269  void set_id(const StringPiece& value) {
270  *MutableStorage("id") = value.data();
271  }
272 
278  bool has_kind() const {
279  return Storage().isMember("kind");
280  }
281 
285  void clear_kind() {
286  MutableStorage()->removeMember("kind");
287  }
288 
289 
293  const StringPiece get_kind() const {
294  const Json::Value& v = Storage("kind");
295  if (v == Json::Value::null) return StringPiece("");
296  return StringPiece(v.asCString());
297  }
298 
306  void set_kind(const StringPiece& value) {
307  *MutableStorage("kind") = value.data();
308  }
309 
315  bool has_name() const {
316  return Storage().isMember("name");
317  }
318 
322  void clear_name() {
323  MutableStorage()->removeMember("name");
324  }
325 
326 
330  const StringPiece get_name() const {
331  const Json::Value& v = Storage("name");
332  if (v == Json::Value::null) return StringPiece("");
333  return StringPiece(v.asCString());
334  }
335 
343  void set_name(const StringPiece& value) {
344  *MutableStorage("name") = value.data();
345  }
346 
352  bool has_profile_ids() const {
353  return Storage().isMember("profileIds");
354  }
355 
360  MutableStorage()->removeMember("profileIds");
361  }
362 
363 
367  const client::JsonCppArray<string > get_profile_ids() const {
368  const Json::Value& storage = Storage("profileIds");
369  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
370  }
371 
380  client::JsonCppArray<string > mutable_profileIds() {
381  Json::Value* storage = MutableStorage("profileIds");
382  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
383  }
384 
390  bool has_self_link() const {
391  return Storage().isMember("selfLink");
392  }
393 
398  MutableStorage()->removeMember("selfLink");
399  }
400 
401 
405  const StringPiece get_self_link() const {
406  const Json::Value& v = Storage("selfLink");
407  if (v == Json::Value::null) return StringPiece("");
408  return StringPiece(v.asCString());
409  }
410 
418  void set_self_link(const StringPiece& value) {
419  *MutableStorage("selfLink") = value.data();
420  }
421 
422  private:
423  void operator=(const EntityAdWordsLink&);
424 }; // EntityAdWordsLink
425 } // namespace google_analytics_api
426 #endif // GOOGLE_ANALYTICS_API_ENTITY_AD_WORDS_LINK_H_
Definition: web_property_ref.h:50
Definition: account.h:39
Definition: account.cc:41