identitytoolkit  v3
user_info.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_USER_INFO_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_USER_INFO_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 UserInfo : public client::JsonCppData {
52  public:
58  class UserInfoProviderUserInfo : public client::JsonCppData {
59  public:
65  static UserInfoProviderUserInfo* New();
66 
72  explicit UserInfoProviderUserInfo(const Json::Value& storage);
73 
79  explicit UserInfoProviderUserInfo(Json::Value* storage);
80 
84  virtual ~UserInfoProviderUserInfo();
85 
91  const StringPiece GetTypeName() const {
92  return StringPiece("google_identitytoolkit_api::UserInfoProviderUserInfo");
93  }
94 
100  bool has_display_name() const {
101  return Storage().isMember("displayName");
102  }
103 
108  MutableStorage()->removeMember("displayName");
109  }
110 
111 
115  const StringPiece get_display_name() const {
116  const Json::Value& v = Storage("displayName");
117  if (v == Json::Value::null) return StringPiece("");
118  return StringPiece(v.asCString());
119  }
120 
128  void set_display_name(const StringPiece& value) {
129  *MutableStorage("displayName") = value.data();
130  }
131 
137  bool has_email() const {
138  return Storage().isMember("email");
139  }
140 
144  void clear_email() {
145  MutableStorage()->removeMember("email");
146  }
147 
148 
152  const StringPiece get_email() const {
153  const Json::Value& v = Storage("email");
154  if (v == Json::Value::null) return StringPiece("");
155  return StringPiece(v.asCString());
156  }
157 
165  void set_email(const StringPiece& value) {
166  *MutableStorage("email") = value.data();
167  }
168 
174  bool has_federated_id() const {
175  return Storage().isMember("federatedId");
176  }
177 
182  MutableStorage()->removeMember("federatedId");
183  }
184 
185 
189  const StringPiece get_federated_id() const {
190  const Json::Value& v = Storage("federatedId");
191  if (v == Json::Value::null) return StringPiece("");
192  return StringPiece(v.asCString());
193  }
194 
202  void set_federated_id(const StringPiece& value) {
203  *MutableStorage("federatedId") = value.data();
204  }
205 
211  bool has_phone_number() const {
212  return Storage().isMember("phoneNumber");
213  }
214 
219  MutableStorage()->removeMember("phoneNumber");
220  }
221 
222 
226  const StringPiece get_phone_number() const {
227  const Json::Value& v = Storage("phoneNumber");
228  if (v == Json::Value::null) return StringPiece("");
229  return StringPiece(v.asCString());
230  }
231 
239  void set_phone_number(const StringPiece& value) {
240  *MutableStorage("phoneNumber") = value.data();
241  }
242 
248  bool has_photo_url() const {
249  return Storage().isMember("photoUrl");
250  }
251 
256  MutableStorage()->removeMember("photoUrl");
257  }
258 
259 
263  const StringPiece get_photo_url() const {
264  const Json::Value& v = Storage("photoUrl");
265  if (v == Json::Value::null) return StringPiece("");
266  return StringPiece(v.asCString());
267  }
268 
276  void set_photo_url(const StringPiece& value) {
277  *MutableStorage("photoUrl") = value.data();
278  }
279 
285  bool has_provider_id() const {
286  return Storage().isMember("providerId");
287  }
288 
293  MutableStorage()->removeMember("providerId");
294  }
295 
296 
300  const StringPiece get_provider_id() const {
301  const Json::Value& v = Storage("providerId");
302  if (v == Json::Value::null) return StringPiece("");
303  return StringPiece(v.asCString());
304  }
305 
315  void set_provider_id(const StringPiece& value) {
316  *MutableStorage("providerId") = value.data();
317  }
318 
324  bool has_raw_id() const {
325  return Storage().isMember("rawId");
326  }
327 
331  void clear_raw_id() {
332  MutableStorage()->removeMember("rawId");
333  }
334 
335 
339  const StringPiece get_raw_id() const {
340  const Json::Value& v = Storage("rawId");
341  if (v == Json::Value::null) return StringPiece("");
342  return StringPiece(v.asCString());
343  }
344 
352  void set_raw_id(const StringPiece& value) {
353  *MutableStorage("rawId") = value.data();
354  }
355 
361  bool has_screen_name() const {
362  return Storage().isMember("screenName");
363  }
364 
369  MutableStorage()->removeMember("screenName");
370  }
371 
372 
376  const StringPiece get_screen_name() const {
377  const Json::Value& v = Storage("screenName");
378  if (v == Json::Value::null) return StringPiece("");
379  return StringPiece(v.asCString());
380  }
381 
389  void set_screen_name(const StringPiece& value) {
390  *MutableStorage("screenName") = value.data();
391  }
392 
393  private:
394  void operator=(const UserInfoProviderUserInfo&);
395  }; // UserInfoProviderUserInfo
401  static UserInfo* New();
402 
408  explicit UserInfo(const Json::Value& storage);
409 
415  explicit UserInfo(Json::Value* storage);
416 
420  virtual ~UserInfo();
421 
427  const StringPiece GetTypeName() const {
428  return StringPiece("google_identitytoolkit_api::UserInfo");
429  }
430 
436  bool has_created_at() const {
437  return Storage().isMember("createdAt");
438  }
439 
444  MutableStorage()->removeMember("createdAt");
445  }
446 
447 
451  int64 get_created_at() const {
452  const Json::Value& storage = Storage("createdAt");
453  return client::JsonValueToCppValueHelper<int64 >(storage);
454  }
455 
463  void set_created_at(int64 value) {
464  client::SetJsonValueFromCppValueHelper<int64 >(
465  value, MutableStorage("createdAt"));
466  }
467 
473  bool has_custom_attributes() const {
474  return Storage().isMember("customAttributes");
475  }
476 
481  MutableStorage()->removeMember("customAttributes");
482  }
483 
484 
488  const StringPiece get_custom_attributes() const {
489  const Json::Value& v = Storage("customAttributes");
490  if (v == Json::Value::null) return StringPiece("");
491  return StringPiece(v.asCString());
492  }
493 
501  void set_custom_attributes(const StringPiece& value) {
502  *MutableStorage("customAttributes") = value.data();
503  }
504 
510  bool has_custom_auth() const {
511  return Storage().isMember("customAuth");
512  }
513 
518  MutableStorage()->removeMember("customAuth");
519  }
520 
521 
525  bool get_custom_auth() const {
526  const Json::Value& storage = Storage("customAuth");
527  return client::JsonValueToCppValueHelper<bool >(storage);
528  }
529 
537  void set_custom_auth(bool value) {
538  client::SetJsonValueFromCppValueHelper<bool >(
539  value, MutableStorage("customAuth"));
540  }
541 
547  bool has_disabled() const {
548  return Storage().isMember("disabled");
549  }
550 
554  void clear_disabled() {
555  MutableStorage()->removeMember("disabled");
556  }
557 
558 
562  bool get_disabled() const {
563  const Json::Value& storage = Storage("disabled");
564  return client::JsonValueToCppValueHelper<bool >(storage);
565  }
566 
574  void set_disabled(bool value) {
575  client::SetJsonValueFromCppValueHelper<bool >(
576  value, MutableStorage("disabled"));
577  }
578 
584  bool has_display_name() const {
585  return Storage().isMember("displayName");
586  }
587 
592  MutableStorage()->removeMember("displayName");
593  }
594 
595 
599  const StringPiece get_display_name() const {
600  const Json::Value& v = Storage("displayName");
601  if (v == Json::Value::null) return StringPiece("");
602  return StringPiece(v.asCString());
603  }
604 
612  void set_display_name(const StringPiece& value) {
613  *MutableStorage("displayName") = value.data();
614  }
615 
621  bool has_email() const {
622  return Storage().isMember("email");
623  }
624 
628  void clear_email() {
629  MutableStorage()->removeMember("email");
630  }
631 
632 
636  const StringPiece get_email() const {
637  const Json::Value& v = Storage("email");
638  if (v == Json::Value::null) return StringPiece("");
639  return StringPiece(v.asCString());
640  }
641 
649  void set_email(const StringPiece& value) {
650  *MutableStorage("email") = value.data();
651  }
652 
658  bool has_email_verified() const {
659  return Storage().isMember("emailVerified");
660  }
661 
666  MutableStorage()->removeMember("emailVerified");
667  }
668 
669 
673  bool get_email_verified() const {
674  const Json::Value& storage = Storage("emailVerified");
675  return client::JsonValueToCppValueHelper<bool >(storage);
676  }
677 
685  void set_email_verified(bool value) {
686  client::SetJsonValueFromCppValueHelper<bool >(
687  value, MutableStorage("emailVerified"));
688  }
689 
695  bool has_last_login_at() const {
696  return Storage().isMember("lastLoginAt");
697  }
698 
703  MutableStorage()->removeMember("lastLoginAt");
704  }
705 
706 
710  int64 get_last_login_at() const {
711  const Json::Value& storage = Storage("lastLoginAt");
712  return client::JsonValueToCppValueHelper<int64 >(storage);
713  }
714 
722  void set_last_login_at(int64 value) {
723  client::SetJsonValueFromCppValueHelper<int64 >(
724  value, MutableStorage("lastLoginAt"));
725  }
726 
732  bool has_local_id() const {
733  return Storage().isMember("localId");
734  }
735 
739  void clear_local_id() {
740  MutableStorage()->removeMember("localId");
741  }
742 
743 
747  const StringPiece get_local_id() const {
748  const Json::Value& v = Storage("localId");
749  if (v == Json::Value::null) return StringPiece("");
750  return StringPiece(v.asCString());
751  }
752 
760  void set_local_id(const StringPiece& value) {
761  *MutableStorage("localId") = value.data();
762  }
763 
769  bool has_password_hash() const {
770  return Storage().isMember("passwordHash");
771  }
772 
777  MutableStorage()->removeMember("passwordHash");
778  }
779 
780 
784  const StringPiece get_password_hash() const {
785  const Json::Value& v = Storage("passwordHash");
786  if (v == Json::Value::null) return StringPiece("");
787  return StringPiece(v.asCString());
788  }
789 
797  void set_password_hash(const StringPiece& value) {
798  *MutableStorage("passwordHash") = value.data();
799  }
800 
806  bool has_password_updated_at() const {
807  return Storage().isMember("passwordUpdatedAt");
808  }
809 
814  MutableStorage()->removeMember("passwordUpdatedAt");
815  }
816 
817 
821  double get_password_updated_at() const {
822  const Json::Value& storage = Storage("passwordUpdatedAt");
823  return client::JsonValueToCppValueHelper<double >(storage);
824  }
825 
833  void set_password_updated_at(double value) {
834  client::SetJsonValueFromCppValueHelper<double >(
835  value, MutableStorage("passwordUpdatedAt"));
836  }
837 
843  bool has_phone_number() const {
844  return Storage().isMember("phoneNumber");
845  }
846 
851  MutableStorage()->removeMember("phoneNumber");
852  }
853 
854 
858  const StringPiece get_phone_number() const {
859  const Json::Value& v = Storage("phoneNumber");
860  if (v == Json::Value::null) return StringPiece("");
861  return StringPiece(v.asCString());
862  }
863 
871  void set_phone_number(const StringPiece& value) {
872  *MutableStorage("phoneNumber") = value.data();
873  }
874 
880  bool has_photo_url() const {
881  return Storage().isMember("photoUrl");
882  }
883 
888  MutableStorage()->removeMember("photoUrl");
889  }
890 
891 
895  const StringPiece get_photo_url() const {
896  const Json::Value& v = Storage("photoUrl");
897  if (v == Json::Value::null) return StringPiece("");
898  return StringPiece(v.asCString());
899  }
900 
908  void set_photo_url(const StringPiece& value) {
909  *MutableStorage("photoUrl") = value.data();
910  }
911 
917  bool has_provider_user_info() const {
918  return Storage().isMember("providerUserInfo");
919  }
920 
925  MutableStorage()->removeMember("providerUserInfo");
926  }
927 
928 
933  const client::JsonCppArray<UserInfoProviderUserInfo > get_provider_user_info() const {
934  const Json::Value& storage = Storage("providerUserInfo");
935  return client::JsonValueToCppValueHelper<client::JsonCppArray<UserInfoProviderUserInfo > >(storage);
936  }
937 
946  client::JsonCppArray<UserInfoProviderUserInfo > mutable_providerUserInfo() {
947  Json::Value* storage = MutableStorage("providerUserInfo");
948  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<UserInfoProviderUserInfo > >(storage);
949  }
950 
956  bool has_raw_password() const {
957  return Storage().isMember("rawPassword");
958  }
959 
964  MutableStorage()->removeMember("rawPassword");
965  }
966 
967 
971  const StringPiece get_raw_password() const {
972  const Json::Value& v = Storage("rawPassword");
973  if (v == Json::Value::null) return StringPiece("");
974  return StringPiece(v.asCString());
975  }
976 
984  void set_raw_password(const StringPiece& value) {
985  *MutableStorage("rawPassword") = value.data();
986  }
987 
993  bool has_salt() const {
994  return Storage().isMember("salt");
995  }
996 
1000  void clear_salt() {
1001  MutableStorage()->removeMember("salt");
1002  }
1003 
1004 
1008  const StringPiece get_salt() const {
1009  const Json::Value& v = Storage("salt");
1010  if (v == Json::Value::null) return StringPiece("");
1011  return StringPiece(v.asCString());
1012  }
1013 
1021  void set_salt(const StringPiece& value) {
1022  *MutableStorage("salt") = value.data();
1023  }
1024 
1030  bool has_screen_name() const {
1031  return Storage().isMember("screenName");
1032  }
1033 
1038  MutableStorage()->removeMember("screenName");
1039  }
1040 
1041 
1045  const StringPiece get_screen_name() const {
1046  const Json::Value& v = Storage("screenName");
1047  if (v == Json::Value::null) return StringPiece("");
1048  return StringPiece(v.asCString());
1049  }
1050 
1058  void set_screen_name(const StringPiece& value) {
1059  *MutableStorage("screenName") = value.data();
1060  }
1061 
1067  bool has_valid_since() const {
1068  return Storage().isMember("validSince");
1069  }
1070 
1075  MutableStorage()->removeMember("validSince");
1076  }
1077 
1078 
1082  int64 get_valid_since() const {
1083  const Json::Value& storage = Storage("validSince");
1084  return client::JsonValueToCppValueHelper<int64 >(storage);
1085  }
1086 
1094  void set_valid_since(int64 value) {
1095  client::SetJsonValueFromCppValueHelper<int64 >(
1096  value, MutableStorage("validSince"));
1097  }
1098 
1104  bool has_version() const {
1105  return Storage().isMember("version");
1106  }
1107 
1111  void clear_version() {
1112  MutableStorage()->removeMember("version");
1113  }
1114 
1115 
1119  int32 get_version() const {
1120  const Json::Value& storage = Storage("version");
1121  return client::JsonValueToCppValueHelper<int32 >(storage);
1122  }
1123 
1131  void set_version(int32 value) {
1132  client::SetJsonValueFromCppValueHelper<int32 >(
1133  value, MutableStorage("version"));
1134  }
1135 
1136  private:
1137  void operator=(const UserInfo&);
1138 }; // UserInfo
1139 } // namespace google_identitytoolkit_api
1140 #endif // GOOGLE_IDENTITYTOOLKIT_API_USER_INFO_H_
void clear_valid_since()
Definition: user_info.h:1074
void clear_email()
Definition: user_info.h:628
void set_screen_name(const StringPiece &value)
Definition: user_info.h:389
void set_local_id(const StringPiece &value)
Definition: user_info.h:760
const StringPiece get_display_name() const
Definition: user_info.h:115
const StringPiece GetTypeName() const
Definition: user_info.h:91
void set_password_updated_at(double value)
Definition: user_info.h:833
bool has_email() const
Definition: user_info.h:621
void set_password_hash(const StringPiece &value)
Definition: user_info.h:797
const StringPiece get_password_hash() const
Definition: user_info.h:784
bool has_provider_user_info() const
Definition: user_info.h:917
void set_phone_number(const StringPiece &value)
Definition: user_info.h:239
void clear_email_verified()
Definition: user_info.h:665
const StringPiece get_display_name() const
Definition: user_info.h:599
const StringPiece get_custom_attributes() const
Definition: user_info.h:488
bool has_display_name() const
Definition: user_info.h:584
const StringPiece get_salt() const
Definition: user_info.h:1008
bool has_photo_url() const
Definition: user_info.h:880
void set_email_verified(bool value)
Definition: user_info.h:685
const StringPiece get_local_id() const
Definition: user_info.h:747
void set_photo_url(const StringPiece &value)
Definition: user_info.h:908
void clear_display_name()
Definition: user_info.h:591
bool has_provider_id() const
Definition: user_info.h:285
bool has_photo_url() const
Definition: user_info.h:248
Definition: create_auth_uri_response.cc:40
void set_photo_url(const StringPiece &value)
Definition: user_info.h:276
void clear_local_id()
Definition: user_info.h:739
bool has_phone_number() const
Definition: user_info.h:843
void set_phone_number(const StringPiece &value)
Definition: user_info.h:871
bool has_version() const
Definition: user_info.h:1104
void clear_salt()
Definition: user_info.h:1000
void set_salt(const StringPiece &value)
Definition: user_info.h:1021
void set_custom_auth(bool value)
Definition: user_info.h:537
const StringPiece get_screen_name() const
Definition: user_info.h:1045
bool has_screen_name() const
Definition: user_info.h:1030
void clear_raw_password()
Definition: user_info.h:963
bool get_disabled() const
Definition: user_info.h:562
void set_disabled(bool value)
Definition: user_info.h:574
void set_version(int32 value)
Definition: user_info.h:1131
void clear_password_hash()
Definition: user_info.h:776
bool has_disabled() const
Definition: user_info.h:547
void set_email(const StringPiece &value)
Definition: user_info.h:649
void clear_created_at()
Definition: user_info.h:443
void set_display_name(const StringPiece &value)
Definition: user_info.h:612
bool has_email() const
Definition: user_info.h:137
int64 get_created_at() const
Definition: user_info.h:451
void set_created_at(int64 value)
Definition: user_info.h:463
bool has_password_hash() const
Definition: user_info.h:769
void clear_version()
Definition: user_info.h:1111
int64 get_valid_since() const
Definition: user_info.h:1082
void clear_password_updated_at()
Definition: user_info.h:813
const StringPiece get_photo_url() const
Definition: user_info.h:263
client::JsonCppArray< UserInfoProviderUserInfo > mutable_providerUserInfo()
Definition: user_info.h:946
bool has_raw_password() const
Definition: user_info.h:956
void set_display_name(const StringPiece &value)
Definition: user_info.h:128
void clear_phone_number()
Definition: user_info.h:850
Definition: create_auth_uri_response.h:38
bool get_email_verified() const
Definition: user_info.h:673
int64 get_last_login_at() const
Definition: user_info.h:710
bool has_raw_id() const
Definition: user_info.h:324
const StringPiece get_federated_id() const
Definition: user_info.h:189
const StringPiece get_phone_number() const
Definition: user_info.h:858
const client::JsonCppArray< UserInfoProviderUserInfo > get_provider_user_info() const
Definition: user_info.h:933
int32 get_version() const
Definition: user_info.h:1119
const StringPiece get_screen_name() const
Definition: user_info.h:376
bool has_federated_id() const
Definition: user_info.h:174
bool has_last_login_at() const
Definition: user_info.h:695
bool has_valid_since() const
Definition: user_info.h:1067
bool has_password_updated_at() const
Definition: user_info.h:806
const StringPiece get_raw_id() const
Definition: user_info.h:339
void clear_provider_user_info()
Definition: user_info.h:924
bool has_local_id() const
Definition: user_info.h:732
bool get_custom_auth() const
Definition: user_info.h:525
const StringPiece get_phone_number() const
Definition: user_info.h:226
double get_password_updated_at() const
Definition: user_info.h:821
void clear_custom_attributes()
Definition: user_info.h:480
const StringPiece get_provider_id() const
Definition: user_info.h:300
void clear_last_login_at()
Definition: user_info.h:702
void clear_disabled()
Definition: user_info.h:554
void set_raw_password(const StringPiece &value)
Definition: user_info.h:984
void set_valid_since(int64 value)
Definition: user_info.h:1094
void set_federated_id(const StringPiece &value)
Definition: user_info.h:202
void clear_photo_url()
Definition: user_info.h:887
bool has_phone_number() const
Definition: user_info.h:211
bool has_custom_attributes() const
Definition: user_info.h:473
bool has_email_verified() const
Definition: user_info.h:658
bool has_created_at() const
Definition: user_info.h:436
const StringPiece get_email() const
Definition: user_info.h:636
bool has_salt() const
Definition: user_info.h:993
void set_screen_name(const StringPiece &value)
Definition: user_info.h:1058
void set_email(const StringPiece &value)
Definition: user_info.h:165
const StringPiece get_email() const
Definition: user_info.h:152
bool has_custom_auth() const
Definition: user_info.h:510
void clear_custom_auth()
Definition: user_info.h:517
const StringPiece get_raw_password() const
Definition: user_info.h:971
void set_last_login_at(int64 value)
Definition: user_info.h:722
void set_custom_attributes(const StringPiece &value)
Definition: user_info.h:501
Definition: user_info.h:51
const StringPiece get_photo_url() const
Definition: user_info.h:895
void clear_screen_name()
Definition: user_info.h:1037
void set_provider_id(const StringPiece &value)
Definition: user_info.h:315
bool has_screen_name() const
Definition: user_info.h:361
const StringPiece GetTypeName() const
Definition: user_info.h:427
bool has_display_name() const
Definition: user_info.h:100
void set_raw_id(const StringPiece &value)
Definition: user_info.h:352