identitytoolkit  v3
identitytoolkit_relyingparty_download_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_DOWNLOAD_ACCOUNT_REQUEST_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_IDENTITYTOOLKIT_RELYINGPARTY_DOWNLOAD_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 IdentitytoolkitRelyingpartyDownloadAccountRequest : public client::JsonCppData {
52  public:
59 
65  explicit IdentitytoolkitRelyingpartyDownloadAccountRequest(const Json::Value& storage);
66 
72  explicit IdentitytoolkitRelyingpartyDownloadAccountRequest(Json::Value* storage);
73 
78 
85  const StringPiece GetTypeName() const {
86  return StringPiece("google_identitytoolkit_api::IdentitytoolkitRelyingpartyDownloadAccountRequest");
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_max_results() const {
134  return Storage().isMember("maxResults");
135  }
136 
141  MutableStorage()->removeMember("maxResults");
142  }
143 
144 
148  uint32 get_max_results() const {
149  const Json::Value& storage = Storage("maxResults");
150  return client::JsonValueToCppValueHelper<uint32 >(storage);
151  }
152 
160  void set_max_results(uint32 value) {
161  client::SetJsonValueFromCppValueHelper<uint32 >(
162  value, MutableStorage("maxResults"));
163  }
164 
170  bool has_next_page_token() const {
171  return Storage().isMember("nextPageToken");
172  }
173 
178  MutableStorage()->removeMember("nextPageToken");
179  }
180 
181 
185  const StringPiece get_next_page_token() const {
186  const Json::Value& v = Storage("nextPageToken");
187  if (v == Json::Value::null) return StringPiece("");
188  return StringPiece(v.asCString());
189  }
190 
199  void set_next_page_token(const StringPiece& value) {
200  *MutableStorage("nextPageToken") = value.data();
201  }
202 
208  bool has_target_project_id() const {
209  return Storage().isMember("targetProjectId");
210  }
211 
216  MutableStorage()->removeMember("targetProjectId");
217  }
218 
219 
223  const StringPiece get_target_project_id() const {
224  const Json::Value& v = Storage("targetProjectId");
225  if (v == Json::Value::null) return StringPiece("");
226  return StringPiece(v.asCString());
227  }
228 
237  void set_target_project_id(const StringPiece& value) {
238  *MutableStorage("targetProjectId") = value.data();
239  }
240 
241  private:
243 }; // IdentitytoolkitRelyingpartyDownloadAccountRequest
244 } // namespace google_identitytoolkit_api
245 #endif // GOOGLE_IDENTITYTOOLKIT_API_IDENTITYTOOLKIT_RELYINGPARTY_DOWNLOAD_ACCOUNT_REQUEST_H_
bool has_max_results() const
Definition: identitytoolkit_relyingparty_download_account_request.h:133
const StringPiece get_target_project_id() const
Definition: identitytoolkit_relyingparty_download_account_request.h:223
void set_target_project_id(const StringPiece &value)
Definition: identitytoolkit_relyingparty_download_account_request.h:237
bool has_target_project_id() const
Definition: identitytoolkit_relyingparty_download_account_request.h:208
const StringPiece GetTypeName() const
Definition: identitytoolkit_relyingparty_download_account_request.h:85
uint32 get_max_results() const
Definition: identitytoolkit_relyingparty_download_account_request.h:148
Definition: create_auth_uri_response.cc:40
const StringPiece get_next_page_token() const
Definition: identitytoolkit_relyingparty_download_account_request.h:185
void set_max_results(uint32 value)
Definition: identitytoolkit_relyingparty_download_account_request.h:160
void clear_target_project_id()
Definition: identitytoolkit_relyingparty_download_account_request.h:215
int64 get_delegated_project_number() const
Definition: identitytoolkit_relyingparty_download_account_request.h:110
void set_next_page_token(const StringPiece &value)
Definition: identitytoolkit_relyingparty_download_account_request.h:199
void clear_delegated_project_number()
Definition: identitytoolkit_relyingparty_download_account_request.h:102
bool has_next_page_token() const
Definition: identitytoolkit_relyingparty_download_account_request.h:170
void set_delegated_project_number(int64 value)
Definition: identitytoolkit_relyingparty_download_account_request.h:123
Definition: create_auth_uri_response.h:38
Definition: identitytoolkit_relyingparty_download_account_request.h:51
void clear_next_page_token()
Definition: identitytoolkit_relyingparty_download_account_request.h:177
void clear_max_results()
Definition: identitytoolkit_relyingparty_download_account_request.h:140
bool has_delegated_project_number() const
Definition: identitytoolkit_relyingparty_download_account_request.h:95