identitytoolkit  v3
identitytoolkit_relyingparty_upload_account_request.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_IDENTITYTOOLKIT_RELYINGPARTY_UPLOAD_ACCOUNT_REQUEST_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_IDENTITYTOOLKIT_RELYINGPARTY_UPLOAD_ACCOUNT_REQUEST_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 #include "google/identitytoolkit_api/user_info.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
46 using namespace googleapis;
47 
53 class IdentitytoolkitRelyingpartyUploadAccountRequest : public client::JsonCppData {
54  public:
61 
67  explicit IdentitytoolkitRelyingpartyUploadAccountRequest(const Json::Value& storage);
68 
74  explicit IdentitytoolkitRelyingpartyUploadAccountRequest(Json::Value* storage);
75 
80 
87  const StringPiece GetTypeName() const {
88  return StringPiece("google_identitytoolkit_api::IdentitytoolkitRelyingpartyUploadAccountRequest");
89  }
90 
96  bool has_allow_overwrite() const {
97  return Storage().isMember("allowOverwrite");
98  }
99 
104  MutableStorage()->removeMember("allowOverwrite");
105  }
106 
107 
111  bool get_allow_overwrite() const {
112  const Json::Value& storage = Storage("allowOverwrite");
113  return client::JsonValueToCppValueHelper<bool >(storage);
114  }
115 
123  void set_allow_overwrite(bool value) {
124  client::SetJsonValueFromCppValueHelper<bool >(
125  value, MutableStorage("allowOverwrite"));
126  }
127 
133  bool has_block_size() const {
134  return Storage().isMember("blockSize");
135  }
136 
141  MutableStorage()->removeMember("blockSize");
142  }
143 
144 
148  int32 get_block_size() const {
149  const Json::Value& storage = Storage("blockSize");
150  return client::JsonValueToCppValueHelper<int32 >(storage);
151  }
152 
157  void set_block_size(int32 value) {
158  client::SetJsonValueFromCppValueHelper<int32 >(
159  value, MutableStorage("blockSize"));
160  }
161 
167  bool has_cpu_mem_cost() const {
168  return Storage().isMember("cpuMemCost");
169  }
170 
175  MutableStorage()->removeMember("cpuMemCost");
176  }
177 
178 
182  int32 get_cpu_mem_cost() const {
183  const Json::Value& storage = Storage("cpuMemCost");
184  return client::JsonValueToCppValueHelper<int32 >(storage);
185  }
186 
194  void set_cpu_mem_cost(int32 value) {
195  client::SetJsonValueFromCppValueHelper<int32 >(
196  value, MutableStorage("cpuMemCost"));
197  }
198 
206  return Storage().isMember("delegatedProjectNumber");
207  }
208 
213  MutableStorage()->removeMember("delegatedProjectNumber");
214  }
215 
216 
221  const Json::Value& storage = Storage("delegatedProjectNumber");
222  return client::JsonValueToCppValueHelper<int64 >(storage);
223  }
224 
233  void set_delegated_project_number(int64 value) {
234  client::SetJsonValueFromCppValueHelper<int64 >(
235  value, MutableStorage("delegatedProjectNumber"));
236  }
237 
243  bool has_dk_len() const {
244  return Storage().isMember("dkLen");
245  }
246 
250  void clear_dk_len() {
251  MutableStorage()->removeMember("dkLen");
252  }
253 
254 
258  int32 get_dk_len() const {
259  const Json::Value& storage = Storage("dkLen");
260  return client::JsonValueToCppValueHelper<int32 >(storage);
261  }
262 
267  void set_dk_len(int32 value) {
268  client::SetJsonValueFromCppValueHelper<int32 >(
269  value, MutableStorage("dkLen"));
270  }
271 
277  bool has_hash_algorithm() const {
278  return Storage().isMember("hashAlgorithm");
279  }
280 
285  MutableStorage()->removeMember("hashAlgorithm");
286  }
287 
288 
292  const StringPiece get_hash_algorithm() const {
293  const Json::Value& v = Storage("hashAlgorithm");
294  if (v == Json::Value::null) return StringPiece("");
295  return StringPiece(v.asCString());
296  }
297 
305  void set_hash_algorithm(const StringPiece& value) {
306  *MutableStorage("hashAlgorithm") = value.data();
307  }
308 
314  bool has_memory_cost() const {
315  return Storage().isMember("memoryCost");
316  }
317 
322  MutableStorage()->removeMember("memoryCost");
323  }
324 
325 
329  int32 get_memory_cost() const {
330  const Json::Value& storage = Storage("memoryCost");
331  return client::JsonValueToCppValueHelper<int32 >(storage);
332  }
333 
341  void set_memory_cost(int32 value) {
342  client::SetJsonValueFromCppValueHelper<int32 >(
343  value, MutableStorage("memoryCost"));
344  }
345 
351  bool has_parallelization() const {
352  return Storage().isMember("parallelization");
353  }
354 
359  MutableStorage()->removeMember("parallelization");
360  }
361 
362 
366  int32 get_parallelization() const {
367  const Json::Value& storage = Storage("parallelization");
368  return client::JsonValueToCppValueHelper<int32 >(storage);
369  }
370 
375  void set_parallelization(int32 value) {
376  client::SetJsonValueFromCppValueHelper<int32 >(
377  value, MutableStorage("parallelization"));
378  }
379 
385  bool has_rounds() const {
386  return Storage().isMember("rounds");
387  }
388 
392  void clear_rounds() {
393  MutableStorage()->removeMember("rounds");
394  }
395 
396 
400  int32 get_rounds() const {
401  const Json::Value& storage = Storage("rounds");
402  return client::JsonValueToCppValueHelper<int32 >(storage);
403  }
404 
412  void set_rounds(int32 value) {
413  client::SetJsonValueFromCppValueHelper<int32 >(
414  value, MutableStorage("rounds"));
415  }
416 
422  bool has_salt_separator() const {
423  return Storage().isMember("saltSeparator");
424  }
425 
430  MutableStorage()->removeMember("saltSeparator");
431  }
432 
433 
437  const StringPiece get_salt_separator() const {
438  const Json::Value& v = Storage("saltSeparator");
439  if (v == Json::Value::null) return StringPiece("");
440  return StringPiece(v.asCString());
441  }
442 
450  void set_salt_separator(const StringPiece& value) {
451  *MutableStorage("saltSeparator") = value.data();
452  }
453 
459  bool has_sanity_check() const {
460  return Storage().isMember("sanityCheck");
461  }
462 
467  MutableStorage()->removeMember("sanityCheck");
468  }
469 
470 
474  bool get_sanity_check() const {
475  const Json::Value& storage = Storage("sanityCheck");
476  return client::JsonValueToCppValueHelper<bool >(storage);
477  }
478 
487  void set_sanity_check(bool value) {
488  client::SetJsonValueFromCppValueHelper<bool >(
489  value, MutableStorage("sanityCheck"));
490  }
491 
497  bool has_signer_key() const {
498  return Storage().isMember("signerKey");
499  }
500 
505  MutableStorage()->removeMember("signerKey");
506  }
507 
508 
512  const StringPiece get_signer_key() const {
513  const Json::Value& v = Storage("signerKey");
514  if (v == Json::Value::null) return StringPiece("");
515  return StringPiece(v.asCString());
516  }
517 
525  void set_signer_key(const StringPiece& value) {
526  *MutableStorage("signerKey") = value.data();
527  }
528 
534  bool has_target_project_id() const {
535  return Storage().isMember("targetProjectId");
536  }
537 
542  MutableStorage()->removeMember("targetProjectId");
543  }
544 
545 
549  const StringPiece get_target_project_id() const {
550  const Json::Value& v = Storage("targetProjectId");
551  if (v == Json::Value::null) return StringPiece("");
552  return StringPiece(v.asCString());
553  }
554 
563  void set_target_project_id(const StringPiece& value) {
564  *MutableStorage("targetProjectId") = value.data();
565  }
566 
572  bool has_users() const {
573  return Storage().isMember("users");
574  }
575 
579  void clear_users() {
580  MutableStorage()->removeMember("users");
581  }
582 
583 
587  const client::JsonCppArray<UserInfo > get_users() const;
588 
596  client::JsonCppArray<UserInfo > mutable_users();
597 
598  private:
600 }; // IdentitytoolkitRelyingpartyUploadAccountRequest
601 } // namespace google_identitytoolkit_api
602 #endif // GOOGLE_IDENTITYTOOLKIT_API_IDENTITYTOOLKIT_RELYINGPARTY_UPLOAD_ACCOUNT_REQUEST_H_
void set_block_size(int32 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:157
bool has_salt_separator() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:422
void set_hash_algorithm(const StringPiece &value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:305
bool has_sanity_check() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:459
void set_memory_cost(int32 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:341
void clear_hash_algorithm()
Definition: identitytoolkit_relyingparty_upload_account_request.h:284
void set_rounds(int32 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:412
int64 get_delegated_project_number() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:220
bool has_memory_cost() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:314
void set_allow_overwrite(bool value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:123
void clear_parallelization()
Definition: identitytoolkit_relyingparty_upload_account_request.h:358
const StringPiece get_salt_separator() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:437
int32 get_dk_len() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:258
int32 get_rounds() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:400
void clear_sanity_check()
Definition: identitytoolkit_relyingparty_upload_account_request.h:466
Definition: create_auth_uri_response.cc:40
void clear_signer_key()
Definition: identitytoolkit_relyingparty_upload_account_request.h:504
bool has_block_size() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:133
bool has_target_project_id() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:534
const StringPiece get_target_project_id() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:549
void set_target_project_id(const StringPiece &value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:563
int32 get_cpu_mem_cost() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:182
void set_sanity_check(bool value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:487
int32 get_parallelization() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:366
const StringPiece GetTypeName() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:87
void clear_rounds()
Definition: identitytoolkit_relyingparty_upload_account_request.h:392
void clear_target_project_id()
Definition: identitytoolkit_relyingparty_upload_account_request.h:541
const StringPiece get_signer_key() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:512
bool has_allow_overwrite() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:96
void clear_allow_overwrite()
Definition: identitytoolkit_relyingparty_upload_account_request.h:103
void set_signer_key(const StringPiece &value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:525
int32 get_memory_cost() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:329
const StringPiece get_hash_algorithm() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:292
bool has_signer_key() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:497
bool has_rounds() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:385
Definition: create_auth_uri_response.h:38
bool get_allow_overwrite() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:111
bool has_parallelization() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:351
bool has_hash_algorithm() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:277
int32 get_block_size() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:148
void clear_users()
Definition: identitytoolkit_relyingparty_upload_account_request.h:579
bool has_cpu_mem_cost() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:167
bool has_users() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:572
bool get_sanity_check() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:474
void clear_salt_separator()
Definition: identitytoolkit_relyingparty_upload_account_request.h:429
Definition: identitytoolkit_relyingparty_upload_account_request.h:53
void set_cpu_mem_cost(int32 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:194
void clear_block_size()
Definition: identitytoolkit_relyingparty_upload_account_request.h:140
void clear_dk_len()
Definition: identitytoolkit_relyingparty_upload_account_request.h:250
void clear_delegated_project_number()
Definition: identitytoolkit_relyingparty_upload_account_request.h:212
bool has_dk_len() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:243
bool has_delegated_project_number() const
Definition: identitytoolkit_relyingparty_upload_account_request.h:205
void clear_cpu_mem_cost()
Definition: identitytoolkit_relyingparty_upload_account_request.h:174
void clear_memory_cost()
Definition: identitytoolkit_relyingparty_upload_account_request.h:321
void set_salt_separator(const StringPiece &value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:450
void set_parallelization(int32 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:375
void set_delegated_project_number(int64 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:233
void set_dk_len(int32 value)
Definition: identitytoolkit_relyingparty_upload_account_request.h:267