analytics  v3
user_deletion_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_USER_DELETION_REQUEST_H_
31 #define GOOGLE_ANALYTICS_API_USER_DELETION_REQUEST_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/client/util/date_time.h"
37 #include "googleapis/strings/stringpiece.h"
38 
39 namespace Json {
40 class Value;
41 } // namespace Json
42 
43 namespace google_analytics_api {
44 using namespace googleapis;
45 
51 class UserDeletionRequest : public client::JsonCppData {
52  public:
58  class UserDeletionRequestId : public client::JsonCppData {
59  public:
65  static UserDeletionRequestId* New();
66 
72  explicit UserDeletionRequestId(const Json::Value& storage);
73 
79  explicit UserDeletionRequestId(Json::Value* storage);
80 
84  virtual ~UserDeletionRequestId();
85 
91  const StringPiece GetTypeName() const {
92  return StringPiece("google_analytics_api::UserDeletionRequestId");
93  }
94 
100  bool has_type() const {
101  return Storage().isMember("type");
102  }
103 
107  void clear_type() {
108  MutableStorage()->removeMember("type");
109  }
110 
111 
115  const StringPiece get_type() const {
116  const Json::Value& v = Storage("type");
117  if (v == Json::Value::null) return StringPiece("");
118  return StringPiece(v.asCString());
119  }
120 
128  void set_type(const StringPiece& value) {
129  *MutableStorage("type") = value.data();
130  }
131 
137  bool has_user_id() const {
138  return Storage().isMember("userId");
139  }
140 
144  void clear_user_id() {
145  MutableStorage()->removeMember("userId");
146  }
147 
148 
152  const StringPiece get_user_id() const {
153  const Json::Value& v = Storage("userId");
154  if (v == Json::Value::null) return StringPiece("");
155  return StringPiece(v.asCString());
156  }
157 
165  void set_user_id(const StringPiece& value) {
166  *MutableStorage("userId") = value.data();
167  }
168 
169  private:
170  void operator=(const UserDeletionRequestId&);
171  }; // UserDeletionRequestId
177  static UserDeletionRequest* New();
178 
184  explicit UserDeletionRequest(const Json::Value& storage);
185 
191  explicit UserDeletionRequest(Json::Value* storage);
192 
196  virtual ~UserDeletionRequest();
197 
203  const StringPiece GetTypeName() const {
204  return StringPiece("google_analytics_api::UserDeletionRequest");
205  }
206 
213  return Storage().isMember("deletionRequestTime");
214  }
215 
220  MutableStorage()->removeMember("deletionRequestTime");
221  }
222 
223 
227  client::DateTime get_deletion_request_time() const {
228  const Json::Value& storage = Storage("deletionRequestTime");
229  return client::JsonValueToCppValueHelper<client::DateTime >(storage);
230  }
231 
240  void set_deletion_request_time(client::DateTime value) {
241  client::SetJsonValueFromCppValueHelper<client::DateTime >(
242  value, MutableStorage("deletionRequestTime"));
243  }
244 
250  bool has_firebase_project_id() const {
251  return Storage().isMember("firebaseProjectId");
252  }
253 
258  MutableStorage()->removeMember("firebaseProjectId");
259  }
260 
261 
265  const StringPiece get_firebase_project_id() const {
266  const Json::Value& v = Storage("firebaseProjectId");
267  if (v == Json::Value::null) return StringPiece("");
268  return StringPiece(v.asCString());
269  }
270 
278  void set_firebase_project_id(const StringPiece& value) {
279  *MutableStorage("firebaseProjectId") = value.data();
280  }
281 
287  bool has_id() const {
288  return Storage().isMember("id");
289  }
290 
294  void clear_id() {
295  MutableStorage()->removeMember("id");
296  }
297 
298 
303  const Json::Value& storage = Storage("id");
304  return client::JsonValueToCppValueHelper<UserDeletionRequestId >(storage);
305  }
306 
315  Json::Value* storage = MutableStorage("id");
316  return client::JsonValueToMutableCppValueHelper<UserDeletionRequestId >(storage);
317  }
318 
324  bool has_kind() const {
325  return Storage().isMember("kind");
326  }
327 
331  void clear_kind() {
332  MutableStorage()->removeMember("kind");
333  }
334 
335 
339  const StringPiece get_kind() const {
340  const Json::Value& v = Storage("kind");
341  if (v == Json::Value::null) return StringPiece("");
342  return StringPiece(v.asCString());
343  }
344 
352  void set_kind(const StringPiece& value) {
353  *MutableStorage("kind") = value.data();
354  }
355 
361  bool has_property_id() const {
362  return Storage().isMember("propertyId");
363  }
364 
369  MutableStorage()->removeMember("propertyId");
370  }
371 
372 
376  const StringPiece get_property_id() const {
377  const Json::Value& v = Storage("propertyId");
378  if (v == Json::Value::null) return StringPiece("");
379  return StringPiece(v.asCString());
380  }
381 
389  void set_property_id(const StringPiece& value) {
390  *MutableStorage("propertyId") = value.data();
391  }
392 
398  bool has_web_property_id() const {
399  return Storage().isMember("webPropertyId");
400  }
401 
406  MutableStorage()->removeMember("webPropertyId");
407  }
408 
409 
413  const StringPiece get_web_property_id() const {
414  const Json::Value& v = Storage("webPropertyId");
415  if (v == Json::Value::null) return StringPiece("");
416  return StringPiece(v.asCString());
417  }
418 
426  void set_web_property_id(const StringPiece& value) {
427  *MutableStorage("webPropertyId") = value.data();
428  }
429 
430  private:
431  void operator=(const UserDeletionRequest&);
432 }; // UserDeletionRequest
433 } // namespace google_analytics_api
434 #endif // GOOGLE_ANALYTICS_API_USER_DELETION_REQUEST_H_
void clear_id()
Definition: user_deletion_request.h:294
UserDeletionRequestId mutable_id()
Definition: user_deletion_request.h:314
bool has_firebase_project_id() const
Definition: user_deletion_request.h:250
const StringPiece get_web_property_id() const
Definition: user_deletion_request.h:413
void set_property_id(const StringPiece &value)
Definition: user_deletion_request.h:389
void clear_kind()
Definition: user_deletion_request.h:331
const StringPiece get_type() const
Definition: user_deletion_request.h:115
bool has_web_property_id() const
Definition: user_deletion_request.h:398
void clear_user_id()
Definition: user_deletion_request.h:144
const StringPiece get_user_id() const
Definition: user_deletion_request.h:152
const UserDeletionRequestId get_id() const
Definition: user_deletion_request.h:302
void clear_property_id()
Definition: user_deletion_request.h:368
const StringPiece get_firebase_project_id() const
Definition: user_deletion_request.h:265
const StringPiece get_property_id() const
Definition: user_deletion_request.h:376
void set_deletion_request_time(client::DateTime value)
Definition: user_deletion_request.h:240
bool has_kind() const
Definition: user_deletion_request.h:324
void set_firebase_project_id(const StringPiece &value)
Definition: user_deletion_request.h:278
void set_web_property_id(const StringPiece &value)
Definition: user_deletion_request.h:426
bool has_user_id() const
Definition: user_deletion_request.h:137
Definition: account.h:39
bool has_type() const
Definition: user_deletion_request.h:100
Definition: account.cc:41
const StringPiece GetTypeName() const
Definition: user_deletion_request.h:203
void set_user_id(const StringPiece &value)
Definition: user_deletion_request.h:165
bool has_id() const
Definition: user_deletion_request.h:287
bool has_property_id() const
Definition: user_deletion_request.h:361
const StringPiece GetTypeName() const
Definition: user_deletion_request.h:91
void clear_web_property_id()
Definition: user_deletion_request.h:405
client::DateTime get_deletion_request_time() const
Definition: user_deletion_request.h:227
void set_type(const StringPiece &value)
Definition: user_deletion_request.h:128
const StringPiece get_kind() const
Definition: user_deletion_request.h:339
void clear_type()
Definition: user_deletion_request.h:107
Definition: user_deletion_request.h:51
bool has_deletion_request_time() const
Definition: user_deletion_request.h:212
void clear_firebase_project_id()
Definition: user_deletion_request.h:257
void clear_deletion_request_time()
Definition: user_deletion_request.h:219
void set_kind(const StringPiece &value)
Definition: user_deletion_request.h:352