30 #ifndef GOOGLE_GAMES_API_SNAPSHOT_LIST_RESPONSE_H_ 31 #define GOOGLE_GAMES_API_SNAPSHOT_LIST_RESPONSE_H_ 34 #include "googleapis/base/macros.h" 35 #include "googleapis/client/data/jsoncpp_data.h" 36 #include "googleapis/strings/stringpiece.h" 38 #include "google/games_api/snapshot.h" 86 return StringPiece(
"google_games_api::SnapshotListResponse");
95 return Storage().isMember(
"items");
102 MutableStorage()->removeMember(
"items");
109 const client::JsonCppArray<Snapshot > get_items()
const;
118 client::JsonCppArray<Snapshot > mutable_items();
126 return Storage().isMember(
"kind");
133 MutableStorage()->removeMember(
"kind");
141 const Json::Value& v = Storage(
"kind");
142 if (v == Json::Value::null)
return StringPiece(
"");
143 return StringPiece(v.asCString());
155 *MutableStorage(
"kind") = value.data();
164 return Storage().isMember(
"nextPageToken");
171 MutableStorage()->removeMember(
"nextPageToken");
179 const Json::Value& v = Storage(
"nextPageToken");
180 if (v == Json::Value::null)
return StringPiece(
"");
181 return StringPiece(v.asCString());
193 *MutableStorage(
"nextPageToken") = value.data();
200 #endif // GOOGLE_GAMES_API_SNAPSHOT_LIST_RESPONSE_H_ void clear_items()
Definition: snapshot_list_response.h:101
void clear_next_page_token()
Definition: snapshot_list_response.h:170
const StringPiece get_kind() const
Definition: snapshot_list_response.h:140
void set_kind(const StringPiece &value)
Definition: snapshot_list_response.h:154
bool has_kind() const
Definition: snapshot_list_response.h:125
void set_next_page_token(const StringPiece &value)
Definition: snapshot_list_response.h:192
const StringPiece get_next_page_token() const
Definition: snapshot_list_response.h:178
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
Definition: snapshot_list_response.h:52
bool has_items() const
Definition: snapshot_list_response.h:94
const StringPiece GetTypeName() const
Definition: snapshot_list_response.h:85
void clear_kind()
Definition: snapshot_list_response.h:132
bool has_next_page_token() const
Definition: snapshot_list_response.h:163