TrinityCore
channel_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: channel_types.proto
3
4#ifndef PROTOBUF_channel_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_channel_5ftypes_2eproto__INCLUDED
6
7#include <string>
8
9#include <google/protobuf/stubs/common.h>
10
11#if GOOGLE_PROTOBUF_VERSION < 2006000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/generated_message_util.h>
23#include <google/protobuf/message.h>
24#include <google/protobuf/repeated_field.h>
25#include <google/protobuf/extension_set.h>
26#include <google/protobuf/generated_enum_reflection.h>
27#include <google/protobuf/unknown_field_set.h>
28#include "api/client/v1/channel_id.pb.h" // IWYU pragma: export
29#include "attribute_types.pb.h"
30#include "entity_types.pb.h"
31#include "account_types.pb.h"
32#include "invitation_types.pb.h"
33#include "rpc_types.pb.h"
34#include "Define.h" // for TC_PROTO_API
35// @@protoc_insertion_point(includes)
36
37namespace bgs {
38namespace protocol {
39namespace channel {
40namespace v1 {
41
42// Internal implementation detail -- do not call these.
46
47class Message;
50class ChannelInfo;
51class ChannelState;
53class MemberState;
54class Member;
55class SubscriberId;
56
62};
67
68TC_PROTO_API const ::google::protobuf::EnumDescriptor* ChannelState_PrivacyLevel_descriptor();
70 return ::google::protobuf::internal::NameOfEnum(
72}
74 const ::std::string& name, ChannelState_PrivacyLevel* value) {
75 return ::google::protobuf::internal::ParseNamedEnum<ChannelState_PrivacyLevel>(
77}
78// ===================================================================
79
80class TC_PROTO_API Message : public ::google::protobuf::Message {
81 public:
83 virtual ~Message();
84
85 Message(const Message& from);
86
87 inline Message& operator=(const Message& from) {
88 CopyFrom(from);
89 return *this;
90 }
91
92 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
93 return _unknown_fields_;
94 }
95
96 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
97 return &_unknown_fields_;
98 }
99
100 static const ::google::protobuf::Descriptor* descriptor();
101 static const Message& default_instance();
102
103 void Swap(Message* other);
104
105 // implements Message ----------------------------------------------
106
107 Message* New() const;
108 int GetCachedSize() const { return _cached_size_; }
109 private:
112 void SetCachedSize(int size) const;
113 public:
114 ::google::protobuf::Metadata GetMetadata() const;
115
116 // nested types ----------------------------------------------------
117
118 // accessors -------------------------------------------------------
119
120 // repeated .bgs.protocol.Attribute attribute = 1;
121 inline int attribute_size() const;
122 inline void clear_attribute();
123 static const int kAttributeFieldNumber = 1;
124 inline const ::bgs::protocol::Attribute& attribute(int index) const;
125 inline ::bgs::protocol::Attribute* mutable_attribute(int index);
126 inline ::bgs::protocol::Attribute* add_attribute();
127 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
128 attribute() const;
129 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
130 mutable_attribute();
131
132 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(Message)
133 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.Message)
134 private:
135
136 ::google::protobuf::internal::ExtensionSet _extensions_;
137
138 ::google::protobuf::UnknownFieldSet _unknown_fields_;
139
141 mutable int _cached_size_;
142 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_;
146
149};
150// -------------------------------------------------------------------
151
152class TC_PROTO_API ListChannelsOptions : public ::google::protobuf::Message {
153 public:
156
158
160 CopyFrom(from);
161 return *this;
162 }
163
164 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
165 return _unknown_fields_;
166 }
167
168 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
169 return &_unknown_fields_;
170 }
171
172 static const ::google::protobuf::Descriptor* descriptor();
174
176
177 // implements Message ----------------------------------------------
178
180 int GetCachedSize() const { return _cached_size_; }
181 private:
184 void SetCachedSize(int size) const;
185 public:
186 ::google::protobuf::Metadata GetMetadata() const;
187
188 // nested types ----------------------------------------------------
189
190 // accessors -------------------------------------------------------
191
192 // optional uint32 start_index = 1 [default = 0];
193 inline bool has_start_index() const;
194 inline void clear_start_index();
195 static const int kStartIndexFieldNumber = 1;
196 inline ::google::protobuf::uint32 start_index() const;
197 inline void set_start_index(::google::protobuf::uint32 value);
198
199 // optional uint32 max_results = 2 [default = 16];
200 inline bool has_max_results() const;
201 inline void clear_max_results();
202 static const int kMaxResultsFieldNumber = 2;
203 inline ::google::protobuf::uint32 max_results() const;
204 inline void set_max_results(::google::protobuf::uint32 value);
205
206 // optional string name = 3;
207 inline bool has_name() const;
208 inline void clear_name();
209 static const int kNameFieldNumber = 3;
210 inline const ::std::string& name() const;
211 inline void set_name(const ::std::string& value);
212 inline void set_name(const char* value);
213 inline void set_name(const char* value, size_t size);
214 inline ::std::string* mutable_name();
215 inline ::std::string* release_name();
216 inline void set_allocated_name(::std::string* name);
217
218 // optional fixed32 program = 4;
219 inline bool has_program() const;
220 inline void clear_program();
221 static const int kProgramFieldNumber = 4;
222 inline ::google::protobuf::uint32 program() const;
223 inline void set_program(::google::protobuf::uint32 value);
224
225 // optional fixed32 locale = 5;
226 inline bool has_locale() const;
227 inline void clear_locale();
228 static const int kLocaleFieldNumber = 5;
230 inline void set_locale(::google::protobuf::uint32 value);
231
232 // optional uint32 capacity_full = 6;
233 inline bool has_capacity_full() const;
234 inline void clear_capacity_full();
235 static const int kCapacityFullFieldNumber = 6;
236 inline ::google::protobuf::uint32 capacity_full() const;
237 inline void set_capacity_full(::google::protobuf::uint32 value);
238
239 // required .bgs.protocol.AttributeFilter attribute_filter = 7;
240 inline bool has_attribute_filter() const;
241 inline void clear_attribute_filter();
242 static const int kAttributeFilterFieldNumber = 7;
243 inline const ::bgs::protocol::AttributeFilter& attribute_filter() const;
244 inline ::bgs::protocol::AttributeFilter* mutable_attribute_filter();
245 inline ::bgs::protocol::AttributeFilter* release_attribute_filter();
246 inline void set_allocated_attribute_filter(::bgs::protocol::AttributeFilter* attribute_filter);
247
248 // optional string channel_type = 8;
249 inline bool has_channel_type() const;
250 inline void clear_channel_type();
251 static const int kChannelTypeFieldNumber = 8;
252 inline const ::std::string& channel_type() const;
253 inline void set_channel_type(const ::std::string& value);
254 inline void set_channel_type(const char* value);
255 inline void set_channel_type(const char* value, size_t size);
256 inline ::std::string* mutable_channel_type();
257 inline ::std::string* release_channel_type();
258 inline void set_allocated_channel_type(::std::string* channel_type);
259
260 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ListChannelsOptions)
261 private:
262 inline void set_has_start_index();
263 inline void clear_has_start_index();
264 inline void set_has_max_results();
265 inline void clear_has_max_results();
266 inline void set_has_name();
267 inline void clear_has_name();
268 inline void set_has_program();
269 inline void clear_has_program();
270 inline void set_has_locale();
271 inline void clear_has_locale();
272 inline void set_has_capacity_full();
273 inline void clear_has_capacity_full();
274 inline void set_has_attribute_filter();
275 inline void clear_has_attribute_filter();
276 inline void set_has_channel_type();
277 inline void clear_has_channel_type();
278
279 ::google::protobuf::UnknownFieldSet _unknown_fields_;
280
282 mutable int _cached_size_;
285 ::std::string* name_;
289 ::std::string* channel_type_;
294
297};
298// -------------------------------------------------------------------
299
300class TC_PROTO_API ChannelDescription : public ::google::protobuf::Message {
301 public:
304
306
308 CopyFrom(from);
309 return *this;
310 }
311
312 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
313 return _unknown_fields_;
314 }
315
316 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
317 return &_unknown_fields_;
318 }
319
320 static const ::google::protobuf::Descriptor* descriptor();
322
324
325 // implements Message ----------------------------------------------
326
328 int GetCachedSize() const { return _cached_size_; }
329 private:
332 void SetCachedSize(int size) const;
333 public:
334 ::google::protobuf::Metadata GetMetadata() const;
335
336 // nested types ----------------------------------------------------
337
338 // accessors -------------------------------------------------------
339
340 // required .bgs.protocol.EntityId channel_id = 1;
341 inline bool has_channel_id() const;
342 inline void clear_channel_id();
343 static const int kChannelIdFieldNumber = 1;
344 inline const ::bgs::protocol::EntityId& channel_id() const;
345 inline ::bgs::protocol::EntityId* mutable_channel_id();
346 inline ::bgs::protocol::EntityId* release_channel_id();
347 inline void set_allocated_channel_id(::bgs::protocol::EntityId* channel_id);
348
349 // optional uint32 current_members = 2;
350 inline bool has_current_members() const;
351 inline void clear_current_members();
352 static const int kCurrentMembersFieldNumber = 2;
353 inline ::google::protobuf::uint32 current_members() const;
354 inline void set_current_members(::google::protobuf::uint32 value);
355
356 // optional .bgs.protocol.channel.v1.ChannelState state = 3;
357 inline bool has_state() const;
358 inline void clear_state();
359 static const int kStateFieldNumber = 3;
360 inline const ::bgs::protocol::channel::v1::ChannelState& state() const;
361 inline ::bgs::protocol::channel::v1::ChannelState* mutable_state();
362 inline ::bgs::protocol::channel::v1::ChannelState* release_state();
363 inline void set_allocated_state(::bgs::protocol::channel::v1::ChannelState* state);
364
365 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelDescription)
366 private:
367 inline void set_has_channel_id();
368 inline void clear_has_channel_id();
369 inline void set_has_current_members();
370 inline void clear_has_current_members();
371 inline void set_has_state();
372 inline void clear_has_state();
373
374 ::google::protobuf::UnknownFieldSet _unknown_fields_;
375
377 mutable int _cached_size_;
384
387};
388// -------------------------------------------------------------------
389
390class TC_PROTO_API ChannelInfo : public ::google::protobuf::Message {
391 public:
393 virtual ~ChannelInfo();
394
396
397 inline ChannelInfo& operator=(const ChannelInfo& from) {
398 CopyFrom(from);
399 return *this;
400 }
401
402 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
403 return _unknown_fields_;
404 }
405
406 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
407 return &_unknown_fields_;
408 }
409
410 static const ::google::protobuf::Descriptor* descriptor();
412
413 void Swap(ChannelInfo* other);
414
415 // implements Message ----------------------------------------------
416
417 ChannelInfo* New() const;
418 int GetCachedSize() const { return _cached_size_; }
419 private:
422 void SetCachedSize(int size) const;
423 public:
424 ::google::protobuf::Metadata GetMetadata() const;
425
426 // nested types ----------------------------------------------------
427
428 // accessors -------------------------------------------------------
429
430 // required .bgs.protocol.channel.v1.ChannelDescription description = 1;
431 inline bool has_description() const;
432 inline void clear_description();
433 static const int kDescriptionFieldNumber = 1;
434 inline const ::bgs::protocol::channel::v1::ChannelDescription& description() const;
435 inline ::bgs::protocol::channel::v1::ChannelDescription* mutable_description();
436 inline ::bgs::protocol::channel::v1::ChannelDescription* release_description();
437 inline void set_allocated_description(::bgs::protocol::channel::v1::ChannelDescription* description);
438
439 // repeated .bgs.protocol.channel.v1.Member member = 2;
440 inline int member_size() const;
441 inline void clear_member();
442 static const int kMemberFieldNumber = 2;
443 inline const ::bgs::protocol::channel::v1::Member& member(int index) const;
444 inline ::bgs::protocol::channel::v1::Member* mutable_member(int index);
445 inline ::bgs::protocol::channel::v1::Member* add_member();
446 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
447 member() const;
448 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
449 mutable_member();
450
451 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelInfo)
452 private:
453 inline void set_has_description();
454 inline void clear_has_description();
455
456 ::google::protobuf::UnknownFieldSet _unknown_fields_;
457
459 mutable int _cached_size_;
461 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member > member_;
465
468};
469// -------------------------------------------------------------------
470
471class TC_PROTO_API ChannelState : public ::google::protobuf::Message {
472 public:
474 virtual ~ChannelState();
475
477
478 inline ChannelState& operator=(const ChannelState& from) {
479 CopyFrom(from);
480 return *this;
481 }
482
483 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
484 return _unknown_fields_;
485 }
486
487 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
488 return &_unknown_fields_;
489 }
490
491 static const ::google::protobuf::Descriptor* descriptor();
493
494 void Swap(ChannelState* other);
495
496 // implements Message ----------------------------------------------
497
499 int GetCachedSize() const { return _cached_size_; }
500 private:
503 void SetCachedSize(int size) const;
504 public:
505 ::google::protobuf::Metadata GetMetadata() const;
506
507 // nested types ----------------------------------------------------
508
511 static const PrivacyLevel PRIVACY_LEVEL_OPEN_INVITATION_AND_FRIEND = ChannelState_PrivacyLevel_PRIVACY_LEVEL_OPEN_INVITATION_AND_FRIEND;
514 static inline bool PrivacyLevel_IsValid(int value) {
516 }
521 static const int PrivacyLevel_ARRAYSIZE =
523 static inline const ::google::protobuf::EnumDescriptor*
526 }
527 static inline const ::std::string& PrivacyLevel_Name(PrivacyLevel value) {
528 return ChannelState_PrivacyLevel_Name(value);
529 }
530 static inline bool PrivacyLevel_Parse(const ::std::string& name,
531 PrivacyLevel* value) {
532 return ChannelState_PrivacyLevel_Parse(name, value);
533 }
534
535 // accessors -------------------------------------------------------
536
537 // optional uint32 max_members = 1;
538 inline bool has_max_members() const;
539 inline void clear_max_members();
540 static const int kMaxMembersFieldNumber = 1;
541 inline ::google::protobuf::uint32 max_members() const;
542 inline void set_max_members(::google::protobuf::uint32 value);
543
544 // optional uint32 min_members = 2;
545 inline bool has_min_members() const;
546 inline void clear_min_members();
547 static const int kMinMembersFieldNumber = 2;
548 inline ::google::protobuf::uint32 min_members() const;
549 inline void set_min_members(::google::protobuf::uint32 value);
550
551 // repeated .bgs.protocol.Attribute attribute = 3;
552 inline int attribute_size() const;
553 inline void clear_attribute();
554 static const int kAttributeFieldNumber = 3;
555 inline const ::bgs::protocol::Attribute& attribute(int index) const;
556 inline ::bgs::protocol::Attribute* mutable_attribute(int index);
557 inline ::bgs::protocol::Attribute* add_attribute();
558 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
559 attribute() const;
560 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
561 mutable_attribute();
562
563 // repeated .bgs.protocol.Invitation invitation = 4;
564 inline int invitation_size() const;
565 inline void clear_invitation();
566 static const int kInvitationFieldNumber = 4;
567 inline const ::bgs::protocol::Invitation& invitation(int index) const;
568 inline ::bgs::protocol::Invitation* mutable_invitation(int index);
569 inline ::bgs::protocol::Invitation* add_invitation();
570 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >&
571 invitation() const;
572 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >*
573 mutable_invitation();
574
575 // optional uint32 reason = 6;
576 inline bool has_reason() const;
577 inline void clear_reason();
578 static const int kReasonFieldNumber = 6;
580 inline void set_reason(::google::protobuf::uint32 value);
581
582 // optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN];
583 inline bool has_privacy_level() const;
584 inline void clear_privacy_level();
585 static const int kPrivacyLevelFieldNumber = 7;
587 inline void set_privacy_level(::bgs::protocol::channel::v1::ChannelState_PrivacyLevel value);
588
589 // optional string name = 8;
590 inline bool has_name() const;
591 inline void clear_name();
592 static const int kNameFieldNumber = 8;
593 inline const ::std::string& name() const;
594 inline void set_name(const ::std::string& value);
595 inline void set_name(const char* value);
596 inline void set_name(const char* value, size_t size);
597 inline ::std::string* mutable_name();
598 inline ::std::string* release_name();
599 inline void set_allocated_name(::std::string* name);
600
601 // optional string channel_type = 10 [default = "default"];
602 inline bool has_channel_type() const;
603 inline void clear_channel_type();
604 static const int kChannelTypeFieldNumber = 10;
605 inline const ::std::string& channel_type() const;
606 inline void set_channel_type(const ::std::string& value);
607 inline void set_channel_type(const char* value);
608 inline void set_channel_type(const char* value, size_t size);
609 inline ::std::string* mutable_channel_type();
610 inline ::std::string* release_channel_type();
611 inline void set_allocated_channel_type(::std::string* channel_type);
612
613 // optional fixed32 program = 11;
614 inline bool has_program() const;
615 inline void clear_program();
616 static const int kProgramFieldNumber = 11;
617 inline ::google::protobuf::uint32 program() const;
618 inline void set_program(::google::protobuf::uint32 value);
619
620 // optional bool subscribe_to_presence = 13 [default = true];
621 inline bool has_subscribe_to_presence() const;
622 inline void clear_subscribe_to_presence();
623 static const int kSubscribeToPresenceFieldNumber = 13;
624 inline bool subscribe_to_presence() const;
625 inline void set_subscribe_to_presence(bool value);
626
627 GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(ChannelState)
628 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.ChannelState)
629 private:
630 inline void set_has_max_members();
631 inline void clear_has_max_members();
632 inline void set_has_min_members();
633 inline void clear_has_min_members();
634 inline void set_has_reason();
635 inline void clear_has_reason();
636 inline void set_has_privacy_level();
637 inline void clear_has_privacy_level();
638 inline void set_has_name();
639 inline void clear_has_name();
640 inline void set_has_channel_type();
641 inline void clear_has_channel_type();
642 inline void set_has_program();
643 inline void clear_has_program();
644 inline void set_has_subscribe_to_presence();
645 inline void clear_has_subscribe_to_presence();
646
647 ::google::protobuf::internal::ExtensionSet _extensions_;
648
649 ::google::protobuf::UnknownFieldSet _unknown_fields_;
650
652 mutable int _cached_size_;
655 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_;
656 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > invitation_;
659 ::std::string* name_;
660 static ::std::string* _default_channel_type_;
661 ::std::string* channel_type_;
667
670};
671// -------------------------------------------------------------------
672
673class TC_PROTO_API MemberAccountInfo : public ::google::protobuf::Message {
674 public:
677
679
681 CopyFrom(from);
682 return *this;
683 }
684
685 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
686 return _unknown_fields_;
687 }
688
689 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
690 return &_unknown_fields_;
691 }
692
693 static const ::google::protobuf::Descriptor* descriptor();
695
697
698 // implements Message ----------------------------------------------
699
701 int GetCachedSize() const { return _cached_size_; }
702 private:
705 void SetCachedSize(int size) const;
706 public:
707 ::google::protobuf::Metadata GetMetadata() const;
708
709 // nested types ----------------------------------------------------
710
711 // accessors -------------------------------------------------------
712
713 // optional string battle_tag = 3;
714 inline bool has_battle_tag() const;
715 inline void clear_battle_tag();
716 static const int kBattleTagFieldNumber = 3;
717 inline const ::std::string& battle_tag() const;
718 inline void set_battle_tag(const ::std::string& value);
719 inline void set_battle_tag(const char* value);
720 inline void set_battle_tag(const char* value, size_t size);
721 inline ::std::string* mutable_battle_tag();
722 inline ::std::string* release_battle_tag();
723 inline void set_allocated_battle_tag(::std::string* battle_tag);
724
725 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.MemberAccountInfo)
726 private:
727 inline void set_has_battle_tag();
728 inline void clear_has_battle_tag();
729
730 ::google::protobuf::UnknownFieldSet _unknown_fields_;
731
733 mutable int _cached_size_;
734 ::std::string* battle_tag_;
738
741};
742// -------------------------------------------------------------------
743
744class TC_PROTO_API MemberState : public ::google::protobuf::Message {
745 public:
747 virtual ~MemberState();
748
750
751 inline MemberState& operator=(const MemberState& from) {
752 CopyFrom(from);
753 return *this;
754 }
755
756 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
757 return _unknown_fields_;
758 }
759
760 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
761 return &_unknown_fields_;
762 }
763
764 static const ::google::protobuf::Descriptor* descriptor();
766
767 void Swap(MemberState* other);
768
769 // implements Message ----------------------------------------------
770
771 MemberState* New() const;
772 int GetCachedSize() const { return _cached_size_; }
773 private:
776 void SetCachedSize(int size) const;
777 public:
778 ::google::protobuf::Metadata GetMetadata() const;
779
780 // nested types ----------------------------------------------------
781
782 // accessors -------------------------------------------------------
783
784 // repeated .bgs.protocol.Attribute attribute = 1;
785 inline int attribute_size() const;
786 inline void clear_attribute();
787 static const int kAttributeFieldNumber = 1;
788 inline const ::bgs::protocol::Attribute& attribute(int index) const;
789 inline ::bgs::protocol::Attribute* mutable_attribute(int index);
790 inline ::bgs::protocol::Attribute* add_attribute();
791 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
792 attribute() const;
793 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
794 mutable_attribute();
795
796 // repeated uint32 role = 2 [packed = true];
797 inline int role_size() const;
798 inline void clear_role();
799 static const int kRoleFieldNumber = 2;
800 inline ::google::protobuf::uint32 role(int index) const;
801 inline void set_role(int index, ::google::protobuf::uint32 value);
802 inline void add_role(::google::protobuf::uint32 value);
803 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
804 role() const;
805 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
806 mutable_role();
807
808 // optional uint64 privileges = 3 [default = 0];
809 inline bool has_privileges() const;
810 inline void clear_privileges();
811 static const int kPrivilegesFieldNumber = 3;
812 inline ::google::protobuf::uint64 privileges() const;
813 inline void set_privileges(::google::protobuf::uint64 value);
814
815 // optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4;
816 inline bool has_info() const;
817 inline void clear_info();
818 static const int kInfoFieldNumber = 4;
819 inline const ::bgs::protocol::channel::v1::MemberAccountInfo& info() const;
820 inline ::bgs::protocol::channel::v1::MemberAccountInfo* mutable_info();
821 inline ::bgs::protocol::channel::v1::MemberAccountInfo* release_info();
822 inline void set_allocated_info(::bgs::protocol::channel::v1::MemberAccountInfo* info);
823
824 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.MemberState)
825 private:
826 inline void set_has_privileges();
827 inline void clear_has_privileges();
828 inline void set_has_info();
829 inline void clear_has_info();
830
831 ::google::protobuf::UnknownFieldSet _unknown_fields_;
832
834 mutable int _cached_size_;
835 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_;
836 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_;
842
845};
846// -------------------------------------------------------------------
847
848class TC_PROTO_API Member : public ::google::protobuf::Message {
849 public:
851 virtual ~Member();
852
853 Member(const Member& from);
854
855 inline Member& operator=(const Member& from) {
856 CopyFrom(from);
857 return *this;
858 }
859
860 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
861 return _unknown_fields_;
862 }
863
864 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
865 return &_unknown_fields_;
866 }
867
868 static const ::google::protobuf::Descriptor* descriptor();
869 static const Member& default_instance();
870
871 void Swap(Member* other);
872
873 // implements Message ----------------------------------------------
874
875 Member* New() const;
876 int GetCachedSize() const { return _cached_size_; }
877 private:
880 void SetCachedSize(int size) const;
881 public:
882 ::google::protobuf::Metadata GetMetadata() const;
883
884 // nested types ----------------------------------------------------
885
886 // accessors -------------------------------------------------------
887
888 // required .bgs.protocol.Identity identity = 1;
889 inline bool has_identity() const;
890 inline void clear_identity();
891 static const int kIdentityFieldNumber = 1;
892 inline const ::bgs::protocol::Identity& identity() const;
893 inline ::bgs::protocol::Identity* mutable_identity();
894 inline ::bgs::protocol::Identity* release_identity();
895 inline void set_allocated_identity(::bgs::protocol::Identity* identity);
896
897 // required .bgs.protocol.channel.v1.MemberState state = 2;
898 inline bool has_state() const;
899 inline void clear_state();
900 static const int kStateFieldNumber = 2;
901 inline const ::bgs::protocol::channel::v1::MemberState& state() const;
902 inline ::bgs::protocol::channel::v1::MemberState* mutable_state();
903 inline ::bgs::protocol::channel::v1::MemberState* release_state();
904 inline void set_allocated_state(::bgs::protocol::channel::v1::MemberState* state);
905
906 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.Member)
907 private:
908 inline void set_has_identity();
909 inline void clear_has_identity();
910 inline void set_has_state();
911 inline void clear_has_state();
912
913 ::google::protobuf::UnknownFieldSet _unknown_fields_;
914
916 mutable int _cached_size_;
922
925};
926// -------------------------------------------------------------------
927
928class TC_PROTO_API SubscriberId : public ::google::protobuf::Message {
929 public:
931 virtual ~SubscriberId();
932
934
935 inline SubscriberId& operator=(const SubscriberId& from) {
936 CopyFrom(from);
937 return *this;
938 }
939
940 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
941 return _unknown_fields_;
942 }
943
944 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
945 return &_unknown_fields_;
946 }
947
948 static const ::google::protobuf::Descriptor* descriptor();
950
951 void Swap(SubscriberId* other);
952
953 // implements Message ----------------------------------------------
954
956 int GetCachedSize() const { return _cached_size_; }
957 private:
960 void SetCachedSize(int size) const;
961 public:
962 ::google::protobuf::Metadata GetMetadata() const;
963
964 // nested types ----------------------------------------------------
965
966 // accessors -------------------------------------------------------
967
968 // optional .bgs.protocol.account.v1.AccountId account = 1 [deprecated = true];
969 inline bool has_account() const PROTOBUF_DEPRECATED;
970 inline void clear_account() PROTOBUF_DEPRECATED;
971 static const int kAccountFieldNumber = 1;
972 inline const ::bgs::protocol::account::v1::AccountId& account() const PROTOBUF_DEPRECATED;
973 inline ::bgs::protocol::account::v1::AccountId* mutable_account() PROTOBUF_DEPRECATED;
974 inline ::bgs::protocol::account::v1::AccountId* release_account() PROTOBUF_DEPRECATED;
975 inline void set_allocated_account(::bgs::protocol::account::v1::AccountId* account) PROTOBUF_DEPRECATED;
976
977 // optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2;
978 inline bool has_game_account() const;
979 inline void clear_game_account();
980 static const int kGameAccountFieldNumber = 2;
981 inline const ::bgs::protocol::account::v1::GameAccountHandle& game_account() const;
982 inline ::bgs::protocol::account::v1::GameAccountHandle* mutable_game_account();
983 inline ::bgs::protocol::account::v1::GameAccountHandle* release_game_account();
984 inline void set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle* game_account);
985
986 // optional .bgs.protocol.ProcessId process = 3;
987 inline bool has_process() const;
988 inline void clear_process();
989 static const int kProcessFieldNumber = 3;
990 inline const ::bgs::protocol::ProcessId& process() const;
991 inline ::bgs::protocol::ProcessId* mutable_process();
992 inline ::bgs::protocol::ProcessId* release_process();
993 inline void set_allocated_process(::bgs::protocol::ProcessId* process);
994
995 // @@protoc_insertion_point(class_scope:bgs.protocol.channel.v1.SubscriberId)
996 private:
997 inline void set_has_account();
998 inline void clear_has_account();
999 inline void set_has_game_account();
1000 inline void clear_has_game_account();
1001 inline void set_has_process();
1002 inline void clear_has_process();
1003
1004 ::google::protobuf::UnknownFieldSet _unknown_fields_;
1005
1006 ::google::protobuf::uint32 _has_bits_[1];
1007 mutable int _cached_size_;
1008 ::bgs::protocol::account::v1::AccountId* account_;
1009 ::bgs::protocol::account::v1::GameAccountHandle* game_account_;
1010 ::bgs::protocol::ProcessId* process_;
1014
1015 void InitAsDefaultInstance();
1016 static SubscriberId* default_instance_;
1017};
1018// ===================================================================
1019
1020// ===================================================================
1021
1022// ===================================================================
1023
1024// Message
1025
1026// repeated .bgs.protocol.Attribute attribute = 1;
1027inline int Message::attribute_size() const {
1028 return attribute_.size();
1029}
1031 attribute_.Clear();
1032}
1033inline const ::bgs::protocol::Attribute& Message::attribute(int index) const {
1034 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.Message.attribute)
1035 return attribute_.Get(index);
1036}
1037inline ::bgs::protocol::Attribute* Message::mutable_attribute(int index) {
1038 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.Message.attribute)
1039 return attribute_.Mutable(index);
1040}
1041inline ::bgs::protocol::Attribute* Message::add_attribute() {
1042 // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.Message.attribute)
1043 return attribute_.Add();
1044}
1045inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
1047 // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.Message.attribute)
1048 return attribute_;
1049}
1050inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
1052 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.Message.attribute)
1053 return &attribute_;
1054}
1055
1056// -------------------------------------------------------------------
1057
1058// ListChannelsOptions
1059
1060// optional uint32 start_index = 1 [default = 0];
1062 return (_has_bits_[0] & 0x00000001u) != 0;
1063}
1065 _has_bits_[0] |= 0x00000001u;
1066}
1068 _has_bits_[0] &= ~0x00000001u;
1069}
1071 start_index_ = 0u;
1072 clear_has_start_index();
1073}
1075 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.start_index)
1076 return start_index_;
1077}
1079 set_has_start_index();
1080 start_index_ = value;
1081 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.start_index)
1082}
1083
1084// optional uint32 max_results = 2 [default = 16];
1086 return (_has_bits_[0] & 0x00000002u) != 0;
1087}
1089 _has_bits_[0] |= 0x00000002u;
1090}
1092 _has_bits_[0] &= ~0x00000002u;
1093}
1095 max_results_ = 16u;
1096 clear_has_max_results();
1097}
1099 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.max_results)
1100 return max_results_;
1101}
1103 set_has_max_results();
1104 max_results_ = value;
1105 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.max_results)
1106}
1107
1108// optional string name = 3;
1110 return (_has_bits_[0] & 0x00000004u) != 0;
1111}
1113 _has_bits_[0] |= 0x00000004u;
1114}
1116 _has_bits_[0] &= ~0x00000004u;
1117}
1119 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1120 name_->clear();
1121 }
1122 clear_has_name();
1123}
1124inline const ::std::string& ListChannelsOptions::name() const {
1125 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.name)
1126 return *name_;
1127}
1128inline void ListChannelsOptions::set_name(const ::std::string& value) {
1129 set_has_name();
1130 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1131 name_ = new ::std::string;
1132 }
1133 name_->assign(value);
1134 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.name)
1135}
1136inline void ListChannelsOptions::set_name(const char* value) {
1137 set_has_name();
1138 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1139 name_ = new ::std::string;
1140 }
1141 name_->assign(value);
1142 // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.ListChannelsOptions.name)
1143}
1144inline void ListChannelsOptions::set_name(const char* value, size_t size) {
1145 set_has_name();
1146 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1147 name_ = new ::std::string;
1148 }
1149 name_->assign(reinterpret_cast<const char*>(value), size);
1150 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.ListChannelsOptions.name)
1151}
1152inline ::std::string* ListChannelsOptions::mutable_name() {
1153 set_has_name();
1154 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1155 name_ = new ::std::string;
1156 }
1157 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ListChannelsOptions.name)
1158 return name_;
1159}
1160inline ::std::string* ListChannelsOptions::release_name() {
1161 clear_has_name();
1162 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1163 return NULL;
1164 } else {
1165 ::std::string* temp = name_;
1166 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1167 return temp;
1168 }
1169}
1170inline void ListChannelsOptions::set_allocated_name(::std::string* name) {
1171 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1172 delete name_;
1173 }
1174 if (name) {
1175 set_has_name();
1176 name_ = name;
1177 } else {
1178 clear_has_name();
1179 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1180 }
1181 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ListChannelsOptions.name)
1182}
1183
1184// optional fixed32 program = 4;
1186 return (_has_bits_[0] & 0x00000008u) != 0;
1187}
1189 _has_bits_[0] |= 0x00000008u;
1190}
1192 _has_bits_[0] &= ~0x00000008u;
1193}
1195 program_ = 0u;
1196 clear_has_program();
1197}
1199 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.program)
1200 return program_;
1201}
1203 set_has_program();
1204 program_ = value;
1205 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.program)
1206}
1207
1208// optional fixed32 locale = 5;
1210 return (_has_bits_[0] & 0x00000010u) != 0;
1211}
1213 _has_bits_[0] |= 0x00000010u;
1214}
1216 _has_bits_[0] &= ~0x00000010u;
1217}
1219 locale_ = 0u;
1220 clear_has_locale();
1221}
1223 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.locale)
1224 return locale_;
1225}
1227 set_has_locale();
1228 locale_ = value;
1229 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.locale)
1230}
1231
1232// optional uint32 capacity_full = 6;
1234 return (_has_bits_[0] & 0x00000020u) != 0;
1235}
1237 _has_bits_[0] |= 0x00000020u;
1238}
1240 _has_bits_[0] &= ~0x00000020u;
1241}
1243 capacity_full_ = 0u;
1244 clear_has_capacity_full();
1245}
1247 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.capacity_full)
1248 return capacity_full_;
1249}
1251 set_has_capacity_full();
1252 capacity_full_ = value;
1253 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.capacity_full)
1254}
1255
1256// required .bgs.protocol.AttributeFilter attribute_filter = 7;
1258 return (_has_bits_[0] & 0x00000040u) != 0;
1259}
1261 _has_bits_[0] |= 0x00000040u;
1262}
1264 _has_bits_[0] &= ~0x00000040u;
1265}
1267 if (attribute_filter_ != NULL) attribute_filter_->::bgs::protocol::AttributeFilter::Clear();
1268 clear_has_attribute_filter();
1269}
1270inline const ::bgs::protocol::AttributeFilter& ListChannelsOptions::attribute_filter() const {
1271 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.attribute_filter)
1272 return attribute_filter_ != NULL ? *attribute_filter_ : *default_instance_->attribute_filter_;
1273}
1274inline ::bgs::protocol::AttributeFilter* ListChannelsOptions::mutable_attribute_filter() {
1275 set_has_attribute_filter();
1276 if (attribute_filter_ == NULL) attribute_filter_ = new ::bgs::protocol::AttributeFilter;
1277 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ListChannelsOptions.attribute_filter)
1278 return attribute_filter_;
1279}
1280inline ::bgs::protocol::AttributeFilter* ListChannelsOptions::release_attribute_filter() {
1281 clear_has_attribute_filter();
1282 ::bgs::protocol::AttributeFilter* temp = attribute_filter_;
1283 attribute_filter_ = NULL;
1284 return temp;
1285}
1287 delete attribute_filter_;
1288 attribute_filter_ = attribute_filter;
1289 if (attribute_filter) {
1290 set_has_attribute_filter();
1291 } else {
1292 clear_has_attribute_filter();
1293 }
1294 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ListChannelsOptions.attribute_filter)
1295}
1296
1297// optional string channel_type = 8;
1299 return (_has_bits_[0] & 0x00000080u) != 0;
1300}
1302 _has_bits_[0] |= 0x00000080u;
1303}
1305 _has_bits_[0] &= ~0x00000080u;
1306}
1308 if (channel_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1309 channel_type_->clear();
1310 }
1311 clear_has_channel_type();
1312}
1313inline const ::std::string& ListChannelsOptions::channel_type() const {
1314 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ListChannelsOptions.channel_type)
1315 return *channel_type_;
1316}
1317inline void ListChannelsOptions::set_channel_type(const ::std::string& value) {
1318 set_has_channel_type();
1319 if (channel_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1320 channel_type_ = new ::std::string;
1321 }
1322 channel_type_->assign(value);
1323 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ListChannelsOptions.channel_type)
1324}
1325inline void ListChannelsOptions::set_channel_type(const char* value) {
1326 set_has_channel_type();
1327 if (channel_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1328 channel_type_ = new ::std::string;
1329 }
1330 channel_type_->assign(value);
1331 // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.ListChannelsOptions.channel_type)
1332}
1333inline void ListChannelsOptions::set_channel_type(const char* value, size_t size) {
1334 set_has_channel_type();
1335 if (channel_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1336 channel_type_ = new ::std::string;
1337 }
1338 channel_type_->assign(reinterpret_cast<const char*>(value), size);
1339 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.ListChannelsOptions.channel_type)
1340}
1342 set_has_channel_type();
1343 if (channel_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1344 channel_type_ = new ::std::string;
1345 }
1346 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ListChannelsOptions.channel_type)
1347 return channel_type_;
1348}
1350 clear_has_channel_type();
1351 if (channel_type_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1352 return NULL;
1353 } else {
1354 ::std::string* temp = channel_type_;
1355 channel_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1356 return temp;
1357 }
1358}
1359inline void ListChannelsOptions::set_allocated_channel_type(::std::string* channel_type) {
1360 if (channel_type_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1361 delete channel_type_;
1362 }
1363 if (channel_type) {
1364 set_has_channel_type();
1365 channel_type_ = channel_type;
1366 } else {
1367 clear_has_channel_type();
1368 channel_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1369 }
1370 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ListChannelsOptions.channel_type)
1371}
1372
1373// -------------------------------------------------------------------
1374
1375// ChannelDescription
1376
1377// required .bgs.protocol.EntityId channel_id = 1;
1379 return (_has_bits_[0] & 0x00000001u) != 0;
1380}
1382 _has_bits_[0] |= 0x00000001u;
1383}
1385 _has_bits_[0] &= ~0x00000001u;
1386}
1388 if (channel_id_ != NULL) channel_id_->::bgs::protocol::EntityId::Clear();
1389 clear_has_channel_id();
1390}
1391inline const ::bgs::protocol::EntityId& ChannelDescription::channel_id() const {
1392 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelDescription.channel_id)
1393 return channel_id_ != NULL ? *channel_id_ : *default_instance_->channel_id_;
1394}
1395inline ::bgs::protocol::EntityId* ChannelDescription::mutable_channel_id() {
1396 set_has_channel_id();
1397 if (channel_id_ == NULL) channel_id_ = new ::bgs::protocol::EntityId;
1398 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelDescription.channel_id)
1399 return channel_id_;
1400}
1401inline ::bgs::protocol::EntityId* ChannelDescription::release_channel_id() {
1402 clear_has_channel_id();
1403 ::bgs::protocol::EntityId* temp = channel_id_;
1404 channel_id_ = NULL;
1405 return temp;
1406}
1408 delete channel_id_;
1409 channel_id_ = channel_id;
1410 if (channel_id) {
1411 set_has_channel_id();
1412 } else {
1413 clear_has_channel_id();
1414 }
1415 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelDescription.channel_id)
1416}
1417
1418// optional uint32 current_members = 2;
1420 return (_has_bits_[0] & 0x00000002u) != 0;
1421}
1423 _has_bits_[0] |= 0x00000002u;
1424}
1426 _has_bits_[0] &= ~0x00000002u;
1427}
1429 current_members_ = 0u;
1430 clear_has_current_members();
1431}
1433 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelDescription.current_members)
1434 return current_members_;
1435}
1437 set_has_current_members();
1438 current_members_ = value;
1439 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelDescription.current_members)
1440}
1441
1442// optional .bgs.protocol.channel.v1.ChannelState state = 3;
1444 return (_has_bits_[0] & 0x00000004u) != 0;
1445}
1447 _has_bits_[0] |= 0x00000004u;
1448}
1450 _has_bits_[0] &= ~0x00000004u;
1451}
1453 if (state_ != NULL) state_->::bgs::protocol::channel::v1::ChannelState::Clear();
1454 clear_has_state();
1455}
1456inline const ::bgs::protocol::channel::v1::ChannelState& ChannelDescription::state() const {
1457 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelDescription.state)
1458 return state_ != NULL ? *state_ : *default_instance_->state_;
1459}
1460inline ::bgs::protocol::channel::v1::ChannelState* ChannelDescription::mutable_state() {
1461 set_has_state();
1462 if (state_ == NULL) state_ = new ::bgs::protocol::channel::v1::ChannelState;
1463 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelDescription.state)
1464 return state_;
1465}
1466inline ::bgs::protocol::channel::v1::ChannelState* ChannelDescription::release_state() {
1467 clear_has_state();
1469 state_ = NULL;
1470 return temp;
1471}
1473 delete state_;
1474 state_ = state;
1475 if (state) {
1476 set_has_state();
1477 } else {
1478 clear_has_state();
1479 }
1480 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelDescription.state)
1481}
1482
1483// -------------------------------------------------------------------
1484
1485// ChannelInfo
1486
1487// required .bgs.protocol.channel.v1.ChannelDescription description = 1;
1488inline bool ChannelInfo::has_description() const {
1489 return (_has_bits_[0] & 0x00000001u) != 0;
1490}
1492 _has_bits_[0] |= 0x00000001u;
1493}
1495 _has_bits_[0] &= ~0x00000001u;
1496}
1498 if (description_ != NULL) description_->::bgs::protocol::channel::v1::ChannelDescription::Clear();
1499 clear_has_description();
1500}
1501inline const ::bgs::protocol::channel::v1::ChannelDescription& ChannelInfo::description() const {
1502 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelInfo.description)
1503 return description_ != NULL ? *description_ : *default_instance_->description_;
1504}
1505inline ::bgs::protocol::channel::v1::ChannelDescription* ChannelInfo::mutable_description() {
1506 set_has_description();
1507 if (description_ == NULL) description_ = new ::bgs::protocol::channel::v1::ChannelDescription;
1508 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelInfo.description)
1509 return description_;
1510}
1511inline ::bgs::protocol::channel::v1::ChannelDescription* ChannelInfo::release_description() {
1512 clear_has_description();
1514 description_ = NULL;
1515 return temp;
1516}
1518 delete description_;
1519 description_ = description;
1520 if (description) {
1521 set_has_description();
1522 } else {
1523 clear_has_description();
1524 }
1525 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelInfo.description)
1526}
1527
1528// repeated .bgs.protocol.channel.v1.Member member = 2;
1529inline int ChannelInfo::member_size() const {
1530 return member_.size();
1531}
1533 member_.Clear();
1534}
1535inline const ::bgs::protocol::channel::v1::Member& ChannelInfo::member(int index) const {
1536 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelInfo.member)
1537 return member_.Get(index);
1538}
1539inline ::bgs::protocol::channel::v1::Member* ChannelInfo::mutable_member(int index) {
1540 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelInfo.member)
1541 return member_.Mutable(index);
1542}
1543inline ::bgs::protocol::channel::v1::Member* ChannelInfo::add_member() {
1544 // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.ChannelInfo.member)
1545 return member_.Add();
1546}
1547inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >&
1549 // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.ChannelInfo.member)
1550 return member_;
1551}
1552inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member >*
1554 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.ChannelInfo.member)
1555 return &member_;
1556}
1557
1558// -------------------------------------------------------------------
1559
1560// ChannelState
1561
1562// optional uint32 max_members = 1;
1564 return (_has_bits_[0] & 0x00000001u) != 0;
1565}
1567 _has_bits_[0] |= 0x00000001u;
1568}
1570 _has_bits_[0] &= ~0x00000001u;
1571}
1573 max_members_ = 0u;
1574 clear_has_max_members();
1575}
1577 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.max_members)
1578 return max_members_;
1579}
1581 set_has_max_members();
1582 max_members_ = value;
1583 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.max_members)
1584}
1585
1586// optional uint32 min_members = 2;
1588 return (_has_bits_[0] & 0x00000002u) != 0;
1589}
1591 _has_bits_[0] |= 0x00000002u;
1592}
1594 _has_bits_[0] &= ~0x00000002u;
1595}
1597 min_members_ = 0u;
1598 clear_has_min_members();
1599}
1601 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.min_members)
1602 return min_members_;
1603}
1605 set_has_min_members();
1606 min_members_ = value;
1607 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.min_members)
1608}
1609
1610// repeated .bgs.protocol.Attribute attribute = 3;
1612 return attribute_.size();
1613}
1615 attribute_.Clear();
1616}
1617inline const ::bgs::protocol::Attribute& ChannelState::attribute(int index) const {
1618 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.attribute)
1619 return attribute_.Get(index);
1620}
1621inline ::bgs::protocol::Attribute* ChannelState::mutable_attribute(int index) {
1622 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelState.attribute)
1623 return attribute_.Mutable(index);
1624}
1625inline ::bgs::protocol::Attribute* ChannelState::add_attribute() {
1626 // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.ChannelState.attribute)
1627 return attribute_.Add();
1628}
1629inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
1631 // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.ChannelState.attribute)
1632 return attribute_;
1633}
1634inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
1636 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.ChannelState.attribute)
1637 return &attribute_;
1638}
1639
1640// repeated .bgs.protocol.Invitation invitation = 4;
1642 return invitation_.size();
1643}
1645 invitation_.Clear();
1646}
1647inline const ::bgs::protocol::Invitation& ChannelState::invitation(int index) const {
1648 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.invitation)
1649 return invitation_.Get(index);
1650}
1651inline ::bgs::protocol::Invitation* ChannelState::mutable_invitation(int index) {
1652 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelState.invitation)
1653 return invitation_.Mutable(index);
1654}
1655inline ::bgs::protocol::Invitation* ChannelState::add_invitation() {
1656 // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.ChannelState.invitation)
1657 return invitation_.Add();
1658}
1659inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >&
1661 // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.ChannelState.invitation)
1662 return invitation_;
1663}
1664inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation >*
1666 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.ChannelState.invitation)
1667 return &invitation_;
1668}
1669
1670// optional uint32 reason = 6;
1671inline bool ChannelState::has_reason() const {
1672 return (_has_bits_[0] & 0x00000010u) != 0;
1673}
1675 _has_bits_[0] |= 0x00000010u;
1676}
1678 _has_bits_[0] &= ~0x00000010u;
1679}
1681 reason_ = 0u;
1682 clear_has_reason();
1683}
1685 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.reason)
1686 return reason_;
1687}
1689 set_has_reason();
1690 reason_ = value;
1691 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.reason)
1692}
1693
1694// optional .bgs.protocol.channel.v1.ChannelState.PrivacyLevel privacy_level = 7 [default = PRIVACY_LEVEL_OPEN];
1696 return (_has_bits_[0] & 0x00000020u) != 0;
1697}
1699 _has_bits_[0] |= 0x00000020u;
1700}
1702 _has_bits_[0] &= ~0x00000020u;
1703}
1705 privacy_level_ = 1;
1706 clear_has_privacy_level();
1707}
1709 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.privacy_level)
1710 return static_cast< ::bgs::protocol::channel::v1::ChannelState_PrivacyLevel >(privacy_level_);
1711}
1714 set_has_privacy_level();
1715 privacy_level_ = value;
1716 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.privacy_level)
1717}
1718
1719// optional string name = 8;
1720inline bool ChannelState::has_name() const {
1721 return (_has_bits_[0] & 0x00000040u) != 0;
1722}
1724 _has_bits_[0] |= 0x00000040u;
1725}
1727 _has_bits_[0] &= ~0x00000040u;
1728}
1730 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1731 name_->clear();
1732 }
1733 clear_has_name();
1734}
1735inline const ::std::string& ChannelState::name() const {
1736 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.name)
1737 return *name_;
1738}
1739inline void ChannelState::set_name(const ::std::string& value) {
1740 set_has_name();
1741 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1742 name_ = new ::std::string;
1743 }
1744 name_->assign(value);
1745 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.name)
1746}
1747inline void ChannelState::set_name(const char* value) {
1748 set_has_name();
1749 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1750 name_ = new ::std::string;
1751 }
1752 name_->assign(value);
1753 // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.ChannelState.name)
1754}
1755inline void ChannelState::set_name(const char* value, size_t size) {
1756 set_has_name();
1757 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1758 name_ = new ::std::string;
1759 }
1760 name_->assign(reinterpret_cast<const char*>(value), size);
1761 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.ChannelState.name)
1762}
1763inline ::std::string* ChannelState::mutable_name() {
1764 set_has_name();
1765 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1766 name_ = new ::std::string;
1767 }
1768 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelState.name)
1769 return name_;
1770}
1771inline ::std::string* ChannelState::release_name() {
1772 clear_has_name();
1773 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1774 return NULL;
1775 } else {
1776 ::std::string* temp = name_;
1777 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1778 return temp;
1779 }
1780}
1781inline void ChannelState::set_allocated_name(::std::string* name) {
1782 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1783 delete name_;
1784 }
1785 if (name) {
1786 set_has_name();
1787 name_ = name;
1788 } else {
1789 clear_has_name();
1790 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1791 }
1792 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelState.name)
1793}
1794
1795// optional string channel_type = 10 [default = "default"];
1797 return (_has_bits_[0] & 0x00000080u) != 0;
1798}
1800 _has_bits_[0] |= 0x00000080u;
1801}
1803 _has_bits_[0] &= ~0x00000080u;
1804}
1806 if (channel_type_ != _default_channel_type_) {
1807 channel_type_->assign(*_default_channel_type_);
1808 }
1809 clear_has_channel_type();
1810}
1811inline const ::std::string& ChannelState::channel_type() const {
1812 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.channel_type)
1813 return *channel_type_;
1814}
1815inline void ChannelState::set_channel_type(const ::std::string& value) {
1816 set_has_channel_type();
1817 if (channel_type_ == _default_channel_type_) {
1818 channel_type_ = new ::std::string;
1819 }
1820 channel_type_->assign(value);
1821 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.channel_type)
1822}
1823inline void ChannelState::set_channel_type(const char* value) {
1824 set_has_channel_type();
1825 if (channel_type_ == _default_channel_type_) {
1826 channel_type_ = new ::std::string;
1827 }
1828 channel_type_->assign(value);
1829 // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.ChannelState.channel_type)
1830}
1831inline void ChannelState::set_channel_type(const char* value, size_t size) {
1832 set_has_channel_type();
1833 if (channel_type_ == _default_channel_type_) {
1834 channel_type_ = new ::std::string;
1835 }
1836 channel_type_->assign(reinterpret_cast<const char*>(value), size);
1837 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.ChannelState.channel_type)
1838}
1839inline ::std::string* ChannelState::mutable_channel_type() {
1840 set_has_channel_type();
1841 if (channel_type_ == _default_channel_type_) {
1842 channel_type_ = new ::std::string(*_default_channel_type_);
1843 }
1844 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.ChannelState.channel_type)
1845 return channel_type_;
1846}
1847inline ::std::string* ChannelState::release_channel_type() {
1848 clear_has_channel_type();
1849 if (channel_type_ == _default_channel_type_) {
1850 return NULL;
1851 } else {
1852 ::std::string* temp = channel_type_;
1853 channel_type_ = const_cast< ::std::string*>(_default_channel_type_);
1854 return temp;
1855 }
1856}
1857inline void ChannelState::set_allocated_channel_type(::std::string* channel_type) {
1858 if (channel_type_ != _default_channel_type_) {
1859 delete channel_type_;
1860 }
1861 if (channel_type) {
1862 set_has_channel_type();
1863 channel_type_ = channel_type;
1864 } else {
1865 clear_has_channel_type();
1866 channel_type_ = const_cast< ::std::string*>(_default_channel_type_);
1867 }
1868 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.ChannelState.channel_type)
1869}
1870
1871// optional fixed32 program = 11;
1872inline bool ChannelState::has_program() const {
1873 return (_has_bits_[0] & 0x00000100u) != 0;
1874}
1876 _has_bits_[0] |= 0x00000100u;
1877}
1879 _has_bits_[0] &= ~0x00000100u;
1880}
1882 program_ = 0u;
1883 clear_has_program();
1884}
1886 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.program)
1887 return program_;
1888}
1890 set_has_program();
1891 program_ = value;
1892 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.program)
1893}
1894
1895// optional bool subscribe_to_presence = 13 [default = true];
1897 return (_has_bits_[0] & 0x00000200u) != 0;
1898}
1900 _has_bits_[0] |= 0x00000200u;
1901}
1903 _has_bits_[0] &= ~0x00000200u;
1904}
1906 subscribe_to_presence_ = true;
1907 clear_has_subscribe_to_presence();
1908}
1910 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.ChannelState.subscribe_to_presence)
1911 return subscribe_to_presence_;
1912}
1914 set_has_subscribe_to_presence();
1915 subscribe_to_presence_ = value;
1916 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.ChannelState.subscribe_to_presence)
1917}
1918
1919// -------------------------------------------------------------------
1920
1921// MemberAccountInfo
1922
1923// optional string battle_tag = 3;
1925 return (_has_bits_[0] & 0x00000001u) != 0;
1926}
1928 _has_bits_[0] |= 0x00000001u;
1929}
1931 _has_bits_[0] &= ~0x00000001u;
1932}
1934 if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1935 battle_tag_->clear();
1936 }
1937 clear_has_battle_tag();
1938}
1939inline const ::std::string& MemberAccountInfo::battle_tag() const {
1940 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag)
1941 return *battle_tag_;
1942}
1943inline void MemberAccountInfo::set_battle_tag(const ::std::string& value) {
1944 set_has_battle_tag();
1945 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1946 battle_tag_ = new ::std::string;
1947 }
1948 battle_tag_->assign(value);
1949 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag)
1950}
1951inline void MemberAccountInfo::set_battle_tag(const char* value) {
1952 set_has_battle_tag();
1953 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1954 battle_tag_ = new ::std::string;
1955 }
1956 battle_tag_->assign(value);
1957 // @@protoc_insertion_point(field_set_char:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag)
1958}
1959inline void MemberAccountInfo::set_battle_tag(const char* value, size_t size) {
1960 set_has_battle_tag();
1961 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1962 battle_tag_ = new ::std::string;
1963 }
1964 battle_tag_->assign(reinterpret_cast<const char*>(value), size);
1965 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag)
1966}
1968 set_has_battle_tag();
1969 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1970 battle_tag_ = new ::std::string;
1971 }
1972 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag)
1973 return battle_tag_;
1974}
1976 clear_has_battle_tag();
1977 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1978 return NULL;
1979 } else {
1980 ::std::string* temp = battle_tag_;
1981 battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1982 return temp;
1983 }
1984}
1985inline void MemberAccountInfo::set_allocated_battle_tag(::std::string* battle_tag) {
1986 if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1987 delete battle_tag_;
1988 }
1989 if (battle_tag) {
1990 set_has_battle_tag();
1991 battle_tag_ = battle_tag;
1992 } else {
1993 clear_has_battle_tag();
1994 battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1995 }
1996 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberAccountInfo.battle_tag)
1997}
1998
1999// -------------------------------------------------------------------
2000
2001// MemberState
2002
2003// repeated .bgs.protocol.Attribute attribute = 1;
2005 return attribute_.size();
2006}
2008 attribute_.Clear();
2009}
2010inline const ::bgs::protocol::Attribute& MemberState::attribute(int index) const {
2011 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberState.attribute)
2012 return attribute_.Get(index);
2013}
2014inline ::bgs::protocol::Attribute* MemberState::mutable_attribute(int index) {
2015 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberState.attribute)
2016 return attribute_.Mutable(index);
2017}
2018inline ::bgs::protocol::Attribute* MemberState::add_attribute() {
2019 // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.MemberState.attribute)
2020 return attribute_.Add();
2021}
2022inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >&
2024 // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.MemberState.attribute)
2025 return attribute_;
2026}
2027inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute >*
2029 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.MemberState.attribute)
2030 return &attribute_;
2031}
2032
2033// repeated uint32 role = 2 [packed = true];
2034inline int MemberState::role_size() const {
2035 return role_.size();
2036}
2038 role_.Clear();
2039}
2041 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberState.role)
2042 return role_.Get(index);
2043}
2045 role_.Set(index, value);
2046 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberState.role)
2047}
2049 role_.Add(value);
2050 // @@protoc_insertion_point(field_add:bgs.protocol.channel.v1.MemberState.role)
2051}
2052inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
2054 // @@protoc_insertion_point(field_list:bgs.protocol.channel.v1.MemberState.role)
2055 return role_;
2056}
2057inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
2059 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.channel.v1.MemberState.role)
2060 return &role_;
2061}
2062
2063// optional uint64 privileges = 3 [default = 0];
2064inline bool MemberState::has_privileges() const {
2065 return (_has_bits_[0] & 0x00000004u) != 0;
2066}
2068 _has_bits_[0] |= 0x00000004u;
2069}
2071 _has_bits_[0] &= ~0x00000004u;
2072}
2074 privileges_ = GOOGLE_ULONGLONG(0);
2075 clear_has_privileges();
2076}
2078 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberState.privileges)
2079 return privileges_;
2080}
2082 set_has_privileges();
2083 privileges_ = value;
2084 // @@protoc_insertion_point(field_set:bgs.protocol.channel.v1.MemberState.privileges)
2085}
2086
2087// optional .bgs.protocol.channel.v1.MemberAccountInfo info = 4;
2088inline bool MemberState::has_info() const {
2089 return (_has_bits_[0] & 0x00000008u) != 0;
2090}
2092 _has_bits_[0] |= 0x00000008u;
2093}
2095 _has_bits_[0] &= ~0x00000008u;
2096}
2098 if (info_ != NULL) info_->::bgs::protocol::channel::v1::MemberAccountInfo::Clear();
2099 clear_has_info();
2100}
2101inline const ::bgs::protocol::channel::v1::MemberAccountInfo& MemberState::info() const {
2102 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.MemberState.info)
2103 return info_ != NULL ? *info_ : *default_instance_->info_;
2104}
2105inline ::bgs::protocol::channel::v1::MemberAccountInfo* MemberState::mutable_info() {
2106 set_has_info();
2107 if (info_ == NULL) info_ = new ::bgs::protocol::channel::v1::MemberAccountInfo;
2108 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.MemberState.info)
2109 return info_;
2110}
2111inline ::bgs::protocol::channel::v1::MemberAccountInfo* MemberState::release_info() {
2112 clear_has_info();
2114 info_ = NULL;
2115 return temp;
2116}
2118 delete info_;
2119 info_ = info;
2120 if (info) {
2121 set_has_info();
2122 } else {
2123 clear_has_info();
2124 }
2125 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.MemberState.info)
2126}
2127
2128// -------------------------------------------------------------------
2129
2130// Member
2131
2132// required .bgs.protocol.Identity identity = 1;
2133inline bool Member::has_identity() const {
2134 return (_has_bits_[0] & 0x00000001u) != 0;
2135}
2137 _has_bits_[0] |= 0x00000001u;
2138}
2140 _has_bits_[0] &= ~0x00000001u;
2141}
2143 if (identity_ != NULL) identity_->::bgs::protocol::Identity::Clear();
2144 clear_has_identity();
2145}
2146inline const ::bgs::protocol::Identity& Member::identity() const {
2147 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.Member.identity)
2148 return identity_ != NULL ? *identity_ : *default_instance_->identity_;
2149}
2150inline ::bgs::protocol::Identity* Member::mutable_identity() {
2151 set_has_identity();
2152 if (identity_ == NULL) identity_ = new ::bgs::protocol::Identity;
2153 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.Member.identity)
2154 return identity_;
2155}
2156inline ::bgs::protocol::Identity* Member::release_identity() {
2157 clear_has_identity();
2158 ::bgs::protocol::Identity* temp = identity_;
2159 identity_ = NULL;
2160 return temp;
2161}
2163 delete identity_;
2164 identity_ = identity;
2165 if (identity) {
2166 set_has_identity();
2167 } else {
2168 clear_has_identity();
2169 }
2170 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.Member.identity)
2171}
2172
2173// required .bgs.protocol.channel.v1.MemberState state = 2;
2174inline bool Member::has_state() const {
2175 return (_has_bits_[0] & 0x00000002u) != 0;
2176}
2178 _has_bits_[0] |= 0x00000002u;
2179}
2181 _has_bits_[0] &= ~0x00000002u;
2182}
2183inline void Member::clear_state() {
2184 if (state_ != NULL) state_->::bgs::protocol::channel::v1::MemberState::Clear();
2185 clear_has_state();
2186}
2187inline const ::bgs::protocol::channel::v1::MemberState& Member::state() const {
2188 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.Member.state)
2189 return state_ != NULL ? *state_ : *default_instance_->state_;
2190}
2191inline ::bgs::protocol::channel::v1::MemberState* Member::mutable_state() {
2192 set_has_state();
2193 if (state_ == NULL) state_ = new ::bgs::protocol::channel::v1::MemberState;
2194 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.Member.state)
2195 return state_;
2196}
2197inline ::bgs::protocol::channel::v1::MemberState* Member::release_state() {
2198 clear_has_state();
2200 state_ = NULL;
2201 return temp;
2202}
2204 delete state_;
2205 state_ = state;
2206 if (state) {
2207 set_has_state();
2208 } else {
2209 clear_has_state();
2210 }
2211 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.Member.state)
2212}
2213
2214// -------------------------------------------------------------------
2215
2216// SubscriberId
2217
2218// optional .bgs.protocol.account.v1.AccountId account = 1 [deprecated = true];
2219inline bool SubscriberId::has_account() const {
2220 return (_has_bits_[0] & 0x00000001u) != 0;
2221}
2223 _has_bits_[0] |= 0x00000001u;
2224}
2226 _has_bits_[0] &= ~0x00000001u;
2227}
2229 if (account_ != NULL) account_->::bgs::protocol::account::v1::AccountId::Clear();
2230 clear_has_account();
2231}
2232inline const ::bgs::protocol::account::v1::AccountId& SubscriberId::account() const {
2233 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SubscriberId.account)
2234 return account_ != NULL ? *account_ : *default_instance_->account_;
2235}
2236inline ::bgs::protocol::account::v1::AccountId* SubscriberId::mutable_account() {
2237 set_has_account();
2238 if (account_ == NULL) account_ = new ::bgs::protocol::account::v1::AccountId;
2239 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SubscriberId.account)
2240 return account_;
2241}
2242inline ::bgs::protocol::account::v1::AccountId* SubscriberId::release_account() {
2243 clear_has_account();
2245 account_ = NULL;
2246 return temp;
2247}
2249 delete account_;
2250 account_ = account;
2251 if (account) {
2252 set_has_account();
2253 } else {
2254 clear_has_account();
2255 }
2256 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SubscriberId.account)
2257}
2258
2259// optional .bgs.protocol.account.v1.GameAccountHandle game_account = 2;
2261 return (_has_bits_[0] & 0x00000002u) != 0;
2262}
2264 _has_bits_[0] |= 0x00000002u;
2265}
2267 _has_bits_[0] &= ~0x00000002u;
2268}
2270 if (game_account_ != NULL) game_account_->::bgs::protocol::account::v1::GameAccountHandle::Clear();
2271 clear_has_game_account();
2272}
2273inline const ::bgs::protocol::account::v1::GameAccountHandle& SubscriberId::game_account() const {
2274 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SubscriberId.game_account)
2275 return game_account_ != NULL ? *game_account_ : *default_instance_->game_account_;
2276}
2277inline ::bgs::protocol::account::v1::GameAccountHandle* SubscriberId::mutable_game_account() {
2278 set_has_game_account();
2279 if (game_account_ == NULL) game_account_ = new ::bgs::protocol::account::v1::GameAccountHandle;
2280 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SubscriberId.game_account)
2281 return game_account_;
2282}
2283inline ::bgs::protocol::account::v1::GameAccountHandle* SubscriberId::release_game_account() {
2284 clear_has_game_account();
2286 game_account_ = NULL;
2287 return temp;
2288}
2290 delete game_account_;
2291 game_account_ = game_account;
2292 if (game_account) {
2293 set_has_game_account();
2294 } else {
2295 clear_has_game_account();
2296 }
2297 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SubscriberId.game_account)
2298}
2299
2300// optional .bgs.protocol.ProcessId process = 3;
2301inline bool SubscriberId::has_process() const {
2302 return (_has_bits_[0] & 0x00000004u) != 0;
2303}
2305 _has_bits_[0] |= 0x00000004u;
2306}
2308 _has_bits_[0] &= ~0x00000004u;
2309}
2311 if (process_ != NULL) process_->::bgs::protocol::ProcessId::Clear();
2312 clear_has_process();
2313}
2314inline const ::bgs::protocol::ProcessId& SubscriberId::process() const {
2315 // @@protoc_insertion_point(field_get:bgs.protocol.channel.v1.SubscriberId.process)
2316 return process_ != NULL ? *process_ : *default_instance_->process_;
2317}
2318inline ::bgs::protocol::ProcessId* SubscriberId::mutable_process() {
2319 set_has_process();
2320 if (process_ == NULL) process_ = new ::bgs::protocol::ProcessId;
2321 // @@protoc_insertion_point(field_mutable:bgs.protocol.channel.v1.SubscriberId.process)
2322 return process_;
2323}
2324inline ::bgs::protocol::ProcessId* SubscriberId::release_process() {
2325 clear_has_process();
2326 ::bgs::protocol::ProcessId* temp = process_;
2327 process_ = NULL;
2328 return temp;
2329}
2331 delete process_;
2332 process_ = process;
2333 if (process) {
2334 set_has_process();
2335 } else {
2336 clear_has_process();
2337 }
2338 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.channel.v1.SubscriberId.process)
2339}
2340
2341// @@protoc_insertion_point(namespace_scope)
2342
2343} // namespace v1
2344} // namespace channel
2345} // namespace protocol
2346} // namespace bgs
2347
2348#ifndef SWIG
2349namespace google {
2350namespace protobuf {
2351template <> struct is_proto_enum< ::bgs::protocol::channel::v1::ChannelState_PrivacyLevel> : ::google::protobuf::internal::true_type {};
2352template <>
2353inline const EnumDescriptor* GetEnumDescriptor< ::bgs::protocol::channel::v1::ChannelState_PrivacyLevel>() {
2355}
2356} // namespace google
2357} // namespace protobuf
2358#endif // SWIG
2359
2360// @@protoc_insertion_point(global_scope)
2361
2362#endif // PROTOBUF_channel_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint64_t uint64
Definition: Define.h:141
uint32_t uint32
Definition: Define.h:142
inline ::bgs::protocol::channel::v1::ChannelState * mutable_state()
ChannelDescription(const ChannelDescription &from)
inline ::google::protobuf::uint32 current_members() const
ChannelDescription & operator=(const ChannelDescription &from)
const ::bgs::protocol::EntityId & channel_id() const
void set_current_members(::google::protobuf::uint32 value)
::bgs::protocol::channel::v1::ChannelState * state_
static const ChannelDescription & default_instance()
inline ::bgs::protocol::EntityId * mutable_channel_id()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_state(::bgs::protocol::channel::v1::ChannelState *state)
::google::protobuf::UnknownFieldSet _unknown_fields_
void Swap(ChannelDescription *other)
::google::protobuf::Metadata GetMetadata() const
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
const ::bgs::protocol::channel::v1::ChannelState & state() const
inline ::bgs::protocol::EntityId * release_channel_id()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::channel::v1::ChannelState * release_state()
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_channel_id(::bgs::protocol::EntityId *channel_id)
ChannelInfo(const ChannelInfo &from)
::google::protobuf::UnknownFieldSet _unknown_fields_
ChannelInfo & operator=(const ChannelInfo &from)
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member > & member() const
void set_allocated_description(::bgs::protocol::channel::v1::ChannelDescription *description)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member > * mutable_member()
inline ::bgs::protocol::channel::v1::ChannelDescription * mutable_description()
static const ::google::protobuf::Descriptor * descriptor()
::bgs::protocol::channel::v1::ChannelDescription * description_
friend void protobuf_ShutdownFile_channel_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
::google::protobuf::RepeatedPtrField< ::bgs::protocol::channel::v1::Member > member_
inline ::bgs::protocol::channel::v1::Member * add_member()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void protobuf_AssignDesc_channel_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
inline ::bgs::protocol::channel::v1::ChannelDescription * release_description()
const ::bgs::protocol::channel::v1::ChannelDescription & description() const
static const ChannelInfo & default_instance()
ChannelState(const ChannelState &from)
void set_allocated_channel_type(::std::string *channel_type)
void set_reason(::google::protobuf::uint32 value)
void set_min_members(::google::protobuf::uint32 value)
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > invitation_
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::uint32 program() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
void set_channel_type(const ::std::string &value)
void set_program(::google::protobuf::uint32 value)
void set_max_members(::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 max_members() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::bgs::protocol::Attribute * add_attribute()
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::std::string & name() const
inline ::google::protobuf::uint32 reason() const
static const ChannelState & default_instance()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > * mutable_invitation()
ChannelState & operator=(const ChannelState &from)
static const ::google::protobuf::EnumDescriptor * PrivacyLevel_descriptor()
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::Metadata GetMetadata() const
void set_privacy_level(::bgs::protocol::channel::v1::ChannelState_PrivacyLevel value)
void set_name(const ::std::string &value)
::google::protobuf::uint32 max_members_
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
inline ::std::string * release_channel_type()
void set_allocated_name(::std::string *name)
friend void protobuf_ShutdownFile_channel_5ftypes_2eproto()
inline ::bgs::protocol::channel::v1::ChannelState_PrivacyLevel privacy_level() const
static bool PrivacyLevel_Parse(const ::std::string &name, PrivacyLevel *value)
inline ::bgs::protocol::Invitation * add_invitation()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Invitation > & invitation() const
friend void protobuf_AssignDesc_channel_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
::google::protobuf::internal::ExtensionSet _extensions_
const ::std::string & channel_type() const
inline ::std::string * mutable_channel_type()
::google::protobuf::uint32 min_members_
inline ::google::protobuf::uint32 min_members() const
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
static const ::std::string & PrivacyLevel_Name(PrivacyLevel value)
inline ::bgs::protocol::AttributeFilter * mutable_attribute_filter()
ListChannelsOptions(const ListChannelsOptions &from)
void set_max_results(::google::protobuf::uint32 value)
static const ListChannelsOptions & default_instance()
inline ::google::protobuf::uint32 start_index() const
::bgs::protocol::AttributeFilter * attribute_filter_
const ::bgs::protocol::AttributeFilter & attribute_filter() const
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::uint32 capacity_full() const
inline ::google::protobuf::uint32 program() const
void set_locale(::google::protobuf::uint32 value)
void Swap(ListChannelsOptions *other)
inline ::google::protobuf::uint32 max_results() const
ListChannelsOptions & operator=(const ListChannelsOptions &from)
void set_allocated_attribute_filter(::bgs::protocol::AttributeFilter *attribute_filter)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_start_index(::google::protobuf::uint32 value)
inline ::bgs::protocol::AttributeFilter * release_attribute_filter()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::Metadata GetMetadata() const
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_program(::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 locale() const
void set_allocated_channel_type(::std::string *channel_type)
void set_channel_type(const ::std::string &value)
void set_capacity_full(::google::protobuf::uint32 value)
static const ::google::protobuf::Descriptor * descriptor()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_battle_tag(const ::std::string &value)
::google::protobuf::Metadata GetMetadata() const
void set_allocated_battle_tag(::std::string *battle_tag)
void Swap(MemberAccountInfo *other)
MemberAccountInfo(const MemberAccountInfo &from)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
MemberAccountInfo & operator=(const MemberAccountInfo &from)
static const MemberAccountInfo & default_instance()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_role()
void add_role(::google::protobuf::uint32 value)
inline ::bgs::protocol::channel::v1::MemberAccountInfo * mutable_info()
inline ::bgs::protocol::Attribute * add_attribute()
MemberState & operator=(const MemberState &from)
void set_role(int index, ::google::protobuf::uint32 value)
inline ::google::protobuf::uint64 privileges() const
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > role_
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & role() const
MemberState(const MemberState &from)
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
static const MemberState & default_instance()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::Metadata GetMetadata() const
friend void protobuf_ShutdownFile_channel_5ftypes_2eproto()
const ::bgs::protocol::channel::v1::MemberAccountInfo & info() const
::google::protobuf::uint64 privileges_
friend void protobuf_AssignDesc_channel_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
::bgs::protocol::channel::v1::MemberAccountInfo * info_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_privileges(::google::protobuf::uint64 value)
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
void set_allocated_info(::bgs::protocol::channel::v1::MemberAccountInfo *info)
inline ::bgs::protocol::channel::v1::MemberAccountInfo * release_info()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_state(::bgs::protocol::channel::v1::MemberState *state)
inline ::bgs::protocol::Identity * release_identity()
void SetCachedSize(int size) const
static const Member & default_instance()
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::bgs::protocol::Identity & identity() const
::bgs::protocol::Identity * identity_
Member & operator=(const Member &from)
friend void protobuf_ShutdownFile_channel_5ftypes_2eproto()
::google::protobuf::Metadata GetMetadata() const
void set_allocated_identity(::bgs::protocol::Identity *identity)
::bgs::protocol::channel::v1::MemberState * state_
const ::bgs::protocol::channel::v1::MemberState & state() const
friend void protobuf_AssignDesc_channel_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
inline ::bgs::protocol::Identity * mutable_identity()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::bgs::protocol::channel::v1::MemberState * mutable_state()
static const ::google::protobuf::Descriptor * descriptor()
inline ::bgs::protocol::channel::v1::MemberState * release_state()
static const ::google::protobuf::Descriptor * descriptor()
void SetCachedSize(int size) const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Message & operator=(const Message &from)
inline ::bgs::protocol::Attribute * add_attribute()
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > * mutable_attribute()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
friend void protobuf_ShutdownFile_channel_5ftypes_2eproto()
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > & attribute() const
::google::protobuf::internal::ExtensionSet _extensions_
static const Message & default_instance()
::google::protobuf::Metadata GetMetadata() const
friend void protobuf_AssignDesc_channel_5ftypes_2eproto()
friend void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::RepeatedPtrField< ::bgs::protocol::Attribute > attribute_
void clear_account() PROTOBUF_DEPRECATED
void set_allocated_process(::bgs::protocol::ProcessId *process)
SubscriberId(const SubscriberId &from)
const ::bgs::protocol::account::v1::GameAccountHandle & game_account() const
inline ::bgs::protocol::ProcessId * release_process()
void set_allocated_account(::bgs::protocol::account::v1::AccountId *account) PROTOBUF_DEPRECATED
inline ::bgs::protocol::account::v1::AccountId * mutable_account() PROTOBUF_DEPRECATED
inline ::bgs::protocol::account::v1::GameAccountHandle * release_game_account()
inline ::bgs::protocol::ProcessId * mutable_process()
const ::bgs::protocol::ProcessId & process() const
const ::bgs::protocol::account::v1::AccountId & account() const PROTOBUF_DEPRECATED
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_game_account(::bgs::protocol::account::v1::GameAccountHandle *game_account)
inline ::bgs::protocol::account::v1::AccountId * release_account() PROTOBUF_DEPRECATED
static const SubscriberId & default_instance()
::google::protobuf::Metadata GetMetadata() const
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline ::bgs::protocol::account::v1::GameAccountHandle * mutable_game_account()
SubscriberId & operator=(const SubscriberId &from)
bool has_account() const PROTOBUF_DEPRECATED
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_channel_5ftypes_2eproto()
bool ChannelState_PrivacyLevel_Parse(const ::std::string &name, ChannelState_PrivacyLevel *value)
const int ChannelState_PrivacyLevel_PrivacyLevel_ARRAYSIZE
TC_PROTO_APIconst ::google::protobuf::EnumDescriptor * ChannelState_PrivacyLevel_descriptor()
void protobuf_AssignDesc_channel_5ftypes_2eproto()
const ChannelState_PrivacyLevel ChannelState_PrivacyLevel_PrivacyLevel_MAX
void protobuf_ShutdownFile_channel_5ftypes_2eproto()
TC_PROTO_API bool ChannelState_PrivacyLevel_IsValid(int value)
const ChannelState_PrivacyLevel ChannelState_PrivacyLevel_PrivacyLevel_MIN
@ ChannelState_PrivacyLevel_PRIVACY_LEVEL_OPEN_INVITATION_AND_FRIEND
const ::std::string & ChannelState_PrivacyLevel_Name(ChannelState_PrivacyLevel value)
const PrivacyLevel PrivacyLevel_MIN
Definition: club_enum.pb.h:46
const int PrivacyLevel_ARRAYSIZE
Definition: club_enum.pb.h:48
const PrivacyLevel PrivacyLevel_MAX
Definition: club_enum.pb.h:47
Definition: Session.h:36