identitytoolkit  v3
verify_password_response.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-04-06, 12:09:29 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 Identity Toolkit API (identitytoolkit/v3)
24 // Generated from:
25 // Version: v3
26 // Revision: 368
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_IDENTITYTOOLKIT_API_VERIFY_PASSWORD_RESPONSE_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_VERIFY_PASSWORD_RESPONSE_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 namespace Json {
40 class Value;
41 } // namespace Json
42 
44 using namespace googleapis;
45 
51 class VerifyPasswordResponse : public client::JsonCppData {
52  public:
58  static VerifyPasswordResponse* New();
59 
65  explicit VerifyPasswordResponse(const Json::Value& storage);
66 
72  explicit VerifyPasswordResponse(Json::Value* storage);
73 
77  virtual ~VerifyPasswordResponse();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_identitytoolkit_api::VerifyPasswordResponse");
86  }
87 
93  bool has_display_name() const {
94  return Storage().isMember("displayName");
95  }
96 
101  MutableStorage()->removeMember("displayName");
102  }
103 
104 
108  const StringPiece get_display_name() const {
109  const Json::Value& v = Storage("displayName");
110  if (v == Json::Value::null) return StringPiece("");
111  return StringPiece(v.asCString());
112  }
113 
121  void set_display_name(const StringPiece& value) {
122  *MutableStorage("displayName") = value.data();
123  }
124 
130  bool has_email() const {
131  return Storage().isMember("email");
132  }
133 
137  void clear_email() {
138  MutableStorage()->removeMember("email");
139  }
140 
141 
145  const StringPiece get_email() const {
146  const Json::Value& v = Storage("email");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
159  void set_email(const StringPiece& value) {
160  *MutableStorage("email") = value.data();
161  }
162 
168  bool has_expires_in() const {
169  return Storage().isMember("expiresIn");
170  }
171 
176  MutableStorage()->removeMember("expiresIn");
177  }
178 
179 
183  int64 get_expires_in() const {
184  const Json::Value& storage = Storage("expiresIn");
185  return client::JsonValueToCppValueHelper<int64 >(storage);
186  }
187 
196  void set_expires_in(int64 value) {
197  client::SetJsonValueFromCppValueHelper<int64 >(
198  value, MutableStorage("expiresIn"));
199  }
200 
206  bool has_id_token() const {
207  return Storage().isMember("idToken");
208  }
209 
213  void clear_id_token() {
214  MutableStorage()->removeMember("idToken");
215  }
216 
217 
221  const StringPiece get_id_token() const {
222  const Json::Value& v = Storage("idToken");
223  if (v == Json::Value::null) return StringPiece("");
224  return StringPiece(v.asCString());
225  }
226 
234  void set_id_token(const StringPiece& value) {
235  *MutableStorage("idToken") = value.data();
236  }
237 
243  bool has_kind() const {
244  return Storage().isMember("kind");
245  }
246 
250  void clear_kind() {
251  MutableStorage()->removeMember("kind");
252  }
253 
254 
258  const StringPiece get_kind() const {
259  const Json::Value& v = Storage("kind");
260  if (v == Json::Value::null) return StringPiece("");
261  return StringPiece(v.asCString());
262  }
263 
271  void set_kind(const StringPiece& value) {
272  *MutableStorage("kind") = value.data();
273  }
274 
280  bool has_local_id() const {
281  return Storage().isMember("localId");
282  }
283 
287  void clear_local_id() {
288  MutableStorage()->removeMember("localId");
289  }
290 
291 
295  const StringPiece get_local_id() const {
296  const Json::Value& v = Storage("localId");
297  if (v == Json::Value::null) return StringPiece("");
298  return StringPiece(v.asCString());
299  }
300 
309  void set_local_id(const StringPiece& value) {
310  *MutableStorage("localId") = value.data();
311  }
312 
318  bool has_oauth_access_token() const {
319  return Storage().isMember("oauthAccessToken");
320  }
321 
326  MutableStorage()->removeMember("oauthAccessToken");
327  }
328 
329 
333  const StringPiece get_oauth_access_token() const {
334  const Json::Value& v = Storage("oauthAccessToken");
335  if (v == Json::Value::null) return StringPiece("");
336  return StringPiece(v.asCString());
337  }
338 
346  void set_oauth_access_token(const StringPiece& value) {
347  *MutableStorage("oauthAccessToken") = value.data();
348  }
349 
357  return Storage().isMember("oauthAuthorizationCode");
358  }
359 
364  MutableStorage()->removeMember("oauthAuthorizationCode");
365  }
366 
367 
371  const StringPiece get_oauth_authorization_code() const {
372  const Json::Value& v = Storage("oauthAuthorizationCode");
373  if (v == Json::Value::null) return StringPiece("");
374  return StringPiece(v.asCString());
375  }
376 
384  void set_oauth_authorization_code(const StringPiece& value) {
385  *MutableStorage("oauthAuthorizationCode") = value.data();
386  }
387 
393  bool has_oauth_expire_in() const {
394  return Storage().isMember("oauthExpireIn");
395  }
396 
401  MutableStorage()->removeMember("oauthExpireIn");
402  }
403 
404 
408  int32 get_oauth_expire_in() const {
409  const Json::Value& storage = Storage("oauthExpireIn");
410  return client::JsonValueToCppValueHelper<int32 >(storage);
411  }
412 
420  void set_oauth_expire_in(int32 value) {
421  client::SetJsonValueFromCppValueHelper<int32 >(
422  value, MutableStorage("oauthExpireIn"));
423  }
424 
430  bool has_photo_url() const {
431  return Storage().isMember("photoUrl");
432  }
433 
438  MutableStorage()->removeMember("photoUrl");
439  }
440 
441 
445  const StringPiece get_photo_url() const {
446  const Json::Value& v = Storage("photoUrl");
447  if (v == Json::Value::null) return StringPiece("");
448  return StringPiece(v.asCString());
449  }
450 
458  void set_photo_url(const StringPiece& value) {
459  *MutableStorage("photoUrl") = value.data();
460  }
461 
467  bool has_refresh_token() const {
468  return Storage().isMember("refreshToken");
469  }
470 
475  MutableStorage()->removeMember("refreshToken");
476  }
477 
478 
482  const StringPiece get_refresh_token() const {
483  const Json::Value& v = Storage("refreshToken");
484  if (v == Json::Value::null) return StringPiece("");
485  return StringPiece(v.asCString());
486  }
487 
495  void set_refresh_token(const StringPiece& value) {
496  *MutableStorage("refreshToken") = value.data();
497  }
498 
504  bool has_registered() const {
505  return Storage().isMember("registered");
506  }
507 
512  MutableStorage()->removeMember("registered");
513  }
514 
515 
519  bool get_registered() const {
520  const Json::Value& storage = Storage("registered");
521  return client::JsonValueToCppValueHelper<bool >(storage);
522  }
523 
531  void set_registered(bool value) {
532  client::SetJsonValueFromCppValueHelper<bool >(
533  value, MutableStorage("registered"));
534  }
535 
536  private:
537  void operator=(const VerifyPasswordResponse&);
538 }; // VerifyPasswordResponse
539 } // namespace google_identitytoolkit_api
540 #endif // GOOGLE_IDENTITYTOOLKIT_API_VERIFY_PASSWORD_RESPONSE_H_
void clear_kind()
Definition: verify_password_response.h:250
bool has_oauth_expire_in() const
Definition: verify_password_response.h:393
void set_photo_url(const StringPiece &value)
Definition: verify_password_response.h:458
int32 get_oauth_expire_in() const
Definition: verify_password_response.h:408
void clear_oauth_access_token()
Definition: verify_password_response.h:325
const StringPiece get_oauth_authorization_code() const
Definition: verify_password_response.h:371
void set_email(const StringPiece &value)
Definition: verify_password_response.h:159
const StringPiece get_kind() const
Definition: verify_password_response.h:258
void set_oauth_authorization_code(const StringPiece &value)
Definition: verify_password_response.h:384
Definition: create_auth_uri_response.cc:40
bool has_email() const
Definition: verify_password_response.h:130
const StringPiece GetTypeName() const
Definition: verify_password_response.h:84
void clear_refresh_token()
Definition: verify_password_response.h:474
void clear_expires_in()
Definition: verify_password_response.h:175
void clear_id_token()
Definition: verify_password_response.h:213
const StringPiece get_local_id() const
Definition: verify_password_response.h:295
void set_oauth_expire_in(int32 value)
Definition: verify_password_response.h:420
void set_registered(bool value)
Definition: verify_password_response.h:531
void set_oauth_access_token(const StringPiece &value)
Definition: verify_password_response.h:346
const StringPiece get_refresh_token() const
Definition: verify_password_response.h:482
bool has_oauth_access_token() const
Definition: verify_password_response.h:318
const StringPiece get_oauth_access_token() const
Definition: verify_password_response.h:333
bool has_oauth_authorization_code() const
Definition: verify_password_response.h:356
void set_local_id(const StringPiece &value)
Definition: verify_password_response.h:309
void clear_oauth_authorization_code()
Definition: verify_password_response.h:363
Definition: create_auth_uri_response.h:38
void clear_local_id()
Definition: verify_password_response.h:287
bool has_local_id() const
Definition: verify_password_response.h:280
const StringPiece get_id_token() const
Definition: verify_password_response.h:221
void clear_email()
Definition: verify_password_response.h:137
const StringPiece get_email() const
Definition: verify_password_response.h:145
bool has_display_name() const
Definition: verify_password_response.h:93
bool has_refresh_token() const
Definition: verify_password_response.h:467
void set_refresh_token(const StringPiece &value)
Definition: verify_password_response.h:495
const StringPiece get_display_name() const
Definition: verify_password_response.h:108
bool has_id_token() const
Definition: verify_password_response.h:206
bool get_registered() const
Definition: verify_password_response.h:519
const StringPiece get_photo_url() const
Definition: verify_password_response.h:445
void clear_oauth_expire_in()
Definition: verify_password_response.h:400
void clear_registered()
Definition: verify_password_response.h:511
bool has_registered() const
Definition: verify_password_response.h:504
bool has_photo_url() const
Definition: verify_password_response.h:430
Definition: verify_password_response.h:51
void set_kind(const StringPiece &value)
Definition: verify_password_response.h:271
void set_expires_in(int64 value)
Definition: verify_password_response.h:196
void clear_display_name()
Definition: verify_password_response.h:100
int64 get_expires_in() const
Definition: verify_password_response.h:183
void set_id_token(const StringPiece &value)
Definition: verify_password_response.h:234
void clear_photo_url()
Definition: verify_password_response.h:437
void set_display_name(const StringPiece &value)
Definition: verify_password_response.h:121
bool has_expires_in() const
Definition: verify_password_response.h:168
bool has_kind() const
Definition: verify_password_response.h:243