TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
friends_service.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: friends_service.proto
3 
4 #ifndef PROTOBUF_friends_5fservice_2eproto__INCLUDED
5 #define PROTOBUF_friends_5fservice_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 "friends_types.pb.h"
30 #include "invitation_types.pb.h"
31 #include "role_types.pb.h"
32 #include "rpc_types.pb.h"
33 #include "ServiceBase.h"
34 #include "MessageBuffer.h"
35 #include <functional>
36 #include <type_traits>
37 // @@protoc_insertion_point(includes)
38 
39 namespace bgs {
40 namespace protocol {
41 namespace friends {
42 namespace v1 {
43 
44 // Internal implementation detail -- do not call these.
48 
49 class SubscribeRequest;
50 class SubscribeResponse;
51 class UnsubscribeRequest;
54 class AssignRoleRequest;
55 class ViewFriendsRequest;
58 class FriendNotification;
61 
62 // ===================================================================
63 
65  public:
67  virtual ~SubscribeRequest();
68 
70 
72  CopyFrom(from);
73  return *this;
74  }
75 
76  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
77  return _unknown_fields_;
78  }
79 
80  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
81  return &_unknown_fields_;
82  }
83 
84  static const ::google::protobuf::Descriptor* descriptor();
85  static const SubscribeRequest& default_instance();
86 
87  void Swap(SubscribeRequest* other);
88 
89  // implements Message ----------------------------------------------
90 
91  SubscribeRequest* New() const;
92  void CopyFrom(const ::google::protobuf::Message& from);
93  void MergeFrom(const ::google::protobuf::Message& from);
94  void CopyFrom(const SubscribeRequest& from);
95  void MergeFrom(const SubscribeRequest& from);
96  void Clear();
97  bool IsInitialized() const;
98 
99  int ByteSize() const;
100  bool MergePartialFromCodedStream(
102  void SerializeWithCachedSizes(
104  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
105  int GetCachedSize() const { return _cached_size_; }
106  private:
107  void SharedCtor();
108  void SharedDtor();
109  void SetCachedSize(int size) const;
110  public:
111  ::google::protobuf::Metadata GetMetadata() const;
112 
113  // nested types ----------------------------------------------------
114 
115  // accessors -------------------------------------------------------
116 
117  // optional .bgs.protocol.EntityId agent_id = 1;
118  inline bool has_agent_id() const;
119  inline void clear_agent_id();
120  static const int kAgentIdFieldNumber = 1;
121  inline const ::bgs::protocol::EntityId& agent_id() const;
122  inline ::bgs::protocol::EntityId* mutable_agent_id();
123  inline ::bgs::protocol::EntityId* release_agent_id();
124  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
125 
126  // required uint64 object_id = 2;
127  inline bool has_object_id() const;
128  inline void clear_object_id();
129  static const int kObjectIdFieldNumber = 2;
130  inline ::google::protobuf::uint64 object_id() const;
131  inline void set_object_id(::google::protobuf::uint64 value);
132 
133  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.SubscribeRequest)
134  private:
135  inline void set_has_agent_id();
136  inline void clear_has_agent_id();
137  inline void set_has_object_id();
138  inline void clear_has_object_id();
139 
141 
143  mutable int _cached_size_;
149 
150  void InitAsDefaultInstance();
152 };
153 // -------------------------------------------------------------------
154 
156  public:
158  virtual ~SubscribeResponse();
159 
161 
163  CopyFrom(from);
164  return *this;
165  }
166 
167  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
168  return _unknown_fields_;
169  }
170 
171  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
172  return &_unknown_fields_;
173  }
174 
175  static const ::google::protobuf::Descriptor* descriptor();
176  static const SubscribeResponse& default_instance();
177 
178  void Swap(SubscribeResponse* other);
179 
180  // implements Message ----------------------------------------------
181 
182  SubscribeResponse* New() const;
183  void CopyFrom(const ::google::protobuf::Message& from);
184  void MergeFrom(const ::google::protobuf::Message& from);
185  void CopyFrom(const SubscribeResponse& from);
186  void MergeFrom(const SubscribeResponse& from);
187  void Clear();
188  bool IsInitialized() const;
189 
190  int ByteSize() const;
191  bool MergePartialFromCodedStream(
193  void SerializeWithCachedSizes(
195  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
196  int GetCachedSize() const { return _cached_size_; }
197  private:
198  void SharedCtor();
199  void SharedDtor();
200  void SetCachedSize(int size) const;
201  public:
202  ::google::protobuf::Metadata GetMetadata() const;
203 
204  // nested types ----------------------------------------------------
205 
206  // accessors -------------------------------------------------------
207 
208  // optional uint32 max_friends = 1;
209  inline bool has_max_friends() const;
210  inline void clear_max_friends();
211  static const int kMaxFriendsFieldNumber = 1;
212  inline ::google::protobuf::uint32 max_friends() const;
213  inline void set_max_friends(::google::protobuf::uint32 value);
214 
215  // optional uint32 max_received_invitations = 2;
216  inline bool has_max_received_invitations() const;
217  inline void clear_max_received_invitations();
218  static const int kMaxReceivedInvitationsFieldNumber = 2;
219  inline ::google::protobuf::uint32 max_received_invitations() const;
220  inline void set_max_received_invitations(::google::protobuf::uint32 value);
221 
222  // optional uint32 max_sent_invitations = 3;
223  inline bool has_max_sent_invitations() const;
224  inline void clear_max_sent_invitations();
225  static const int kMaxSentInvitationsFieldNumber = 3;
226  inline ::google::protobuf::uint32 max_sent_invitations() const;
227  inline void set_max_sent_invitations(::google::protobuf::uint32 value);
228 
229  // repeated .bgs.protocol.Role role = 4;
230  inline int role_size() const;
231  inline void clear_role();
232  static const int kRoleFieldNumber = 4;
233  inline const ::bgs::protocol::Role& role(int index) const;
234  inline ::bgs::protocol::Role* mutable_role(int index);
235  inline ::bgs::protocol::Role* add_role();
236  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >&
237  role() const;
238  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >*
239  mutable_role();
240 
241  // repeated .bgs.protocol.friends.v1.Friend friends = 5;
242  inline int friends_size() const;
243  inline void clear_friends();
244  static const int kFriendsFieldNumber = 5;
245  inline const ::bgs::protocol::friends::v1::Friend& friends(int index) const;
246  inline ::bgs::protocol::friends::v1::Friend* mutable_friends(int index);
247  inline ::bgs::protocol::friends::v1::Friend* add_friends();
248  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >&
249  friends() const;
250  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >*
251  mutable_friends();
252 
253  // repeated .bgs.protocol.Invitation sent_invitations = 6;
254  inline int sent_invitations_size() const;
255  inline void clear_sent_invitations();
256  static const int kSentInvitationsFieldNumber = 6;
257  inline const ::bgs::protocol::Invitation& sent_invitations(int index) const;
258  inline ::bgs::protocol::Invitation* mutable_sent_invitations(int index);
259  inline ::bgs::protocol::Invitation* add_sent_invitations();
260  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >&
261  sent_invitations() const;
262  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >*
263  mutable_sent_invitations();
264 
265  // repeated .bgs.protocol.Invitation received_invitations = 7;
266  inline int received_invitations_size() const;
267  inline void clear_received_invitations();
268  static const int kReceivedInvitationsFieldNumber = 7;
269  inline const ::bgs::protocol::Invitation& received_invitations(int index) const;
270  inline ::bgs::protocol::Invitation* mutable_received_invitations(int index);
271  inline ::bgs::protocol::Invitation* add_received_invitations();
272  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >&
273  received_invitations() const;
274  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >*
275  mutable_received_invitations();
276 
277  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.SubscribeResponse)
278  private:
279  inline void set_has_max_friends();
280  inline void clear_has_max_friends();
281  inline void set_has_max_received_invitations();
282  inline void clear_has_max_received_invitations();
283  inline void set_has_max_sent_invitations();
284  inline void clear_has_max_sent_invitations();
285 
287 
289  mutable int _cached_size_;
300 
301  void InitAsDefaultInstance();
303 };
304 // -------------------------------------------------------------------
305 
307  public:
309  virtual ~UnsubscribeRequest();
310 
312 
314  CopyFrom(from);
315  return *this;
316  }
317 
318  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
319  return _unknown_fields_;
320  }
321 
322  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
323  return &_unknown_fields_;
324  }
325 
326  static const ::google::protobuf::Descriptor* descriptor();
327  static const UnsubscribeRequest& default_instance();
328 
329  void Swap(UnsubscribeRequest* other);
330 
331  // implements Message ----------------------------------------------
332 
333  UnsubscribeRequest* New() const;
334  void CopyFrom(const ::google::protobuf::Message& from);
335  void MergeFrom(const ::google::protobuf::Message& from);
336  void CopyFrom(const UnsubscribeRequest& from);
337  void MergeFrom(const UnsubscribeRequest& from);
338  void Clear();
339  bool IsInitialized() const;
340 
341  int ByteSize() const;
342  bool MergePartialFromCodedStream(
344  void SerializeWithCachedSizes(
346  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
347  int GetCachedSize() const { return _cached_size_; }
348  private:
349  void SharedCtor();
350  void SharedDtor();
351  void SetCachedSize(int size) const;
352  public:
353  ::google::protobuf::Metadata GetMetadata() const;
354 
355  // nested types ----------------------------------------------------
356 
357  // accessors -------------------------------------------------------
358 
359  // optional .bgs.protocol.EntityId agent_id = 1;
360  inline bool has_agent_id() const;
361  inline void clear_agent_id();
362  static const int kAgentIdFieldNumber = 1;
363  inline const ::bgs::protocol::EntityId& agent_id() const;
364  inline ::bgs::protocol::EntityId* mutable_agent_id();
365  inline ::bgs::protocol::EntityId* release_agent_id();
366  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
367 
368  // optional uint64 object_id = 2;
369  inline bool has_object_id() const;
370  inline void clear_object_id();
371  static const int kObjectIdFieldNumber = 2;
372  inline ::google::protobuf::uint64 object_id() const;
373  inline void set_object_id(::google::protobuf::uint64 value);
374 
375  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.UnsubscribeRequest)
376  private:
377  inline void set_has_agent_id();
378  inline void clear_has_agent_id();
379  inline void set_has_object_id();
380  inline void clear_has_object_id();
381 
383 
385  mutable int _cached_size_;
391 
392  void InitAsDefaultInstance();
394 };
395 // -------------------------------------------------------------------
396 
398  public:
400  virtual ~GenericFriendRequest();
401 
403 
405  CopyFrom(from);
406  return *this;
407  }
408 
409  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
410  return _unknown_fields_;
411  }
412 
413  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
414  return &_unknown_fields_;
415  }
416 
417  static const ::google::protobuf::Descriptor* descriptor();
418  static const GenericFriendRequest& default_instance();
419 
420  void Swap(GenericFriendRequest* other);
421 
422  // implements Message ----------------------------------------------
423 
424  GenericFriendRequest* New() const;
425  void CopyFrom(const ::google::protobuf::Message& from);
426  void MergeFrom(const ::google::protobuf::Message& from);
427  void CopyFrom(const GenericFriendRequest& from);
428  void MergeFrom(const GenericFriendRequest& from);
429  void Clear();
430  bool IsInitialized() const;
431 
432  int ByteSize() const;
433  bool MergePartialFromCodedStream(
435  void SerializeWithCachedSizes(
437  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
438  int GetCachedSize() const { return _cached_size_; }
439  private:
440  void SharedCtor();
441  void SharedDtor();
442  void SetCachedSize(int size) const;
443  public:
444  ::google::protobuf::Metadata GetMetadata() const;
445 
446  // nested types ----------------------------------------------------
447 
448  // accessors -------------------------------------------------------
449 
450  // optional .bgs.protocol.EntityId agent_id = 1;
451  inline bool has_agent_id() const;
452  inline void clear_agent_id();
453  static const int kAgentIdFieldNumber = 1;
454  inline const ::bgs::protocol::EntityId& agent_id() const;
455  inline ::bgs::protocol::EntityId* mutable_agent_id();
456  inline ::bgs::protocol::EntityId* release_agent_id();
457  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
458 
459  // required .bgs.protocol.EntityId target_id = 2;
460  inline bool has_target_id() const;
461  inline void clear_target_id();
462  static const int kTargetIdFieldNumber = 2;
463  inline const ::bgs::protocol::EntityId& target_id() const;
464  inline ::bgs::protocol::EntityId* mutable_target_id();
465  inline ::bgs::protocol::EntityId* release_target_id();
466  inline void set_allocated_target_id(::bgs::protocol::EntityId* target_id);
467 
468  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.GenericFriendRequest)
469  private:
470  inline void set_has_agent_id();
471  inline void clear_has_agent_id();
472  inline void set_has_target_id();
473  inline void clear_has_target_id();
474 
476 
478  mutable int _cached_size_;
484 
485  void InitAsDefaultInstance();
487 };
488 // -------------------------------------------------------------------
489 
491  public:
493  virtual ~GenericFriendResponse();
494 
496 
498  CopyFrom(from);
499  return *this;
500  }
501 
502  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
503  return _unknown_fields_;
504  }
505 
506  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
507  return &_unknown_fields_;
508  }
509 
510  static const ::google::protobuf::Descriptor* descriptor();
511  static const GenericFriendResponse& default_instance();
512 
513  void Swap(GenericFriendResponse* other);
514 
515  // implements Message ----------------------------------------------
516 
517  GenericFriendResponse* New() const;
518  void CopyFrom(const ::google::protobuf::Message& from);
519  void MergeFrom(const ::google::protobuf::Message& from);
520  void CopyFrom(const GenericFriendResponse& from);
521  void MergeFrom(const GenericFriendResponse& from);
522  void Clear();
523  bool IsInitialized() const;
524 
525  int ByteSize() const;
526  bool MergePartialFromCodedStream(
528  void SerializeWithCachedSizes(
530  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
531  int GetCachedSize() const { return _cached_size_; }
532  private:
533  void SharedCtor();
534  void SharedDtor();
535  void SetCachedSize(int size) const;
536  public:
537  ::google::protobuf::Metadata GetMetadata() const;
538 
539  // nested types ----------------------------------------------------
540 
541  // accessors -------------------------------------------------------
542 
543  // optional .bgs.protocol.friends.v1.Friend target_friend = 1;
544  inline bool has_target_friend() const;
545  inline void clear_target_friend();
546  static const int kTargetFriendFieldNumber = 1;
547  inline const ::bgs::protocol::friends::v1::Friend& target_friend() const;
548  inline ::bgs::protocol::friends::v1::Friend* mutable_target_friend();
549  inline ::bgs::protocol::friends::v1::Friend* release_target_friend();
550  inline void set_allocated_target_friend(::bgs::protocol::friends::v1::Friend* target_friend);
551 
552  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.GenericFriendResponse)
553  private:
554  inline void set_has_target_friend();
555  inline void clear_has_target_friend();
556 
558 
560  mutable int _cached_size_;
565 
566  void InitAsDefaultInstance();
568 };
569 // -------------------------------------------------------------------
570 
572  public:
574  virtual ~AssignRoleRequest();
575 
577 
579  CopyFrom(from);
580  return *this;
581  }
582 
583  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
584  return _unknown_fields_;
585  }
586 
587  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
588  return &_unknown_fields_;
589  }
590 
591  static const ::google::protobuf::Descriptor* descriptor();
592  static const AssignRoleRequest& default_instance();
593 
594  void Swap(AssignRoleRequest* other);
595 
596  // implements Message ----------------------------------------------
597 
598  AssignRoleRequest* New() const;
599  void CopyFrom(const ::google::protobuf::Message& from);
600  void MergeFrom(const ::google::protobuf::Message& from);
601  void CopyFrom(const AssignRoleRequest& from);
602  void MergeFrom(const AssignRoleRequest& from);
603  void Clear();
604  bool IsInitialized() const;
605 
606  int ByteSize() const;
607  bool MergePartialFromCodedStream(
609  void SerializeWithCachedSizes(
611  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
612  int GetCachedSize() const { return _cached_size_; }
613  private:
614  void SharedCtor();
615  void SharedDtor();
616  void SetCachedSize(int size) const;
617  public:
618  ::google::protobuf::Metadata GetMetadata() const;
619 
620  // nested types ----------------------------------------------------
621 
622  // accessors -------------------------------------------------------
623 
624  // optional .bgs.protocol.EntityId agent_id = 1;
625  inline bool has_agent_id() const;
626  inline void clear_agent_id();
627  static const int kAgentIdFieldNumber = 1;
628  inline const ::bgs::protocol::EntityId& agent_id() const;
629  inline ::bgs::protocol::EntityId* mutable_agent_id();
630  inline ::bgs::protocol::EntityId* release_agent_id();
631  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
632 
633  // required .bgs.protocol.EntityId target_id = 2;
634  inline bool has_target_id() const;
635  inline void clear_target_id();
636  static const int kTargetIdFieldNumber = 2;
637  inline const ::bgs::protocol::EntityId& target_id() const;
638  inline ::bgs::protocol::EntityId* mutable_target_id();
639  inline ::bgs::protocol::EntityId* release_target_id();
640  inline void set_allocated_target_id(::bgs::protocol::EntityId* target_id);
641 
642  // repeated int32 role = 3;
643  inline int role_size() const;
644  inline void clear_role();
645  static const int kRoleFieldNumber = 3;
646  inline ::google::protobuf::int32 role(int index) const;
647  inline void set_role(int index, ::google::protobuf::int32 value);
648  inline void add_role(::google::protobuf::int32 value);
649  inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
650  role() const;
651  inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
652  mutable_role();
653 
654  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.AssignRoleRequest)
655  private:
656  inline void set_has_agent_id();
657  inline void clear_has_agent_id();
658  inline void set_has_target_id();
659  inline void clear_has_target_id();
660 
662 
664  mutable int _cached_size_;
671 
672  void InitAsDefaultInstance();
674 };
675 // -------------------------------------------------------------------
676 
678  public:
680  virtual ~ViewFriendsRequest();
681 
683 
685  CopyFrom(from);
686  return *this;
687  }
688 
689  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
690  return _unknown_fields_;
691  }
692 
693  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
694  return &_unknown_fields_;
695  }
696 
697  static const ::google::protobuf::Descriptor* descriptor();
698  static const ViewFriendsRequest& default_instance();
699 
700  void Swap(ViewFriendsRequest* other);
701 
702  // implements Message ----------------------------------------------
703 
704  ViewFriendsRequest* New() const;
705  void CopyFrom(const ::google::protobuf::Message& from);
706  void MergeFrom(const ::google::protobuf::Message& from);
707  void CopyFrom(const ViewFriendsRequest& from);
708  void MergeFrom(const ViewFriendsRequest& from);
709  void Clear();
710  bool IsInitialized() const;
711 
712  int ByteSize() const;
713  bool MergePartialFromCodedStream(
715  void SerializeWithCachedSizes(
717  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
718  int GetCachedSize() const { return _cached_size_; }
719  private:
720  void SharedCtor();
721  void SharedDtor();
722  void SetCachedSize(int size) const;
723  public:
724  ::google::protobuf::Metadata GetMetadata() const;
725 
726  // nested types ----------------------------------------------------
727 
728  // accessors -------------------------------------------------------
729 
730  // optional .bgs.protocol.EntityId agent_id = 1;
731  inline bool has_agent_id() const;
732  inline void clear_agent_id();
733  static const int kAgentIdFieldNumber = 1;
734  inline const ::bgs::protocol::EntityId& agent_id() const;
735  inline ::bgs::protocol::EntityId* mutable_agent_id();
736  inline ::bgs::protocol::EntityId* release_agent_id();
737  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
738 
739  // required .bgs.protocol.EntityId target_id = 2;
740  inline bool has_target_id() const;
741  inline void clear_target_id();
742  static const int kTargetIdFieldNumber = 2;
743  inline const ::bgs::protocol::EntityId& target_id() const;
744  inline ::bgs::protocol::EntityId* mutable_target_id();
745  inline ::bgs::protocol::EntityId* release_target_id();
746  inline void set_allocated_target_id(::bgs::protocol::EntityId* target_id);
747 
748  // repeated uint32 role = 3 [packed = true];
749  inline int role_size() const;
750  inline void clear_role();
751  static const int kRoleFieldNumber = 3;
752  inline ::google::protobuf::uint32 role(int index) const;
753  inline void set_role(int index, ::google::protobuf::uint32 value);
754  inline void add_role(::google::protobuf::uint32 value);
755  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
756  role() const;
757  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
758  mutable_role();
759 
760  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.ViewFriendsRequest)
761  private:
762  inline void set_has_agent_id();
763  inline void clear_has_agent_id();
764  inline void set_has_target_id();
765  inline void clear_has_target_id();
766 
768 
770  mutable int _cached_size_;
778 
779  void InitAsDefaultInstance();
781 };
782 // -------------------------------------------------------------------
783 
785  public:
787  virtual ~ViewFriendsResponse();
788 
790 
792  CopyFrom(from);
793  return *this;
794  }
795 
796  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
797  return _unknown_fields_;
798  }
799 
800  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
801  return &_unknown_fields_;
802  }
803 
804  static const ::google::protobuf::Descriptor* descriptor();
805  static const ViewFriendsResponse& default_instance();
806 
807  void Swap(ViewFriendsResponse* other);
808 
809  // implements Message ----------------------------------------------
810 
811  ViewFriendsResponse* New() const;
812  void CopyFrom(const ::google::protobuf::Message& from);
813  void MergeFrom(const ::google::protobuf::Message& from);
814  void CopyFrom(const ViewFriendsResponse& from);
815  void MergeFrom(const ViewFriendsResponse& from);
816  void Clear();
817  bool IsInitialized() const;
818 
819  int ByteSize() const;
820  bool MergePartialFromCodedStream(
822  void SerializeWithCachedSizes(
824  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
825  int GetCachedSize() const { return _cached_size_; }
826  private:
827  void SharedCtor();
828  void SharedDtor();
829  void SetCachedSize(int size) const;
830  public:
831  ::google::protobuf::Metadata GetMetadata() const;
832 
833  // nested types ----------------------------------------------------
834 
835  // accessors -------------------------------------------------------
836 
837  // repeated .bgs.protocol.friends.v1.Friend friends = 1;
838  inline int friends_size() const;
839  inline void clear_friends();
840  static const int kFriendsFieldNumber = 1;
841  inline const ::bgs::protocol::friends::v1::Friend& friends(int index) const;
842  inline ::bgs::protocol::friends::v1::Friend* mutable_friends(int index);
843  inline ::bgs::protocol::friends::v1::Friend* add_friends();
844  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >&
845  friends() const;
846  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >*
847  mutable_friends();
848 
849  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.ViewFriendsResponse)
850  private:
851 
853 
855  mutable int _cached_size_;
860 
861  void InitAsDefaultInstance();
863 };
864 // -------------------------------------------------------------------
865 
867  public:
869  virtual ~UpdateFriendStateRequest();
870 
872 
874  CopyFrom(from);
875  return *this;
876  }
877 
878  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
879  return _unknown_fields_;
880  }
881 
882  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
883  return &_unknown_fields_;
884  }
885 
886  static const ::google::protobuf::Descriptor* descriptor();
887  static const UpdateFriendStateRequest& default_instance();
888 
889  void Swap(UpdateFriendStateRequest* other);
890 
891  // implements Message ----------------------------------------------
892 
893  UpdateFriendStateRequest* New() const;
894  void CopyFrom(const ::google::protobuf::Message& from);
895  void MergeFrom(const ::google::protobuf::Message& from);
896  void CopyFrom(const UpdateFriendStateRequest& from);
897  void MergeFrom(const UpdateFriendStateRequest& from);
898  void Clear();
899  bool IsInitialized() const;
900 
901  int ByteSize() const;
902  bool MergePartialFromCodedStream(
904  void SerializeWithCachedSizes(
906  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
907  int GetCachedSize() const { return _cached_size_; }
908  private:
909  void SharedCtor();
910  void SharedDtor();
911  void SetCachedSize(int size) const;
912  public:
913  ::google::protobuf::Metadata GetMetadata() const;
914 
915  // nested types ----------------------------------------------------
916 
917  // accessors -------------------------------------------------------
918 
919  // optional .bgs.protocol.EntityId agent_id = 1;
920  inline bool has_agent_id() const;
921  inline void clear_agent_id();
922  static const int kAgentIdFieldNumber = 1;
923  inline const ::bgs::protocol::EntityId& agent_id() const;
924  inline ::bgs::protocol::EntityId* mutable_agent_id();
925  inline ::bgs::protocol::EntityId* release_agent_id();
926  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
927 
928  // required .bgs.protocol.EntityId target_id = 2;
929  inline bool has_target_id() const;
930  inline void clear_target_id();
931  static const int kTargetIdFieldNumber = 2;
932  inline const ::bgs::protocol::EntityId& target_id() const;
933  inline ::bgs::protocol::EntityId* mutable_target_id();
934  inline ::bgs::protocol::EntityId* release_target_id();
935  inline void set_allocated_target_id(::bgs::protocol::EntityId* target_id);
936 
937  // repeated .bgs.protocol.Attribute attribute = 3;
938  inline int attribute_size() const;
939  inline void clear_attribute();
940  static const int kAttributeFieldNumber = 3;
941  inline const ::bgs::protocol::Attribute& attribute(int index) const;
942  inline ::bgs::protocol::Attribute* mutable_attribute(int index);
943  inline ::bgs::protocol::Attribute* add_attribute();
944  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
945  attribute() const;
946  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
947  mutable_attribute();
948 
949  // optional uint64 attributes_epoch = 4;
950  inline bool has_attributes_epoch() const;
951  inline void clear_attributes_epoch();
952  static const int kAttributesEpochFieldNumber = 4;
953  inline ::google::protobuf::uint64 attributes_epoch() const;
954  inline void set_attributes_epoch(::google::protobuf::uint64 value);
955 
956  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.UpdateFriendStateRequest)
957  private:
958  inline void set_has_agent_id();
959  inline void clear_has_agent_id();
960  inline void set_has_target_id();
961  inline void clear_has_target_id();
962  inline void set_has_attributes_epoch();
963  inline void clear_has_attributes_epoch();
964 
966 
968  mutable int _cached_size_;
976 
977  void InitAsDefaultInstance();
979 };
980 // -------------------------------------------------------------------
981 
983  public:
985  virtual ~FriendNotification();
986 
988 
990  CopyFrom(from);
991  return *this;
992  }
993 
994  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
995  return _unknown_fields_;
996  }
997 
998  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
999  return &_unknown_fields_;
1000  }
1001 
1002  static const ::google::protobuf::Descriptor* descriptor();
1003  static const FriendNotification& default_instance();
1004 
1005  void Swap(FriendNotification* other);
1006 
1007  // implements Message ----------------------------------------------
1008 
1009  FriendNotification* New() const;
1010  void CopyFrom(const ::google::protobuf::Message& from);
1011  void MergeFrom(const ::google::protobuf::Message& from);
1012  void CopyFrom(const FriendNotification& from);
1013  void MergeFrom(const FriendNotification& from);
1014  void Clear();
1015  bool IsInitialized() const;
1016 
1017  int ByteSize() const;
1018  bool MergePartialFromCodedStream(
1020  void SerializeWithCachedSizes(
1022  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1023  int GetCachedSize() const { return _cached_size_; }
1024  private:
1025  void SharedCtor();
1026  void SharedDtor();
1027  void SetCachedSize(int size) const;
1028  public:
1029  ::google::protobuf::Metadata GetMetadata() const;
1030 
1031  // nested types ----------------------------------------------------
1032 
1033  // accessors -------------------------------------------------------
1034 
1035  // required .bgs.protocol.friends.v1.Friend target = 1;
1036  inline bool has_target() const;
1037  inline void clear_target();
1038  static const int kTargetFieldNumber = 1;
1039  inline const ::bgs::protocol::friends::v1::Friend& target() const;
1040  inline ::bgs::protocol::friends::v1::Friend* mutable_target();
1041  inline ::bgs::protocol::friends::v1::Friend* release_target();
1042  inline void set_allocated_target(::bgs::protocol::friends::v1::Friend* target);
1043 
1044  // optional .bgs.protocol.EntityId game_account_id = 2;
1045  inline bool has_game_account_id() const;
1046  inline void clear_game_account_id();
1047  static const int kGameAccountIdFieldNumber = 2;
1048  inline const ::bgs::protocol::EntityId& game_account_id() const;
1049  inline ::bgs::protocol::EntityId* mutable_game_account_id();
1050  inline ::bgs::protocol::EntityId* release_game_account_id();
1051  inline void set_allocated_game_account_id(::bgs::protocol::EntityId* game_account_id);
1052 
1053  // optional .bgs.protocol.ProcessId peer = 4;
1054  inline bool has_peer() const;
1055  inline void clear_peer();
1056  static const int kPeerFieldNumber = 4;
1057  inline const ::bgs::protocol::ProcessId& peer() const;
1058  inline ::bgs::protocol::ProcessId* mutable_peer();
1059  inline ::bgs::protocol::ProcessId* release_peer();
1060  inline void set_allocated_peer(::bgs::protocol::ProcessId* peer);
1061 
1062  // optional .bgs.protocol.EntityId account_id = 5;
1063  inline bool has_account_id() const;
1064  inline void clear_account_id();
1065  static const int kAccountIdFieldNumber = 5;
1066  inline const ::bgs::protocol::EntityId& account_id() const;
1067  inline ::bgs::protocol::EntityId* mutable_account_id();
1068  inline ::bgs::protocol::EntityId* release_account_id();
1069  inline void set_allocated_account_id(::bgs::protocol::EntityId* account_id);
1070 
1071  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.FriendNotification)
1072  private:
1073  inline void set_has_target();
1074  inline void clear_has_target();
1075  inline void set_has_game_account_id();
1076  inline void clear_has_game_account_id();
1077  inline void set_has_peer();
1078  inline void clear_has_peer();
1079  inline void set_has_account_id();
1080  inline void clear_has_account_id();
1081 
1083 
1085  mutable int _cached_size_;
1093 
1094  void InitAsDefaultInstance();
1096 };
1097 // -------------------------------------------------------------------
1098 
1100  public:
1102  virtual ~UpdateFriendStateNotification();
1103 
1105 
1107  CopyFrom(from);
1108  return *this;
1109  }
1110 
1111  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1112  return _unknown_fields_;
1113  }
1114 
1115  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1116  return &_unknown_fields_;
1117  }
1118 
1119  static const ::google::protobuf::Descriptor* descriptor();
1120  static const UpdateFriendStateNotification& default_instance();
1121 
1122  void Swap(UpdateFriendStateNotification* other);
1123 
1124  // implements Message ----------------------------------------------
1125 
1126  UpdateFriendStateNotification* New() const;
1127  void CopyFrom(const ::google::protobuf::Message& from);
1128  void MergeFrom(const ::google::protobuf::Message& from);
1129  void CopyFrom(const UpdateFriendStateNotification& from);
1130  void MergeFrom(const UpdateFriendStateNotification& from);
1131  void Clear();
1132  bool IsInitialized() const;
1133 
1134  int ByteSize() const;
1135  bool MergePartialFromCodedStream(
1137  void SerializeWithCachedSizes(
1139  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1140  int GetCachedSize() const { return _cached_size_; }
1141  private:
1142  void SharedCtor();
1143  void SharedDtor();
1144  void SetCachedSize(int size) const;
1145  public:
1146  ::google::protobuf::Metadata GetMetadata() const;
1147 
1148  // nested types ----------------------------------------------------
1149 
1150  // accessors -------------------------------------------------------
1151 
1152  // required .bgs.protocol.friends.v1.Friend changed_friend = 1;
1153  inline bool has_changed_friend() const;
1154  inline void clear_changed_friend();
1155  static const int kChangedFriendFieldNumber = 1;
1156  inline const ::bgs::protocol::friends::v1::Friend& changed_friend() const;
1157  inline ::bgs::protocol::friends::v1::Friend* mutable_changed_friend();
1158  inline ::bgs::protocol::friends::v1::Friend* release_changed_friend();
1159  inline void set_allocated_changed_friend(::bgs::protocol::friends::v1::Friend* changed_friend);
1160 
1161  // optional .bgs.protocol.EntityId game_account_id = 2;
1162  inline bool has_game_account_id() const;
1163  inline void clear_game_account_id();
1164  static const int kGameAccountIdFieldNumber = 2;
1165  inline const ::bgs::protocol::EntityId& game_account_id() const;
1166  inline ::bgs::protocol::EntityId* mutable_game_account_id();
1167  inline ::bgs::protocol::EntityId* release_game_account_id();
1168  inline void set_allocated_game_account_id(::bgs::protocol::EntityId* game_account_id);
1169 
1170  // optional .bgs.protocol.ProcessId peer = 4;
1171  inline bool has_peer() const;
1172  inline void clear_peer();
1173  static const int kPeerFieldNumber = 4;
1174  inline const ::bgs::protocol::ProcessId& peer() const;
1175  inline ::bgs::protocol::ProcessId* mutable_peer();
1176  inline ::bgs::protocol::ProcessId* release_peer();
1177  inline void set_allocated_peer(::bgs::protocol::ProcessId* peer);
1178 
1179  // optional .bgs.protocol.EntityId account_id = 5;
1180  inline bool has_account_id() const;
1181  inline void clear_account_id();
1182  static const int kAccountIdFieldNumber = 5;
1183  inline const ::bgs::protocol::EntityId& account_id() const;
1184  inline ::bgs::protocol::EntityId* mutable_account_id();
1185  inline ::bgs::protocol::EntityId* release_account_id();
1186  inline void set_allocated_account_id(::bgs::protocol::EntityId* account_id);
1187 
1188  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.UpdateFriendStateNotification)
1189  private:
1190  inline void set_has_changed_friend();
1191  inline void clear_has_changed_friend();
1192  inline void set_has_game_account_id();
1193  inline void clear_has_game_account_id();
1194  inline void set_has_peer();
1195  inline void clear_has_peer();
1196  inline void set_has_account_id();
1197  inline void clear_has_account_id();
1198 
1200 
1202  mutable int _cached_size_;
1210 
1211  void InitAsDefaultInstance();
1213 };
1214 // -------------------------------------------------------------------
1215 
1217  public:
1219  virtual ~InvitationNotification();
1220 
1222 
1224  CopyFrom(from);
1225  return *this;
1226  }
1227 
1228  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1229  return _unknown_fields_;
1230  }
1231 
1232  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1233  return &_unknown_fields_;
1234  }
1235 
1236  static const ::google::protobuf::Descriptor* descriptor();
1237  static const InvitationNotification& default_instance();
1238 
1239  void Swap(InvitationNotification* other);
1240 
1241  // implements Message ----------------------------------------------
1242 
1243  InvitationNotification* New() const;
1244  void CopyFrom(const ::google::protobuf::Message& from);
1245  void MergeFrom(const ::google::protobuf::Message& from);
1246  void CopyFrom(const InvitationNotification& from);
1247  void MergeFrom(const InvitationNotification& from);
1248  void Clear();
1249  bool IsInitialized() const;
1250 
1251  int ByteSize() const;
1252  bool MergePartialFromCodedStream(
1254  void SerializeWithCachedSizes(
1256  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1257  int GetCachedSize() const { return _cached_size_; }
1258  private:
1259  void SharedCtor();
1260  void SharedDtor();
1261  void SetCachedSize(int size) const;
1262  public:
1263  ::google::protobuf::Metadata GetMetadata() const;
1264 
1265  // nested types ----------------------------------------------------
1266 
1267  // accessors -------------------------------------------------------
1268 
1269  // required .bgs.protocol.Invitation invitation = 1;
1270  inline bool has_invitation() const;
1271  inline void clear_invitation();
1272  static const int kInvitationFieldNumber = 1;
1273  inline const ::bgs::protocol::Invitation& invitation() const;
1274  inline ::bgs::protocol::Invitation* mutable_invitation();
1275  inline ::bgs::protocol::Invitation* release_invitation();
1276  inline void set_allocated_invitation(::bgs::protocol::Invitation* invitation);
1277 
1278  // optional .bgs.protocol.EntityId game_account_id = 2;
1279  inline bool has_game_account_id() const;
1280  inline void clear_game_account_id();
1281  static const int kGameAccountIdFieldNumber = 2;
1282  inline const ::bgs::protocol::EntityId& game_account_id() const;
1283  inline ::bgs::protocol::EntityId* mutable_game_account_id();
1284  inline ::bgs::protocol::EntityId* release_game_account_id();
1285  inline void set_allocated_game_account_id(::bgs::protocol::EntityId* game_account_id);
1286 
1287  // optional uint32 reason = 3 [default = 0];
1288  inline bool has_reason() const;
1289  inline void clear_reason();
1290  static const int kReasonFieldNumber = 3;
1291  inline ::google::protobuf::uint32 reason() const;
1292  inline void set_reason(::google::protobuf::uint32 value);
1293 
1294  // optional .bgs.protocol.ProcessId peer = 4;
1295  inline bool has_peer() const;
1296  inline void clear_peer();
1297  static const int kPeerFieldNumber = 4;
1298  inline const ::bgs::protocol::ProcessId& peer() const;
1299  inline ::bgs::protocol::ProcessId* mutable_peer();
1300  inline ::bgs::protocol::ProcessId* release_peer();
1301  inline void set_allocated_peer(::bgs::protocol::ProcessId* peer);
1302 
1303  // optional .bgs.protocol.EntityId account_id = 5;
1304  inline bool has_account_id() const;
1305  inline void clear_account_id();
1306  static const int kAccountIdFieldNumber = 5;
1307  inline const ::bgs::protocol::EntityId& account_id() const;
1308  inline ::bgs::protocol::EntityId* mutable_account_id();
1309  inline ::bgs::protocol::EntityId* release_account_id();
1310  inline void set_allocated_account_id(::bgs::protocol::EntityId* account_id);
1311 
1312  // @@protoc_insertion_point(class_scope:bgs.protocol.friends.v1.InvitationNotification)
1313  private:
1314  inline void set_has_invitation();
1315  inline void clear_has_invitation();
1316  inline void set_has_game_account_id();
1317  inline void clear_has_game_account_id();
1318  inline void set_has_reason();
1319  inline void clear_has_reason();
1320  inline void set_has_peer();
1321  inline void clear_has_peer();
1322  inline void set_has_account_id();
1323  inline void clear_has_account_id();
1324 
1326 
1328  mutable int _cached_size_;
1337 
1338  void InitAsDefaultInstance();
1340 };
1341 // ===================================================================
1342 
1344 {
1345  public:
1346 
1347  explicit FriendsService(bool use_original_hash);
1348  virtual ~FriendsService();
1349 
1350  typedef std::integral_constant<uint32, 0xA3DDB1BDu> OriginalHash;
1351  typedef std::integral_constant<uint32, 0xABDFED63u> NameHash;
1352 
1353  static google::protobuf::ServiceDescriptor const* descriptor();
1354 
1355  // client methods --------------------------------------------------
1356 
1357  void Subscribe(::bgs::protocol::friends::v1::SubscribeRequest const* request, std::function<void(::bgs::protocol::friends::v1::SubscribeResponse const*)> responseCallback);
1358  void SendInvitation(::bgs::protocol::SendInvitationRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1359  void AcceptInvitation(::bgs::protocol::GenericInvitationRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1360  void RevokeInvitation(::bgs::protocol::GenericInvitationRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1361  void DeclineInvitation(::bgs::protocol::GenericInvitationRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1362  void IgnoreInvitation(::bgs::protocol::GenericInvitationRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1363  void AssignRole(::bgs::protocol::friends::v1::AssignRoleRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1364  void RemoveFriend(::bgs::protocol::friends::v1::GenericFriendRequest const* request, std::function<void(::bgs::protocol::friends::v1::GenericFriendResponse const*)> responseCallback);
1365  void ViewFriends(::bgs::protocol::friends::v1::ViewFriendsRequest const* request, std::function<void(::bgs::protocol::friends::v1::ViewFriendsResponse const*)> responseCallback);
1366  void UpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1367  void Unsubscribe(::bgs::protocol::friends::v1::UnsubscribeRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1368  void RevokeAllInvitations(::bgs::protocol::friends::v1::GenericFriendRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1369  // server methods --------------------------------------------------
1370 
1371  void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final;
1372 
1373  protected:
1374  virtual uint32 HandleSubscribe(::bgs::protocol::friends::v1::SubscribeRequest const* request, ::bgs::protocol::friends::v1::SubscribeResponse* response);
1375  virtual uint32 HandleSendInvitation(::bgs::protocol::SendInvitationRequest const* request, ::bgs::protocol::NoData* response);
1376  virtual uint32 HandleAcceptInvitation(::bgs::protocol::GenericInvitationRequest const* request, ::bgs::protocol::NoData* response);
1377  virtual uint32 HandleRevokeInvitation(::bgs::protocol::GenericInvitationRequest const* request, ::bgs::protocol::NoData* response);
1378  virtual uint32 HandleDeclineInvitation(::bgs::protocol::GenericInvitationRequest const* request, ::bgs::protocol::NoData* response);
1379  virtual uint32 HandleIgnoreInvitation(::bgs::protocol::GenericInvitationRequest const* request, ::bgs::protocol::NoData* response);
1380  virtual uint32 HandleAssignRole(::bgs::protocol::friends::v1::AssignRoleRequest const* request, ::bgs::protocol::NoData* response);
1381  virtual uint32 HandleRemoveFriend(::bgs::protocol::friends::v1::GenericFriendRequest const* request, ::bgs::protocol::friends::v1::GenericFriendResponse* response);
1382  virtual uint32 HandleViewFriends(::bgs::protocol::friends::v1::ViewFriendsRequest const* request, ::bgs::protocol::friends::v1::ViewFriendsResponse* response);
1383  virtual uint32 HandleUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateRequest const* request, ::bgs::protocol::NoData* response);
1384  virtual uint32 HandleUnsubscribe(::bgs::protocol::friends::v1::UnsubscribeRequest const* request, ::bgs::protocol::NoData* response);
1385  virtual uint32 HandleRevokeAllInvitations(::bgs::protocol::friends::v1::GenericFriendRequest const* request, ::bgs::protocol::NoData* response);
1386 
1387  private:
1389 
1391 };
1392 
1393 // -------------------------------------------------------------------
1394 
1396 {
1397  public:
1398 
1399  explicit FriendsListener(bool use_original_hash);
1400  virtual ~FriendsListener();
1401 
1402  typedef std::integral_constant<uint32, 0x6F259A13u> OriginalHash;
1403  typedef std::integral_constant<uint32, 0xA6717548u> NameHash;
1404 
1405  static google::protobuf::ServiceDescriptor const* descriptor();
1406 
1407  // client methods --------------------------------------------------
1408 
1409  void OnFriendAdded(::bgs::protocol::friends::v1::FriendNotification const* request);
1410  void OnFriendRemoved(::bgs::protocol::friends::v1::FriendNotification const* request);
1411  void OnReceivedInvitationAdded(::bgs::protocol::friends::v1::InvitationNotification const* request);
1412  void OnReceivedInvitationRemoved(::bgs::protocol::friends::v1::InvitationNotification const* request);
1413  void OnSentInvitationAdded(::bgs::protocol::friends::v1::InvitationNotification const* request);
1414  void OnSentInvitationRemoved(::bgs::protocol::friends::v1::InvitationNotification const* request);
1415  void OnUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateNotification const* request);
1416  // server methods --------------------------------------------------
1417 
1418  void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final;
1419 
1420  protected:
1421  virtual uint32 HandleOnFriendAdded(::bgs::protocol::friends::v1::FriendNotification const* request);
1422  virtual uint32 HandleOnFriendRemoved(::bgs::protocol::friends::v1::FriendNotification const* request);
1423  virtual uint32 HandleOnReceivedInvitationAdded(::bgs::protocol::friends::v1::InvitationNotification const* request);
1424  virtual uint32 HandleOnReceivedInvitationRemoved(::bgs::protocol::friends::v1::InvitationNotification const* request);
1425  virtual uint32 HandleOnSentInvitationAdded(::bgs::protocol::friends::v1::InvitationNotification const* request);
1426  virtual uint32 HandleOnSentInvitationRemoved(::bgs::protocol::friends::v1::InvitationNotification const* request);
1427  virtual uint32 HandleOnUpdateFriendState(::bgs::protocol::friends::v1::UpdateFriendStateNotification const* request);
1428 
1429  private:
1431 
1433 };
1434 
1435 // ===================================================================
1436 
1437 
1438 // ===================================================================
1439 
1440 // SubscribeRequest
1441 
1442 // optional .bgs.protocol.EntityId agent_id = 1;
1443 inline bool SubscribeRequest::has_agent_id() const {
1444  return (_has_bits_[0] & 0x00000001u) != 0;
1445 }
1447  _has_bits_[0] |= 0x00000001u;
1448 }
1450  _has_bits_[0] &= ~0x00000001u;
1451 }
1453  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
1455 }
1456 inline const ::bgs::protocol::EntityId& SubscribeRequest::agent_id() const {
1457  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeRequest.agent_id)
1459 }
1460 inline ::bgs::protocol::EntityId* SubscribeRequest::mutable_agent_id() {
1461  set_has_agent_id();
1462  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
1463  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeRequest.agent_id)
1464  return agent_id_;
1465 }
1466 inline ::bgs::protocol::EntityId* SubscribeRequest::release_agent_id() {
1469  agent_id_ = NULL;
1470  return temp;
1471 }
1473  delete agent_id_;
1474  agent_id_ = agent_id;
1475  if (agent_id) {
1476  set_has_agent_id();
1477  } else {
1479  }
1480  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.SubscribeRequest.agent_id)
1481 }
1482 
1483 // required uint64 object_id = 2;
1484 inline bool SubscribeRequest::has_object_id() const {
1485  return (_has_bits_[0] & 0x00000002u) != 0;
1486 }
1488  _has_bits_[0] |= 0x00000002u;
1489 }
1491  _has_bits_[0] &= ~0x00000002u;
1492 }
1496 }
1498  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeRequest.object_id)
1499  return object_id_;
1500 }
1503  object_id_ = value;
1504  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeRequest.object_id)
1505 }
1506 
1507 // -------------------------------------------------------------------
1508 
1509 // SubscribeResponse
1510 
1511 // optional uint32 max_friends = 1;
1513  return (_has_bits_[0] & 0x00000001u) != 0;
1514 }
1516  _has_bits_[0] |= 0x00000001u;
1517 }
1519  _has_bits_[0] &= ~0x00000001u;
1520 }
1522  max_friends_ = 0u;
1524 }
1526  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_friends)
1527  return max_friends_;
1528 }
1531  max_friends_ = value;
1532  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_friends)
1533 }
1534 
1535 // optional uint32 max_received_invitations = 2;
1537  return (_has_bits_[0] & 0x00000002u) != 0;
1538 }
1540  _has_bits_[0] |= 0x00000002u;
1541 }
1543  _has_bits_[0] &= ~0x00000002u;
1544 }
1548 }
1550  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_received_invitations)
1552 }
1556  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_received_invitations)
1557 }
1558 
1559 // optional uint32 max_sent_invitations = 3;
1561  return (_has_bits_[0] & 0x00000004u) != 0;
1562 }
1564  _has_bits_[0] |= 0x00000004u;
1565 }
1567  _has_bits_[0] &= ~0x00000004u;
1568 }
1570  max_sent_invitations_ = 0u;
1572 }
1574  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.max_sent_invitations)
1575  return max_sent_invitations_;
1576 }
1580  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.SubscribeResponse.max_sent_invitations)
1581 }
1582 
1583 // repeated .bgs.protocol.Role role = 4;
1584 inline int SubscribeResponse::role_size() const {
1585  return role_.size();
1586 }
1588  role_.Clear();
1589 }
1590 inline const ::bgs::protocol::Role& SubscribeResponse::role(int index) const {
1591  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.role)
1592  return role_.Get(index);
1593 }
1594 inline ::bgs::protocol::Role* SubscribeResponse::mutable_role(int index) {
1595  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.role)
1596  return role_.Mutable(index);
1597 }
1598 inline ::bgs::protocol::Role* SubscribeResponse::add_role() {
1599  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.role)
1600  return role_.Add();
1601 }
1602 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >&
1604  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.role)
1605  return role_;
1606 }
1607 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role >*
1609  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.role)
1610  return &role_;
1611 }
1612 
1613 // repeated .bgs.protocol.friends.v1.Friend friends = 5;
1615  return friends_.size();
1616 }
1618  friends_.Clear();
1619 }
1620 inline const ::bgs::protocol::friends::v1::Friend& SubscribeResponse::friends(int index) const {
1621  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.friends)
1622  return friends_.Get(index);
1623 }
1624 inline ::bgs::protocol::friends::v1::Friend* SubscribeResponse::mutable_friends(int index) {
1625  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.friends)
1626  return friends_.Mutable(index);
1627 }
1628 inline ::bgs::protocol::friends::v1::Friend* SubscribeResponse::add_friends() {
1629  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.friends)
1630  return friends_.Add();
1631 }
1632 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >&
1634  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.friends)
1635  return friends_;
1636 }
1637 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >*
1639  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.friends)
1640  return &friends_;
1641 }
1642 
1643 // repeated .bgs.protocol.Invitation sent_invitations = 6;
1645  return sent_invitations_.size();
1646 }
1648  sent_invitations_.Clear();
1649 }
1650 inline const ::bgs::protocol::Invitation& SubscribeResponse::sent_invitations(int index) const {
1651  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations)
1652  return sent_invitations_.Get(index);
1653 }
1654 inline ::bgs::protocol::Invitation* SubscribeResponse::mutable_sent_invitations(int index) {
1655  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations)
1656  return sent_invitations_.Mutable(index);
1657 }
1658 inline ::bgs::protocol::Invitation* SubscribeResponse::add_sent_invitations() {
1659  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations)
1660  return sent_invitations_.Add();
1661 }
1662 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >&
1664  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations)
1665  return sent_invitations_;
1666 }
1667 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >*
1669  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.sent_invitations)
1670  return &sent_invitations_;
1671 }
1672 
1673 // repeated .bgs.protocol.Invitation received_invitations = 7;
1675  return received_invitations_.size();
1676 }
1678  received_invitations_.Clear();
1679 }
1680 inline const ::bgs::protocol::Invitation& SubscribeResponse::received_invitations(int index) const {
1681  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.SubscribeResponse.received_invitations)
1682  return received_invitations_.Get(index);
1683 }
1684 inline ::bgs::protocol::Invitation* SubscribeResponse::mutable_received_invitations(int index) {
1685  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.SubscribeResponse.received_invitations)
1686  return received_invitations_.Mutable(index);
1687 }
1688 inline ::bgs::protocol::Invitation* SubscribeResponse::add_received_invitations() {
1689  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.SubscribeResponse.received_invitations)
1690  return received_invitations_.Add();
1691 }
1692 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >&
1694  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.SubscribeResponse.received_invitations)
1695  return received_invitations_;
1696 }
1697 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >*
1699  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.SubscribeResponse.received_invitations)
1700  return &received_invitations_;
1701 }
1702 
1703 // -------------------------------------------------------------------
1704 
1705 // UnsubscribeRequest
1706 
1707 // optional .bgs.protocol.EntityId agent_id = 1;
1709  return (_has_bits_[0] & 0x00000001u) != 0;
1710 }
1712  _has_bits_[0] |= 0x00000001u;
1713 }
1715  _has_bits_[0] &= ~0x00000001u;
1716 }
1718  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
1720 }
1721 inline const ::bgs::protocol::EntityId& UnsubscribeRequest::agent_id() const {
1722  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UnsubscribeRequest.agent_id)
1724 }
1725 inline ::bgs::protocol::EntityId* UnsubscribeRequest::mutable_agent_id() {
1726  set_has_agent_id();
1727  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
1728  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UnsubscribeRequest.agent_id)
1729  return agent_id_;
1730 }
1731 inline ::bgs::protocol::EntityId* UnsubscribeRequest::release_agent_id() {
1734  agent_id_ = NULL;
1735  return temp;
1736 }
1738  delete agent_id_;
1739  agent_id_ = agent_id;
1740  if (agent_id) {
1741  set_has_agent_id();
1742  } else {
1744  }
1745  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UnsubscribeRequest.agent_id)
1746 }
1747 
1748 // optional uint64 object_id = 2;
1750  return (_has_bits_[0] & 0x00000002u) != 0;
1751 }
1753  _has_bits_[0] |= 0x00000002u;
1754 }
1756  _has_bits_[0] &= ~0x00000002u;
1757 }
1761 }
1763  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UnsubscribeRequest.object_id)
1764  return object_id_;
1765 }
1768  object_id_ = value;
1769  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.UnsubscribeRequest.object_id)
1770 }
1771 
1772 // -------------------------------------------------------------------
1773 
1774 // GenericFriendRequest
1775 
1776 // optional .bgs.protocol.EntityId agent_id = 1;
1778  return (_has_bits_[0] & 0x00000001u) != 0;
1779 }
1781  _has_bits_[0] |= 0x00000001u;
1782 }
1784  _has_bits_[0] &= ~0x00000001u;
1785 }
1787  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
1789 }
1790 inline const ::bgs::protocol::EntityId& GenericFriendRequest::agent_id() const {
1791  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.GenericFriendRequest.agent_id)
1793 }
1794 inline ::bgs::protocol::EntityId* GenericFriendRequest::mutable_agent_id() {
1795  set_has_agent_id();
1796  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
1797  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.GenericFriendRequest.agent_id)
1798  return agent_id_;
1799 }
1800 inline ::bgs::protocol::EntityId* GenericFriendRequest::release_agent_id() {
1803  agent_id_ = NULL;
1804  return temp;
1805 }
1807  delete agent_id_;
1808  agent_id_ = agent_id;
1809  if (agent_id) {
1810  set_has_agent_id();
1811  } else {
1813  }
1814  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.GenericFriendRequest.agent_id)
1815 }
1816 
1817 // required .bgs.protocol.EntityId target_id = 2;
1819  return (_has_bits_[0] & 0x00000002u) != 0;
1820 }
1822  _has_bits_[0] |= 0x00000002u;
1823 }
1825  _has_bits_[0] &= ~0x00000002u;
1826 }
1828  if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear();
1830 }
1831 inline const ::bgs::protocol::EntityId& GenericFriendRequest::target_id() const {
1832  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.GenericFriendRequest.target_id)
1834 }
1835 inline ::bgs::protocol::EntityId* GenericFriendRequest::mutable_target_id() {
1837  if (target_id_ == NULL) target_id_ = new ::bgs::protocol::EntityId;
1838  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.GenericFriendRequest.target_id)
1839  return target_id_;
1840 }
1841 inline ::bgs::protocol::EntityId* GenericFriendRequest::release_target_id() {
1844  target_id_ = NULL;
1845  return temp;
1846 }
1848  delete target_id_;
1850  if (target_id) {
1852  } else {
1854  }
1855  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.GenericFriendRequest.target_id)
1856 }
1857 
1858 // -------------------------------------------------------------------
1859 
1860 // GenericFriendResponse
1861 
1862 // optional .bgs.protocol.friends.v1.Friend target_friend = 1;
1864  return (_has_bits_[0] & 0x00000001u) != 0;
1865 }
1867  _has_bits_[0] |= 0x00000001u;
1868 }
1870  _has_bits_[0] &= ~0x00000001u;
1871 }
1873  if (target_friend_ != NULL) target_friend_->::bgs::protocol::friends::v1::Friend::Clear();
1875 }
1876 inline const ::bgs::protocol::friends::v1::Friend& GenericFriendResponse::target_friend() const {
1877  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.GenericFriendResponse.target_friend)
1879 }
1880 inline ::bgs::protocol::friends::v1::Friend* GenericFriendResponse::mutable_target_friend() {
1882  if (target_friend_ == NULL) target_friend_ = new ::bgs::protocol::friends::v1::Friend;
1883  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.GenericFriendResponse.target_friend)
1884  return target_friend_;
1885 }
1886 inline ::bgs::protocol::friends::v1::Friend* GenericFriendResponse::release_target_friend() {
1889  target_friend_ = NULL;
1890  return temp;
1891 }
1893  delete target_friend_;
1895  if (target_friend) {
1897  } else {
1899  }
1900  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.GenericFriendResponse.target_friend)
1901 }
1902 
1903 // -------------------------------------------------------------------
1904 
1905 // AssignRoleRequest
1906 
1907 // optional .bgs.protocol.EntityId agent_id = 1;
1908 inline bool AssignRoleRequest::has_agent_id() const {
1909  return (_has_bits_[0] & 0x00000001u) != 0;
1910 }
1912  _has_bits_[0] |= 0x00000001u;
1913 }
1915  _has_bits_[0] &= ~0x00000001u;
1916 }
1918  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
1920 }
1921 inline const ::bgs::protocol::EntityId& AssignRoleRequest::agent_id() const {
1922  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.AssignRoleRequest.agent_id)
1924 }
1925 inline ::bgs::protocol::EntityId* AssignRoleRequest::mutable_agent_id() {
1926  set_has_agent_id();
1927  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
1928  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.AssignRoleRequest.agent_id)
1929  return agent_id_;
1930 }
1931 inline ::bgs::protocol::EntityId* AssignRoleRequest::release_agent_id() {
1934  agent_id_ = NULL;
1935  return temp;
1936 }
1938  delete agent_id_;
1939  agent_id_ = agent_id;
1940  if (agent_id) {
1941  set_has_agent_id();
1942  } else {
1944  }
1945  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.AssignRoleRequest.agent_id)
1946 }
1947 
1948 // required .bgs.protocol.EntityId target_id = 2;
1950  return (_has_bits_[0] & 0x00000002u) != 0;
1951 }
1953  _has_bits_[0] |= 0x00000002u;
1954 }
1956  _has_bits_[0] &= ~0x00000002u;
1957 }
1959  if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear();
1961 }
1962 inline const ::bgs::protocol::EntityId& AssignRoleRequest::target_id() const {
1963  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.AssignRoleRequest.target_id)
1965 }
1966 inline ::bgs::protocol::EntityId* AssignRoleRequest::mutable_target_id() {
1968  if (target_id_ == NULL) target_id_ = new ::bgs::protocol::EntityId;
1969  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.AssignRoleRequest.target_id)
1970  return target_id_;
1971 }
1972 inline ::bgs::protocol::EntityId* AssignRoleRequest::release_target_id() {
1975  target_id_ = NULL;
1976  return temp;
1977 }
1979  delete target_id_;
1981  if (target_id) {
1983  } else {
1985  }
1986  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.AssignRoleRequest.target_id)
1987 }
1988 
1989 // repeated int32 role = 3;
1990 inline int AssignRoleRequest::role_size() const {
1991  return role_.size();
1992 }
1994  role_.Clear();
1995 }
1997  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.AssignRoleRequest.role)
1998  return role_.Get(index);
1999 }
2001  role_.Set(index, value);
2002  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.AssignRoleRequest.role)
2003 }
2005  role_.Add(value);
2006  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.AssignRoleRequest.role)
2007 }
2008 inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
2010  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.AssignRoleRequest.role)
2011  return role_;
2012 }
2013 inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
2015  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.AssignRoleRequest.role)
2016  return &role_;
2017 }
2018 
2019 // -------------------------------------------------------------------
2020 
2021 // ViewFriendsRequest
2022 
2023 // optional .bgs.protocol.EntityId agent_id = 1;
2025  return (_has_bits_[0] & 0x00000001u) != 0;
2026 }
2028  _has_bits_[0] |= 0x00000001u;
2029 }
2031  _has_bits_[0] &= ~0x00000001u;
2032 }
2034  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2036 }
2037 inline const ::bgs::protocol::EntityId& ViewFriendsRequest::agent_id() const {
2038  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.ViewFriendsRequest.agent_id)
2040 }
2041 inline ::bgs::protocol::EntityId* ViewFriendsRequest::mutable_agent_id() {
2042  set_has_agent_id();
2043  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2044  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.ViewFriendsRequest.agent_id)
2045  return agent_id_;
2046 }
2047 inline ::bgs::protocol::EntityId* ViewFriendsRequest::release_agent_id() {
2050  agent_id_ = NULL;
2051  return temp;
2052 }
2054  delete agent_id_;
2055  agent_id_ = agent_id;
2056  if (agent_id) {
2057  set_has_agent_id();
2058  } else {
2060  }
2061  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.ViewFriendsRequest.agent_id)
2062 }
2063 
2064 // required .bgs.protocol.EntityId target_id = 2;
2066  return (_has_bits_[0] & 0x00000002u) != 0;
2067 }
2069  _has_bits_[0] |= 0x00000002u;
2070 }
2072  _has_bits_[0] &= ~0x00000002u;
2073 }
2075  if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear();
2077 }
2078 inline const ::bgs::protocol::EntityId& ViewFriendsRequest::target_id() const {
2079  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.ViewFriendsRequest.target_id)
2081 }
2082 inline ::bgs::protocol::EntityId* ViewFriendsRequest::mutable_target_id() {
2084  if (target_id_ == NULL) target_id_ = new ::bgs::protocol::EntityId;
2085  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.ViewFriendsRequest.target_id)
2086  return target_id_;
2087 }
2088 inline ::bgs::protocol::EntityId* ViewFriendsRequest::release_target_id() {
2091  target_id_ = NULL;
2092  return temp;
2093 }
2095  delete target_id_;
2097  if (target_id) {
2099  } else {
2101  }
2102  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.ViewFriendsRequest.target_id)
2103 }
2104 
2105 // repeated uint32 role = 3 [packed = true];
2106 inline int ViewFriendsRequest::role_size() const {
2107  return role_.size();
2108 }
2110  role_.Clear();
2111 }
2113  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.ViewFriendsRequest.role)
2114  return role_.Get(index);
2115 }
2117  role_.Set(index, value);
2118  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.ViewFriendsRequest.role)
2119 }
2121  role_.Add(value);
2122  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.ViewFriendsRequest.role)
2123 }
2124 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2126  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.ViewFriendsRequest.role)
2127  return role_;
2128 }
2129 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2131  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.ViewFriendsRequest.role)
2132  return &role_;
2133 }
2134 
2135 // -------------------------------------------------------------------
2136 
2137 // ViewFriendsResponse
2138 
2139 // repeated .bgs.protocol.friends.v1.Friend friends = 1;
2141  return friends_.size();
2142 }
2144  friends_.Clear();
2145 }
2146 inline const ::bgs::protocol::friends::v1::Friend& ViewFriendsResponse::friends(int index) const {
2147  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.ViewFriendsResponse.friends)
2148  return friends_.Get(index);
2149 }
2150 inline ::bgs::protocol::friends::v1::Friend* ViewFriendsResponse::mutable_friends(int index) {
2151  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.ViewFriendsResponse.friends)
2152  return friends_.Mutable(index);
2153 }
2154 inline ::bgs::protocol::friends::v1::Friend* ViewFriendsResponse::add_friends() {
2155  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.ViewFriendsResponse.friends)
2156  return friends_.Add();
2157 }
2158 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >&
2160  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.ViewFriendsResponse.friends)
2161  return friends_;
2162 }
2163 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend >*
2165  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.ViewFriendsResponse.friends)
2166  return &friends_;
2167 }
2168 
2169 // -------------------------------------------------------------------
2170 
2171 // UpdateFriendStateRequest
2172 
2173 // optional .bgs.protocol.EntityId agent_id = 1;
2175  return (_has_bits_[0] & 0x00000001u) != 0;
2176 }
2178  _has_bits_[0] |= 0x00000001u;
2179 }
2181  _has_bits_[0] &= ~0x00000001u;
2182 }
2184  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2186 }
2187 inline const ::bgs::protocol::EntityId& UpdateFriendStateRequest::agent_id() const {
2188  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateRequest.agent_id)
2190 }
2191 inline ::bgs::protocol::EntityId* UpdateFriendStateRequest::mutable_agent_id() {
2192  set_has_agent_id();
2193  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2194  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateRequest.agent_id)
2195  return agent_id_;
2196 }
2197 inline ::bgs::protocol::EntityId* UpdateFriendStateRequest::release_agent_id() {
2200  agent_id_ = NULL;
2201  return temp;
2202 }
2204  delete agent_id_;
2205  agent_id_ = agent_id;
2206  if (agent_id) {
2207  set_has_agent_id();
2208  } else {
2210  }
2211  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UpdateFriendStateRequest.agent_id)
2212 }
2213 
2214 // required .bgs.protocol.EntityId target_id = 2;
2216  return (_has_bits_[0] & 0x00000002u) != 0;
2217 }
2219  _has_bits_[0] |= 0x00000002u;
2220 }
2222  _has_bits_[0] &= ~0x00000002u;
2223 }
2225  if (target_id_ != NULL) target_id_->::bgs::protocol::EntityId::Clear();
2227 }
2228 inline const ::bgs::protocol::EntityId& UpdateFriendStateRequest::target_id() const {
2229  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateRequest.target_id)
2231 }
2232 inline ::bgs::protocol::EntityId* UpdateFriendStateRequest::mutable_target_id() {
2234  if (target_id_ == NULL) target_id_ = new ::bgs::protocol::EntityId;
2235  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateRequest.target_id)
2236  return target_id_;
2237 }
2238 inline ::bgs::protocol::EntityId* UpdateFriendStateRequest::release_target_id() {
2241  target_id_ = NULL;
2242  return temp;
2243 }
2245  delete target_id_;
2247  if (target_id) {
2249  } else {
2251  }
2252  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UpdateFriendStateRequest.target_id)
2253 }
2254 
2255 // repeated .bgs.protocol.Attribute attribute = 3;
2257  return attribute_.size();
2258 }
2260  attribute_.Clear();
2261 }
2262 inline const ::bgs::protocol::Attribute& UpdateFriendStateRequest::attribute(int index) const {
2263  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateRequest.attribute)
2264  return attribute_.Get(index);
2265 }
2266 inline ::bgs::protocol::Attribute* UpdateFriendStateRequest::mutable_attribute(int index) {
2267  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateRequest.attribute)
2268  return attribute_.Mutable(index);
2269 }
2270 inline ::bgs::protocol::Attribute* UpdateFriendStateRequest::add_attribute() {
2271  // @@protoc_insertion_point(field_add:bgs.protocol.friends.v1.UpdateFriendStateRequest.attribute)
2272  return attribute_.Add();
2273 }
2274 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
2276  // @@protoc_insertion_point(field_list:bgs.protocol.friends.v1.UpdateFriendStateRequest.attribute)
2277  return attribute_;
2278 }
2279 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
2281  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.friends.v1.UpdateFriendStateRequest.attribute)
2282  return &attribute_;
2283 }
2284 
2285 // optional uint64 attributes_epoch = 4;
2287  return (_has_bits_[0] & 0x00000008u) != 0;
2288 }
2290  _has_bits_[0] |= 0x00000008u;
2291 }
2293  _has_bits_[0] &= ~0x00000008u;
2294 }
2298 }
2300  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateRequest.attributes_epoch)
2301  return attributes_epoch_;
2302 }
2306  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.UpdateFriendStateRequest.attributes_epoch)
2307 }
2308 
2309 // -------------------------------------------------------------------
2310 
2311 // FriendNotification
2312 
2313 // required .bgs.protocol.friends.v1.Friend target = 1;
2314 inline bool FriendNotification::has_target() const {
2315  return (_has_bits_[0] & 0x00000001u) != 0;
2316 }
2318  _has_bits_[0] |= 0x00000001u;
2319 }
2321  _has_bits_[0] &= ~0x00000001u;
2322 }
2324  if (target_ != NULL) target_->::bgs::protocol::friends::v1::Friend::Clear();
2325  clear_has_target();
2326 }
2327 inline const ::bgs::protocol::friends::v1::Friend& FriendNotification::target() const {
2328  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendNotification.target)
2329  return target_ != NULL ? *target_ : *default_instance_->target_;
2330 }
2331 inline ::bgs::protocol::friends::v1::Friend* FriendNotification::mutable_target() {
2332  set_has_target();
2333  if (target_ == NULL) target_ = new ::bgs::protocol::friends::v1::Friend;
2334  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendNotification.target)
2335  return target_;
2336 }
2337 inline ::bgs::protocol::friends::v1::Friend* FriendNotification::release_target() {
2338  clear_has_target();
2340  target_ = NULL;
2341  return temp;
2342 }
2344  delete target_;
2345  target_ = target;
2346  if (target) {
2347  set_has_target();
2348  } else {
2349  clear_has_target();
2350  }
2351  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendNotification.target)
2352 }
2353 
2354 // optional .bgs.protocol.EntityId game_account_id = 2;
2356  return (_has_bits_[0] & 0x00000002u) != 0;
2357 }
2359  _has_bits_[0] |= 0x00000002u;
2360 }
2362  _has_bits_[0] &= ~0x00000002u;
2363 }
2365  if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear();
2367 }
2368 inline const ::bgs::protocol::EntityId& FriendNotification::game_account_id() const {
2369  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendNotification.game_account_id)
2371 }
2372 inline ::bgs::protocol::EntityId* FriendNotification::mutable_game_account_id() {
2374  if (game_account_id_ == NULL) game_account_id_ = new ::bgs::protocol::EntityId;
2375  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendNotification.game_account_id)
2376  return game_account_id_;
2377 }
2378 inline ::bgs::protocol::EntityId* FriendNotification::release_game_account_id() {
2382  return temp;
2383 }
2385  delete game_account_id_;
2387  if (game_account_id) {
2389  } else {
2391  }
2392  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendNotification.game_account_id)
2393 }
2394 
2395 // optional .bgs.protocol.ProcessId peer = 4;
2396 inline bool FriendNotification::has_peer() const {
2397  return (_has_bits_[0] & 0x00000004u) != 0;
2398 }
2400  _has_bits_[0] |= 0x00000004u;
2401 }
2403  _has_bits_[0] &= ~0x00000004u;
2404 }
2406  if (peer_ != NULL) peer_->::bgs::protocol::ProcessId::Clear();
2407  clear_has_peer();
2408 }
2409 inline const ::bgs::protocol::ProcessId& FriendNotification::peer() const {
2410  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendNotification.peer)
2411  return peer_ != NULL ? *peer_ : *default_instance_->peer_;
2412 }
2413 inline ::bgs::protocol::ProcessId* FriendNotification::mutable_peer() {
2414  set_has_peer();
2415  if (peer_ == NULL) peer_ = new ::bgs::protocol::ProcessId;
2416  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendNotification.peer)
2417  return peer_;
2418 }
2419 inline ::bgs::protocol::ProcessId* FriendNotification::release_peer() {
2420  clear_has_peer();
2422  peer_ = NULL;
2423  return temp;
2424 }
2426  delete peer_;
2427  peer_ = peer;
2428  if (peer) {
2429  set_has_peer();
2430  } else {
2431  clear_has_peer();
2432  }
2433  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendNotification.peer)
2434 }
2435 
2436 // optional .bgs.protocol.EntityId account_id = 5;
2438  return (_has_bits_[0] & 0x00000008u) != 0;
2439 }
2441  _has_bits_[0] |= 0x00000008u;
2442 }
2444  _has_bits_[0] &= ~0x00000008u;
2445 }
2447  if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear();
2449 }
2450 inline const ::bgs::protocol::EntityId& FriendNotification::account_id() const {
2451  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.FriendNotification.account_id)
2453 }
2454 inline ::bgs::protocol::EntityId* FriendNotification::mutable_account_id() {
2456  if (account_id_ == NULL) account_id_ = new ::bgs::protocol::EntityId;
2457  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.FriendNotification.account_id)
2458  return account_id_;
2459 }
2460 inline ::bgs::protocol::EntityId* FriendNotification::release_account_id() {
2463  account_id_ = NULL;
2464  return temp;
2465 }
2467  delete account_id_;
2469  if (account_id) {
2471  } else {
2473  }
2474  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.FriendNotification.account_id)
2475 }
2476 
2477 // -------------------------------------------------------------------
2478 
2479 // UpdateFriendStateNotification
2480 
2481 // required .bgs.protocol.friends.v1.Friend changed_friend = 1;
2483  return (_has_bits_[0] & 0x00000001u) != 0;
2484 }
2486  _has_bits_[0] |= 0x00000001u;
2487 }
2489  _has_bits_[0] &= ~0x00000001u;
2490 }
2492  if (changed_friend_ != NULL) changed_friend_->::bgs::protocol::friends::v1::Friend::Clear();
2494 }
2495 inline const ::bgs::protocol::friends::v1::Friend& UpdateFriendStateNotification::changed_friend() const {
2496  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateNotification.changed_friend)
2498 }
2499 inline ::bgs::protocol::friends::v1::Friend* UpdateFriendStateNotification::mutable_changed_friend() {
2501  if (changed_friend_ == NULL) changed_friend_ = new ::bgs::protocol::friends::v1::Friend;
2502  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateNotification.changed_friend)
2503  return changed_friend_;
2504 }
2505 inline ::bgs::protocol::friends::v1::Friend* UpdateFriendStateNotification::release_changed_friend() {
2509  return temp;
2510 }
2512  delete changed_friend_;
2514  if (changed_friend) {
2516  } else {
2518  }
2519  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UpdateFriendStateNotification.changed_friend)
2520 }
2521 
2522 // optional .bgs.protocol.EntityId game_account_id = 2;
2524  return (_has_bits_[0] & 0x00000002u) != 0;
2525 }
2527  _has_bits_[0] |= 0x00000002u;
2528 }
2530  _has_bits_[0] &= ~0x00000002u;
2531 }
2533  if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear();
2535 }
2536 inline const ::bgs::protocol::EntityId& UpdateFriendStateNotification::game_account_id() const {
2537  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateNotification.game_account_id)
2539 }
2540 inline ::bgs::protocol::EntityId* UpdateFriendStateNotification::mutable_game_account_id() {
2542  if (game_account_id_ == NULL) game_account_id_ = new ::bgs::protocol::EntityId;
2543  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateNotification.game_account_id)
2544  return game_account_id_;
2545 }
2546 inline ::bgs::protocol::EntityId* UpdateFriendStateNotification::release_game_account_id() {
2550  return temp;
2551 }
2553  delete game_account_id_;
2555  if (game_account_id) {
2557  } else {
2559  }
2560  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UpdateFriendStateNotification.game_account_id)
2561 }
2562 
2563 // optional .bgs.protocol.ProcessId peer = 4;
2565  return (_has_bits_[0] & 0x00000004u) != 0;
2566 }
2568  _has_bits_[0] |= 0x00000004u;
2569 }
2571  _has_bits_[0] &= ~0x00000004u;
2572 }
2574  if (peer_ != NULL) peer_->::bgs::protocol::ProcessId::Clear();
2575  clear_has_peer();
2576 }
2577 inline const ::bgs::protocol::ProcessId& UpdateFriendStateNotification::peer() const {
2578  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateNotification.peer)
2579  return peer_ != NULL ? *peer_ : *default_instance_->peer_;
2580 }
2581 inline ::bgs::protocol::ProcessId* UpdateFriendStateNotification::mutable_peer() {
2582  set_has_peer();
2583  if (peer_ == NULL) peer_ = new ::bgs::protocol::ProcessId;
2584  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateNotification.peer)
2585  return peer_;
2586 }
2587 inline ::bgs::protocol::ProcessId* UpdateFriendStateNotification::release_peer() {
2588  clear_has_peer();
2590  peer_ = NULL;
2591  return temp;
2592 }
2594  delete peer_;
2595  peer_ = peer;
2596  if (peer) {
2597  set_has_peer();
2598  } else {
2599  clear_has_peer();
2600  }
2601  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UpdateFriendStateNotification.peer)
2602 }
2603 
2604 // optional .bgs.protocol.EntityId account_id = 5;
2606  return (_has_bits_[0] & 0x00000008u) != 0;
2607 }
2609  _has_bits_[0] |= 0x00000008u;
2610 }
2612  _has_bits_[0] &= ~0x00000008u;
2613 }
2615  if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear();
2617 }
2618 inline const ::bgs::protocol::EntityId& UpdateFriendStateNotification::account_id() const {
2619  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.UpdateFriendStateNotification.account_id)
2621 }
2622 inline ::bgs::protocol::EntityId* UpdateFriendStateNotification::mutable_account_id() {
2624  if (account_id_ == NULL) account_id_ = new ::bgs::protocol::EntityId;
2625  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.UpdateFriendStateNotification.account_id)
2626  return account_id_;
2627 }
2628 inline ::bgs::protocol::EntityId* UpdateFriendStateNotification::release_account_id() {
2631  account_id_ = NULL;
2632  return temp;
2633 }
2635  delete account_id_;
2637  if (account_id) {
2639  } else {
2641  }
2642  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.UpdateFriendStateNotification.account_id)
2643 }
2644 
2645 // -------------------------------------------------------------------
2646 
2647 // InvitationNotification
2648 
2649 // required .bgs.protocol.Invitation invitation = 1;
2651  return (_has_bits_[0] & 0x00000001u) != 0;
2652 }
2654  _has_bits_[0] |= 0x00000001u;
2655 }
2657  _has_bits_[0] &= ~0x00000001u;
2658 }
2660  if (invitation_ != NULL) invitation_->::bgs::protocol::Invitation::Clear();
2662 }
2663 inline const ::bgs::protocol::Invitation& InvitationNotification::invitation() const {
2664  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.InvitationNotification.invitation)
2666 }
2667 inline ::bgs::protocol::Invitation* InvitationNotification::mutable_invitation() {
2669  if (invitation_ == NULL) invitation_ = new ::bgs::protocol::Invitation;
2670  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.InvitationNotification.invitation)
2671  return invitation_;
2672 }
2673 inline ::bgs::protocol::Invitation* InvitationNotification::release_invitation() {
2676  invitation_ = NULL;
2677  return temp;
2678 }
2680  delete invitation_;
2682  if (invitation) {
2684  } else {
2686  }
2687  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.InvitationNotification.invitation)
2688 }
2689 
2690 // optional .bgs.protocol.EntityId game_account_id = 2;
2692  return (_has_bits_[0] & 0x00000002u) != 0;
2693 }
2695  _has_bits_[0] |= 0x00000002u;
2696 }
2698  _has_bits_[0] &= ~0x00000002u;
2699 }
2701  if (game_account_id_ != NULL) game_account_id_->::bgs::protocol::EntityId::Clear();
2703 }
2704 inline const ::bgs::protocol::EntityId& InvitationNotification::game_account_id() const {
2705  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.InvitationNotification.game_account_id)
2707 }
2708 inline ::bgs::protocol::EntityId* InvitationNotification::mutable_game_account_id() {
2710  if (game_account_id_ == NULL) game_account_id_ = new ::bgs::protocol::EntityId;
2711  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.InvitationNotification.game_account_id)
2712  return game_account_id_;
2713 }
2714 inline ::bgs::protocol::EntityId* InvitationNotification::release_game_account_id() {
2718  return temp;
2719 }
2721  delete game_account_id_;
2723  if (game_account_id) {
2725  } else {
2727  }
2728  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.InvitationNotification.game_account_id)
2729 }
2730 
2731 // optional uint32 reason = 3 [default = 0];
2733  return (_has_bits_[0] & 0x00000004u) != 0;
2734 }
2736  _has_bits_[0] |= 0x00000004u;
2737 }
2739  _has_bits_[0] &= ~0x00000004u;
2740 }
2742  reason_ = 0u;
2743  clear_has_reason();
2744 }
2746  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.InvitationNotification.reason)
2747  return reason_;
2748 }
2750  set_has_reason();
2751  reason_ = value;
2752  // @@protoc_insertion_point(field_set:bgs.protocol.friends.v1.InvitationNotification.reason)
2753 }
2754 
2755 // optional .bgs.protocol.ProcessId peer = 4;
2757  return (_has_bits_[0] & 0x00000008u) != 0;
2758 }
2760  _has_bits_[0] |= 0x00000008u;
2761 }
2763  _has_bits_[0] &= ~0x00000008u;
2764 }
2766  if (peer_ != NULL) peer_->::bgs::protocol::ProcessId::Clear();
2767  clear_has_peer();
2768 }
2769 inline const ::bgs::protocol::ProcessId& InvitationNotification::peer() const {
2770  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.InvitationNotification.peer)
2771  return peer_ != NULL ? *peer_ : *default_instance_->peer_;
2772 }
2773 inline ::bgs::protocol::ProcessId* InvitationNotification::mutable_peer() {
2774  set_has_peer();
2775  if (peer_ == NULL) peer_ = new ::bgs::protocol::ProcessId;
2776  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.InvitationNotification.peer)
2777  return peer_;
2778 }
2779 inline ::bgs::protocol::ProcessId* InvitationNotification::release_peer() {
2780  clear_has_peer();
2782  peer_ = NULL;
2783  return temp;
2784 }
2786  delete peer_;
2787  peer_ = peer;
2788  if (peer) {
2789  set_has_peer();
2790  } else {
2791  clear_has_peer();
2792  }
2793  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.InvitationNotification.peer)
2794 }
2795 
2796 // optional .bgs.protocol.EntityId account_id = 5;
2798  return (_has_bits_[0] & 0x00000010u) != 0;
2799 }
2801  _has_bits_[0] |= 0x00000010u;
2802 }
2804  _has_bits_[0] &= ~0x00000010u;
2805 }
2807  if (account_id_ != NULL) account_id_->::bgs::protocol::EntityId::Clear();
2809 }
2810 inline const ::bgs::protocol::EntityId& InvitationNotification::account_id() const {
2811  // @@protoc_insertion_point(field_get:bgs.protocol.friends.v1.InvitationNotification.account_id)
2813 }
2814 inline ::bgs::protocol::EntityId* InvitationNotification::mutable_account_id() {
2816  if (account_id_ == NULL) account_id_ = new ::bgs::protocol::EntityId;
2817  // @@protoc_insertion_point(field_mutable:bgs.protocol.friends.v1.InvitationNotification.account_id)
2818  return account_id_;
2819 }
2820 inline ::bgs::protocol::EntityId* InvitationNotification::release_account_id() {
2823  account_id_ = NULL;
2824  return temp;
2825 }
2827  delete account_id_;
2829  if (account_id) {
2831  } else {
2833  }
2834  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.friends.v1.InvitationNotification.account_id)
2835 }
2836 
2837 
2838 // @@protoc_insertion_point(namespace_scope)
2839 
2840 } // namespace v1
2841 } // namespace friends
2842 } // namespace protocol
2843 } // namespace bgs
2844 
2845 #ifndef SWIG
2846 namespace google {
2847 namespace protobuf {
2848 
2849 
2850 } // namespace google
2851 } // namespace protobuf
2852 #endif // SWIG
2853 
2854 // @@protoc_insertion_point(global_scope)
2855 
2856 #endif // PROTOBUF_friends_5fservice_2eproto__INCLUDED
bool has_peer() const
Definition: friends_service.pb.h:2756
bool has_target_id() const
Definition: friends_service.pb.h:1818
void clear_role()
Definition: friends_service.pb.h:1993
bool has_agent_id() const
Definition: friends_service.pb.h:2174
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:663
inline::bgs::protocol::EntityId * mutable_target_id()
Definition: friends_service.pb.h:1966
::bgs::protocol::EntityId * target_id_
Definition: friends_service.pb.h:970
void clear_has_game_account_id()
Definition: friends_service.pb.h:2529
static UpdateFriendStateNotification * default_instance_
Definition: friends_service.pb.h:1212
void clear_has_reason()
Definition: friends_service.pb.h:2738
bool has_target_id() const
Definition: friends_service.pb.h:2065
inline::bgs::protocol::EntityId * release_agent_id()
Definition: friends_service.pb.h:1731
void set_has_target_id()
Definition: friends_service.pb.h:1821
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:322
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:167
inline::google::protobuf::uint64 object_id() const
Definition: friends_service.pb.h:1762
Definition: friends_service.pb.h:490
::google::protobuf::uint64 attributes_epoch_
Definition: friends_service.pb.h:972
SubscribeRequest & operator=(const SubscribeRequest &from)
Definition: friends_service.pb.h:71
int _cached_size_
Definition: friends_service.pb.h:385
inline::bgs::protocol::EntityId * mutable_target_id()
Definition: friends_service.pb.h:2232
static UpdateFriendStateRequest * default_instance_
Definition: friends_service.pb.h:978
int GetCachedSize() const
Definition: friends_service.pb.h:438
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:689
bool has_game_account_id() const
Definition: friends_service.pb.h:2355
static SubscribeResponse * default_instance_
Definition: friends_service.pb.h:302
const ::bgs::protocol::friends::v1::Friend & target_friend() const
Definition: friends_service.pb.h:1876
bool has_changed_friend() const
Definition: friends_service.pb.h:2482
int GetCachedSize() const
Definition: friends_service.pb.h:105
void clear_has_max_received_invitations()
Definition: friends_service.pb.h:1542
void clear_object_id()
Definition: friends_service.pb.h:1493
inline::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_role()
Definition: friends_service.pb.h:2130
::bgs::protocol::EntityId * agent_id_
Definition: friends_service.pb.h:665
const ::bgs::protocol::EntityId & agent_id() const
Definition: friends_service.pb.h:2187
::bgs::protocol::EntityId * agent_id_
Definition: friends_service.pb.h:771
void clear_target_id()
Definition: friends_service.pb.h:1827
inline::bgs::protocol::EntityId * mutable_account_id()
Definition: friends_service.pb.h:2814
const ::bgs::protocol::EntityId & game_account_id() const
Definition: friends_service.pb.h:2536
void clear_has_object_id()
Definition: friends_service.pb.h:1755
inline::bgs::protocol::ProcessId * release_peer()
Definition: friends_service.pb.h:2779
const ::bgs::protocol::EntityId & agent_id() const
Definition: friends_service.pb.h:1456
InvitationNotification & operator=(const InvitationNotification &from)
Definition: friends_service.pb.h:1223
inline::bgs::protocol::ProcessId * release_peer()
Definition: friends_service.pb.h:2419
Definition: entity_types.pb.h:45
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > & sent_invitations() const
Definition: friends_service.pb.h:1663
void set_has_game_account_id()
Definition: friends_service.pb.h:2694
inline::bgs::protocol::EntityId * mutable_agent_id()
Definition: friends_service.pb.h:1925
void clear_target_id()
Definition: friends_service.pb.h:1958
void set_attributes_epoch(::google::protobuf::uint64 value)
Definition: friends_service.pb.h:2303
void set_has_invitation()
Definition: friends_service.pb.h:2653
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:409
bool has_reason() const
Definition: friends_service.pb.h:2732
const ::bgs::protocol::Invitation & invitation() const
Definition: friends_service.pb.h:2663
void clear_role()
Definition: friends_service.pb.h:2109
int _cached_size_
Definition: friends_service.pb.h:855
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:142
void clear_has_max_sent_invitations()
Definition: friends_service.pb.h:1566
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:288
void set_has_target()
Definition: friends_service.pb.h:2317
void set_has_game_account_id()
Definition: friends_service.pb.h:2526
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:171
inline::bgs::protocol::EntityId * release_agent_id()
Definition: friends_service.pb.h:1800
Definition: invitation_types.pb.h:892
int _cached_size_
Definition: friends_service.pb.h:968
void set_has_account_id()
Definition: friends_service.pb.h:2800
int received_invitations_size() const
Definition: friends_service.pb.h:1674
void clear_has_max_friends()
Definition: friends_service.pb.h:1518
void clear_agent_id()
Definition: friends_service.pb.h:2183
uint32 service_hash_
Definition: friends_service.pb.h:1430
static AssignRoleRequest * default_instance_
Definition: friends_service.pb.h:673
inline::bgs::protocol::Invitation * add_sent_invitations()
Definition: friends_service.pb.h:1658
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role > & role() const
Definition: friends_service.pb.h:1603
void set_has_peer()
Definition: friends_service.pb.h:2759
inline::bgs::protocol::Role * add_role()
Definition: friends_service.pb.h:1598
::bgs::protocol::ProcessId * peer_
Definition: friends_service.pb.h:1088
inline::bgs::protocol::EntityId * release_game_account_id()
Definition: friends_service.pb.h:2546
GenericFriendRequest & operator=(const GenericFriendRequest &from)
Definition: friends_service.pb.h:404
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:1199
const ::google::protobuf::RepeatedField< ::google::protobuf::int32 > & role() const
Definition: friends_service.pb.h:2009
void clear_agent_id()
Definition: friends_service.pb.h:1786
AssignRoleRequest & operator=(const AssignRoleRequest &from)
Definition: friends_service.pb.h:578
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:800
void set_has_account_id()
Definition: friends_service.pb.h:2608
Definition: Session.h:36
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > & friends() const
Definition: friends_service.pb.h:2159
inline::bgs::protocol::EntityId * mutable_account_id()
Definition: friends_service.pb.h:2622
void set_allocated_target_id(::bgs::protocol::EntityId *target_id)
Definition: friends_service.pb.h:2094
void set_allocated_target_id(::bgs::protocol::EntityId *target_id)
Definition: friends_service.pb.h:1847
const ::bgs::protocol::EntityId & agent_id() const
Definition: friends_service.pb.h:2037
bool has_agent_id() const
Definition: friends_service.pb.h:1908
void clear_has_agent_id()
Definition: friends_service.pb.h:1714
inline::bgs::protocol::EntityId * mutable_agent_id()
Definition: friends_service.pb.h:2191
int role_size() const
Definition: friends_service.pb.h:2106
void clear_agent_id()
Definition: friends_service.pb.h:1917
void set_allocated_account_id(::bgs::protocol::EntityId *account_id)
Definition: friends_service.pb.h:2634
::bgs::protocol::Invitation * invitation_
Definition: friends_service.pb.h:1329
int role_size() const
Definition: friends_service.pb.h:1990
inline::bgs::protocol::EntityId * mutable_agent_id()
Definition: friends_service.pb.h:1725
inline::bgs::protocol::EntityId * mutable_agent_id()
Definition: friends_service.pb.h:1460
const ::bgs::protocol::EntityId & account_id() const
Definition: friends_service.pb.h:2618
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:693
inline::google::protobuf::uint32 reason() const
Definition: friends_service.pb.h:2745
void set_role(int index,::google::protobuf::uint32 value)
Definition: friends_service.pb.h:2116
const ::bgs::protocol::EntityId & account_id() const
Definition: friends_service.pb.h:2810
inline::bgs::protocol::ProcessId * mutable_peer()
Definition: friends_service.pb.h:2581
void clear_attributes_epoch()
Definition: friends_service.pb.h:2295
Definition: unknown_field_set.h:74
inline::bgs::protocol::friends::v1::Friend * mutable_target()
Definition: friends_service.pb.h:2331
inline::bgs::protocol::EntityId * release_game_account_id()
Definition: friends_service.pb.h:2714
inline::bgs::protocol::ProcessId * mutable_peer()
Definition: friends_service.pb.h:2773
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role > * mutable_role()
Definition: friends_service.pb.h:1608
inline::bgs::protocol::friends::v1::Friend * release_target_friend()
Definition: friends_service.pb.h:1886
inline::bgs::protocol::friends::v1::Friend * mutable_target_friend()
Definition: friends_service.pb.h:1880
inline::bgs::protocol::friends::v1::Friend * release_target()
Definition: friends_service.pb.h:2337
static ViewFriendsResponse * default_instance_
Definition: friends_service.pb.h:862
Definition: friends_service.pb.h:1216
bool has_target() const
Definition: friends_service.pb.h:2314
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > * mutable_friends()
Definition: friends_service.pb.h:1638
static GenericFriendResponse * default_instance_
Definition: friends_service.pb.h:567
bool has_game_account_id() const
Definition: friends_service.pb.h:2691
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:878
void set_has_agent_id()
Definition: friends_service.pb.h:2027
Definition: invitation_types.pb.h:50
void set_allocated_invitation(::bgs::protocol::Invitation *invitation)
Definition: friends_service.pb.h:2679
uint8_t uint8
Definition: common.h:175
void clear_has_invitation()
Definition: friends_service.pb.h:2656
void set_allocated_peer(::bgs::protocol::ProcessId *peer)
Definition: friends_service.pb.h:2425
const ::bgs::protocol::ProcessId & peer() const
Definition: friends_service.pb.h:2769
void clear_has_agent_id()
Definition: friends_service.pb.h:1449
bool has_invitation() const
Definition: friends_service.pb.h:2650
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > * mutable_received_invitations()
Definition: friends_service.pb.h:1698
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Role > role_
Definition: friends_service.pb.h:292
void clear_has_account_id()
Definition: friends_service.pb.h:2803
::bgs::protocol::friends::v1::Friend * target_friend_
Definition: friends_service.pb.h:561
inline::bgs::protocol::EntityId * mutable_game_account_id()
Definition: friends_service.pb.h:2540
void clear_has_target_id()
Definition: friends_service.pb.h:2071
void set_role(int index,::google::protobuf::int32 value)
Definition: friends_service.pb.h:2000
void clear_account_id()
Definition: friends_service.pb.h:2806
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
Definition: friends_service.pb.h:971
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:1232
void clear_has_peer()
Definition: friends_service.pb.h:2402
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: message.h:147
static InvitationNotification * default_instance_
Definition: friends_service.pb.h:1339
#define GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(TypeName)
Definition: common.h:89
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:852
inline::google::protobuf::uint64 attributes_epoch() const
Definition: friends_service.pb.h:2299
::google::protobuf::uint64 object_id_
Definition: friends_service.pb.h:387
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:477
FriendNotification & operator=(const FriendNotification &from)
Definition: friends_service.pb.h:989
inline::bgs::protocol::Invitation * release_invitation()
Definition: friends_service.pb.h:2673
uint32 service_hash_
Definition: friends_service.pb.h:1388
Definition: friends_service.pb.h:155
void set_has_reason()
Definition: friends_service.pb.h:2735
void clear_target()
Definition: friends_service.pb.h:2323
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:506
void clear_has_peer()
Definition: friends_service.pb.h:2570
void set_has_agent_id()
Definition: friends_service.pb.h:1911
void clear_has_agent_id()
Definition: friends_service.pb.h:1783
uint64_t uint64
Definition: g3dmath.h:170
::bgs::protocol::EntityId * game_account_id_
Definition: friends_service.pb.h:1204
::google::protobuf::uint32 reason_
Definition: friends_service.pb.h:1333
int role_size() const
Definition: friends_service.pb.h:1584
void clear_received_invitations()
Definition: friends_service.pb.h:1677
Definition: descriptor.h:846
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:382
void clear_friends()
Definition: friends_service.pb.h:2143
int _cached_size_
Definition: friends_service.pb.h:560
Definition: friends_service.pb.h:677
void clear_game_account_id()
Definition: friends_service.pb.h:2700
ViewFriendsResponse & operator=(const ViewFriendsResponse &from)
Definition: friends_service.pb.h:791
void set_allocated_account_id(::bgs::protocol::EntityId *account_id)
Definition: friends_service.pb.h:2466
int GetCachedSize() const
Definition: friends_service.pb.h:196
UpdateFriendStateNotification & operator=(const UpdateFriendStateNotification &from)
Definition: friends_service.pb.h:1106
int size() const
Definition: repeated_field.h:631
const ::bgs::protocol::ProcessId & peer() const
Definition: friends_service.pb.h:2409
ViewFriendsRequest & operator=(const ViewFriendsRequest &from)
Definition: friends_service.pb.h:684
inline::bgs::protocol::ProcessId * release_peer()
Definition: friends_service.pb.h:2587
::bgs::protocol::EntityId * target_id_
Definition: friends_service.pb.h:772
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:661
::bgs::protocol::EntityId * agent_id_
Definition: friends_service.pb.h:479
bool has_agent_id() const
Definition: friends_service.pb.h:1443
inline::bgs::protocol::EntityId * release_account_id()
Definition: friends_service.pb.h:2628
int GetCachedSize() const
Definition: friends_service.pb.h:907
void protobuf_ShutdownFile_friends_5fservice_2eproto()
Definition: message.h:165
void TC_SHARED_API protobuf_AddDesc_friends_5fservice_2eproto()
void set_has_max_received_invitations()
Definition: friends_service.pb.h:1539
int _cached_size_
Definition: friends_service.pb.h:478
void clear_has_target()
Definition: friends_service.pb.h:2320
::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > friends_
Definition: friends_service.pb.h:293
void add_role(::google::protobuf::int32 value)
Definition: friends_service.pb.h:2004
#define output
Definition: wire_format_lite.h:381
void clear_has_peer()
Definition: friends_service.pb.h:2762
void set_max_sent_invitations(::google::protobuf::uint32 value)
Definition: friends_service.pb.h:1577
inline::bgs::protocol::Invitation * add_received_invitations()
Definition: friends_service.pb.h:1688
inline::bgs::protocol::EntityId * release_target_id()
Definition: friends_service.pb.h:2088
void set_allocated_peer(::bgs::protocol::ProcessId *peer)
Definition: friends_service.pb.h:2593
void clear_game_account_id()
Definition: friends_service.pb.h:2532
int _cached_size_
Definition: friends_service.pb.h:770
void set_allocated_agent_id(::bgs::protocol::EntityId *agent_id)
Definition: friends_service.pb.h:1806
void clear_account_id()
Definition: friends_service.pb.h:2614
bool has_peer() const
Definition: friends_service.pb.h:2396
Definition: friends_types.pb.h:49
::bgs::protocol::ProcessId * peer_
Definition: friends_service.pb.h:1205
inline::bgs::protocol::EntityId * release_agent_id()
Definition: friends_service.pb.h:2047
void clear_has_account_id()
Definition: friends_service.pb.h:2443
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:559
void set_has_agent_id()
Definition: friends_service.pb.h:2177
::google::protobuf::uint32 max_received_invitations_
Definition: friends_service.pb.h:291
inline::bgs::protocol::EntityId * mutable_game_account_id()
Definition: friends_service.pb.h:2372
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:1111
Definition: coded_stream.h:156
int32_t int32
Definition: common.h:172
void clear_max_sent_invitations()
Definition: friends_service.pb.h:1569
inline::bgs::protocol::friends::v1::Friend * release_changed_friend()
Definition: friends_service.pb.h:2505
inline::bgs::protocol::EntityId * release_agent_id()
Definition: friends_service.pb.h:1931
bool has_account_id() const
Definition: friends_service.pb.h:2797
inline::bgs::protocol::EntityId * release_account_id()
Definition: friends_service.pb.h:2460
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > & friends() const
Definition: friends_service.pb.h:1633
void clear_friends()
Definition: friends_service.pb.h:1617
::bgs::protocol::EntityId * account_id_
Definition: friends_service.pb.h:1206
inline::bgs::protocol::EntityId * release_target_id()
Definition: friends_service.pb.h:2238
int _cached_size_
Definition: friends_service.pb.h:1085
void clear_role()
Definition: friends_service.pb.h:1587
void set_has_max_sent_invitations()
Definition: friends_service.pb.h:1563
void set_allocated_changed_friend(::bgs::protocol::friends::v1::Friend *changed_friend)
Definition: friends_service.pb.h:2511
int GetCachedSize() const
Definition: friends_service.pb.h:1140
inline::bgs::protocol::EntityId * release_agent_id()
Definition: friends_service.pb.h:1466
::bgs::protocol::friends::v1::Friend * changed_friend_
Definition: friends_service.pb.h:1203
bool has_max_sent_invitations() const
Definition: friends_service.pb.h:1560
::bgs::protocol::friends::v1::Friend * target_
Definition: friends_service.pb.h:1086
Definition: coded_stream.h:621
inline::google::protobuf::uint32 max_sent_invitations() const
Definition: friends_service.pb.h:1573
inline::bgs::protocol::EntityId * mutable_target_id()
Definition: friends_service.pb.h:2082
Definition: friends_service.pb.h:571
inline::bgs::protocol::Invitation * mutable_invitation()
Definition: friends_service.pb.h:2667
bool has_object_id() const
Definition: friends_service.pb.h:1484
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:1325
void protobuf_AssignDesc_friends_5fservice_2eproto()
void clear_has_target_id()
Definition: friends_service.pb.h:1955
void set_max_received_invitations(::google::protobuf::uint32 value)
Definition: friends_service.pb.h:1553
Definition: friends_service.pb.h:866
void set_allocated_account_id(::bgs::protocol::EntityId *account_id)
Definition: friends_service.pb.h:2826
UpdateFriendStateRequest & operator=(const UpdateFriendStateRequest &from)
Definition: friends_service.pb.h:873
Definition: friends_service.pb.h:982
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & role() const
Definition: friends_service.pb.h:2125
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > * mutable_sent_invitations()
Definition: friends_service.pb.h:1668
const ::bgs::protocol::EntityId & agent_id() const
Definition: friends_service.pb.h:1921
Definition: message.h:150
inline::bgs::protocol::EntityId * release_account_id()
Definition: friends_service.pb.h:2820
std::integral_constant< uint32, 0xA3DDB1BDu > OriginalHash
Definition: friends_service.pb.h:1350
::bgs::protocol::EntityId * target_id_
Definition: friends_service.pb.h:480
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:557
const ::bgs::protocol::EntityId & target_id() const
Definition: friends_service.pb.h:1962
void clear_has_target_friend()
Definition: friends_service.pb.h:1869
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:998
void clear_has_agent_id()
Definition: friends_service.pb.h:2180
void clear_sent_invitations()
Definition: friends_service.pb.h:1647
#define input
Definition: wire_format_lite.h:242
void set_has_max_friends()
Definition: friends_service.pb.h:1515
bool has_peer() const
Definition: friends_service.pb.h:2564
void set_has_account_id()
Definition: friends_service.pb.h:2440
int attribute_size() const
Definition: friends_service.pb.h:2256
uint32_t uint32
Definition: common.h:177
uint32_t uint32
Definition: Define.h:150
const ::bgs::protocol::EntityId & agent_id() const
Definition: friends_service.pb.h:1721
bool has_object_id() const
Definition: friends_service.pb.h:1749
void set_object_id(::google::protobuf::uint64 value)
Definition: friends_service.pb.h:1501
int _cached_size_
Definition: friends_service.pb.h:1328
inline::bgs::protocol::friends::v1::Friend * add_friends()
Definition: friends_service.pb.h:2154
inline::google::protobuf::uint64 object_id() const
Definition: friends_service.pb.h:1497
int _cached_size_
Definition: friends_service.pb.h:143
const ::bgs::protocol::ProcessId & peer() const
Definition: friends_service.pb.h:2577
Definition: friends_service.pb.h:1395
int _cached_size_
Definition: friends_service.pb.h:664
void set_has_object_id()
Definition: friends_service.pb.h:1487
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:413
#define TC_SHARED_API
Definition: Define.h:128
inline::google::protobuf::RepeatedField< ::google::protobuf::int32 > * mutable_role()
Definition: friends_service.pb.h:2014
int _cached_size_
Definition: friends_service.pb.h:1202
void clear_has_game_account_id()
Definition: friends_service.pb.h:2697
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:965
inline::bgs::protocol::EntityId * mutable_target_id()
Definition: friends_service.pb.h:1835
bool has_agent_id() const
Definition: friends_service.pb.h:1777
std::integral_constant< uint32, 0xA6717548u > NameHash
Definition: friends_service.pb.h:1403
int GetCachedSize() const
Definition: friends_service.pb.h:612
void set_has_agent_id()
Definition: friends_service.pb.h:1711
void set_object_id(::google::protobuf::uint64 value)
Definition: friends_service.pb.h:1766
uint64_t uint64
Definition: common.h:178
::google::protobuf::RepeatedField< ::google::protobuf::int32 > role_
Definition: friends_service.pb.h:667
const ::bgs::protocol::EntityId & account_id() const
Definition: friends_service.pb.h:2450
inline::bgs::protocol::EntityId * release_target_id()
Definition: friends_service.pb.h:1841
int _cached_size_
Definition: friends_service.pb.h:289
::bgs::protocol::ProcessId * peer_
Definition: friends_service.pb.h:1331
void set_has_peer()
Definition: friends_service.pb.h:2399
inline::bgs::protocol::EntityId * mutable_game_account_id()
Definition: friends_service.pb.h:2708
::bgs::protocol::EntityId * account_id_
Definition: friends_service.pb.h:1332
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > sent_invitations_
Definition: friends_service.pb.h:294
int GetCachedSize() const
Definition: friends_service.pb.h:531
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:967
Definition: friends_service.pb.h:397
void set_has_game_account_id()
Definition: friends_service.pb.h:2358
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:583
Definition: rpc_types.pb.h:394
const ::bgs::protocol::EntityId & game_account_id() const
Definition: friends_service.pb.h:2368
const ::bgs::protocol::EntityId & agent_id() const
Definition: friends_service.pb.h:1790
void set_allocated_game_account_id(::bgs::protocol::EntityId *game_account_id)
Definition: friends_service.pb.h:2720
void clear_target_friend()
Definition: friends_service.pb.h:1872
std::integral_constant< uint32, 0xABDFED63u > NameHash
Definition: friends_service.pb.h:1351
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:286
void clear_attribute()
Definition: friends_service.pb.h:2259
const ::bgs::protocol::EntityId & target_id() const
Definition: friends_service.pb.h:2078
inline::bgs::protocol::friends::v1::Friend * add_friends()
Definition: friends_service.pb.h:1628
void set_max_friends(::google::protobuf::uint32 value)
Definition: friends_service.pb.h:1529
void set_has_agent_id()
Definition: friends_service.pb.h:1780
void set_has_target_friend()
Definition: friends_service.pb.h:1866
void clear_game_account_id()
Definition: friends_service.pb.h:2364
::bgs::protocol::EntityId * account_id_
Definition: friends_service.pb.h:1089
::bgs::protocol::EntityId * agent_id_
Definition: friends_service.pb.h:969
void clear_has_game_account_id()
Definition: friends_service.pb.h:2361
void set_allocated_target_id(::bgs::protocol::EntityId *target_id)
Definition: friends_service.pb.h:1978
void set_allocated_target(::bgs::protocol::friends::v1::Friend *target)
Definition: friends_service.pb.h:2343
Definition: ServiceBase.h:34
::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > friends_
Definition: friends_service.pb.h:856
void set_has_attributes_epoch()
Definition: friends_service.pb.h:2289
void clear_reason()
Definition: friends_service.pb.h:2741
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:1327
void clear_invitation()
Definition: friends_service.pb.h:2659
void Add(const Element &value)
Definition: repeated_field.h:684
bool has_attributes_epoch() const
Definition: friends_service.pb.h:2286
const ::bgs::protocol::EntityId & target_id() const
Definition: friends_service.pb.h:2228
void set_allocated_game_account_id(::bgs::protocol::EntityId *game_account_id)
Definition: friends_service.pb.h:2552
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:76
void set_has_agent_id()
Definition: friends_service.pb.h:1446
int GetCachedSize() const
Definition: friends_service.pb.h:825
void add_role(::google::protobuf::uint32 value)
Definition: friends_service.pb.h:2120
void clear_peer()
Definition: friends_service.pb.h:2573
void set_has_target_id()
Definition: friends_service.pb.h:2218
inline::bgs::protocol::EntityId * mutable_agent_id()
Definition: friends_service.pb.h:2041
void clear_peer()
Definition: friends_service.pb.h:2765
bool has_target_friend() const
Definition: friends_service.pb.h:1863
inline::google::protobuf::uint32 max_friends() const
Definition: friends_service.pb.h:1525
inline::bgs::protocol::EntityId * release_agent_id()
Definition: friends_service.pb.h:2197
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:1082
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_
Definition: friends_service.pb.h:773
inline::google::protobuf::uint32 max_received_invitations() const
Definition: friends_service.pb.h:1549
UnsubscribeRequest & operator=(const UnsubscribeRequest &from)
Definition: friends_service.pb.h:313
::google::protobuf::uint32 max_sent_invitations_
Definition: friends_service.pb.h:296
::google::protobuf::uint32 max_friends_
Definition: friends_service.pb.h:290
Definition: friends_service.pb.h:1343
void clear_has_agent_id()
Definition: friends_service.pb.h:1914
Definition: friends_service.pb.h:64
static ViewFriendsRequest * default_instance_
Definition: friends_service.pb.h:780
void set_allocated_target_id(::bgs::protocol::EntityId *target_id)
Definition: friends_service.pb.h:2244
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:1084
void clear_has_target_id()
Definition: friends_service.pb.h:1824
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:475
Definition: invitation_types.pb.h:579
bool has_max_received_invitations() const
Definition: friends_service.pb.h:1536
void set_allocated_agent_id(::bgs::protocol::EntityId *agent_id)
Definition: friends_service.pb.h:1472
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:769
inline::bgs::protocol::EntityId * mutable_account_id()
Definition: friends_service.pb.h:2454
void Clear()
Definition: repeated_field.h:723
void clear_has_object_id()
Definition: friends_service.pb.h:1490
void set_allocated_agent_id(::bgs::protocol::EntityId *agent_id)
Definition: friends_service.pb.h:1937
int32_t int32
Definition: g3dmath.h:167
void set_has_changed_friend()
Definition: friends_service.pb.h:2485
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:767
void clear_account_id()
Definition: friends_service.pb.h:2446
const ::bgs::protocol::EntityId & game_account_id() const
Definition: friends_service.pb.h:2704
void set_has_target_id()
Definition: friends_service.pb.h:2068
bool has_max_friends() const
Definition: friends_service.pb.h:1512
const ::bgs::protocol::friends::v1::Friend & target() const
Definition: friends_service.pb.h:2327
bool has_account_id() const
Definition: friends_service.pb.h:2605
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: friends_service.pb.h:140
Definition: BnetFileGenerator.h:47
Definition: friends_service.pb.h:784
int GetCachedSize() const
Definition: friends_service.pb.h:718
int _role_cached_byte_size_
Definition: friends_service.pb.h:774
const FieldDescriptor value
Definition: descriptor.h:1522
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:80
#define GOOGLE_ULONGLONG(x)
Definition: common.h:193
::bgs::protocol::EntityId * game_account_id_
Definition: friends_service.pb.h:1087
const ::bgs::protocol::EntityId & target_id() const
Definition: friends_service.pb.h:1831
static UnsubscribeRequest * default_instance_
Definition: friends_service.pb.h:393
uint32_t uint32
Definition: g3dmath.h:168
bool has_target_id() const
Definition: friends_service.pb.h:2215
bool has_agent_id() const
Definition: friends_service.pb.h:2024
inline::bgs::protocol::EntityId * mutable_agent_id()
Definition: friends_service.pb.h:1794
void set_allocated_target_friend(::bgs::protocol::friends::v1::Friend *target_friend)
Definition: friends_service.pb.h:1892
void set_has_target_id()
Definition: friends_service.pb.h:1952
GenericFriendResponse & operator=(const GenericFriendResponse &from)
Definition: friends_service.pb.h:497
inline::bgs::protocol::ProcessId * mutable_peer()
Definition: friends_service.pb.h:2413
static GenericFriendRequest * default_instance_
Definition: friends_service.pb.h:486
inline::bgs::protocol::friends::v1::Friend * mutable_changed_friend()
Definition: friends_service.pb.h:2499
void set_allocated_agent_id(::bgs::protocol::EntityId *agent_id)
Definition: friends_service.pb.h:2203
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:1201
inline::bgs::protocol::Attribute * add_attribute()
Definition: friends_service.pb.h:2270
void clear_changed_friend()
Definition: friends_service.pb.h:2491
::bgs::protocol::EntityId * game_account_id_
Definition: friends_service.pb.h:1330
::bgs::protocol::EntityId * target_id_
Definition: friends_service.pb.h:666
void clear_agent_id()
Definition: friends_service.pb.h:1717
static FriendNotification * default_instance_
Definition: friends_service.pb.h:1095
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:994
SubscribeResponse & operator=(const SubscribeResponse &from)
Definition: friends_service.pb.h:162
void clear_has_agent_id()
Definition: friends_service.pb.h:2030
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:796
static SubscribeRequest * default_instance_
Definition: friends_service.pb.h:151
void set_allocated_game_account_id(::bgs::protocol::EntityId *game_account_id)
Definition: friends_service.pb.h:2384
const Element & Get(int index) const
Definition: repeated_field.h:663
void clear_target_id()
Definition: friends_service.pb.h:2224
std::integral_constant< uint32, 0x6F259A13u > OriginalHash
Definition: friends_service.pb.h:1402
Definition: friends_service.pb.h:306
void clear_has_attributes_epoch()
Definition: friends_service.pb.h:2292
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:502
void clear_max_friends()
Definition: friends_service.pb.h:1521
Definition: rpc_types.pb.h:214
inline::bgs::protocol::EntityId * release_game_account_id()
Definition: friends_service.pb.h:2378
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:1115
int GetCachedSize() const
Definition: friends_service.pb.h:347
::google::protobuf::uint32 _has_bits_[1]
Definition: friends_service.pb.h:384
bool has_target_id() const
Definition: friends_service.pb.h:1949
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:882
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > & received_invitations() const
Definition: friends_service.pb.h:1693
bool has_agent_id() const
Definition: friends_service.pb.h:1708
int GetCachedSize() const
Definition: friends_service.pb.h:1257
void clear_agent_id()
Definition: friends_service.pb.h:1452
void clear_object_id()
Definition: friends_service.pb.h:1758
const ::bgs::protocol::friends::v1::Friend & changed_friend() const
Definition: friends_service.pb.h:2495
void set_allocated_peer(::bgs::protocol::ProcessId *peer)
Definition: friends_service.pb.h:2785
int friends_size() const
Definition: friends_service.pb.h:1614
::bgs::protocol::EntityId * agent_id_
Definition: friends_service.pb.h:144
void clear_target_id()
Definition: friends_service.pb.h:2074
void clear_has_changed_friend()
Definition: friends_service.pb.h:2488
void set_allocated_agent_id(::bgs::protocol::EntityId *agent_id)
Definition: friends_service.pb.h:1737
void clear_has_target_id()
Definition: friends_service.pb.h:2221
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > received_invitations_
Definition: friends_service.pb.h:295
void clear_max_received_invitations()
Definition: friends_service.pb.h:1545
Definition: MessageBuffer.h:24
void set_has_peer()
Definition: friends_service.pb.h:2567
bool has_account_id() const
Definition: friends_service.pb.h:2437
bool has_game_account_id() const
Definition: friends_service.pb.h:2523
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: friends_service.pb.h:587
int GetCachedSize() const
Definition: friends_service.pb.h:1023
::bgs::protocol::EntityId * agent_id_
Definition: friends_service.pb.h:386
void clear_peer()
Definition: friends_service.pb.h:2405
void Set(int index, const Element &value)
Definition: repeated_field.h:677
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:1228
::google::protobuf::uint64 object_id_
Definition: friends_service.pb.h:145
inline::bgs::protocol::EntityId * release_target_id()
Definition: friends_service.pb.h:1972
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
Definition: friends_service.pb.h:2275
void clear_has_account_id()
Definition: friends_service.pb.h:2611
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::friends::v1::Friend > * mutable_friends()
Definition: friends_service.pb.h:2164
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: friends_service.pb.h:318
void clear_agent_id()
Definition: friends_service.pb.h:2033
int sent_invitations_size() const
Definition: friends_service.pb.h:1644
int friends_size() const
Definition: friends_service.pb.h:2140
void set_reason(::google::protobuf::uint32 value)
Definition: friends_service.pb.h:2749
void set_has_object_id()
Definition: friends_service.pb.h:1752
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
Definition: friends_service.pb.h:2280
void set_allocated_agent_id(::bgs::protocol::EntityId *agent_id)
Definition: friends_service.pb.h:2053