analytics  v3
remarketing_audiences.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_REMARKETING_AUDIENCES_H_
31 #define GOOGLE_ANALYTICS_API_REMARKETING_AUDIENCES_H_
32 
33 #include <string>
34 #include "googleapis/base/integral_types.h"
35 #include "googleapis/base/macros.h"
36 #include "googleapis/client/data/jsoncpp_data.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 #include "google/analytics_api/remarketing_audience.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_analytics_api {
46 using namespace googleapis;
47 
55 class RemarketingAudiences : public client::JsonCppData {
56  public:
62  static RemarketingAudiences* New();
63 
69  explicit RemarketingAudiences(const Json::Value& storage);
70 
76  explicit RemarketingAudiences(Json::Value* storage);
77 
81  virtual ~RemarketingAudiences();
82 
88  const StringPiece GetTypeName() const {
89  return StringPiece("google_analytics_api::RemarketingAudiences");
90  }
91 
97  bool has_items() const {
98  return Storage().isMember("items");
99  }
100 
104  void clear_items() {
105  MutableStorage()->removeMember("items");
106  }
107 
108 
112  const client::JsonCppArray<RemarketingAudience > get_items() const;
113 
121  client::JsonCppArray<RemarketingAudience > mutable_items();
122 
128  bool has_items_per_page() const {
129  return Storage().isMember("itemsPerPage");
130  }
131 
136  MutableStorage()->removeMember("itemsPerPage");
137  }
138 
139 
143  int32 get_items_per_page() const {
144  const Json::Value& storage = Storage("itemsPerPage");
145  return client::JsonValueToCppValueHelper<int32 >(storage);
146  }
147 
158  void set_items_per_page(int32 value) {
159  client::SetJsonValueFromCppValueHelper<int32 >(
160  value, MutableStorage("itemsPerPage"));
161  }
162 
168  bool has_kind() const {
169  return Storage().isMember("kind");
170  }
171 
175  void clear_kind() {
176  MutableStorage()->removeMember("kind");
177  }
178 
179 
183  const StringPiece get_kind() const {
184  const Json::Value& v = Storage("kind");
185  if (v == Json::Value::null) return StringPiece("");
186  return StringPiece(v.asCString());
187  }
188 
196  void set_kind(const StringPiece& value) {
197  *MutableStorage("kind") = value.data();
198  }
199 
205  bool has_next_link() const {
206  return Storage().isMember("nextLink");
207  }
208 
213  MutableStorage()->removeMember("nextLink");
214  }
215 
216 
220  const StringPiece get_next_link() const {
221  const Json::Value& v = Storage("nextLink");
222  if (v == Json::Value::null) return StringPiece("");
223  return StringPiece(v.asCString());
224  }
225 
233  void set_next_link(const StringPiece& value) {
234  *MutableStorage("nextLink") = value.data();
235  }
236 
242  bool has_previous_link() const {
243  return Storage().isMember("previousLink");
244  }
245 
250  MutableStorage()->removeMember("previousLink");
251  }
252 
253 
257  const StringPiece get_previous_link() const {
258  const Json::Value& v = Storage("previousLink");
259  if (v == Json::Value::null) return StringPiece("");
260  return StringPiece(v.asCString());
261  }
262 
270  void set_previous_link(const StringPiece& value) {
271  *MutableStorage("previousLink") = value.data();
272  }
273 
279  bool has_start_index() const {
280  return Storage().isMember("startIndex");
281  }
282 
287  MutableStorage()->removeMember("startIndex");
288  }
289 
290 
294  int32 get_start_index() const {
295  const Json::Value& storage = Storage("startIndex");
296  return client::JsonValueToCppValueHelper<int32 >(storage);
297  }
298 
307  void set_start_index(int32 value) {
308  client::SetJsonValueFromCppValueHelper<int32 >(
309  value, MutableStorage("startIndex"));
310  }
311 
317  bool has_total_results() const {
318  return Storage().isMember("totalResults");
319  }
320 
325  MutableStorage()->removeMember("totalResults");
326  }
327 
328 
332  int32 get_total_results() const {
333  const Json::Value& storage = Storage("totalResults");
334  return client::JsonValueToCppValueHelper<int32 >(storage);
335  }
336 
345  void set_total_results(int32 value) {
346  client::SetJsonValueFromCppValueHelper<int32 >(
347  value, MutableStorage("totalResults"));
348  }
349 
355  bool has_username() const {
356  return Storage().isMember("username");
357  }
358 
362  void clear_username() {
363  MutableStorage()->removeMember("username");
364  }
365 
366 
370  const StringPiece get_username() const {
371  const Json::Value& v = Storage("username");
372  if (v == Json::Value::null) return StringPiece("");
373  return StringPiece(v.asCString());
374  }
375 
383  void set_username(const StringPiece& value) {
384  *MutableStorage("username") = value.data();
385  }
386 
387  private:
388  void operator=(const RemarketingAudiences&);
389 }; // RemarketingAudiences
390 } // namespace google_analytics_api
391 #endif // GOOGLE_ANALYTICS_API_REMARKETING_AUDIENCES_H_
void clear_username()
Definition: remarketing_audiences.h:362
bool has_total_results() const
Definition: remarketing_audiences.h:317
void set_total_results(int32 value)
Definition: remarketing_audiences.h:345
void set_username(const StringPiece &value)
Definition: remarketing_audiences.h:383
bool has_previous_link() const
Definition: remarketing_audiences.h:242
const StringPiece get_username() const
Definition: remarketing_audiences.h:370
bool has_next_link() const
Definition: remarketing_audiences.h:205
const StringPiece get_kind() const
Definition: remarketing_audiences.h:183
void set_previous_link(const StringPiece &value)
Definition: remarketing_audiences.h:270
void clear_kind()
Definition: remarketing_audiences.h:175
void clear_items()
Definition: remarketing_audiences.h:104
void clear_total_results()
Definition: remarketing_audiences.h:324
const StringPiece get_previous_link() const
Definition: remarketing_audiences.h:257
int32 get_items_per_page() const
Definition: remarketing_audiences.h:143
bool has_start_index() const
Definition: remarketing_audiences.h:279
int32 get_start_index() const
Definition: remarketing_audiences.h:294
Definition: account.h:39
Definition: account.cc:41
bool has_kind() const
Definition: remarketing_audiences.h:168
bool has_items() const
Definition: remarketing_audiences.h:97
const StringPiece get_next_link() const
Definition: remarketing_audiences.h:220
void set_start_index(int32 value)
Definition: remarketing_audiences.h:307
Definition: remarketing_audiences.h:55
void set_kind(const StringPiece &value)
Definition: remarketing_audiences.h:196
void set_next_link(const StringPiece &value)
Definition: remarketing_audiences.h:233
void clear_start_index()
Definition: remarketing_audiences.h:286
bool has_items_per_page() const
Definition: remarketing_audiences.h:128
void clear_next_link()
Definition: remarketing_audiences.h:212
bool has_username() const
Definition: remarketing_audiences.h:355
const StringPiece GetTypeName() const
Definition: remarketing_audiences.h:88
void clear_items_per_page()
Definition: remarketing_audiences.h:135
int32 get_total_results() const
Definition: remarketing_audiences.h:332
void clear_previous_link()
Definition: remarketing_audiences.h:249
void set_items_per_page(int32 value)
Definition: remarketing_audiences.h:158