identitytoolkit  v3
identitytoolkit_relyingparty_delete_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_DELETE_ACCOUNT_REQUEST_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_IDENTITYTOOLKIT_RELYINGPARTY_DELETE_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 namespace Json {
40 class Value;
41 } // namespace Json
42 
44 using namespace googleapis;
45 
51 class IdentitytoolkitRelyingpartyDeleteAccountRequest : public client::JsonCppData {
52  public:
59 
65  explicit IdentitytoolkitRelyingpartyDeleteAccountRequest(const Json::Value& storage);
66 
72  explicit IdentitytoolkitRelyingpartyDeleteAccountRequest(Json::Value* storage);
73 
78 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_identitytoolkit_api::IdentitytoolkitRelyingpartyDeleteAccountRequest");
87  }
88 
96  return Storage().isMember("delegatedProjectNumber");
97  }
98 
103  MutableStorage()->removeMember("delegatedProjectNumber");
104  }
105 
106 
111  const Json::Value& storage = Storage("delegatedProjectNumber");
112  return client::JsonValueToCppValueHelper<int64 >(storage);
113  }
114 
123  void set_delegated_project_number(int64 value) {
124  client::SetJsonValueFromCppValueHelper<int64 >(
125  value, MutableStorage("delegatedProjectNumber"));
126  }
127 
133  bool has_id_token() const {
134  return Storage().isMember("idToken");
135  }
136 
140  void clear_id_token() {
141  MutableStorage()->removeMember("idToken");
142  }
143 
144 
148  const StringPiece get_id_token() const {
149  const Json::Value& v = Storage("idToken");
150  if (v == Json::Value::null) return StringPiece("");
151  return StringPiece(v.asCString());
152  }
153 
161  void set_id_token(const StringPiece& value) {
162  *MutableStorage("idToken") = value.data();
163  }
164 
170  bool has_local_id() const {
171  return Storage().isMember("localId");
172  }
173 
177  void clear_local_id() {
178  MutableStorage()->removeMember("localId");
179  }
180 
181 
185  const StringPiece get_local_id() const {
186  const Json::Value& v = Storage("localId");
187  if (v == Json::Value::null) return StringPiece("");
188  return StringPiece(v.asCString());
189  }
190 
198  void set_local_id(const StringPiece& value) {
199  *MutableStorage("localId") = value.data();
200  }
201 
202  private:
204 }; // IdentitytoolkitRelyingpartyDeleteAccountRequest
205 } // namespace google_identitytoolkit_api
206 #endif // GOOGLE_IDENTITYTOOLKIT_API_IDENTITYTOOLKIT_RELYINGPARTY_DELETE_ACCOUNT_REQUEST_H_
void clear_id_token()
Definition: identitytoolkit_relyingparty_delete_account_request.h:140
void clear_local_id()
Definition: identitytoolkit_relyingparty_delete_account_request.h:177
const StringPiece get_local_id() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:185
Definition: create_auth_uri_response.cc:40
void clear_delegated_project_number()
Definition: identitytoolkit_relyingparty_delete_account_request.h:102
void set_id_token(const StringPiece &value)
Definition: identitytoolkit_relyingparty_delete_account_request.h:161
bool has_delegated_project_number() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:95
const StringPiece get_id_token() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:148
const StringPiece GetTypeName() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:85
Definition: create_auth_uri_response.h:38
bool has_local_id() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:170
void set_local_id(const StringPiece &value)
Definition: identitytoolkit_relyingparty_delete_account_request.h:198
bool has_id_token() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:133
void set_delegated_project_number(int64 value)
Definition: identitytoolkit_relyingparty_delete_account_request.h:123
int64 get_delegated_project_number() const
Definition: identitytoolkit_relyingparty_delete_account_request.h:110
Definition: identitytoolkit_relyingparty_delete_account_request.h:51