identitytoolkit  v3
relyingparty.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_RELYINGPARTY_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_RELYINGPARTY_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 namespace Json {
39 class Value;
40 } // namespace Json
41 
43 using namespace googleapis;
44 
51 class Relyingparty : public client::JsonCppData {
52  public:
58  static Relyingparty* New();
59 
65  explicit Relyingparty(const Json::Value& storage);
66 
72  explicit Relyingparty(Json::Value* storage);
73 
77  virtual ~Relyingparty();
78 
84  const StringPiece GetTypeName() const {
85  return StringPiece("google_identitytoolkit_api::Relyingparty");
86  }
87 
93  bool has_android_install_app() const {
94  return Storage().isMember("androidInstallApp");
95  }
96 
101  MutableStorage()->removeMember("androidInstallApp");
102  }
103 
104 
108  bool get_android_install_app() const {
109  const Json::Value& storage = Storage("androidInstallApp");
110  return client::JsonValueToCppValueHelper<bool >(storage);
111  }
112 
121  void set_android_install_app(bool value) {
122  client::SetJsonValueFromCppValueHelper<bool >(
123  value, MutableStorage("androidInstallApp"));
124  }
125 
132  return Storage().isMember("androidMinimumVersion");
133  }
134 
139  MutableStorage()->removeMember("androidMinimumVersion");
140  }
141 
142 
146  const StringPiece get_android_minimum_version() const {
147  const Json::Value& v = Storage("androidMinimumVersion");
148  if (v == Json::Value::null) return StringPiece("");
149  return StringPiece(v.asCString());
150  }
151 
160  void set_android_minimum_version(const StringPiece& value) {
161  *MutableStorage("androidMinimumVersion") = value.data();
162  }
163 
170  return Storage().isMember("androidPackageName");
171  }
172 
177  MutableStorage()->removeMember("androidPackageName");
178  }
179 
180 
184  const StringPiece get_android_package_name() const {
185  const Json::Value& v = Storage("androidPackageName");
186  if (v == Json::Value::null) return StringPiece("");
187  return StringPiece(v.asCString());
188  }
189 
197  void set_android_package_name(const StringPiece& value) {
198  *MutableStorage("androidPackageName") = value.data();
199  }
200 
207  return Storage().isMember("canHandleCodeInApp");
208  }
209 
214  MutableStorage()->removeMember("canHandleCodeInApp");
215  }
216 
217 
222  const Json::Value& storage = Storage("canHandleCodeInApp");
223  return client::JsonValueToCppValueHelper<bool >(storage);
224  }
225 
233  void set_can_handle_code_in_app(bool value) {
234  client::SetJsonValueFromCppValueHelper<bool >(
235  value, MutableStorage("canHandleCodeInApp"));
236  }
237 
243  bool has_captcha_resp() const {
244  return Storage().isMember("captchaResp");
245  }
246 
251  MutableStorage()->removeMember("captchaResp");
252  }
253 
254 
258  const StringPiece get_captcha_resp() const {
259  const Json::Value& v = Storage("captchaResp");
260  if (v == Json::Value::null) return StringPiece("");
261  return StringPiece(v.asCString());
262  }
263 
271  void set_captcha_resp(const StringPiece& value) {
272  *MutableStorage("captchaResp") = value.data();
273  }
274 
280  bool has_challenge() const {
281  return Storage().isMember("challenge");
282  }
283 
288  MutableStorage()->removeMember("challenge");
289  }
290 
291 
295  const StringPiece get_challenge() const {
296  const Json::Value& v = Storage("challenge");
297  if (v == Json::Value::null) return StringPiece("");
298  return StringPiece(v.asCString());
299  }
300 
308  void set_challenge(const StringPiece& value) {
309  *MutableStorage("challenge") = value.data();
310  }
311 
317  bool has_continue_url() const {
318  return Storage().isMember("continueUrl");
319  }
320 
325  MutableStorage()->removeMember("continueUrl");
326  }
327 
328 
332  const StringPiece get_continue_url() const {
333  const Json::Value& v = Storage("continueUrl");
334  if (v == Json::Value::null) return StringPiece("");
335  return StringPiece(v.asCString());
336  }
337 
345  void set_continue_url(const StringPiece& value) {
346  *MutableStorage("continueUrl") = value.data();
347  }
348 
354  bool has_email() const {
355  return Storage().isMember("email");
356  }
357 
361  void clear_email() {
362  MutableStorage()->removeMember("email");
363  }
364 
365 
369  const StringPiece get_email() const {
370  const Json::Value& v = Storage("email");
371  if (v == Json::Value::null) return StringPiece("");
372  return StringPiece(v.asCString());
373  }
374 
382  void set_email(const StringPiece& value) {
383  *MutableStorage("email") = value.data();
384  }
385 
391  bool has_i_osa_pp_store_id() const {
392  return Storage().isMember("iOSAppStoreId");
393  }
394 
399  MutableStorage()->removeMember("iOSAppStoreId");
400  }
401 
402 
406  const StringPiece get_i_osa_pp_store_id() const {
407  const Json::Value& v = Storage("iOSAppStoreId");
408  if (v == Json::Value::null) return StringPiece("");
409  return StringPiece(v.asCString());
410  }
411 
419  void set_i_osa_pp_store_id(const StringPiece& value) {
420  *MutableStorage("iOSAppStoreId") = value.data();
421  }
422 
428  bool has_i_osb_undle_id() const {
429  return Storage().isMember("iOSBundleId");
430  }
431 
436  MutableStorage()->removeMember("iOSBundleId");
437  }
438 
439 
443  const StringPiece get_i_osb_undle_id() const {
444  const Json::Value& v = Storage("iOSBundleId");
445  if (v == Json::Value::null) return StringPiece("");
446  return StringPiece(v.asCString());
447  }
448 
456  void set_i_osb_undle_id(const StringPiece& value) {
457  *MutableStorage("iOSBundleId") = value.data();
458  }
459 
465  bool has_id_token() const {
466  return Storage().isMember("idToken");
467  }
468 
472  void clear_id_token() {
473  MutableStorage()->removeMember("idToken");
474  }
475 
476 
480  const StringPiece get_id_token() const {
481  const Json::Value& v = Storage("idToken");
482  if (v == Json::Value::null) return StringPiece("");
483  return StringPiece(v.asCString());
484  }
485 
493  void set_id_token(const StringPiece& value) {
494  *MutableStorage("idToken") = value.data();
495  }
496 
502  bool has_kind() const {
503  return Storage().isMember("kind");
504  }
505 
509  void clear_kind() {
510  MutableStorage()->removeMember("kind");
511  }
512 
513 
517  const StringPiece get_kind() const {
518  const Json::Value& v = Storage("kind");
519  if (v == Json::Value::null) return StringPiece("");
520  return StringPiece(v.asCString());
521  }
522 
530  void set_kind(const StringPiece& value) {
531  *MutableStorage("kind") = value.data();
532  }
533 
539  bool has_new_email() const {
540  return Storage().isMember("newEmail");
541  }
542 
547  MutableStorage()->removeMember("newEmail");
548  }
549 
550 
554  const StringPiece get_new_email() const {
555  const Json::Value& v = Storage("newEmail");
556  if (v == Json::Value::null) return StringPiece("");
557  return StringPiece(v.asCString());
558  }
559 
567  void set_new_email(const StringPiece& value) {
568  *MutableStorage("newEmail") = value.data();
569  }
570 
576  bool has_request_type() const {
577  return Storage().isMember("requestType");
578  }
579 
584  MutableStorage()->removeMember("requestType");
585  }
586 
587 
591  const StringPiece get_request_type() const {
592  const Json::Value& v = Storage("requestType");
593  if (v == Json::Value::null) return StringPiece("");
594  return StringPiece(v.asCString());
595  }
596 
604  void set_request_type(const StringPiece& value) {
605  *MutableStorage("requestType") = value.data();
606  }
607 
613  bool has_user_ip() const {
614  return Storage().isMember("userIp");
615  }
616 
620  void clear_user_ip() {
621  MutableStorage()->removeMember("userIp");
622  }
623 
624 
628  const StringPiece get_user_ip() const {
629  const Json::Value& v = Storage("userIp");
630  if (v == Json::Value::null) return StringPiece("");
631  return StringPiece(v.asCString());
632  }
633 
641  void set_user_ip(const StringPiece& value) {
642  *MutableStorage("userIp") = value.data();
643  }
644 
645  private:
646  void operator=(const Relyingparty&);
647 }; // Relyingparty
648 } // namespace google_identitytoolkit_api
649 #endif // GOOGLE_IDENTITYTOOLKIT_API_RELYINGPARTY_H_
const StringPiece get_continue_url() const
Definition: relyingparty.h:332
void set_android_minimum_version(const StringPiece &value)
Definition: relyingparty.h:160
const StringPiece get_id_token() const
Definition: relyingparty.h:480
bool has_user_ip() const
Definition: relyingparty.h:613
bool has_android_minimum_version() const
Definition: relyingparty.h:131
const StringPiece get_challenge() const
Definition: relyingparty.h:295
void clear_challenge()
Definition: relyingparty.h:287
const StringPiece get_email() const
Definition: relyingparty.h:369
void set_continue_url(const StringPiece &value)
Definition: relyingparty.h:345
bool get_can_handle_code_in_app() const
Definition: relyingparty.h:221
void clear_i_osa_pp_store_id()
Definition: relyingparty.h:398
bool has_new_email() const
Definition: relyingparty.h:539
const StringPiece GetTypeName() const
Definition: relyingparty.h:84
void clear_android_install_app()
Definition: relyingparty.h:100
bool has_captcha_resp() const
Definition: relyingparty.h:243
bool has_android_package_name() const
Definition: relyingparty.h:169
void clear_kind()
Definition: relyingparty.h:509
void set_id_token(const StringPiece &value)
Definition: relyingparty.h:493
void clear_new_email()
Definition: relyingparty.h:546
Definition: create_auth_uri_response.cc:40
bool get_android_install_app() const
Definition: relyingparty.h:108
const StringPiece get_kind() const
Definition: relyingparty.h:517
bool has_request_type() const
Definition: relyingparty.h:576
bool has_android_install_app() const
Definition: relyingparty.h:93
void clear_request_type()
Definition: relyingparty.h:583
const StringPiece get_user_ip() const
Definition: relyingparty.h:628
const StringPiece get_new_email() const
Definition: relyingparty.h:554
void clear_continue_url()
Definition: relyingparty.h:324
void set_captcha_resp(const StringPiece &value)
Definition: relyingparty.h:271
const StringPiece get_android_minimum_version() const
Definition: relyingparty.h:146
bool has_continue_url() const
Definition: relyingparty.h:317
void set_i_osb_undle_id(const StringPiece &value)
Definition: relyingparty.h:456
Definition: create_auth_uri_response.h:38
void clear_user_ip()
Definition: relyingparty.h:620
const StringPiece get_i_osb_undle_id() const
Definition: relyingparty.h:443
const StringPiece get_i_osa_pp_store_id() const
Definition: relyingparty.h:406
void set_can_handle_code_in_app(bool value)
Definition: relyingparty.h:233
const StringPiece get_request_type() const
Definition: relyingparty.h:591
bool has_email() const
Definition: relyingparty.h:354
bool has_id_token() const
Definition: relyingparty.h:465
void set_challenge(const StringPiece &value)
Definition: relyingparty.h:308
Definition: relyingparty.h:51
const StringPiece get_android_package_name() const
Definition: relyingparty.h:184
void set_i_osa_pp_store_id(const StringPiece &value)
Definition: relyingparty.h:419
bool has_i_osa_pp_store_id() const
Definition: relyingparty.h:391
void set_user_ip(const StringPiece &value)
Definition: relyingparty.h:641
void set_android_install_app(bool value)
Definition: relyingparty.h:121
bool has_challenge() const
Definition: relyingparty.h:280
void set_kind(const StringPiece &value)
Definition: relyingparty.h:530
void set_request_type(const StringPiece &value)
Definition: relyingparty.h:604
void clear_i_osb_undle_id()
Definition: relyingparty.h:435
void clear_email()
Definition: relyingparty.h:361
void clear_id_token()
Definition: relyingparty.h:472
const StringPiece get_captcha_resp() const
Definition: relyingparty.h:258
void set_new_email(const StringPiece &value)
Definition: relyingparty.h:567
void clear_can_handle_code_in_app()
Definition: relyingparty.h:213
bool has_kind() const
Definition: relyingparty.h:502
void clear_android_minimum_version()
Definition: relyingparty.h:138
void set_email(const StringPiece &value)
Definition: relyingparty.h:382
bool has_can_handle_code_in_app() const
Definition: relyingparty.h:206
void clear_android_package_name()
Definition: relyingparty.h:176
bool has_i_osb_undle_id() const
Definition: relyingparty.h:428
void set_android_package_name(const StringPiece &value)
Definition: relyingparty.h:197
void clear_captcha_resp()
Definition: relyingparty.h:250