30 #ifndef GOOGLE_GAMES_API_ROOM_CREATE_REQUEST_H_ 31 #define GOOGLE_GAMES_API_ROOM_CREATE_REQUEST_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" 39 #include "google/games_api/network_diagnostics.h" 40 #include "google/games_api/room_auto_matching_criteria.h" 41 #include "google/games_api/room_client_address.h" 89 return StringPiece(
"google_games_api::RoomCreateRequest");
98 return Storage().isMember(
"autoMatchingCriteria");
105 MutableStorage()->removeMember(
"autoMatchingCriteria");
131 return Storage().isMember(
"capabilities");
138 MutableStorage()->removeMember(
"capabilities");
146 const Json::Value& storage = Storage(
"capabilities");
147 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
159 Json::Value* storage = MutableStorage(
"capabilities");
160 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
169 return Storage().isMember(
"clientAddress");
176 MutableStorage()->removeMember(
"clientAddress");
201 return Storage().isMember(
"invitedPlayerIds");
208 MutableStorage()->removeMember(
"invitedPlayerIds");
217 const Json::Value& storage = Storage(
"invitedPlayerIds");
218 return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
230 Json::Value* storage = MutableStorage(
"invitedPlayerIds");
231 return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
240 return Storage().isMember(
"kind");
247 MutableStorage()->removeMember(
"kind");
255 const Json::Value& v = Storage(
"kind");
256 if (v == Json::Value::null)
return StringPiece(
"");
257 return StringPiece(v.asCString());
269 *MutableStorage(
"kind") = value.data();
278 return Storage().isMember(
"networkDiagnostics");
285 MutableStorage()->removeMember(
"networkDiagnostics");
311 return Storage().isMember(
"requestId");
318 MutableStorage()->removeMember(
"requestId");
326 const Json::Value& storage = Storage(
"requestId");
327 return client::JsonValueToCppValueHelper<int64 >(storage);
339 client::SetJsonValueFromCppValueHelper<int64 >(
340 value, MutableStorage(
"requestId"));
349 return Storage().isMember(
"variant");
356 MutableStorage()->removeMember(
"variant");
364 const Json::Value& storage = Storage(
"variant");
365 return client::JsonValueToCppValueHelper<int32 >(storage);
378 client::SetJsonValueFromCppValueHelper<int32 >(
379 value, MutableStorage(
"variant"));
386 #endif // GOOGLE_GAMES_API_ROOM_CREATE_REQUEST_H_ const client::JsonCppArray< string > get_capabilities() const
Definition: room_create_request.h:145
void clear_auto_matching_criteria()
Definition: room_create_request.h:104
Definition: room_client_address.h:50
void set_variant(int32 value)
Definition: room_create_request.h:377
Definition: room_create_request.h:55
void clear_capabilities()
Definition: room_create_request.h:137
const StringPiece GetTypeName() const
Definition: room_create_request.h:88
bool has_invited_player_ids() const
Definition: room_create_request.h:200
void set_request_id(int64 value)
Definition: room_create_request.h:338
const StringPiece get_kind() const
Definition: room_create_request.h:254
bool has_client_address() const
Definition: room_create_request.h:168
bool has_auto_matching_criteria() const
Definition: room_create_request.h:97
bool has_request_id() const
Definition: room_create_request.h:310
void clear_client_address()
Definition: room_create_request.h:175
bool has_network_diagnostics() const
Definition: room_create_request.h:277
void clear_kind()
Definition: room_create_request.h:246
bool has_kind() const
Definition: room_create_request.h:239
void clear_variant()
Definition: room_create_request.h:355
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void clear_network_diagnostics()
Definition: room_create_request.h:284
client::JsonCppArray< string > mutable_capabilities()
Definition: room_create_request.h:158
void clear_invited_player_ids()
Definition: room_create_request.h:207
void clear_request_id()
Definition: room_create_request.h:317
bool has_variant() const
Definition: room_create_request.h:348
int64 get_request_id() const
Definition: room_create_request.h:325
client::JsonCppArray< string > mutable_invitedPlayerIds()
Definition: room_create_request.h:229
Definition: network_diagnostics.h:51
void set_kind(const StringPiece &value)
Definition: room_create_request.h:268
const client::JsonCppArray< string > get_invited_player_ids() const
Definition: room_create_request.h:216
bool has_capabilities() const
Definition: room_create_request.h:130
Definition: room_auto_matching_criteria.h:51
int32 get_variant() const
Definition: room_create_request.h:363