games  v1
room_leave_diagnostics.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_LEAVE_DIAGNOSTICS_H_
31 #define GOOGLE_GAMES_API_ROOM_LEAVE_DIAGNOSTICS_H_
32 
33 #include <string>
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"
38 
39 #include "google/games_api/peer_session_diagnostics.h"
40 
41 namespace Json {
42 class Value;
43 } // namespace Json
44 
45 namespace google_games_api {
46 using namespace googleapis;
47 
53 class RoomLeaveDiagnostics : public client::JsonCppData {
54  public:
60  static RoomLeaveDiagnostics* New();
61 
67  explicit RoomLeaveDiagnostics(const Json::Value& storage);
68 
74  explicit RoomLeaveDiagnostics(Json::Value* storage);
75 
79  virtual ~RoomLeaveDiagnostics();
80 
86  const StringPiece GetTypeName() const {
87  return StringPiece("google_games_api::RoomLeaveDiagnostics");
88  }
89 
96  return Storage().isMember("androidNetworkSubtype");
97  }
98 
103  MutableStorage()->removeMember("androidNetworkSubtype");
104  }
105 
106 
111  const Json::Value& storage = Storage("androidNetworkSubtype");
112  return client::JsonValueToCppValueHelper<int32 >(storage);
113  }
114 
123  void set_android_network_subtype(int32 value) {
124  client::SetJsonValueFromCppValueHelper<int32 >(
125  value, MutableStorage("androidNetworkSubtype"));
126  }
127 
134  return Storage().isMember("androidNetworkType");
135  }
136 
141  MutableStorage()->removeMember("androidNetworkType");
142  }
143 
144 
148  int32 get_android_network_type() const {
149  const Json::Value& storage = Storage("androidNetworkType");
150  return client::JsonValueToCppValueHelper<int32 >(storage);
151  }
152 
161  void set_android_network_type(int32 value) {
162  client::SetJsonValueFromCppValueHelper<int32 >(
163  value, MutableStorage("androidNetworkType"));
164  }
165 
171  bool has_ios_network_type() const {
172  return Storage().isMember("iosNetworkType");
173  }
174 
179  MutableStorage()->removeMember("iosNetworkType");
180  }
181 
182 
186  int32 get_ios_network_type() const {
187  const Json::Value& storage = Storage("iosNetworkType");
188  return client::JsonValueToCppValueHelper<int32 >(storage);
189  }
190 
198  void set_ios_network_type(int32 value) {
199  client::SetJsonValueFromCppValueHelper<int32 >(
200  value, MutableStorage("iosNetworkType"));
201  }
202 
208  bool has_kind() const {
209  return Storage().isMember("kind");
210  }
211 
215  void clear_kind() {
216  MutableStorage()->removeMember("kind");
217  }
218 
219 
223  const StringPiece get_kind() const {
224  const Json::Value& v = Storage("kind");
225  if (v == Json::Value::null) return StringPiece("");
226  return StringPiece(v.asCString());
227  }
228 
237  void set_kind(const StringPiece& value) {
238  *MutableStorage("kind") = value.data();
239  }
240 
247  return Storage().isMember("networkOperatorCode");
248  }
249 
254  MutableStorage()->removeMember("networkOperatorCode");
255  }
256 
257 
261  const StringPiece get_network_operator_code() const {
262  const Json::Value& v = Storage("networkOperatorCode");
263  if (v == Json::Value::null) return StringPiece("");
264  return StringPiece(v.asCString());
265  }
266 
277  void set_network_operator_code(const StringPiece& value) {
278  *MutableStorage("networkOperatorCode") = value.data();
279  }
280 
287  return Storage().isMember("networkOperatorName");
288  }
289 
294  MutableStorage()->removeMember("networkOperatorName");
295  }
296 
297 
301  const StringPiece get_network_operator_name() const {
302  const Json::Value& v = Storage("networkOperatorName");
303  if (v == Json::Value::null) return StringPiece("");
304  return StringPiece(v.asCString());
305  }
306 
318  void set_network_operator_name(const StringPiece& value) {
319  *MutableStorage("networkOperatorName") = value.data();
320  }
321 
327  bool has_peer_session() const {
328  return Storage().isMember("peerSession");
329  }
330 
335  MutableStorage()->removeMember("peerSession");
336  }
337 
338 
342  const client::JsonCppArray<PeerSessionDiagnostics > get_peer_session() const;
343 
352  client::JsonCppArray<PeerSessionDiagnostics > mutable_peerSession();
353 
359  bool has_sockets_used() const {
360  return Storage().isMember("socketsUsed");
361  }
362 
367  MutableStorage()->removeMember("socketsUsed");
368  }
369 
370 
374  bool get_sockets_used() const {
375  const Json::Value& storage = Storage("socketsUsed");
376  return client::JsonValueToCppValueHelper<bool >(storage);
377  }
378 
386  void set_sockets_used(bool value) {
387  client::SetJsonValueFromCppValueHelper<bool >(
388  value, MutableStorage("socketsUsed"));
389  }
390 
391  private:
392  void operator=(const RoomLeaveDiagnostics&);
393 }; // RoomLeaveDiagnostics
394 } // namespace google_games_api
395 #endif // GOOGLE_GAMES_API_ROOM_LEAVE_DIAGNOSTICS_H_
void clear_sockets_used()
Definition: room_leave_diagnostics.h:366
bool get_sockets_used() const
Definition: room_leave_diagnostics.h:374
const StringPiece get_kind() const
Definition: room_leave_diagnostics.h:223
bool has_network_operator_code() const
Definition: room_leave_diagnostics.h:246
bool has_sockets_used() const
Definition: room_leave_diagnostics.h:359
void clear_ios_network_type()
Definition: room_leave_diagnostics.h:178
bool has_ios_network_type() const
Definition: room_leave_diagnostics.h:171
void clear_network_operator_name()
Definition: room_leave_diagnostics.h:293
void clear_network_operator_code()
Definition: room_leave_diagnostics.h:253
void clear_peer_session()
Definition: room_leave_diagnostics.h:334
const StringPiece get_network_operator_name() const
Definition: room_leave_diagnostics.h:301
void set_android_network_type(int32 value)
Definition: room_leave_diagnostics.h:161
int32 get_android_network_type() const
Definition: room_leave_diagnostics.h:148
void clear_android_network_subtype()
Definition: room_leave_diagnostics.h:102
void set_sockets_used(bool value)
Definition: room_leave_diagnostics.h:386
bool has_android_network_subtype() const
Definition: room_leave_diagnostics.h:95
void set_android_network_subtype(int32 value)
Definition: room_leave_diagnostics.h:123
const StringPiece GetTypeName() const
Definition: room_leave_diagnostics.h:86
void set_ios_network_type(int32 value)
Definition: room_leave_diagnostics.h:198
void clear_android_network_type()
Definition: room_leave_diagnostics.h:140
bool has_network_operator_name() const
Definition: room_leave_diagnostics.h:286
Definition: achievement_definition.cc:41
Definition: achievement_definition.h:39
void set_kind(const StringPiece &value)
Definition: room_leave_diagnostics.h:237
bool has_kind() const
Definition: room_leave_diagnostics.h:208
int32 get_ios_network_type() const
Definition: room_leave_diagnostics.h:186
void set_network_operator_code(const StringPiece &value)
Definition: room_leave_diagnostics.h:277
bool has_android_network_type() const
Definition: room_leave_diagnostics.h:133
int32 get_android_network_subtype() const
Definition: room_leave_diagnostics.h:110
const StringPiece get_network_operator_code() const
Definition: room_leave_diagnostics.h:261
Definition: room_leave_diagnostics.h:53
void set_network_operator_name(const StringPiece &value)
Definition: room_leave_diagnostics.h:318
void clear_kind()
Definition: room_leave_diagnostics.h:215
bool has_peer_session() const
Definition: room_leave_diagnostics.h:327