games  v1
room_join_request.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-03-07, 08:12:42 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 Play Game Services API (games/v1)
24 // Generated from:
25 // Version: v1
26 // Revision: 358
27 // Generated by:
28 // Tool: google-apis-code-generator 1.5.1
29 // C++: 0.1.4
30 #ifndef GOOGLE_GAMES_API_ROOM_JOIN_REQUEST_H_
31 #define GOOGLE_GAMES_API_ROOM_JOIN_REQUEST_H_
32 
33 #include <string>
34 #include "googleapis/base/macros.h"
35 #include "googleapis/client/data/jsoncpp_data.h"
36 #include "googleapis/strings/stringpiece.h"
37 
38 #include "google/games_api/network_diagnostics.h"
39 #include "google/games_api/room_client_address.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_games_api {
46 using namespace googleapis;
47 
53 class RoomJoinRequest : public client::JsonCppData {
54  public:
60  static RoomJoinRequest* New();
61 
67  explicit RoomJoinRequest(const Json::Value& storage);
68 
74  explicit RoomJoinRequest(Json::Value* storage);
75 
79  virtual ~RoomJoinRequest();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_games_api::RoomJoinRequest");
88  }
89 
95  bool has_capabilities() const {
96  return Storage().isMember("capabilities");
97  }
98 
103  MutableStorage()->removeMember("capabilities");
104  }
105 
106 
110  const client::JsonCppArray<string > get_capabilities() const {
111  const Json::Value& storage = Storage("capabilities");
112  return client::JsonValueToCppValueHelper<client::JsonCppArray<string > >(storage);
113  }
114 
123  client::JsonCppArray<string > mutable_capabilities() {
124  Json::Value* storage = MutableStorage("capabilities");
125  return client::JsonValueToMutableCppValueHelper<client::JsonCppArray<string > >(storage);
126  }
127 
133  bool has_client_address() const {
134  return Storage().isMember("clientAddress");
135  }
136 
141  MutableStorage()->removeMember("clientAddress");
142  }
143 
144 
148  const RoomClientAddress get_client_address() const;
149 
158  RoomClientAddress mutable_clientAddress();
159 
165  bool has_kind() const {
166  return Storage().isMember("kind");
167  }
168 
172  void clear_kind() {
173  MutableStorage()->removeMember("kind");
174  }
175 
176 
180  const StringPiece get_kind() const {
181  const Json::Value& v = Storage("kind");
182  if (v == Json::Value::null) return StringPiece("");
183  return StringPiece(v.asCString());
184  }
185 
194  void set_kind(const StringPiece& value) {
195  *MutableStorage("kind") = value.data();
196  }
197 
203  bool has_network_diagnostics() const {
204  return Storage().isMember("networkDiagnostics");
205  }
206 
211  MutableStorage()->removeMember("networkDiagnostics");
212  }
213 
214 
219  const NetworkDiagnostics get_network_diagnostics() const;
220 
229  NetworkDiagnostics mutable_networkDiagnostics();
230 
231  private:
232  void operator=(const RoomJoinRequest&);
233 }; // RoomJoinRequest
234 } // namespace google_games_api
235 #endif // GOOGLE_GAMES_API_ROOM_JOIN_REQUEST_H_
client::JsonCppArray< string > mutable_capabilities()
Definition: room_join_request.h:123
Definition: room_client_address.h:50
const client::JsonCppArray< string > get_capabilities() const
Definition: room_join_request.h:110
const StringPiece GetTypeName() const
Definition: room_join_request.h:86
bool has_capabilities() const
Definition: room_join_request.h:95
void clear_client_address()
Definition: room_join_request.h:140
const StringPiece get_kind() const
Definition: room_join_request.h:180
bool has_client_address() const
Definition: room_join_request.h:133
Definition: achievement_definition.cc:41
void set_kind(const StringPiece &value)
Definition: room_join_request.h:194
Definition: achievement_definition.h:39
void clear_kind()
Definition: room_join_request.h:172
void clear_network_diagnostics()
Definition: room_join_request.h:210
Definition: network_diagnostics.h:51
bool has_kind() const
Definition: room_join_request.h:165
Definition: room_join_request.h:53
bool has_network_diagnostics() const
Definition: room_join_request.h:203
void clear_capabilities()
Definition: room_join_request.h:102