TrinityCore
role_types.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: role_types.proto
3
4#ifndef PROTOBUF_role_5ftypes_2eproto__INCLUDED
5#define PROTOBUF_role_5ftypes_2eproto__INCLUDED
6
7#include <string>
8
9#include <google/protobuf/stubs/common.h>
10
11#if GOOGLE_PROTOBUF_VERSION < 2006000
12#error This file was generated by a newer version of protoc which is
13#error incompatible with your Protocol Buffer headers. Please update
14#error your headers.
15#endif
16#if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17#error This file was generated by an older version of protoc which is
18#error incompatible with your Protocol Buffer headers. Please
19#error regenerate this file with a newer version of protoc.
20#endif
21
22#include <google/protobuf/generated_message_util.h>
23#include <google/protobuf/message.h>
24#include <google/protobuf/repeated_field.h>
25#include <google/protobuf/extension_set.h>
26#include <google/protobuf/unknown_field_set.h>
27#include "Define.h" // for TC_PROTO_API
28// @@protoc_insertion_point(includes)
29
30namespace bgs {
31namespace protocol {
32
33// Internal implementation detail -- do not call these.
37
38class Role;
39class RoleState;
40
41// ===================================================================
42
43class TC_PROTO_API Role : public ::google::protobuf::Message {
44 public:
46 virtual ~Role();
47
48 Role(const Role& from);
49
50 inline Role& operator=(const Role& from) {
51 CopyFrom(from);
52 return *this;
53 }
54
55 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
56 return _unknown_fields_;
57 }
58
59 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
60 return &_unknown_fields_;
61 }
62
63 static const ::google::protobuf::Descriptor* descriptor();
64 static const Role& default_instance();
65
66 void Swap(Role* other);
67
68 // implements Message ----------------------------------------------
69
70 Role* New() const;
71 int GetCachedSize() const { return _cached_size_; }
72 private:
73 void SharedCtor();
74 void SharedDtor();
75 void SetCachedSize(int size) const;
76 public:
77 ::google::protobuf::Metadata GetMetadata() const;
78
79 // nested types ----------------------------------------------------
80
81 // accessors -------------------------------------------------------
82
83 // required uint32 id = 1;
84 inline bool has_id() const;
85 inline void clear_id();
86 static const int kIdFieldNumber = 1;
88 inline void set_id(::google::protobuf::uint32 value);
89
90 // required string name = 2;
91 inline bool has_name() const;
92 inline void clear_name();
93 static const int kNameFieldNumber = 2;
94 inline const ::std::string& name() const;
95 inline void set_name(const ::std::string& value);
96 inline void set_name(const char* value);
97 inline void set_name(const char* value, size_t size);
98 inline ::std::string* mutable_name();
99 inline ::std::string* release_name();
100 inline void set_allocated_name(::std::string* name);
101
102 // repeated string privilege = 3;
103 inline int privilege_size() const;
104 inline void clear_privilege();
105 static const int kPrivilegeFieldNumber = 3;
106 inline const ::std::string& privilege(int index) const;
107 inline ::std::string* mutable_privilege(int index);
108 inline void set_privilege(int index, const ::std::string& value);
109 inline void set_privilege(int index, const char* value);
110 inline void set_privilege(int index, const char* value, size_t size);
111 inline ::std::string* add_privilege();
112 inline void add_privilege(const ::std::string& value);
113 inline void add_privilege(const char* value);
114 inline void add_privilege(const char* value, size_t size);
115 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& privilege() const;
116 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_privilege();
117
118 // repeated uint32 assignable_role = 4 [packed = true];
119 inline int assignable_role_size() const;
120 inline void clear_assignable_role();
121 static const int kAssignableRoleFieldNumber = 4;
122 inline ::google::protobuf::uint32 assignable_role(int index) const;
123 inline void set_assignable_role(int index, ::google::protobuf::uint32 value);
124 inline void add_assignable_role(::google::protobuf::uint32 value);
125 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
126 assignable_role() const;
127 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
128 mutable_assignable_role();
129
130 // optional bool required = 5;
131 inline bool has_required() const;
132 inline void clear_required();
133 static const int kRequiredFieldNumber = 5;
134 inline bool required() const;
135 inline void set_required(bool value);
136
137 // optional bool unique = 6;
138 inline bool has_unique() const;
139 inline void clear_unique();
140 static const int kUniqueFieldNumber = 6;
141 inline bool unique() const;
142 inline void set_unique(bool value);
143
144 // optional uint32 relegation_role = 7;
145 inline bool has_relegation_role() const;
146 inline void clear_relegation_role();
147 static const int kRelegationRoleFieldNumber = 7;
148 inline ::google::protobuf::uint32 relegation_role() const;
149 inline void set_relegation_role(::google::protobuf::uint32 value);
150
151 // repeated uint32 kickable_role = 9 [packed = true];
152 inline int kickable_role_size() const;
153 inline void clear_kickable_role();
154 static const int kKickableRoleFieldNumber = 9;
155 inline ::google::protobuf::uint32 kickable_role(int index) const;
156 inline void set_kickable_role(int index, ::google::protobuf::uint32 value);
157 inline void add_kickable_role(::google::protobuf::uint32 value);
158 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
159 kickable_role() const;
160 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
161 mutable_kickable_role();
162
163 // repeated uint32 removable_role = 10 [packed = true];
164 inline int removable_role_size() const;
165 inline void clear_removable_role();
166 static const int kRemovableRoleFieldNumber = 10;
167 inline ::google::protobuf::uint32 removable_role(int index) const;
168 inline void set_removable_role(int index, ::google::protobuf::uint32 value);
169 inline void add_removable_role(::google::protobuf::uint32 value);
170 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
171 removable_role() const;
172 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
173 mutable_removable_role();
174
175 // @@protoc_insertion_point(class_scope:bgs.protocol.Role)
176 private:
177 inline void set_has_id();
178 inline void clear_has_id();
179 inline void set_has_name();
180 inline void clear_has_name();
181 inline void set_has_required();
182 inline void clear_has_required();
183 inline void set_has_unique();
184 inline void clear_has_unique();
185 inline void set_has_relegation_role();
186 inline void clear_has_relegation_role();
187
188 ::google::protobuf::UnknownFieldSet _unknown_fields_;
189
191 mutable int _cached_size_;
192 ::std::string* name_;
193 ::google::protobuf::RepeatedPtrField< ::std::string> privilege_;
194 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > assignable_role_;
198 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > kickable_role_;
199 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removable_role_;
204
207};
208// -------------------------------------------------------------------
209
210class TC_PROTO_API RoleState : public ::google::protobuf::Message {
211 public:
213 virtual ~RoleState();
214
215 RoleState(const RoleState& from);
216
217 inline RoleState& operator=(const RoleState& from) {
218 CopyFrom(from);
219 return *this;
220 }
221
222 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
223 return _unknown_fields_;
224 }
225
226 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
227 return &_unknown_fields_;
228 }
229
230 static const ::google::protobuf::Descriptor* descriptor();
232
233 void Swap(RoleState* other);
234
235 // implements Message ----------------------------------------------
236
237 RoleState* New() const;
238 int GetCachedSize() const { return _cached_size_; }
239 private:
242 void SetCachedSize(int size) const;
243 public:
244 ::google::protobuf::Metadata GetMetadata() const;
245
246 // nested types ----------------------------------------------------
247
248 // accessors -------------------------------------------------------
249
250 // optional string name = 2;
251 inline bool has_name() const;
252 inline void clear_name();
253 static const int kNameFieldNumber = 2;
254 inline const ::std::string& name() const;
255 inline void set_name(const ::std::string& value);
256 inline void set_name(const char* value);
257 inline void set_name(const char* value, size_t size);
258 inline ::std::string* mutable_name();
259 inline ::std::string* release_name();
260 inline void set_allocated_name(::std::string* name);
261
262 // repeated uint32 assignable_role = 4 [packed = true];
263 inline int assignable_role_size() const;
264 inline void clear_assignable_role();
265 static const int kAssignableRoleFieldNumber = 4;
266 inline ::google::protobuf::uint32 assignable_role(int index) const;
267 inline void set_assignable_role(int index, ::google::protobuf::uint32 value);
268 inline void add_assignable_role(::google::protobuf::uint32 value);
269 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
270 assignable_role() const;
271 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
272 mutable_assignable_role();
273
274 // optional bool required = 5;
275 inline bool has_required() const;
276 inline void clear_required();
277 static const int kRequiredFieldNumber = 5;
278 inline bool required() const;
279 inline void set_required(bool value);
280
281 // optional bool unique = 6;
282 inline bool has_unique() const;
283 inline void clear_unique();
284 static const int kUniqueFieldNumber = 6;
285 inline bool unique() const;
286 inline void set_unique(bool value);
287
288 // optional uint32 relegation_role = 7;
289 inline bool has_relegation_role() const;
290 inline void clear_relegation_role();
291 static const int kRelegationRoleFieldNumber = 7;
292 inline ::google::protobuf::uint32 relegation_role() const;
293 inline void set_relegation_role(::google::protobuf::uint32 value);
294
295 // repeated uint32 kickable_role = 9 [packed = true];
296 inline int kickable_role_size() const;
297 inline void clear_kickable_role();
298 static const int kKickableRoleFieldNumber = 9;
299 inline ::google::protobuf::uint32 kickable_role(int index) const;
300 inline void set_kickable_role(int index, ::google::protobuf::uint32 value);
301 inline void add_kickable_role(::google::protobuf::uint32 value);
302 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
303 kickable_role() const;
304 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
305 mutable_kickable_role();
306
307 // repeated uint32 removable_role = 10 [packed = true];
308 inline int removable_role_size() const;
309 inline void clear_removable_role();
310 static const int kRemovableRoleFieldNumber = 10;
311 inline ::google::protobuf::uint32 removable_role(int index) const;
312 inline void set_removable_role(int index, ::google::protobuf::uint32 value);
313 inline void add_removable_role(::google::protobuf::uint32 value);
314 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
315 removable_role() const;
316 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
317 mutable_removable_role();
318
319 // repeated uint32 mentionable_role = 11 [packed = true];
320 inline int mentionable_role_size() const;
321 inline void clear_mentionable_role();
322 static const int kMentionableRoleFieldNumber = 11;
323 inline ::google::protobuf::uint32 mentionable_role(int index) const;
324 inline void set_mentionable_role(int index, ::google::protobuf::uint32 value);
325 inline void add_mentionable_role(::google::protobuf::uint32 value);
326 inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
327 mentionable_role() const;
328 inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
329 mutable_mentionable_role();
330
331 // @@protoc_insertion_point(class_scope:bgs.protocol.RoleState)
332 private:
333 inline void set_has_name();
334 inline void clear_has_name();
335 inline void set_has_required();
336 inline void clear_has_required();
337 inline void set_has_unique();
338 inline void clear_has_unique();
339 inline void set_has_relegation_role();
340 inline void clear_has_relegation_role();
341
342 ::google::protobuf::UnknownFieldSet _unknown_fields_;
343
345 mutable int _cached_size_;
346 ::std::string* name_;
347 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > assignable_role_;
351 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > kickable_role_;
352 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removable_role_;
353 ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > mentionable_role_;
357
360};
361// ===================================================================
362
363// ===================================================================
364
365// ===================================================================
366
367// Role
368
369// required uint32 id = 1;
370inline bool Role::has_id() const {
371 return (_has_bits_[0] & 0x00000001u) != 0;
372}
373inline void Role::set_has_id() {
374 _has_bits_[0] |= 0x00000001u;
375}
376inline void Role::clear_has_id() {
377 _has_bits_[0] &= ~0x00000001u;
378}
379inline void Role::clear_id() {
380 id_ = 0u;
381 clear_has_id();
382}
384 // @@protoc_insertion_point(field_get:bgs.protocol.Role.id)
385 return id_;
386}
388 set_has_id();
389 id_ = value;
390 // @@protoc_insertion_point(field_set:bgs.protocol.Role.id)
391}
392
393// required string name = 2;
394inline bool Role::has_name() const {
395 return (_has_bits_[0] & 0x00000002u) != 0;
396}
397inline void Role::set_has_name() {
398 _has_bits_[0] |= 0x00000002u;
399}
400inline void Role::clear_has_name() {
401 _has_bits_[0] &= ~0x00000002u;
402}
403inline void Role::clear_name() {
404 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
405 name_->clear();
406 }
408}
409inline const ::std::string& Role::name() const {
410 // @@protoc_insertion_point(field_get:bgs.protocol.Role.name)
411 return *name_;
412}
413inline void Role::set_name(const ::std::string& value) {
414 set_has_name();
415 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
416 name_ = new ::std::string;
417 }
418 name_->assign(value);
419 // @@protoc_insertion_point(field_set:bgs.protocol.Role.name)
420}
421inline void Role::set_name(const char* value) {
422 set_has_name();
423 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
424 name_ = new ::std::string;
425 }
426 name_->assign(value);
427 // @@protoc_insertion_point(field_set_char:bgs.protocol.Role.name)
428}
429inline void Role::set_name(const char* value, size_t size) {
430 set_has_name();
431 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
432 name_ = new ::std::string;
433 }
434 name_->assign(reinterpret_cast<const char*>(value), size);
435 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Role.name)
436}
437inline ::std::string* Role::mutable_name() {
438 set_has_name();
439 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
440 name_ = new ::std::string;
441 }
442 // @@protoc_insertion_point(field_mutable:bgs.protocol.Role.name)
443 return name_;
444}
445inline ::std::string* Role::release_name() {
447 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
448 return NULL;
449 } else {
450 ::std::string* temp = name_;
451 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
452 return temp;
453 }
454}
455inline void Role::set_allocated_name(::std::string* name) {
456 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
457 delete name_;
458 }
459 if (name) {
460 set_has_name();
461 name_ = name;
462 } else {
464 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
465 }
466 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.Role.name)
467}
468
469// repeated string privilege = 3;
470inline int Role::privilege_size() const {
471 return privilege_.size();
472}
474 privilege_.Clear();
475}
476inline const ::std::string& Role::privilege(int index) const {
477 // @@protoc_insertion_point(field_get:bgs.protocol.Role.privilege)
478 return privilege_.Get(index);
479}
480inline ::std::string* Role::mutable_privilege(int index) {
481 // @@protoc_insertion_point(field_mutable:bgs.protocol.Role.privilege)
482 return privilege_.Mutable(index);
483}
484inline void Role::set_privilege(int index, const ::std::string& value) {
485 // @@protoc_insertion_point(field_set:bgs.protocol.Role.privilege)
486 privilege_.Mutable(index)->assign(value);
487}
488inline void Role::set_privilege(int index, const char* value) {
489 privilege_.Mutable(index)->assign(value);
490 // @@protoc_insertion_point(field_set_char:bgs.protocol.Role.privilege)
491}
492inline void Role::set_privilege(int index, const char* value, size_t size) {
493 privilege_.Mutable(index)->assign(
494 reinterpret_cast<const char*>(value), size);
495 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.Role.privilege)
496}
497inline ::std::string* Role::add_privilege() {
498 return privilege_.Add();
499}
500inline void Role::add_privilege(const ::std::string& value) {
501 privilege_.Add()->assign(value);
502 // @@protoc_insertion_point(field_add:bgs.protocol.Role.privilege)
503}
504inline void Role::add_privilege(const char* value) {
505 privilege_.Add()->assign(value);
506 // @@protoc_insertion_point(field_add_char:bgs.protocol.Role.privilege)
507}
508inline void Role::add_privilege(const char* value, size_t size) {
509 privilege_.Add()->assign(reinterpret_cast<const char*>(value), size);
510 // @@protoc_insertion_point(field_add_pointer:bgs.protocol.Role.privilege)
511}
512inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
514 // @@protoc_insertion_point(field_list:bgs.protocol.Role.privilege)
515 return privilege_;
516}
517inline ::google::protobuf::RepeatedPtrField< ::std::string>*
519 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.Role.privilege)
520 return &privilege_;
521}
522
523// repeated uint32 assignable_role = 4 [packed = true];
524inline int Role::assignable_role_size() const {
525 return assignable_role_.size();
526}
528 assignable_role_.Clear();
529}
531 // @@protoc_insertion_point(field_get:bgs.protocol.Role.assignable_role)
532 return assignable_role_.Get(index);
533}
535 assignable_role_.Set(index, value);
536 // @@protoc_insertion_point(field_set:bgs.protocol.Role.assignable_role)
537}
539 assignable_role_.Add(value);
540 // @@protoc_insertion_point(field_add:bgs.protocol.Role.assignable_role)
541}
542inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
544 // @@protoc_insertion_point(field_list:bgs.protocol.Role.assignable_role)
545 return assignable_role_;
546}
547inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
549 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.Role.assignable_role)
550 return &assignable_role_;
551}
552
553// optional bool required = 5;
554inline bool Role::has_required() const {
555 return (_has_bits_[0] & 0x00000010u) != 0;
556}
558 _has_bits_[0] |= 0x00000010u;
559}
561 _has_bits_[0] &= ~0x00000010u;
562}
563inline void Role::clear_required() {
564 required_ = false;
566}
567inline bool Role::required() const {
568 // @@protoc_insertion_point(field_get:bgs.protocol.Role.required)
569 return required_;
570}
571inline void Role::set_required(bool value) {
573 required_ = value;
574 // @@protoc_insertion_point(field_set:bgs.protocol.Role.required)
575}
576
577// optional bool unique = 6;
578inline bool Role::has_unique() const {
579 return (_has_bits_[0] & 0x00000020u) != 0;
580}
581inline void Role::set_has_unique() {
582 _has_bits_[0] |= 0x00000020u;
583}
585 _has_bits_[0] &= ~0x00000020u;
586}
587inline void Role::clear_unique() {
588 unique_ = false;
590}
591inline bool Role::unique() const {
592 // @@protoc_insertion_point(field_get:bgs.protocol.Role.unique)
593 return unique_;
594}
595inline void Role::set_unique(bool value) {
597 unique_ = value;
598 // @@protoc_insertion_point(field_set:bgs.protocol.Role.unique)
599}
600
601// optional uint32 relegation_role = 7;
602inline bool Role::has_relegation_role() const {
603 return (_has_bits_[0] & 0x00000040u) != 0;
604}
606 _has_bits_[0] |= 0x00000040u;
607}
609 _has_bits_[0] &= ~0x00000040u;
610}
612 relegation_role_ = 0u;
614}
616 // @@protoc_insertion_point(field_get:bgs.protocol.Role.relegation_role)
617 return relegation_role_;
618}
621 relegation_role_ = value;
622 // @@protoc_insertion_point(field_set:bgs.protocol.Role.relegation_role)
623}
624
625// repeated uint32 kickable_role = 9 [packed = true];
626inline int Role::kickable_role_size() const {
627 return kickable_role_.size();
628}
630 kickable_role_.Clear();
631}
633 // @@protoc_insertion_point(field_get:bgs.protocol.Role.kickable_role)
634 return kickable_role_.Get(index);
635}
637 kickable_role_.Set(index, value);
638 // @@protoc_insertion_point(field_set:bgs.protocol.Role.kickable_role)
639}
641 kickable_role_.Add(value);
642 // @@protoc_insertion_point(field_add:bgs.protocol.Role.kickable_role)
643}
644inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
646 // @@protoc_insertion_point(field_list:bgs.protocol.Role.kickable_role)
647 return kickable_role_;
648}
649inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
651 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.Role.kickable_role)
652 return &kickable_role_;
653}
654
655// repeated uint32 removable_role = 10 [packed = true];
656inline int Role::removable_role_size() const {
657 return removable_role_.size();
658}
660 removable_role_.Clear();
661}
663 // @@protoc_insertion_point(field_get:bgs.protocol.Role.removable_role)
664 return removable_role_.Get(index);
665}
667 removable_role_.Set(index, value);
668 // @@protoc_insertion_point(field_set:bgs.protocol.Role.removable_role)
669}
671 removable_role_.Add(value);
672 // @@protoc_insertion_point(field_add:bgs.protocol.Role.removable_role)
673}
674inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
676 // @@protoc_insertion_point(field_list:bgs.protocol.Role.removable_role)
677 return removable_role_;
678}
679inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
681 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.Role.removable_role)
682 return &removable_role_;
683}
684
685// -------------------------------------------------------------------
686
687// RoleState
688
689// optional string name = 2;
690inline bool RoleState::has_name() const {
691 return (_has_bits_[0] & 0x00000001u) != 0;
692}
694 _has_bits_[0] |= 0x00000001u;
695}
697 _has_bits_[0] &= ~0x00000001u;
698}
700 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
701 name_->clear();
702 }
704}
705inline const ::std::string& RoleState::name() const {
706 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.name)
707 return *name_;
708}
709inline void RoleState::set_name(const ::std::string& value) {
710 set_has_name();
711 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
712 name_ = new ::std::string;
713 }
714 name_->assign(value);
715 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.name)
716}
717inline void RoleState::set_name(const char* value) {
718 set_has_name();
719 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
720 name_ = new ::std::string;
721 }
722 name_->assign(value);
723 // @@protoc_insertion_point(field_set_char:bgs.protocol.RoleState.name)
724}
725inline void RoleState::set_name(const char* value, size_t size) {
726 set_has_name();
727 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
728 name_ = new ::std::string;
729 }
730 name_->assign(reinterpret_cast<const char*>(value), size);
731 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.RoleState.name)
732}
733inline ::std::string* RoleState::mutable_name() {
734 set_has_name();
735 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
736 name_ = new ::std::string;
737 }
738 // @@protoc_insertion_point(field_mutable:bgs.protocol.RoleState.name)
739 return name_;
740}
741inline ::std::string* RoleState::release_name() {
743 if (name_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
744 return NULL;
745 } else {
746 ::std::string* temp = name_;
747 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
748 return temp;
749 }
750}
751inline void RoleState::set_allocated_name(::std::string* name) {
752 if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
753 delete name_;
754 }
755 if (name) {
756 set_has_name();
757 name_ = name;
758 } else {
760 name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
761 }
762 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.RoleState.name)
763}
764
765// repeated uint32 assignable_role = 4 [packed = true];
767 return assignable_role_.size();
768}
770 assignable_role_.Clear();
771}
773 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.assignable_role)
774 return assignable_role_.Get(index);
775}
777 assignable_role_.Set(index, value);
778 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.assignable_role)
779}
781 assignable_role_.Add(value);
782 // @@protoc_insertion_point(field_add:bgs.protocol.RoleState.assignable_role)
783}
784inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
786 // @@protoc_insertion_point(field_list:bgs.protocol.RoleState.assignable_role)
787 return assignable_role_;
788}
789inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
791 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.RoleState.assignable_role)
792 return &assignable_role_;
793}
794
795// optional bool required = 5;
796inline bool RoleState::has_required() const {
797 return (_has_bits_[0] & 0x00000004u) != 0;
798}
800 _has_bits_[0] |= 0x00000004u;
801}
803 _has_bits_[0] &= ~0x00000004u;
804}
806 required_ = false;
808}
809inline bool RoleState::required() const {
810 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.required)
811 return required_;
812}
813inline void RoleState::set_required(bool value) {
815 required_ = value;
816 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.required)
817}
818
819// optional bool unique = 6;
820inline bool RoleState::has_unique() const {
821 return (_has_bits_[0] & 0x00000008u) != 0;
822}
824 _has_bits_[0] |= 0x00000008u;
825}
827 _has_bits_[0] &= ~0x00000008u;
828}
830 unique_ = false;
832}
833inline bool RoleState::unique() const {
834 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.unique)
835 return unique_;
836}
837inline void RoleState::set_unique(bool value) {
839 unique_ = value;
840 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.unique)
841}
842
843// optional uint32 relegation_role = 7;
845 return (_has_bits_[0] & 0x00000010u) != 0;
846}
848 _has_bits_[0] |= 0x00000010u;
849}
851 _has_bits_[0] &= ~0x00000010u;
852}
854 relegation_role_ = 0u;
856}
858 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.relegation_role)
859 return relegation_role_;
860}
863 relegation_role_ = value;
864 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.relegation_role)
865}
866
867// repeated uint32 kickable_role = 9 [packed = true];
869 return kickable_role_.size();
870}
872 kickable_role_.Clear();
873}
875 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.kickable_role)
876 return kickable_role_.Get(index);
877}
879 kickable_role_.Set(index, value);
880 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.kickable_role)
881}
883 kickable_role_.Add(value);
884 // @@protoc_insertion_point(field_add:bgs.protocol.RoleState.kickable_role)
885}
886inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
888 // @@protoc_insertion_point(field_list:bgs.protocol.RoleState.kickable_role)
889 return kickable_role_;
890}
891inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
893 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.RoleState.kickable_role)
894 return &kickable_role_;
895}
896
897// repeated uint32 removable_role = 10 [packed = true];
899 return removable_role_.size();
900}
902 removable_role_.Clear();
903}
905 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.removable_role)
906 return removable_role_.Get(index);
907}
909 removable_role_.Set(index, value);
910 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.removable_role)
911}
913 removable_role_.Add(value);
914 // @@protoc_insertion_point(field_add:bgs.protocol.RoleState.removable_role)
915}
916inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
918 // @@protoc_insertion_point(field_list:bgs.protocol.RoleState.removable_role)
919 return removable_role_;
920}
921inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
923 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.RoleState.removable_role)
924 return &removable_role_;
925}
926
927// repeated uint32 mentionable_role = 11 [packed = true];
929 return mentionable_role_.size();
930}
932 mentionable_role_.Clear();
933}
935 // @@protoc_insertion_point(field_get:bgs.protocol.RoleState.mentionable_role)
936 return mentionable_role_.Get(index);
937}
939 mentionable_role_.Set(index, value);
940 // @@protoc_insertion_point(field_set:bgs.protocol.RoleState.mentionable_role)
941}
943 mentionable_role_.Add(value);
944 // @@protoc_insertion_point(field_add:bgs.protocol.RoleState.mentionable_role)
945}
946inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >&
948 // @@protoc_insertion_point(field_list:bgs.protocol.RoleState.mentionable_role)
949 return mentionable_role_;
950}
951inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 >*
953 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.RoleState.mentionable_role)
954 return &mentionable_role_;
955}
956
957// @@protoc_insertion_point(namespace_scope)
958
959} // namespace protocol
960} // namespace bgs
961
962#ifndef SWIG
963namespace google {
964namespace protobuf {
965} // namespace google
966} // namespace protobuf
967#endif // SWIG
968
969// @@protoc_insertion_point(global_scope)
970
971#endif // PROTOBUF_role_5ftypes_2eproto__INCLUDED
#define TC_PROTO_API
Definition: Define.h:105
uint32_t uint32
Definition: Define.h:142
RoleState * New() const
friend void protobuf_AssignDesc_role_5ftypes_2eproto()
::google::protobuf::uint32 _has_bits_[1]
void add_kickable_role(::google::protobuf::uint32 value)
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removable_role_
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_kickable_role()
void set_removable_role(int index, ::google::protobuf::uint32 value)
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_removable_role()
RoleState(const RoleState &from)
::google::protobuf::uint32 relegation_role_
inline ::std::string * release_name()
void set_allocated_name(::std::string *name)
void set_kickable_role(int index, ::google::protobuf::uint32 value)
int removable_role_size() const
::google::protobuf::Metadata GetMetadata() const
static const RoleState & default_instance()
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline ::google::protobuf::uint32 relegation_role() const
void set_mentionable_role(int index, ::google::protobuf::uint32 value)
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & assignable_role() const
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & removable_role() const
bool has_relegation_role() const
void set_assignable_role(int index, ::google::protobuf::uint32 value)
void set_required(bool value)
::google::protobuf::UnknownFieldSet _unknown_fields_
int kickable_role_size() const
int assignable_role_size() const
friend void TC_PROTO_API protobuf_AddDesc_role_5ftypes_2eproto()
const ::std::string & name() const
void SetCachedSize(int size) const
friend void protobuf_ShutdownFile_role_5ftypes_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & kickable_role() const
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > kickable_role_
int mentionable_role_size() const
inline ::std::string * mutable_name()
void set_unique(bool value)
void Swap(RoleState *other)
static RoleState * default_instance_
void add_assignable_role(::google::protobuf::uint32 value)
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & mentionable_role() const
static const ::google::protobuf::Descriptor * descriptor()
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_assignable_role()
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_mentionable_role()
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > assignable_role_
void add_mentionable_role(::google::protobuf::uint32 value)
RoleState & operator=(const RoleState &from)
void add_removable_role(::google::protobuf::uint32 value)
void set_relegation_role(::google::protobuf::uint32 value)
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > mentionable_role_
void set_name(const ::std::string &value)
friend void protobuf_AssignDesc_role_5ftypes_2eproto()
void set_id(::google::protobuf::uint32 value)
const ::google::protobuf::RepeatedPtrField< ::std::string > & privilege() const
bool has_unique() const
bool has_required() const
bool has_name() const
::google::protobuf::RepeatedPtrField< ::std::string > privilege_
::google::protobuf::Metadata GetMetadata() const
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_kickable_role()
Role(const Role &from)
inline ::std::string * add_privilege()
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_removable_role()
void set_privilege(int index, const ::std::string &value)
bool unique() const
void set_removable_role(int index, ::google::protobuf::uint32 value)
inline ::google::protobuf::uint32 relegation_role() const
void clear_has_relegation_role()
int kickable_role_size() const
::google::protobuf::uint32 id_
void add_removable_role(::google::protobuf::uint32 value)
::google::protobuf::uint32 relegation_role_
bool has_relegation_role() const
void set_relegation_role(::google::protobuf::uint32 value)
int removable_role_size() const
const ::std::string & name() const
::google::protobuf::uint32 _has_bits_[1]
int privilege_size() const
inline ::google::protobuf::uint32 id() const
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & assignable_role() const
void SetCachedSize(int size) const
bool required() const
void set_assignable_role(int index, ::google::protobuf::uint32 value)
void set_has_relegation_role()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: role_types.pb.h:55
void InitAsDefaultInstance()
friend void TC_PROTO_API protobuf_AddDesc_role_5ftypes_2eproto()
static Role * default_instance_
void set_allocated_name(::std::string *name)
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > kickable_role_
friend void protobuf_ShutdownFile_role_5ftypes_2eproto()
void add_kickable_role(::google::protobuf::uint32 value)
Role & operator=(const Role &from)
Definition: role_types.pb.h:50
void add_assignable_role(::google::protobuf::uint32 value)
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & kickable_role() const
::std::string * name_
Role * New() const
static const ::google::protobuf::Descriptor * descriptor()
void set_name(const ::std::string &value)
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: role_types.pb.h:59
const ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > & removable_role() const
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > assignable_role_
static const Role & default_instance()
inline ::google::protobuf::RepeatedPtrField< ::std::string > * mutable_privilege()
int GetCachedSize() const
Definition: role_types.pb.h:71
void set_unique(bool value)
inline ::std::string * mutable_name()
void set_required(bool value)
int assignable_role_size() const
bool has_id() const
inline ::google::protobuf::RepeatedField< ::google::protobuf::uint32 > * mutable_assignable_role()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_kickable_role(int index, ::google::protobuf::uint32 value)
void Swap(Role *other)
inline ::std::string * release_name()
::google::protobuf::RepeatedField< ::google::protobuf::uint32 > removable_role_
constexpr std::size_t size()
Definition: UpdateField.h:796
void protobuf_AssignDesc_role_5ftypes_2eproto()
void TC_PROTO_API protobuf_AddDesc_role_5ftypes_2eproto()
void protobuf_ShutdownFile_role_5ftypes_2eproto()
Definition: Session.h:36