TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
channel_service.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: channel_service.proto
3 
4 #ifndef PROTOBUF_channel_5fservice_2eproto__INCLUDED
5 #define PROTOBUF_channel_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 "account_types.pb.h"
28 #include "entity_types.pb.h"
29 #include "channel_types.pb.h"
30 #include "rpc_types.pb.h"
31 #include "ServiceBase.h"
32 #include "MessageBuffer.h"
33 #include <functional>
34 #include <type_traits>
35 // @@protoc_insertion_point(includes)
36 
37 namespace bgs {
38 namespace protocol {
39 namespace channel {
40 namespace v1 {
41 
42 // Internal implementation detail -- do not call these.
46 
47 class AddMemberRequest;
50 class SendMessageRequest;
53 class DissolveRequest;
54 class SetRolesRequest;
55 class JoinNotification;
57 class LeaveNotification;
62 
63 // ===================================================================
64 
66  public:
68  virtual ~AddMemberRequest();
69 
71 
73  CopyFrom(from);
74  return *this;
75  }
76 
77  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
78  return _unknown_fields_;
79  }
80 
81  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
82  return &_unknown_fields_;
83  }
84 
85  static const ::google::protobuf::Descriptor* descriptor();
86  static const AddMemberRequest& default_instance();
87 
88  void Swap(AddMemberRequest* other);
89 
90  // implements Message ----------------------------------------------
91 
92  AddMemberRequest* New() const;
93  void CopyFrom(const ::google::protobuf::Message& from);
94  void MergeFrom(const ::google::protobuf::Message& from);
95  void CopyFrom(const AddMemberRequest& from);
96  void MergeFrom(const AddMemberRequest& from);
97  void Clear();
98  bool IsInitialized() const;
99 
100  int ByteSize() const;
101  bool MergePartialFromCodedStream(
103  void SerializeWithCachedSizes(
105  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
106  int GetCachedSize() const { return _cached_size_; }
107  private:
108  void SharedCtor();
109  void SharedDtor();
110  void SetCachedSize(int size) const;
111  public:
112  ::google::protobuf::Metadata GetMetadata() const;
113 
114  // nested types ----------------------------------------------------
115 
116  // accessors -------------------------------------------------------
117 
118  // optional .bgs.protocol.EntityId agent_id = 1;
119  inline bool has_agent_id() const;
120  inline void clear_agent_id();
121  static const int kAgentIdFieldNumber = 1;
122  inline const ::bgs::protocol::EntityId& agent_id() const;
123  inline ::bgs::protocol::EntityId* mutable_agent_id();
124  inline ::bgs::protocol::EntityId* release_agent_id();
125  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
126 
127  // required .bgs.protocol.Identity member_identity = 2;
128  inline bool has_member_identity() const;
129  inline void clear_member_identity();
130  static const int kMemberIdentityFieldNumber = 2;
131  inline const ::bgs::protocol::Identity& member_identity() const;
132  inline ::bgs::protocol::Identity* mutable_member_identity();
133  inline ::bgs::protocol::Identity* release_member_identity();
134  inline void set_allocated_member_identity(::bgs::protocol::Identity* member_identity);
135 
136  // required .bgs.protocol.channel.v1.MemberState member_state = 3;
137  inline bool has_member_state() const;
138  inline void clear_member_state();
139  static const int kMemberStateFieldNumber = 3;
140  inline const ::bgs::protocol::channel::v1::MemberState& member_state() const;
141  inline ::bgs::protocol::channel::v1::MemberState* mutable_member_state();
142  inline ::bgs::protocol::channel::v1::MemberState* release_member_state();
143  inline void set_allocated_member_state(::bgs::protocol::channel::v1::MemberState* member_state);
144 
145  // required uint64 object_id = 4;
146  inline bool has_object_id() const;
147  inline void clear_object_id();
148  static const int kObjectIdFieldNumber = 4;
149  inline ::google::protobuf::uint64 object_id() const;
150  inline void set_object_id(::google::protobuf::uint64 value);
151 
152  // optional bool subscribe = 5 [default = true];
153  inline bool has_subscribe() const;
154  inline void clear_subscribe();
155  static const int kSubscribeFieldNumber = 5;
156  inline bool subscribe() const;
157  inline void set_subscribe(bool value);
158 
159  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.AddMemberRequest)
160  private:
161  inline void set_has_agent_id();
162  inline void clear_has_agent_id();
163  inline void set_has_member_identity();
164  inline void clear_has_member_identity();
165  inline void set_has_member_state();
166  inline void clear_has_member_state();
167  inline void set_has_object_id();
168  inline void clear_has_object_id();
169  inline void set_has_subscribe();
170  inline void clear_has_subscribe();
171 
173 
175  mutable int _cached_size_;
184 
185  void InitAsDefaultInstance();
187 };
188 // -------------------------------------------------------------------
189 
191  public:
193  virtual ~RemoveMemberRequest();
194 
196 
198  CopyFrom(from);
199  return *this;
200  }
201 
202  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
203  return _unknown_fields_;
204  }
205 
206  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
207  return &_unknown_fields_;
208  }
209 
210  static const ::google::protobuf::Descriptor* descriptor();
211  static const RemoveMemberRequest& default_instance();
212 
213  void Swap(RemoveMemberRequest* other);
214 
215  // implements Message ----------------------------------------------
216 
217  RemoveMemberRequest* New() const;
218  void CopyFrom(const ::google::protobuf::Message& from);
219  void MergeFrom(const ::google::protobuf::Message& from);
220  void CopyFrom(const RemoveMemberRequest& from);
221  void MergeFrom(const RemoveMemberRequest& from);
222  void Clear();
223  bool IsInitialized() const;
224 
225  int ByteSize() const;
226  bool MergePartialFromCodedStream(
228  void SerializeWithCachedSizes(
230  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
231  int GetCachedSize() const { return _cached_size_; }
232  private:
233  void SharedCtor();
234  void SharedDtor();
235  void SetCachedSize(int size) const;
236  public:
237  ::google::protobuf::Metadata GetMetadata() const;
238 
239  // nested types ----------------------------------------------------
240 
241  // accessors -------------------------------------------------------
242 
243  // optional .bgs.protocol.EntityId agent_id = 1;
244  inline bool has_agent_id() const;
245  inline void clear_agent_id();
246  static const int kAgentIdFieldNumber = 1;
247  inline const ::bgs::protocol::EntityId& agent_id() const;
248  inline ::bgs::protocol::EntityId* mutable_agent_id();
249  inline ::bgs::protocol::EntityId* release_agent_id();
250  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
251 
252  // required .bgs.protocol.EntityId member_id = 2;
253  inline bool has_member_id() const;
254  inline void clear_member_id();
255  static const int kMemberIdFieldNumber = 2;
256  inline const ::bgs::protocol::EntityId& member_id() const;
257  inline ::bgs::protocol::EntityId* mutable_member_id();
258  inline ::bgs::protocol::EntityId* release_member_id();
259  inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id);
260 
261  // optional uint32 reason = 3;
262  inline bool has_reason() const;
263  inline void clear_reason();
264  static const int kReasonFieldNumber = 3;
265  inline ::google::protobuf::uint32 reason() const;
266  inline void set_reason(::google::protobuf::uint32 value);
267 
268  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.RemoveMemberRequest)
269  private:
270  inline void set_has_agent_id();
271  inline void clear_has_agent_id();
272  inline void set_has_member_id();
273  inline void clear_has_member_id();
274  inline void set_has_reason();
275  inline void clear_has_reason();
276 
278 
280  mutable int _cached_size_;
287 
288  void InitAsDefaultInstance();
290 };
291 // -------------------------------------------------------------------
292 
294  public:
296  virtual ~UnsubscribeMemberRequest();
297 
299 
301  CopyFrom(from);
302  return *this;
303  }
304 
305  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
306  return _unknown_fields_;
307  }
308 
309  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
310  return &_unknown_fields_;
311  }
312 
313  static const ::google::protobuf::Descriptor* descriptor();
314  static const UnsubscribeMemberRequest& default_instance();
315 
316  void Swap(UnsubscribeMemberRequest* other);
317 
318  // implements Message ----------------------------------------------
319 
320  UnsubscribeMemberRequest* New() const;
321  void CopyFrom(const ::google::protobuf::Message& from);
322  void MergeFrom(const ::google::protobuf::Message& from);
323  void CopyFrom(const UnsubscribeMemberRequest& from);
324  void MergeFrom(const UnsubscribeMemberRequest& from);
325  void Clear();
326  bool IsInitialized() const;
327 
328  int ByteSize() const;
329  bool MergePartialFromCodedStream(
331  void SerializeWithCachedSizes(
333  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
334  int GetCachedSize() const { return _cached_size_; }
335  private:
336  void SharedCtor();
337  void SharedDtor();
338  void SetCachedSize(int size) const;
339  public:
340  ::google::protobuf::Metadata GetMetadata() const;
341 
342  // nested types ----------------------------------------------------
343 
344  // accessors -------------------------------------------------------
345 
346  // optional .bgs.protocol.EntityId agent_id = 1;
347  inline bool has_agent_id() const;
348  inline void clear_agent_id();
349  static const int kAgentIdFieldNumber = 1;
350  inline const ::bgs::protocol::EntityId& agent_id() const;
351  inline ::bgs::protocol::EntityId* mutable_agent_id();
352  inline ::bgs::protocol::EntityId* release_agent_id();
353  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
354 
355  // required .bgs.protocol.EntityId member_id = 2;
356  inline bool has_member_id() const;
357  inline void clear_member_id();
358  static const int kMemberIdFieldNumber = 2;
359  inline const ::bgs::protocol::EntityId& member_id() const;
360  inline ::bgs::protocol::EntityId* mutable_member_id();
361  inline ::bgs::protocol::EntityId* release_member_id();
362  inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id);
363 
364  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.UnsubscribeMemberRequest)
365  private:
366  inline void set_has_agent_id();
367  inline void clear_has_agent_id();
368  inline void set_has_member_id();
369  inline void clear_has_member_id();
370 
372 
374  mutable int _cached_size_;
380 
381  void InitAsDefaultInstance();
383 };
384 // -------------------------------------------------------------------
385 
387  public:
389  virtual ~SendMessageRequest();
390 
392 
394  CopyFrom(from);
395  return *this;
396  }
397 
398  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
399  return _unknown_fields_;
400  }
401 
402  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
403  return &_unknown_fields_;
404  }
405 
406  static const ::google::protobuf::Descriptor* descriptor();
407  static const SendMessageRequest& default_instance();
408 
409  void Swap(SendMessageRequest* other);
410 
411  // implements Message ----------------------------------------------
412 
413  SendMessageRequest* New() const;
414  void CopyFrom(const ::google::protobuf::Message& from);
415  void MergeFrom(const ::google::protobuf::Message& from);
416  void CopyFrom(const SendMessageRequest& from);
417  void MergeFrom(const SendMessageRequest& from);
418  void Clear();
419  bool IsInitialized() const;
420 
421  int ByteSize() const;
422  bool MergePartialFromCodedStream(
424  void SerializeWithCachedSizes(
426  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
427  int GetCachedSize() const { return _cached_size_; }
428  private:
429  void SharedCtor();
430  void SharedDtor();
431  void SetCachedSize(int size) const;
432  public:
433  ::google::protobuf::Metadata GetMetadata() const;
434 
435  // nested types ----------------------------------------------------
436 
437  // accessors -------------------------------------------------------
438 
439  // optional .bgs.protocol.EntityId agent_id = 1;
440  inline bool has_agent_id() const;
441  inline void clear_agent_id();
442  static const int kAgentIdFieldNumber = 1;
443  inline const ::bgs::protocol::EntityId& agent_id() const;
444  inline ::bgs::protocol::EntityId* mutable_agent_id();
445  inline ::bgs::protocol::EntityId* release_agent_id();
446  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
447 
448  // required .bgs.protocol.channel.v1.Message message = 2;
449  inline bool has_message() const;
450  inline void clear_message();
451  static const int kMessageFieldNumber = 2;
452  inline const ::bgs::protocol::channel::v1::Message& message() const;
453  inline ::bgs::protocol::channel::v1::Message* mutable_message();
454  inline ::bgs::protocol::channel::v1::Message* release_message();
455  inline void set_allocated_message(::bgs::protocol::channel::v1::Message* message);
456 
457  // optional uint64 required_privileges = 3 [default = 0];
458  inline bool has_required_privileges() const;
459  inline void clear_required_privileges();
460  static const int kRequiredPrivilegesFieldNumber = 3;
461  inline ::google::protobuf::uint64 required_privileges() const;
462  inline void set_required_privileges(::google::protobuf::uint64 value);
463 
464  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.SendMessageRequest)
465  private:
466  inline void set_has_agent_id();
467  inline void clear_has_agent_id();
468  inline void set_has_message();
469  inline void clear_has_message();
470  inline void set_has_required_privileges();
471  inline void clear_has_required_privileges();
472 
474 
476  mutable int _cached_size_;
483 
484  void InitAsDefaultInstance();
486 };
487 // -------------------------------------------------------------------
488 
490  public:
492  virtual ~UpdateChannelStateRequest();
493 
495 
497  CopyFrom(from);
498  return *this;
499  }
500 
501  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
502  return _unknown_fields_;
503  }
504 
505  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
506  return &_unknown_fields_;
507  }
508 
509  static const ::google::protobuf::Descriptor* descriptor();
510  static const UpdateChannelStateRequest& default_instance();
511 
512  void Swap(UpdateChannelStateRequest* other);
513 
514  // implements Message ----------------------------------------------
515 
516  UpdateChannelStateRequest* New() const;
517  void CopyFrom(const ::google::protobuf::Message& from);
518  void MergeFrom(const ::google::protobuf::Message& from);
519  void CopyFrom(const UpdateChannelStateRequest& from);
520  void MergeFrom(const UpdateChannelStateRequest& from);
521  void Clear();
522  bool IsInitialized() const;
523 
524  int ByteSize() const;
525  bool MergePartialFromCodedStream(
527  void SerializeWithCachedSizes(
529  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
530  int GetCachedSize() const { return _cached_size_; }
531  private:
532  void SharedCtor();
533  void SharedDtor();
534  void SetCachedSize(int size) const;
535  public:
536  ::google::protobuf::Metadata GetMetadata() const;
537 
538  // nested types ----------------------------------------------------
539 
540  // accessors -------------------------------------------------------
541 
542  // optional .bgs.protocol.EntityId agent_id = 1;
543  inline bool has_agent_id() const;
544  inline void clear_agent_id();
545  static const int kAgentIdFieldNumber = 1;
546  inline const ::bgs::protocol::EntityId& agent_id() const;
547  inline ::bgs::protocol::EntityId* mutable_agent_id();
548  inline ::bgs::protocol::EntityId* release_agent_id();
549  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
550 
551  // required .bgs.protocol.channel.v1.ChannelState state_change = 2;
552  inline bool has_state_change() const;
553  inline void clear_state_change();
554  static const int kStateChangeFieldNumber = 2;
555  inline const ::bgs::protocol::channel::v1::ChannelState& state_change() const;
556  inline ::bgs::protocol::channel::v1::ChannelState* mutable_state_change();
557  inline ::bgs::protocol::channel::v1::ChannelState* release_state_change();
558  inline void set_allocated_state_change(::bgs::protocol::channel::v1::ChannelState* state_change);
559 
560  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.UpdateChannelStateRequest)
561  private:
562  inline void set_has_agent_id();
563  inline void clear_has_agent_id();
564  inline void set_has_state_change();
565  inline void clear_has_state_change();
566 
568 
570  mutable int _cached_size_;
576 
577  void InitAsDefaultInstance();
579 };
580 // -------------------------------------------------------------------
581 
583  public:
585  virtual ~UpdateMemberStateRequest();
586 
588 
590  CopyFrom(from);
591  return *this;
592  }
593 
594  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
595  return _unknown_fields_;
596  }
597 
598  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
599  return &_unknown_fields_;
600  }
601 
602  static const ::google::protobuf::Descriptor* descriptor();
603  static const UpdateMemberStateRequest& default_instance();
604 
605  void Swap(UpdateMemberStateRequest* other);
606 
607  // implements Message ----------------------------------------------
608 
609  UpdateMemberStateRequest* New() const;
610  void CopyFrom(const ::google::protobuf::Message& from);
611  void MergeFrom(const ::google::protobuf::Message& from);
612  void CopyFrom(const UpdateMemberStateRequest& from);
613  void MergeFrom(const UpdateMemberStateRequest& from);
614  void Clear();
615  bool IsInitialized() const;
616 
617  int ByteSize() const;
618  bool MergePartialFromCodedStream(
620  void SerializeWithCachedSizes(
622  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
623  int GetCachedSize() const { return _cached_size_; }
624  private:
625  void SharedCtor();
626  void SharedDtor();
627  void SetCachedSize(int size) const;
628  public:
629  ::google::protobuf::Metadata GetMetadata() const;
630 
631  // nested types ----------------------------------------------------
632 
633  // accessors -------------------------------------------------------
634 
635  // optional .bgs.protocol.EntityId agent_id = 1;
636  inline bool has_agent_id() const;
637  inline void clear_agent_id();
638  static const int kAgentIdFieldNumber = 1;
639  inline const ::bgs::protocol::EntityId& agent_id() const;
640  inline ::bgs::protocol::EntityId* mutable_agent_id();
641  inline ::bgs::protocol::EntityId* release_agent_id();
642  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
643 
644  // repeated .bgs.protocol.channel.v1.Member state_change = 2;
645  inline int state_change_size() const;
646  inline void clear_state_change();
647  static const int kStateChangeFieldNumber = 2;
648  inline const ::bgs::protocol::channel::v1::Member& state_change(int index) const;
649  inline ::bgs::protocol::channel::v1::Member* mutable_state_change(int index);
650  inline ::bgs::protocol::channel::v1::Member* add_state_change();
651  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
652  state_change() const;
653  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
654  mutable_state_change();
655 
656  // repeated uint32 removed_role = 3 [packed = true];
657  inline int removed_role_size() const;
658  inline void clear_removed_role();
659  static const int kRemovedRoleFieldNumber = 3;
660  inline ::google::protobuf::uint32 removed_role(int index) const;
661  inline void set_removed_role(int index, ::google::protobuf::uint32 value);
662  inline void add_removed_role(::google::protobuf::uint32 value);
663  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
664  removed_role() const;
665  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
666  mutable_removed_role();
667 
668  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.UpdateMemberStateRequest)
669  private:
670  inline void set_has_agent_id();
671  inline void clear_has_agent_id();
672 
674 
676  mutable int _cached_size_;
684 
685  void InitAsDefaultInstance();
687 };
688 // -------------------------------------------------------------------
689 
691  public:
692  DissolveRequest();
693  virtual ~DissolveRequest();
694 
695  DissolveRequest(const DissolveRequest& from);
696 
698  CopyFrom(from);
699  return *this;
700  }
701 
702  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
703  return _unknown_fields_;
704  }
705 
706  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
707  return &_unknown_fields_;
708  }
709 
710  static const ::google::protobuf::Descriptor* descriptor();
711  static const DissolveRequest& default_instance();
712 
713  void Swap(DissolveRequest* other);
714 
715  // implements Message ----------------------------------------------
716 
717  DissolveRequest* New() const;
718  void CopyFrom(const ::google::protobuf::Message& from);
719  void MergeFrom(const ::google::protobuf::Message& from);
720  void CopyFrom(const DissolveRequest& from);
721  void MergeFrom(const DissolveRequest& from);
722  void Clear();
723  bool IsInitialized() const;
724 
725  int ByteSize() const;
726  bool MergePartialFromCodedStream(
728  void SerializeWithCachedSizes(
730  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
731  int GetCachedSize() const { return _cached_size_; }
732  private:
733  void SharedCtor();
734  void SharedDtor();
735  void SetCachedSize(int size) const;
736  public:
737  ::google::protobuf::Metadata GetMetadata() const;
738 
739  // nested types ----------------------------------------------------
740 
741  // accessors -------------------------------------------------------
742 
743  // optional .bgs.protocol.EntityId agent_id = 1;
744  inline bool has_agent_id() const;
745  inline void clear_agent_id();
746  static const int kAgentIdFieldNumber = 1;
747  inline const ::bgs::protocol::EntityId& agent_id() const;
748  inline ::bgs::protocol::EntityId* mutable_agent_id();
749  inline ::bgs::protocol::EntityId* release_agent_id();
750  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
751 
752  // optional uint32 reason = 2;
753  inline bool has_reason() const;
754  inline void clear_reason();
755  static const int kReasonFieldNumber = 2;
756  inline ::google::protobuf::uint32 reason() const;
757  inline void set_reason(::google::protobuf::uint32 value);
758 
759  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.DissolveRequest)
760  private:
761  inline void set_has_agent_id();
762  inline void clear_has_agent_id();
763  inline void set_has_reason();
764  inline void clear_has_reason();
765 
767 
769  mutable int _cached_size_;
775 
776  void InitAsDefaultInstance();
778 };
779 // -------------------------------------------------------------------
780 
782  public:
783  SetRolesRequest();
784  virtual ~SetRolesRequest();
785 
786  SetRolesRequest(const SetRolesRequest& from);
787 
789  CopyFrom(from);
790  return *this;
791  }
792 
793  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
794  return _unknown_fields_;
795  }
796 
797  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
798  return &_unknown_fields_;
799  }
800 
801  static const ::google::protobuf::Descriptor* descriptor();
802  static const SetRolesRequest& default_instance();
803 
804  void Swap(SetRolesRequest* other);
805 
806  // implements Message ----------------------------------------------
807 
808  SetRolesRequest* New() const;
809  void CopyFrom(const ::google::protobuf::Message& from);
810  void MergeFrom(const ::google::protobuf::Message& from);
811  void CopyFrom(const SetRolesRequest& from);
812  void MergeFrom(const SetRolesRequest& from);
813  void Clear();
814  bool IsInitialized() const;
815 
816  int ByteSize() const;
817  bool MergePartialFromCodedStream(
819  void SerializeWithCachedSizes(
821  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
822  int GetCachedSize() const { return _cached_size_; }
823  private:
824  void SharedCtor();
825  void SharedDtor();
826  void SetCachedSize(int size) const;
827  public:
828  ::google::protobuf::Metadata GetMetadata() const;
829 
830  // nested types ----------------------------------------------------
831 
832  // accessors -------------------------------------------------------
833 
834  // optional .bgs.protocol.EntityId agent_id = 1;
835  inline bool has_agent_id() const;
836  inline void clear_agent_id();
837  static const int kAgentIdFieldNumber = 1;
838  inline const ::bgs::protocol::EntityId& agent_id() const;
839  inline ::bgs::protocol::EntityId* mutable_agent_id();
840  inline ::bgs::protocol::EntityId* release_agent_id();
841  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
842 
843  // repeated uint32 role = 2 [packed = true];
844  inline int role_size() const;
845  inline void clear_role();
846  static const int kRoleFieldNumber = 2;
847  inline ::google::protobuf::uint32 role(int index) const;
848  inline void set_role(int index, ::google::protobuf::uint32 value);
849  inline void add_role(::google::protobuf::uint32 value);
850  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
851  role() const;
852  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
853  mutable_role();
854 
855  // repeated .bgs.protocol.EntityId member_id = 3;
856  inline int member_id_size() const;
857  inline void clear_member_id();
858  static const int kMemberIdFieldNumber = 3;
859  inline const ::bgs::protocol::EntityId& member_id(int index) const;
860  inline ::bgs::protocol::EntityId* mutable_member_id(int index);
861  inline ::bgs::protocol::EntityId* add_member_id();
862  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >&
863  member_id() const;
864  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >*
865  mutable_member_id();
866 
867  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.SetRolesRequest)
868  private:
869  inline void set_has_agent_id();
870  inline void clear_has_agent_id();
871 
873 
875  mutable int _cached_size_;
883 
884  void InitAsDefaultInstance();
886 };
887 // -------------------------------------------------------------------
888 
890  public:
892  virtual ~JoinNotification();
893 
894  JoinNotification(const JoinNotification& from);
895 
897  CopyFrom(from);
898  return *this;
899  }
900 
901  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
902  return _unknown_fields_;
903  }
904 
905  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
906  return &_unknown_fields_;
907  }
908 
909  static const ::google::protobuf::Descriptor* descriptor();
910  static const JoinNotification& default_instance();
911 
912  void Swap(JoinNotification* other);
913 
914  // implements Message ----------------------------------------------
915 
916  JoinNotification* New() const;
917  void CopyFrom(const ::google::protobuf::Message& from);
918  void MergeFrom(const ::google::protobuf::Message& from);
919  void CopyFrom(const JoinNotification& from);
920  void MergeFrom(const JoinNotification& from);
921  void Clear();
922  bool IsInitialized() const;
923 
924  int ByteSize() const;
925  bool MergePartialFromCodedStream(
927  void SerializeWithCachedSizes(
929  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
930  int GetCachedSize() const { return _cached_size_; }
931  private:
932  void SharedCtor();
933  void SharedDtor();
934  void SetCachedSize(int size) const;
935  public:
936  ::google::protobuf::Metadata GetMetadata() const;
937 
938  // nested types ----------------------------------------------------
939 
940  // accessors -------------------------------------------------------
941 
942  // optional .bgs.protocol.channel.v1.Member self = 1;
943  inline bool has_self() const;
944  inline void clear_self();
945  static const int kSelfFieldNumber = 1;
946  inline const ::bgs::protocol::channel::v1::Member& self() const;
947  inline ::bgs::protocol::channel::v1::Member* mutable_self();
948  inline ::bgs::protocol::channel::v1::Member* release_self();
949  inline void set_allocated_self(::bgs::protocol::channel::v1::Member* self);
950 
951  // repeated .bgs.protocol.channel.v1.Member member = 2;
952  inline int member_size() const;
953  inline void clear_member();
954  static const int kMemberFieldNumber = 2;
955  inline const ::bgs::protocol::channel::v1::Member& member(int index) const;
956  inline ::bgs::protocol::channel::v1::Member* mutable_member(int index);
957  inline ::bgs::protocol::channel::v1::Member* add_member();
958  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
959  member() const;
960  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
961  mutable_member();
962 
963  // required .bgs.protocol.channel.v1.ChannelState channel_state = 3;
964  inline bool has_channel_state() const;
965  inline void clear_channel_state();
966  static const int kChannelStateFieldNumber = 3;
967  inline const ::bgs::protocol::channel::v1::ChannelState& channel_state() const;
968  inline ::bgs::protocol::channel::v1::ChannelState* mutable_channel_state();
969  inline ::bgs::protocol::channel::v1::ChannelState* release_channel_state();
970  inline void set_allocated_channel_state(::bgs::protocol::channel::v1::ChannelState* channel_state);
971 
972  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
973  inline bool has_channel_id() const;
974  inline void clear_channel_id();
975  static const int kChannelIdFieldNumber = 4;
976  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
977  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
978  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
979  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
980 
981  // optional .bgs.protocol.account.v1.Identity subscriber = 5;
982  inline bool has_subscriber() const;
983  inline void clear_subscriber();
984  static const int kSubscriberFieldNumber = 5;
985  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
986  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
987  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
988  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
989 
990  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.JoinNotification)
991  private:
992  inline void set_has_self();
993  inline void clear_has_self();
994  inline void set_has_channel_state();
995  inline void clear_has_channel_state();
996  inline void set_has_channel_id();
997  inline void clear_has_channel_id();
998  inline void set_has_subscriber();
999  inline void clear_has_subscriber();
1000 
1002 
1004  mutable int _cached_size_;
1013 
1014  void InitAsDefaultInstance();
1016 };
1017 // -------------------------------------------------------------------
1018 
1020  public:
1022  virtual ~MemberAddedNotification();
1023 
1025 
1027  CopyFrom(from);
1028  return *this;
1029  }
1030 
1031  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1032  return _unknown_fields_;
1033  }
1034 
1035  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1036  return &_unknown_fields_;
1037  }
1038 
1039  static const ::google::protobuf::Descriptor* descriptor();
1040  static const MemberAddedNotification& default_instance();
1041 
1042  void Swap(MemberAddedNotification* other);
1043 
1044  // implements Message ----------------------------------------------
1045 
1046  MemberAddedNotification* New() const;
1047  void CopyFrom(const ::google::protobuf::Message& from);
1048  void MergeFrom(const ::google::protobuf::Message& from);
1049  void CopyFrom(const MemberAddedNotification& from);
1050  void MergeFrom(const MemberAddedNotification& from);
1051  void Clear();
1052  bool IsInitialized() const;
1053 
1054  int ByteSize() const;
1055  bool MergePartialFromCodedStream(
1057  void SerializeWithCachedSizes(
1059  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1060  int GetCachedSize() const { return _cached_size_; }
1061  private:
1062  void SharedCtor();
1063  void SharedDtor();
1064  void SetCachedSize(int size) const;
1065  public:
1066  ::google::protobuf::Metadata GetMetadata() const;
1067 
1068  // nested types ----------------------------------------------------
1069 
1070  // accessors -------------------------------------------------------
1071 
1072  // required .bgs.protocol.channel.v1.Member member = 1;
1073  inline bool has_member() const;
1074  inline void clear_member();
1075  static const int kMemberFieldNumber = 1;
1076  inline const ::bgs::protocol::channel::v1::Member& member() const;
1077  inline ::bgs::protocol::channel::v1::Member* mutable_member();
1078  inline ::bgs::protocol::channel::v1::Member* release_member();
1079  inline void set_allocated_member(::bgs::protocol::channel::v1::Member* member);
1080 
1081  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 2;
1082  inline bool has_channel_id() const;
1083  inline void clear_channel_id();
1084  static const int kChannelIdFieldNumber = 2;
1085  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
1086  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
1087  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
1088  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
1089 
1090  // optional .bgs.protocol.account.v1.Identity subscriber = 3;
1091  inline bool has_subscriber() const;
1092  inline void clear_subscriber();
1093  static const int kSubscriberFieldNumber = 3;
1094  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
1095  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
1096  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
1097  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
1098 
1099  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.MemberAddedNotification)
1100  private:
1101  inline void set_has_member();
1102  inline void clear_has_member();
1103  inline void set_has_channel_id();
1104  inline void clear_has_channel_id();
1105  inline void set_has_subscriber();
1106  inline void clear_has_subscriber();
1107 
1109 
1111  mutable int _cached_size_;
1118 
1119  void InitAsDefaultInstance();
1121 };
1122 // -------------------------------------------------------------------
1123 
1125  public:
1127  virtual ~LeaveNotification();
1128 
1129  LeaveNotification(const LeaveNotification& from);
1130 
1132  CopyFrom(from);
1133  return *this;
1134  }
1135 
1136  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1137  return _unknown_fields_;
1138  }
1139 
1140  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1141  return &_unknown_fields_;
1142  }
1143 
1144  static const ::google::protobuf::Descriptor* descriptor();
1145  static const LeaveNotification& default_instance();
1146 
1147  void Swap(LeaveNotification* other);
1148 
1149  // implements Message ----------------------------------------------
1150 
1151  LeaveNotification* New() const;
1152  void CopyFrom(const ::google::protobuf::Message& from);
1153  void MergeFrom(const ::google::protobuf::Message& from);
1154  void CopyFrom(const LeaveNotification& from);
1155  void MergeFrom(const LeaveNotification& from);
1156  void Clear();
1157  bool IsInitialized() const;
1158 
1159  int ByteSize() const;
1160  bool MergePartialFromCodedStream(
1162  void SerializeWithCachedSizes(
1164  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1165  int GetCachedSize() const { return _cached_size_; }
1166  private:
1167  void SharedCtor();
1168  void SharedDtor();
1169  void SetCachedSize(int size) const;
1170  public:
1171  ::google::protobuf::Metadata GetMetadata() const;
1172 
1173  // nested types ----------------------------------------------------
1174 
1175  // accessors -------------------------------------------------------
1176 
1177  // optional .bgs.protocol.EntityId agent_id = 1;
1178  inline bool has_agent_id() const;
1179  inline void clear_agent_id();
1180  static const int kAgentIdFieldNumber = 1;
1181  inline const ::bgs::protocol::EntityId& agent_id() const;
1182  inline ::bgs::protocol::EntityId* mutable_agent_id();
1183  inline ::bgs::protocol::EntityId* release_agent_id();
1184  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
1185 
1186  // required .bgs.protocol.EntityId member_id = 2;
1187  inline bool has_member_id() const;
1188  inline void clear_member_id();
1189  static const int kMemberIdFieldNumber = 2;
1190  inline const ::bgs::protocol::EntityId& member_id() const;
1191  inline ::bgs::protocol::EntityId* mutable_member_id();
1192  inline ::bgs::protocol::EntityId* release_member_id();
1193  inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id);
1194 
1195  // optional uint32 reason = 3;
1196  inline bool has_reason() const;
1197  inline void clear_reason();
1198  static const int kReasonFieldNumber = 3;
1199  inline ::google::protobuf::uint32 reason() const;
1200  inline void set_reason(::google::protobuf::uint32 value);
1201 
1202  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
1203  inline bool has_channel_id() const;
1204  inline void clear_channel_id();
1205  static const int kChannelIdFieldNumber = 4;
1206  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
1207  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
1208  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
1209  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
1210 
1211  // optional .bgs.protocol.account.v1.Identity subscriber = 5;
1212  inline bool has_subscriber() const;
1213  inline void clear_subscriber();
1214  static const int kSubscriberFieldNumber = 5;
1215  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
1216  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
1217  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
1218  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
1219 
1220  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.LeaveNotification)
1221  private:
1222  inline void set_has_agent_id();
1223  inline void clear_has_agent_id();
1224  inline void set_has_member_id();
1225  inline void clear_has_member_id();
1226  inline void set_has_reason();
1227  inline void clear_has_reason();
1228  inline void set_has_channel_id();
1229  inline void clear_has_channel_id();
1230  inline void set_has_subscriber();
1231  inline void clear_has_subscriber();
1232 
1234 
1236  mutable int _cached_size_;
1245 
1246  void InitAsDefaultInstance();
1248 };
1249 // -------------------------------------------------------------------
1250 
1252  public:
1254  virtual ~MemberRemovedNotification();
1255 
1257 
1259  CopyFrom(from);
1260  return *this;
1261  }
1262 
1263  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1264  return _unknown_fields_;
1265  }
1266 
1267  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1268  return &_unknown_fields_;
1269  }
1270 
1271  static const ::google::protobuf::Descriptor* descriptor();
1272  static const MemberRemovedNotification& default_instance();
1273 
1274  void Swap(MemberRemovedNotification* other);
1275 
1276  // implements Message ----------------------------------------------
1277 
1278  MemberRemovedNotification* New() const;
1279  void CopyFrom(const ::google::protobuf::Message& from);
1280  void MergeFrom(const ::google::protobuf::Message& from);
1281  void CopyFrom(const MemberRemovedNotification& from);
1282  void MergeFrom(const MemberRemovedNotification& from);
1283  void Clear();
1284  bool IsInitialized() const;
1285 
1286  int ByteSize() const;
1287  bool MergePartialFromCodedStream(
1289  void SerializeWithCachedSizes(
1291  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1292  int GetCachedSize() const { return _cached_size_; }
1293  private:
1294  void SharedCtor();
1295  void SharedDtor();
1296  void SetCachedSize(int size) const;
1297  public:
1298  ::google::protobuf::Metadata GetMetadata() const;
1299 
1300  // nested types ----------------------------------------------------
1301 
1302  // accessors -------------------------------------------------------
1303 
1304  // optional .bgs.protocol.EntityId agent_id = 1;
1305  inline bool has_agent_id() const;
1306  inline void clear_agent_id();
1307  static const int kAgentIdFieldNumber = 1;
1308  inline const ::bgs::protocol::EntityId& agent_id() const;
1309  inline ::bgs::protocol::EntityId* mutable_agent_id();
1310  inline ::bgs::protocol::EntityId* release_agent_id();
1311  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
1312 
1313  // required .bgs.protocol.EntityId member_id = 2;
1314  inline bool has_member_id() const;
1315  inline void clear_member_id();
1316  static const int kMemberIdFieldNumber = 2;
1317  inline const ::bgs::protocol::EntityId& member_id() const;
1318  inline ::bgs::protocol::EntityId* mutable_member_id();
1319  inline ::bgs::protocol::EntityId* release_member_id();
1320  inline void set_allocated_member_id(::bgs::protocol::EntityId* member_id);
1321 
1322  // optional uint32 reason = 3;
1323  inline bool has_reason() const;
1324  inline void clear_reason();
1325  static const int kReasonFieldNumber = 3;
1326  inline ::google::protobuf::uint32 reason() const;
1327  inline void set_reason(::google::protobuf::uint32 value);
1328 
1329  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
1330  inline bool has_channel_id() const;
1331  inline void clear_channel_id();
1332  static const int kChannelIdFieldNumber = 4;
1333  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
1334  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
1335  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
1336  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
1337 
1338  // optional .bgs.protocol.account.v1.Identity subscriber = 5;
1339  inline bool has_subscriber() const;
1340  inline void clear_subscriber();
1341  static const int kSubscriberFieldNumber = 5;
1342  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
1343  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
1344  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
1345  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
1346 
1347  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.MemberRemovedNotification)
1348  private:
1349  inline void set_has_agent_id();
1350  inline void clear_has_agent_id();
1351  inline void set_has_member_id();
1352  inline void clear_has_member_id();
1353  inline void set_has_reason();
1354  inline void clear_has_reason();
1355  inline void set_has_channel_id();
1356  inline void clear_has_channel_id();
1357  inline void set_has_subscriber();
1358  inline void clear_has_subscriber();
1359 
1361 
1363  mutable int _cached_size_;
1372 
1373  void InitAsDefaultInstance();
1375 };
1376 // -------------------------------------------------------------------
1377 
1379  public:
1381  virtual ~SendMessageNotification();
1382 
1384 
1386  CopyFrom(from);
1387  return *this;
1388  }
1389 
1390  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1391  return _unknown_fields_;
1392  }
1393 
1394  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1395  return &_unknown_fields_;
1396  }
1397 
1398  static const ::google::protobuf::Descriptor* descriptor();
1399  static const SendMessageNotification& default_instance();
1400 
1401  void Swap(SendMessageNotification* other);
1402 
1403  // implements Message ----------------------------------------------
1404 
1405  SendMessageNotification* New() const;
1406  void CopyFrom(const ::google::protobuf::Message& from);
1407  void MergeFrom(const ::google::protobuf::Message& from);
1408  void CopyFrom(const SendMessageNotification& from);
1409  void MergeFrom(const SendMessageNotification& from);
1410  void Clear();
1411  bool IsInitialized() const;
1412 
1413  int ByteSize() const;
1414  bool MergePartialFromCodedStream(
1416  void SerializeWithCachedSizes(
1418  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1419  int GetCachedSize() const { return _cached_size_; }
1420  private:
1421  void SharedCtor();
1422  void SharedDtor();
1423  void SetCachedSize(int size) const;
1424  public:
1425  ::google::protobuf::Metadata GetMetadata() const;
1426 
1427  // nested types ----------------------------------------------------
1428 
1429  // accessors -------------------------------------------------------
1430 
1431  // optional .bgs.protocol.EntityId agent_id = 1;
1432  inline bool has_agent_id() const;
1433  inline void clear_agent_id();
1434  static const int kAgentIdFieldNumber = 1;
1435  inline const ::bgs::protocol::EntityId& agent_id() const;
1436  inline ::bgs::protocol::EntityId* mutable_agent_id();
1437  inline ::bgs::protocol::EntityId* release_agent_id();
1438  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
1439 
1440  // required .bgs.protocol.channel.v1.Message message = 2;
1441  inline bool has_message() const;
1442  inline void clear_message();
1443  static const int kMessageFieldNumber = 2;
1444  inline const ::bgs::protocol::channel::v1::Message& message() const;
1445  inline ::bgs::protocol::channel::v1::Message* mutable_message();
1446  inline ::bgs::protocol::channel::v1::Message* release_message();
1447  inline void set_allocated_message(::bgs::protocol::channel::v1::Message* message);
1448 
1449  // optional uint64 required_privileges = 3 [default = 0];
1450  inline bool has_required_privileges() const;
1451  inline void clear_required_privileges();
1452  static const int kRequiredPrivilegesFieldNumber = 3;
1453  inline ::google::protobuf::uint64 required_privileges() const;
1454  inline void set_required_privileges(::google::protobuf::uint64 value);
1455 
1456  // optional string identity = 4;
1457  inline bool has_identity() const;
1458  inline void clear_identity();
1459  static const int kIdentityFieldNumber = 4;
1460  inline const ::std::string& identity() const;
1461  inline void set_identity(const ::std::string& value);
1462  inline void set_identity(const char* value);
1463  inline void set_identity(const char* value, size_t size);
1464  inline ::std::string* mutable_identity();
1465  inline ::std::string* release_identity();
1466  inline void set_allocated_identity(::std::string* identity);
1467 
1468  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5;
1469  inline bool has_channel_id() const;
1470  inline void clear_channel_id();
1471  static const int kChannelIdFieldNumber = 5;
1472  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
1473  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
1474  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
1475  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
1476 
1477  // optional .bgs.protocol.account.v1.Identity subscriber = 6;
1478  inline bool has_subscriber() const;
1479  inline void clear_subscriber();
1480  static const int kSubscriberFieldNumber = 6;
1481  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
1482  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
1483  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
1484  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
1485 
1486  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.SendMessageNotification)
1487  private:
1488  inline void set_has_agent_id();
1489  inline void clear_has_agent_id();
1490  inline void set_has_message();
1491  inline void clear_has_message();
1492  inline void set_has_required_privileges();
1493  inline void clear_has_required_privileges();
1494  inline void set_has_identity();
1495  inline void clear_has_identity();
1496  inline void set_has_channel_id();
1497  inline void clear_has_channel_id();
1498  inline void set_has_subscriber();
1499  inline void clear_has_subscriber();
1500 
1502 
1504  mutable int _cached_size_;
1508  ::std::string* identity_;
1514 
1515  void InitAsDefaultInstance();
1517 };
1518 // -------------------------------------------------------------------
1519 
1521  public:
1523  virtual ~UpdateChannelStateNotification();
1524 
1526 
1528  CopyFrom(from);
1529  return *this;
1530  }
1531 
1532  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1533  return _unknown_fields_;
1534  }
1535 
1536  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1537  return &_unknown_fields_;
1538  }
1539 
1540  static const ::google::protobuf::Descriptor* descriptor();
1541  static const UpdateChannelStateNotification& default_instance();
1542 
1543  void Swap(UpdateChannelStateNotification* other);
1544 
1545  // implements Message ----------------------------------------------
1546 
1547  UpdateChannelStateNotification* New() const;
1548  void CopyFrom(const ::google::protobuf::Message& from);
1549  void MergeFrom(const ::google::protobuf::Message& from);
1550  void CopyFrom(const UpdateChannelStateNotification& from);
1551  void MergeFrom(const UpdateChannelStateNotification& from);
1552  void Clear();
1553  bool IsInitialized() const;
1554 
1555  int ByteSize() const;
1556  bool MergePartialFromCodedStream(
1558  void SerializeWithCachedSizes(
1560  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1561  int GetCachedSize() const { return _cached_size_; }
1562  private:
1563  void SharedCtor();
1564  void SharedDtor();
1565  void SetCachedSize(int size) const;
1566  public:
1567  ::google::protobuf::Metadata GetMetadata() const;
1568 
1569  // nested types ----------------------------------------------------
1570 
1571  // accessors -------------------------------------------------------
1572 
1573  // optional .bgs.protocol.EntityId agent_id = 1;
1574  inline bool has_agent_id() const;
1575  inline void clear_agent_id();
1576  static const int kAgentIdFieldNumber = 1;
1577  inline const ::bgs::protocol::EntityId& agent_id() const;
1578  inline ::bgs::protocol::EntityId* mutable_agent_id();
1579  inline ::bgs::protocol::EntityId* release_agent_id();
1580  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
1581 
1582  // required .bgs.protocol.channel.v1.ChannelState state_change = 2;
1583  inline bool has_state_change() const;
1584  inline void clear_state_change();
1585  static const int kStateChangeFieldNumber = 2;
1586  inline const ::bgs::protocol::channel::v1::ChannelState& state_change() const;
1587  inline ::bgs::protocol::channel::v1::ChannelState* mutable_state_change();
1588  inline ::bgs::protocol::channel::v1::ChannelState* release_state_change();
1589  inline void set_allocated_state_change(::bgs::protocol::channel::v1::ChannelState* state_change);
1590 
1591  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 3;
1592  inline bool has_channel_id() const;
1593  inline void clear_channel_id();
1594  static const int kChannelIdFieldNumber = 3;
1595  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
1596  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
1597  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
1598  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
1599 
1600  // optional .bgs.protocol.account.v1.Identity subscriber = 4;
1601  inline bool has_subscriber() const;
1602  inline void clear_subscriber();
1603  static const int kSubscriberFieldNumber = 4;
1604  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
1605  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
1606  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
1607  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
1608 
1609  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.UpdateChannelStateNotification)
1610  private:
1611  inline void set_has_agent_id();
1612  inline void clear_has_agent_id();
1613  inline void set_has_state_change();
1614  inline void clear_has_state_change();
1615  inline void set_has_channel_id();
1616  inline void clear_has_channel_id();
1617  inline void set_has_subscriber();
1618  inline void clear_has_subscriber();
1619 
1621 
1623  mutable int _cached_size_;
1631 
1632  void InitAsDefaultInstance();
1634 };
1635 // -------------------------------------------------------------------
1636 
1638  public:
1640  virtual ~UpdateMemberStateNotification();
1641 
1643 
1645  CopyFrom(from);
1646  return *this;
1647  }
1648 
1649  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
1650  return _unknown_fields_;
1651  }
1652 
1653  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
1654  return &_unknown_fields_;
1655  }
1656 
1657  static const ::google::protobuf::Descriptor* descriptor();
1658  static const UpdateMemberStateNotification& default_instance();
1659 
1660  void Swap(UpdateMemberStateNotification* other);
1661 
1662  // implements Message ----------------------------------------------
1663 
1664  UpdateMemberStateNotification* New() const;
1665  void CopyFrom(const ::google::protobuf::Message& from);
1666  void MergeFrom(const ::google::protobuf::Message& from);
1667  void CopyFrom(const UpdateMemberStateNotification& from);
1668  void MergeFrom(const UpdateMemberStateNotification& from);
1669  void Clear();
1670  bool IsInitialized() const;
1671 
1672  int ByteSize() const;
1673  bool MergePartialFromCodedStream(
1675  void SerializeWithCachedSizes(
1677  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
1678  int GetCachedSize() const { return _cached_size_; }
1679  private:
1680  void SharedCtor();
1681  void SharedDtor();
1682  void SetCachedSize(int size) const;
1683  public:
1684  ::google::protobuf::Metadata GetMetadata() const;
1685 
1686  // nested types ----------------------------------------------------
1687 
1688  // accessors -------------------------------------------------------
1689 
1690  // optional .bgs.protocol.EntityId agent_id = 1;
1691  inline bool has_agent_id() const;
1692  inline void clear_agent_id();
1693  static const int kAgentIdFieldNumber = 1;
1694  inline const ::bgs::protocol::EntityId& agent_id() const;
1695  inline ::bgs::protocol::EntityId* mutable_agent_id();
1696  inline ::bgs::protocol::EntityId* release_agent_id();
1697  inline void set_allocated_agent_id(::bgs::protocol::EntityId* agent_id);
1698 
1699  // repeated .bgs.protocol.channel.v1.Member state_change = 2;
1700  inline int state_change_size() const;
1701  inline void clear_state_change();
1702  static const int kStateChangeFieldNumber = 2;
1703  inline const ::bgs::protocol::channel::v1::Member& state_change(int index) const;
1704  inline ::bgs::protocol::channel::v1::Member* mutable_state_change(int index);
1705  inline ::bgs::protocol::channel::v1::Member* add_state_change();
1706  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
1707  state_change() const;
1708  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
1709  mutable_state_change();
1710 
1711  // repeated uint32 removed_role = 3 [packed = true];
1712  inline int removed_role_size() const;
1713  inline void clear_removed_role();
1714  static const int kRemovedRoleFieldNumber = 3;
1715  inline ::google::protobuf::uint32 removed_role(int index) const;
1716  inline void set_removed_role(int index, ::google::protobuf::uint32 value);
1717  inline void add_removed_role(::google::protobuf::uint32 value);
1718  inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
1719  removed_role() const;
1720  inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
1721  mutable_removed_role();
1722 
1723  // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
1724  inline bool has_channel_id() const;
1725  inline void clear_channel_id();
1726  static const int kChannelIdFieldNumber = 4;
1727  inline const ::bgs::protocol::channel::v1::ChannelId& channel_id() const;
1728  inline ::bgs::protocol::channel::v1::ChannelId* mutable_channel_id();
1729  inline ::bgs::protocol::channel::v1::ChannelId* release_channel_id();
1730  inline void set_allocated_channel_id(::bgs::protocol::channel::v1::ChannelId* channel_id);
1731 
1732  // optional .bgs.protocol.account.v1.Identity subscriber = 5;
1733  inline bool has_subscriber() const;
1734  inline void clear_subscriber();
1735  static const int kSubscriberFieldNumber = 5;
1736  inline const ::bgs::protocol::account::v1::Identity& subscriber() const;
1737  inline ::bgs::protocol::account::v1::Identity* mutable_subscriber();
1738  inline ::bgs::protocol::account::v1::Identity* release_subscriber();
1739  inline void set_allocated_subscriber(::bgs::protocol::account::v1::Identity* subscriber);
1740 
1741  // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.UpdateMemberStateNotification)
1742  private:
1743  inline void set_has_agent_id();
1744  inline void clear_has_agent_id();
1745  inline void set_has_channel_id();
1746  inline void clear_has_channel_id();
1747  inline void set_has_subscriber();
1748  inline void clear_has_subscriber();
1749 
1751 
1753  mutable int _cached_size_;
1763 
1764  void InitAsDefaultInstance();
1766 };
1767 // ===================================================================
1768 
1770 {
1771  public:
1772 
1773  explicit ChannelService(bool use_original_hash);
1774  virtual ~ChannelService();
1775 
1776  typedef std::integral_constant<uint32, 0xB732DB32u> OriginalHash;
1777  typedef std::integral_constant<uint32, 0xA913A87Bu> NameHash;
1778 
1779  static google::protobuf::ServiceDescriptor const* descriptor();
1780 
1781  // client methods --------------------------------------------------
1782 
1783  void AddMember(::bgs::protocol::channel::v1::AddMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1784  void RemoveMember(::bgs::protocol::channel::v1::RemoveMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1785  void SendMessage(::bgs::protocol::channel::v1::SendMessageRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1786  void UpdateChannelState(::bgs::protocol::channel::v1::UpdateChannelStateRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1787  void UpdateMemberState(::bgs::protocol::channel::v1::UpdateMemberStateRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1788  void Dissolve(::bgs::protocol::channel::v1::DissolveRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1789  void SetRoles(::bgs::protocol::channel::v1::SetRolesRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1790  void UnsubscribeMember(::bgs::protocol::channel::v1::UnsubscribeMemberRequest const* request, std::function<void(::bgs::protocol::NoData const*)> responseCallback);
1791  // server methods --------------------------------------------------
1792 
1793  void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final;
1794 
1795  protected:
1796  virtual uint32 HandleAddMember(::bgs::protocol::channel::v1::AddMemberRequest const* request, ::bgs::protocol::NoData* response);
1797  virtual uint32 HandleRemoveMember(::bgs::protocol::channel::v1::RemoveMemberRequest const* request, ::bgs::protocol::NoData* response);
1798  virtual uint32 HandleSendMessage(::bgs::protocol::channel::v1::SendMessageRequest const* request, ::bgs::protocol::NoData* response);
1799  virtual uint32 HandleUpdateChannelState(::bgs::protocol::channel::v1::UpdateChannelStateRequest const* request, ::bgs::protocol::NoData* response);
1800  virtual uint32 HandleUpdateMemberState(::bgs::protocol::channel::v1::UpdateMemberStateRequest const* request, ::bgs::protocol::NoData* response);
1801  virtual uint32 HandleDissolve(::bgs::protocol::channel::v1::DissolveRequest const* request, ::bgs::protocol::NoData* response);
1802  virtual uint32 HandleSetRoles(::bgs::protocol::channel::v1::SetRolesRequest const* request, ::bgs::protocol::NoData* response);
1803  virtual uint32 HandleUnsubscribeMember(::bgs::protocol::channel::v1::UnsubscribeMemberRequest const* request, ::bgs::protocol::NoData* response);
1804 
1805  private:
1807 
1809 };
1810 
1811 // -------------------------------------------------------------------
1812 
1814 {
1815  public:
1816 
1817  explicit ChannelListener(bool use_original_hash);
1818  virtual ~ChannelListener();
1819 
1820  typedef std::integral_constant<uint32, 0xBF8C8094u> OriginalHash;
1821  typedef std::integral_constant<uint32, 0xDA660990u> NameHash;
1822 
1823  static google::protobuf::ServiceDescriptor const* descriptor();
1824 
1825  // client methods --------------------------------------------------
1826 
1827  void OnJoin(::bgs::protocol::channel::v1::JoinNotification const* request);
1828  void OnMemberAdded(::bgs::protocol::channel::v1::MemberAddedNotification const* request);
1829  void OnLeave(::bgs::protocol::channel::v1::LeaveNotification const* request);
1830  void OnMemberRemoved(::bgs::protocol::channel::v1::MemberRemovedNotification const* request);
1831  void OnSendMessage(::bgs::protocol::channel::v1::SendMessageNotification const* request);
1832  void OnUpdateChannelState(::bgs::protocol::channel::v1::UpdateChannelStateNotification const* request);
1833  void OnUpdateMemberState(::bgs::protocol::channel::v1::UpdateMemberStateNotification const* request);
1834  // server methods --------------------------------------------------
1835 
1836  void CallServerMethod(uint32 token, uint32 methodId, MessageBuffer buffer) override final;
1837 
1838  protected:
1839  virtual uint32 HandleOnJoin(::bgs::protocol::channel::v1::JoinNotification const* request);
1840  virtual uint32 HandleOnMemberAdded(::bgs::protocol::channel::v1::MemberAddedNotification const* request);
1841  virtual uint32 HandleOnLeave(::bgs::protocol::channel::v1::LeaveNotification const* request);
1842  virtual uint32 HandleOnMemberRemoved(::bgs::protocol::channel::v1::MemberRemovedNotification const* request);
1843  virtual uint32 HandleOnSendMessage(::bgs::protocol::channel::v1::SendMessageNotification const* request);
1844  virtual uint32 HandleOnUpdateChannelState(::bgs::protocol::channel::v1::UpdateChannelStateNotification const* request);
1845  virtual uint32 HandleOnUpdateMemberState(::bgs::protocol::channel::v1::UpdateMemberStateNotification const* request);
1846 
1847  private:
1849 
1851 };
1852 
1853 // ===================================================================
1854 
1855 
1856 // ===================================================================
1857 
1858 // AddMemberRequest
1859 
1860 // optional .bgs.protocol.EntityId agent_id = 1;
1861 inline bool AddMemberRequest::has_agent_id() const {
1862  return (_has_bits_[0] & 0x00000001u) != 0;
1863 }
1865  _has_bits_[0] |= 0x00000001u;
1866 }
1868  _has_bits_[0] &= ~0x00000001u;
1869 }
1871  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
1873 }
1874 inline const ::bgs::protocol::EntityId& AddMemberRequest::agent_id() const {
1875  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.agent_id)
1877 }
1878 inline ::bgs::protocol::EntityId* AddMemberRequest::mutable_agent_id() {
1879  set_has_agent_id();
1880  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
1881  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.AddMemberRequest.agent_id)
1882  return agent_id_;
1883 }
1884 inline ::bgs::protocol::EntityId* AddMemberRequest::release_agent_id() {
1887  agent_id_ = NULL;
1888  return temp;
1889 }
1891  delete agent_id_;
1892  agent_id_ = agent_id;
1893  if (agent_id) {
1894  set_has_agent_id();
1895  } else {
1897  }
1898  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.AddMemberRequest.agent_id)
1899 }
1900 
1901 // required .bgs.protocol.Identity member_identity = 2;
1903  return (_has_bits_[0] & 0x00000002u) != 0;
1904 }
1906  _has_bits_[0] |= 0x00000002u;
1907 }
1909  _has_bits_[0] &= ~0x00000002u;
1910 }
1912  if (member_identity_ != NULL) member_identity_->::bgs::protocol::Identity::Clear();
1914 }
1915 inline const ::bgs::protocol::Identity& AddMemberRequest::member_identity() const {
1916  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.member_identity)
1918 }
1919 inline ::bgs::protocol::Identity* AddMemberRequest::mutable_member_identity() {
1921  if (member_identity_ == NULL) member_identity_ = new ::bgs::protocol::Identity;
1922  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.AddMemberRequest.member_identity)
1923  return member_identity_;
1924 }
1925 inline ::bgs::protocol::Identity* AddMemberRequest::release_member_identity() {
1929  return temp;
1930 }
1932  delete member_identity_;
1934  if (member_identity) {
1936  } else {
1938  }
1939  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.AddMemberRequest.member_identity)
1940 }
1941 
1942 // required .bgs.protocol.channel.v1.MemberState member_state = 3;
1944  return (_has_bits_[0] & 0x00000004u) != 0;
1945 }
1947  _has_bits_[0] |= 0x00000004u;
1948 }
1950  _has_bits_[0] &= ~0x00000004u;
1951 }
1953  if (member_state_ != NULL) member_state_->::bgs::protocol::channel::v1::MemberState::Clear();
1955 }
1956 inline const ::bgs::protocol::channel::v1::MemberState& AddMemberRequest::member_state() const {
1957  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.member_state)
1959 }
1960 inline ::bgs::protocol::channel::v1::MemberState* AddMemberRequest::mutable_member_state() {
1962  if (member_state_ == NULL) member_state_ = new ::bgs::protocol::channel::v1::MemberState;
1963  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.AddMemberRequest.member_state)
1964  return member_state_;
1965 }
1966 inline ::bgs::protocol::channel::v1::MemberState* AddMemberRequest::release_member_state() {
1969  member_state_ = NULL;
1970  return temp;
1971 }
1973  delete member_state_;
1975  if (member_state) {
1977  } else {
1979  }
1980  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.AddMemberRequest.member_state)
1981 }
1982 
1983 // required uint64 object_id = 4;
1984 inline bool AddMemberRequest::has_object_id() const {
1985  return (_has_bits_[0] & 0x00000008u) != 0;
1986 }
1988  _has_bits_[0] |= 0x00000008u;
1989 }
1991  _has_bits_[0] &= ~0x00000008u;
1992 }
1996 }
1998  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.object_id)
1999  return object_id_;
2000 }
2003  object_id_ = value;
2004  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.AddMemberRequest.object_id)
2005 }
2006 
2007 // optional bool subscribe = 5 [default = true];
2008 inline bool AddMemberRequest::has_subscribe() const {
2009  return (_has_bits_[0] & 0x00000010u) != 0;
2010 }
2012  _has_bits_[0] |= 0x00000010u;
2013 }
2015  _has_bits_[0] &= ~0x00000010u;
2016 }
2018  subscribe_ = true;
2020 }
2021 inline bool AddMemberRequest::subscribe() const {
2022  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.AddMemberRequest.subscribe)
2023  return subscribe_;
2024 }
2027  subscribe_ = value;
2028  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.AddMemberRequest.subscribe)
2029 }
2030 
2031 // -------------------------------------------------------------------
2032 
2033 // RemoveMemberRequest
2034 
2035 // optional .bgs.protocol.EntityId agent_id = 1;
2037  return (_has_bits_[0] & 0x00000001u) != 0;
2038 }
2040  _has_bits_[0] |= 0x00000001u;
2041 }
2043  _has_bits_[0] &= ~0x00000001u;
2044 }
2046  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2048 }
2049 inline const ::bgs::protocol::EntityId& RemoveMemberRequest::agent_id() const {
2050  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.RemoveMemberRequest.agent_id)
2052 }
2053 inline ::bgs::protocol::EntityId* RemoveMemberRequest::mutable_agent_id() {
2054  set_has_agent_id();
2055  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2056  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.RemoveMemberRequest.agent_id)
2057  return agent_id_;
2058 }
2059 inline ::bgs::protocol::EntityId* RemoveMemberRequest::release_agent_id() {
2062  agent_id_ = NULL;
2063  return temp;
2064 }
2066  delete agent_id_;
2067  agent_id_ = agent_id;
2068  if (agent_id) {
2069  set_has_agent_id();
2070  } else {
2072  }
2073  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.RemoveMemberRequest.agent_id)
2074 }
2075 
2076 // required .bgs.protocol.EntityId member_id = 2;
2078  return (_has_bits_[0] & 0x00000002u) != 0;
2079 }
2081  _has_bits_[0] |= 0x00000002u;
2082 }
2084  _has_bits_[0] &= ~0x00000002u;
2085 }
2087  if (member_id_ != NULL) member_id_->::bgs::protocol::EntityId::Clear();
2089 }
2090 inline const ::bgs::protocol::EntityId& RemoveMemberRequest::member_id() const {
2091  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.RemoveMemberRequest.member_id)
2093 }
2094 inline ::bgs::protocol::EntityId* RemoveMemberRequest::mutable_member_id() {
2096  if (member_id_ == NULL) member_id_ = new ::bgs::protocol::EntityId;
2097  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.RemoveMemberRequest.member_id)
2098  return member_id_;
2099 }
2100 inline ::bgs::protocol::EntityId* RemoveMemberRequest::release_member_id() {
2103  member_id_ = NULL;
2104  return temp;
2105 }
2107  delete member_id_;
2109  if (member_id) {
2111  } else {
2113  }
2114  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.RemoveMemberRequest.member_id)
2115 }
2116 
2117 // optional uint32 reason = 3;
2118 inline bool RemoveMemberRequest::has_reason() const {
2119  return (_has_bits_[0] & 0x00000004u) != 0;
2120 }
2122  _has_bits_[0] |= 0x00000004u;
2123 }
2125  _has_bits_[0] &= ~0x00000004u;
2126 }
2128  reason_ = 0u;
2129  clear_has_reason();
2130 }
2132  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.RemoveMemberRequest.reason)
2133  return reason_;
2134 }
2136  set_has_reason();
2137  reason_ = value;
2138  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.RemoveMemberRequest.reason)
2139 }
2140 
2141 // -------------------------------------------------------------------
2142 
2143 // UnsubscribeMemberRequest
2144 
2145 // optional .bgs.protocol.EntityId agent_id = 1;
2147  return (_has_bits_[0] & 0x00000001u) != 0;
2148 }
2150  _has_bits_[0] |= 0x00000001u;
2151 }
2153  _has_bits_[0] &= ~0x00000001u;
2154 }
2156  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2158 }
2159 inline const ::bgs::protocol::EntityId& UnsubscribeMemberRequest::agent_id() const {
2160  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UnsubscribeMemberRequest.agent_id)
2162 }
2163 inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::mutable_agent_id() {
2164  set_has_agent_id();
2165  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2166  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UnsubscribeMemberRequest.agent_id)
2167  return agent_id_;
2168 }
2169 inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::release_agent_id() {
2172  agent_id_ = NULL;
2173  return temp;
2174 }
2176  delete agent_id_;
2177  agent_id_ = agent_id;
2178  if (agent_id) {
2179  set_has_agent_id();
2180  } else {
2182  }
2183  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UnsubscribeMemberRequest.agent_id)
2184 }
2185 
2186 // required .bgs.protocol.EntityId member_id = 2;
2188  return (_has_bits_[0] & 0x00000002u) != 0;
2189 }
2191  _has_bits_[0] |= 0x00000002u;
2192 }
2194  _has_bits_[0] &= ~0x00000002u;
2195 }
2197  if (member_id_ != NULL) member_id_->::bgs::protocol::EntityId::Clear();
2199 }
2200 inline const ::bgs::protocol::EntityId& UnsubscribeMemberRequest::member_id() const {
2201  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UnsubscribeMemberRequest.member_id)
2203 }
2204 inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::mutable_member_id() {
2206  if (member_id_ == NULL) member_id_ = new ::bgs::protocol::EntityId;
2207  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UnsubscribeMemberRequest.member_id)
2208  return member_id_;
2209 }
2210 inline ::bgs::protocol::EntityId* UnsubscribeMemberRequest::release_member_id() {
2213  member_id_ = NULL;
2214  return temp;
2215 }
2217  delete member_id_;
2219  if (member_id) {
2221  } else {
2223  }
2224  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UnsubscribeMemberRequest.member_id)
2225 }
2226 
2227 // -------------------------------------------------------------------
2228 
2229 // SendMessageRequest
2230 
2231 // optional .bgs.protocol.EntityId agent_id = 1;
2233  return (_has_bits_[0] & 0x00000001u) != 0;
2234 }
2236  _has_bits_[0] |= 0x00000001u;
2237 }
2239  _has_bits_[0] &= ~0x00000001u;
2240 }
2242  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2244 }
2245 inline const ::bgs::protocol::EntityId& SendMessageRequest::agent_id() const {
2246  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageRequest.agent_id)
2248 }
2249 inline ::bgs::protocol::EntityId* SendMessageRequest::mutable_agent_id() {
2250  set_has_agent_id();
2251  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2252  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageRequest.agent_id)
2253  return agent_id_;
2254 }
2255 inline ::bgs::protocol::EntityId* SendMessageRequest::release_agent_id() {
2258  agent_id_ = NULL;
2259  return temp;
2260 }
2262  delete agent_id_;
2263  agent_id_ = agent_id;
2264  if (agent_id) {
2265  set_has_agent_id();
2266  } else {
2268  }
2269  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageRequest.agent_id)
2270 }
2271 
2272 // required .bgs.protocol.channel.v1.Message message = 2;
2273 inline bool SendMessageRequest::has_message() const {
2274  return (_has_bits_[0] & 0x00000002u) != 0;
2275 }
2277  _has_bits_[0] |= 0x00000002u;
2278 }
2280  _has_bits_[0] &= ~0x00000002u;
2281 }
2283  if (message_ != NULL) message_->::bgs::protocol::channel::v1::Message::Clear();
2285 }
2286 inline const ::bgs::protocol::channel::v1::Message& SendMessageRequest::message() const {
2287  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageRequest.message)
2288  return message_ != NULL ? *message_ : *default_instance_->message_;
2289 }
2290 inline ::bgs::protocol::channel::v1::Message* SendMessageRequest::mutable_message() {
2291  set_has_message();
2292  if (message_ == NULL) message_ = new ::bgs::protocol::channel::v1::Message;
2293  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageRequest.message)
2294  return message_;
2295 }
2296 inline ::bgs::protocol::channel::v1::Message* SendMessageRequest::release_message() {
2299  message_ = NULL;
2300  return temp;
2301 }
2303  delete message_;
2304  message_ = message;
2305  if (message) {
2306  set_has_message();
2307  } else {
2309  }
2310  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageRequest.message)
2311 }
2312 
2313 // optional uint64 required_privileges = 3 [default = 0];
2315  return (_has_bits_[0] & 0x00000004u) != 0;
2316 }
2318  _has_bits_[0] |= 0x00000004u;
2319 }
2321  _has_bits_[0] &= ~0x00000004u;
2322 }
2326 }
2328  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageRequest.required_privileges)
2329  return required_privileges_;
2330 }
2334  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SendMessageRequest.required_privileges)
2335 }
2336 
2337 // -------------------------------------------------------------------
2338 
2339 // UpdateChannelStateRequest
2340 
2341 // optional .bgs.protocol.EntityId agent_id = 1;
2343  return (_has_bits_[0] & 0x00000001u) != 0;
2344 }
2346  _has_bits_[0] |= 0x00000001u;
2347 }
2349  _has_bits_[0] &= ~0x00000001u;
2350 }
2352  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2354 }
2355 inline const ::bgs::protocol::EntityId& UpdateChannelStateRequest::agent_id() const {
2356  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateChannelStateRequest.agent_id)
2358 }
2359 inline ::bgs::protocol::EntityId* UpdateChannelStateRequest::mutable_agent_id() {
2360  set_has_agent_id();
2361  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2362  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateChannelStateRequest.agent_id)
2363  return agent_id_;
2364 }
2365 inline ::bgs::protocol::EntityId* UpdateChannelStateRequest::release_agent_id() {
2368  agent_id_ = NULL;
2369  return temp;
2370 }
2372  delete agent_id_;
2373  agent_id_ = agent_id;
2374  if (agent_id) {
2375  set_has_agent_id();
2376  } else {
2378  }
2379  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateChannelStateRequest.agent_id)
2380 }
2381 
2382 // required .bgs.protocol.channel.v1.ChannelState state_change = 2;
2384  return (_has_bits_[0] & 0x00000002u) != 0;
2385 }
2387  _has_bits_[0] |= 0x00000002u;
2388 }
2390  _has_bits_[0] &= ~0x00000002u;
2391 }
2393  if (state_change_ != NULL) state_change_->::bgs::protocol::channel::v1::ChannelState::Clear();
2395 }
2396 inline const ::bgs::protocol::channel::v1::ChannelState& UpdateChannelStateRequest::state_change() const {
2397  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateChannelStateRequest.state_change)
2399 }
2400 inline ::bgs::protocol::channel::v1::ChannelState* UpdateChannelStateRequest::mutable_state_change() {
2402  if (state_change_ == NULL) state_change_ = new ::bgs::protocol::channel::v1::ChannelState;
2403  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateChannelStateRequest.state_change)
2404  return state_change_;
2405 }
2406 inline ::bgs::protocol::channel::v1::ChannelState* UpdateChannelStateRequest::release_state_change() {
2409  state_change_ = NULL;
2410  return temp;
2411 }
2413  delete state_change_;
2415  if (state_change) {
2417  } else {
2419  }
2420  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateChannelStateRequest.state_change)
2421 }
2422 
2423 // -------------------------------------------------------------------
2424 
2425 // UpdateMemberStateRequest
2426 
2427 // optional .bgs.protocol.EntityId agent_id = 1;
2429  return (_has_bits_[0] & 0x00000001u) != 0;
2430 }
2432  _has_bits_[0] |= 0x00000001u;
2433 }
2435  _has_bits_[0] &= ~0x00000001u;
2436 }
2438  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2440 }
2441 inline const ::bgs::protocol::EntityId& UpdateMemberStateRequest::agent_id() const {
2442  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateRequest.agent_id)
2444 }
2445 inline ::bgs::protocol::EntityId* UpdateMemberStateRequest::mutable_agent_id() {
2446  set_has_agent_id();
2447  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2448  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateMemberStateRequest.agent_id)
2449  return agent_id_;
2450 }
2451 inline ::bgs::protocol::EntityId* UpdateMemberStateRequest::release_agent_id() {
2454  agent_id_ = NULL;
2455  return temp;
2456 }
2458  delete agent_id_;
2459  agent_id_ = agent_id;
2460  if (agent_id) {
2461  set_has_agent_id();
2462  } else {
2464  }
2465  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateMemberStateRequest.agent_id)
2466 }
2467 
2468 // repeated .bgs.protocol.channel.v1.Member state_change = 2;
2470  return state_change_.size();
2471 }
2473  state_change_.Clear();
2474 }
2475 inline const ::bgs::protocol::channel::v1::Member& UpdateMemberStateRequest::state_change(int index) const {
2476  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateRequest.state_change)
2477  return state_change_.Get(index);
2478 }
2479 inline ::bgs::protocol::channel::v1::Member* UpdateMemberStateRequest::mutable_state_change(int index) {
2480  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateMemberStateRequest.state_change)
2481  return state_change_.Mutable(index);
2482 }
2483 inline ::bgs::protocol::channel::v1::Member* UpdateMemberStateRequest::add_state_change() {
2484  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.UpdateMemberStateRequest.state_change)
2485  return state_change_.Add();
2486 }
2487 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
2489  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.UpdateMemberStateRequest.state_change)
2490  return state_change_;
2491 }
2492 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
2494  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.UpdateMemberStateRequest.state_change)
2495  return &state_change_;
2496 }
2497 
2498 // repeated uint32 removed_role = 3 [packed = true];
2500  return removed_role_.size();
2501 }
2503  removed_role_.Clear();
2504 }
2506  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateRequest.removed_role)
2507  return removed_role_.Get(index);
2508 }
2510  removed_role_.Set(index, value);
2511  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.UpdateMemberStateRequest.removed_role)
2512 }
2514  removed_role_.Add(value);
2515  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.UpdateMemberStateRequest.removed_role)
2516 }
2517 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2519  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.UpdateMemberStateRequest.removed_role)
2520  return removed_role_;
2521 }
2522 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2524  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.UpdateMemberStateRequest.removed_role)
2525  return &removed_role_;
2526 }
2527 
2528 // -------------------------------------------------------------------
2529 
2530 // DissolveRequest
2531 
2532 // optional .bgs.protocol.EntityId agent_id = 1;
2533 inline bool DissolveRequest::has_agent_id() const {
2534  return (_has_bits_[0] & 0x00000001u) != 0;
2535 }
2537  _has_bits_[0] |= 0x00000001u;
2538 }
2540  _has_bits_[0] &= ~0x00000001u;
2541 }
2543  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2545 }
2546 inline const ::bgs::protocol::EntityId& DissolveRequest::agent_id() const {
2547  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.DissolveRequest.agent_id)
2549 }
2550 inline ::bgs::protocol::EntityId* DissolveRequest::mutable_agent_id() {
2551  set_has_agent_id();
2552  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2553  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.DissolveRequest.agent_id)
2554  return agent_id_;
2555 }
2556 inline ::bgs::protocol::EntityId* DissolveRequest::release_agent_id() {
2559  agent_id_ = NULL;
2560  return temp;
2561 }
2563  delete agent_id_;
2564  agent_id_ = agent_id;
2565  if (agent_id) {
2566  set_has_agent_id();
2567  } else {
2569  }
2570  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.DissolveRequest.agent_id)
2571 }
2572 
2573 // optional uint32 reason = 2;
2574 inline bool DissolveRequest::has_reason() const {
2575  return (_has_bits_[0] & 0x00000002u) != 0;
2576 }
2578  _has_bits_[0] |= 0x00000002u;
2579 }
2581  _has_bits_[0] &= ~0x00000002u;
2582 }
2584  reason_ = 0u;
2585  clear_has_reason();
2586 }
2588  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.DissolveRequest.reason)
2589  return reason_;
2590 }
2592  set_has_reason();
2593  reason_ = value;
2594  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.DissolveRequest.reason)
2595 }
2596 
2597 // -------------------------------------------------------------------
2598 
2599 // SetRolesRequest
2600 
2601 // optional .bgs.protocol.EntityId agent_id = 1;
2602 inline bool SetRolesRequest::has_agent_id() const {
2603  return (_has_bits_[0] & 0x00000001u) != 0;
2604 }
2606  _has_bits_[0] |= 0x00000001u;
2607 }
2609  _has_bits_[0] &= ~0x00000001u;
2610 }
2612  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
2614 }
2615 inline const ::bgs::protocol::EntityId& SetRolesRequest::agent_id() const {
2616  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SetRolesRequest.agent_id)
2618 }
2619 inline ::bgs::protocol::EntityId* SetRolesRequest::mutable_agent_id() {
2620  set_has_agent_id();
2621  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
2622  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SetRolesRequest.agent_id)
2623  return agent_id_;
2624 }
2625 inline ::bgs::protocol::EntityId* SetRolesRequest::release_agent_id() {
2628  agent_id_ = NULL;
2629  return temp;
2630 }
2632  delete agent_id_;
2633  agent_id_ = agent_id;
2634  if (agent_id) {
2635  set_has_agent_id();
2636  } else {
2638  }
2639  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SetRolesRequest.agent_id)
2640 }
2641 
2642 // repeated uint32 role = 2 [packed = true];
2643 inline int SetRolesRequest::role_size() const {
2644  return role_.size();
2645 }
2647  role_.Clear();
2648 }
2650  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SetRolesRequest.role)
2651  return role_.Get(index);
2652 }
2654  role_.Set(index, value);
2655  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SetRolesRequest.role)
2656 }
2658  role_.Add(value);
2659  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.SetRolesRequest.role)
2660 }
2661 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2663  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.SetRolesRequest.role)
2664  return role_;
2665 }
2666 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2668  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.SetRolesRequest.role)
2669  return &role_;
2670 }
2671 
2672 // repeated .bgs.protocol.EntityId member_id = 3;
2674  return member_id_.size();
2675 }
2677  member_id_.Clear();
2678 }
2679 inline const ::bgs::protocol::EntityId& SetRolesRequest::member_id(int index) const {
2680  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SetRolesRequest.member_id)
2681  return member_id_.Get(index);
2682 }
2683 inline ::bgs::protocol::EntityId* SetRolesRequest::mutable_member_id(int index) {
2684  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SetRolesRequest.member_id)
2685  return member_id_.Mutable(index);
2686 }
2687 inline ::bgs::protocol::EntityId* SetRolesRequest::add_member_id() {
2688  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.SetRolesRequest.member_id)
2689  return member_id_.Add();
2690 }
2691 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >&
2693  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.SetRolesRequest.member_id)
2694  return member_id_;
2695 }
2696 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::EntityId >*
2698  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.SetRolesRequest.member_id)
2699  return &member_id_;
2700 }
2701 
2702 // -------------------------------------------------------------------
2703 
2704 // JoinNotification
2705 
2706 // optional .bgs.protocol.channel.v1.Member self = 1;
2707 inline bool JoinNotification::has_self() const {
2708  return (_has_bits_[0] & 0x00000001u) != 0;
2709 }
2711  _has_bits_[0] |= 0x00000001u;
2712 }
2714  _has_bits_[0] &= ~0x00000001u;
2715 }
2717  if (self_ != NULL) self_->::bgs::protocol::channel::v1::Member::Clear();
2718  clear_has_self();
2719 }
2720 inline const ::bgs::protocol::channel::v1::Member& JoinNotification::self() const {
2721  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.JoinNotification.self)
2722  return self_ != NULL ? *self_ : *default_instance_->self_;
2723 }
2724 inline ::bgs::protocol::channel::v1::Member* JoinNotification::mutable_self() {
2725  set_has_self();
2726  if (self_ == NULL) self_ = new ::bgs::protocol::channel::v1::Member;
2727  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.JoinNotification.self)
2728  return self_;
2729 }
2730 inline ::bgs::protocol::channel::v1::Member* JoinNotification::release_self() {
2731  clear_has_self();
2733  self_ = NULL;
2734  return temp;
2735 }
2737  delete self_;
2738  self_ = self;
2739  if (self) {
2740  set_has_self();
2741  } else {
2742  clear_has_self();
2743  }
2744  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.JoinNotification.self)
2745 }
2746 
2747 // repeated .bgs.protocol.channel.v1.Member member = 2;
2748 inline int JoinNotification::member_size() const {
2749  return member_.size();
2750 }
2752  member_.Clear();
2753 }
2754 inline const ::bgs::protocol::channel::v1::Member& JoinNotification::member(int index) const {
2755  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.JoinNotification.member)
2756  return member_.Get(index);
2757 }
2758 inline ::bgs::protocol::channel::v1::Member* JoinNotification::mutable_member(int index) {
2759  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.JoinNotification.member)
2760  return member_.Mutable(index);
2761 }
2762 inline ::bgs::protocol::channel::v1::Member* JoinNotification::add_member() {
2763  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.JoinNotification.member)
2764  return member_.Add();
2765 }
2766 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
2768  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.JoinNotification.member)
2769  return member_;
2770 }
2771 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
2773  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.JoinNotification.member)
2774  return &member_;
2775 }
2776 
2777 // required .bgs.protocol.channel.v1.ChannelState channel_state = 3;
2779  return (_has_bits_[0] & 0x00000004u) != 0;
2780 }
2782  _has_bits_[0] |= 0x00000004u;
2783 }
2785  _has_bits_[0] &= ~0x00000004u;
2786 }
2788  if (channel_state_ != NULL) channel_state_->::bgs::protocol::channel::v1::ChannelState::Clear();
2790 }
2791 inline const ::bgs::protocol::channel::v1::ChannelState& JoinNotification::channel_state() const {
2792  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.JoinNotification.channel_state)
2794 }
2795 inline ::bgs::protocol::channel::v1::ChannelState* JoinNotification::mutable_channel_state() {
2797  if (channel_state_ == NULL) channel_state_ = new ::bgs::protocol::channel::v1::ChannelState;
2798  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.JoinNotification.channel_state)
2799  return channel_state_;
2800 }
2801 inline ::bgs::protocol::channel::v1::ChannelState* JoinNotification::release_channel_state() {
2804  channel_state_ = NULL;
2805  return temp;
2806 }
2808  delete channel_state_;
2810  if (channel_state) {
2812  } else {
2814  }
2815  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.JoinNotification.channel_state)
2816 }
2817 
2818 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
2820  return (_has_bits_[0] & 0x00000008u) != 0;
2821 }
2823  _has_bits_[0] |= 0x00000008u;
2824 }
2826  _has_bits_[0] &= ~0x00000008u;
2827 }
2829  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
2831 }
2832 inline const ::bgs::protocol::channel::v1::ChannelId& JoinNotification::channel_id() const {
2833  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.JoinNotification.channel_id)
2835 }
2836 inline ::bgs::protocol::channel::v1::ChannelId* JoinNotification::mutable_channel_id() {
2838  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
2839  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.JoinNotification.channel_id)
2840  return channel_id_;
2841 }
2842 inline ::bgs::protocol::channel::v1::ChannelId* JoinNotification::release_channel_id() {
2845  channel_id_ = NULL;
2846  return temp;
2847 }
2849  delete channel_id_;
2851  if (channel_id) {
2853  } else {
2855  }
2856  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.JoinNotification.channel_id)
2857 }
2858 
2859 // optional .bgs.protocol.account.v1.Identity subscriber = 5;
2861  return (_has_bits_[0] & 0x00000010u) != 0;
2862 }
2864  _has_bits_[0] |= 0x00000010u;
2865 }
2867  _has_bits_[0] &= ~0x00000010u;
2868 }
2870  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
2872 }
2873 inline const ::bgs::protocol::account::v1::Identity& JoinNotification::subscriber() const {
2874  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.JoinNotification.subscriber)
2876 }
2877 inline ::bgs::protocol::account::v1::Identity* JoinNotification::mutable_subscriber() {
2879  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
2880  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.JoinNotification.subscriber)
2881  return subscriber_;
2882 }
2883 inline ::bgs::protocol::account::v1::Identity* JoinNotification::release_subscriber() {
2886  subscriber_ = NULL;
2887  return temp;
2888 }
2890  delete subscriber_;
2892  if (subscriber) {
2894  } else {
2896  }
2897  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.JoinNotification.subscriber)
2898 }
2899 
2900 // -------------------------------------------------------------------
2901 
2902 // MemberAddedNotification
2903 
2904 // required .bgs.protocol.channel.v1.Member member = 1;
2906  return (_has_bits_[0] & 0x00000001u) != 0;
2907 }
2909  _has_bits_[0] |= 0x00000001u;
2910 }
2912  _has_bits_[0] &= ~0x00000001u;
2913 }
2915  if (member_ != NULL) member_->::bgs::protocol::channel::v1::Member::Clear();
2916  clear_has_member();
2917 }
2918 inline const ::bgs::protocol::channel::v1::Member& MemberAddedNotification::member() const {
2919  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberAddedNotification.member)
2920  return member_ != NULL ? *member_ : *default_instance_->member_;
2921 }
2922 inline ::bgs::protocol::channel::v1::Member* MemberAddedNotification::mutable_member() {
2923  set_has_member();
2924  if (member_ == NULL) member_ = new ::bgs::protocol::channel::v1::Member;
2925  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberAddedNotification.member)
2926  return member_;
2927 }
2928 inline ::bgs::protocol::channel::v1::Member* MemberAddedNotification::release_member() {
2929  clear_has_member();
2931  member_ = NULL;
2932  return temp;
2933 }
2935  delete member_;
2936  member_ = member;
2937  if (member) {
2938  set_has_member();
2939  } else {
2940  clear_has_member();
2941  }
2942  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberAddedNotification.member)
2943 }
2944 
2945 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 2;
2947  return (_has_bits_[0] & 0x00000002u) != 0;
2948 }
2950  _has_bits_[0] |= 0x00000002u;
2951 }
2953  _has_bits_[0] &= ~0x00000002u;
2954 }
2956  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
2958 }
2959 inline const ::bgs::protocol::channel::v1::ChannelId& MemberAddedNotification::channel_id() const {
2960  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberAddedNotification.channel_id)
2962 }
2963 inline ::bgs::protocol::channel::v1::ChannelId* MemberAddedNotification::mutable_channel_id() {
2965  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
2966  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberAddedNotification.channel_id)
2967  return channel_id_;
2968 }
2969 inline ::bgs::protocol::channel::v1::ChannelId* MemberAddedNotification::release_channel_id() {
2972  channel_id_ = NULL;
2973  return temp;
2974 }
2976  delete channel_id_;
2978  if (channel_id) {
2980  } else {
2982  }
2983  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberAddedNotification.channel_id)
2984 }
2985 
2986 // optional .bgs.protocol.account.v1.Identity subscriber = 3;
2988  return (_has_bits_[0] & 0x00000004u) != 0;
2989 }
2991  _has_bits_[0] |= 0x00000004u;
2992 }
2994  _has_bits_[0] &= ~0x00000004u;
2995 }
2997  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
2999 }
3000 inline const ::bgs::protocol::account::v1::Identity& MemberAddedNotification::subscriber() const {
3001  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberAddedNotification.subscriber)
3003 }
3004 inline ::bgs::protocol::account::v1::Identity* MemberAddedNotification::mutable_subscriber() {
3006  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
3007  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberAddedNotification.subscriber)
3008  return subscriber_;
3009 }
3010 inline ::bgs::protocol::account::v1::Identity* MemberAddedNotification::release_subscriber() {
3013  subscriber_ = NULL;
3014  return temp;
3015 }
3017  delete subscriber_;
3019  if (subscriber) {
3021  } else {
3023  }
3024  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberAddedNotification.subscriber)
3025 }
3026 
3027 // -------------------------------------------------------------------
3028 
3029 // LeaveNotification
3030 
3031 // optional .bgs.protocol.EntityId agent_id = 1;
3032 inline bool LeaveNotification::has_agent_id() const {
3033  return (_has_bits_[0] & 0x00000001u) != 0;
3034 }
3036  _has_bits_[0] |= 0x00000001u;
3037 }
3039  _has_bits_[0] &= ~0x00000001u;
3040 }
3042  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
3044 }
3045 inline const ::bgs::protocol::EntityId& LeaveNotification::agent_id() const {
3046  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.LeaveNotification.agent_id)
3048 }
3049 inline ::bgs::protocol::EntityId* LeaveNotification::mutable_agent_id() {
3050  set_has_agent_id();
3051  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
3052  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.LeaveNotification.agent_id)
3053  return agent_id_;
3054 }
3055 inline ::bgs::protocol::EntityId* LeaveNotification::release_agent_id() {
3058  agent_id_ = NULL;
3059  return temp;
3060 }
3062  delete agent_id_;
3063  agent_id_ = agent_id;
3064  if (agent_id) {
3065  set_has_agent_id();
3066  } else {
3068  }
3069  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.LeaveNotification.agent_id)
3070 }
3071 
3072 // required .bgs.protocol.EntityId member_id = 2;
3074  return (_has_bits_[0] & 0x00000002u) != 0;
3075 }
3077  _has_bits_[0] |= 0x00000002u;
3078 }
3080  _has_bits_[0] &= ~0x00000002u;
3081 }
3083  if (member_id_ != NULL) member_id_->::bgs::protocol::EntityId::Clear();
3085 }
3086 inline const ::bgs::protocol::EntityId& LeaveNotification::member_id() const {
3087  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.LeaveNotification.member_id)
3089 }
3090 inline ::bgs::protocol::EntityId* LeaveNotification::mutable_member_id() {
3092  if (member_id_ == NULL) member_id_ = new ::bgs::protocol::EntityId;
3093  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.LeaveNotification.member_id)
3094  return member_id_;
3095 }
3096 inline ::bgs::protocol::EntityId* LeaveNotification::release_member_id() {
3099  member_id_ = NULL;
3100  return temp;
3101 }
3103  delete member_id_;
3105  if (member_id) {
3107  } else {
3109  }
3110  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.LeaveNotification.member_id)
3111 }
3112 
3113 // optional uint32 reason = 3;
3114 inline bool LeaveNotification::has_reason() const {
3115  return (_has_bits_[0] & 0x00000004u) != 0;
3116 }
3118  _has_bits_[0] |= 0x00000004u;
3119 }
3121  _has_bits_[0] &= ~0x00000004u;
3122 }
3124  reason_ = 0u;
3125  clear_has_reason();
3126 }
3128  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.LeaveNotification.reason)
3129  return reason_;
3130 }
3132  set_has_reason();
3133  reason_ = value;
3134  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.LeaveNotification.reason)
3135 }
3136 
3137 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
3139  return (_has_bits_[0] & 0x00000008u) != 0;
3140 }
3142  _has_bits_[0] |= 0x00000008u;
3143 }
3145  _has_bits_[0] &= ~0x00000008u;
3146 }
3148  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
3150 }
3151 inline const ::bgs::protocol::channel::v1::ChannelId& LeaveNotification::channel_id() const {
3152  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.LeaveNotification.channel_id)
3154 }
3155 inline ::bgs::protocol::channel::v1::ChannelId* LeaveNotification::mutable_channel_id() {
3157  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
3158  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.LeaveNotification.channel_id)
3159  return channel_id_;
3160 }
3161 inline ::bgs::protocol::channel::v1::ChannelId* LeaveNotification::release_channel_id() {
3164  channel_id_ = NULL;
3165  return temp;
3166 }
3168  delete channel_id_;
3170  if (channel_id) {
3172  } else {
3174  }
3175  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.LeaveNotification.channel_id)
3176 }
3177 
3178 // optional .bgs.protocol.account.v1.Identity subscriber = 5;
3180  return (_has_bits_[0] & 0x00000010u) != 0;
3181 }
3183  _has_bits_[0] |= 0x00000010u;
3184 }
3186  _has_bits_[0] &= ~0x00000010u;
3187 }
3189  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
3191 }
3192 inline const ::bgs::protocol::account::v1::Identity& LeaveNotification::subscriber() const {
3193  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.LeaveNotification.subscriber)
3195 }
3196 inline ::bgs::protocol::account::v1::Identity* LeaveNotification::mutable_subscriber() {
3198  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
3199  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.LeaveNotification.subscriber)
3200  return subscriber_;
3201 }
3202 inline ::bgs::protocol::account::v1::Identity* LeaveNotification::release_subscriber() {
3205  subscriber_ = NULL;
3206  return temp;
3207 }
3209  delete subscriber_;
3211  if (subscriber) {
3213  } else {
3215  }
3216  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.LeaveNotification.subscriber)
3217 }
3218 
3219 // -------------------------------------------------------------------
3220 
3221 // MemberRemovedNotification
3222 
3223 // optional .bgs.protocol.EntityId agent_id = 1;
3225  return (_has_bits_[0] & 0x00000001u) != 0;
3226 }
3228  _has_bits_[0] |= 0x00000001u;
3229 }
3231  _has_bits_[0] &= ~0x00000001u;
3232 }
3234  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
3236 }
3237 inline const ::bgs::protocol::EntityId& MemberRemovedNotification::agent_id() const {
3238  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberRemovedNotification.agent_id)
3240 }
3241 inline ::bgs::protocol::EntityId* MemberRemovedNotification::mutable_agent_id() {
3242  set_has_agent_id();
3243  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
3244  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberRemovedNotification.agent_id)
3245  return agent_id_;
3246 }
3247 inline ::bgs::protocol::EntityId* MemberRemovedNotification::release_agent_id() {
3250  agent_id_ = NULL;
3251  return temp;
3252 }
3254  delete agent_id_;
3255  agent_id_ = agent_id;
3256  if (agent_id) {
3257  set_has_agent_id();
3258  } else {
3260  }
3261  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberRemovedNotification.agent_id)
3262 }
3263 
3264 // required .bgs.protocol.EntityId member_id = 2;
3266  return (_has_bits_[0] & 0x00000002u) != 0;
3267 }
3269  _has_bits_[0] |= 0x00000002u;
3270 }
3272  _has_bits_[0] &= ~0x00000002u;
3273 }
3275  if (member_id_ != NULL) member_id_->::bgs::protocol::EntityId::Clear();
3277 }
3278 inline const ::bgs::protocol::EntityId& MemberRemovedNotification::member_id() const {
3279  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberRemovedNotification.member_id)
3281 }
3282 inline ::bgs::protocol::EntityId* MemberRemovedNotification::mutable_member_id() {
3284  if (member_id_ == NULL) member_id_ = new ::bgs::protocol::EntityId;
3285  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberRemovedNotification.member_id)
3286  return member_id_;
3287 }
3288 inline ::bgs::protocol::EntityId* MemberRemovedNotification::release_member_id() {
3291  member_id_ = NULL;
3292  return temp;
3293 }
3295  delete member_id_;
3297  if (member_id) {
3299  } else {
3301  }
3302  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberRemovedNotification.member_id)
3303 }
3304 
3305 // optional uint32 reason = 3;
3307  return (_has_bits_[0] & 0x00000004u) != 0;
3308 }
3310  _has_bits_[0] |= 0x00000004u;
3311 }
3313  _has_bits_[0] &= ~0x00000004u;
3314 }
3316  reason_ = 0u;
3317  clear_has_reason();
3318 }
3320  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberRemovedNotification.reason)
3321  return reason_;
3322 }
3324  set_has_reason();
3325  reason_ = value;
3326  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberRemovedNotification.reason)
3327 }
3328 
3329 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
3331  return (_has_bits_[0] & 0x00000008u) != 0;
3332 }
3334  _has_bits_[0] |= 0x00000008u;
3335 }
3337  _has_bits_[0] &= ~0x00000008u;
3338 }
3340  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
3342 }
3343 inline const ::bgs::protocol::channel::v1::ChannelId& MemberRemovedNotification::channel_id() const {
3344  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberRemovedNotification.channel_id)
3346 }
3347 inline ::bgs::protocol::channel::v1::ChannelId* MemberRemovedNotification::mutable_channel_id() {
3349  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
3350  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberRemovedNotification.channel_id)
3351  return channel_id_;
3352 }
3353 inline ::bgs::protocol::channel::v1::ChannelId* MemberRemovedNotification::release_channel_id() {
3356  channel_id_ = NULL;
3357  return temp;
3358 }
3360  delete channel_id_;
3362  if (channel_id) {
3364  } else {
3366  }
3367  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberRemovedNotification.channel_id)
3368 }
3369 
3370 // optional .bgs.protocol.account.v1.Identity subscriber = 5;
3372  return (_has_bits_[0] & 0x00000010u) != 0;
3373 }
3375  _has_bits_[0] |= 0x00000010u;
3376 }
3378  _has_bits_[0] &= ~0x00000010u;
3379 }
3381  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
3383 }
3384 inline const ::bgs::protocol::account::v1::Identity& MemberRemovedNotification::subscriber() const {
3385  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberRemovedNotification.subscriber)
3387 }
3388 inline ::bgs::protocol::account::v1::Identity* MemberRemovedNotification::mutable_subscriber() {
3390  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
3391  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberRemovedNotification.subscriber)
3392  return subscriber_;
3393 }
3394 inline ::bgs::protocol::account::v1::Identity* MemberRemovedNotification::release_subscriber() {
3397  subscriber_ = NULL;
3398  return temp;
3399 }
3401  delete subscriber_;
3403  if (subscriber) {
3405  } else {
3407  }
3408  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberRemovedNotification.subscriber)
3409 }
3410 
3411 // -------------------------------------------------------------------
3412 
3413 // SendMessageNotification
3414 
3415 // optional .bgs.protocol.EntityId agent_id = 1;
3417  return (_has_bits_[0] & 0x00000001u) != 0;
3418 }
3420  _has_bits_[0] |= 0x00000001u;
3421 }
3423  _has_bits_[0] &= ~0x00000001u;
3424 }
3426  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
3428 }
3429 inline const ::bgs::protocol::EntityId& SendMessageNotification::agent_id() const {
3430  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.agent_id)
3432 }
3433 inline ::bgs::protocol::EntityId* SendMessageNotification::mutable_agent_id() {
3434  set_has_agent_id();
3435  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
3436  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.agent_id)
3437  return agent_id_;
3438 }
3439 inline ::bgs::protocol::EntityId* SendMessageNotification::release_agent_id() {
3442  agent_id_ = NULL;
3443  return temp;
3444 }
3446  delete agent_id_;
3447  agent_id_ = agent_id;
3448  if (agent_id) {
3449  set_has_agent_id();
3450  } else {
3452  }
3453  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.agent_id)
3454 }
3455 
3456 // required .bgs.protocol.channel.v1.Message message = 2;
3458  return (_has_bits_[0] & 0x00000002u) != 0;
3459 }
3461  _has_bits_[0] |= 0x00000002u;
3462 }
3464  _has_bits_[0] &= ~0x00000002u;
3465 }
3467  if (message_ != NULL) message_->::bgs::protocol::channel::v1::Message::Clear();
3469 }
3470 inline const ::bgs::protocol::channel::v1::Message& SendMessageNotification::message() const {
3471  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.message)
3472  return message_ != NULL ? *message_ : *default_instance_->message_;
3473 }
3474 inline ::bgs::protocol::channel::v1::Message* SendMessageNotification::mutable_message() {
3475  set_has_message();
3476  if (message_ == NULL) message_ = new ::bgs::protocol::channel::v1::Message;
3477  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.message)
3478  return message_;
3479 }
3480 inline ::bgs::protocol::channel::v1::Message* SendMessageNotification::release_message() {
3483  message_ = NULL;
3484  return temp;
3485 }
3487  delete message_;
3488  message_ = message;
3489  if (message) {
3490  set_has_message();
3491  } else {
3493  }
3494  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.message)
3495 }
3496 
3497 // optional uint64 required_privileges = 3 [default = 0];
3499  return (_has_bits_[0] & 0x00000004u) != 0;
3500 }
3502  _has_bits_[0] |= 0x00000004u;
3503 }
3505  _has_bits_[0] &= ~0x00000004u;
3506 }
3510 }
3512  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.required_privileges)
3513  return required_privileges_;
3514 }
3518  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SendMessageNotification.required_privileges)
3519 }
3520 
3521 // optional string identity = 4;
3523  return (_has_bits_[0] & 0x00000008u) != 0;
3524 }
3526  _has_bits_[0] |= 0x00000008u;
3527 }
3529  _has_bits_[0] &= ~0x00000008u;
3530 }
3533  identity_->clear();
3534  }
3536 }
3537 inline const ::std::string& SendMessageNotification::identity() const {
3538  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.identity)
3539  return *identity_;
3540 }
3541 inline void SendMessageNotification::set_identity(const ::std::string& value) {
3542  set_has_identity();
3544  identity_ = new ::std::string;
3545  }
3546  identity_->assign(value);
3547  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.SendMessageNotification.identity)
3548 }
3550  set_has_identity();
3552  identity_ = new ::std::string;
3553  }
3554  identity_->assign(value);
3555  // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.SendMessageNotification.identity)
3556 }
3557 inline void SendMessageNotification::set_identity(const char* value, size_t size) {
3558  set_has_identity();
3560  identity_ = new ::std::string;
3561  }
3562  identity_->assign(reinterpret_cast<const char*>(value), size);
3563  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.SendMessageNotification.identity)
3564 }
3566  set_has_identity();
3568  identity_ = new ::std::string;
3569  }
3570  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.identity)
3571  return identity_;
3572 }
3576  return NULL;
3577  } else {
3578  ::std::string* temp = identity_;
3579  identity_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3580  return temp;
3581  }
3582 }
3583 inline void SendMessageNotification::set_allocated_identity(::std::string* identity) {
3585  delete identity_;
3586  }
3587  if (identity) {
3588  set_has_identity();
3589  identity_ = identity;
3590  } else {
3592  identity_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
3593  }
3594  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.identity)
3595 }
3596 
3597 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 5;
3599  return (_has_bits_[0] & 0x00000010u) != 0;
3600 }
3602  _has_bits_[0] |= 0x00000010u;
3603 }
3605  _has_bits_[0] &= ~0x00000010u;
3606 }
3608  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
3610 }
3611 inline const ::bgs::protocol::channel::v1::ChannelId& SendMessageNotification::channel_id() const {
3612  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.channel_id)
3614 }
3615 inline ::bgs::protocol::channel::v1::ChannelId* SendMessageNotification::mutable_channel_id() {
3617  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
3618  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.channel_id)
3619  return channel_id_;
3620 }
3621 inline ::bgs::protocol::channel::v1::ChannelId* SendMessageNotification::release_channel_id() {
3624  channel_id_ = NULL;
3625  return temp;
3626 }
3628  delete channel_id_;
3630  if (channel_id) {
3632  } else {
3634  }
3635  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.channel_id)
3636 }
3637 
3638 // optional .bgs.protocol.account.v1.Identity subscriber = 6;
3640  return (_has_bits_[0] & 0x00000020u) != 0;
3641 }
3643  _has_bits_[0] |= 0x00000020u;
3644 }
3646  _has_bits_[0] &= ~0x00000020u;
3647 }
3649  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
3651 }
3652 inline const ::bgs::protocol::account::v1::Identity& SendMessageNotification::subscriber() const {
3653  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SendMessageNotification.subscriber)
3655 }
3656 inline ::bgs::protocol::account::v1::Identity* SendMessageNotification::mutable_subscriber() {
3658  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
3659  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SendMessageNotification.subscriber)
3660  return subscriber_;
3661 }
3662 inline ::bgs::protocol::account::v1::Identity* SendMessageNotification::release_subscriber() {
3665  subscriber_ = NULL;
3666  return temp;
3667 }
3669  delete subscriber_;
3671  if (subscriber) {
3673  } else {
3675  }
3676  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SendMessageNotification.subscriber)
3677 }
3678 
3679 // -------------------------------------------------------------------
3680 
3681 // UpdateChannelStateNotification
3682 
3683 // optional .bgs.protocol.EntityId agent_id = 1;
3685  return (_has_bits_[0] & 0x00000001u) != 0;
3686 }
3688  _has_bits_[0] |= 0x00000001u;
3689 }
3691  _has_bits_[0] &= ~0x00000001u;
3692 }
3694  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
3696 }
3697 inline const ::bgs::protocol::EntityId& UpdateChannelStateNotification::agent_id() const {
3698  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateChannelStateNotification.agent_id)
3700 }
3701 inline ::bgs::protocol::EntityId* UpdateChannelStateNotification::mutable_agent_id() {
3702  set_has_agent_id();
3703  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
3704  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateChannelStateNotification.agent_id)
3705  return agent_id_;
3706 }
3707 inline ::bgs::protocol::EntityId* UpdateChannelStateNotification::release_agent_id() {
3710  agent_id_ = NULL;
3711  return temp;
3712 }
3714  delete agent_id_;
3715  agent_id_ = agent_id;
3716  if (agent_id) {
3717  set_has_agent_id();
3718  } else {
3720  }
3721  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateChannelStateNotification.agent_id)
3722 }
3723 
3724 // required .bgs.protocol.channel.v1.ChannelState state_change = 2;
3726  return (_has_bits_[0] & 0x00000002u) != 0;
3727 }
3729  _has_bits_[0] |= 0x00000002u;
3730 }
3732  _has_bits_[0] &= ~0x00000002u;
3733 }
3735  if (state_change_ != NULL) state_change_->::bgs::protocol::channel::v1::ChannelState::Clear();
3737 }
3738 inline const ::bgs::protocol::channel::v1::ChannelState& UpdateChannelStateNotification::state_change() const {
3739  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateChannelStateNotification.state_change)
3741 }
3742 inline ::bgs::protocol::channel::v1::ChannelState* UpdateChannelStateNotification::mutable_state_change() {
3744  if (state_change_ == NULL) state_change_ = new ::bgs::protocol::channel::v1::ChannelState;
3745  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateChannelStateNotification.state_change)
3746  return state_change_;
3747 }
3748 inline ::bgs::protocol::channel::v1::ChannelState* UpdateChannelStateNotification::release_state_change() {
3751  state_change_ = NULL;
3752  return temp;
3753 }
3755  delete state_change_;
3757  if (state_change) {
3759  } else {
3761  }
3762  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateChannelStateNotification.state_change)
3763 }
3764 
3765 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 3;
3767  return (_has_bits_[0] & 0x00000004u) != 0;
3768 }
3770  _has_bits_[0] |= 0x00000004u;
3771 }
3773  _has_bits_[0] &= ~0x00000004u;
3774 }
3776  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
3778 }
3779 inline const ::bgs::protocol::channel::v1::ChannelId& UpdateChannelStateNotification::channel_id() const {
3780  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateChannelStateNotification.channel_id)
3782 }
3783 inline ::bgs::protocol::channel::v1::ChannelId* UpdateChannelStateNotification::mutable_channel_id() {
3785  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
3786  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateChannelStateNotification.channel_id)
3787  return channel_id_;
3788 }
3789 inline ::bgs::protocol::channel::v1::ChannelId* UpdateChannelStateNotification::release_channel_id() {
3792  channel_id_ = NULL;
3793  return temp;
3794 }
3796  delete channel_id_;
3798  if (channel_id) {
3800  } else {
3802  }
3803  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateChannelStateNotification.channel_id)
3804 }
3805 
3806 // optional .bgs.protocol.account.v1.Identity subscriber = 4;
3808  return (_has_bits_[0] & 0x00000008u) != 0;
3809 }
3811  _has_bits_[0] |= 0x00000008u;
3812 }
3814  _has_bits_[0] &= ~0x00000008u;
3815 }
3817  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
3819 }
3820 inline const ::bgs::protocol::account::v1::Identity& UpdateChannelStateNotification::subscriber() const {
3821  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateChannelStateNotification.subscriber)
3823 }
3824 inline ::bgs::protocol::account::v1::Identity* UpdateChannelStateNotification::mutable_subscriber() {
3826  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
3827  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateChannelStateNotification.subscriber)
3828  return subscriber_;
3829 }
3830 inline ::bgs::protocol::account::v1::Identity* UpdateChannelStateNotification::release_subscriber() {
3833  subscriber_ = NULL;
3834  return temp;
3835 }
3837  delete subscriber_;
3839  if (subscriber) {
3841  } else {
3843  }
3844  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateChannelStateNotification.subscriber)
3845 }
3846 
3847 // -------------------------------------------------------------------
3848 
3849 // UpdateMemberStateNotification
3850 
3851 // optional .bgs.protocol.EntityId agent_id = 1;
3853  return (_has_bits_[0] & 0x00000001u) != 0;
3854 }
3856  _has_bits_[0] |= 0x00000001u;
3857 }
3859  _has_bits_[0] &= ~0x00000001u;
3860 }
3862  if (agent_id_ != NULL) agent_id_->::bgs::protocol::EntityId::Clear();
3864 }
3865 inline const ::bgs::protocol::EntityId& UpdateMemberStateNotification::agent_id() const {
3866  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateNotification.agent_id)
3868 }
3869 inline ::bgs::protocol::EntityId* UpdateMemberStateNotification::mutable_agent_id() {
3870  set_has_agent_id();
3871  if (agent_id_ == NULL) agent_id_ = new ::bgs::protocol::EntityId;
3872  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateMemberStateNotification.agent_id)
3873  return agent_id_;
3874 }
3875 inline ::bgs::protocol::EntityId* UpdateMemberStateNotification::release_agent_id() {
3878  agent_id_ = NULL;
3879  return temp;
3880 }
3882  delete agent_id_;
3883  agent_id_ = agent_id;
3884  if (agent_id) {
3885  set_has_agent_id();
3886  } else {
3888  }
3889  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateMemberStateNotification.agent_id)
3890 }
3891 
3892 // repeated .bgs.protocol.channel.v1.Member state_change = 2;
3894  return state_change_.size();
3895 }
3897  state_change_.Clear();
3898 }
3899 inline const ::bgs::protocol::channel::v1::Member& UpdateMemberStateNotification::state_change(int index) const {
3900  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateNotification.state_change)
3901  return state_change_.Get(index);
3902 }
3903 inline ::bgs::protocol::channel::v1::Member* UpdateMemberStateNotification::mutable_state_change(int index) {
3904  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateMemberStateNotification.state_change)
3905  return state_change_.Mutable(index);
3906 }
3907 inline ::bgs::protocol::channel::v1::Member* UpdateMemberStateNotification::add_state_change() {
3908  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.UpdateMemberStateNotification.state_change)
3909  return state_change_.Add();
3910 }
3911 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
3913  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.UpdateMemberStateNotification.state_change)
3914  return state_change_;
3915 }
3916 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
3918  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.UpdateMemberStateNotification.state_change)
3919  return &state_change_;
3920 }
3921 
3922 // repeated uint32 removed_role = 3 [packed = true];
3924  return removed_role_.size();
3925 }
3927  removed_role_.Clear();
3928 }
3930  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role)
3931  return removed_role_.Get(index);
3932 }
3934  removed_role_.Set(index, value);
3935  // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role)
3936 }
3938  removed_role_.Add(value);
3939  // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role)
3940 }
3941 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
3943  // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role)
3944  return removed_role_;
3945 }
3946 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
3948  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.UpdateMemberStateNotification.removed_role)
3949  return &removed_role_;
3950 }
3951 
3952 // optional .bgs.protocol.channel.v1.ChannelId channel_id = 4;
3954  return (_has_bits_[0] & 0x00000008u) != 0;
3955 }
3957  _has_bits_[0] |= 0x00000008u;
3958 }
3960  _has_bits_[0] &= ~0x00000008u;
3961 }
3963  if (channel_id_ != NULL) channel_id_->::bgs::protocol::channel::v1::ChannelId::Clear();
3965 }
3966 inline const ::bgs::protocol::channel::v1::ChannelId& UpdateMemberStateNotification::channel_id() const {
3967  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateNotification.channel_id)
3969 }
3970 inline ::bgs::protocol::channel::v1::ChannelId* UpdateMemberStateNotification::mutable_channel_id() {
3972  if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::channel::v1::ChannelId;
3973  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateMemberStateNotification.channel_id)
3974  return channel_id_;
3975 }
3976 inline ::bgs::protocol::channel::v1::ChannelId* UpdateMemberStateNotification::release_channel_id() {
3979  channel_id_ = NULL;
3980  return temp;
3981 }
3983  delete channel_id_;
3985  if (channel_id) {
3987  } else {
3989  }
3990  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateMemberStateNotification.channel_id)
3991 }
3992 
3993 // optional .bgs.protocol.account.v1.Identity subscriber = 5;
3995  return (_has_bits_[0] & 0x00000010u) != 0;
3996 }
3998  _has_bits_[0] |= 0x00000010u;
3999 }
4001  _has_bits_[0] &= ~0x00000010u;
4002 }
4004  if (subscriber_ != NULL) subscriber_->::bgs::protocol::account::v1::Identity::Clear();
4006 }
4007 inline const ::bgs::protocol::account::v1::Identity& UpdateMemberStateNotification::subscriber() const {
4008  // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.UpdateMemberStateNotification.subscriber)
4010 }
4011 inline ::bgs::protocol::account::v1::Identity* UpdateMemberStateNotification::mutable_subscriber() {
4013  if (subscriber_ == NULL) subscriber_ = new ::bgs::protocol::account::v1::Identity;
4014  // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.UpdateMemberStateNotification.subscriber)
4015  return subscriber_;
4016 }
4017 inline ::bgs::protocol::account::v1::Identity* UpdateMemberStateNotification::release_subscriber() {
4020  subscriber_ = NULL;
4021  return temp;
4022 }
4024  delete subscriber_;
4026  if (subscriber) {
4028  } else {
4030  }
4031  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.UpdateMemberStateNotification.subscriber)
4032 }
4033 
4034 
4035 // @@protoc_insertion_point(namespace_scope)
4036 
4037 } // namespace v1
4038 } // namespace channel
4039 } // namespace protocol
4040 } // namespace bgs
4041 
4042 #ifndef SWIG
4043 namespace google {
4044 namespace protobuf {
4045 
4046 
4047 } // namespace google
4048 } // namespace protobuf
4049 #endif // SWIG
4050 
4051 // @@protoc_insertion_point(global_scope)
4052 
4053 #endif // PROTOBUF_channel_5fservice_2eproto__INCLUDED
inline::bgs::protocol::account::v1::Identity * release_subscriber()
Definition: channel_service.pb.h:4017
bool has_state_change() const
Definition: channel_service.pb.h:2383
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: channel_service.pb.h:1140
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member > * mutable_state_change()
Definition: channel_service.pb.h:3917
void set_has_channel_id()
Definition: channel_service.pb.h:2822
inline::bgs::protocol::channel::v1::Member * mutable_self()
Definition: channel_service.pb.h:2724
inline::bgs::protocol::channel::v1::Member * mutable_member()
Definition: channel_service.pb.h:2922
::bgs::protocol::channel::v1::MemberState * member_state_
Definition: channel_service.pb.h:178
inline::bgs::protocol::EntityId * release_member_id()
Definition: channel_service.pb.h:3096
inline::bgs::protocol::channel::v1::MemberState * mutable_member_state()
Definition: channel_service.pb.h:1960
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: channel_service.pb.h:473
void set_allocated_member_id(::bgs::protocol::EntityId *member_id)
Definition: channel_service.pb.h:2106