TrinityCore
club_ban.pb.h
Go to the documentation of this file.
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: club_ban.proto
3
4#ifndef PROTOBUF_club_5fban_2eproto__INCLUDED
5#define PROTOBUF_club_5fban_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>
28#include "club_member.pb.h"
30#include "Define.h" // for TC_PROTO_API
31// @@protoc_insertion_point(includes)
32
33namespace bgs {
34namespace protocol {
35namespace club {
36namespace v1 {
37
38// Internal implementation detail -- do not call these.
42
43class AddBanOptions;
44class ClubBan;
45
46// ===================================================================
47
48class TC_PROTO_API AddBanOptions : public ::google::protobuf::Message {
49 public:
51 virtual ~AddBanOptions();
52
54
55 inline AddBanOptions& operator=(const AddBanOptions& from) {
56 CopyFrom(from);
57 return *this;
58 }
59
60 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
61 return _unknown_fields_;
62 }
63
64 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
65 return &_unknown_fields_;
66 }
67
68 static const ::google::protobuf::Descriptor* descriptor();
70
71 void Swap(AddBanOptions* other);
72
73 // implements Message ----------------------------------------------
74
76 int GetCachedSize() const { return _cached_size_; }
77 private:
78 void SharedCtor();
79 void SharedDtor();
80 void SetCachedSize(int size) const;
81 public:
82 ::google::protobuf::Metadata GetMetadata() const;
83
84 // nested types ----------------------------------------------------
85
86 // accessors -------------------------------------------------------
87
88 // optional .bgs.protocol.club.v1.MemberId target_id = 1;
89 inline bool has_target_id() const;
90 inline void clear_target_id();
91 static const int kTargetIdFieldNumber = 1;
92 inline const ::bgs::protocol::club::v1::MemberId& target_id() const;
93 inline ::bgs::protocol::club::v1::MemberId* mutable_target_id();
94 inline ::bgs::protocol::club::v1::MemberId* release_target_id();
95 inline void set_allocated_target_id(::bgs::protocol::club::v1::MemberId* target_id);
96
97 // repeated .bgs.protocol.v2.Attribute attribute = 2;
98 inline int attribute_size() const;
99 inline void clear_attribute();
100 static const int kAttributeFieldNumber = 2;
101 inline const ::bgs::protocol::v2::Attribute& attribute(int index) const;
102 inline ::bgs::protocol::v2::Attribute* mutable_attribute(int index);
103 inline ::bgs::protocol::v2::Attribute* add_attribute();
104 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >&
105 attribute() const;
106 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >*
107 mutable_attribute();
108
109 // optional string reason = 3;
110 inline bool has_reason() const;
111 inline void clear_reason();
112 static const int kReasonFieldNumber = 3;
113 inline const ::std::string& reason() const;
114 inline void set_reason(const ::std::string& value);
115 inline void set_reason(const char* value);
116 inline void set_reason(const char* value, size_t size);
117 inline ::std::string* mutable_reason();
118 inline ::std::string* release_reason();
119 inline void set_allocated_reason(::std::string* reason);
120
121 // @@protoc_insertion_point(class_scope:bgs.protocol.club.v1.AddBanOptions)
122 private:
123 inline void set_has_target_id();
124 inline void clear_has_target_id();
125 inline void set_has_reason();
126 inline void clear_has_reason();
127
128 ::google::protobuf::UnknownFieldSet _unknown_fields_;
129
131 mutable int _cached_size_;
133 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_;
134 ::std::string* reason_;
138
141};
142// -------------------------------------------------------------------
143
144class TC_PROTO_API ClubBan : public ::google::protobuf::Message {
145 public:
147 virtual ~ClubBan();
148
149 ClubBan(const ClubBan& from);
150
151 inline ClubBan& operator=(const ClubBan& from) {
152 CopyFrom(from);
153 return *this;
154 }
155
156 inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
157 return _unknown_fields_;
158 }
159
160 inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
161 return &_unknown_fields_;
162 }
163
164 static const ::google::protobuf::Descriptor* descriptor();
165 static const ClubBan& default_instance();
166
167 void Swap(ClubBan* other);
168
169 // implements Message ----------------------------------------------
170
171 ClubBan* New() const;
172 int GetCachedSize() const { return _cached_size_; }
173 private:
176 void SetCachedSize(int size) const;
177 public:
178 ::google::protobuf::Metadata GetMetadata() const;
179
180 // nested types ----------------------------------------------------
181
182 // accessors -------------------------------------------------------
183
184 // optional .bgs.protocol.club.v1.MemberId id = 1;
185 inline bool has_id() const;
186 inline void clear_id();
187 static const int kIdFieldNumber = 1;
188 inline const ::bgs::protocol::club::v1::MemberId& id() const;
189 inline ::bgs::protocol::club::v1::MemberId* mutable_id();
190 inline ::bgs::protocol::club::v1::MemberId* release_id();
191 inline void set_allocated_id(::bgs::protocol::club::v1::MemberId* id);
192
193 // optional string battle_tag = 2;
194 inline bool has_battle_tag() const;
195 inline void clear_battle_tag();
196 static const int kBattleTagFieldNumber = 2;
197 inline const ::std::string& battle_tag() const;
198 inline void set_battle_tag(const ::std::string& value);
199 inline void set_battle_tag(const char* value);
200 inline void set_battle_tag(const char* value, size_t size);
201 inline ::std::string* mutable_battle_tag();
202 inline ::std::string* release_battle_tag();
203 inline void set_allocated_battle_tag(::std::string* battle_tag);
204
205 // optional .bgs.protocol.club.v1.MemberDescription creator = 3;
206 inline bool has_creator() const;
207 inline void clear_creator();
208 static const int kCreatorFieldNumber = 3;
209 inline const ::bgs::protocol::club::v1::MemberDescription& creator() const;
210 inline ::bgs::protocol::club::v1::MemberDescription* mutable_creator();
211 inline ::bgs::protocol::club::v1::MemberDescription* release_creator();
212 inline void set_allocated_creator(::bgs::protocol::club::v1::MemberDescription* creator);
213
214 // repeated .bgs.protocol.v2.Attribute attribute = 4;
215 inline int attribute_size() const;
216 inline void clear_attribute();
217 static const int kAttributeFieldNumber = 4;
218 inline const ::bgs::protocol::v2::Attribute& attribute(int index) const;
219 inline ::bgs::protocol::v2::Attribute* mutable_attribute(int index);
220 inline ::bgs::protocol::v2::Attribute* add_attribute();
221 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >&
222 attribute() const;
223 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >*
224 mutable_attribute();
225
226 // optional string reason = 5;
227 inline bool has_reason() const;
228 inline void clear_reason();
229 static const int kReasonFieldNumber = 5;
230 inline const ::std::string& reason() const;
231 inline void set_reason(const ::std::string& value);
232 inline void set_reason(const char* value);
233 inline void set_reason(const char* value, size_t size);
234 inline ::std::string* mutable_reason();
235 inline ::std::string* release_reason();
236 inline void set_allocated_reason(::std::string* reason);
237
238 // optional uint64 creation_time = 6;
239 inline bool has_creation_time() const;
240 inline void clear_creation_time();
241 static const int kCreationTimeFieldNumber = 6;
242 inline ::google::protobuf::uint64 creation_time() const;
243 inline void set_creation_time(::google::protobuf::uint64 value);
244
245 // @@protoc_insertion_point(class_scope:bgs.protocol.club.v1.ClubBan)
246 private:
247 inline void set_has_id();
248 inline void clear_has_id();
249 inline void set_has_battle_tag();
250 inline void clear_has_battle_tag();
251 inline void set_has_creator();
252 inline void clear_has_creator();
253 inline void set_has_reason();
254 inline void clear_has_reason();
255 inline void set_has_creation_time();
256 inline void clear_has_creation_time();
257
258 ::google::protobuf::UnknownFieldSet _unknown_fields_;
259
261 mutable int _cached_size_;
263 ::std::string* battle_tag_;
265 ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_;
266 ::std::string* reason_;
271
274};
275// ===================================================================
276
277// ===================================================================
278
279// ===================================================================
280
281// AddBanOptions
282
283// optional .bgs.protocol.club.v1.MemberId target_id = 1;
284inline bool AddBanOptions::has_target_id() const {
285 return (_has_bits_[0] & 0x00000001u) != 0;
286}
288 _has_bits_[0] |= 0x00000001u;
289}
291 _has_bits_[0] &= ~0x00000001u;
292}
294 if (target_id_ != NULL) target_id_->::bgs::protocol::club::v1::MemberId::Clear();
296}
297inline const ::bgs::protocol::club::v1::MemberId& AddBanOptions::target_id() const {
298 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.AddBanOptions.target_id)
300}
301inline ::bgs::protocol::club::v1::MemberId* AddBanOptions::mutable_target_id() {
303 if (target_id_ == NULL) target_id_ = new ::bgs::protocol::club::v1::MemberId;
304 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.AddBanOptions.target_id)
305 return target_id_;
306}
307inline ::bgs::protocol::club::v1::MemberId* AddBanOptions::release_target_id() {
310 target_id_ = NULL;
311 return temp;
312}
314 delete target_id_;
316 if (target_id) {
318 } else {
320 }
321 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.AddBanOptions.target_id)
322}
323
324// repeated .bgs.protocol.v2.Attribute attribute = 2;
326 return attribute_.size();
327}
329 attribute_.Clear();
330}
331inline const ::bgs::protocol::v2::Attribute& AddBanOptions::attribute(int index) const {
332 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.AddBanOptions.attribute)
333 return attribute_.Get(index);
334}
335inline ::bgs::protocol::v2::Attribute* AddBanOptions::mutable_attribute(int index) {
336 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.AddBanOptions.attribute)
337 return attribute_.Mutable(index);
338}
339inline ::bgs::protocol::v2::Attribute* AddBanOptions::add_attribute() {
340 // @@protoc_insertion_point(field_add:bgs.protocol.club.v1.AddBanOptions.attribute)
341 return attribute_.Add();
342}
343inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >&
345 // @@protoc_insertion_point(field_list:bgs.protocol.club.v1.AddBanOptions.attribute)
346 return attribute_;
347}
348inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >*
350 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.club.v1.AddBanOptions.attribute)
351 return &attribute_;
352}
353
354// optional string reason = 3;
355inline bool AddBanOptions::has_reason() const {
356 return (_has_bits_[0] & 0x00000004u) != 0;
357}
359 _has_bits_[0] |= 0x00000004u;
360}
362 _has_bits_[0] &= ~0x00000004u;
363}
365 if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
366 reason_->clear();
367 }
369}
370inline const ::std::string& AddBanOptions::reason() const {
371 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.AddBanOptions.reason)
372 return *reason_;
373}
374inline void AddBanOptions::set_reason(const ::std::string& value) {
376 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
377 reason_ = new ::std::string;
378 }
379 reason_->assign(value);
380 // @@protoc_insertion_point(field_set:bgs.protocol.club.v1.AddBanOptions.reason)
381}
382inline void AddBanOptions::set_reason(const char* value) {
384 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
385 reason_ = new ::std::string;
386 }
387 reason_->assign(value);
388 // @@protoc_insertion_point(field_set_char:bgs.protocol.club.v1.AddBanOptions.reason)
389}
390inline void AddBanOptions::set_reason(const char* value, size_t size) {
392 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
393 reason_ = new ::std::string;
394 }
395 reason_->assign(reinterpret_cast<const char*>(value), size);
396 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.club.v1.AddBanOptions.reason)
397}
398inline ::std::string* AddBanOptions::mutable_reason() {
400 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
401 reason_ = new ::std::string;
402 }
403 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.AddBanOptions.reason)
404 return reason_;
405}
406inline ::std::string* AddBanOptions::release_reason() {
408 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
409 return NULL;
410 } else {
411 ::std::string* temp = reason_;
412 reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
413 return temp;
414 }
415}
416inline void AddBanOptions::set_allocated_reason(::std::string* reason) {
417 if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
418 delete reason_;
419 }
420 if (reason) {
422 reason_ = reason;
423 } else {
425 reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
426 }
427 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.AddBanOptions.reason)
428}
429
430// -------------------------------------------------------------------
431
432// ClubBan
433
434// optional .bgs.protocol.club.v1.MemberId id = 1;
435inline bool ClubBan::has_id() const {
436 return (_has_bits_[0] & 0x00000001u) != 0;
437}
438inline void ClubBan::set_has_id() {
439 _has_bits_[0] |= 0x00000001u;
440}
442 _has_bits_[0] &= ~0x00000001u;
443}
444inline void ClubBan::clear_id() {
445 if (id_ != NULL) id_->::bgs::protocol::club::v1::MemberId::Clear();
446 clear_has_id();
447}
448inline const ::bgs::protocol::club::v1::MemberId& ClubBan::id() const {
449 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.ClubBan.id)
450 return id_ != NULL ? *id_ : *default_instance_->id_;
451}
452inline ::bgs::protocol::club::v1::MemberId* ClubBan::mutable_id() {
453 set_has_id();
454 if (id_ == NULL) id_ = new ::bgs::protocol::club::v1::MemberId;
455 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.ClubBan.id)
456 return id_;
457}
458inline ::bgs::protocol::club::v1::MemberId* ClubBan::release_id() {
459 clear_has_id();
461 id_ = NULL;
462 return temp;
463}
465 delete id_;
466 id_ = id;
467 if (id) {
468 set_has_id();
469 } else {
470 clear_has_id();
471 }
472 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.ClubBan.id)
473}
474
475// optional string battle_tag = 2;
476inline bool ClubBan::has_battle_tag() const {
477 return (_has_bits_[0] & 0x00000002u) != 0;
478}
480 _has_bits_[0] |= 0x00000002u;
481}
483 _has_bits_[0] &= ~0x00000002u;
484}
486 if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
487 battle_tag_->clear();
488 }
490}
491inline const ::std::string& ClubBan::battle_tag() const {
492 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.ClubBan.battle_tag)
493 return *battle_tag_;
494}
495inline void ClubBan::set_battle_tag(const ::std::string& value) {
497 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
498 battle_tag_ = new ::std::string;
499 }
500 battle_tag_->assign(value);
501 // @@protoc_insertion_point(field_set:bgs.protocol.club.v1.ClubBan.battle_tag)
502}
503inline void ClubBan::set_battle_tag(const char* value) {
505 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
506 battle_tag_ = new ::std::string;
507 }
508 battle_tag_->assign(value);
509 // @@protoc_insertion_point(field_set_char:bgs.protocol.club.v1.ClubBan.battle_tag)
510}
511inline void ClubBan::set_battle_tag(const char* value, size_t size) {
513 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
514 battle_tag_ = new ::std::string;
515 }
516 battle_tag_->assign(reinterpret_cast<const char*>(value), size);
517 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.club.v1.ClubBan.battle_tag)
518}
519inline ::std::string* ClubBan::mutable_battle_tag() {
521 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
522 battle_tag_ = new ::std::string;
523 }
524 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.ClubBan.battle_tag)
525 return battle_tag_;
526}
527inline ::std::string* ClubBan::release_battle_tag() {
529 if (battle_tag_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
530 return NULL;
531 } else {
532 ::std::string* temp = battle_tag_;
533 battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
534 return temp;
535 }
536}
537inline void ClubBan::set_allocated_battle_tag(::std::string* battle_tag) {
538 if (battle_tag_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
539 delete battle_tag_;
540 }
541 if (battle_tag) {
544 } else {
546 battle_tag_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547 }
548 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.ClubBan.battle_tag)
549}
550
551// optional .bgs.protocol.club.v1.MemberDescription creator = 3;
552inline bool ClubBan::has_creator() const {
553 return (_has_bits_[0] & 0x00000004u) != 0;
554}
556 _has_bits_[0] |= 0x00000004u;
557}
559 _has_bits_[0] &= ~0x00000004u;
560}
562 if (creator_ != NULL) creator_->::bgs::protocol::club::v1::MemberDescription::Clear();
564}
565inline const ::bgs::protocol::club::v1::MemberDescription& ClubBan::creator() const {
566 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.ClubBan.creator)
567 return creator_ != NULL ? *creator_ : *default_instance_->creator_;
568}
569inline ::bgs::protocol::club::v1::MemberDescription* ClubBan::mutable_creator() {
571 if (creator_ == NULL) creator_ = new ::bgs::protocol::club::v1::MemberDescription;
572 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.ClubBan.creator)
573 return creator_;
574}
575inline ::bgs::protocol::club::v1::MemberDescription* ClubBan::release_creator() {
578 creator_ = NULL;
579 return temp;
580}
582 delete creator_;
584 if (creator) {
586 } else {
588 }
589 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.ClubBan.creator)
590}
591
592// repeated .bgs.protocol.v2.Attribute attribute = 4;
593inline int ClubBan::attribute_size() const {
594 return attribute_.size();
595}
597 attribute_.Clear();
598}
599inline const ::bgs::protocol::v2::Attribute& ClubBan::attribute(int index) const {
600 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.ClubBan.attribute)
601 return attribute_.Get(index);
602}
603inline ::bgs::protocol::v2::Attribute* ClubBan::mutable_attribute(int index) {
604 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.ClubBan.attribute)
605 return attribute_.Mutable(index);
606}
607inline ::bgs::protocol::v2::Attribute* ClubBan::add_attribute() {
608 // @@protoc_insertion_point(field_add:bgs.protocol.club.v1.ClubBan.attribute)
609 return attribute_.Add();
610}
611inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >&
613 // @@protoc_insertion_point(field_list:bgs.protocol.club.v1.ClubBan.attribute)
614 return attribute_;
615}
616inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute >*
618 // @@protoc_insertion_point(field_mutable_list:bgs.protocol.club.v1.ClubBan.attribute)
619 return &attribute_;
620}
621
622// optional string reason = 5;
623inline bool ClubBan::has_reason() const {
624 return (_has_bits_[0] & 0x00000010u) != 0;
625}
627 _has_bits_[0] |= 0x00000010u;
628}
630 _has_bits_[0] &= ~0x00000010u;
631}
633 if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
634 reason_->clear();
635 }
637}
638inline const ::std::string& ClubBan::reason() const {
639 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.ClubBan.reason)
640 return *reason_;
641}
642inline void ClubBan::set_reason(const ::std::string& value) {
644 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
645 reason_ = new ::std::string;
646 }
647 reason_->assign(value);
648 // @@protoc_insertion_point(field_set:bgs.protocol.club.v1.ClubBan.reason)
649}
650inline void ClubBan::set_reason(const char* value) {
652 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
653 reason_ = new ::std::string;
654 }
655 reason_->assign(value);
656 // @@protoc_insertion_point(field_set_char:bgs.protocol.club.v1.ClubBan.reason)
657}
658inline void ClubBan::set_reason(const char* value, size_t size) {
660 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
661 reason_ = new ::std::string;
662 }
663 reason_->assign(reinterpret_cast<const char*>(value), size);
664 // @@protoc_insertion_point(field_set_pointer:bgs.protocol.club.v1.ClubBan.reason)
665}
666inline ::std::string* ClubBan::mutable_reason() {
668 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
669 reason_ = new ::std::string;
670 }
671 // @@protoc_insertion_point(field_mutable:bgs.protocol.club.v1.ClubBan.reason)
672 return reason_;
673}
674inline ::std::string* ClubBan::release_reason() {
676 if (reason_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
677 return NULL;
678 } else {
679 ::std::string* temp = reason_;
680 reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
681 return temp;
682 }
683}
684inline void ClubBan::set_allocated_reason(::std::string* reason) {
685 if (reason_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
686 delete reason_;
687 }
688 if (reason) {
690 reason_ = reason;
691 } else {
693 reason_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
694 }
695 // @@protoc_insertion_point(field_set_allocated:bgs.protocol.club.v1.ClubBan.reason)
696}
697
698// optional uint64 creation_time = 6;
699inline bool ClubBan::has_creation_time() const {
700 return (_has_bits_[0] & 0x00000020u) != 0;
701}
703 _has_bits_[0] |= 0x00000020u;
704}
706 _has_bits_[0] &= ~0x00000020u;
707}
709 creation_time_ = GOOGLE_ULONGLONG(0);
711}
713 // @@protoc_insertion_point(field_get:bgs.protocol.club.v1.ClubBan.creation_time)
714 return creation_time_;
715}
718 creation_time_ = value;
719 // @@protoc_insertion_point(field_set:bgs.protocol.club.v1.ClubBan.creation_time)
720}
721
722// @@protoc_insertion_point(namespace_scope)
723
724} // namespace v1
725} // namespace club
726} // namespace protocol
727} // namespace bgs
728
729#ifndef SWIG
730namespace google {
731namespace protobuf {
732} // namespace google
733} // namespace protobuf
734#endif // SWIG
735
736// @@protoc_insertion_point(global_scope)
737
738#endif // PROTOBUF_club_5fban_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 ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: club_ban.pb.h:64
static const ::google::protobuf::Descriptor * descriptor()
static AddBanOptions * default_instance_
Definition: club_ban.pb.h:140
::bgs::protocol::club::v1::MemberId * target_id_
Definition: club_ban.pb.h:132
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: club_ban.pb.h:128
friend void TC_PROTO_API protobuf_AddDesc_club_5fban_2eproto()
static const AddBanOptions & default_instance()
::google::protobuf::uint32 _has_bits_[1]
Definition: club_ban.pb.h:130
void set_allocated_target_id(::bgs::protocol::club::v1::MemberId *target_id)
Definition: club_ban.pb.h:313
AddBanOptions & operator=(const AddBanOptions &from)
Definition: club_ban.pb.h:55
::google::protobuf::Metadata GetMetadata() const
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > & attribute() const
Definition: club_ban.pb.h:344
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > * mutable_attribute()
Definition: club_ban.pb.h:349
inline ::std::string * mutable_reason()
Definition: club_ban.pb.h:398
inline ::bgs::protocol::club::v1::MemberId * mutable_target_id()
Definition: club_ban.pb.h:301
inline ::std::string * release_reason()
Definition: club_ban.pb.h:406
friend void protobuf_AssignDesc_club_5fban_2eproto()
const ::bgs::protocol::club::v1::MemberId & target_id() const
Definition: club_ban.pb.h:297
AddBanOptions(const AddBanOptions &from)
const ::std::string & reason() const
Definition: club_ban.pb.h:370
friend void protobuf_ShutdownFile_club_5fban_2eproto()
::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_
Definition: club_ban.pb.h:133
inline ::bgs::protocol::v2::Attribute * add_attribute()
Definition: club_ban.pb.h:339
inline ::bgs::protocol::club::v1::MemberId * release_target_id()
Definition: club_ban.pb.h:307
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: club_ban.pb.h:60
void set_allocated_reason(::std::string *reason)
Definition: club_ban.pb.h:416
void set_reason(const ::std::string &value)
Definition: club_ban.pb.h:374
void Swap(AddBanOptions *other)
ClubBan(const ClubBan &from)
inline ::bgs::protocol::v2::Attribute * add_attribute()
Definition: club_ban.pb.h:607
void SetCachedSize(int size) const
void set_allocated_id(::bgs::protocol::club::v1::MemberId *id)
Definition: club_ban.pb.h:464
ClubBan & operator=(const ClubBan &from)
Definition: club_ban.pb.h:151
const ::bgs::protocol::club::v1::MemberDescription & creator() const
Definition: club_ban.pb.h:565
::bgs::protocol::club::v1::MemberDescription * creator_
Definition: club_ban.pb.h:264
::google::protobuf::uint32 _has_bits_[1]
Definition: club_ban.pb.h:260
friend void TC_PROTO_API protobuf_AddDesc_club_5fban_2eproto()
void set_creation_time(::google::protobuf::uint64 value)
Definition: club_ban.pb.h:716
void set_allocated_creator(::bgs::protocol::club::v1::MemberDescription *creator)
Definition: club_ban.pb.h:581
const ::std::string & reason() const
Definition: club_ban.pb.h:638
const ::std::string & battle_tag() const
Definition: club_ban.pb.h:491
::google::protobuf::Metadata GetMetadata() const
inline ::bgs::protocol::club::v1::MemberId * mutable_id()
Definition: club_ban.pb.h:452
::bgs::protocol::club::v1::MemberId * id_
Definition: club_ban.pb.h:262
inline ::std::string * release_reason()
Definition: club_ban.pb.h:674
inline ::std::string * release_battle_tag()
Definition: club_ban.pb.h:527
inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > * mutable_attribute()
Definition: club_ban.pb.h:617
inline ::google::protobuf::uint64 creation_time() const
Definition: club_ban.pb.h:712
friend void protobuf_AssignDesc_club_5fban_2eproto()
::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > attribute_
Definition: club_ban.pb.h:265
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: club_ban.pb.h:156
::google::protobuf::uint64 creation_time_
Definition: club_ban.pb.h:267
inline ::bgs::protocol::club::v1::MemberDescription * mutable_creator()
Definition: club_ban.pb.h:569
static const ::google::protobuf::Descriptor * descriptor()
void set_battle_tag(const ::std::string &value)
Definition: club_ban.pb.h:495
static ClubBan * default_instance_
Definition: club_ban.pb.h:273
inline ::bgs::protocol::club::v1::MemberId * release_id()
Definition: club_ban.pb.h:458
void set_allocated_battle_tag(::std::string *battle_tag)
Definition: club_ban.pb.h:537
inline ::std::string * mutable_battle_tag()
Definition: club_ban.pb.h:519
friend void protobuf_ShutdownFile_club_5fban_2eproto()
static const ClubBan & default_instance()
inline ::bgs::protocol::club::v1::MemberDescription * release_creator()
Definition: club_ban.pb.h:575
inline ::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: club_ban.pb.h:160
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: club_ban.pb.h:258
const ::bgs::protocol::club::v1::MemberId & id() const
Definition: club_ban.pb.h:448
inline ::std::string * mutable_reason()
Definition: club_ban.pb.h:666
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::v2::Attribute > & attribute() const
Definition: club_ban.pb.h:612
void set_reason(const ::std::string &value)
Definition: club_ban.pb.h:642
void set_allocated_reason(::std::string *reason)
Definition: club_ban.pb.h:684
constexpr std::size_t size()
Definition: UpdateField.h:796
void TC_PROTO_API protobuf_AddDesc_club_5fban_2eproto()
void protobuf_ShutdownFile_club_5fban_2eproto()
void protobuf_AssignDesc_club_5fban_2eproto()
Definition: Session.h:36