TrinityCore
presence_listener.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: presence_listener.proto
3
4#ifndef PROTOBUF_presence_5flistener_2eproto__INCLUDED
5#define PROTOBUF_presence_5flistener_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 "presence_types.pb.h"
28#include "account_types.pb.h"
29#include "rpc_types.pb.h"
30#include "ServiceBase.h"
31#include "MessageBuffer.h"
32#include <functional>
33#include <type_traits>
34// @@protoc_insertion_point(includes)
35
36namespace bgs {
37namespace protocol {
38namespace presence {
39namespace v1 {
40
41// Internal implementation detail -- do not call these.
45
48
49// ===================================================================
50
51class TC_PROTO_API SubscribeNotification : public ::google::protobuf::Message {
52 public:
55
57
59 CopyFrom(from);
60 return *this;
61 }
62
63 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
64 return _unknown_fields_;
65 }
66
67 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
68 return &_unknown_fields_;
69 }
70
71 static const ::google::protobuf::Descriptor* descriptor();
73
75
76 // implements Message ----------------------------------------------
77
79 int GetCachedSize() const { return _cached_size_; }
80 private:
81 void SharedCtor();
82 void SharedDtor();
83 void SetCachedSize(int size) const;
84 public:
85 ::google::protobuf::Metadata GetMetadata() const;
86
87 // nested types ----------------------------------------------------
88
89 // accessors -------------------------------------------------------
90
91 // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1;
92 inline bool has_subscriber_id() const;
93 inline void clear_subscriber_id();
94 static const int kSubscriberIdFieldNumber = 1;
95 inline const ::bgs::protocol::account::v1::AccountId& subscriber_id() const;
96 inline ::bgs::protocol::account::v1::AccountId* mutable_subscriber_id();
97 inline ::bgs::protocol::account::v1::AccountId* release_subscriber_id();
98 inline void set_allocated_subscriber_id(::bgs::protocol::account::v1::AccountId* subscriber_id);
99
100 // repeated .bgs.protocol.presence.v1.PresenceState state = 2;
101 inline int state_size() const;
102 inline void clear_state();
103 static const int kStateFieldNumber = 2;
104 inline const ::bgs::protocol::presence::v1::PresenceState& state(int index) const;
105 inline ::bgs::protocol::presence::v1::PresenceState* mutable_state(int index);
106 inline ::bgs::protocol::presence::v1::PresenceState* add_state();
107 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >&
108 state() const;
109 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >*
110 mutable_state();
111
112 // optional uint32 subscriber_program = 3;
113 inline bool has_subscriber_program() const;
114 inline void clear_subscriber_program();
115 static const int kSubscriberProgramFieldNumber = 3;
116 inline ::google::protobuf::uint32 subscriber_program() const;
117 inline void set_subscriber_program(::google::protobuf::uint32 value);
118
119 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.SubscribeNotification)
120 private:
121 inline void set_has_subscriber_id();
122 inline void clear_has_subscriber_id();
123 inline void set_has_subscriber_program();
124 inline void clear_has_subscriber_program();
125
126 ::google::protobuf::UnknownFieldSet _unknown_fields_;
127
129 mutable int _cached_size_;
131 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > state_;
136
139};
140// -------------------------------------------------------------------
141
142class TC_PROTO_API StateChangedNotification : public ::google::protobuf::Message {
143 public:
146
148
150 CopyFrom(from);
151 return *this;
152 }
153
154 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
155 return _unknown_fields_;
156 }
157
158 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
159 return &_unknown_fields_;
160 }
161
162 static const ::google::protobuf::Descriptor* descriptor();
164
166
167 // implements Message ----------------------------------------------
168
170 int GetCachedSize() const { return _cached_size_; }
171 private:
174 void SetCachedSize(int size) const;
175 public:
176 ::google::protobuf::Metadata GetMetadata() const;
177
178 // nested types ----------------------------------------------------
179
180 // accessors -------------------------------------------------------
181
182 // optional .bgs.protocol.account.v1.AccountId subscriber_id = 1;
183 inline bool has_subscriber_id() const;
184 inline void clear_subscriber_id();
185 static const int kSubscriberIdFieldNumber = 1;
186 inline const ::bgs::protocol::account::v1::AccountId& subscriber_id() const;
187 inline ::bgs::protocol::account::v1::AccountId* mutable_subscriber_id();
188 inline ::bgs::protocol::account::v1::AccountId* release_subscriber_id();
189 inline void set_allocated_subscriber_id(::bgs::protocol::account::v1::AccountId* subscriber_id);
190
191 // repeated .bgs.protocol.presence.v1.PresenceState state = 2;
192 inline int state_size() const;
193 inline void clear_state();
194 static const int kStateFieldNumber = 2;
195 inline const ::bgs::protocol::presence::v1::PresenceState& state(int index) const;
196 inline ::bgs::protocol::presence::v1::PresenceState* mutable_state(int index);
197 inline ::bgs::protocol::presence::v1::PresenceState* add_state();
198 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >&
199 state() const;
200 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >*
201 mutable_state();
202
203 // optional uint32 subscriber_program = 3;
204 inline bool has_subscriber_program() const;
205 inline void clear_subscriber_program();
206 static const int kSubscriberProgramFieldNumber = 3;
207 inline ::google::protobuf::uint32 subscriber_program() const;
208 inline void set_subscriber_program(::google::protobuf::uint32 value);
209
210 // @@protoc_insertion_point(class_scope:bgs.protocol.presence.v1.StateChangedNotification)
211 private:
212 inline void set_has_subscriber_id();
213 inline void clear_has_subscriber_id();
214 inline void set_has_subscriber_program();
215 inline void clear_has_subscriber_program();
216
217 ::google::protobuf::UnknownFieldSet _unknown_fields_;
218
220 mutable int _cached_size_;
222 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > state_;
227
230};
231// ===================================================================
232
234{
235 public:
236
237 explicit PresenceListener(bool use_original_hash);
243
244 typedef std::integral_constant<uint32, 0x890AB85Fu> OriginalHash;
245 typedef std::integral_constant<uint32, 0xE8836F50u> NameHash;
246
247 static google::protobuf::ServiceDescriptor const* descriptor();
248
249 // client methods --------------------------------------------------
250 void OnSubscribe(::bgs::protocol::presence::v1::SubscribeNotification const* request, bool client = false, bool server = false);
251 void OnStateChanged(::bgs::protocol::presence::v1::StateChangedNotification const* request, bool client = false, bool server = false);
252
253 void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final;
254};
255
256// ===================================================================
257
258// ===================================================================
259
260// SubscribeNotification
261
262// optional .bgs.protocol.account.v1.AccountId subscriber_id = 1;
264 return (_has_bits_[0] & 0x00000001u) != 0;
265}
267 _has_bits_[0] |= 0x00000001u;
268}
270 _has_bits_[0] &= ~0x00000001u;
271}
273 if (subscriber_id_ != NULL) subscriber_id_->::bgs::protocol::account::v1::AccountId::Clear();
275}
276inline const ::bgs::protocol::account::v1::AccountId& SubscribeNotification::subscriber_id() const {
277 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.SubscribeNotification.subscriber_id)
279}
280inline ::bgs::protocol::account::v1::AccountId* SubscribeNotification::mutable_subscriber_id() {
282 if (subscriber_id_ == NULL) subscriber_id_ = new ::bgs::protocol::account::v1::AccountId;
283 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.SubscribeNotification.subscriber_id)
284 return subscriber_id_;
285}
286inline ::bgs::protocol::account::v1::AccountId* SubscribeNotification::release_subscriber_id() {
289 subscriber_id_ = NULL;
290 return temp;
291}
293 delete subscriber_id_;
295 if (subscriber_id) {
297 } else {
299 }
300 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.SubscribeNotification.subscriber_id)
301}
302
303// repeated .bgs.protocol.presence.v1.PresenceState state = 2;
305 return state_.size();
306}
308 state_.Clear();
309}
310inline const ::bgs::protocol::presence::v1::PresenceState& SubscribeNotification::state(int index) const {
311 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.SubscribeNotification.state)
312 return state_.Get(index);
313}
314inline ::bgs::protocol::presence::v1::PresenceState* SubscribeNotification::mutable_state(int index) {
315 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.SubscribeNotification.state)
316 return state_.Mutable(index);
317}
318inline ::bgs::protocol::presence::v1::PresenceState* SubscribeNotification::add_state() {
319 // @@protoc_insertion_point(field_add:bgs.protocol.presence.v1.SubscribeNotification.state)
320 return state_.Add();
321}
322inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >&
324 // @@protoc_insertion_point(field_list:bgs.protocol.presence.v1.SubscribeNotification.state)
325 return state_;
326}
327inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >*
329 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v1.SubscribeNotification.state)
330 return &state_;
331}
332
333// optional uint32 subscriber_program = 3;
335 return (_has_bits_[0] & 0x00000004u) != 0;
336}
338 _has_bits_[0] |= 0x00000004u;
339}
341 _has_bits_[0] &= ~0x00000004u;
342}
346}
348 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.SubscribeNotification.subscriber_program)
349 return subscriber_program_;
350}
353 subscriber_program_ = value;
354 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.SubscribeNotification.subscriber_program)
355}
356
357// -------------------------------------------------------------------
358
359// StateChangedNotification
360
361// optional .bgs.protocol.account.v1.AccountId subscriber_id = 1;
363 return (_has_bits_[0] & 0x00000001u) != 0;
364}
366 _has_bits_[0] |= 0x00000001u;
367}
369 _has_bits_[0] &= ~0x00000001u;
370}
372 if (subscriber_id_ != NULL) subscriber_id_->::bgs::protocol::account::v1::AccountId::Clear();
374}
375inline const ::bgs::protocol::account::v1::AccountId& StateChangedNotification::subscriber_id() const {
376 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.StateChangedNotification.subscriber_id)
378}
379inline ::bgs::protocol::account::v1::AccountId* StateChangedNotification::mutable_subscriber_id() {
381 if (subscriber_id_ == NULL) subscriber_id_ = new ::bgs::protocol::account::v1::AccountId;
382 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.StateChangedNotification.subscriber_id)
383 return subscriber_id_;
384}
385inline ::bgs::protocol::account::v1::AccountId* StateChangedNotification::release_subscriber_id() {
388 subscriber_id_ = NULL;
389 return temp;
390}
392 delete subscriber_id_;
394 if (subscriber_id) {
396 } else {
398 }
399 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.presence.v1.StateChangedNotification.subscriber_id)
400}
401
402// repeated .bgs.protocol.presence.v1.PresenceState state = 2;
404 return state_.size();
405}
407 state_.Clear();
408}
409inline const ::bgs::protocol::presence::v1::PresenceState& StateChangedNotification::state(int index) const {
410 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.StateChangedNotification.state)
411 return state_.Get(index);
412}
413inline ::bgs::protocol::presence::v1::PresenceState* StateChangedNotification::mutable_state(int index) {
414 // @@protoc_insertion_point(field_mutable:bgs.protocol.presence.v1.StateChangedNotification.state)
415 return state_.Mutable(index);
416}
417inline ::bgs::protocol::presence::v1::PresenceState* StateChangedNotification::add_state() {
418 // @@protoc_insertion_point(field_add:bgs.protocol.presence.v1.StateChangedNotification.state)
419 return state_.Add();
420}
421inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >&
423 // @@protoc_insertion_point(field_list:bgs.protocol.presence.v1.StateChangedNotification.state)
424 return state_;
425}
426inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState >*
428 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.presence.v1.StateChangedNotification.state)
429 return &state_;
430}
431
432// optional uint32 subscriber_program = 3;
434 return (_has_bits_[0] & 0x00000004u) != 0;
435}
437 _has_bits_[0] |= 0x00000004u;
438}
440 _has_bits_[0] &= ~0x00000004u;
441}
445}
447 // @@protoc_insertion_point(field_get:bgs.protocol.presence.v1.StateChangedNotification.subscriber_program)
448 return subscriber_program_;
449}
452 subscriber_program_ = value;
453 // @@protoc_insertion_point(field_set:bgs.protocol.presence.v1.StateChangedNotification.subscriber_program)
454}
455
456// @@protoc_insertion_point(namespace_scope)
457
458} // namespace v1
459} // namespace presence
460} // namespace protocol
461} // namespace bgs
462
463#ifndef SWIG
464namespace google {
465namespace protobuf {
466} // namespace google
467} // namespace protobuf
468#endif // SWIG
469
470// @@protoc_insertion_point(global_scope)
471
472#endif // PROTOBUF_presence_5flistener_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
std::integral_constant< uint32, 0x890AB85Fu > OriginalHash
void OnSubscribe(::bgs::protocol::presence::v1::SubscribeNotification const *request, bool client=false, bool server=false)
static google::protobuf::ServiceDescriptor const * descriptor()
void OnStateChanged(::bgs::protocol::presence::v1::StateChangedNotification const *request, bool client=false, bool server=false)
PresenceListener & operator=(PresenceListener const &)=delete
void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) final
PresenceListener(PresenceListener const &)=delete
PresenceListener(PresenceListener &&)=delete
PresenceListener & operator=(PresenceListener &&)=delete
std::integral_constant< uint32, 0xE8836F50u > NameHash
inline ::bgs::protocol::account::v1::AccountId * release_subscriber_id()
StateChangedNotification(const StateChangedNotification &from)
void Swap(StateChangedNotification *other)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::bgs::protocol::account::v1::AccountId & subscriber_id() const
static const StateChangedNotification & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
StateChangedNotification & operator=(const StateChangedNotification &from)
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > & state() const
void set_subscriber_program(::google::protobuf::uint32 value)
::google::protobuf::Metadata GetMetadata() const
::bgs::protocol::account::v1::AccountId * subscriber_id_
friend void TC_PROTO_API protobuf_AddDesc_presence_5flistener_2eproto()
inline ::bgs::protocol::account::v1::AccountId * mutable_subscriber_id()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > * mutable_state()
inline ::google::protobuf::uint32 subscriber_program() const
inline ::bgs::protocol::presence::v1::PresenceState * add_state()
::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > state_
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_subscriber_id(::bgs::protocol::account::v1::AccountId *subscriber_id)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > & state() const
::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > state_
inline ::bgs::protocol::account::v1::AccountId * mutable_subscriber_id()
::bgs::protocol::account::v1::AccountId * subscriber_id_
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::presence::v1::PresenceState > * mutable_state()
void Swap(SubscribeNotification *other)
SubscribeNotification(const SubscribeNotification &from)
void set_allocated_subscriber_id(::bgs::protocol::account::v1::AccountId *subscriber_id)
inline ::bgs::protocol::account::v1::AccountId * release_subscriber_id()
friend void TC_PROTO_API protobuf_AddDesc_presence_5flistener_2eproto()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::uint32 subscriber_program() const
const ::bgs::protocol::account::v1::AccountId & subscriber_id() const
void set_subscriber_program(::google::protobuf::uint32 value)
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::presence::v1::PresenceState * add_state()
SubscribeNotification & operator=(const SubscribeNotification &from)
static const ::google::protobuf::Descriptor * descriptor()
static const SubscribeNotification & default_instance()
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_presence_5flistener_2eproto()
void protobuf_ShutdownFile_presence_5flistener_2eproto()
void protobuf_AssignDesc_presence_5flistener_2eproto()
Definition: Session.h:36