TrinityCore
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
profanity_filter_config.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: profanity_filter_config.proto
3 
4 #ifndef PROTOBUF_profanity_5ffilter_5fconfig_2eproto__INCLUDED
5 #define PROTOBUF_profanity_5ffilter_5fconfig_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
27 #include "Define.h" // for TC_SHARED_API
28 // @@protoc_insertion_point(includes)
29 
30 namespace bgs {
31 namespace protocol {
32 namespace profanity {
33 namespace v1 {
34 
35 // Internal implementation detail -- do not call these.
39 
40 class WordFilter;
41 class WordFilters;
42 
43 // ===================================================================
44 
46  public:
47  WordFilter();
48  virtual ~WordFilter();
49 
50  WordFilter(const WordFilter& from);
51 
52  inline WordFilter& operator=(const WordFilter& from) {
53  CopyFrom(from);
54  return *this;
55  }
56 
57  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58  return _unknown_fields_;
59  }
60 
61  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62  return &_unknown_fields_;
63  }
64 
65  static const ::google::protobuf::Descriptor* descriptor();
66  static const WordFilter& default_instance();
67 
68  void Swap(WordFilter* other);
69 
70  // implements Message ----------------------------------------------
71 
72  WordFilter* New() const;
73  void CopyFrom(const ::google::protobuf::Message& from);
74  void MergeFrom(const ::google::protobuf::Message& from);
75  void CopyFrom(const WordFilter& from);
76  void MergeFrom(const WordFilter& from);
77  void Clear();
78  bool IsInitialized() const;
79 
80  int ByteSize() const;
81  bool MergePartialFromCodedStream(
83  void SerializeWithCachedSizes(
85  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86  int GetCachedSize() const { return _cached_size_; }
87  private:
88  void SharedCtor();
89  void SharedDtor();
90  void SetCachedSize(int size) const;
91  public:
92  ::google::protobuf::Metadata GetMetadata() const;
93 
94  // nested types ----------------------------------------------------
95 
96  // accessors -------------------------------------------------------
97 
98  // required string type = 1;
99  inline bool has_type() const;
100  inline void clear_type();
101  static const int kTypeFieldNumber = 1;
102  inline const ::std::string& type() const;
103  inline void set_type(const ::std::string& value);
104  inline void set_type(const char* value);
105  inline void set_type(const char* value, size_t size);
106  inline ::std::string* mutable_type();
107  inline ::std::string* release_type();
108  inline void set_allocated_type(::std::string* type);
109 
110  // required string regex = 2;
111  inline bool has_regex() const;
112  inline void clear_regex();
113  static const int kRegexFieldNumber = 2;
114  inline const ::std::string& regex() const;
115  inline void set_regex(const ::std::string& value);
116  inline void set_regex(const char* value);
117  inline void set_regex(const char* value, size_t size);
118  inline ::std::string* mutable_regex();
119  inline ::std::string* release_regex();
120  inline void set_allocated_regex(::std::string* regex);
121 
122  // @@protoc_insertion_point(class_scope:bgs.protocol.profanity.v1.WordFilter)
123  private:
124  inline void set_has_type();
125  inline void clear_has_type();
126  inline void set_has_regex();
127  inline void clear_has_regex();
128 
130 
132  mutable int _cached_size_;
133  ::std::string* type_;
134  ::std::string* regex_;
138 
139  void InitAsDefaultInstance();
141 };
142 // -------------------------------------------------------------------
143 
145  public:
146  WordFilters();
147  virtual ~WordFilters();
148 
149  WordFilters(const WordFilters& from);
150 
151  inline WordFilters& operator=(const WordFilters& 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 WordFilters& default_instance();
166 
167  void Swap(WordFilters* other);
168 
169  // implements Message ----------------------------------------------
170 
171  WordFilters* New() const;
172  void CopyFrom(const ::google::protobuf::Message& from);
173  void MergeFrom(const ::google::protobuf::Message& from);
174  void CopyFrom(const WordFilters& from);
175  void MergeFrom(const WordFilters& from);
176  void Clear();
177  bool IsInitialized() const;
178 
179  int ByteSize() const;
180  bool MergePartialFromCodedStream(
182  void SerializeWithCachedSizes(
184  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
185  int GetCachedSize() const { return _cached_size_; }
186  private:
187  void SharedCtor();
188  void SharedDtor();
189  void SetCachedSize(int size) const;
190  public:
191  ::google::protobuf::Metadata GetMetadata() const;
192 
193  // nested types ----------------------------------------------------
194 
195  // accessors -------------------------------------------------------
196 
197  // repeated .bgs.protocol.profanity.v1.WordFilter filters = 1;
198  inline int filters_size() const;
199  inline void clear_filters();
200  static const int kFiltersFieldNumber = 1;
201  inline const ::bgs::protocol::profanity::v1::WordFilter& filters(int index) const;
202  inline ::bgs::protocol::profanity::v1::WordFilter* mutable_filters(int index);
203  inline ::bgs::protocol::profanity::v1::WordFilter* add_filters();
204  inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter >&
205  filters() const;
206  inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter >*
207  mutable_filters();
208 
209  // @@protoc_insertion_point(class_scope:bgs.protocol.profanity.v1.WordFilters)
210  private:
211 
213 
215  mutable int _cached_size_;
220 
221  void InitAsDefaultInstance();
223 };
224 // ===================================================================
225 
226 
227 // ===================================================================
228 
229 
230 // ===================================================================
231 
232 // WordFilter
233 
234 // required string type = 1;
235 inline bool WordFilter::has_type() const {
236  return (_has_bits_[0] & 0x00000001u) != 0;
237 }
239  _has_bits_[0] |= 0x00000001u;
240 }
242  _has_bits_[0] &= ~0x00000001u;
243 }
244 inline void WordFilter::clear_type() {
246  type_->clear();
247  }
248  clear_has_type();
249 }
250 inline const ::std::string& WordFilter::type() const {
251  // @@protoc_insertion_point(field_get:bgs.protocol.profanity.v1.WordFilter.type)
252  return *type_;
253 }
254 inline void WordFilter::set_type(const ::std::string& value) {
255  set_has_type();
257  type_ = new ::std::string;
258  }
259  type_->assign(value);
260  // @@protoc_insertion_point(field_set:bgs.protocol.profanity.v1.WordFilter.type)
261 }
262 inline void WordFilter::set_type(const char* value) {
263  set_has_type();
265  type_ = new ::std::string;
266  }
267  type_->assign(value);
268  // @@protoc_insertion_point(field_set_char:bgs.protocol.profanity.v1.WordFilter.type)
269 }
270 inline void WordFilter::set_type(const char* value, size_t size) {
271  set_has_type();
273  type_ = new ::std::string;
274  }
275  type_->assign(reinterpret_cast<const char*>(value), size);
276  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.profanity.v1.WordFilter.type)
277 }
278 inline ::std::string* WordFilter::mutable_type() {
279  set_has_type();
281  type_ = new ::std::string;
282  }
283  // @@protoc_insertion_point(field_mutable:bgs.protocol.profanity.v1.WordFilter.type)
284  return type_;
285 }
286 inline ::std::string* WordFilter::release_type() {
287  clear_has_type();
289  return NULL;
290  } else {
291  ::std::string* temp = type_;
292  type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
293  return temp;
294  }
295 }
296 inline void WordFilter::set_allocated_type(::std::string* type) {
298  delete type_;
299  }
300  if (type) {
301  set_has_type();
302  type_ = type;
303  } else {
304  clear_has_type();
305  type_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
306  }
307  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.profanity.v1.WordFilter.type)
308 }
309 
310 // required string regex = 2;
311 inline bool WordFilter::has_regex() const {
312  return (_has_bits_[0] & 0x00000002u) != 0;
313 }
315  _has_bits_[0] |= 0x00000002u;
316 }
318  _has_bits_[0] &= ~0x00000002u;
319 }
320 inline void WordFilter::clear_regex() {
322  regex_->clear();
323  }
324  clear_has_regex();
325 }
326 inline const ::std::string& WordFilter::regex() const {
327  // @@protoc_insertion_point(field_get:bgs.protocol.profanity.v1.WordFilter.regex)
328  return *regex_;
329 }
330 inline void WordFilter::set_regex(const ::std::string& value) {
331  set_has_regex();
333  regex_ = new ::std::string;
334  }
335  regex_->assign(value);
336  // @@protoc_insertion_point(field_set:bgs.protocol.profanity.v1.WordFilter.regex)
337 }
338 inline void WordFilter::set_regex(const char* value) {
339  set_has_regex();
341  regex_ = new ::std::string;
342  }
343  regex_->assign(value);
344  // @@protoc_insertion_point(field_set_char:bgs.protocol.profanity.v1.WordFilter.regex)
345 }
346 inline void WordFilter::set_regex(const char* value, size_t size) {
347  set_has_regex();
349  regex_ = new ::std::string;
350  }
351  regex_->assign(reinterpret_cast<const char*>(value), size);
352  // @@protoc_insertion_point(field_set_pointer:bgs.protocol.profanity.v1.WordFilter.regex)
353 }
354 inline ::std::string* WordFilter::mutable_regex() {
355  set_has_regex();
357  regex_ = new ::std::string;
358  }
359  // @@protoc_insertion_point(field_mutable:bgs.protocol.profanity.v1.WordFilter.regex)
360  return regex_;
361 }
362 inline ::std::string* WordFilter::release_regex() {
363  clear_has_regex();
365  return NULL;
366  } else {
367  ::std::string* temp = regex_;
368  regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
369  return temp;
370  }
371 }
372 inline void WordFilter::set_allocated_regex(::std::string* regex) {
374  delete regex_;
375  }
376  if (regex) {
377  set_has_regex();
378  regex_ = regex;
379  } else {
380  clear_has_regex();
381  regex_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
382  }
383  // @@protoc_insertion_point(field_set_allocated:bgs.protocol.profanity.v1.WordFilter.regex)
384 }
385 
386 // -------------------------------------------------------------------
387 
388 // WordFilters
389 
390 // repeated .bgs.protocol.profanity.v1.WordFilter filters = 1;
391 inline int WordFilters::filters_size() const {
392  return filters_.size();
393 }
395  filters_.Clear();
396 }
397 inline const ::bgs::protocol::profanity::v1::WordFilter& WordFilters::filters(int index) const {
398  // @@protoc_insertion_point(field_get:bgs.protocol.profanity.v1.WordFilters.filters)
399  return filters_.Get(index);
400 }
401 inline ::bgs::protocol::profanity::v1::WordFilter* WordFilters::mutable_filters(int index) {
402  // @@protoc_insertion_point(field_mutable:bgs.protocol.profanity.v1.WordFilters.filters)
403  return filters_.Mutable(index);
404 }
405 inline ::bgs::protocol::profanity::v1::WordFilter* WordFilters::add_filters() {
406  // @@protoc_insertion_point(field_add:bgs.protocol.profanity.v1.WordFilters.filters)
407  return filters_.Add();
408 }
409 inline const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter >&
411  // @@protoc_insertion_point(field_list:bgs.protocol.profanity.v1.WordFilters.filters)
412  return filters_;
413 }
414 inline ::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter >*
416  // @@protoc_insertion_point(field_mutable_list:bgs.protocol.profanity.v1.WordFilters.filters)
417  return &filters_;
418 }
419 
420 
421 // @@protoc_insertion_point(namespace_scope)
422 
423 } // namespace v1
424 } // namespace profanity
425 } // namespace protocol
426 } // namespace bgs
427 
428 #ifndef SWIG
429 namespace google {
430 namespace protobuf {
431 
432 
433 } // namespace google
434 } // namespace protobuf
435 #endif // SWIG
436 
437 // @@protoc_insertion_point(global_scope)
438 
439 #endif // PROTOBUF_profanity_5ffilter_5fconfig_2eproto__INCLUDED
WordFilter & operator=(const WordFilter &from)
Definition: profanity_filter_config.pb.h:52
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: profanity_filter_config.pb.h:129
Definition: profanity_filter_config.pb.h:45
WordFilters & operator=(const WordFilters &from)
Definition: profanity_filter_config.pb.h:151
int _cached_size_
Definition: profanity_filter_config.pb.h:215
Definition: Session.h:36
bool has_regex() const
Definition: profanity_filter_config.pb.h:311
Definition: unknown_field_set.h:74
void set_has_regex()
Definition: profanity_filter_config.pb.h:314
uint8_t uint8
Definition: common.h:175
void set_regex(const ::std::string &value)
Definition: profanity_filter_config.pb.h:330
inline::std::string * mutable_type()
Definition: profanity_filter_config.pb.h:278
::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter > filters_
Definition: profanity_filter_config.pb.h:216
::std::string * regex_
Definition: profanity_filter_config.pb.h:134
inline::std::string * mutable_regex()
Definition: profanity_filter_config.pb.h:354
::std::string * type_
Definition: profanity_filter_config.pb.h:133
arena_t NULL
Definition: jemalloc_internal.h:624
Definition: message.h:147
void clear_type()
Definition: profanity_filter_config.pb.h:244
int _cached_size_
Definition: profanity_filter_config.pb.h:132
const ::std::string & type() const
Definition: profanity_filter_config.pb.h:250
LIBPROTOBUF_EXPORTconst::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:79
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: profanity_filter_config.pb.h:160
const ::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter > & filters() const
Definition: profanity_filter_config.pb.h:410
void set_allocated_type(::std::string *type)
Definition: profanity_filter_config.pb.h:296
Definition: message.h:165
#define output
Definition: wire_format_lite.h:381
inline::std::string * release_type()
Definition: profanity_filter_config.pb.h:286
Definition: coded_stream.h:156
const ::std::string & regex() const
Definition: profanity_filter_config.pb.h:326
static WordFilters * default_instance_
Definition: profanity_filter_config.pb.h:222
Definition: coded_stream.h:621
Definition: message.h:150
void protobuf_ShutdownFile_profanity_5ffilter_5fconfig_2eproto()
#define input
Definition: wire_format_lite.h:242
uint32_t uint32
Definition: common.h:177
#define TC_SHARED_API
Definition: Define.h:128
void protobuf_AssignDesc_profanity_5ffilter_5fconfig_2eproto()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: profanity_filter_config.pb.h:156
Definition: profanity_filter_config.pb.h:144
int filters_size() const
Definition: profanity_filter_config.pb.h:391
void set_type(const ::std::string &value)
Definition: profanity_filter_config.pb.h:254
static WordFilter * default_instance_
Definition: profanity_filter_config.pb.h:140
int GetCachedSize() const
Definition: profanity_filter_config.pb.h:185
void clear_has_regex()
Definition: profanity_filter_config.pb.h:317
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
Definition: profanity_filter_config.pb.h:61
void clear_has_type()
Definition: profanity_filter_config.pb.h:241
::google::protobuf::UnknownFieldSet _unknown_fields_
Definition: profanity_filter_config.pb.h:212
void TC_SHARED_API protobuf_AddDesc_profanity_5ffilter_5fconfig_2eproto()
void set_has_type()
Definition: profanity_filter_config.pb.h:238
void clear_filters()
Definition: profanity_filter_config.pb.h:394
void set_allocated_regex(::std::string *regex)
Definition: profanity_filter_config.pb.h:372
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
Definition: profanity_filter_config.pb.h:57
int GetCachedSize() const
Definition: profanity_filter_config.pb.h:86
Definition: BnetFileGenerator.h:47
const FieldDescriptor value
Definition: descriptor.h:1522
inline::std::string * release_regex()
Definition: profanity_filter_config.pb.h:362
::google::protobuf::uint32 _has_bits_[1]
Definition: profanity_filter_config.pb.h:131
void clear_regex()
Definition: profanity_filter_config.pb.h:320
inline::bgs::protocol::profanity::v1::WordFilter * add_filters()
Definition: profanity_filter_config.pb.h:405
inline::google::protobuf::RepeatedPtrField< ::bgs::protocol::profanity::v1::WordFilter > * mutable_filters()
Definition: profanity_filter_config.pb.h:415
bool has_type() const
Definition: profanity_filter_config.pb.h:235