TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
game_utilities_types.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: game_utilities_types.proto
3 
4 #ifndef PROTOBUF_game_5futilities_5ftypes_2eproto__INCLUDED
5 #define PROTOBUF_game_5futilities_5ftypes_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
27 #include "attribute_types.pb.h"
28 #include "entity_types.pb.h"
29 #include "Define.h" // for TC_SHARED_API
30 // @@protoc_insertion_point(includes)
31 
32 namespace bgs {
33 namespace protocol {
34 namespace game_utilities {
35 namespace v1 {
36 
37 // Internal implementation detail -- do not call these.
41 
42 class PlayerVariables;
43 class ClientInfo;
44 
45 // ===================================================================
46 
48  public:
50  virtual ~PlayerVariables();
51 
52  PlayerVariables(const PlayerVariables& from);
53 
54  inline PlayerVariables& operator=(const PlayerVariables& from) {
55  CopyFrom(from);
56  return *this;
57  }
58 
59  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
60  return _unknown_fields_;
61  }
62 
63  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
64  return &_unknown_fields_;
65  }
66 
67  static const ::google::protobuf::Descriptor* descriptor();
68  static const PlayerVariables& default_instance();
69 
70  void Swap(PlayerVariables* other);
71 
72  // implements Message ----------------------------------------------
73 
74  PlayerVariables* New() const;
75  void CopyFrom(const ::google::protobuf::Message& from);
76  void MergeFrom(const ::google::protobuf::Message& from);
77  void CopyFrom(const PlayerVariables& from);
78  void MergeFrom(const PlayerVariables& from);
79  void Clear();
80  bool IsInitialized() const;
81 
82  int ByteSize() const;
83  bool MergePartialFromCodedStream(
85  void SerializeWithCachedSizes(
87  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
88  int GetCachedSize() const { return _cached_size_; }
89  private:
90  void SharedCtor();
91  void SharedDtor();
92  void SetCachedSize(int size) const;
93  public:
94  ::google::protobuf::Metadata GetMetadata() const;
95 
96  // nested types ----------------------------------------------------
97 
98  // accessors -------------------------------------------------------
99 
100  // required .bgs.protocol.Identity identity = 1;
101  inline bool has_identity() const;
102  inline void clear_identity();
103  static const int kIdentityFieldNumber = 1;
104  inline const ::bgs::protocol::Identity& identity() const;
105  inline ::bgs::protocol::Identity* mutable_identity();
106  inline ::bgs::protocol::Identity* release_identity();
107  inline void set_allocated_identity(::bgs::protocol::Identity* identity);
108 
109  // optional double rating = 2;
110  inline bool has_rating() const;
111  inline void clear_rating();
112  static const int kRatingFieldNumber = 2;
113  inline double rating() const;
114  inline void set_rating(double value);
115 
116  // repeated .bgs.protocol.Attribute attribute = 3;
117  inline int attribute_size() const;
118  inline void clear_attribute();
119  static const int kAttributeFieldNumber = 3;
120  inline const ::bgs::protocol::Attribute& attribute(int index) const;
121  inline ::bgs::protocol::Attribute* mutable_attribute(int index);
122  inline ::bgs::protocol::Attribute* add_attribute();
123  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
124  attribute() const;
125  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
126  mutable_attribute();
127 
128  // @@protoc_insertion_point(class_scope:bgs.protocol.game_utilities.v1.PlayerVariables)
129  private:
130  inline void set_has_identity();
131  inline void clear_has_identity();
132  inline void set_has_rating();
133  inline void clear_has_rating();
134 
136 
138  mutable int _cached_size_;
140  double rating_;
145 
146  void InitAsDefaultInstance();
148 };
149 // -------------------------------------------------------------------
150 
152  public:
153  ClientInfo();
154  virtual ~ClientInfo();
155 
156  ClientInfo(const ClientInfo& from);
157 
158  inline ClientInfo& operator=(const ClientInfo& from) {
159  CopyFrom(from);
160  return *this;
161  }
162 
163  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
164  return _unknown_fields_;
165  }
166 
167  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
168  return &_unknown_fields_;
169  }
170 
171  static const ::google::protobuf::Descriptor* descriptor();
172  static const ClientInfo& default_instance();
173 
174  void Swap(ClientInfo* other);
175 
176  // implements Message ----------------------------------------------
177 
178  ClientInfo* New() const;
179  void CopyFrom(const ::google::protobuf::Message& from);
180  void MergeFrom(const ::google::protobuf::Message& from);
181  void CopyFrom(const ClientInfo& from);
182  void MergeFrom(const ClientInfo& from);
183  void Clear();
184  bool IsInitialized() const;
185 
186  int ByteSize() const;
187  bool MergePartialFromCodedStream(
189  void SerializeWithCachedSizes(
191  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
192  int GetCachedSize() const { return _cached_size_; }
193  private:
194  void SharedCtor();
195  void SharedDtor();
196  void SetCachedSize(int size) const;
197  public:
198  ::google::protobuf::Metadata GetMetadata() const;
199 
200  // nested types ----------------------------------------------------
201 
202  // accessors -------------------------------------------------------
203 
204  // optional string client_address = 1;
205  inline bool has_client_address() const;
206  inline void clear_client_address();
207  static const int kClientAddressFieldNumber = 1;
208  inline const ::std::string& client_address() const;
209  inline void set_client_address(const ::std::string& value);
210  inline void set_client_address(const char* value);
211  inline void set_client_address(const char* value, size_t size);
212  inline ::std::string* mutable_client_address();
213  inline ::std::string* release_client_address();
214  inline void set_allocated_client_address(::std::string* client_address);
215 
216  // optional bool privileged_network = 2;
217  inline bool has_privileged_network() const;
218  inline void clear_privileged_network();
219  static const int kPrivilegedNetworkFieldNumber = 2;
220  inline bool privileged_network() const;
221  inline void set_privileged_network(bool value);
222 
223  // @@protoc_insertion_point(class_scope:bgs.protocol.game_utilities.v1.ClientInfo)
224  private:
225  inline void set_has_client_address();
226  inline void clear_has_client_address();
227  inline void set_has_privileged_network();
228  inline void clear_has_privileged_network();
229 
231 
233  mutable int _cached_size_;
234  ::std::string* client_address_;
239 
240  void InitAsDefaultInstance();
242 };
243 // ===================================================================
244 
245 
246 // ===================================================================
247 
248 
249 // ===================================================================
250 
251 // PlayerVariables
252 
253 // required .bgs.protocol.Identity identity = 1;
254 inline bool PlayerVariables::has_identity() const {
255  return (_has_bits_[0] & 0x00000001u) != 0;
256 }
258  _has_bits_[0] |= 0x00000001u;
259 }
261  _has_bits_[0] &= ~0x00000001u;
262 }
264  if (identity_ != NULL) identity_->::bgs::protocol::Identity::Clear();
266 }
267 inline const ::bgs::protocol::Identity& PlayerVariables::identity() const {
268  // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.PlayerVariables.identity)
270 }
271 inline ::bgs::protocol::Identity* PlayerVariables::mutable_identity() {
273  if (identity_ == NULL) identity_ = new ::bgs::protocol::Identity;
274  // @@protoc_insertion_point(field_mutable:bgs.protocol.game_utilities.v1.PlayerVariables.identity)
275  return identity_;
276 }
277 inline ::bgs::protocol::Identity* PlayerVariables::release_identity() {
280  identity_ = NULL;
281  return temp;
282 }
284  delete identity_;
286  if (identity) {
288  } else {
290  }
291  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.game_utilities.v1.PlayerVariables.identity)
292 }
293 
294 // optional double rating = 2;
295 inline bool PlayerVariables::has_rating() const {
296  return (_has_bits_[0] & 0x00000002u) != 0;
297 }
299  _has_bits_[0] |= 0x00000002u;
300 }
302  _has_bits_[0] &= ~0x00000002u;
303 }
305  rating_ = 0;
307 }
308 inline double PlayerVariables::rating() const {
309  // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.PlayerVariables.rating)
310  return rating_;
311 }
312 inline void PlayerVariables::set_rating(double value) {
313  set_has_rating();
314  rating_ = value;
315  // @@protoc_insertion_point(field_set:bgs.protocol.game_utilities.v1.PlayerVariables.rating)
316 }
317 
318 // repeated .bgs.protocol.Attribute attribute = 3;
320  return attribute_.size();
321 }
323  attribute_.Clear();
324 }
325 inline const ::bgs::protocol::Attribute& PlayerVariables::attribute(int index) const {
326  // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
327  return attribute_.Get(index);
328 }
329 inline ::bgs::protocol::Attribute* PlayerVariables::mutable_attribute(int index) {
330  // @@protoc_insertion_point(field_mutable:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
331  return attribute_.Mutable(index);
332 }
333 inline ::bgs::protocol::Attribute* PlayerVariables::add_attribute() {
334  // @@protoc_insertion_point(field_add:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
335  return attribute_.Add();
336 }
337 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
339  // @@protoc_insertion_point(field_list:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
340  return attribute_;
341 }
342 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
344  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
345  return &attribute_;
346 }
347 
348 // -------------------------------------------------------------------
349 
350 // ClientInfo
351 
352 // optional string client_address = 1;
353 inline bool ClientInfo::has_client_address() const {
354  return (_has_bits_[0] & 0x00000001u) != 0;
355 }
357  _has_bits_[0] |= 0x00000001u;
358 }
360  _has_bits_[0] &= ~0x00000001u;
361 }
364  client_address_->clear();
365  }
367 }
368 inline const ::std::string& ClientInfo::client_address() const {
369  // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
370  return *client_address_;
371 }
372 inline void ClientInfo::set_client_address(const ::std::string& value) {
375  client_address_ = new ::std::string;
376  }
377  client_address_->assign(value);
378  // @@protoc_insertion_point(field_set:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
379 }
380 inline void ClientInfo::set_client_address(const char* value) {
383  client_address_ = new ::std::string;
384  }
385  client_address_->assign(value);
386  // @@protoc_insertion_point(field_set_char:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
387 }
388 inline void ClientInfo::set_client_address(const char* value, size_t size) {
391  client_address_ = new ::std::string;
392  }
393  client_address_->assign(reinterpret_cast<const char*>(value), size);
394  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
395 }
396 inline ::std::string* ClientInfo::mutable_client_address() {
399  client_address_ = new ::std::string;
400  }
401  // @@protoc_insertion_point(field_mutable:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
402  return client_address_;
403 }
404 inline ::std::string* ClientInfo::release_client_address() {
407  return NULL;
408  } else {
409  ::std::string* temp = client_address_;
411  return temp;
412  }
413 }
414 inline void ClientInfo::set_allocated_client_address(::std::string* client_address) {
416  delete client_address_;
417  }
418  if (client_address) {
421  } else {
424  }
425  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
426 }
427 
428 // optional bool privileged_network = 2;
430  return (_has_bits_[0] & 0x00000002u) != 0;
431 }
433  _has_bits_[0] |= 0x00000002u;
434 }
436  _has_bits_[0] &= ~0x00000002u;
437 }
439  privileged_network_ = false;
441 }
442 inline bool ClientInfo::privileged_network() const {
443  // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.ClientInfo.privileged_network)
444  return privileged_network_;
445 }
449  // @@protoc_insertion_point(field_set:bgs.protocol.game_utilities.v1.ClientInfo.privileged_network)
450 }
451 
452 
453 // @@protoc_insertion_point(namespace_scope)
454 
455 } // namespace v1
456 } // namespace game_utilities
457 } // namespace protocol
458 } // namespace bgs
459 
460 #ifndef SWIG
461 namespace google {
462 namespace protobuf {
463 
464 
465 } // namespace google
466 } // namespace protobuf
467 #endif // SWIG
468 
469 // @@protoc_insertion_point(global_scope)
470 
471 #endif // PROTOBUF_game_5futilities_5ftypes_2eproto__INCLUDED
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
Definition: game_utilities_types.pb.h:141
void clear_client_address()
Definition: game_utilities_types.pb.h:362
static ClientInfo * default_instance_
Definition: game_utilities_types.pb.h:241
bool has_privileged_network() const
Definition: game_utilities_types.pb.h:429
void protobuf_AssignDesc_game_5futilities_5ftypes_2eproto()
::std::string * client_address_
Definition: game_utilities_types.pb.h:234
bool privileged_network_
Definition: game_utilities_types.pb.h:235
void set_has_privileged_network()
Definition: game_utilities_types.pb.h:432
void TC_SHARED_API protobuf_AddDesc_game_5futilities_5ftypes_2eproto()
int attribute_size() const
Definition: game_utilities_types.pb.h:319
void clear_rating()
Definition: game_utilities_types.pb.h:304
Definition: Session.h:36
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
Definition: game_utilities_types.pb.h:338
ClientInfo & operator=(const ClientInfo &from)
Definition: game_utilities_types.pb.h:158
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: game_utilities_types.pb.h:163
void set_rating(double value)
Definition: game_utilities_types.pb.h:312
Definition: unknown_field_set.h:74
void set_allocated_identity(::bgs::protocol::Identity *identity)
Definition: game_utilities_types.pb.h:283
void clear_has_privileged_network()
Definition: game_utilities_types.pb.h:435
uint8_t uint8
Definition: common.h:175
void clear_has_identity()
Definition: game_utilities_types.pb.h:260
arena_t NULL
Definition: jemalloc_internal.h:624
void set_privileged_network(bool value)
Definition: game_utilities_types.pb.h:446
Definition: message.h:147
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
Definition: game_utilities_types.pb.h:47
inline::bgs::protocol::Identity * release_identity()
Definition: game_utilities_types.pb.h:277
bool has_client_address() const
Definition: game_utilities_types.pb.h:353
int GetCachedSize() const
Definition: game_utilities_types.pb.h:88
Definition: message.h:165
void clear_has_client_address()
Definition: game_utilities_types.pb.h:359
Definition: game_utilities_types.pb.h:151
#define output
Definition: wire_format_lite.h:381
::google::protobuf::uint32 _has_bits_[1]
Definition: game_utilities_types.pb.h:232
int GetCachedSize() const
Definition: game_utilities_types.pb.h:192
Definition: coded_stream.h:156
void set_client_address(const ::std::string &value)
Definition: game_utilities_types.pb.h:372
void clear_identity()
Definition: game_utilities_types.pb.h:263
bool has_rating() const
Definition: game_utilities_types.pb.h:295
Definition: coded_stream.h:621
int _cached_size_
Definition: game_utilities_types.pb.h:233
void clear_privileged_network()
Definition: game_utilities_types.pb.h:438
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: game_utilities_types.pb.h:135
bool privileged_network() const
Definition: game_utilities_types.pb.h:442
static PlayerVariables * default_instance_
Definition: game_utilities_types.pb.h:147
Definition: message.h:150
::google::protobuf::uint32 _has_bits_[1]
Definition: game_utilities_types.pb.h:137
double rating_
Definition: game_utilities_types.pb.h:140
#define input
Definition: wire_format_lite.h:242
uint32_t uint32
Definition: common.h:177
void set_has_client_address()
Definition: game_utilities_types.pb.h:356
const ::std::string & client_address() const
Definition: game_utilities_types.pb.h:368
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: game_utilities_types.pb.h:230
#define TC_SHARED_API
Definition: Define.h:128
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: game_utilities_types.pb.h:59
PlayerVariables & operator=(const PlayerVariables &from)
Definition: game_utilities_types.pb.h:54
int _cached_size_
Definition: game_utilities_types.pb.h:138
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: game_utilities_types.pb.h:63
inline::std::string * release_client_address()
Definition: game_utilities_types.pb.h:404
inline::bgs::protocol::Identity * mutable_identity()
Definition: game_utilities_types.pb.h:271
void set_has_rating()
Definition: game_utilities_types.pb.h:298
inline::bgs::protocol::Attribute * add_attribute()
Definition: game_utilities_types.pb.h:333
double rating() const
Definition: game_utilities_types.pb.h:308
const ::bgs::protocol::Identity & identity() const
Definition: game_utilities_types.pb.h:267
::bgs::protocol::Identity * identity_
Definition: game_utilities_types.pb.h:139
void clear_has_rating()
Definition: game_utilities_types.pb.h:301
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
Definition: game_utilities_types.pb.h:343
void set_allocated_client_address(::std::string *client_address)
Definition: game_utilities_types.pb.h:414
Definition: entity_types.pb.h:134
void clear_attribute()
Definition: game_utilities_types.pb.h:322
void set_has_identity()
Definition: game_utilities_types.pb.h:257
Definition: BnetFileGenerator.h:47
void protobuf_ShutdownFile_game_5futilities_5ftypes_2eproto()
const FieldDescriptor value
Definition: descriptor.h:1522
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: game_utilities_types.pb.h:167
inline::std::string * mutable_client_address()
Definition: game_utilities_types.pb.h:396
bool has_identity() const
Definition: game_utilities_types.pb.h:254