identitytoolkit  v3
set_account_info_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_SET_ACCOUNT_INFO_RESPONSE_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_SET_ACCOUNT_INFO_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 SetAccountInfoResponse : public client::JsonCppData {
52  public:
58  class SetAccountInfoResponseProviderUserInfo : public client::JsonCppData {
59  public:
66 
72  explicit SetAccountInfoResponseProviderUserInfo(const Json::Value& storage);
73 
79  explicit SetAccountInfoResponseProviderUserInfo(Json::Value* storage);
80 
85 
92  const StringPiece GetTypeName() const {
93  return StringPiece("google_identitytoolkit_api::SetAccountInfoResponseProviderUserInfo");
94  }
95 
101  bool has_display_name() const {
102  return Storage().isMember("displayName");
103  }
104 
109  MutableStorage()->removeMember("displayName");
110  }
111 
112 
116  const StringPiece get_display_name() const {
117  const Json::Value& v = Storage("displayName");
118  if (v == Json::Value::null) return StringPiece("");
119  return StringPiece(v.asCString());
120  }
121 
129  void set_display_name(const StringPiece& value) {
130  *MutableStorage("displayName") = value.data();
131  }
132 
138  bool has_federated_id() const {
139  return Storage().isMember("federatedId");
140  }
141 
146  MutableStorage()->removeMember("federatedId");
147  }
148 
149 
153  const StringPiece get_federated_id() const {
154  const Json::Value& v = Storage("federatedId");
155  if (v == Json::Value::null) return StringPiece("");
156  return StringPiece(v.asCString());
157  }
158 
166  void set_federated_id(const StringPiece& value) {
167  *MutableStorage("federatedId") = value.data();
168  }
169 
175  bool has_photo_url() const {
176  return Storage().isMember("photoUrl");
177  }
178 
183  MutableStorage()->removeMember("photoUrl");
184  }
185 
186 
190  const StringPiece get_photo_url() const {
191  const Json::Value& v = Storage("photoUrl");
192  if (v == Json::Value::null) return StringPiece("");
193  return StringPiece(v.asCString());
194  }
195 
203  void set_photo_url(const StringPiece& value) {
204  *MutableStorage("photoUrl") = value.data();
205  }
206 
212  bool has_provider_id() const {
213  return Storage().isMember("providerId");
214  }
215 
220  MutableStorage()->removeMember("providerId");
221  }
222 
223 
227  const StringPiece get_provider_id() const {
228  const Json::Value& v = Storage("providerId");
229  if (v == Json::Value::null) return StringPiece("");
230  return StringPiece(v.asCString());
231  }
232 
242  void set_provider_id(const StringPiece& value) {
243  *MutableStorage("providerId") = value.data();
244  }
245 
246  private:
247  void operator=(const SetAccountInfoResponseProviderUserInfo&);
248  }; // SetAccountInfoResponseProviderUserInfo
254  static SetAccountInfoResponse* New();
255 
261  explicit SetAccountInfoResponse(const Json::Value& storage);
262 
268  explicit SetAccountInfoResponse(Json::Value* storage);
269 
273  virtual ~SetAccountInfoResponse();
274 
280  const StringPiece GetTypeName() const {
281  return StringPiece("google_identitytoolkit_api::SetAccountInfoResponse");
282  }
283 
289  bool has_display_name() const {
290  return Storage().isMember("displayName");
291  }
292 
297  MutableStorage()->removeMember("displayName");
298  }
299 
300 
304  const StringPiece get_display_name() const {
305  const Json::Value& v = Storage("displayName");
306  if (v == Json::Value::null) return StringPiece("");
307  return StringPiece(v.asCString());
308  }
309 
317  void set_display_name(const StringPiece& value) {
318  *MutableStorage("displayName") = value.data();
319  }
320 
326  bool has_email() const {
327  return Storage().isMember("email");
328  }
329 
333  void clear_email() {
334  MutableStorage()->removeMember("email");
335  }
336 
337 
341  const StringPiece get_email() const {
342  const Json::Value& v = Storage("email");
343  if (v == Json::Value::null) return StringPiece("");
344  return StringPiece(v.asCString());
345  }
346 
354  void set_email(const StringPiece& value) {
355  *MutableStorage("email") = value.data();
356  }
357 
363  bool has_email_verified() const {
364  return Storage().isMember("emailVerified");
365  }
366 
371  MutableStorage()->removeMember("emailVerified");
372  }
373 
374 
378  bool get_email_verified() const {
379  const Json::Value& storage = Storage("emailVerified");
380  return client::JsonValueToCppValueHelper<bool >(storage);
381  }
382 
390  void set_email_verified(bool value) {
391  client::SetJsonValueFromCppValueHelper<bool >(
392  value, MutableStorage("emailVerified"));
393  }
394 
400  bool has_expires_in() const {
401  return Storage().isMember("expiresIn");
402  }
403 
408  MutableStorage()->removeMember("expiresIn");
409  }
410 
411 
415  int64 get_expires_in() const {
416  const Json::Value& storage = Storage("expiresIn");
417  return client::JsonValueToCppValueHelper<int64 >(storage);
418  }
419 
428  void set_expires_in(int64 value) {
429  client::SetJsonValueFromCppValueHelper<int64 >(
430  value, MutableStorage("expiresIn"));
431  }
432 
438  bool has_id_token() const {
439  return Storage().isMember("idToken");
440  }
441 
445  void clear_id_token() {
446  MutableStorage()->removeMember("idToken");
447  }
448 
449 
453  const StringPiece get_id_token() const {
454  const Json::Value& v = Storage("idToken");
455  if (v == Json::Value::null) return StringPiece("");
456  return StringPiece(v.asCString());
457  }
458 
466  void set_id_token(const StringPiece& value) {
467  *MutableStorage("idToken") = value.data();
468  }
469 
475  bool has_kind() const {
476  return Storage().isMember("kind");
477  }
478 
482  void clear_kind() {
483  MutableStorage()->removeMember("kind");
484  }
485 
486 
490  const StringPiece get_kind() const {
491  const Json::Value& v = Storage("kind");
492  if (v == Json::Value::null) return StringPiece("");
493  return StringPiece(v.asCString());
494  }
495 
503  void set_kind(const StringPiece& value) {
504  *MutableStorage("kind") = value.data();
505  }
506 
512  bool has_local_id() const {
513  return Storage().isMember("localId");
514  }
515 
519  void clear_local_id() {
520  MutableStorage()->removeMember("localId");
521  }
522 
523 
527  const StringPiece get_local_id() const {
528  const Json::Value& v = Storage("localId");
529  if (v == Json::Value::null) return StringPiece("");
530  return StringPiece(v.asCString());
531  }
532 
540  void set_local_id(const StringPiece& value) {
541  *MutableStorage("localId") = value.data();
542  }
543 
549  bool has_new_email() const {
550  return Storage().isMember("newEmail");
551  }
552 
557  MutableStorage()->removeMember("newEmail");
558  }
559 
560 
564  const StringPiece get_new_email() const {
565  const Json::Value& v = Storage("newEmail");
566  if (v == Json::Value::null) return StringPiece("");
567  return StringPiece(v.asCString());
568  }
569 
577  void set_new_email(const StringPiece& value) {
578  *MutableStorage("newEmail") = value.data();
579  }
580 
586  bool has_password_hash() const {
587  return Storage().isMember("passwordHash");
588  }
589 
594  MutableStorage()->removeMember("passwordHash");
595  }
596 
597 
601  const StringPiece get_password_hash() const {
602  const Json::Value& v = Storage("passwordHash");
603  if (v == Json::Value::null) return StringPiece("");
604  return StringPiece(v.asCString());
605  }
606 
614  void set_password_hash(const StringPiece& value) {
615  *MutableStorage("passwordHash") = value.data();
616  }
617 
623  bool has_photo_url() const {
624  return Storage().isMember("photoUrl");
625  }
626 
631  MutableStorage()->removeMember("photoUrl");
632  }
633 
634 
638  const StringPiece get_photo_url() const {
639  const Json::Value& v = Storage("photoUrl");
640  if (v == Json::Value::null) return StringPiece("");
641  return StringPiece(v.asCString());
642  }
643 
651  void set_photo_url(const StringPiece& value) {
652  *MutableStorage("photoUrl") = value.data();
653  }
654 
660  bool has_provider_user_info() const {
661  return Storage().isMember("providerUserInfo");
662  }
663 
668  MutableStorage()->removeMember("providerUserInfo");
669  }
670 
671 
676  const client::JsonCppArray<SetAccountInfoResponseProviderUserInfo > get_provider_user_info() const {
677  const Json::Value& storage = Storage("providerUserInfo");
678  return client::JsonValueToCppValueHelper<client::JsonCppArray<SetAccountInfoResponseProviderUserInfo > >(storage);
679  }
680 
689  client::JsonCppArray<SetAccountInfoResponseProviderUserInfo > mutable_providerUserInfo() {
690  Json::Value* storage = MutableStorage("providerUserInfo");
691  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<SetAccountInfoResponseProviderUserInfo > >(storage);
692  }
693 
699  bool has_refresh_token() const {
700  return Storage().isMember("refreshToken");
701  }
702 
707  MutableStorage()->removeMember("refreshToken");
708  }
709 
710 
714  const StringPiece get_refresh_token() const {
715  const Json::Value& v = Storage("refreshToken");
716  if (v == Json::Value::null) return StringPiece("");
717  return StringPiece(v.asCString());
718  }
719 
727  void set_refresh_token(const StringPiece& value) {
728  *MutableStorage("refreshToken") = value.data();
729  }
730 
731  private:
732  void operator=(const SetAccountInfoResponse&);
733 }; // SetAccountInfoResponse
734 } // namespace google_identitytoolkit_api
735 #endif // GOOGLE_IDENTITYTOOLKIT_API_SET_ACCOUNT_INFO_RESPONSE_H_
const StringPiece get_local_id() const
Definition: set_account_info_response.h:527
void set_photo_url(const StringPiece &value)
Definition: set_account_info_response.h:651
void set_id_token(const StringPiece &value)
Definition: set_account_info_response.h:466
void clear_display_name()
Definition: set_account_info_response.h:296
void clear_kind()
Definition: set_account_info_response.h:482
client::JsonCppArray< SetAccountInfoResponseProviderUserInfo > mutable_providerUserInfo()
Definition: set_account_info_response.h:689
const StringPiece get_kind() const
Definition: set_account_info_response.h:490
bool has_photo_url() const
Definition: set_account_info_response.h:623
bool has_display_name() const
Definition: set_account_info_response.h:101
void clear_id_token()
Definition: set_account_info_response.h:445
const StringPiece GetTypeName() const
Definition: set_account_info_response.h:280
void clear_email()
Definition: set_account_info_response.h:333
const StringPiece get_photo_url() const
Definition: set_account_info_response.h:638
const StringPiece get_refresh_token() const
Definition: set_account_info_response.h:714
void clear_photo_url()
Definition: set_account_info_response.h:630
bool has_expires_in() const
Definition: set_account_info_response.h:400
Definition: create_auth_uri_response.cc:40
void set_email_verified(bool value)
Definition: set_account_info_response.h:390
const StringPiece get_id_token() const
Definition: set_account_info_response.h:453
void clear_expires_in()
Definition: set_account_info_response.h:407
const StringPiece get_display_name() const
Definition: set_account_info_response.h:304
Definition: set_account_info_response.h:51
bool has_new_email() const
Definition: set_account_info_response.h:549
void set_photo_url(const StringPiece &value)
Definition: set_account_info_response.h:203
void set_display_name(const StringPiece &value)
Definition: set_account_info_response.h:317
bool has_email() const
Definition: set_account_info_response.h:326
bool has_federated_id() const
Definition: set_account_info_response.h:138
const StringPiece get_new_email() const
Definition: set_account_info_response.h:564
const StringPiece get_federated_id() const
Definition: set_account_info_response.h:153
void set_federated_id(const StringPiece &value)
Definition: set_account_info_response.h:166
void set_display_name(const StringPiece &value)
Definition: set_account_info_response.h:129
void clear_email_verified()
Definition: set_account_info_response.h:370
void set_email(const StringPiece &value)
Definition: set_account_info_response.h:354
bool has_id_token() const
Definition: set_account_info_response.h:438
void set_provider_id(const StringPiece &value)
Definition: set_account_info_response.h:242
const StringPiece get_display_name() const
Definition: set_account_info_response.h:116
const StringPiece GetTypeName() const
Definition: set_account_info_response.h:92
void set_refresh_token(const StringPiece &value)
Definition: set_account_info_response.h:727
bool has_display_name() const
Definition: set_account_info_response.h:289
void clear_password_hash()
Definition: set_account_info_response.h:593
const StringPiece get_photo_url() const
Definition: set_account_info_response.h:190
void set_password_hash(const StringPiece &value)
Definition: set_account_info_response.h:614
void set_expires_in(int64 value)
Definition: set_account_info_response.h:428
void set_local_id(const StringPiece &value)
Definition: set_account_info_response.h:540
void set_kind(const StringPiece &value)
Definition: set_account_info_response.h:503
Definition: create_auth_uri_response.h:38
void clear_new_email()
Definition: set_account_info_response.h:556
bool has_email_verified() const
Definition: set_account_info_response.h:363
int64 get_expires_in() const
Definition: set_account_info_response.h:415
const StringPiece get_provider_id() const
Definition: set_account_info_response.h:227
bool has_local_id() const
Definition: set_account_info_response.h:512
const StringPiece get_password_hash() const
Definition: set_account_info_response.h:601
bool has_refresh_token() const
Definition: set_account_info_response.h:699
const client::JsonCppArray< SetAccountInfoResponseProviderUserInfo > get_provider_user_info() const
Definition: set_account_info_response.h:676
void clear_local_id()
Definition: set_account_info_response.h:519
void clear_provider_user_info()
Definition: set_account_info_response.h:667
void set_new_email(const StringPiece &value)
Definition: set_account_info_response.h:577
bool has_kind() const
Definition: set_account_info_response.h:475
void clear_refresh_token()
Definition: set_account_info_response.h:706
const StringPiece get_email() const
Definition: set_account_info_response.h:341
bool has_password_hash() const
Definition: set_account_info_response.h:586
bool get_email_verified() const
Definition: set_account_info_response.h:378
bool has_provider_user_info() const
Definition: set_account_info_response.h:660