TrinityCore
entity_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: entity_types.proto
3
4#ifndef PROTOBUF_entity_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_entity_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>
29#include "Define.h" // for TC_PROTO_API
30// @@protoc_insertion_point(includes)
31
32namespace bgs {
33namespace protocol {
34
35// Internal implementation detail -- do not call these.
39
40class EntityId;
41class Identity;
42
43// ===================================================================
44
45class TC_PROTO_API EntityId : public ::google::protobuf::Message {
46 public:
48 virtual ~EntityId();
49
50 EntityId(const EntityId& from);
51
52 inline EntityId& operator=(const EntityId& from) {
53 CopyFrom(from);
54 return *this;
55 }
56
57 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58 return _unknown_fields_;
59 }
60
61 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62 return &_unknown_fields_;
63 }
64
65 static const ::google::protobuf::Descriptor* descriptor();
66 static const EntityId& default_instance();
67
68 void Swap(EntityId* other);
69
70 // implements Message ----------------------------------------------
71
72 EntityId* New() const;
73 int GetCachedSize() const { return _cached_size_; }
74 private:
75 void SharedCtor();
76 void SharedDtor();
77 void SetCachedSize(int size) const;
78 public:
79 ::google::protobuf::Metadata GetMetadata() const;
80
81 // nested types ----------------------------------------------------
82
83 // accessors -------------------------------------------------------
84
85 // required fixed64 high = 1;
86 inline bool has_high() const;
87 inline void clear_high();
88 static const int kHighFieldNumber = 1;
90 inline void set_high(::google::protobuf::uint64 value);
91
92 // required fixed64 low = 2;
93 inline bool has_low() const;
94 inline void clear_low();
95 static const int kLowFieldNumber = 2;
97 inline void set_low(::google::protobuf::uint64 value);
98
99 // @@protoc_insertion_point(class_scope:bgs.protocol.EntityId)
100 private:
101 inline void set_has_high();
102 inline void clear_has_high();
103 inline void set_has_low();
104 inline void clear_has_low();
105
106 ::google::protobuf::UnknownFieldSet _unknown_fields_;
107
109 mutable int _cached_size_;
115
118};
119// -------------------------------------------------------------------
120
121class TC_PROTO_API Identity : public ::google::protobuf::Message {
122 public:
124 virtual ~Identity();
125
126 Identity(const Identity& from);
127
128 inline Identity& operator=(const Identity& from) {
129 CopyFrom(from);
130 return *this;
131 }
132
133 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
134 return _unknown_fields_;
135 }
136
137 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
138 return &_unknown_fields_;
139 }
140
141 static const ::google::protobuf::Descriptor* descriptor();
142 static const Identity& default_instance();
143
144 void Swap(Identity* other);
145
146 // implements Message ----------------------------------------------
147
148 Identity* New() const;
149 int GetCachedSize() const { return _cached_size_; }
150 private:
153 void SetCachedSize(int size) const;
154 public:
155 ::google::protobuf::Metadata GetMetadata() const;
156
157 // nested types ----------------------------------------------------
158
159 // accessors -------------------------------------------------------
160
161 // optional .bgs.protocol.EntityId account_id = 1;
162 inline bool has_account_id() const;
163 inline void clear_account_id();
164 static const int kAccountIdFieldNumber = 1;
165 inline const ::bgs::protocol::EntityId& account_id() const;
166 inline ::bgs::protocol::EntityId* mutable_account_id();
167 inline ::bgs::protocol::EntityId* release_account_id();
168 inline void set_allocated_account_id(::bgs::protocol::EntityId* account_id);
169
170 // optional .bgs.protocol.EntityId game_account_id = 2;
171 inline bool has_game_account_id() const;
172 inline void clear_game_account_id();
173 static const int kGameAccountIdFieldNumber = 2;
174 inline const ::bgs::protocol::EntityId& game_account_id() const;
175 inline ::bgs::protocol::EntityId* mutable_game_account_id();
176 inline ::bgs::protocol::EntityId* release_game_account_id();
177 inline void set_allocated_game_account_id(::bgs::protocol::EntityId* game_account_id);
178
179 // @@protoc_insertion_point(class_scope:bgs.protocol.Identity)
180 private:
181 inline void set_has_account_id();
182 inline void clear_has_account_id();
183 inline void set_has_game_account_id();
184 inline void clear_has_game_account_id();
185
186 ::google::protobuf::UnknownFieldSet _unknown_fields_;
187
189 mutable int _cached_size_;
195
198};
199// ===================================================================
200
201// ===================================================================
202
203// ===================================================================
204
205// EntityId
206
207// required fixed64 high = 1;
208inline bool EntityId::has_high() const {
209 return (_has_bits_[0] & 0x00000001u) != 0;
210}
212 _has_bits_[0] |= 0x00000001u;
213}
215 _has_bits_[0] &= ~0x00000001u;
216}
217inline void EntityId::clear_high() {
218 high_ = GOOGLE_ULONGLONG(0);
220}
222 // @@protoc_insertion_point(field_get:bgs.protocol.EntityId.high)
223 return high_;
224}
226 set_has_high();
227 high_ = value;
228 // @@protoc_insertion_point(field_set:bgs.protocol.EntityId.high)
229}
230
231// required fixed64 low = 2;
232inline bool EntityId::has_low() const {
233 return (_has_bits_[0] & 0x00000002u) != 0;
234}
236 _has_bits_[0] |= 0x00000002u;
237}
239 _has_bits_[0] &= ~0x00000002u;
240}
241inline void EntityId::clear_low() {
242 low_ = GOOGLE_ULONGLONG(0);
244}
246 // @@protoc_insertion_point(field_get:bgs.protocol.EntityId.low)
247 return low_;
248}
250 set_has_low();
251 low_ = value;
252 // @@protoc_insertion_point(field_set:bgs.protocol.EntityId.low)
253}
254
255// -------------------------------------------------------------------
256
257// Identity
258
259// optional .bgs.protocol.EntityId account_id = 1;
260inline bool Identity::has_account_id() const {
261 return (_has_bits_[0] & 0x00000001u) != 0;
262}
264 _has_bits_[0] |= 0x00000001u;
265}
267 _has_bits_[0] &= ~0x00000001u;
268}
270 if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear();
272}
273inline const ::bgs::protocol::EntityId& Identity::account_id() const {
274 // @@protoc_insertion_point(field_get:bgs.protocol.Identity.account_id)
276}
277inline ::bgs::protocol::EntityId* Identity::mutable_account_id() {
279 if (account_id_ == NULL) account_id_ = new ::bgs::protocol::EntityId;
280 // @@protoc_insertion_point(field_mutable:bgs.protocol.Identity.account_id)
281 return account_id_;
282}
283inline ::bgs::protocol::EntityId* Identity::release_account_id() {
286 account_id_ = NULL;
287 return temp;
288}
290 delete account_id_;
292 if (account_id) {
294 } else {
296 }
297 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Identity.account_id)
298}
299
300// optional .bgs.protocol.EntityId game_account_id = 2;
301inline bool Identity::has_game_account_id() const {
302 return (_has_bits_[0] & 0x00000002u) != 0;
303}
305 _has_bits_[0] |= 0x00000002u;
306}
308 _has_bits_[0] &= ~0x00000002u;
309}
311 if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear();
313}
314inline const ::bgs::protocol::EntityId& Identity::game_account_id() const {
315 // @@protoc_insertion_point(field_get:bgs.protocol.Identity.game_account_id)
317}
318inline ::bgs::protocol::EntityId* Identity::mutable_game_account_id() {
320 if (game_account_id_ == NULL) game_account_id_ = new ::bgs::protocol::EntityId;
321 // @@protoc_insertion_point(field_mutable:bgs.protocol.Identity.game_account_id)
322 return game_account_id_;
323}
324inline ::bgs::protocol::EntityId* Identity::release_game_account_id() {
327 game_account_id_ = NULL;
328 return temp;
329}
331 delete game_account_id_;
333 if (game_account_id) {
335 } else {
337 }
338 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Identity.game_account_id)
339}
340
341// @@protoc_insertion_point(namespace_scope)
342
343} // namespace protocol
344} // namespace bgs
345
346#ifndef SWIG
347namespace google {
348namespace protobuf {
349} // namespace google
350} // namespace protobuf
351#endif // SWIG
352
353// @@protoc_insertion_point(global_scope)
354
355#endif // PROTOBUF_entity_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
static EntityId * default_instance_
void Swap(EntityId *other)
static const ::google::protobuf::Descriptor * descriptor()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::uint64 high() const
void set_high(::google::protobuf::uint64 value)
::google::protobuf::uint64 low_
::google::protobuf::UnknownFieldSet _unknown_fields_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::uint64 low() const
::google::protobuf::uint64 high_
EntityId * New() const
EntityId & operator=(const EntityId &from)
static const EntityId & default_instance()
void set_low(::google::protobuf::uint64 value)
::google::protobuf::Metadata GetMetadata() const
friend void protobuf_ShutdownFile_entity_5ftypes_2eproto()
::google::protobuf::uint32 _has_bits_[1]
friend void protobuf_AssignDesc_entity_5ftypes_2eproto()
EntityId(const EntityId &from)
void SetCachedSize(int size) const
friend void TC_PROTO_API protobuf_AddDesc_entity_5ftypes_2eproto()
const ::bgs::protocol::EntityId & account_id() const
Identity(const Identity &from)
static const Identity & default_instance()
inline ::bgs::protocol::EntityId * mutable_account_id()
::google::protobuf::Metadata GetMetadata() const
Identity * New() const
::bgs::protocol::EntityId * account_id_
::bgs::protocol::EntityId * game_account_id_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Identity & operator=(const Identity &from)
inline ::bgs::protocol::EntityId * mutable_game_account_id()
bool has_game_account_id() const
void set_allocated_account_id(::bgs::protocol::EntityId *account_id)
static Identity * default_instance_
const ::bgs::protocol::EntityId & game_account_id() const
inline ::bgs::protocol::EntityId * release_game_account_id()
void SetCachedSize(int size) const
friend void protobuf_ShutdownFile_entity_5ftypes_2eproto()
void Swap(Identity *other)
inline ::bgs::protocol::EntityId * release_account_id()
::google::protobuf::uint32 _has_bits_[1]
friend void protobuf_AssignDesc_entity_5ftypes_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_allocated_game_account_id(::bgs::protocol::EntityId *game_account_id)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void TC_PROTO_API protobuf_AddDesc_entity_5ftypes_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_AssignDesc_entity_5ftypes_2eproto()
void protobuf_ShutdownFile_entity_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_entity_5ftypes_2eproto()
Definition: Session.h:36