analytics  v3
linked_foreign_account.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_LINKED_FOREIGN_ACCOUNT_H_
31 #define GOOGLE_ANALYTICS_API_LINKED_FOREIGN_ACCOUNT_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 
50 class LinkedForeignAccount : public client::JsonCppData {
51  public:
57  static LinkedForeignAccount* New();
58 
64  explicit LinkedForeignAccount(const Json::Value& storage);
65 
71  explicit LinkedForeignAccount(Json::Value* storage);
72 
76  virtual ~LinkedForeignAccount();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_analytics_api::LinkedForeignAccount");
85  }
86 
92  bool has_account_id() const {
93  return Storage().isMember("accountId");
94  }
95 
100  MutableStorage()->removeMember("accountId");
101  }
102 
103 
107  const StringPiece get_account_id() const {
108  const Json::Value& v = Storage("accountId");
109  if (v == Json::Value::null) return StringPiece("");
110  return StringPiece(v.asCString());
111  }
112 
120  void set_account_id(const StringPiece& value) {
121  *MutableStorage("accountId") = value.data();
122  }
123 
129  bool has_eligible_for_search() const {
130  return Storage().isMember("eligibleForSearch");
131  }
132 
137  MutableStorage()->removeMember("eligibleForSearch");
138  }
139 
140 
144  bool get_eligible_for_search() const {
145  const Json::Value& storage = Storage("eligibleForSearch");
146  return client::JsonValueToCppValueHelper<bool >(storage);
147  }
148 
156  void set_eligible_for_search(bool value) {
157  client::SetJsonValueFromCppValueHelper<bool >(
158  value, MutableStorage("eligibleForSearch"));
159  }
160 
166  bool has_id() const {
167  return Storage().isMember("id");
168  }
169 
173  void clear_id() {
174  MutableStorage()->removeMember("id");
175  }
176 
177 
181  const StringPiece get_id() const {
182  const Json::Value& v = Storage("id");
183  if (v == Json::Value::null) return StringPiece("");
184  return StringPiece(v.asCString());
185  }
186 
194  void set_id(const StringPiece& value) {
195  *MutableStorage("id") = value.data();
196  }
197 
204  return Storage().isMember("internalWebPropertyId");
205  }
206 
211  MutableStorage()->removeMember("internalWebPropertyId");
212  }
213 
214 
218  const StringPiece get_internal_web_property_id() const {
219  const Json::Value& v = Storage("internalWebPropertyId");
220  if (v == Json::Value::null) return StringPiece("");
221  return StringPiece(v.asCString());
222  }
223 
232  void set_internal_web_property_id(const StringPiece& value) {
233  *MutableStorage("internalWebPropertyId") = value.data();
234  }
235 
241  bool has_kind() const {
242  return Storage().isMember("kind");
243  }
244 
248  void clear_kind() {
249  MutableStorage()->removeMember("kind");
250  }
251 
252 
256  const StringPiece get_kind() const {
257  const Json::Value& v = Storage("kind");
258  if (v == Json::Value::null) return StringPiece("");
259  return StringPiece(v.asCString());
260  }
261 
269  void set_kind(const StringPiece& value) {
270  *MutableStorage("kind") = value.data();
271  }
272 
278  bool has_linked_account_id() const {
279  return Storage().isMember("linkedAccountId");
280  }
281 
286  MutableStorage()->removeMember("linkedAccountId");
287  }
288 
289 
293  const StringPiece get_linked_account_id() const {
294  const Json::Value& v = Storage("linkedAccountId");
295  if (v == Json::Value::null) return StringPiece("");
296  return StringPiece(v.asCString());
297  }
298 
307  void set_linked_account_id(const StringPiece& value) {
308  *MutableStorage("linkedAccountId") = value.data();
309  }
310 
317  return Storage().isMember("remarketingAudienceId");
318  }
319 
324  MutableStorage()->removeMember("remarketingAudienceId");
325  }
326 
327 
331  const StringPiece get_remarketing_audience_id() const {
332  const Json::Value& v = Storage("remarketingAudienceId");
333  if (v == Json::Value::null) return StringPiece("");
334  return StringPiece(v.asCString());
335  }
336 
344  void set_remarketing_audience_id(const StringPiece& value) {
345  *MutableStorage("remarketingAudienceId") = value.data();
346  }
347 
353  bool has_status() const {
354  return Storage().isMember("status");
355  }
356 
360  void clear_status() {
361  MutableStorage()->removeMember("status");
362  }
363 
364 
368  const StringPiece get_status() const {
369  const Json::Value& v = Storage("status");
370  if (v == Json::Value::null) return StringPiece("");
371  return StringPiece(v.asCString());
372  }
373 
381  void set_status(const StringPiece& value) {
382  *MutableStorage("status") = value.data();
383  }
384 
390  bool has_type() const {
391  return Storage().isMember("type");
392  }
393 
397  void clear_type() {
398  MutableStorage()->removeMember("type");
399  }
400 
401 
405  const StringPiece get_type() const {
406  const Json::Value& v = Storage("type");
407  if (v == Json::Value::null) return StringPiece("");
408  return StringPiece(v.asCString());
409  }
410 
419  void set_type(const StringPiece& value) {
420  *MutableStorage("type") = value.data();
421  }
422 
428  bool has_web_property_id() const {
429  return Storage().isMember("webPropertyId");
430  }
431 
436  MutableStorage()->removeMember("webPropertyId");
437  }
438 
439 
443  const StringPiece get_web_property_id() const {
444  const Json::Value& v = Storage("webPropertyId");
445  if (v == Json::Value::null) return StringPiece("");
446  return StringPiece(v.asCString());
447  }
448 
457  void set_web_property_id(const StringPiece& value) {
458  *MutableStorage("webPropertyId") = value.data();
459  }
460 
461  private:
462  void operator=(const LinkedForeignAccount&);
463 }; // LinkedForeignAccount
464 } // namespace google_analytics_api
465 #endif // GOOGLE_ANALYTICS_API_LINKED_FOREIGN_ACCOUNT_H_
bool has_kind() const
Definition: linked_foreign_account.h:241
void clear_type()
Definition: linked_foreign_account.h:397
bool has_linked_account_id() const
Definition: linked_foreign_account.h:278
const StringPiece get_type() const
Definition: linked_foreign_account.h:405
bool get_eligible_for_search() const
Definition: linked_foreign_account.h:144
const StringPiece get_kind() const
Definition: linked_foreign_account.h:256
void set_remarketing_audience_id(const StringPiece &value)
Definition: linked_foreign_account.h:344
void clear_linked_account_id()
Definition: linked_foreign_account.h:285
void set_internal_web_property_id(const StringPiece &value)
Definition: linked_foreign_account.h:232
void clear_account_id()
Definition: linked_foreign_account.h:99
void set_linked_account_id(const StringPiece &value)
Definition: linked_foreign_account.h:307
bool has_internal_web_property_id() const
Definition: linked_foreign_account.h:203
void set_type(const StringPiece &value)
Definition: linked_foreign_account.h:419
void clear_remarketing_audience_id()
Definition: linked_foreign_account.h:323
void set_eligible_for_search(bool value)
Definition: linked_foreign_account.h:156
const StringPiece get_web_property_id() const
Definition: linked_foreign_account.h:443
bool has_eligible_for_search() const
Definition: linked_foreign_account.h:129
const StringPiece get_internal_web_property_id() const
Definition: linked_foreign_account.h:218
bool has_remarketing_audience_id() const
Definition: linked_foreign_account.h:316
const StringPiece get_id() const
Definition: linked_foreign_account.h:181
bool has_web_property_id() const
Definition: linked_foreign_account.h:428
void set_account_id(const StringPiece &value)
Definition: linked_foreign_account.h:120
void clear_internal_web_property_id()
Definition: linked_foreign_account.h:210
Definition: account.h:39
void clear_web_property_id()
Definition: linked_foreign_account.h:435
Definition: account.cc:41
const StringPiece get_remarketing_audience_id() const
Definition: linked_foreign_account.h:331
void clear_eligible_for_search()
Definition: linked_foreign_account.h:136
void set_status(const StringPiece &value)
Definition: linked_foreign_account.h:381
Definition: linked_foreign_account.h:50
void set_kind(const StringPiece &value)
Definition: linked_foreign_account.h:269
bool has_id() const
Definition: linked_foreign_account.h:166
void set_web_property_id(const StringPiece &value)
Definition: linked_foreign_account.h:457
const StringPiece get_status() const
Definition: linked_foreign_account.h:368
const StringPiece get_account_id() const
Definition: linked_foreign_account.h:107
const StringPiece GetTypeName() const
Definition: linked_foreign_account.h:83
const StringPiece get_linked_account_id() const
Definition: linked_foreign_account.h:293
void clear_id()
Definition: linked_foreign_account.h:173
void clear_kind()
Definition: linked_foreign_account.h:248
bool has_account_id() const
Definition: linked_foreign_account.h:92
bool has_type() const
Definition: linked_foreign_account.h:390
void set_id(const StringPiece &value)
Definition: linked_foreign_account.h:194
bool has_status() const
Definition: linked_foreign_account.h:353
void clear_status()
Definition: linked_foreign_account.h:360