TrinityCore
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
9#include <google/protobuf/stubs/common.h>
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
22#include <google/protobuf/generated_message_util.h>
23#include <google/protobuf/message.h>
24#include <google/protobuf/repeated_field.h>
25#include <google/protobuf/extension_set.h>
26#include <google/protobuf/unknown_field_set.h>
27#include "attribute_types.pb.h"
28#include "entity_types.pb.h"
29#include "rpc_types.pb.h"
30#include "Define.h" // for TC_PROTO_API
31// @@protoc_insertion_point(includes)
32
33namespace bgs {
34namespace protocol {
35namespace game_utilities {
36namespace v1 {
37
38// Internal implementation detail -- do not call these.
42
43class PlayerVariables;
44class ClientInfo;
45
46// ===================================================================
47
48class TC_PROTO_API PlayerVariables : public ::google::protobuf::Message {
49 public:
52
54
56 CopyFrom(from);
57 return *this;
58 }
59
60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61 return _unknown_fields_;
62 }
63
64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65 return &_unknown_fields_;
66 }
67
68 static const ::google::protobuf::Descriptor* descriptor();
70
71 void Swap(PlayerVariables* other);
72
73 // implements Message ----------------------------------------------
74
76 int GetCachedSize() const { return _cached_size_; }
77 private:
78 void SharedCtor();
79 void SharedDtor();
80 void SetCachedSize(int size) const;
81 public:
82 ::google::protobuf::Metadata GetMetadata() const;
83
84 // nested types ----------------------------------------------------
85
86 // accessors -------------------------------------------------------
87
88 // required .bgs.protocol.Identity identity = 1;
89 inline bool has_identity() const;
90 inline void clear_identity();
91 static const int kIdentityFieldNumber = 1;
92 inline const ::bgs::protocol::Identity& identity() const;
93 inline ::bgs::protocol::Identity* mutable_identity();
94 inline ::bgs::protocol::Identity* release_identity();
95 inline void set_allocated_identity(::bgs::protocol::Identity* identity);
96
97 // optional double rating = 2;
98 inline bool has_rating() const;
99 inline void clear_rating();
100 static const int kRatingFieldNumber = 2;
101 inline double rating() const;
102 inline void set_rating(double value);
103
104 // repeated .bgs.protocol.Attribute attribute = 3;
105 inline int attribute_size() const;
106 inline void clear_attribute();
107 static const int kAttributeFieldNumber = 3;
108 inline const ::bgs::protocol::Attribute& attribute(int index) const;
109 inline ::bgs::protocol::Attribute* mutable_attribute(int index);
110 inline ::bgs::protocol::Attribute* add_attribute();
111 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
112 attribute() const;
113 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
114 mutable_attribute();
115
116 // @@protoc_insertion_point(class_scope:bgs.protocol.game_utilities.v1.PlayerVariables)
117 private:
118 inline void set_has_identity();
119 inline void clear_has_identity();
120 inline void set_has_rating();
121 inline void clear_has_rating();
122
123 ::google::protobuf::UnknownFieldSet _unknown_fields_;
124
126 mutable int _cached_size_;
128 double rating_;
129 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_;
133
136};
137// -------------------------------------------------------------------
138
139class TC_PROTO_API ClientInfo : public ::google::protobuf::Message {
140 public:
142 virtual ~ClientInfo();
143
144 ClientInfo(const ClientInfo& from);
145
146 inline ClientInfo& operator=(const ClientInfo& from) {
147 CopyFrom(from);
148 return *this;
149 }
150
151 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
152 return _unknown_fields_;
153 }
154
155 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
156 return &_unknown_fields_;
157 }
158
159 static const ::google::protobuf::Descriptor* descriptor();
161
162 void Swap(ClientInfo* other);
163
164 // implements Message ----------------------------------------------
165
166 ClientInfo* New() const;
167 int GetCachedSize() const { return _cached_size_; }
168 private:
171 void SetCachedSize(int size) const;
172 public:
173 ::google::protobuf::Metadata GetMetadata() const;
174
175 // nested types ----------------------------------------------------
176
177 // accessors -------------------------------------------------------
178
179 // optional string client_address = 1;
180 inline bool has_client_address() const;
181 inline void clear_client_address();
182 static const int kClientAddressFieldNumber = 1;
183 inline const ::std::string& client_address() const;
184 inline void set_client_address(const ::std::string& value);
185 inline void set_client_address(const char* value);
186 inline void set_client_address(const char* value, size_t size);
187 inline ::std::string* mutable_client_address();
188 inline ::std::string* release_client_address();
189 inline void set_allocated_client_address(::std::string* client_address);
190
191 // optional bool privileged_network = 2;
192 inline bool has_privileged_network() const;
193 inline void clear_privileged_network();
194 static const int kPrivilegedNetworkFieldNumber = 2;
195 inline bool privileged_network() const;
196 inline void set_privileged_network(bool value);
197
198 // @@protoc_insertion_point(class_scope:bgs.protocol.game_utilities.v1.ClientInfo)
199 private:
200 inline void set_has_client_address();
201 inline void clear_has_client_address();
202 inline void set_has_privileged_network();
203 inline void clear_has_privileged_network();
204
205 ::google::protobuf::UnknownFieldSet _unknown_fields_;
206
208 mutable int _cached_size_;
209 ::std::string* client_address_;
214
217};
218// ===================================================================
219
220// ===================================================================
221
222// ===================================================================
223
224// PlayerVariables
225
226// required .bgs.protocol.Identity identity = 1;
227inline bool PlayerVariables::has_identity() const {
228 return (_has_bits_[0] & 0x00000001u) != 0;
229}
231 _has_bits_[0] |= 0x00000001u;
232}
234 _has_bits_[0] &= ~0x00000001u;
235}
237 if (identity_ != NULL) identity_->::bgs::protocol::Identity::Clear();
239}
240inline const ::bgs::protocol::Identity& PlayerVariables::identity() const {
241 // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.PlayerVariables.identity)
242 return identity_ != NULL ? *identity_ : *default_instance_->identity_;
243}
244inline ::bgs::protocol::Identity* PlayerVariables::mutable_identity() {
246 if (identity_ == NULL) identity_ = new ::bgs::protocol::Identity;
247 // @@protoc_insertion_point(field_mutable:bgs.protocol.game_utilities.v1.PlayerVariables.identity)
248 return identity_;
249}
250inline ::bgs::protocol::Identity* PlayerVariables::release_identity() {
253 identity_ = NULL;
254 return temp;
255}
257 delete identity_;
259 if (identity) {
261 } else {
263 }
264 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.game_utilities.v1.PlayerVariables.identity)
265}
266
267// optional double rating = 2;
268inline bool PlayerVariables::has_rating() const {
269 return (_has_bits_[0] & 0x00000002u) != 0;
270}
272 _has_bits_[0] |= 0x00000002u;
273}
275 _has_bits_[0] &= ~0x00000002u;
276}
278 rating_ = 0;
280}
281inline double PlayerVariables::rating() const {
282 // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.PlayerVariables.rating)
283 return rating_;
284}
285inline void PlayerVariables::set_rating(double value) {
287 rating_ = value;
288 // @@protoc_insertion_point(field_set:bgs.protocol.game_utilities.v1.PlayerVariables.rating)
289}
290
291// repeated .bgs.protocol.Attribute attribute = 3;
293 return attribute_.size();
294}
296 attribute_.Clear();
297}
298inline const ::bgs::protocol::Attribute& PlayerVariables::attribute(int index) const {
299 // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
300 return attribute_.Get(index);
301}
302inline ::bgs::protocol::Attribute* PlayerVariables::mutable_attribute(int index) {
303 // @@protoc_insertion_point(field_mutable:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
304 return attribute_.Mutable(index);
305}
306inline ::bgs::protocol::Attribute* PlayerVariables::add_attribute() {
307 // @@protoc_insertion_point(field_add:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
308 return attribute_.Add();
309}
310inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
312 // @@protoc_insertion_point(field_list:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
313 return attribute_;
314}
315inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
317 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.game_utilities.v1.PlayerVariables.attribute)
318 return &attribute_;
319}
320
321// -------------------------------------------------------------------
322
323// ClientInfo
324
325// optional string client_address = 1;
327 return (_has_bits_[0] & 0x00000001u) != 0;
328}
330 _has_bits_[0] |= 0x00000001u;
331}
333 _has_bits_[0] &= ~0x00000001u;
334}
336 if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
337 client_address_->clear();
338 }
340}
341inline const ::std::string& ClientInfo::client_address() const {
342 // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
343 return *client_address_;
344}
345inline void ClientInfo::set_client_address(const ::std::string& value) {
347 if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
348 client_address_ = new ::std::string;
349 }
350 client_address_->assign(value);
351 // @@protoc_insertion_point(field_set:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
352}
353inline void ClientInfo::set_client_address(const char* value) {
355 if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
356 client_address_ = new ::std::string;
357 }
358 client_address_->assign(value);
359 // @@protoc_insertion_point(field_set_char:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
360}
361inline void ClientInfo::set_client_address(const char* value, size_t size) {
363 if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
364 client_address_ = new ::std::string;
365 }
366 client_address_->assign(reinterpret_cast<const char*>(value), size);
367 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
368}
369inline ::std::string* ClientInfo::mutable_client_address() {
371 if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
372 client_address_ = new ::std::string;
373 }
374 // @@protoc_insertion_point(field_mutable:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
375 return client_address_;
376}
377inline ::std::string* ClientInfo::release_client_address() {
379 if (client_address_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
380 return NULL;
381 } else {
382 ::std::string* temp = client_address_;
383 client_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
384 return temp;
385 }
386}
387inline void ClientInfo::set_allocated_client_address(::std::string* client_address) {
388 if (client_address_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
389 delete client_address_;
390 }
391 if (client_address) {
394 } else {
396 client_address_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
397 }
398 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.game_utilities.v1.ClientInfo.client_address)
399}
400
401// optional bool privileged_network = 2;
403 return (_has_bits_[0] & 0x00000002u) != 0;
404}
406 _has_bits_[0] |= 0x00000002u;
407}
409 _has_bits_[0] &= ~0x00000002u;
410}
412 privileged_network_ = false;
414}
416 // @@protoc_insertion_point(field_get:bgs.protocol.game_utilities.v1.ClientInfo.privileged_network)
417 return privileged_network_;
418}
419inline void ClientInfo::set_privileged_network(bool value) {
421 privileged_network_ = value;
422 // @@protoc_insertion_point(field_set:bgs.protocol.game_utilities.v1.ClientInfo.privileged_network)
423}
424
425// @@protoc_insertion_point(namespace_scope)
426
427} // namespace v1
428} // namespace game_utilities
429} // namespace protocol
430} // namespace bgs
431
432#ifndef SWIG
433namespace google {
434namespace protobuf {
435} // namespace google
436} // namespace protobuf
437#endif // SWIG
438
439// @@protoc_insertion_point(global_scope)
440
441#endif // PROTOBUF_game_5futilities_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
void set_allocated_client_address(::std::string *client_address)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
ClientInfo & operator=(const ClientInfo &from)
friend void protobuf_AssignDesc_game_5futilities_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_game_5futilities_5ftypes_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
friend void protobuf_ShutdownFile_game_5futilities_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
static const ClientInfo & default_instance()
static const ::google::protobuf::Descriptor * descriptor()
void set_client_address(const ::std::string &value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
PlayerVariables & operator=(const PlayerVariables &from)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_identity(::bgs::protocol::Identity *identity)
static const ::google::protobuf::Descriptor * descriptor()
const ::bgs::protocol::Identity & identity() const
friend void TC_PROTO_API protobuf_AddDesc_game_5futilities_5ftypes_2eproto()
static const PlayerVariables & default_instance()
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
inline ::bgs::protocol::Attribute * add_attribute()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::Identity * release_identity()
inline ::bgs::protocol::Identity * mutable_identity()
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_ShutdownFile_game_5futilities_5ftypes_2eproto()
void protobuf_AssignDesc_game_5futilities_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_game_5futilities_5ftypes_2eproto()
Definition: Session.h:36