identitytoolkit  v3
create_auth_uri_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_CREATE_AUTH_URI_RESPONSE_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_CREATE_AUTH_URI_RESPONSE_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 
50 class CreateAuthUriResponse : public client::JsonCppData {
51  public:
57  static CreateAuthUriResponse* New();
58 
64  explicit CreateAuthUriResponse(const Json::Value& storage);
65 
71  explicit CreateAuthUriResponse(Json::Value* storage);
72 
76  virtual ~CreateAuthUriResponse();
77 
83  const StringPiece GetTypeName() const {
84  return StringPiece("google_identitytoolkit_api::CreateAuthUriResponse");
85  }
86 
92  bool has_all_providers() const {
93  return Storage().isMember("allProviders");
94  }
95 
100  MutableStorage()->removeMember("allProviders");
101  }
102 
103 
107  const client::JsonCppArray<string > get_all_providers() const {
108  const Json::Value& storage = Storage("allProviders");
109  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
110  }
111 
120  client::JsonCppArray<string > mutable_allProviders() {
121  Json::Value* storage = MutableStorage("allProviders");
122  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
123  }
124 
130  bool has_auth_uri() const {
131  return Storage().isMember("authUri");
132  }
133 
137  void clear_auth_uri() {
138  MutableStorage()->removeMember("authUri");
139  }
140 
141 
145  const StringPiece get_auth_uri() const {
146  const Json::Value& v = Storage("authUri");
147  if (v == Json::Value::null) return StringPiece("");
148  return StringPiece(v.asCString());
149  }
150 
158  void set_auth_uri(const StringPiece& value) {
159  *MutableStorage("authUri") = value.data();
160  }
161 
167  bool has_captcha_required() const {
168  return Storage().isMember("captchaRequired");
169  }
170 
175  MutableStorage()->removeMember("captchaRequired");
176  }
177 
178 
182  bool get_captcha_required() const {
183  const Json::Value& storage = Storage("captchaRequired");
184  return client::JsonValueToCppValueHelper<bool >(storage);
185  }
186 
194  void set_captcha_required(bool value) {
195  client::SetJsonValueFromCppValueHelper<bool >(
196  value, MutableStorage("captchaRequired"));
197  }
198 
205  return Storage().isMember("forExistingProvider");
206  }
207 
212  MutableStorage()->removeMember("forExistingProvider");
213  }
214 
215 
220  const Json::Value& storage = Storage("forExistingProvider");
221  return client::JsonValueToCppValueHelper<bool >(storage);
222  }
223 
231  void set_for_existing_provider(bool value) {
232  client::SetJsonValueFromCppValueHelper<bool >(
233  value, MutableStorage("forExistingProvider"));
234  }
235 
241  bool has_kind() const {
242  return Storage().isMember("kind");
243  }
244 
248  void clear_kind() {
249  MutableStorage()->removeMember("kind");
250  }
251 
252 
256  const StringPiece get_kind() const {
257  const Json::Value& v = Storage("kind");
258  if (v == Json::Value::null) return StringPiece("");
259  return StringPiece(v.asCString());
260  }
261 
269  void set_kind(const StringPiece& value) {
270  *MutableStorage("kind") = value.data();
271  }
272 
278  bool has_provider_id() const {
279  return Storage().isMember("providerId");
280  }
281 
286  MutableStorage()->removeMember("providerId");
287  }
288 
289 
293  const StringPiece get_provider_id() const {
294  const Json::Value& v = Storage("providerId");
295  if (v == Json::Value::null) return StringPiece("");
296  return StringPiece(v.asCString());
297  }
298 
306  void set_provider_id(const StringPiece& value) {
307  *MutableStorage("providerId") = value.data();
308  }
309 
315  bool has_registered() const {
316  return Storage().isMember("registered");
317  }
318 
323  MutableStorage()->removeMember("registered");
324  }
325 
326 
330  bool get_registered() const {
331  const Json::Value& storage = Storage("registered");
332  return client::JsonValueToCppValueHelper<bool >(storage);
333  }
334 
342  void set_registered(bool value) {
343  client::SetJsonValueFromCppValueHelper<bool >(
344  value, MutableStorage("registered"));
345  }
346 
352  bool has_session_id() const {
353  return Storage().isMember("sessionId");
354  }
355 
360  MutableStorage()->removeMember("sessionId");
361  }
362 
363 
367  const StringPiece get_session_id() const {
368  const Json::Value& v = Storage("sessionId");
369  if (v == Json::Value::null) return StringPiece("");
370  return StringPiece(v.asCString());
371  }
372 
380  void set_session_id(const StringPiece& value) {
381  *MutableStorage("sessionId") = value.data();
382  }
383 
389  bool has_signin_methods() const {
390  return Storage().isMember("signinMethods");
391  }
392 
397  MutableStorage()->removeMember("signinMethods");
398  }
399 
400 
404  const client::JsonCppArray<string > get_signin_methods() const {
405  const Json::Value& storage = Storage("signinMethods");
406  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
407  }
408 
417  client::JsonCppArray<string > mutable_signinMethods() {
418  Json::Value* storage = MutableStorage("signinMethods");
419  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
420  }
421 
422  private:
423  void operator=(const CreateAuthUriResponse&);
424 }; // CreateAuthUriResponse
425 } // namespace google_identitytoolkit_api
426 #endif // GOOGLE_IDENTITYTOOLKIT_API_CREATE_AUTH_URI_RESPONSE_H_
bool has_provider_id() const
Definition: create_auth_uri_response.h:278
void clear_signin_methods()
Definition: create_auth_uri_response.h:396
Definition: create_auth_uri_response.h:50
void clear_for_existing_provider()
Definition: create_auth_uri_response.h:211
bool has_registered() const
Definition: create_auth_uri_response.h:315
bool has_session_id() const
Definition: create_auth_uri_response.h:352
void clear_kind()
Definition: create_auth_uri_response.h:248
const client::JsonCppArray< string > get_all_providers() const
Definition: create_auth_uri_response.h:107
bool has_all_providers() const
Definition: create_auth_uri_response.h:92
void clear_provider_id()
Definition: create_auth_uri_response.h:285
client::JsonCppArray< string > mutable_signinMethods()
Definition: create_auth_uri_response.h:417
void set_session_id(const StringPiece &value)
Definition: create_auth_uri_response.h:380
void set_provider_id(const StringPiece &value)
Definition: create_auth_uri_response.h:306
Definition: create_auth_uri_response.cc:40
const StringPiece get_auth_uri() const
Definition: create_auth_uri_response.h:145
bool has_captcha_required() const
Definition: create_auth_uri_response.h:167
bool get_captcha_required() const
Definition: create_auth_uri_response.h:182
void set_registered(bool value)
Definition: create_auth_uri_response.h:342
const StringPiece get_kind() const
Definition: create_auth_uri_response.h:256
const StringPiece get_provider_id() const
Definition: create_auth_uri_response.h:293
void clear_captcha_required()
Definition: create_auth_uri_response.h:174
const StringPiece get_session_id() const
Definition: create_auth_uri_response.h:367
client::JsonCppArray< string > mutable_allProviders()
Definition: create_auth_uri_response.h:120
Definition: create_auth_uri_response.h:38
void set_kind(const StringPiece &value)
Definition: create_auth_uri_response.h:269
bool get_registered() const
Definition: create_auth_uri_response.h:330
void clear_session_id()
Definition: create_auth_uri_response.h:359
void clear_all_providers()
Definition: create_auth_uri_response.h:99
void clear_registered()
Definition: create_auth_uri_response.h:322
bool has_auth_uri() const
Definition: create_auth_uri_response.h:130
bool has_signin_methods() const
Definition: create_auth_uri_response.h:389
bool has_kind() const
Definition: create_auth_uri_response.h:241
const StringPiece GetTypeName() const
Definition: create_auth_uri_response.h:83
void clear_auth_uri()
Definition: create_auth_uri_response.h:137
const client::JsonCppArray< string > get_signin_methods() const
Definition: create_auth_uri_response.h:404
bool has_for_existing_provider() const
Definition: create_auth_uri_response.h:204
void set_for_existing_provider(bool value)
Definition: create_auth_uri_response.h:231
void set_auth_uri(const StringPiece &value)
Definition: create_auth_uri_response.h:158
void set_captcha_required(bool value)
Definition: create_auth_uri_response.h:194
bool get_for_existing_provider() const
Definition: create_auth_uri_response.h:219