identitytoolkit  v3
upload_account_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_UPLOAD_ACCOUNT_RESPONSE_H_
31 #define GOOGLE_IDENTITYTOOLKIT_API_UPLOAD_ACCOUNT_RESPONSE_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 UploadAccountResponse : public client::JsonCppData {
52  public:
58  class UploadAccountResponseError : public client::JsonCppData {
59  public:
65  static UploadAccountResponseError* New();
66 
72  explicit UploadAccountResponseError(const Json::Value& storage);
73 
79  explicit UploadAccountResponseError(Json::Value* storage);
80 
84  virtual ~UploadAccountResponseError();
85 
92  const StringPiece GetTypeName() const {
93  return StringPiece("google_identitytoolkit_api::UploadAccountResponseError");
94  }
95 
101  bool has_index() const {
102  return Storage().isMember("index");
103  }
104 
108  void clear_index() {
109  MutableStorage()->removeMember("index");
110  }
111 
112 
116  int32 get_index() const {
117  const Json::Value& storage = Storage("index");
118  return client::JsonValueToCppValueHelper<int32 >(storage);
119  }
120 
128  void set_index(int32 value) {
129  client::SetJsonValueFromCppValueHelper<int32 >(
130  value, MutableStorage("index"));
131  }
132 
138  bool has_message() const {
139  return Storage().isMember("message");
140  }
141 
145  void clear_message() {
146  MutableStorage()->removeMember("message");
147  }
148 
149 
153  const StringPiece get_message() const {
154  const Json::Value& v = Storage("message");
155  if (v == Json::Value::null) return StringPiece("");
156  return StringPiece(v.asCString());
157  }
158 
166  void set_message(const StringPiece& value) {
167  *MutableStorage("message") = value.data();
168  }
169 
170  private:
171  void operator=(const UploadAccountResponseError&);
172  }; // UploadAccountResponseError
178  static UploadAccountResponse* New();
179 
185  explicit UploadAccountResponse(const Json::Value& storage);
186 
192  explicit UploadAccountResponse(Json::Value* storage);
193 
197  virtual ~UploadAccountResponse();
198 
204  const StringPiece GetTypeName() const {
205  return StringPiece("google_identitytoolkit_api::UploadAccountResponse");
206  }
207 
213  bool has_error() const {
214  return Storage().isMember("error");
215  }
216 
220  void clear_error() {
221  MutableStorage()->removeMember("error");
222  }
223 
224 
228  const client::JsonCppArray<UploadAccountResponseError > get_error() const {
229  const Json::Value& storage = Storage("error");
230  return client::JsonValueToCppValueHelper<client::JsonCppArray<UploadAccountResponseError > >(storage);
231  }
232 
240  client::JsonCppArray<UploadAccountResponseError > mutable_error() {
241  Json::Value* storage = MutableStorage("error");
242  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<UploadAccountResponseError > >(storage);
243  }
244 
250  bool has_kind() const {
251  return Storage().isMember("kind");
252  }
253 
257  void clear_kind() {
258  MutableStorage()->removeMember("kind");
259  }
260 
261 
265  const StringPiece get_kind() const {
266  const Json::Value& v = Storage("kind");
267  if (v == Json::Value::null) return StringPiece("");
268  return StringPiece(v.asCString());
269  }
270 
278  void set_kind(const StringPiece& value) {
279  *MutableStorage("kind") = value.data();
280  }
281 
282  private:
283  void operator=(const UploadAccountResponse&);
284 }; // UploadAccountResponse
285 } // namespace google_identitytoolkit_api
286 #endif // GOOGLE_IDENTITYTOOLKIT_API_UPLOAD_ACCOUNT_RESPONSE_H_
client::JsonCppArray< UploadAccountResponseError > mutable_error()
Definition: upload_account_response.h:240
int32 get_index() const
Definition: upload_account_response.h:116
const StringPiece get_kind() const
Definition: upload_account_response.h:265
void clear_kind()
Definition: upload_account_response.h:257
const client::JsonCppArray< UploadAccountResponseError > get_error() const
Definition: upload_account_response.h:228
void set_index(int32 value)
Definition: upload_account_response.h:128
Definition: create_auth_uri_response.cc:40
bool has_kind() const
Definition: upload_account_response.h:250
void set_message(const StringPiece &value)
Definition: upload_account_response.h:166
const StringPiece GetTypeName() const
Definition: upload_account_response.h:204
void set_kind(const StringPiece &value)
Definition: upload_account_response.h:278
Definition: create_auth_uri_response.h:38
bool has_message() const
Definition: upload_account_response.h:138
const StringPiece GetTypeName() const
Definition: upload_account_response.h:92
Definition: upload_account_response.h:51
const StringPiece get_message() const
Definition: upload_account_response.h:153
bool has_index() const
Definition: upload_account_response.h:101
void clear_error()
Definition: upload_account_response.h:220
bool has_error() const
Definition: upload_account_response.h:213