30 #ifndef GOOGLE_IDENTITYTOOLKIT_API_UPLOAD_ACCOUNT_RESPONSE_H_ 31 #define GOOGLE_IDENTITYTOOLKIT_API_UPLOAD_ACCOUNT_RESPONSE_H_ 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" 93 return StringPiece(
"google_identitytoolkit_api::UploadAccountResponseError");
102 return Storage().isMember(
"index");
109 MutableStorage()->removeMember(
"index");
117 const Json::Value& storage = Storage(
"index");
118 return client::JsonValueToCppValueHelper<int32 >(storage);
129 client::SetJsonValueFromCppValueHelper<int32 >(
130 value, MutableStorage(
"index"));
139 return Storage().isMember(
"message");
146 MutableStorage()->removeMember(
"message");
154 const Json::Value& v = Storage(
"message");
155 if (v == Json::Value::null)
return StringPiece(
"");
156 return StringPiece(v.asCString());
167 *MutableStorage(
"message") = value.data();
205 return StringPiece(
"google_identitytoolkit_api::UploadAccountResponse");
214 return Storage().isMember(
"error");
221 MutableStorage()->removeMember(
"error");
228 const client::JsonCppArray<UploadAccountResponseError >
get_error()
const {
229 const Json::Value& storage = Storage(
"error");
230 return client::JsonValueToCppValueHelper<client::JsonCppArray<UploadAccountResponseError > >(storage);
241 Json::Value* storage = MutableStorage(
"error");
242 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<UploadAccountResponseError > >(storage);
251 return Storage().isMember(
"kind");
258 MutableStorage()->removeMember(
"kind");
266 const Json::Value& v = Storage(
"kind");
267 if (v == Json::Value::null)
return StringPiece(
"");
268 return StringPiece(v.asCString());
279 *MutableStorage(
"kind") = value.data();
286 #endif // GOOGLE_IDENTITYTOOLKIT_API_UPLOAD_ACCOUNT_RESPONSE_H_
Definition: create_auth_uri_response.h:38