30 #ifndef GOOGLE_GAMES_API_GAMES_ACHIEVEMENT_INCREMENT_H_ 31 #define GOOGLE_GAMES_API_GAMES_ACHIEVEMENT_INCREMENT_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" 86 return StringPiece(
"google_games_api::GamesAchievementIncrement");
95 return Storage().isMember(
"kind");
102 MutableStorage()->removeMember(
"kind");
110 const Json::Value& v = Storage(
"kind");
111 if (v == Json::Value::null)
return StringPiece(
"");
112 return StringPiece(v.asCString());
124 *MutableStorage(
"kind") = value.data();
133 return Storage().isMember(
"requestId");
140 MutableStorage()->removeMember(
"requestId");
148 const Json::Value& storage = Storage(
"requestId");
149 return client::JsonValueToCppValueHelper<int64 >(storage);
160 client::SetJsonValueFromCppValueHelper<int64 >(
161 value, MutableStorage(
"requestId"));
170 return Storage().isMember(
"steps");
177 MutableStorage()->removeMember(
"steps");
185 const Json::Value& storage = Storage(
"steps");
186 return client::JsonValueToCppValueHelper<int32 >(storage);
197 client::SetJsonValueFromCppValueHelper<int32 >(
198 value, MutableStorage(
"steps"));
205 #endif // GOOGLE_GAMES_API_GAMES_ACHIEVEMENT_INCREMENT_H_ int64 get_request_id() const
Definition: games_achievement_increment.h:147
bool has_kind() const
Definition: games_achievement_increment.h:94
void set_kind(const StringPiece &value)
Definition: games_achievement_increment.h:123
bool has_request_id() const
Definition: games_achievement_increment.h:132
void clear_kind()
Definition: games_achievement_increment.h:101
void set_steps(int32 value)
Definition: games_achievement_increment.h:196
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
Definition: games_achievement_increment.h:52
bool has_steps() const
Definition: games_achievement_increment.h:169
const StringPiece GetTypeName() const
Definition: games_achievement_increment.h:85
int32 get_steps() const
Definition: games_achievement_increment.h:184
void clear_request_id()
Definition: games_achievement_increment.h:139
void clear_steps()
Definition: games_achievement_increment.h:176
const StringPiece get_kind() const
Definition: games_achievement_increment.h:109
void set_request_id(int64 value)
Definition: games_achievement_increment.h:159